/* Umsetzung von Annies Feedback (24.10.2026). Wird nach style.css und refinement.css geladen. */

:root { --sage-tint: #E3EAE5; --sage-deep: #526858; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Sprachschalter: Knopf bleibt auch auf ES in der Fläche ---------- */
.lang { flex: 0 0 80px; width: 80px; }

/* ---------- Logo in der Mitte der Leiste (Desktop) ---------- */
@media (min-width: 901px) {
  .nav { display: grid; grid-template-columns: 1fr auto 1fr; }
  .nav .logo { grid-column: 2; grid-row: 1; justify-self: center; }
  .nav .menu { grid-column: 1; grid-row: 1; justify-self: start; gap: 22px; }
  .nav .right { grid-column: 3; grid-row: 1; justify-self: end; }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .nav .menu { gap: 12px; font-size: 12px; letter-spacing: .06em; }
  .nav .brand-logo { width: 140px; height: 47px; }
}

/* ---------- Auftakt: Showreel stumm ---------- */
.opener { padding: 18px 16px 0; }
/* Volles 16:9, nie höher als der Bildschirm unter der Menüleiste */
.opener-frame { position: relative; width: min(1400px, 100%, calc((100vh - 130px) * 16 / 9)); margin: 0 auto; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--sage-deep); box-shadow: var(--sh-lg); }
.opener-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.opener-sound { border: 0; cursor: pointer; font-family: inherit; position: absolute; right: 20px; bottom: 18px; padding: 14px 24px; border-radius: 999px; background: rgba(255,255,255,.92); box-shadow: 0 8px 24px rgba(0,0,0,.25); color: var(--ink); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
.opener-sound::before { content: "▶"; margin-right: 8px; font-size: 10px; }

/* ---------- Startbereich: Name, Rollen groß, Slogan klein, auf hellem Salbei ---------- */
.hero { background: var(--sage-tint); margin-top: 40px; padding: 80px 0 90px; }
.hero .name { font-size: 24px; font-weight: 500; }
.hero h1 { font-size: clamp(44px, 5.6vw, 82px); line-height: 1.02; letter-spacing: .01em; text-transform: uppercase; margin: 14px 0 22px; }
.hero .slogan { font-size: 22px; color: var(--sage-deep); font-weight: 500; }
.hero .cta { margin-top: 34px; }
.portrait .back { background: #8FA394; }
.portrait .photo { object-position: 50% 50%; }

/* ---------- Karussells (Logos und Galerie) ---------- */
.carousel { position: relative; display: flex; align-items: center; gap: 12px; }
.car-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; flex: 1; min-width: 0; padding: 8px 2px 18px; }
.car-track::-webkit-scrollbar { display: none; }
.car-track > * { scroll-snap-align: start; flex: none; }
.car-btn { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; background: #8FA394; color: #202a24; font-size: 28px; line-height: 1; display: grid; place-items: center; box-shadow: var(--sh-sm); transition: opacity .2s, background .2s; }
.car-btn:hover { background: #7f9584; }
.car-btn:disabled { opacity: .3; cursor: default; }

.logos-car { padding: 56px 0 24px; }
.logo-tile { width: 210px; height: 128px; border-radius: var(--r-md); background: #fff; box-shadow: var(--sh-sm); display: grid; place-items: center; padding: 18px; overflow: hidden; }
.logo-tile img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.logo-tile.dark { padding: 0; background: #0d0b22; }
.logo-tile.dark img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }

/* ---------- Bio: Foto und Text im Wechsel ---------- */
.bio { padding: 90px 0; }
.bio .wrap { display: grid; grid-template-columns: 1fr; gap: 80px; }
.bio-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.bio-row.flip .bio-photo { order: 2; }
.bio-photo { margin: 0; position: relative; }
.bio-photo::before { content: ""; position: absolute; inset: 24px -18px -18px 24px; background: #8FA394; border-radius: var(--r-lg); z-index: -1; }
.bio-row.flip .bio-photo::before { inset: 24px 24px -18px -18px; }
.bio-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--sh-md); }
.bio-photo figcaption { position: absolute; left: 12px; bottom: 10px; font-size: 10px; color: #fff; background: rgba(20,24,21,.78); padding: 3px 6px; border-radius: 3px; }
.bio-text p { font-size: 19px; line-height: 1.65; max-width: 560px; }
.bio-text p + p { margin-top: 18px; }
.bio-text strong { font-weight: 700; color: var(--sage-deep); }

/* ---------- Rollen-Band in Annies Salbei ---------- */
section.services { background: #8FA394; padding: 64px 0; color: #1d2620; }
.services h2 { text-transform: uppercase; letter-spacing: .02em; }
.services .services-intro { color: #1d2620; font-size: 19px; }

/* ---------- Showreel unten ---------- */
.reel .head { margin-bottom: 32px; }
.reel .video { width: min(calc(50% + 20% * var(--p, 1)), calc((100vh - 180px) * 16 / 9)); }

/* ---------- Referenzen ---------- */
.refs h2 { margin-bottom: 8px; }
.refs li { align-items: baseline; }
.refs li span { white-space: nowrap; }

/* ---------- Galerie zum Durchwischen ---------- */
.gal { background: var(--sage-tint); padding: 90px 0; }
.gal h2 { margin-bottom: 32px; }
.carousel.photos { padding: 0 16px; max-width: 1920px; margin: 0 auto; }
.carousel.photos figure { margin: 0; position: relative; height: 420px; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-md); }
.carousel.photos img { height: 100%; width: auto; display: block; }
.carousel.photos figcaption { position: absolute; left: 12px; bottom: 10px; font-size: 10px; color: #fff; background: rgba(20,24,21,.78); padding: 3px 6px; border-radius: 3px; }

/* ---------- Kontakt in Salbei ---------- */
.contact { background: #8FA394; color: #1d2620; }
.contact .wrap { align-items: start; }
.contact h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.15; }
.contact .intro p { font-size: 19px; }
.contact .sedcard-link { color: #1d2620; font-weight: 500; }
.direct a { display: inline-flex; align-items: center; gap: 12px; }
.direct a::before { display: none; }
.direct svg { flex: none; color: var(--sage-deep); }
.chips button { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }

/* ---------- Handy ---------- */
@media (max-width: 900px) {
  .opener { padding: 10px 8px 0; }
  .opener-frame { width: 100%; border-radius: 14px; }
  .opener-sound { right: 10px; bottom: 10px; padding: 8px 14px; font-size: 11px; }
  .hero { margin-top: 20px; padding: 24px 0 48px; }
  .hero h1 { font-size: clamp(34px, 10vw, 52px); }
  .hero .portrait { height: min(70svh, 560px); }
  .carousel .car-btn { display: none; }
  .logos-car { padding: 32px 0 8px; }
  .logo-tile { width: 150px; height: 96px; padding: 12px; }
  .bio { padding: 56px 0; }
  .bio .wrap { gap: 56px; }
  .bio-row { grid-template-columns: 1fr; gap: 28px; }
  .bio-row.flip .bio-photo { order: 0; }
  .bio-photo::before { inset: 14px -10px -10px 14px; }
  .bio-row.flip .bio-photo::before { inset: 14px -10px -10px 14px; }
  .bio-text p { font-size: 17px; }
  .reel .video { width: calc(100% - 32px + 16px * var(--p, 1)); }
  .carousel.photos { padding: 0; }
  .carousel.photos .car-track { padding-left: 16px; padding-right: 16px; scroll-padding: 16px; }
  .carousel.photos figure { height: 62svh; max-height: 520px; }
  .gal { padding: 56px 0; }
  section.services { padding: 44px 0; }
}
.menu a, .menu button.dd { white-space: nowrap; }

/* =====================================================================
   Farbkombis zum Vergleichen (nur Entwurf, Skript: farbe.js)
   ===================================================================== */
.farbtest { position: fixed; left: 12px; bottom: 12px; z-index: 60; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; max-width: calc(100% - 24px);
  padding: 5px 5px 5px 12px; border-radius: 999px; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--sh-md); font-size: 12px; }
.farbtest button { font: inherit; border: 0; border-radius: 999px; padding: 7px 11px; cursor: pointer; background: transparent; color: var(--ink); }
.farbtest button.on { background: var(--ink); color: #fff; }
@media (max-width: 900px) { .farbtest { bottom: 76px; } }

/* --- B: Salbei & Rosé — Annies Grün bleibt, dazu warmes Altrosa und tiefes Waldgrün --- */
html.f-rose { --bg: #FBF7F4; --sage-tint: #F3E3DE; --sage-deep: #3D5244; }
html.f-rose body { background: var(--bg); }
html.f-rose .hero, html.f-rose .gal { background: #F3E3DE; }
html.f-rose .portrait .back, html.f-rose .bio-photo::before { background: #D9A99B; }
html.f-rose section.services { background: #8FA394; }
html.f-rose .refs { background: #3D5244; }
html.f-rose .contact { background: #E8C4B8; }
html.f-rose .opener-frame { background: #3D5244; }
html.f-rose .nav .btn, html.f-rose .btn.sage, html.f-rose .chips button.on, html.f-rose .car-btn, html.f-rose .mbar .btn, html.f-rose .mfoot .btn { background: #C98B78; color: #fff; }
html.f-rose .slogan, html.f-rose .bio-text strong, html.f-rose .direct svg { color: #A9604C; }

/* --- C: Sol — Safran, Koralle, Ziegel: drei verwandte warme Töne, spanisch und strahlend --- */
html.f-sol { --bg: #FFF8F0; --sage-tint: #FCE3CF; --sage-deep: #8E3F2E; }
html.f-sol body { background: var(--bg); }
html.f-sol .hero, html.f-sol .gal { background: #FCE3CF; }
html.f-sol .portrait .back, html.f-sol .bio-photo::before { background: #F2B33D; }
html.f-sol section.services { background: #F2B33D; color: #3a2a12; }
html.f-sol .services .services-intro { color: #30220e; }
html.f-sol .refs { background: #8E3F2E; }
html.f-sol .refs .col + .col { border-left-color: rgba(255,255,255,.3); }
html.f-sol .contact { background: #F6C9A8; }
html.f-sol .opener-frame { background: #8E3F2E; }
html.f-sol .nav .btn, html.f-sol .btn.sage, html.f-sol .chips button.on, html.f-sol .car-btn, html.f-sol .mbar .btn, html.f-sol .mfoot .btn { background: #E2725B; color: #fff; }
html.f-sol .bio-text strong, html.f-sol .direct svg { color: #C4553F; }
html.f-sol .portrait .words span { color: #4A2E22; }
html.f-sol .gal-bars i.on { background: #E2725B; }

/* ---------- Slogan als schwebende Kärtchen über dem Foto (Annies Option 2) ---------- */
.portrait .words { position: absolute; inset: 0; margin: 0; pointer-events: none; z-index: 2; }
.portrait .words span { position: absolute; background: #fff; color: var(--ink); font-weight: 500; letter-spacing: -.01em; line-height: 1;
  padding: .45em .8em; border-radius: 999px; box-shadow: 0 10px 30px rgba(47,49,54,.16); white-space: nowrap; }
.portrait .words .w1 { top: 7%; left: -44px; font-size: clamp(22px, 2.3vw, 34px); }
.portrait .words .w2 { bottom: 16%; left: -52px; font-size: clamp(20px, 2vw, 30px); }
.portrait .words .w3 { bottom: 4%; right: -32px; font-size: clamp(20px, 2.1vw, 30px); }
html.f-rose .portrait .words span { color: #3D5244; }
@media (max-width: 900px) {
  .portrait .words .w1 { top: 6%; left: 8px; font-size: 20px; }
  .portrait .words .w2 { bottom: 11%; left: 8px; font-size: 18px; }
  .portrait .words .w3 { bottom: 3%; right: 8px; font-size: 19px; }
}

/* ---------- Logos frei stehend, in Farbe, ohne Kärtchen ---------- */
.logos-car .car-track { gap: 64px; align-items: center; padding: 18px 8px 22px; }
.logo-item { height: 64px; display: flex; align-items: center; }
.logo-item img { height: 100%; width: auto; max-width: 190px; object-fit: contain; }
.logo-item img[src*="rtl"], .logo-item img[src*="krone-tv"] { height: 34px; }
.logo-item img[src*="puls4"] { height: 46px; }
@media (max-width: 900px) {
  .logos-car .car-track { gap: 40px; padding: 10px 16px 16px; }
  .logo-item { height: 48px; }
  .logo-item img[src*="rtl"], .logo-item img[src*="krone-tv"] { height: 26px; }
  .logo-item img[src*="puls4"] { height: 34px; }
}

/* ---------- Galerie am Handy: Story-Striche + Tippen ---------- */
.gal-bars { display: none; }
@media (max-width: 900px) {
  .gal-bars { display: flex; gap: 3px; padding: 0 16px 12px; }
  .gal-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(47,49,54,.18); transition: background .25s; }
  .gal-bars i.on { background: var(--ink); }
  .carousel.photos figure { flex-basis: calc(100vw - 32px); cursor: pointer; }
  .carousel.photos img { width: 100%; object-fit: cover; }
}

/* Bio: Foto 2 und 3 im Hochformat, nicht breiter als nötig */
.bio-row.tall .bio-photo { max-width: 440px; width: 100%; justify-self: center; }
.bio-row.tall .bio-photo img { aspect-ratio: 4 / 5; object-position: 50% 50%; }
@media (max-width: 900px) { .bio-row.tall .bio-photo { max-width: 360px; } }

/* Slogan-Kärtchen: Kärtchen deckend weiß, die Schrift ist zu 35 % durchlässig */
.portrait .words span { -webkit-text-fill-color: rgba(47,49,54,.65); }
html.f-rose .portrait .words span { -webkit-text-fill-color: rgba(61,82,68,.65); }
html.f-sol .portrait .words span { -webkit-text-fill-color: rgba(74,46,34,.65); }

/* =====================================================================
   Glas-Version (nur Entwurf, Schalter „Glas“): Liquid Glass an ausgewählten Stellen.
   Glas wirkt nur, wenn dahinter etwas Bewegtes oder Farbiges liegt,
   deshalb bekommen Referenzen und Kontakt weiche Farbflächen hinter das Glas.
   ===================================================================== */
html.salbei-blobs, html { --blob1: #A9BDAE; --blob2: #F1F4F2; --blob3: #6F8676; }
html.f-rose { --blob1: #E8C4B8; --blob2: #8FA394; --blob3: #D9A99B; }
html.f-sol  { --blob1: #F2B33D; --blob2: #E2725B; --blob3: #F6C9A8; }

html.glas .lg, html.glas .nav::before, html.glas .opener-sound, html.glas .car-btn, html.glas .portrait .words span,
html.glas .refs .col, html.glas #contact-form, html.glas .mbar .btn, html.glas .direct a, html.glas .dd-menu {
  background: linear-gradient(135deg, rgba(255,255,255,.42), rgba(255,255,255,.14)) !important;
  backdrop-filter: blur(22px) saturate(1.9) !important; -webkit-backdrop-filter: blur(22px) saturate(1.9) !important;
  border: 1px solid rgba(255,255,255,.55) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(255,255,255,.25), inset 0 0 18px rgba(255,255,255,.12), 0 12px 34px rgba(30,30,30,.16) !important;
}
/* Menüleiste: noch flüssiger, mit Lichtkante oben */
html.glas .nav::before { background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.22)) !important; backdrop-filter: blur(26px) saturate(2) !important; -webkit-backdrop-filter: blur(26px) saturate(2) !important; }
/* Knopf auf dem Video und Pfeile: dunkle Schrift bleibt lesbar */
html.glas .opener-sound { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
html.glas .car-btn { color: var(--ink); }
/* Referenzen: Farbflächen hinter Glas-Spalten */
html.glas .refs { position: relative; }
html.glas .refs::before, html.glas .contact::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(38% 55% at 18% 30%, var(--blob1), transparent 70%), radial-gradient(32% 50% at 78% 70%, var(--blob2), transparent 70%), radial-gradient(30% 40% at 55% 15%, var(--blob3), transparent 70%);
  opacity: .75; filter: blur(10px); }
html.glas .refs .col { padding: 22px 22px 10px !important; border-radius: 18px !important; }
html.glas .refs .col + .col { border-left: 1px solid rgba(255,255,255,.55) !important; }
html.glas .refs .cols { gap: 18px; }
/* Kontakt: Formular als Glasplatte */
html.glas .contact { position: relative; overflow: hidden; }
html.glas .contact .wrap { position: relative; z-index: 1; }
html.glas #contact-form input, html.glas #contact-form textarea { background: rgba(255,255,255,.55); }
html.glas .direct a { color: var(--ink); }
@media (max-width: 900px) {
  html.glas .refs .col + .col { border-top: 1px solid rgba(255,255,255,.55) !important; }
  html.glas .refs .col { padding: 0 18px !important; }
}

/* Gestaltung A/B/D, 24.10.2026: einzeln zuschaltbar, ohne neue Bewegung. */
/* Versteckte Elemente verändern die Ausgangsansicht nicht. */
.farbtest button[hidden] { display: none; }
.farbtest button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 900px) {
  .farbtest { border-radius: 18px; padding: 6px; gap: 2px; }
  .farbtest button { min-height: 44px; min-width: 44px; padding: 7px 9px; }
  .farbtest > span { padding-left: 6px; }
}

/* B: statisches Seitenlicht, getrennte Korn-Ebene ohne gedämpften Inhalt. */
html.idee-b { --light-base: #E3EAE5; --light-warm: #F9F2DE; --light-corner: #B5C8B8; --light-white: #FFFEF5; }
html.idee-b.f-rose { --light-base: #F3E3DE; --light-warm: #FBF1E6; --light-corner: #C1CFBE; --light-white: #FFFCF2; }
html.idee-b.f-sol { --light-base: #FCE3CF; --light-warm: #F5C467; --light-corner: #F1B591; --light-white: #FFF8E7; }
html.idee-b .hero, html.idee-b .contact {
  position: relative; isolation: isolate;
  background: radial-gradient(ellipse at 90% 12%, var(--light-white), transparent 56%), radial-gradient(ellipse at 8% 85%, var(--light-corner), transparent 65%), radial-gradient(ellipse at 60% 72%, var(--light-warm), transparent 70%), var(--light-base);
}
html.idee-b .contact { background-position: 0 0; }
html.idee-b .hero::before, html.idee-b .contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23000' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}

/* Begrüßung: maximal 2,9 Sekunden, keine Lade- oder Scrollsperre. */
.welcome-intro { position: fixed; inset: 0; min-height: 100vh; min-height: 100lvh; z-index: 200; background: var(--sage-tint); overflow: hidden; }
.welcome-hallo { background: transparent; }
.welcome-cover { fill: var(--sage-tint); }
.welcome-skip { position: absolute; right: max(20px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); z-index: 2; min-height: 44px; padding: 10px 18px; background: #fff; border: 1px solid rgba(47,49,54,.2); border-radius: 999px; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.welcome-skip:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.intro-test { display: flex; align-items: center; gap: 4px; border-left: 1px solid #ddd; padding-left: 8px; }
.intro-test label { display: flex; align-items: center; gap: 4px; }
.intro-test select { font: inherit; color: var(--ink); background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 6px; min-height: 32px; }
.intro-test button:disabled { opacity: .45; cursor: default; }
@media (max-width: 900px) { .intro-test { border-left: 0; border-top: 1px solid #ddd; padding: 4px 0 0; width: 100%; } .intro-test select { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { .welcome-intro { display: none !important; } }

/* Bio als verzahntes Zickzack: Jede Spalte folgt ihrem eigenen Inhalt.
   Gemeinsame Grid-Zeilen halten Fotos unter dem vorherigen Text frei. */
@media (min-width: 901px) {
  .bio .wrap { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(6, auto); column-gap: 64px; row-gap: 40px; align-items: start; }
  .bio-row { display: contents; }
  .bio-row:nth-of-type(1) .bio-photo { grid-column: 1; grid-row: 1 / 3; }
  .bio-row:nth-of-type(1) .bio-text { grid-column: 2; grid-row: 1; align-self: center; }
  .bio-row:nth-of-type(2) .bio-photo { grid-column: 2; grid-row: 2 / 5; }
  .bio-row:nth-of-type(2) .bio-text { grid-column: 1; grid-row: 3; }
  .bio-row:nth-of-type(3) .bio-photo { grid-column: 1; grid-row: 4 / 7; }
  .bio-row:nth-of-type(3) .bio-ending { grid-column: 2; grid-row: 5 / 7; align-self: center; }
}

/* C: zwei ruhige Wellenkanten als wiederkehrende Stimm-Linie. */
html.idee-c .hero, html.idee-c section.services { position: relative; }
html.idee-c .hero::after, html.idee-c section.services::after, html.idee-c .section-wave-top {
  content: ""; position: absolute; bottom: -1px; left: 0; right: 0;
  height: clamp(24px, 4vw, 56px); background: var(--bg); pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M0 28 C180 4 280 4 450 28 S730 56 920 28 S1250 4 1440 28 L1440 60 L0 60Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M0 28 C180 4 280 4 450 28 S730 56 920 28 S1250 4 1440 28 L1440 60 L0 60Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
html.idee-c section.services::after { transform: scaleX(-1); }
.welcome-mask { position: absolute; inset: 0; width: 100%; height: 100%; }

/* B + Glas: Korn bleibt fein; keine zusätzliche unscharfe Blob-Ebene im Kontakt. */
html.idee-b.glas .contact::before { opacity: .05; filter: none; z-index: -1; }

/* Zwei Farbinseln, jeweils mit derselben ruhigen Kante oben und unten. */
.section-wave-top { display: none; }
html.idee-c .section-wave-top { display: block; top: -1px; bottom: auto; transform: rotate(180deg); }
html.idee-c section.services .section-wave-top { transform: scaleY(-1); }
@media (max-width: 900px) { html.idee-c .hero { padding-top: 52px; } }
/* Formulare dürfen auch knapp oberhalb des Handy-Breakpoints schrumpfen. */
#contact-form, #contact-form fieldset, #contact-form .two { min-width: 0; }
#contact-form input, #contact-form textarea { min-width: 0; max-width: 100%; }
.chips button { transition: background-color .2s, color .2s, box-shadow .2s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Sol: dunkle Schrift auf Koralle für gut lesbare Knöpfe. */
html.f-sol .nav .btn, html.f-sol .btn.sage, html.f-sol .chips button.on, html.f-sol .car-btn, html.f-sol .mbar .btn, html.f-sol .mfoot .btn { color: #30220e; }
.farbtest .design-panel-toggle { display: none; }
@media (max-width: 900px) {
  .farbtest .design-panel-toggle { display: block; }
  .farbtest.is-collapsed > :not(.design-panel-toggle) { display: none; }
}

/* Obere Kanten bewusst phasenversetzt statt spiegelbildlich zur Unterkante. */
html.idee-c .section-wave-top {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M0 38 C180 58 300 34 470 16 S760 18 940 40 S1250 35 1440 18 L1440 60 L0 60Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M0 38 C180 58 300 34 470 16 S760 18 940 40 S1250 35 1440 18 L1440 60 L0 60Z'/%3E%3C/svg%3E");
}

/* Rollenband: mehr Farbfläche zwischen Schrift und beiden Wellenkanten. */
html.idee-c section.services { padding-block: 94px; }
@media (max-width: 900px) { html.idee-c section.services { padding-block: 68px; } }

/* B: zurückhaltendes Licht auch im Rollenband, keine zusätzliche Akzentfarbe. */
html.idee-b { --band-base: #8FA394; }
html.idee-b.f-sol { --band-base: #F2B33D; }
html.idee-b section.services {
  background: linear-gradient(125deg, color-mix(in srgb, var(--band-base) 90%, white), var(--band-base) 62%, color-mix(in srgb, var(--band-base) 97%, var(--sage-deep)));
}
/* Glas bringt eigene Reflexe: darunter nur noch breite, sanfte Lichtnuancen. */
html.idee-b.glas .hero, html.idee-b.glas .contact {
  background: radial-gradient(ellipse at 90% 12%, color-mix(in srgb, var(--light-base) 65%, var(--light-white)), transparent 75%), radial-gradient(ellipse at 8% 85%, color-mix(in srgb, var(--light-base) 78%, var(--light-corner)), transparent 85%), radial-gradient(ellipse at 60% 72%, color-mix(in srgb, var(--light-base) 80%, var(--light-warm)), transparent 85%), var(--light-base);
}
html.idee-b.glas .hero::before, html.idee-b.glas .contact::before { opacity: .025; }
html.idee-b.glas section.services {
  background: linear-gradient(125deg, color-mix(in srgb, var(--band-base) 94%, white), var(--band-base) 70%);
}

/* B ohne Glas: Lichtverlauf in Rollenband und Referenzen klarer ablesbar. */
html.idee-b { --refs-base: #405847; }
html.idee-b.f-rose { --refs-base: #3D5244; }
html.idee-b.f-sol { --refs-base: #8E3F2E; }
html.idee-b:not(.glas) section.services {
  background: linear-gradient(120deg, color-mix(in srgb, var(--band-base) 72%, white), var(--band-base) 48%, color-mix(in srgb, var(--band-base) 78%, var(--sage-deep)));
}

/* Rosé bleibt Rosé: kein grüner Lichtfleck in Start- und Kontaktfläche. */
html.idee-b.f-rose { --light-base: #F3E3DE; --light-warm: #ECC7C1; --light-corner: #DFA8AE; --light-white: #FFF4F1; }
html.idee-b.f-rose .contact { --light-base: #E8C4C5; --light-warm: #E6B0BC; --light-corner: #D99BAA; --light-white: #FFF0F0; }
/* Referenzen: sichtbare breite Lichtfelder, Grundfarbe bleibt Dunkelgrün/Ziegel. */
html.idee-b { --refs-light: #748F7B; --refs-shadow: #293F30; }
html.idee-b.f-rose { --refs-light: #6D8C76; --refs-shadow: #263B2E; }
html.idee-b.f-sol { --refs-light: #B96B4B; --refs-shadow: #662D29; }
html.idee-b .refs {
  background: radial-gradient(ellipse at 5% 5%, var(--refs-light), transparent 72%), radial-gradient(ellipse at 100% 100%, var(--refs-shadow), transparent 75%), var(--refs-base);
}
/* Gleiche sichtbare Grundfläche auch unter den Glasplatten. */
html.idee-b.glas .refs::before { display: none; }

/* Neues Panel-Foto: Annie rechts im Bild auf dem Handy sichtbar halten. */
@media (max-width: 900px) { #galtrack img[src$="/24.jpg"] { object-position: 65% 50%; } }

/* Sedcard als gleichwertige Kontakt-Bubble mit PDF-Symbol. */
.contact .direct .sedcard-link { margin-top: 0; text-decoration: none; font-weight: 400; min-height: 44px; }

/* Luft unter der schwebenden Hauptleiste, inklusive ihres Sticky-Versatzes. */
.opener { padding-top: 62px; }
.opener-frame { width: min(1400px, 100%, calc((100svh - 180px) * 16 / 9)); }
@media (max-width: 900px) {
  .opener { padding-top: 36px; }
  .opener-frame { width: 100%; }
}

/* Ergänzte Referenzmarken: optisch passend zu den vorhandenen Logos. */
.logo-item img[src*="krone-at"] { height: 34px; }
.logo-item img[src*="rethink-media"] { height: 60px; }
@media (max-width: 900px) { .logo-item img[src*="krone-at"] { height: 26px; } .logo-item img[src*="rethink-media"] { height: 46px; } }

/* Handy: kein Doppeltipp-Zoom beim schnellen Durchtippen der Galerie und bei Karussells/Knöpfen */
.car-track, .car-track figure, .car-track img, .car-btn, .chips button, .lang, .burger { touch-action: manipulation; }
/* Videos immer mittig ausschneiden */
#openervideo, .video .slot video, .video .poster { object-position: 50% 50%; }
@media (max-width: 900px) { .logos-car .car-track { scroll-snap-type: none; } }

/* Play-Knopf ruhig halten (eigene Ebene, keine Subpixel-Sprünge) */
.video .play { transform: translateZ(0); will-change: transform; }
.video .play svg { display: block; }
/* Logo-Kopien nur am Handy für die Endlos-Schleife */
/* Logo-Kopien für die Endlos-Schleife jetzt auch am Computer */
.logos-car .car-track { scroll-snap-type: none; scroll-behavior: auto; }
@media (max-width: 900px) { .logos-car .car-track { scroll-behavior: auto; } }
.intro-laeuft .opener-sound { opacity: 0; transition: opacity .3s; }
/* Intro über allem, auch über der Menüleiste (Safari malt Glas-Ebenen sonst darüber) */
.welcome-intro { -webkit-transform: translate3d(0,0,0); transform: translate3d(0,0,0); }
header { transition: opacity .35s ease; }
.intro-laeuft header { opacity: 0; pointer-events: none; }

/* =====================================================================
   Handy-Umbau 25.10.2026 (Sicherung davor: sicherung/2026-10-25-vor-handy-umbau/)
   ===================================================================== */
.ref-tabs, .bio-dots, .form-more { display: none; }

@media (max-width: 900px) {
  /* ---------- 5. Mehr Größenkontrast: größere Überschriften, mehr Luft ---------- */
  h2 { font-size: clamp(34px, 9.5vw, 44px); line-height: 1.06; letter-spacing: -.02em; }
  .contact h2 { font-size: clamp(27px, 7.6vw, 34px); line-height: 1.15; }
  .gal h2, .refs h2 { margin-bottom: 26px; }
  section.services h2 { font-size: clamp(26px, 7.4vw, 32px); }

  /* ---------- 2. Startbereich wie ein Magazin-Cover ---------- */
  .hero .wrap { gap: 0; }
  .hero .portrait { order: -1; }
  .hero .hero-text { position: relative; z-index: 3; margin-top: -84px; padding: 0 4px; }
  .hero .name { font-size: 17px; margin-bottom: 2px; }
  .hero h1 { font-size: clamp(40px, 11.5vw, 52px); line-height: .98; margin: 0 0 22px; }
  /* die drei Worte links oben im freien Hintergrund, nicht auf Annie und nicht unter der Überschrift */
  .portrait .words .w1 { top: 5%; left: 10px; right: auto; bottom: auto; font-size: 18px; }
  .portrait .words .w2 { top: 15%; left: 10px; right: auto; bottom: auto; font-size: 18px; }
  .portrait .words .w3 { top: 25%; left: 10px; right: auto; bottom: auto; font-size: 18px; }
  .hero .portrait .frame::after { display: none !important; }

  /* ---------- 1. Bio als Karten zum Wischen ---------- */
  .bio { padding: 48px 0 40px; }
  .bio .wrap { display: flex !important; grid-template-columns: none !important; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 6px 16px 18px; scroll-padding: 16px; scrollbar-width: none; touch-action: pan-x pan-y; align-items: stretch; }
  .bio .wrap > .bio-row, .bio .wrap > .bio-row * { transform: none !important; }
  .bio .wrap > .bio-row .bio-photo, .bio .wrap > .bio-row .bio-text, .bio .wrap > .bio-row .bio-ending { margin: 0 !important; }
  .bio .wrap::-webkit-scrollbar { display: none; }
  .bio .wrap > .bio-row { flex: 0 0 86%; display: flex !important; flex-direction: column; gap: 0; margin: 0 !important; scroll-snap-align: center;
    background: var(--paper, #fff); border-radius: var(--r-lg); box-shadow: var(--sh-md); overflow: hidden; grid-row: auto !important; grid-column: auto !important; }
  .bio .wrap > .bio-row .bio-photo { order: 0 !important; max-width: none !important; width: 100%; margin: 0; }
  .bio .wrap > .bio-row .bio-photo::before { display: none; }
  .bio .wrap > .bio-row .bio-photo img { aspect-ratio: 1 / 1 !important; height: auto; border-radius: 0; box-shadow: none; }
  .bio .wrap > .bio-row:nth-of-type(1) .bio-photo img { object-position: 58% 50%; }
  .bio .wrap > .bio-row:nth-of-type(2) .bio-photo img { object-position: 50% 15%; }
  .bio .wrap > .bio-row:nth-of-type(3) .bio-photo img { object-position: 55% 28%; }
  .bio .wrap > .bio-row .bio-text, .bio .wrap > .bio-row .bio-ending { padding: 20px 20px 24px; }
  .bio .wrap > .bio-row .bio-text p { font-size: 16px; line-height: 1.6; max-width: none; }
  .bio-dots { display: flex; justify-content: center; gap: 7px; margin-top: 4px; }
  .bio-dots i { width: 6px; height: 6px; border-radius: 99px; background: rgba(47,49,54,.2); transition: width .3s, background .3s; }
  .bio-dots i.on { width: 20px; background: var(--ink); }

  /* ---------- 3. Referenzen als Reiter ---------- */
  .ref-tabs { display: flex; gap: 6px; margin: 4px 0 18px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.14); }
  .ref-tabs button { flex: 1; min-height: 44px; border: 0; border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; touch-action: manipulation; }
  .ref-tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
  .refs .cols { display: block; margin-top: 0; }
  .refs .col { display: none; padding: 0 !important; border: 0 !important; }
  .refs .col.active { display: block; }
  .refs .col h3 { display: none; }
  .refs .col ul, .refs .col.active ul { display: block; }

  /* ---------- 4. Kontaktformular schlanker ---------- */
  .form-more { display: inline-flex; align-self: start; border: 0; background: none; padding: 6px 0; font: inherit; font-size: 15px; font-weight: 500; color: var(--sage-deep, #526858); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
  #contact-form .form-extra { display: none; }
  #contact-form.show-extra .form-extra { display: grid; }
  #contact-form.show-extra .form-more { display: none; }
}
@media (max-width: 900px) {
  .bio .wrap > .bio-row .bio-text, .bio .wrap > .bio-row .bio-ending { padding: 16px 20px 22px !important; }
  .bio .wrap > .bio-row .bio-text > p:first-child { margin-top: 0 !important; }
  .bio .wrap > .bio-row .bio-ending .bio-text { padding: 0 !important; }
}

/* Videofläche oben: statt Farbfläche das erste Bild des Showreels, bis das Video läuft */
.opener-frame, html.f-rose .opener-frame, html.f-sol .opener-frame, html.f-gold .opener-frame {
  background: #25272b url("/img/opener-start.jpg") center / cover no-repeat; }
@media (max-width: 900px) {
  .opener-frame, html.f-rose .opener-frame, html.f-sol .opener-frame, html.f-gold .opener-frame { background-image: url("/img/opener-start-mobil.jpg"); }
}

/* Bio-Karten passen auf einen Handy-Bildschirm (zwischen Menüleiste und unterem Rand) */
@media (max-width: 900px) {
  .bio { scroll-margin-top: 84px; }
  .bio .wrap > .bio-row { height: min(calc(100svh - 120px), 600px); }
  .bio .wrap > .bio-row.open { height: auto; }
  .bio .wrap > .bio-row .bio-photo { flex: 0 0 auto; }
  .bio .wrap > .bio-row .bio-photo img { aspect-ratio: 3 / 2 !important; }
  .bio .wrap > .bio-row .bio-text, .bio .wrap > .bio-row .bio-ending { flex: 1 1 auto; min-height: 0; overflow: hidden; position: relative; }
  .bio .wrap > .bio-row .bio-ending .bio-text { overflow: hidden; height: 100%; }
  .bio .wrap > .bio-row .bio-text p { font-size: 15px; line-height: 1.55; }
  .bio .wrap > .bio-row .bio-text p + p { margin-top: 12px; }
  .bio-text.clipped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; pointer-events: none;
    background: linear-gradient(rgba(255,255,255,0), var(--paper, #fff)); }
  .bio-more { flex: none; align-self: flex-start; margin: 0 20px 18px; padding: 6px 0; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 500;
    color: var(--sage-deep, #526858); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; touch-action: manipulation; }
  .bio .wrap > .bio-row.open .bio-text { overflow: visible; }
}
/* Bio-Foto 2 am Handy: eigener Ausschnitt, nicht noch einmal verschieben */
@media (max-width: 900px) { .bio .wrap > .bio-row:nth-of-type(2) .bio-photo img { object-position: 50% 50%; } .bio-photo picture { display: contents; } }

/* Menüleiste blendet beim Runterscrollen aus, beim Hochscrollen ein */
header { transition: transform .55s cubic-bezier(.33,0,.15,1), opacity .55s ease; will-change: transform; }
header.nav-weg { transform: translateY(calc(-100% - 20px)); opacity: 0; transition-duration: .8s; }
@media (prefers-reduced-motion: reduce) { header { transition: none; } }
/* Sprungziele nicht mehr unter einer Leiste verstecken, die gerade weg ist */
section[id] { scroll-margin-top: 90px; }

/* =====================================================================
   Handy: ruhigere Farben (25.10.) – nur drei Flächentöne pro Farbkombi
   Grundton für fast alles, zarter Ton für Start + Kontakt, dunkler Ton nur für Referenzen.
   Die Akzentfarbe bleibt Knöpfen und kleinen Hervorhebungen vorbehalten.
   ===================================================================== */
@media (max-width: 900px) {
  html { --calm-bg: #FAFAF8; --calm-tint: #EEF2EF; --calm-deep: #526858; }
  html.f-rose { --calm-bg: #FBF7F4; --calm-tint: #F6ECE8; --calm-deep: #3D5244; }
  html.f-sol  { --calm-bg: #FFF8F0; --calm-tint: #FCEBDD; --calm-deep: #8E3F2E; }
  body, .bio, .reel, .gal, .logos-car, section.services, footer { background: var(--calm-bg) !important; }
  html:not(.idee-b) .hero, html:not(.idee-b) .contact { background: var(--calm-tint) !important; }
  html:not(.idee-b) .refs { background: var(--calm-deep) !important; }
  /* Rollen-Band: keine volle Farbfläche mehr, nur eine feine Linie */
  section.services { color: var(--ink) !important; border-top: 1px solid rgba(47,49,54,.1); border-bottom: 1px solid rgba(47,49,54,.1); padding: 40px 0 !important; }
  section.services h2, .services .services-intro { color: var(--ink) !important; }
  /* Wellenkanten passen sich den neuen Flächen an */
  .section-wave-top, .section-wave-bottom { color: var(--calm-tint) !important; }
  /* Videos auf dunklem Ton statt bunter Fläche */
  .opener-frame, .video { background-color: #25272b !important; }
  /* Farbflecken und Verläufe in den Flächen aus (außer mit B: Licht und Korn) */
  html:not(.idee-b) .hero::before, html:not(.idee-b) .hero::after, html:not(.idee-b) .contact::before, html:not(.idee-b) .refs::before { background-image: none !important; }
}

/* =====================================================================
   Kompakt-Umbau 25.10.: Rollen-Band entfernt, Satz unter den Rollen
   ===================================================================== */
.hero-sub { font-size: 17px; line-height: 1.55; max-width: 440px; margin: -6px 0 26px; color: var(--muted, #5b5e63); }
@media (max-width: 900px) { .hero-sub { font-size: 15px; margin: -10px 0 22px; } }

/* =====================================================================
   Computer: dieselben ruhigen Farben wie am Handy (drei Flächentöne)
   ===================================================================== */
@media (min-width: 901px) {
  html { --calm-bg: #FAFAF8; --calm-tint: #EEF2EF; --calm-deep: #526858; }
  html.f-rose { --calm-bg: #FBF7F4; --calm-tint: #F6ECE8; --calm-deep: #3D5244; }
  html.f-sol  { --calm-bg: #FFF8F0; --calm-tint: #FCEBDD; --calm-deep: #8E3F2E; }
  body, .bio, .reel, .gal, .logos-car, footer { background: var(--calm-bg) !important; }
  html:not(.idee-b) .hero, html:not(.idee-b) .contact { background: var(--calm-tint) !important; }
  .hero, .contact { color: var(--ink) !important; }
  .contact h2, .contact .intro p, .contact .sedcard-link { color: var(--ink) !important; }
  html:not(.idee-b) .refs { background: var(--calm-deep) !important; }
  .section-wave-top, .section-wave-bottom { color: var(--calm-tint) !important; }
  .opener-frame, .video { background-color: #25272b !important; }
  html:not(.idee-b) .hero::before, html:not(.idee-b) .hero::after, html:not(.idee-b) .contact::before, html:not(.idee-b) .refs::before { background-image: none !important; }
}

/* =====================================================================
   Computer: Bio kompakter – Fotos bleiben gleich groß, nur weniger Luft
   ===================================================================== */
@media (min-width: 901px) {
  .bio { padding: 56px 0 48px !important; }
  .bio .wrap { row-gap: 8px !important; }
  .bio .bio-row { margin-top: 0 !important; margin-bottom: 0 !important; }
}

/* ---------- Logos mit Finger oder Maus ziehen (27.10.) ---------- */
/* Waagrecht übernimmt das Skript, senkrecht scrollt die Seite normal weiter */
.logos-car .car-track { touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.logos-car .car-track.ziehen { cursor: grabbing; }
.logos-car .car-track img { -webkit-user-drag: none; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .logos-car .car-track { touch-action: auto; cursor: auto; } }
