/* =========================================================================
   INDIGO ATOLL — Design System
   Ein Stylesheet. Keine Frameworks. Keine externen Requests.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------------------- */

:root {
  /* Farben */
  --ink:          #0A1826;   /* Nachtblau, Basis */
  --ink-soft:     #0F2438;   /* Nachtblau, angehoben */
  --ink-line:     #1B3247;   /* Trennlinien auf dunklem Grund */
  --sand:         #F5F1EA;   /* Sand, Hauptfläche */
  --sand-deep:    #EBE4D8;   /* Sand, abgesetzt */
  --gold:         #C9A961;   /* Champagner, einziger Akzent */
  --gold-soft:    #E0CE9E;
  --lagoon:       #5FB3B3;   /* Türkis, sehr sparsam */
  --text:         #14212E;
  --text-muted:   #5A6874;
  --text-invert:  #F5F1EA;
  --text-invert-muted: #A8B4BF;
  --white:        #FFFFFF;
  --danger:       #A8443A;

  /* Typografie
     Systemschriften: keine externen Requests, kein DSGVO-Problem.
     Zum Austausch gegen selbst gehostete Schriften (z.B. Cormorant Garamond /
     Jost): @font-face oben ergänzen und hier die erste Familie ersetzen. */
  --font-display: 'Iowan Old Style', 'Palatino Linotype', Palatino,
                  'Book Antiqua', Georgia, 'Times New Roman', serif;
  --font-body:    'Avenir Next', Avenir, 'Segoe UI', system-ui,
                  -apple-system, 'Helvetica Neue', Arial, sans-serif;

  /* Skala — fluid, clamp() statt Breakpoint-Sprüngen */
  --fs-hero:   clamp(2.75rem, 7vw, 5.5rem);
  --fs-h1:     clamp(2.25rem, 5vw, 3.75rem);
  --fs-h2:     clamp(1.75rem, 3.5vw, 2.75rem);
  --fs-h3:     clamp(1.25rem, 2vw, 1.6rem);
  --fs-lead:   clamp(1.05rem, 1.6vw, 1.3rem);
  --fs-body:   1rem;
  --fs-small:  0.875rem;
  --fs-label:  0.72rem;

  /* Rhythmus */
  --space-2xs: 0.375rem;
  --space-xs:  0.75rem;
  --space-sm:  1.25rem;
  --space-md:  2rem;
  --space-lg:  3.5rem;
  --space-xl:  6rem;
  --space-2xl: 9rem;

  /* Maße */
  --measure:      68ch;
  --wrap:         1240px;
  --wrap-narrow:  780px;
  --radius:       3px;
  --radius-lg:    4px;

  /* Bewegung */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur:  0.6s;

  --header-h: 76px;
}

/* -------------------------------------------------------------------------
   2. Reset
   ------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, video, svg { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-sm);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.005em; }

p { margin: 0 0 var(--space-sm); max-width: var(--measure); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0 0 var(--space-sm); padding-left: 1.15rem; }
li { margin-bottom: var(--space-2xs); }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

::selection { background: var(--gold); color: var(--ink); }

/* -------------------------------------------------------------------------
   3. Layout-Primitive
   ------------------------------------------------------------------------- */

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(100% - 2.5rem, var(--wrap-narrow));
  margin-inline: auto;
}

.section        { padding-block: var(--space-xl); }
.section--tight { padding-block: var(--space-lg); }
.section--dark  { background: var(--ink); color: var(--text-invert); }
.section--deep  { background: var(--sand-deep); }

.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--sand); }

.stack > * + * { margin-top: var(--space-sm); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--sand);
  padding: var(--space-xs) var(--space-sm);
}
.skip-link:focus { left: var(--space-sm); top: var(--space-sm); }

/* -------------------------------------------------------------------------
   4. Typografische Bausteine
   ------------------------------------------------------------------------- */

.label {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: var(--space-xs);
}

.section--dark .label { color: var(--gold-soft); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 62ch;
}

.section--dark .lead { color: var(--text-invert-muted); }

.muted { color: var(--text-muted); }
.small { font-size: var(--fs-small); }

/* Goldene Haarlinie als Trenner */
.rule {
  border: 0;
  height: 1px;
  background: var(--gold);
  opacity: 0.45;
  width: 64px;
  margin: var(--space-sm) 0;
}
.rule--full { width: 100%; opacity: 0.25; }
.rule--center { margin-inline: auto; }

.section-head {
  max-width: 62ch;
  margin-bottom: var(--space-lg);
}
.section-head--center {
  text-align: center;
  margin-inline: auto;
}
.section-head--center .rule { margin-inline: auto; }

/* -------------------------------------------------------------------------
   5. Buttons & Links
   ------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 2rem;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color 0.35s var(--ease),
              color 0.35s var(--ease),
              border-color 0.35s var(--ease),
              transform 0.35s var(--ease);
  text-align: center;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.btn--primary:hover { background: var(--gold-soft); border-color: var(--gold-soft); }

.btn--ghost {
  border-color: currentColor;
  color: var(--ink);
  opacity: 0.85;
}
.btn--ghost:hover { background: var(--ink); color: var(--sand); opacity: 1; }

/* Auf dunklem Grund muss der Ghost-Button hell sein — sonst dunkel auf dunkel. */
.section--dark .btn--ghost,
.hero .btn--ghost { color: var(--sand); }
.section--dark .btn--ghost:hover,
.hero .btn--ghost:hover { background: var(--sand); color: var(--ink); }

.btn--sm { padding: 0.65rem 1.4rem; font-size: 0.78rem; }
.btn--block { width: 100%; }

/* Textlink mit unterstrichener Goldlinie */
.link-under {
  display: inline-block;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--gold);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.link-under:hover { color: var(--gold); }

/* -------------------------------------------------------------------------
   6. Header & Navigation
   ------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color 0.45s var(--ease),
              border-color 0.45s var(--ease);
  border-bottom: 1px solid transparent;
}

/* Transparent über dem Hero, massiv nach dem Scrollen */
.site-header.is-solid {
  background: rgba(10, 24, 38, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--ink-line);
}

/* Seiten ohne Hero brauchen den massiven Header sofort */
body.has-solid-header { padding-top: var(--header-h); }
body.has-solid-header .site-header {
  background: rgba(10, 24, 38, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--ink-line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.03em;
  color: var(--sand);
  line-height: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand span {
  font-family: var(--font-body);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav a {
  font-size: 0.82rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-invert-muted);
  position: relative;
  padding-block: 4px;
  transition: color 0.3s var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav a:hover,
.nav a[aria-current='page'] { color: var(--sand); }
.nav a:hover::after,
.nav a[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Sprachumschalter */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-invert-muted);
}
.lang-switch a { color: inherit; padding: 2px; }
.lang-switch a[aria-current='true'] { color: var(--gold); }
.lang-switch span { opacity: 0.35; }

/* Mobile-Toggle */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--sand);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* -------------------------------------------------------------------------
   7. Hero
   ------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
  color: var(--text-invert);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 26s var(--ease) infinite alternate;
}

@keyframes kenburns {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(-1.5%, -1.5%, 0); }
}

.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10,24,38,0.92) 0%, rgba(10,24,38,0.35) 45%, rgba(10,24,38,0.55) 100%);
}

.hero__body {
  position: relative;
  z-index: 1;
  padding-block: var(--space-xl) var(--space-lg);
  width: 100%;
}

.hero__title {
  font-size: var(--fs-hero);
  color: var(--sand);
  margin-bottom: var(--space-sm);
  max-width: 16ch;
}

.hero__lead {
  color: var(--text-invert-muted);
  font-size: var(--fs-lead);
  max-width: 52ch;
  margin-bottom: var(--space-md);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Kompakter Hero für Unterseiten */
.hero--page {
  min-height: 62svh;
  align-items: center;
}
.hero--page .hero__body { padding-block: var(--space-xl); }

.scroll-cue {
  position: absolute;
  bottom: var(--space-md);
  right: 0;
  z-index: 1;
  writing-mode: vertical-rl;
  font-size: var(--fs-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-invert-muted);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.scroll-cue::after {
  content: '';
  width: 1px;
  height: 56px;
  background: linear-gradient(var(--gold), transparent);
}

/* -------------------------------------------------------------------------
   8. Karten (Destinationen)
   ------------------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: var(--space-md);
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(20, 33, 46, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}
.card:hover { transform: translateY(-5px); border-color: var(--gold); }

.card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--sand-deep);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.card:hover .card__media img { transform: scale(1.06); }

.card__country {
  position: absolute;
  top: var(--space-xs);
  left: var(--space-xs);
  background: rgba(10, 24, 38, 0.82);
  color: var(--gold-soft);
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius);
}

.card__body {
  padding: var(--space-sm);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--space-xs);
}

.card__title { font-size: 1.35rem; margin: 0; }

.card__special {
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin: 0;
  flex: 1;
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
  padding-top: var(--space-xs);
  border-top: 1px solid rgba(20, 33, 46, 0.09);
  font-size: var(--fs-small);
}

.card__price { font-weight: 600; }
.card__price small { color: var(--text-muted); font-weight: 400; }

/* Preisniveau als Punktreihe */
.pricelevel {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}
.pricelevel i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  display: block;
}
.pricelevel i[data-off] { background: rgba(201, 169, 97, 0.28); }

/* Tag-Pillen */
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  border: 1px solid rgba(201, 169, 97, 0.5);
  border-radius: 100px;
  color: var(--text-muted);
}
.section--dark .tag { color: var(--text-invert-muted); }

/* -------------------------------------------------------------------------
   9. Filterleiste (Katalog)
   ------------------------------------------------------------------------- */

.filters {
  background: var(--white);
  border: 1px solid rgba(20, 33, 46, 0.09);
  border-radius: var(--radius-lg);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-lg);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--space-sm);
  align-items: end;
}

.field { display: flex; flex-direction: column; gap: 0.4rem; }

.field > label {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field select,
.field input[type='text'],
.field input[type='email'],
.field input[type='number'],
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: var(--sand);
  border: 1px solid rgba(20, 33, 46, 0.14);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.field select:focus,
.field input:focus,
.field textarea:focus {
  border-color: var(--gold);
  background: var(--white);
  outline: none;
}
.field textarea { min-height: 130px; resize: vertical; }

.filters__reset {
  font-size: var(--fs-small);
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  justify-self: start;
  padding-bottom: 0.7rem;
}
.filters__reset:hover { color: var(--gold); }

.result-count {
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.empty-state {
  text-align: center;
  padding: var(--space-xl) var(--space-sm);
  color: var(--text-muted);
}

/* -------------------------------------------------------------------------
   10. Split-Sektion (Bild + Text)
   ------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-lg);
  align-items: center;
}
.split__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split--reverse .split__media { order: 2; }

/* Länderteaser auf der Startseite */
.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.country-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: flex-end;
  color: var(--sand);
}
.country-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.country-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,24,38,0.9), rgba(10,24,38,0.05) 65%);
}
.country-card:hover img { transform: scale(1.07); }
.country-card__body {
  position: relative;
  z-index: 1;
  padding: var(--space-md) var(--space-sm);
}
.country-card__body h3 { color: var(--sand); margin-bottom: 0.35rem; }
.country-card__body p { color: var(--text-invert-muted); font-size: var(--fs-small); margin: 0; }

/* Nummerierte Schrittliste */
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(201, 169, 97, 0.4);
  margin: 0;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: var(--space-2xs);
}
.steps h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.steps p { font-size: var(--fs-small); color: var(--text-muted); margin: 0; }
.section--dark .steps p { color: var(--text-invert-muted); }

/* -------------------------------------------------------------------------
   11. Detailseite Destination
   ------------------------------------------------------------------------- */

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: var(--space-lg);
  align-items: start;
}

.factbox {
  background: var(--white);
  border: 1px solid rgba(20, 33, 46, 0.09);
  border-radius: var(--radius-lg);
  padding: var(--space-sm) var(--space-md) var(--space-md);
  position: sticky;
  top: calc(var(--header-h) + var(--space-sm));
}
.factbox dl { margin: 0; }
.factbox dt {
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: var(--space-sm);
}
.factbox dd {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
}
.factbox .btn { margin-top: var(--space-md); }

/* Reisezeit-Kalender */
.months {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  margin-top: 0.4rem;
}
.months span {
  font-size: 0.65rem;
  text-align: center;
  padding: 0.35rem 0;
  border-radius: 2px;
  background: rgba(20, 33, 46, 0.06);
  color: var(--text-muted);
}
.months span[data-best] {
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
}

/* Gut/weniger gut geeignet */
.suit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
  margin-block: var(--space-md);
}
.suit__col {
  padding: var(--space-sm);
  border-radius: var(--radius-lg);
  background: var(--white);
  border-left: 2px solid var(--gold);
}
.suit__col--against { border-left-color: var(--text-muted); }
.suit__col h3 { font-size: 1.05rem; }
.suit__col p { font-size: var(--fs-small); margin: 0; }

/* Resortliste */
.resorts { list-style: none; padding: 0; margin: 0; }
.resorts li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-xs);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(20, 33, 46, 0.09);
  margin: 0;
}
.resorts strong { font-weight: 600; }
.resorts .resort__price { color: var(--text-muted); font-size: var(--fs-small); }

/* Werbekennzeichnung — Pflicht, nicht Deko */
.ad-notice {
  font-size: var(--fs-small);
  color: var(--text-muted);
  background: var(--sand-deep);
  border-left: 2px solid var(--gold);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius);
  margin-block: var(--space-sm);
}

.affiliate-flag {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  vertical-align: super;
}

/* -------------------------------------------------------------------------
   12. KI-Chat
   ------------------------------------------------------------------------- */

.chat-fab {
  position: fixed;
  right: var(--space-sm);
  bottom: var(--space-sm);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  background: var(--ink);
  color: var(--sand);
  border: 1px solid var(--gold);
  border-radius: 100px;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 600;
  box-shadow: 0 10px 34px rgba(10, 24, 38, 0.28);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}
.chat-fab:hover { background: var(--gold); color: var(--ink); }
.chat-fab svg { width: 17px; height: 17px; }

.chat {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(20, 33, 46, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: min(74svh, 720px);
}

/* Panel-Variante (schwebend) */
.chat-panel {
  position: fixed;
  right: var(--space-sm);
  bottom: var(--space-sm);
  z-index: 95;
  width: min(420px, calc(100vw - 2 * var(--space-sm)));
  box-shadow: 0 24px 70px rgba(10, 24, 38, 0.32);
  border-radius: var(--radius-lg);
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.chat-panel[data-open] { opacity: 1; transform: none; pointer-events: auto; }
.chat-panel .chat { height: min(70svh, 620px); border: 0; border-radius: 0; }

.chat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-sm);
  background: var(--ink);
  color: var(--sand);
}
.chat__head h2, .chat__head p { margin: 0; }
.chat__head h2 { font-size: 1.1rem; color: var(--sand); }
.chat__head p { font-size: 0.75rem; color: var(--text-invert-muted); }
.chat__close { color: var(--text-invert-muted); font-size: 1.4rem; line-height: 1; padding: 4px 8px; }
.chat__close:hover { color: var(--sand); }

.chat__log {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  background: var(--sand);
}

.msg {
  max-width: 88%;
  padding: 0.85rem 1.05rem;
  border-radius: var(--radius-lg);
  font-size: 0.94rem;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.msg p { margin: 0 0 0.6rem; max-width: none; }
.msg p:last-child { margin-bottom: 0; }
.msg strong { font-weight: 600; }

.msg--user {
  align-self: flex-end;
  background: var(--ink);
  color: var(--sand);
  border-bottom-right-radius: 1px;
}
.msg--bot {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid rgba(20, 33, 46, 0.09);
  border-bottom-left-radius: 1px;
}
.msg--error {
  align-self: stretch;
  max-width: none;
  background: rgba(168, 68, 58, 0.08);
  border: 1px solid rgba(168, 68, 58, 0.3);
  color: var(--danger);
  font-size: var(--fs-small);
}

/* Tipp-Indikator */
.msg--typing { display: inline-flex; gap: 5px; align-items: center; padding: 1rem 1.1rem; }
.msg--typing i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-muted);
  animation: blink 1.3s var(--ease) infinite;
}
.msg--typing i:nth-child(2) { animation-delay: 0.18s; }
.msg--typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.22; } 30% { opacity: 1; } }

/* Vorschlagschips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 var(--space-sm) var(--space-sm);
  background: var(--sand);
}
.chip {
  font-size: 0.78rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid rgba(201, 169, 97, 0.65);
  border-radius: 100px;
  background: var(--white);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.chip:hover { background: var(--gold); color: var(--ink); }

/* Empfehlungskarten im Chat */
.rec-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-self: stretch;
}
.rec {
  display: flex;
  gap: var(--space-xs);
  align-items: center;
  background: var(--white);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 0.6rem;
  transition: background-color 0.3s var(--ease);
}
.rec:hover { background: var(--sand-deep); }
.rec img { width: 62px; height: 62px; object-fit: cover; border-radius: var(--radius); flex: none; }
.rec__body { min-width: 0; }
.rec__body strong { display: block; font-size: 0.92rem; }
.rec__body span { font-size: 0.76rem; color: var(--text-muted); }

.chat__form {
  display: flex;
  gap: var(--space-xs);
  padding: var(--space-sm);
  border-top: 1px solid rgba(20, 33, 46, 0.1);
  background: var(--white);
}
.chat__form textarea {
  flex: 1;
  min-height: 46px;
  max-height: 130px;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(20, 33, 46, 0.14);
  border-radius: var(--radius);
  resize: none;
  line-height: 1.5;
}
.chat__form textarea:focus { border-color: var(--gold); outline: none; }
.chat__send {
  flex: none;
  width: 46px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--ink);
  border-radius: var(--radius);
  transition: background-color 0.3s var(--ease);
}
.chat__send:hover:not(:disabled) { background: var(--gold-soft); }
.chat__send:disabled { opacity: 0.45; cursor: not-allowed; }
.chat__send svg { width: 19px; height: 19px; }

.chat__disclaimer {
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: 0 var(--space-sm) var(--space-sm);
  background: var(--white);
  margin: 0;
  max-width: none;
}

/* -------------------------------------------------------------------------
   13. Formulare
   ------------------------------------------------------------------------- */

.form-card {
  background: var(--white);
  border: 1px solid rgba(20, 33, 46, 0.09);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-sm);
}
.form-grid .field--wide { grid-column: 1 / -1; }

.checkbox {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: var(--fs-small);
  color: var(--text-muted);
  line-height: 1.55;
}
.checkbox input { margin-top: 0.28rem; flex: none; width: 17px; height: 17px; accent-color: var(--gold); }
.checkbox a { text-decoration: underline; text-underline-offset: 3px; }

.form-note {
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

/* Newsletter-Band */
.newsletter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  align-items: center;
}
.newsletter form { display: flex; flex-direction: column; gap: var(--space-xs); }
.newsletter .row { display: flex; gap: var(--space-xs); flex-wrap: wrap; }
.newsletter input[type='email'] {
  flex: 1;
  min-width: 200px;
  padding: 0.9rem 1rem;
  background: rgba(245, 241, 234, 0.07);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  color: var(--sand);
}
.newsletter input[type='email']::placeholder { color: var(--text-invert-muted); }
.newsletter input[type='email']:focus { border-color: var(--gold); outline: none; }
.newsletter .checkbox { color: var(--text-invert-muted); }

/* Preis-Panel (Premium-Reiseplan) */
.price-panel {
  background: var(--white);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  text-align: center;
}
.price-panel .price {
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 1;
  display: block;
  margin-block: var(--space-xs);
}
.price-panel ul { text-align: left; list-style: none; padding: 0; margin-block: var(--space-md); }
.price-panel li {
  padding-left: 1.55rem;
  position: relative;
  font-size: var(--fs-small);
  margin-bottom: 0.65rem;
}
.price-panel li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 9px; height: 1px;
  background: var(--gold);
}

/* FAQ */
.faq details {
  border-bottom: 1px solid rgba(20, 33, 46, 0.12);
  padding: var(--space-sm) 0;
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.2rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  color: var(--gold);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: var(--space-xs); font-size: var(--fs-small); color: var(--text-muted); }

/* -------------------------------------------------------------------------
   14. Rechtstexte / Fließtext-Seiten
   ------------------------------------------------------------------------- */

.prose { max-width: var(--measure); }
.prose h2 { font-size: 1.65rem; margin-top: var(--space-lg); }
.prose h3 { font-size: 1.2rem; margin-top: var(--space-md); }
.prose p, .prose li { font-size: 0.97rem; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* Platzhalter, die vor dem Livegang ersetzt werden müssen */
.placeholder {
  background: rgba(201, 169, 97, 0.22);
  border-bottom: 1px dashed var(--gold);
  padding: 0 3px;
  font-weight: 600;
}

.notice {
  border-left: 2px solid var(--gold);
  background: var(--sand-deep);
  padding: var(--space-sm);
  border-radius: var(--radius);
  font-size: var(--fs-small);
  margin-block: var(--space-md);
}

/* -------------------------------------------------------------------------
   15. Footer
   ------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--text-invert-muted);
  padding-block: var(--space-lg) var(--space-md);
  font-size: var(--fs-small);
}
.site-footer .brand { margin-bottom: var(--space-sm); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-md);
  padding-bottom: var(--space-lg);
}
.footer-grid h4 {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-xs);
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid a:hover { color: var(--sand); }

.footer-bottom {
  border-top: 1px solid var(--ink-line);
  padding-top: var(--space-sm);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: space-between;
  font-size: 0.78rem;
}

/* -------------------------------------------------------------------------
   16. Scroll-Reveal
   ------------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* -------------------------------------------------------------------------
   17. Responsive
   ------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .detail-layout { grid-template-columns: 1fr; }
  .factbox { position: static; }
  .split--reverse .split__media { order: 0; }
}

@media (max-width: 820px) {
  :root { --space-xl: 4rem; --space-lg: 2.75rem; }

  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 24, 38, 0.985);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--ink-line);
    padding: var(--space-sm) 1.25rem var(--space-md);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
    max-height: calc(100svh - var(--header-h));
    overflow-y: auto;
  }
  .nav[data-open] { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding-block: 0.85rem; border-bottom: 1px solid var(--ink-line); font-size: 0.95rem; }
  .nav a::after { display: none; }

  .nav-actions .btn { display: none; }

  .hero { min-height: 92svh; }
  .scroll-cue { display: none; }

  .chat-panel {
    inset: 0;
    width: 100%;
    border-radius: 0;
  }
  .chat-panel .chat { height: 100svh; }
  .chat-fab span { display: none; }
  .chat-fab { padding: 1rem; }
}

@media (max-width: 520px) {
  .card-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------------
   18. Zugänglichkeit & Druck
   ------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__media img { animation: none; }
}

@media print {
  .site-header, .site-footer, .chat-fab, .chat-panel, .filters { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { min-height: auto; }
}
