/* Your Trip Partners – website.
   Palette (fixed by the brief): Deep Navy #0B2233, Ocean Blue #123B5B, Warm Gold #D4AF61,
   Ivory #F7F5EF, Blue Grey #A3AFBA. No gradients, no glow, no external fonts. */

:root {
  --navy: #0B2233;
  --ocean: #123B5B;
  --gold: #D4AF61;
  --ivory: #F7F5EF;
  --blue-grey: #A3AFBA;

  --serif: "Palatino Linotype", "Book Antiqua", Palatino, "Iowan Old Style", Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --radius: 4px;

  /* Light theme for the page sections */
  --page: var(--ivory);
  --text: var(--navy);
  --muted: var(--ocean);
  --accent-text: var(--ocean);
  --line: rgba(11, 34, 51, 0.16);
  --field-bg: var(--ivory);
  --field-border: var(--ocean);
  --focus: var(--navy);
  color-scheme: light;
}

/* Dark theme: follows the system unless the toggle has chosen light */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: var(--navy);
    --text: var(--ivory);
    --muted: var(--blue-grey);
    --accent-text: var(--gold);
    --line: rgba(163, 175, 186, 0.24);
    --field-bg: var(--ocean);
    --field-border: var(--blue-grey);
    --focus: var(--gold);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: var(--navy);
  --text: var(--ivory);
  --muted: var(--blue-grey);
  --accent-text: var(--gold);
  --line: rgba(163, 175, 186, 0.24);
  --field-bg: var(--ocean);
  --field-border: var(--blue-grey);
  --focus: var(--gold);
  color-scheme: dark;
}

/* Surfaces that stay dark in both themes */
.surface-dark,
.surface-card {
  --text: var(--ivory);
  --muted: var(--blue-grey);
  --accent-text: var(--gold);
  --line: rgba(163, 175, 186, 0.24);
  --field-bg: var(--ocean);
  --field-border: var(--blue-grey);
  --focus: var(--gold);
  color: var(--text);
}
.surface-dark { --page: var(--navy); background-color: var(--navy); }
.surface-card { --page: var(--ocean); background-color: var(--ocean); }

/* ------------------------------------------------------------ Base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; } /* stable gutter: the header does not shift when the intro ends */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--page);
  -webkit-font-smoothing: antialiased;
}
[id] { scroll-margin-top: 96px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.15; letter-spacing: 0.035em; }
h3 { font-size: 1.6rem; line-height: 1.25; letter-spacing: 0.02em; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .wrap { padding: 0 20px; } }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.muted { color: var(--muted); }

.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 50; padding: 10px 16px;
  background: var(--gold); color: var(--navy); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; outline-color: var(--ivory); }
/* Sticky only with working scripts: without them the open navigation would cover too much of the screen.
   "no-app" is set when app.js fails to load, so the page then behaves like the version without JavaScript. */
.js:not(.no-app) .site-header { position: sticky; top: 0; }

/* ------------------------------------------------------------ Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px;
  font: inherit; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.03em; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  border: 1px solid transparent; border-radius: 2px;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.button-gold { background-color: var(--gold); border-color: var(--gold); color: var(--navy); }
.button-gold:hover { background-color: var(--text); border-color: var(--text); color: var(--page); }
.button-outline { background-color: transparent; border-color: var(--gold); color: var(--text); }
.button-outline:hover { background-color: var(--gold); color: var(--navy); }
.button:disabled { opacity: 0.55; cursor: not-allowed; }
.button:disabled:hover { background-color: var(--gold); border-color: var(--gold); color: var(--navy); }

/* ------------------------------------------------------------ Header */
.site-header {
  position: relative; z-index: 20;
  border-bottom: 1px solid rgba(212, 175, 97, 0.3);
}
.header-bar { position: relative; display: flex; align-items: center; gap: 24px; min-height: 76px; }
/* Logo: emblem and wordmark as separate images, so the wordmark stays legible at header size */
.brand { display: inline-flex; align-items: center; gap: 14px; margin: 0; text-decoration: none; flex: none; }
.brand-emblem { display: block; height: 46px; width: auto; }
.brand-word { display: block; height: 14px; width: auto; }
.brand-footer .brand-emblem { height: 56px; }
.brand-footer .brand-word { height: auto; width: min(352px, calc(100vw - 130px)); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.site-nav ul a { text-decoration: none; font-size: 0.97rem; padding: 6px 0; border-bottom: 1px solid transparent; white-space: nowrap; }
.site-nav ul a:hover { border-bottom-color: var(--gold); }
.theme-toggle, .menu-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 12px;
  font: inherit; font-size: 0.9rem; color: var(--ivory); background: transparent; cursor: pointer;
  border: 1px solid rgba(163, 175, 186, 0.55); border-radius: 2px;
}
.theme-toggle:hover, .menu-toggle:hover { border-color: var(--gold); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.theme-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle[aria-pressed="true"] .icon-sun { display: block; }
.theme-toggle[aria-pressed="true"] .icon-moon { display: none; }
.menu-toggle { display: none; min-width: 7em; justify-content: center; } /* same width for both labels (Menü/Schließen, Menu/Close) */

@media (max-width: 56em) { /* em: the switch follows larger browser font sizes */
  .menu-toggle:not([hidden]) { display: inline-flex; }
  .header-bar { flex-wrap: wrap; }
  .header-bar > .brand { min-height: 76px; }
  .js:not(.no-app) .header-bar { flex-wrap: nowrap; }
  .js:not(.no-app) .site-header .brand { flex: 0 1 auto; min-width: 0; }
  .site-header .brand-word { min-width: 0; }
  .menu-toggle { margin-left: auto; flex: none; }
  .site-nav {
    width: 100%; margin-left: 0; flex-direction: column; align-items: stretch; gap: 16px;
    padding: 8px 0 24px;
  }
  .theme-toggle { align-self: flex-start; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav ul a:hover { border-bottom-color: var(--gold); }
  /* With the script the navigation opens and closes via the menu button; long menus scroll inside */
  .js:not(.no-app) .site-nav { position: absolute; top: 100%; left: 0; right: 0; padding: 8px 32px 28px;
    background-color: var(--navy); border-bottom: 1px solid rgba(212, 175, 97, 0.3);
    max-height: calc(100vh - 77px); max-height: calc(100dvh - 77px); overflow-y: auto; overscroll-behavior: contain; }
  .js:not(.no-app) .site-nav:not([data-open="true"]) { display: none; }
}
@media (max-width: 600px) {
  .js:not(.no-app) .site-nav { padding: 8px 20px 24px; }
  .header-bar { gap: 12px; }
  .brand { gap: 10px; }
  .site-header .brand-emblem { height: 36px; }
  .site-header .brand-word { height: auto; width: clamp(130px, calc(100vw - 205px), 250px); }
}
@media (max-width: 340px) {
  .site-header .brand-word { width: 118px; }
}

/* ------------------------------------------------------------ Hero */
.hero { padding: clamp(64px, 9vw, 128px) 0; border-bottom: 1px solid rgba(212, 175, 97, 0.3); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(40px, 7vw, 104px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.08; letter-spacing: 0.02em; color: var(--ivory); }
.hero-sub { margin-top: 24px; font-size: 1.25rem; max-width: 34ch; }
/* Current status of the offering, next to the title */
.status-panel { padding: clamp(24px, 3vw, 36px); border: 1px solid rgba(212, 175, 97, 0.55); border-radius: var(--radius); }
.status-title { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.status-panel p { margin-top: 14px; font-size: 1.05rem; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ Sections */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-alt { border-top: 1px solid var(--line); }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); max-width: 640px; }
.section-intro { margin-top: 14px; color: var(--muted); font-size: 1.1rem; }
/* Heading on the left, text on the right; one column on small screens */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(20px, 6vw, 88px); align-items: start; }
.split .section-head { margin-bottom: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.prose p, .prose ul { max-width: 68ch; }
.prose > * + * { margin-top: 18px; }
.contact-lines { list-style: none; margin: 0; padding: 0; }
.contact-lines li + li { margin-top: 8px; }
.contact-lines a { overflow-wrap: anywhere; }

/* ------------------------------------------------------------ Planned categories */
/* Cards: line icon, status, category, name, text, facts from site.json; no image areas.
   Flex instead of grid: the cards of a shorter last row share its full width, so no empty slot remains */
.product-list { display: flex; flex-wrap: wrap; gap: 28px; }
.product-list > .product-card { flex: 1 1 320px; min-width: 0; }
.product-card {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(28px, 3.2vw, 40px);
  border: 1px solid rgba(163, 175, 186, 0.28); border-radius: var(--radius);
}
.product-icon { width: 52px; height: 52px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.product-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; width: 100%; margin-bottom: 26px; }
.product-category { color: var(--muted); font-size: 0.95rem; }
.product-card .product-category + h3 { margin-top: 6px; }
.status-badge {
  flex: none; padding: 4px 10px; border: 1px solid var(--gold); border-radius: 2px;
  color: var(--gold); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}
.product-desc { margin-top: 10px; font-size: 1.05rem; }
.product-facts { width: 100%; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.95rem; }
.product-facts:empty { display: none; }
.product-facts div + div { margin-top: 8px; }
.product-facts dt { color: var(--muted); font-size: 0.82rem; letter-spacing: 0.04em; }
.product-facts dd { margin: 2px 0 0; }
.product-note {
  width: 100%; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.92rem;
}
.product-facts:not(:empty) + .product-note { border-top: 0; padding-top: 0; margin-top: 16px; }

/* ------------------------------------------------------------ Legal and status pages */
.legal-page { padding: clamp(56px, 8vw, 104px) 0 clamp(72px, 9vw, 120px); }
.legal-wrap { max-width: 820px; }
.legal-page h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.1; letter-spacing: 0.03em; }
/* Long German compounds (Datenschutzerklärung, Geschäftsbedingungen) must not overflow small screens */
.legal-page h1, .legal-page h2 { hyphens: auto; overflow-wrap: break-word; }
.legal-updated { margin-top: 14px; color: var(--muted); font-size: 0.95rem; }
.legal-page h2 {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 1.45rem; line-height: 1.3; letter-spacing: 0.02em;
}
.legal-page p, .legal-page ul { margin-top: 14px; max-width: 70ch; }
.legal-page ul { padding-left: 1.2em; }
.legal-page li + li { margin-top: 4px; }
.legal-address { line-height: 1.75; }
.status-page .button { margin-top: 18px; }
/* Draft label and status note of the terms */
.legal-badge {
  display: inline-block; margin-bottom: 18px; padding: 4px 10px; border: 1px solid var(--accent-text); border-radius: 2px;
  color: var(--accent-text); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}
.legal-page .legal-badge { margin-top: 0; }
.legal-notice { margin-top: 32px; padding: 20px 24px; border-left: 3px solid var(--gold); background-color: rgba(212, 175, 97, 0.1); max-width: 70ch; }
.legal-page .legal-notice h2 { margin-top: 0; padding-top: 0; border-top: 0; font-size: 1.2rem; }
.legal-page .legal-notice p { margin-top: 10px; }
.legal-page .contact-lines { padding-left: 0; }
.legal-page a { overflow-wrap: anywhere; }

/* ------------------------------------------------------------ Footer */
.site-footer { padding: 56px 0 44px; border-top: 1px solid rgba(212, 175, 97, 0.3); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 48px; align-items: start; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
/* Operator and register details (legal notice) on every page */
.footer-title { margin-bottom: 10px; font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.footer-operator p { font-size: 0.95rem; }
.footer-operator a { overflow-wrap: anywhere; }
.footer-links { grid-column: 1 / -1; list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-links a { font-size: 0.95rem; }
.footer-links a:hover { color: var(--gold); }

/* ------------------------------------------------------------ Intro
   The emblem outline is drawn, then filled; the letters follow one by one; finally emblem and wordmark
   move to their places in the header (positions are measured in app.js). */
.intro {
  display: none; position: fixed; inset: 0; z-index: 100; place-items: center;
  background-color: var(--navy); cursor: pointer;
  transition: background-color 0.8s ease;
}
.intro-on .intro { display: grid; }
/* Navy canvas while the intro covers the page (no light strip in the scrollbar gutter); released for the flight */
html.intro-on:not(.intro-leaving) { overflow: hidden; background-color: var(--navy); }
.intro-on .site-header .brand img { opacity: 0; }
.intro-stage { width: min(84vw, 1040px); }
.intro-logo { display: block; width: 100%; height: auto; overflow: visible; }
.intro-emblem, .intro-word { transform-box: fill-box; transform-origin: 0 0; }
.intro-shape {
  fill: var(--gold); fill-opacity: 0;
  stroke: var(--gold); stroke-width: 2.4; stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: intro-draw 1.6s cubic-bezier(0.6, 0, 0.3, 1) 0.25s forwards, intro-fill 0.8s ease-out 1.45s forwards;
}
.intro-letter {
  fill: var(--ivory); opacity: 0; transform: translateY(14px); transform-box: fill-box;
  animation: intro-letter 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: calc(1.35s + var(--i, 0) * 38ms);
}
/* Letter order for the stagger (no inline styles, so the strict content security policy can stay on) */
.intro-letter:nth-child(2) { --i: 1; }
.intro-letter:nth-child(3) { --i: 2; }
.intro-letter:nth-child(4) { --i: 3; }
.intro-letter:nth-child(5) { --i: 4; }
.intro-letter:nth-child(6) { --i: 5; }
.intro-letter:nth-child(7) { --i: 6; }
.intro-letter:nth-child(8) { --i: 7; }
.intro-letter:nth-child(9) { --i: 8; }
.intro-letter:nth-child(10) { --i: 9; }
.intro-letter:nth-child(11) { --i: 10; }
.intro-letter:nth-child(12) { --i: 11; }
.intro-letter:nth-child(13) { --i: 12; }
.intro-letter:nth-child(14) { --i: 13; }
.intro-letter:nth-child(15) { --i: 14; }
.intro-letter:nth-child(16) { --i: 15; }
@keyframes intro-draw { to { stroke-dashoffset: 0; } }
@keyframes intro-fill { to { fill-opacity: 1; stroke-opacity: 0; } }
@keyframes intro-letter { to { opacity: 1; transform: none; } }
.intro-skip {
  position: absolute; top: 18px; right: 18px; min-height: 42px; padding: 8px 16px;
  font: inherit; font-size: 0.9rem; color: var(--ivory); background: transparent; cursor: pointer;
  border: 1px solid rgba(163, 175, 186, 0.55); border-radius: 2px; transition: opacity 0.3s;
  --focus: var(--gold);
}
.intro-skip:hover { border-color: var(--gold); }
.intro.is-leaving { background-color: rgba(11, 34, 51, 0); pointer-events: none; }
.intro.is-leaving .intro-skip { opacity: 0; }
@media (max-width: 600px) { .intro-stage { width: 92vw; } }
@media (prefers-reduced-motion: reduce) { .intro-on .intro { display: none; } html.intro-on { overflow: auto; } }
