/* kaiczerwonka.de – dunkles, statisches Stylesheet. Keine externen Fonts, kein Tracking. */

:root {
  --bg: #121315;          /* nicht 100 % Schwarz */
  --bg-alt: #17181b;
  --surface: #1c1e21;
  --surface-2: #232529;
  --text: #ecebe7;
  --muted: #a1a4ab;
  --faint: #6f737b;
  --line: #2b2e33;
  --accent: #108017;      /* Wonka-Grün (Flächen, Linien) */
  --accent-text: #64ac68; /* Wonka-Grün aufgehellt für Text auf Dunkel */
  --accent-ink: #ffffff;
  --radius: 10px;
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
a:hover { color: var(--accent-text); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); font-size: .8125rem; letter-spacing: .02em; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.3) blur(12px); -webkit-backdrop-filter: saturate(1.3) blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; text-decoration: none; letter-spacing: -.01em; }
.rec { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; align-items: center; }
nav a { text-decoration: none; font-size: .9375rem; color: var(--muted); }
nav a:hover { color: var(--text); }
nav .nav-cta { color: var(--text); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; }
nav .nav-cta:hover { border-color: var(--accent-text); color: var(--accent-text); }
@media (max-width: 1000px) { nav li:not(:last-child) { display: none; } }

/* Hero */
.hero { padding: 104px 0 76px; }
.meta { color: var(--muted); margin: 0 0 28px; }
.meta::before { content: "●"; color: var(--accent-text); margin-right: 8px; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.5rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; margin: 0 0 28px; }
.h1-sub { display: block; color: var(--muted); font-weight: 500; letter-spacing: -.025em; font-size: .62em; line-height: 1.15; margin-top: .25em; }
.lead { font-size: 1.1875rem; max-width: 680px; margin: 0 0 32px; color: #d9d8d4; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: .9375rem; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 64px 0 0; border-top: 1px solid var(--line); }
.facts div { padding: 18px 16px 0 0; }
.facts dt { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.facts dd { margin: 4px 0 0; font-weight: 600; }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, 1fr); row-gap: 8px; } }

.clients { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; background: var(--bg-alt); }
.clients p { margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.85; }
.clients .mono { display: block; text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; color: var(--faint); margin-bottom: 4px; }

/* Sections */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 40px; }
.kicker { color: var(--accent-text); margin: 0 0 10px; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -.025em; line-height: 1.1; margin: 0; }
h3 { font-size: 1.0625rem; margin: 0 0 8px; letter-spacing: -.01em; }
.section-intro { color: var(--muted); max-width: 640px; margin: 14px 0 0; }
.split { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 0; } }

/* Cards */
.grid.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1020px) { .grid.cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid.cards { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; transition: border-color .15s; }
.card:hover { border-color: #3a3d43; }
.card .tag { font-family: var(--mono); font-size: .7rem; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 12px; }
.card p { margin: 0; color: var(--muted); font-size: .9375rem; }
.card .more { margin-top: auto; padding-top: 16px; font-weight: 600; font-size: .9rem; text-decoration: none; }

/* Region */
.region { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 880px) { .region { grid-template-columns: 1fr; gap: 24px; } }
.region p { color: var(--muted); margin: 0 0 14px; max-width: 560px; }
.cities { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cities li { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; font-size: .9rem; }
.cities li.base { border-color: var(--accent); color: var(--text); }
.cities li.base::before { content: "● "; color: var(--accent-text); }
.cities li.de { border-style: dashed; color: var(--muted); }

/* Credits */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.credits { width: 100%; border-collapse: collapse; font-size: .9688rem; }
.credits th, .credits td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.credits tr:last-child td { border-bottom: 0; }
.credits th { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 500; }
.credits td:first-child { color: var(--muted); width: 88px; font-family: var(--mono); font-size: .8125rem; padding-top: 16px; }
.credits td:last-child { color: var(--muted); white-space: nowrap; }
.credits .sub { display: block; color: var(--muted); font-size: .875rem; }
@media (max-width: 600px) { .credits th:last-child, .credits td:last-child { display: none; } .credits th, .credits td { padding: 12px 14px; } .credits td:first-child { width: 64px; } }

.lists { margin-top: 24px; display: grid; gap: 8px; }
details.acc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
details.acc > summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 600; display: flex; align-items: center; gap: 12px; }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary::after { content: "+"; font-family: var(--mono); color: var(--muted); font-size: 1.1rem; margin-left: 12px; }
details.acc[open] > summary::after { content: "–"; }
details.acc > summary .desc { font-weight: 400; color: var(--faint); font-size: .875rem; }
details.acc > summary .count { margin-left: auto; color: var(--muted); font-weight: 400; }
@media (max-width: 700px) { details.acc > summary .desc { display: none; } }

.credit-list { list-style: none; margin: 0; padding: 0 20px 14px; font-size: .9375rem; }
.credit-list li { display: grid; grid-template-columns: 84px 1fr minmax(160px, 34%); gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.credit-list .y { color: var(--muted); font-family: var(--mono); font-size: .8125rem; padding-top: 2px; }
.credit-list .t strong { font-weight: 600; }
.credit-list .t .m { display: block; color: var(--muted); font-size: .85rem; }
.credit-list .r { color: var(--muted); font-size: .85rem; }
@media (max-width: 700px) { .credit-list li { grid-template-columns: 56px 1fr; column-gap: 12px; row-gap: 2px; } .credit-list .r { grid-column: 2; } }
.sources { color: var(--faint); font-size: .875rem; margin: 18px 0 0; }

/* Prose / profile */
.prose p { margin: 0 0 16px; max-width: 680px; color: #d9d8d4; }
.prose h3 { margin-top: 32px; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .85rem; color: var(--muted); }
.gear { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; margin: 0; padding: 0; list-style: none; }
.gear li { padding: 10px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }
.gear li strong { color: var(--text); font-weight: 600; display: block; font-size: .8rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 600px) { .gear { grid-template-columns: 1fr; } }

/* FAQ */
.faq-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.faq-nav a { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .875rem; text-decoration: none; color: var(--muted); background: var(--surface); }
.faq-nav a:hover { color: var(--text); border-color: #3a3d43; }
.faq-group { margin-bottom: 40px; }
.faq-group h3 { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-text); font-weight: 500; margin: 0 0 12px; }
.faq-group .items { display: grid; gap: 8px; }
.faq-group details.acc > summary { font-weight: 550; justify-content: space-between; }
.faq-group details.acc > summary::after { flex-shrink: 0; }
.faq-group .answer { padding: 0 20px 18px; color: var(--muted); max-width: 820px; }
.faq-group .answer p { margin: 0 0 12px; }
.faq-group .answer p:last-child { margin-bottom: 0; }
.faq-group .answer a { color: var(--text); }
table.price { width: 100%; max-width: 620px; border-collapse: collapse; margin: 4px 0 14px; font-size: .9375rem; }
table.price th, table.price td { padding: 9px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; font-weight: 400; }
table.price th { color: var(--text); padding-right: 16px; }
table.price th span { display: block; color: var(--faint); font-size: .8125rem; }
table.price td { color: var(--text); white-space: nowrap; text-align: right; font-family: var(--mono); font-size: .875rem; }

/* Anfrage */
.request { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 40px; }
@media (max-width: 880px) { .request { grid-template-columns: 1fr; padding: 28px; } }
.request p { color: var(--muted); margin: 12px 0 0; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.steps li { counter-increment: s; display: flex; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--muted); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: .8rem; color: var(--accent-text); padding-top: 3px; }
.steps li:first-child { border-top: 0; }

/* Contact */
.contact h2 { font-size: clamp(2rem, 5vw, 3.25rem); margin-bottom: 16px; }
.contact-lines { margin: 28px 0 0; color: var(--muted); font-size: .9375rem; }
.contact-lines a { color: var(--text); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: .875rem; color: var(--muted); background: var(--bg-alt); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer p { margin: 0; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 0; padding: 0; }
.site-footer a { text-decoration: none; }

/* Unterseiten */
.legal { padding: 72px 0 96px; }
.legal .prose { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 32px; }
.legal h2 { font-size: 1.25rem; margin: 36px 0 10px; }
.legal .todo { background: color-mix(in srgb, var(--accent) 22%, transparent); padding: 0 4px; border-radius: 3px; }

/* Team Postproduktion */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
@media (max-width: 1020px) { .team { grid-template-columns: 1fr; } }
.person { border-top: 2px solid var(--accent); padding: 18px 0 0; }
.person h3 { margin: 0 0 4px; }
.person .role { font-family: var(--mono); font-size: .75rem; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px; }
.person p { margin: 0 0 8px; color: var(--muted); font-size: .9375rem; }
.person .links { font-size: .875rem; }

/* Fotos */
.hero-image { margin: 0; }
.hero-image img { display: block; width: 100%; height: clamp(260px, 42vw, 620px); object-fit: cover; object-position: 74% 58%; }
.gallery-wrap { position: relative; --gal-pad: max(24px, calc((100vw - 1120px) / 2 + 24px)); --gal-h: clamp(260px, 38vw, 420px); }
.gallery { display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gal-pad); padding: 0 var(--gal-pad); scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%); }
.gallery::-webkit-scrollbar { display: none; }
.gallery:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 6px; }
.gallery figure { flex: 0 0 auto; margin: 0; scroll-snap-align: start; }
.gallery img { display: block; height: var(--gal-h); width: auto; max-width: 80vw; object-fit: cover; border-radius: var(--radius); background: var(--surface); }
.gal-btn { position: absolute; top: calc(var(--gal-h) / 2); transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: var(--text); cursor: pointer;
  background: color-mix(in srgb, var(--bg) 55%, transparent); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 10px 28px -12px rgba(0,0,0,.8);
  transition: opacity .25s ease, background .2s ease, transform .1s ease-out; }
.gal-prev { left: calc(var(--gal-pad) - 24px); }
.gal-next { right: calc(var(--gal-pad) - 24px); }
.gal-btn:hover { background: color-mix(in srgb, var(--surface) 80%, transparent); }
.gal-btn:active { transform: translateY(-50%) scale(.94); }
.gal-btn:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.gal-btn.is-off { opacity: 0; pointer-events: none; }
@media (hover: none) and (pointer: coarse) { .gal-btn { display: none; } }
@media (prefers-reduced-transparency: reduce) { .gal-btn { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.portrait { margin: 0 0 24px; }
.portrait img { display: block; width: 100%; height: auto; border-radius: var(--radius); }

/* ===== Bewegung (nur CSS, progressiv; bei "Bewegung reduzieren" aus) ===== */
@media (prefers-reduced-motion: no-preference) {

  /* Einstieg beim Laden */
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes recPulse { 0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); } 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 0%, transparent); } }
  .hero .meta, .hero h1, .hero .lead, .hero .actions, .hero .facts { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .hero h1 { animation-delay: .08s; }
  .hero .lead { animation-delay: .18s; }
  .hero .actions { animation-delay: .28s; }
  .hero .facts { animation-delay: .4s; }
  .rec { animation: recPulse 2.4s ease-in-out infinite; }

  /* Hover-Bewegung */
  .card { transition: border-color .2s, transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s; }
  .card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -18px rgba(0,0,0,.7); }
  .btn { transition: background .15s, border-color .15s, color .15s, transform .2s; }
  .btn:hover { transform: translateY(-2px); }
  .gallery img { transition: transform .5s cubic-bezier(.2,.7,.2,1), filter .5s; }
  .gallery figure:hover img { transform: scale(1.02); }

  /* Scroll-gekoppelte Animationen (Chrome, Edge, neuere Safari; sonst statisch) */
  @supports (animation-timeline: view()) {
    @keyframes reveal { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
    @keyframes revealSide { from { opacity: .35; transform: scale(.94); } to { opacity: 1; transform: none; } }
    @keyframes parallax { from { transform: translateY(-6%) scale(1.12); } to { transform: translateY(6%) scale(1.12); } }
    @keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
    @keyframes headerShade { from { box-shadow: none; } to { box-shadow: 0 10px 30px -20px rgba(0,0,0,.9); } }

    .section-head, .card, .person, .portrait, .faq-group, .credit-list li, .highlights tr,
    .region > div, .gear li, .request, .steps li, .contact .wrap > * {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
    .gallery figure {
      animation: revealSide linear both;
      animation-timeline: view(inline);
      animation-range: entry 0% entry 80%;
    }
    .hero-image { overflow: hidden; }
    .hero-image img {
      animation: parallax linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
    body::before {
      content: ""; position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 50;
      background: var(--accent-text); transform-origin: 0 50%;
      animation: progress linear both; animation-timeline: scroll(root);
    }
    .site-header { animation: headerShade linear both; animation-timeline: scroll(root); animation-range: 0 120px; }
  }
}

/* Set-Kommandos */
.calls { display: inline-grid; color: var(--accent-text); text-transform: uppercase; letter-spacing: .06em; }
.calls > span { grid-area: 1 / 1; opacity: 0; }
.calls > span:nth-child(2) { opacity: 1; }
.ticker { overflow: hidden; border-block: 1px solid var(--line); padding: 11px 0; background: var(--bg); -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; width: max-content; }
.ticker-track span { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font); font-weight: 500; font-size: .7rem; line-height: 1; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); white-space: nowrap; padding-right: 36px; }
.ticker-track span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-text); opacity: .8; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes callCycle { 0% { opacity: 0; transform: translateY(6px); } 3%, 17% { opacity: 1; transform: none; } 20%, 100% { opacity: 0; transform: translateY(-6px); } }
  .calls > span { animation: callCycle 10s infinite both; }
  .calls > span:nth-child(1) { animation-delay: 0s; }
  .calls > span:nth-child(2) { animation-delay: 2s; }
  .calls > span:nth-child(3) { animation-delay: 4s; }
  .calls > span:nth-child(4) { animation-delay: 6s; }
  .calls > span:nth-child(5) { animation-delay: 8s; }
  @keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  .ticker-track { animation: marquee 60s linear infinite; }
  .ticker:hover .ticker-track { animation-play-state: paused; }
}

/* Technik & Erfahrung */
.grid.cards.cards-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1020px) { .grid.cards.cards-3 { grid-template-columns: 1fr; } }
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 1020px) { .skills { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .skills { grid-template-columns: 1fr; } }
.skill { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.skill h3 { margin: 0 0 14px; font-size: 1.05rem; }
.skill .tags li { color: var(--text); }
@media (prefers-reduced-motion: no-preference) { @supports (animation-timeline: view()) { .skill { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; } } }

/* Mobil-Menü */
.mnav { display: none; position: relative; }
.mnav summary { list-style: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-content: center; gap: 6px; cursor: pointer; border: 1px solid var(--line); }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s ease; }
.mnav[open] summary span:first-child { transform: translateY(4px) rotate(45deg); }
.mnav[open] summary span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mnav ul { position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; margin: 0; padding: 8px; list-style: none; border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255,255,255,.12); box-shadow: 0 20px 40px -20px rgba(0,0,0,.9); transform-origin: top right; }
.mnav li a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; color: var(--text); text-decoration: none; }
.mnav li a:active, .mnav li a:hover { background: rgba(255,255,255,.06); }
@media (max-width: 1000px) {
  .mnav { display: block; order: 3; }
  nav { margin-left: auto; }
  nav .nav-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; }
}
@media (prefers-reduced-motion: no-preference) { @keyframes menuIn { from { opacity: 0; transform: scale(.96) translateY(-4px); } to { opacity: 1; transform: none; } } .mnav[open] ul { animation: menuIn .18s ease-out; } }
@media (prefers-reduced-transparency: reduce) { .mnav ul { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* Feinschliff: Anker unter Sticky-Header, Tippflächen */
section[id], .faq-group[id] { scroll-margin-top: 80px; }
.site-footer ul a { display: inline-flex; align-items: center; min-height: 44px; }
.brand { min-height: 44px; display: inline-flex; align-items: center; }

/* ===== Online-Produktionsbogen ===== */
.pb-title { font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 16px; }
.pb-alt { color: var(--muted); margin: 12px 0 0; }
.pb { display: grid; gap: 18px; margin-top: 8px; }
.pb-sec { margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); min-width: 0; scroll-margin-top: 80px; }
.pb-sec legend { padding: 0 8px; margin-left: -8px; font-weight: 700; font-size: 1.1rem; }
.pb-sec legend .mono { color: var(--accent-text); margin-right: 6px; }
.pb-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 14px; margin: 10px 0; }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld.full { grid-column: span 4; } .fld.half { grid-column: span 2; } .fld.quarter { grid-column: span 1; }
.fld .lbl { font-size: .8rem; color: var(--muted); }
.fld .lbl b { color: var(--accent-text); font-weight: 600; }
.pb input[type=text], .pb input[type=email], .pb input[type=tel], .pb input[type=date], .pb select, .pb textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; transition: border-color .15s, box-shadow .15s; }
.pb textarea { min-height: 88px; resize: vertical; }
.pb select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.pb input:focus, .pb select:focus, .pb textarea:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.pb input[type=date] { color-scheme: dark; }
.pb-group { margin: 16px 0 6px; }
.pb-group .grp { font-size: .8rem; color: var(--muted); margin: 0 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input, .yn input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; color: var(--muted); transition: background .15s, border-color .15s, color .15s, transform .1s; }
.chip span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--faint); margin-right: 8px; transition: background .15s, border-color .15s; }
.chip input:checked + span { color: var(--text); border-color: var(--accent-text); background: color-mix(in srgb, var(--accent) 18%, transparent); }
.chip input:checked + span::before { background: var(--accent-text); border-color: var(--accent-text); }
.chip input:focus-visible + span { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.chip:active span { transform: scale(.97); }
.pb-yn { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; margin: 12px 0; }
.yn { display: flex; align-items: center; gap: 8px; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); }
.yn > span { color: var(--muted); font-size: .92rem; margin-right: auto; }
.yn label { position: relative; cursor: pointer; }
.yn b { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; min-height: 36px; border: 1px solid var(--line); border-radius: 999px; font-weight: 500; font-size: .85rem; color: var(--muted); transition: background .15s, border-color .15s, color .15s; }
.yn input:checked + b { color: var(--text); border-color: var(--accent-text); background: color-mix(in srgb, var(--accent) 18%, transparent); }
.yn input:focus-visible + b { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.pb-send { padding: 24px; border: 1px solid var(--accent); border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.pb-hint { color: var(--muted); margin: 0 0 16px; }
.pb-status { margin: 14px 0 0; color: var(--accent-text); min-height: 1.4em; }
.btn-link { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; }
button.btn { font: inherit; font-weight: 600; cursor: pointer; border: 1px solid transparent; }
button.btn-ghost { border-color: var(--line); background: transparent; color: var(--text); }
@media (max-width: 760px) {
  .pb-sec { padding: 18px 16px; }
  .pb-row { grid-template-columns: 1fr 1fr; }
  .fld.full, .fld.half { grid-column: span 2; } .fld.quarter { grid-column: span 1; }
  .pb-yn { grid-template-columns: 1fr; }
}
@media (max-width: 420px) { .fld.quarter { grid-column: span 2; } }

/* Druck / Als PDF speichern */
@media print {
  :root { color-scheme: light; }
  body { background: #fff !important; color: #111 !important; }
  .site-header, .site-footer, .pb-send, .pb-alt, .skip, body::before, .ticker { display: none !important; }
  .section { padding: 0 !important; }
  .pb-sec { background: #fff; border-color: #bbb; break-inside: avoid; padding: 12px; }
  .pb-sec legend, .pb-title, .fld .lbl, .yn > span, .pb-group .grp { color: #111 !important; }
  .pb input, .pb select, .pb textarea { background: #fff !important; color: #111 !important; border-color: #999 !important; min-height: 0; padding: 4px 6px; }
  .chip span, .yn b { color: #444 !important; border-color: #bbb !important; min-height: 0; padding: 2px 8px; }
  .chip input:checked + span, .yn input:checked + b { color: #000 !important; border-color: #000 !important; background: #e8f3e9 !important; font-weight: 700; }
  * { animation: none !important; transition: none !important; }
}

/* ===== Bildreihen (Immersive, Live) ===== */
.media-row { display: grid; gap: 14px; margin-top: 28px; }
.media-3 { grid-template-columns: repeat(3, 1fr); }
.media-4 { grid-template-columns: repeat(4, 1fr); }
.media { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); aspect-ratio: 4 / 3; }
.media-4 .media { aspect-ratio: 3 / 4; }
.media img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .media img { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
  .media:hover img { transform: scale(1.03); }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .media { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
}
@media (max-width: 760px) {
  .media-3 { grid-template-columns: 1fr; }
  .media-3 .media { aspect-ratio: 16 / 10; }
  .media-4 { grid-template-columns: 1fr 1fr; }
}
.contact-avatar { display: block; width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin: 0 auto 18px; border: 2px solid var(--accent); }

/* ===== Bildschutz (erschwert Speichern, verhindert es nicht vollständig) ===== */
img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.gallery figure, .media, .portrait, .hero-image { position: relative; }
.gallery figure::after, .media::after, .portrait::after, .hero-image::after { content: ""; position: absolute; inset: 0; z-index: 1; background: transparent; }
.pb-note { font-size: .85rem; color: var(--muted); margin: 6px 0 4px; }
.pb-sec .grp { font-size: .8rem; color: var(--muted); margin: 16px 0 4px; }
.fld.tq { grid-column: span 3; }
@media (max-width: 760px) { .fld.tq { grid-column: span 2; } }

/* ===== Schwebendes Menü beim Scrollen (Pill, ohne Layoutsprung) ===== */
.site-header { transition: background-color .35s, border-color .35s, backdrop-filter .35s; }
.header-inner { position: relative; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.header-inner > * { position: relative; z-index: 1; }
.header-inner::before { content: ""; position: absolute; inset: 6px -18px; z-index: 0; border-radius: 999px; pointer-events: none;
  background: color-mix(in srgb, var(--surface) 78%, transparent); border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); box-shadow: 0 18px 40px -22px rgba(0,0,0,.9);
  opacity: 0; transform: scale(.97); transition: opacity .4s ease, transform .5s cubic-bezier(.2,.7,.2,1); }
.site-header.is-floating { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; animation: none; box-shadow: none; }
.site-header.is-floating .header-inner { transform: translateY(8px); }
.site-header.is-floating .header-inner::before { opacity: 1; transform: none; }
.site-header nav a.is-current { color: var(--text); }
.site-header nav a:not(.nav-cta) { position: relative; }
.site-header nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--accent-text); transform: scaleX(0); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.site-header nav a.is-current::after { transform: scaleX(1); }
@media (max-width: 1000px) { .header-inner::before { inset: 6px -10px; } }
@media (prefers-reduced-motion: reduce) { .site-header, .header-inner, .header-inner::before { transition: none; } }

/* ===== Akzentwort in Überschriften ===== */
h2 em, .h1-sub em { font-style: italic; color: var(--accent-text); font-weight: inherit; }

/* ===== Projekt-Highlights als Kacheln ===== */
.hl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 36px; }
.hl { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; min-height: 240px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    linear-gradient(160deg, color-mix(in srgb, var(--surface) 92%, #fff 4%), var(--surface));
  transition: transform .45s cubic-bezier(.2,.7,.2,1), border-color .3s, box-shadow .45s; }
/* Platzhalter-Motiv: angedeutete Wellenform */
.hl::before { content: ""; position: absolute; inset: auto -10% 34% -10%; height: 46px; z-index: -1; opacity: .18;
  background: repeating-linear-gradient(90deg, var(--accent-text) 0 2px, transparent 2px 7px);
  -webkit-mask: radial-gradient(60% 100% at 50% 50%, #000 30%, transparent 75%); mask: radial-gradient(60% 100% at 50% 50%, #000 30%, transparent 75%);
  transform: scaleY(.6); transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .4s; }
.hl > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hl.has-img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.75)); }
.hl.has-img::before { display: none; }
.hl-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hl-top .mono { font-size: .75rem; color: var(--muted); }
.hl-body h3 { font-size: 1.15rem; line-height: 1.2; margin: 0 0 6px; letter-spacing: -.01em; }
.hl-body p { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.45; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hl:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent-text) 45%, var(--line)); box-shadow: 0 22px 40px -28px rgba(0,0,0,.9); }
  .hl:hover::before { transform: scaleY(1); opacity: .3; }
}
@media (max-width: 1000px) { .hl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .hl { min-height: 190px; padding: 16px; } .hl-body h3 { font-size: 1rem; } }

/* ===== Filter nach Tätigkeit ===== */
.cfilter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.cfilter .mono { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-right: 4px; }
.cfilter button { font: inherit; font-size: .875rem; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .1s; }
.cfilter button:hover { color: var(--text); }
.cfilter button[aria-pressed="true"] { color: var(--text); border-color: var(--accent-text); background: color-mix(in srgb, var(--accent) 20%, var(--surface)); }
.cfilter button:active { transform: scale(.97); }
.cfilter button:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.lists li[hidden], .lists details[hidden] { display: none; }

/* ===== Ablauf als Zeitleiste ===== */
.tl-title { margin: 56px 0 0; font-size: 1.35rem; letter-spacing: -.01em; }
.timeline { --tl-x: 50%; position: relative; list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 22px; view-timeline-name: --tl; }
.timeline::before, .timeline::after { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--tl-x) - 1px); width: 2px; border-radius: 2px; background: var(--line); }
.timeline::after { background: var(--accent-text); transform-origin: top; }
.timeline li { position: relative; display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; }
.timeline li:nth-child(odd) .tl-card { grid-column: 1; grid-row: 1; }
.timeline li:nth-child(even) .tl-card { grid-column: 3; grid-row: 1; }
.tl-dot { grid-column: 2; grid-row: 1; justify-self: center; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-size: .78rem;
  background: var(--accent); color: #fff; border: 2px solid var(--accent-text); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent); }
.tl-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.tl-card h4 { margin: 4px 0 8px; font-size: 1.1rem; }
.tl-card p:last-child { margin: 0; color: var(--muted); font-size: .95rem; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes tlFill { from { transform: scaleY(0); } to { transform: scaleY(1); } }
    @keyframes tlDot { from { background: var(--bg); color: var(--muted); border-color: var(--line); box-shadow: none; } to { background: var(--accent); color: #fff; border-color: var(--accent-text); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent); } }
    @keyframes tlCard { from { opacity: .25; transform: translateY(24px); } to { opacity: 1; transform: none; } }
    .timeline::after { animation: tlFill linear both; animation-timeline: --tl; animation-range: cover 30% cover 75%; }
    .timeline li { view-timeline-name: --step; }
    .tl-dot { animation: tlDot linear both; animation-timeline: --step; animation-range: cover 40% cover 50%; }
    .tl-card { animation: tlCard linear both; animation-timeline: --step; animation-range: entry 0% cover 45%; }
  }
}
@media (max-width: 760px) {
  .timeline { --tl-x: 22px; }
  .timeline li { grid-template-columns: 44px 1fr; gap: 14px; }
  .timeline li:nth-child(n) .tl-card { grid-column: 2; }
  .tl-dot { grid-column: 1; }
}

/* ===== Zurück nach oben ===== */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 9; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  color: var(--text); text-decoration: none; background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 14px 30px -18px rgba(0,0,0,.9);
  opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; transition: opacity .3s, transform .4s cubic-bezier(.2,.7,.2,1), border-color .2s; }
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--accent-text); }
@media print { .to-top { display: none; } }
.request { grid-template-columns: 1fr; }
.request > div { max-width: 760px; }
@media (max-width: 1000px) { .header-inner::before { inset: 6px 10px; } }
.hl { min-width: 0; } .hl-body h3 { overflow-wrap: anywhere; hyphens: auto; }
/* Größere Projekt-Kacheln */
.hl-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hl { min-height: 340px; padding: 22px; }
.hl.has-img { min-height: 420px; }
.hl-body h3 { font-size: 1.35rem; }
.hl-body p { font-size: .9rem; }
.hl > img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .hl:hover > img { transform: scale(1.04); } }
@media (max-width: 1000px) { .hl-grid { grid-template-columns: repeat(2, 1fr); } .hl.has-img { min-height: 360px; } }
@media (max-width: 560px) { .hl-grid { grid-template-columns: 1fr; } .hl { min-height: 220px; } .hl.has-img { min-height: 340px; } }
.timeline .tl-card a { color: var(--accent-text); }
.facts { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(3, 1fr); row-gap: 8px; } }
@media (max-width: 520px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.hl-grid { grid-auto-flow: dense; }
.hl-wide { grid-column: span 2; }
@media (max-width: 560px) { .hl-wide { grid-column: auto; } }
.hl-grid { grid-auto-flow: row; }
@media (max-width: 1000px) { .hl-grid { grid-auto-flow: dense; } }
.hl.has-img .hl-top, .hl.has-img .hl-top .mono { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.hl.has-img::after { background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.05) 35%, rgba(0,0,0,.8)); }

/* Produktionsbogen: Hinweis, Locations, Kameras */
[hidden] { display: none !important; }
.pb-callout { margin: 0 0 22px; padding: 14px 18px; border: 1px solid color-mix(in srgb, var(--accent-text) 45%, var(--line)); border-left-width: 3px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 10%, transparent); }
.pb-callout p { margin: 0; font-size: .95rem; color: var(--text); line-height: 1.55; }
.pb-callout strong { color: var(--accent-text); font-weight: 600; }
.pb-locs { display: grid; gap: 10px; margin: 10px 0; }
details.loc { border: 1px solid var(--line); border-radius: 10px; padding: 0 16px; background: color-mix(in srgb, var(--text) 3%, transparent); }
details.loc[open] { padding-bottom: 12px; }
details.loc > summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 4px; min-height: 48px; align-items: center; font-weight: 600; }
details.loc > summary::-webkit-details-marker { display: none; }
details.loc > summary::before { content: "+"; width: 22px; color: var(--accent-text); font-family: var(--mono, monospace); }
details.loc[open] > summary::before { content: "–"; }
details.loc .loc-s { font-weight: 400; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
details.loc > summary:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 6px; }
.loc-add { justify-self: start; }
.loc-rm { margin-top: 6px; font-size: .85rem; }
.cam { margin: 6px 0; }
.cam .grp { margin: 10px 0 0; }
@media print { .loc-add, .loc-rm { display: none !important; } details.loc { border-color: #bbb; } }

/* Galerie: nur horizontal bewegen (kein vertikales Mitscrollen der Bilder) */
.gallery { overflow-y: hidden; overscroll-behavior: contain auto; padding-block: 10px; margin-block: -10px; touch-action: pan-x pan-y; }
.gallery figure, .gallery img { -webkit-user-drag: none; }

/* Technik-Verleih Hinweis (Wonka.Audio) */
.tech-cta { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 28px; border: 1px solid var(--line); border-left: 3px solid var(--accent-text); border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.tech-cta h3 { margin: 6px 0 8px; font-size: clamp(1.15rem, 2.4vw, 1.5rem); }
.tech-cta p { margin: 0; color: var(--muted); max-width: 62ch; }
.tech-cta .kicker { color: var(--accent-text); margin: 0; }
.tech-cta strong { color: var(--text); font-weight: 600; }
.tech-cta .btn { flex: 0 0 auto; }
@media (max-width: 760px) { .tech-cta { flex-direction: column; align-items: flex-start; padding: 20px; } }

.cam select:disabled { opacity: .55; cursor: not-allowed; }
.cam .fld[hidden] { display: none !important; }
