/* Lilly Ettelbrück · Personal Branding & Reels in Saarbrücken
   Farben und Schriften aus Lillys Favoriten-Entwurf (Grün & Gelb). */

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  /* Farben */
  --ink: #24382B;          /* Tannengrün */
  --ink-deep: #1B2B21;     /* Tannengrün dunkel */
  --ink-night: #121D16;
  --sun: #FFE98A;          /* Hellgelb */
  --sun-light: #FFF3BF;
  --sage: #DCE5CC;         /* Salbei */
  --paper: #F6F1E7;        /* Beige */
  --white: #FFFFFF;        /* nur für die Instagram-Karte */
  --moss: #466A3A;         /* abgedunkelt für Kontrast ab 4,5:1 */
  --paper-dim: rgba(246, 241, 231, 0.74);
  --ink-soft: rgba(36, 56, 43, 0.78);
  --line-dark: rgba(36, 56, 43, 0.22);
  --line-light: rgba(246, 241, 231, 0.2);
  --glass: rgba(18, 29, 22, 0.68);
  --shadow-reel: 0 30px 60px -22px rgba(10, 18, 13, 0.6);

  /* Schrift */
  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Raster */
  --maxw: 1320px;
  --gutter: clamp(1rem, 4vw, 2.75rem);
  --nav-h: 72px;
  --section: clamp(5rem, 11vw, 9rem);
  --radius-reel: 22px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 { overflow-wrap: anywhere; min-width: 0; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--sun); color: var(--ink);
  padding: 0.75rem 1rem; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* Typo-Bausteine */
.eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 1.7vw, 1.6rem);
  line-height: 1;
  color: var(--moss);
  margin: 0 0 1rem;
}
[data-tone="dark"] .eyebrow { color: var(--sun); }

.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 6.25rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
  margin: 0;
}
.h2 em, .case-title em, .matte-title em, .works-next em { font-style: italic; color: var(--moss); }
[data-tone="dark"] .h2 em, [data-tone="dark"] .case-title em, [data-tone="dark"] .matte-title em { color: var(--sun); }

/* Textmarker in Hellgelb */
.hl {
  color: inherit;
  background-color: transparent;
  padding: 0 0.08em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background-image: linear-gradient(var(--sun), var(--sun));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 0% 0.42em;
  transition: background-size 1.1s var(--ease-out);
}
.hl.is-on, html:not(.motion) .hl { background-size: 100% 0.42em; }
[data-tone="dark"] .hl {
  background-position: 0 50%;
  background-size: 0% 100%;
  transition: background-size 1s var(--ease-out), color 0.3s 0.35s;
}
[data-tone="dark"] .hl.is-on, html:not(.motion) [data-tone="dark"] .hl { background-size: 100% 100%; color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 1.6rem;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1 var(--font-body);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: var(--sun-light); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--moss); }
.btn-line { border-color: var(--line-light); color: var(--paper); }
.btn-line:hover { border-color: var(--sun); color: var(--sun); }

.link-arrow {
  font-weight: 600; white-space: nowrap;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.35em;
}
.link-arrow span { display: inline-block; transition: transform 0.3s var(--ease-out); }
.link-arrow:hover span { transform: translateY(3px); }

/* Navigation */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--gutter);
  color: var(--paper);
  background-color: transparent;
  transition: transform 0.5s var(--ease-out), color 0.3s, background-color 0.3s;
}
.nav[data-tone="light"] { color: var(--ink); }
.nav.is-scrolled { background-color: var(--nav-bg, transparent); }
.nav.is-hidden { transform: translateY(-100%); }
.nav.menu-open { color: var(--paper); background-color: transparent; transform: none; }
.nav-brand {
  font-family: var(--font-display);
  font-size: 2rem; line-height: 1;
  text-decoration: none; letter-spacing: -0.01em;
}
.nav-right { display: flex; align-items: center; gap: 1.5rem; }
.nav-wa {
  font-weight: 600; font-size: 0.95rem;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.3em;
}
.nav-toggle {
  display: inline-flex; align-items: center; gap: 0.7rem;
  min-height: 44px; padding: 0;
  background: none; border: 0; color: inherit; cursor: pointer;
  font: 600 0.95rem/1 var(--font-body);
}
.nav-toggle-icon { position: relative; width: 26px; height: 12px; }
.nav-toggle-icon i {
  position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px;
  background: currentColor;
  transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out);
}
.nav-toggle-icon i:first-child { top: 1px; }
.nav-toggle-icon i:last-child { top: 9px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon i:first-child { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon i:last-child { top: 5px; transform: rotate(-45deg); }

/* Menü */
.menu {
  position: fixed; inset: 0; z-index: 40;
  background: var(--ink-deep); color: var(--paper);
  display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 2.5rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease-out);
  overflow-y: auto;
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu-inner { width: 100%; max-width: var(--maxw); margin-inline: auto; }
.menu-links { list-style: none; margin: 0 0 2.5rem; padding: 0; }
.menu-links li { overflow: hidden; }
.menu-links a {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 7rem);
  line-height: 1; letter-spacing: -0.02em;
  text-decoration: none; padding-block: 0.04em;
  transform: translateY(105%);
  transition: transform 0.7s var(--ease-out), color 0.2s;
}
.menu-links a:hover { color: var(--sun); }
.menu.is-open .menu-links a { transform: none; }
.menu-links li:nth-child(2) a { transition-delay: 0.05s, 0s; }
.menu-links li:nth-child(3) a { transition-delay: 0.1s, 0s; }
.menu-links li:nth-child(4) a { transition-delay: 0.15s, 0s; }
.menu-links li:nth-child(5) a { transition-delay: 0.2s, 0s; }
.menu-links li:nth-child(6) a { transition-delay: 0.25s, 0s; }
.menu-foot { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 0; color: var(--paper-dim); }
.menu-foot a { font-weight: 600; text-underline-offset: 0.3em; }
.menu-foot a:hover { color: var(--sun); }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  background: var(--ink-deep); color: var(--paper);
  padding-top: calc(var(--nav-h) + clamp(1rem, 4vh, 3rem));
  padding-bottom: clamp(3.5rem, 9vh, 6.5rem);
  overflow: clip;
}
.hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.hero-eyebrow { color: var(--paper-dim); }
.hero-title { margin: 0; font-weight: 400; color: var(--sun); }
.hero-title .line {
  display: block; overflow: hidden;
  font-family: var(--font-display);
  font-size: clamp(4.25rem, 10.5vw, 10rem);
  line-height: 0.9; letter-spacing: -0.03em;
  padding-bottom: 0.07em;
}
.hero-title .line > span { display: inline-block; }
.hero-sub {
  display: block; margin-top: 1rem;
  font-family: var(--font-body); font-weight: 600;
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  letter-spacing: 0.005em; color: var(--paper);
}
.hero-lede { max-width: 34rem; margin: 0.9rem 0 0; color: var(--paper-dim); }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }

/* Hero-Bild: drei Reels nebeneinander. Alle Maße hängen am mittleren Reel (--c),
   damit nichts überlappt oder abgeschnitten wird. */
.hero-reels {
  --c: clamp(200px, min(22vw, 50svh), 330px);     /* mittleres Reel, 3:4 */
  --s: calc(var(--c) * 0.7);                      /* Seiten-Reels, 9:16 */
  --rt: 1rem;                                     /* Oberkante der Reels */
  position: relative;
  height: calc(var(--rt) + var(--c) * 4 / 3 + 3rem);
}
.reel-slot {
  position: absolute; top: var(--rt); left: 50%; z-index: 1;
  width: var(--s);
  aspect-ratio: 9 / 16;
}
/* Mitte im 3:4-Format wie Lillys Original-Reel, damit nichts abgeschnitten wird */
.slot-c { width: var(--c); aspect-ratio: 3 / 4; translate: -50% 0; z-index: 2; }
.slot-l { translate: -142% 10%; rotate: -8deg; }
.slot-r { translate: 42% 13%; rotate: 7deg; }
.reel-par { width: 100%; height: 100%; }

.reel {
  position: relative; margin: 0;
  width: 100%; height: 100%;
  border-radius: var(--radius-reel);
  overflow: hidden;
  background: var(--ink-night);
  box-shadow: var(--shadow-reel);
  isolation: isolate;
}
.reel video, .reel img { width: 100%; height: 100%; object-fit: cover; }
.reel figcaption {
  position: absolute; left: 0.7rem; bottom: 0.7rem;
  background: var(--sun); color: var(--ink);
  font: 600 0.75rem/1 var(--font-body);
  padding: 0.45rem 0.7rem; border-radius: 999px;
}
.motion .hero-reels .reel { animation: float 7s ease-in-out infinite alternate; }
.motion .slot-l .reel { animation-delay: -2s; animation-duration: 8s; }
.motion .slot-r .reel { animation-delay: -4.5s; animation-duration: 6.5s; }
@keyframes float { from { translate: 0 -7px; } to { translate: 0 9px; } }

/* Intro-Zustand (nur mit Motion, Werte setzt main.js) */
.motion .hero-title .line > span { transform: translateY(105%); }
.motion .intro { opacity: 0; }
.motion .hero-reels .reel { opacity: 0; }

/* Arbeiten */
.works { background: var(--paper); padding-top: var(--section); }
.works-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.works-intro { max-width: 30rem; margin: 1.25rem 0 0; color: var(--ink-soft); }

.case {
  background: var(--case-bg, var(--sage));
  color: var(--ink);
  padding-block: clamp(3rem, 8vw, 6rem);
}
.case[data-tone="dark"] { color: var(--paper); }
.case-inner {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.case-media { display: flex; justify-content: center; min-width: 0; }
.reel-case { width: min(100%, 340px); height: auto; aspect-ratio: 9 / 16; }
.reel-case.ratio-34 { width: min(100%, 440px); aspect-ratio: 3 / 4; }
.case-kicker { font-weight: 600; font-size: 0.9rem; letter-spacing: 0.01em; margin: 0 0 1rem; opacity: 0.8; }
.case-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.95; letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}
.case-text p { max-width: 32rem; }
.case-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 1.5rem 0 0; }
.case-tags li {
  border: 1.5px solid currentColor; border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font: 600 0.8125rem/1 var(--font-body);
}

.sound-btn {
  position: absolute; right: 0.75rem; bottom: 0.75rem; z-index: 2;
  display: none; align-items: center; gap: 0.55rem;
  min-height: 44px; padding: 0 1rem;
  border: 0; border-radius: 999px;
  background: var(--glass); color: var(--paper);
  font: 600 0.8125rem/1 var(--font-body);
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color 0.25s;
}
.sound-btn:hover { background: var(--ink); }
.works.is-pinned .sound-btn { display: inline-flex; }
.sound-icon { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.sound-icon i { width: 3px; height: 100%; border-radius: 1px; background: currentColor; transform-origin: bottom; transform: scaleY(0.35); }
.sound-btn[aria-pressed="true"] .sound-icon i { animation: eq 0.8s ease-in-out infinite alternate; }
.sound-btn[aria-pressed="true"] .sound-icon i:nth-child(2) { animation-delay: -0.3s; }
.sound-btn[aria-pressed="true"] .sound-icon i:nth-child(3) { animation-delay: -0.55s; }
@keyframes eq { from { transform: scaleY(0.3); } to { transform: scaleY(1); } }

/* Gestapelte Reel-Bühne (nur mit Motion, Klasse setzt main.js) */
.works.is-pinned .works-track { position: relative; height: calc(var(--count) * 100svh); }
.works.is-pinned .works-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.works.is-pinned .case {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 0.5rem) 0 2rem;
  will-change: transform;
}
.works.is-pinned .case-inner { will-change: transform, opacity; }
.works.is-pinned .reel-case { width: auto; height: min(76svh, 660px); max-width: 100%; }

.works-next {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.25rem 2rem;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.works-next p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.6vw, 4rem); line-height: 1; letter-spacing: -0.02em;
}

/* Instagram */
.insta { background: var(--paper); padding-bottom: var(--section); }
.insta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 430px);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding-top: clamp(3rem, 6vw, 5rem);
  border-top: 1.5px solid var(--ink);
}
.insta-text { max-width: 28rem; margin: 1.25rem 0 0; color: var(--ink-soft); }
.ig-card {
  background: var(--white);
  border-radius: var(--radius-reel);
  box-shadow: var(--shadow-reel);
  padding: 1.25rem;
}
.ig-head { display: flex; align-items: center; gap: 1rem; color: var(--ink); text-decoration: none; }
.ig-avatar {
  flex: none; width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--sun);
}
.ig-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.ig-names { display: flex; flex-direction: column; gap: 0.15rem; line-height: 1.25; }
.ig-names strong { font-weight: 700; }
.ig-names span { color: var(--ink-soft); }
.ig-stats {
  display: flex; gap: 2.25rem;
  margin-top: 1.2rem; padding-top: 1.1rem;
  border-top: 1px solid var(--line-dark);
}
.ig-stat { display: flex; flex-direction: column; gap: 0.3rem; margin: 0; }
.ig-stat strong {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.4rem, 4vw, 3rem); line-height: 1; letter-spacing: -0.02em;
}
.ig-stat span { font-size: 0.875rem; font-weight: 600; color: var(--ink-soft); }
.ig-stamp {
  display: flex; align-items: center; gap: 0.45rem;
  margin: 0.9rem 0 0; font-size: 0.8125rem; color: var(--ink-soft);
}
.ig-stamp::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-dark); }
.ig-card.is-live .ig-stamp::before { background: var(--moss); box-shadow: 0 0 0 3px var(--sage); }
.ig-follow { width: 100%; margin-top: 1.2rem; }

/* Leistungen */
.services { background: var(--sun); padding-block: var(--section); }
.service-list { list-style: none; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0; border-top: 1.5px solid var(--ink); }
.service {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: 0.75rem 2.5rem;
  align-items: baseline;
  padding-block: clamp(1.6rem, 3vw, 2.6rem);
  border-bottom: 1.5px solid var(--ink);
}
.service-name {
  margin: 0;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.3rem, 4.6vw, 4.3rem);
  line-height: 1; letter-spacing: -0.02em;
  transition: transform 0.5s var(--ease-out);
}
.service-for { margin: 0; font-weight: 600; }
.service-text { margin: 0; color: var(--ink-soft); }

@media (hover: hover) and (pointer: fine) {
  .service:hover .service-name { transform: translateX(0.35em); }
}

/* Über mich */
.about { background: var(--ink); color: var(--paper); padding-top: var(--section); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.arch { margin: 0; max-width: 470px; aspect-ratio: 3 / 4; border-radius: 999px 999px 18px 18px; overflow: hidden; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.about-copy .h2 { margin-bottom: 1.75rem; }
.about-copy p { max-width: 34rem; color: var(--paper-dim); }
.about-copy .about-heart {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.15rem); line-height: 1.15;
  color: var(--paper);
}
.about-heart em { color: var(--sun); }

.fight { margin: clamp(4rem, 9vw, 8rem) 0 0; }
.fight-frame { overflow: hidden; aspect-ratio: 16 / 9; max-height: 92svh; width: 100%; }
.fight-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.fight figcaption {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 4.2rem); line-height: 1.05; letter-spacing: -0.02em;
}

.matte { padding-block: clamp(4rem, 8vw, 7rem) var(--section); }
.matte-title {
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 4rem); line-height: 1; letter-spacing: -0.02em;
}
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.value { border-top: 1.5px solid var(--line-light); padding-top: 1.25rem; }
.value h4 { margin: 0 0 0.5rem; font-family: var(--font-display); font-weight: 400; font-size: 2.1rem; line-height: 1.05; color: var(--sun); }
.value p { margin: 0; color: var(--paper-dim); }

/* Ablauf */
.process { background: var(--sage); padding-block: var(--section); }
.steps {
  --p: 1;
  position: relative;
  list-style: none; padding: 0;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
}
.steps::before {
  content: ""; position: absolute;
  left: 28px; right: 0; top: 27px; height: 1.5px;
  background: var(--ink);
  transform-origin: left center;
  transform: scaleX(var(--p));
}
.motion .steps { --p: 0; }
.step-num {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  font-family: var(--font-display); font-size: 1.8rem; line-height: 1;
}
.step:nth-child(1) .step-num { background: var(--sun); }
.step:nth-child(3) .step-num { background: var(--sage); }
.step:nth-child(4) .step-num { background: var(--ink); color: var(--sun); }
.step h3 { margin: 1.25rem 0 0.5rem; font-family: var(--font-display); font-weight: 400; font-size: 2.3rem; line-height: 1; }
.step p { margin: 0; color: var(--ink-soft); }

/* Fragen */
.faq { background: var(--paper); padding-block: var(--section); }
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.faq-head { position: sticky; top: calc(var(--nav-h) + 2rem); }
.faq-list details { border-bottom: 1.5px solid var(--line-dark); }
.faq-list details:first-child { border-top: 1.5px solid var(--line-dark); }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-block: 1.5rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary h3 { margin: 0; font: 600 clamp(1.1rem, 1.6vw, 1.35rem)/1.3 var(--font-body); }
.faq-icon { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink); transition: transform 0.35s var(--ease-out), background-color 0.25s; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 12px; height: 1.5px; background: var(--ink);
  translate: -50% -50%;
}
.faq-icon::after { rotate: 90deg; }
details[open] .faq-icon { transform: rotate(45deg); background: var(--sun); }
.faq-list summary:hover .faq-icon { background: var(--sun); }
.faq-a { padding-bottom: 1.6rem; max-width: 42rem; color: var(--ink-soft); }
.faq-a p { margin: 0; }
.faq-list details::details-content {
  block-size: 0; overflow: clip;
  transition: block-size 0.45s var(--ease-out), content-visibility 0.45s allow-discrete;
}
.faq-list details[open]::details-content { block-size: auto; }

/* Kontakt */
.contact {
  position: relative;
  min-height: 92svh;
  display: flex; align-items: center;
  background: var(--ink-deep); color: var(--paper);
  padding-block: clamp(6rem, 12vw, 10rem);
  overflow: hidden;
}
.contact-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.contact::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--ink-deep) 0%, rgba(27, 43, 33, 0.82) 42%, rgba(27, 43, 33, 0.25) 100%);
}
.contact-inner { position: relative; z-index: 1; width: 100%; }
.contact-title {
  margin: 0;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(4rem, 11vw, 10rem);
  line-height: 0.9; letter-spacing: -0.03em;
  color: var(--sun);
}
.contact-title em { font-style: italic; }
.contact-text { max-width: 30rem; margin: 1.5rem 0 2rem; color: var(--paper-dim); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Footer */
.footer { background: var(--ink-deep); color: var(--paper-dim); border-top: 1px solid var(--line-light); padding-block: 2rem 2.5rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 2rem; }
.footer-mark { margin: 0; font-family: var(--font-display); font-size: 1.8rem; line-height: 1; color: var(--paper); }
.footer-claim { margin: 0; flex: 1 1 auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 0; }
.footer-links a { text-underline-offset: 0.3em; }
.footer-links a:hover { color: var(--sun); }

/* Rechtliches und 404 */
.legal { background: var(--paper); padding: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem)) 0 var(--section); min-height: 80svh; }
.legal .wrap { max-width: 860px; }
.legal h1 {
  margin: 0 0 2rem;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(3rem, 8vw, 6rem); line-height: 0.95; letter-spacing: -0.025em;
}
.legal h1 em { font-style: italic; color: var(--moss); }
.legal h2 { margin: 2.5rem 0 0.75rem; font: 600 1.25rem/1.3 var(--font-body); }
.legal .todo { background: var(--sun); padding: 1rem 1.25rem; border-radius: 12px; }

/* Reveal-Startzustand */
.motion [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(28px); }
[tabindex="-1"]:focus { outline: none; }

/* Tablet und Handy */
@media (max-width: 900px) {
  .hero { align-items: flex-start; padding-bottom: 2.5rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  /* Unter dem Text: Größe nach Bildschirmbreite, Abstand zum Button */
  .hero-reels {
    --c: clamp(150px, 40vw, 240px);
    height: calc(var(--rt) + var(--c) * 4 / 3 + 1.75rem);
    margin-top: 2rem;
  }

  .case-inner { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .works.is-pinned .case { align-items: flex-start; padding-top: calc(var(--nav-h) + 0.25rem); padding-bottom: 1rem; }
  .works.is-pinned .reel-case { height: min(46svh, 470px); }
  .works.is-pinned .case-title { font-size: clamp(2rem, 8.5vw, 3rem); margin-bottom: 0.75rem; }
  .works.is-pinned .case-text p { font-size: 1rem; line-height: 1.5; margin-bottom: 0; }
  .works.is-pinned .case-kicker { margin-bottom: 0.6rem; }
  .works.is-pinned .case-tags { margin-top: 1rem; }

  .service { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }

  .insta-grid { grid-template-columns: minmax(0, 1fr); }
  .ig-card { max-width: 430px; }

  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .arch { max-width: 420px; width: 88%; }
  .values { grid-template-columns: minmax(0, 1fr); }

  .steps { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .steps::before { left: 27px; right: auto; top: 0; bottom: 0; width: 1.5px; height: auto; transform-origin: center top; transform: scaleY(var(--p)); }
  .step { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 1.25rem; }
  .step-num { grid-row: span 2; }
  .step h3 { margin-top: 0.5rem; }

  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-head { position: static; }

  .contact::after { background: linear-gradient(180deg, rgba(27, 43, 33, 0.55) 0%, rgba(27, 43, 33, 0.9) 100%); }
}

@media (max-width: 520px) {
  .nav-wa { display: none; }
  .hero-actions .btn { width: 100%; }
  .contact-actions .btn { flex: 1 1 100%; }
  .works.is-pinned .case-tags { display: none; }
}

@media (max-height: 640px) and (max-width: 900px) {
  .works.is-pinned .reel-case { height: 38svh; }
  .works.is-pinned .case-text p { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
