/* fonts.css + base.css aus der Nuxt-Seite (app/assets/css), Pfade angepasst */
/* Schriften lokal (vorher Google Fonts) – keine Verbindung zu Google nötig.
   Nur lateinische Zeichensätze (Deutsch inkl. Umlaute/Sonderzeichen). Erzeugt aus
   fonts.googleapis.com, Lizenz: SIL Open Font License 1.1. */

/* latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(../Fonts/archivo-400-800-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(../Fonts/archivo-400-800-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../Fonts/jetbrains-mono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../Fonts/jetbrains-mono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../Fonts/jetbrains-mono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../Fonts/jetbrains-mono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Dive Connection Rostock – globale Grundlagen.
   Abschnittsspezifisches CSS liegt in der jeweiligen Vue-Komponente. */

:root {
  --sand: #F6F2EA;
  --foam: #EAE3D6;
  --foam-2: #EFE8DB;
  --ink: #14202B;
  --ink-2: #2E3A44;
  --muted: #4A5560;
  --teal: #1F6F76;
  --teal-dark: #175A60;
  --deep: #0D3B4F;
  --mint: #8FC2C4;
  --mist: #C9D8D6;
  --line: #14202B22;
  --line-soft: #14202B1A;                      /* Trennlinien zwischen Zeilen */
  --line-strong: #14202B33;                    /* Linie über einer Liste */
  --line-on-dark: #F6F2EA1F;                   /* Trennlinien auf dunklem Grund */
  --line-on-dark-strong: #F6F2EA33;
  --muted-dark: #9FB3B3;                       /* Nebentext auf dunklem Grund */
  --pale: #D3DFDD;                             /* Foto-Platzhalter, heller Text auf Blau */
  --mint-pale: #CFE7E6;                        /* Überzeile, Pfad auf Türkis/Blau */
  --max-w: 1280px;                             /* Inhaltsbreite */
  --gutter: 24px;                              /* seitlicher Rand */
  --shadow-btn: 0 8px 20px #0B2A2E40;
  --shadow-card: 0 10px 28px #14202B26;
  --font: 'Archivo', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Abstand oben und unten in jedem Inhaltsabschnitt – überall gleich, aufs Handy kleiner (unten) */
  --section-y: 96px;

  /* Bewegung: feste Tempo-Stufen für die ganze Seite */
  --ease: cubic-bezier(.2, .8, .2, 1);        /* weiches Ausklingen */
  --ease-soft: cubic-bezier(.4, 0, .2, 1);    /* sanft an- und auslaufen (Anheben – ohne Ruck am Anfang) */
  --t-hover: .2s;                              /* Farbe, Hintergrund, Schatten, Anheben */
  --t-lift: .4s;                               /* große Kacheln anheben (Reise-Teaser) – ruhiger als --t-hover */
  --t-state: .25s;                             /* Zustände: Auswahl, Dialog, Team-Foto */
  --t-close: .35s;                             /* Dialog schließen – etwas ruhiger als Öffnen */
  --t-page: .4s;                               /* Seitenwechsel (View Transitions) */
  --t-content: .5s;                            /* Textinhalte wechseln (Empfehlung, Stufe, Reise) */
  --t-layout: .45s;                            /* Menü auf/zu */
  --t-reveal: .7s;                             /* Einblenden beim Scrollen */

  --header-h: 62px;                            /* für Anker-Sprünge unter dem Sticky-Header */
}
@media (max-width: 559px) { :root { --section-y: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: none; scroll-padding-top: var(--header-h); }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:where(a):hover { color: var(--teal); }
img { display: block; }
[hidden] { display: none !important; }

/* Inhaltsbreite; .section dazu = Standardabstand eines Inhaltsabschnitts */
.container { max-width: var(--max-w); margin: 0 auto; width: 100%; }
.section { padding: var(--section-y) var(--gutter); }
/* Lange deutsche Wörter (z. B. „Datenschutzerklärung“) auf schmalen Bildschirmen trennen statt überlaufen */
@media (max-width: 599px) { h1, h2, h3 { hyphens: auto; overflow-wrap: break-word; } }

/* TYPO3: echte Seitenwechsel statt Nuxt-Router – die Überblendung übernimmt der Browser (gleiche Namen wie in Nuxt) */
@view-transition { navigation: auto; }

/* ---------- Seitenübergänge (View Transitions) ----------
   Header und Hinweisbalken haben eigene Namen und bleiben beim Seitenwechsel
   stehen; nur der Inhalt (root) blendet über. */
::view-transition-old(root), ::view-transition-new(root),
::view-transition-old(notice), ::view-transition-new(notice) {
  animation-duration: var(--t-page);
  animation-timing-function: ease-in-out;
}
::view-transition-group(site-header) { animation-duration: var(--t-page); }
/* Balken nicht verschieben: war die alte Seite gescrollt, läge er oberhalb des
   Bildschirms und rutschte sonst von oben herein – nur der Text blendet um */
::view-transition-group(notice) { animation: none; }

/* ---------- Gemeinsame Animationen ---------- */
@keyframes swapIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes swapOut { to { opacity: 0; transform: translateY(6px); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; } }
/* Inhaltswechsel: nur weich überblenden, keine Bewegung */
@keyframes contentIn { from { opacity: .25; } to { opacity: 1; } }
.is-swapping { animation: contentIn var(--t-content) ease-out; }

/* ---------- Typo-Bausteine ---------- */
.h2 { margin: 0; font: 700 clamp(30px, 3.6vw, 45px)/1.05 var(--font); text-wrap: balance; }
.h2--xl { font: 700 clamp(32px, 4.3vw, 56px)/1.02 var(--font); }
.eyebrow { font: 600 13px var(--mono); letter-spacing: .14em; color: var(--teal); }
.eyebrow--sm { font-size: 12px; letter-spacing: .12em; }
.eyebrow--light { color: var(--mint); }
.muted { color: var(--mist); }
.small { font-size: 14px; line-height: 1.5; }
.fact-k { font: 600 12px var(--mono); letter-spacing: .1em; color: var(--muted); }
.fact-v { font-size: 16px; font-weight: 600; line-height: 1.4; }
/* Abschnittskopf: Überzeile, Überschrift, Einleitung untereinander */
.section-head { display: flex; flex-direction: column; gap: 14px; }
.lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.lead--light { color: var(--mist); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  padding: 14px 22px;
  font: 600 16px var(--font);
  position: relative; isolation: isolate;   /* eigene Ebene: der Schatten (::after, z-index -1) bleibt beim Button */
  transition: background var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-hover) var(--ease), border-color var(--t-hover) ease;
}
/* Schatten fertig auf eigener Ebene, blendet nur über die Deckkraft ein – box-shadow selbst zu
   animieren lässt den Browser jedes Bild neu zeichnen (wie TripTeaser .card::after) */
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  box-shadow: var(--shadow-btn); opacity: 0; transition: opacity var(--t-hover) ease;
}
:where(button).btn { border: 0; cursor: pointer; background: none; }   /* :where = ohne Spezifität, Varianten gewinnen */
.btn-lg { padding: 16px 26px; font-weight: 700; }
.btn-sm { padding: 11px 18px; font-size: 15px; }
.btn-xs { padding: 12px 18px; font-size: 15px; }
.btn-dark { background: var(--ink); color: var(--sand); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-light { background: var(--sand); color: var(--ink); }
.btn-outline { border: 1px solid var(--ink); color: var(--ink); background: transparent; }
.btn-outline-light { border: 1px solid #F6F2EA55; color: var(--sand); }
/* Hover nur mit echter Maus – auf Touch bliebe er nach dem Antippen hängen und der Button sprünge */
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(0); }
  .btn-dark:hover { background: var(--teal); color: var(--sand); }
  .btn-teal:hover { background: var(--teal-dark); color: #fff; }
  .btn-light:hover { background: #fff; color: var(--ink); }
  :is(.btn-dark, .btn-teal, .btn-light):hover::after { opacity: 1; }
  .btn-outline:hover { background: var(--ink); color: var(--sand); }
  .btn-outline-light:hover { background: var(--sand); color: var(--ink); border-color: var(--sand); }
}

/* ---------- Bild-Slots (Foto mit Platzhalter) ---------- */
.slot { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--pale); }
.slot::before {
  content: attr(data-placeholder);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font: 500 14px var(--font); color: var(--muted);
}
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity var(--t-content) ease; }
/* Platzhaltertext nur, wenn es kein Foto gibt – sonst stünde er bis zum Laden da */
.slot:has(img)::before { content: none; }
/* Foto blendet ein, sobald es geladen ist (Klasse setzt PhotoSlot) */
.slot img.is-loading { opacity: 0; }

/* ---------- Häufigkeits-Marker (Reisen) ---------- */
.freq { width: 10px; height: 10px; flex: none; box-sizing: border-box; display: inline-block; }
.freq--h { background: var(--sand); }
.freq--o { background: var(--mint); }
.freq--g { border: 1.5px solid var(--sand); }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
