/* =====================================================================
   Schöne Momente Brake - Designsystem
   Dunkler Look wie auf Instagram: warmes Schwarz, gebrochenes Weiß, Grau, keine Akzentfarbe,
   Bebas Neue als Schauschrift, Glacial Indifference im Fließtext (wie in den Instagram-Grafiken).
   ===================================================================== */

@font-face { font-family: 'Bebas Neue'; src: url('../fonts/bebas-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Glacial Indifference'; src: url('../fonts/glacial-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Glacial Indifference'; src: url('../fonts/glacial-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #0d0c0b;
  --bg-2: #151311;
  --bg-3: #1e1b18;
  --ink: #f4f0e9;
  --ink-2: #cfc7ba;
  --ink-3: #9d9488;
  --hair: rgba(255, 255, 255, 0.09);
  --hair-2: rgba(255, 255, 255, 0.18);
  --akzent: #f4f0e9;          /* Schwarz-Weiß: Akzent ist das gebrochene Weiß */
  --akzent-2: #ffffff;
  --akzent-text: #f4f0e9;
  --akzent-tint: rgba(255, 255, 255, 0.08);
  --linie: rgba(255, 255, 255, 0.45);
  --hell-bg: #f3efe7;         /* der eine helle Block unter dem Hero */
  --hell-ink: #171411;
  --hell-ink-2: #4d453c;
  --hell-linie: rgba(23, 20, 17, 0.35);
  --r: 2px;
  --r-in: 0;
  --r-pill: 2px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --kopf-h: 72px;
  --wrap: 1240px;
  --schrift: 'Glacial Indifference', 'Avenir Next', 'Segoe UI', sans-serif;
  --schau: 'Bebas Neue', 'Oswald', Impact, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--kopf-h) + 16px); }
/* Weiches Scrollen nur am Desktop; auf dem Handy springen Anker sofort (weiches Scrollen wurde dort durch Berührung abgebrochen, Vorgabe 10.09.2026) */
@media (min-width: 1024px) { html { scroll-behavior: smooth; } }
/* Nichts darf die Seite breiter als den Bildschirm machen (Handy: kein seitliches Schieben) */
html, body { overflow-x: hidden; }
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }
body {
  font-family: var(--schrift); font-size: 1.1rem; line-height: 1.6; font-weight: 400;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 700; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--akzent-2); outline-offset: 3px; }
.nur-lesend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Typografie */
h1, .schau { font-family: var(--schau); font-weight: 400; letter-spacing: 0.02em; line-height: 0.96; text-transform: uppercase; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); }
h2 { font-family: var(--schrift); font-weight: 700; font-size: clamp(1.3rem, 1.9vw, 1.7rem); letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.3; color: var(--ink); }
h3 { font-family: var(--schrift); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.01em; line-height: 1.35; color: var(--ink); }
h4 { font-family: var(--schrift); font-weight: 700; font-size: 1.05rem; }
.strich { display: block; width: 36px; height: 1px; background: var(--linie); margin: 0 0 1.1rem; }
.mittig { text-align: center; }
.mittig .strich, .mittig p, .mittig .vorspann { margin-left: auto; margin-right: auto; }
p { max-width: 62ch; }
.vorspann { font-size: clamp(1.1rem, 1.4vw, 1.25rem); line-height: 1.6; color: var(--ink-2); max-width: 56ch; }
.grau { color: var(--ink-2); }
.klein { font-size: 0.92rem; color: var(--ink-3); }
.kicker {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 1.1rem;
}

/* Raster */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.abschnitt { padding: clamp(4rem, 8vw, 7.5rem) 0; }
.abschnitt--eng { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.abschnitt--dunkler { background: var(--bg-2); }
.gitter-2 { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .gitter-2 { grid-template-columns: 1fr 1fr; gap: 4rem; } .gitter-2--links-breit { grid-template-columns: 1.15fr 1fr; } .gitter-2--rechts-breit { grid-template-columns: 1fr 1.15fr; } }
.kopfzeile { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.kopfzeile p { margin-top: 0.9rem; }
.kopfzeile--mittig { margin-left: auto; margin-right: auto; text-align: center; }
.kopfzeile--mittig .strich, .kopfzeile--mittig p { margin-left: auto; margin-right: auto; }

/* Doppelrand-Rahmen: Bild sitzt wie eine Glasplatte in einer Schale */
.rahmen { position: relative; }
.rahmen > * { overflow: hidden; }
.rahmen img { width: 100%; height: 100%; object-fit: cover; }
.rahmen--4x3 > * { aspect-ratio: 4 / 3; }
.rahmen--5x4 > * { aspect-ratio: 5 / 4; }
.rahmen--3x2 > * { aspect-ratio: 3 / 2; }
.rahmen--4x5 > * { aspect-ratio: 4 / 5; }
.rahmen--3x4 > * { aspect-ratio: 3 / 4; }
.rahmen--1x1 > * { aspect-ratio: 1; }

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.95rem 1.9rem; min-height: 50px;
  border-radius: var(--r-pill); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap;
  background: var(--akzent); color: #0d0c0b; border: 1px solid var(--akzent);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.knopf .kreis { display: none; }
.knopf:hover { background: var(--akzent-2); border-color: var(--akzent-2); }
.knopf:active { background: var(--akzent); }
.knopf--hell { background: transparent; color: var(--ink); border-color: rgba(255,255,255,0.5); }
.knopf--hell:hover { border-color: var(--ink); background: rgba(255,255,255,0.05); }
.knopf--schlicht { padding: 0.95rem 1.9rem; }
.textlink { color: var(--ink); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: underline; text-decoration-color: var(--linie); text-underline-offset: 5px; }
.textlink:hover { text-decoration-color: var(--ink); }
.inline-link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--linie); text-underline-offset: 3px; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

/* Kopf */
.kopf {
  position: sticky; top: 0; z-index: 40; height: var(--kopf-h);
  background: rgba(13,12,11,0.72); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--hair);
}
.kopf .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.marke { display: flex; align-items: center; gap: 0.8rem; }
.marke img { width: 46px; height: 46px; }
.marke span { font-family: var(--schrift); font-weight: 700; font-size: 0.86rem; letter-spacing: 0.22em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.menue { display: none; gap: 1.6rem; }
.menue a { font-size: 0.86rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); transition: opacity 0.3s; opacity: 0.85; position: relative; padding: 0.4rem 0; white-space: nowrap; }
.menue a:hover, .menue a.aktiv { opacity: 1; }
.menue a.aktiv::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--ink); }
.kopf-rechts { display: flex; align-items: center; gap: 1rem; }
.kopf-tel { display: none; font-weight: 700; color: var(--ink-2); font-size: 0.9rem; letter-spacing: 0.04em; white-space: nowrap; }
.kopf-tel:hover { color: var(--ink); }
.kopf .knopf { min-height: 42px; padding: 0.6rem 1.3rem; background: transparent; color: var(--ink); border-color: rgba(255,255,255,0.6); }
.kopf .knopf:hover { background: var(--akzent); color: #0d0c0b; }
.burger { width: 44px; height: 44px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-radius: var(--r); border: 1px solid var(--hair-2); }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.5s var(--ease), opacity 0.3s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.kopf .knopf { display: none; }
@media (min-width: 1024px) { .menue { display: flex; } .kopf-tel { display: inline; } .kopf .knopf { display: inline-flex; } .burger { display: none; } }

/* Aufklappmenü (Handy) */
.overlay {
  position: fixed; inset: 0; z-index: 35; padding: calc(var(--kopf-h) + 1.5rem) 1.5rem 6rem;
  background: rgba(13,12,11,0.97);
  display: flex; flex-direction: column; gap: 0.2rem; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.overlay[data-offen="ja"] { opacity: 1; visibility: visible; }
.overlay a { font-family: var(--schau); font-size: 2.4rem; text-transform: uppercase; letter-spacing: 0.02em; padding: 0.45rem 0; border-bottom: 1px solid var(--hair); opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.overlay[data-offen="ja"] a { opacity: 1; transform: none; }
.overlay a:nth-child(1) { transition-delay: 0.05s } .overlay a:nth-child(2) { transition-delay: 0.1s } .overlay a:nth-child(3) { transition-delay: 0.15s } .overlay a:nth-child(4) { transition-delay: 0.2s } .overlay a:nth-child(5) { transition-delay: 0.25s } .overlay a:nth-child(6) { transition-delay: 0.3s } .overlay a:nth-child(7) { transition-delay: 0.35s }
.overlay .overlay-fuss { margin-top: auto; padding-top: 1.5rem; color: var(--ink-2); font-size: 0.95rem; }
body[data-menue="offen"] { overflow: hidden; }

/* Mobile Aktionsleiste: schlank und leicht transparent, wie bei Gut Altona */
.aktionsleiste {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex;
  background: rgba(0,0,0,0.42); -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3);
  border-top: 1px solid rgba(255,255,255,0.16);
  padding-bottom: env(safe-area-inset-bottom);
}
.aktionsleiste a { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 47px; padding: 0 0.4rem; font-size: 10px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: rgba(255,255,255,0.88); text-align: center; line-height: 1.2; }
.aktionsleiste a + a { border-left: 1px solid rgba(255,255,255,0.16); }
.aktionsleiste svg { display: none; }
@media (min-width: 1024px) { .aktionsleiste { display: none; } }
@media (max-width: 1023px) { body { padding-bottom: calc(48px + env(safe-area-inset-bottom)); } }

/* Einblenden beim Scrollen */
.zeig { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 1s var(--ease); }
.zeig.da { opacity: 1; transform: none; }
.zeig-2 { transition-delay: 0.12s } .zeig-3 { transition-delay: 0.24s } .zeig-4 { transition-delay: 0.36s }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .zeig { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Bedienhilfen (Seite Barrierefreiheit) */
html[data-schrift="gross"] { font-size: 118%; }
html[data-links="unterstrichen"] a { text-decoration: underline; text-underline-offset: 3px; }
html[data-bewegung="ruhig"] .zeig { opacity: 1; transform: none; transition: none; }
html[data-bewegung="ruhig"] *, html[data-bewegung="ruhig"] *::before, html[data-bewegung="ruhig"] *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
.bedienhilfen { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0 1.5rem; }
.bedienhilfen .knopf[aria-pressed="true"] { background: var(--akzent); color: #0d0c0b; border-color: var(--akzent); }

/* Sprungziele nicht unter dem festen Kopf verstecken (Schnell finden, Menü) */
[id] { scroll-margin-top: calc(var(--kopf-h) + 24px); }
