/* =================================================================
   Perhaps Media – Website
   Aufbau: feste Seitenleiste + Inhaltsbühne mit Karten (.pt-page).
   Alle Farben/Schriften kommen als CSS-Variablen aus dem Admin (theme_css).
   ================================================================= */

:root {
  --sidebar-w: 264px;
  --topbar-h: 60px;
  --wrap-max: 1120px;
  --wrap-pad: 56px;
  --radius: 10px;
  --radius-sm: 4px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 30px rgba(0,0,0,.07);
  --shadow-lift: 0 2px 4px rgba(0,0,0,.05), 0 18px 40px rgba(0,0,0,.12);
  --ease-out: cubic-bezier(.22,.61,.36,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
  --z-topbar: 40; --z-sidebar: 50; --z-modal: 100;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 16px/1.7 var(--font-body); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--heading); line-height: 1.2; font-weight: 700; margin: 0 0 .6em; overflow-wrap: break-word; hyphens: auto; }
p { margin: 0 0 1.1em; }
.icon { width: 18px; height: 18px; flex: 0 0 auto; }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--on-accent); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: var(--radius-sm); text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }
.dot { color: var(--accent); }
[data-theme=dark] .logo-light { display: none; }
.logo-dark { display: none; }
[data-theme=dark] .logo-dark { display: block; }

/* ---------------------------------------------------------------
   Seitenleiste
   --------------------------------------------------------------- */
.sidebar { position: fixed; z-index: var(--z-sidebar); left: 0; top: 0; bottom: 0; width: var(--sidebar-w); display: flex; flex-direction: column; background: var(--sidebar-bg); border-right: 1px solid var(--line); overflow-y: auto; overscroll-behavior: contain; }
.sidebar__close { display: none; }
.sidebar__head { display: block; text-decoration: none; color: inherit; }
.sidebar__monogram, .sidebar__logo { display: flex; align-items: center; justify-content: center; height: 200px; background: var(--surface); }
.sidebar__monogram { font: 700 4.4rem/1 var(--font-brand); color: var(--heading); letter-spacing: -.02em; background:
  linear-gradient(135deg, transparent 0 48%, var(--line) 48% 52%, transparent 52%) 0 0/14px 14px, var(--surface); }
.sidebar__logo img { max-width: 70%; max-height: 140px; object-fit: contain; }
.sidebar__image { width: 100%; height: 220px; object-fit: cover; }
.sidebar__band { display: block; background: var(--accent); color: var(--on-accent); text-align: center; padding: 12px 16px; }
.sidebar__name { font: 400 1.18rem/1.2 var(--font-brand); text-transform: uppercase; letter-spacing: .05em; }
.sidebar__name b { font-weight: 700; }
.sidebar__nav ul { list-style: none; margin: 0; padding: 0; }
.sidebar__nav li { border-bottom: 1px solid var(--line); }
.sidebar__nav a { position: relative; display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 0 26px; color: var(--sidebar-text); text-decoration: none; font-size: .78rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; transition: color .2s, background-color .2s; }
.sidebar__nav a .icon { width: 19px; height: 19px; opacity: .85; }
.sidebar__nav a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); transform: scaleY(0); transition: transform .25s var(--ease-out); }
.sidebar__nav a:hover { color: var(--accent-ink); }
.sidebar__nav a.is-active { color: var(--accent-ink); background: var(--surface); }
.sidebar__nav a.is-active::before { transform: scaleY(1); }
.sidebar__foot { margin-top: auto; padding: 22px 26px 24px; font-size: .74rem; line-height: 1.5; color: var(--muted); }
.social { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 12px -10px; padding: 0; }
.social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; color: var(--sidebar-text); border-radius: 50%; transition: color .2s, background-color .2s; }
.social a:hover { color: var(--accent-ink); background: var(--surface); }
.social .icon { width: 17px; height: 17px; }
.sidebar__copy { margin: 0 0 6px; }
.sidebar__legal { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; }
.sidebar__legal a { color: var(--muted); text-decoration: none; display: inline-block; padding: 4px 0; }
.sidebar__legal a:hover { color: var(--accent-ink); text-decoration: underline; }
.theme-toggle { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 8px 12px 8px 10px; min-height: 40px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--sidebar-text); font-size: .74rem; }
.theme-toggle .icon { width: 16px; height: 16px; }
.theme-toggle__sun { display: none; }
[data-theme=dark] .theme-toggle__sun { display: block; }
[data-theme=dark] .theme-toggle__moon { display: none; }

.topbar, .sidebar-backdrop { display: none; }

/* ---------------------------------------------------------------
   Bühne & Karten
   --------------------------------------------------------------- */
.pt-stage { position: fixed; left: var(--sidebar-w); right: 0; top: 0; bottom: 0; overflow: hidden; background: var(--bg); outline: none; perspective: 1400px; }
.pt-page { position: absolute; inset: 0; overflow-x: hidden; overflow-y: auto; background: var(--surface); -webkit-overflow-scrolling: touch; overscroll-behavior: contain; backface-visibility: hidden; scroll-behavior: smooth; }
.pt-page:not(.is-current) { visibility: hidden; }
.pt-page.is-animating { visibility: visible; pointer-events: none; }
.pt-progress { position: fixed; z-index: 60; left: var(--sidebar-w); right: 0; top: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; opacity: 0; transition: transform .4s var(--ease-out), opacity .3s; pointer-events: none; }
.is-loading .pt-progress { opacity: 1; transform: scaleX(.7); transition: transform 2.5s var(--ease-out), opacity .2s; }

.page-wrap { max-width: var(--wrap-max); margin: 0 auto; padding: 52px var(--wrap-pad) 64px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-bottom: 18px; margin-bottom: 44px; border-bottom: 1px solid var(--line); position: relative; }
.page-head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 72px; height: 2px; background: var(--accent); }
.page-head__title { margin: 0; font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem); color: var(--accent-ink); letter-spacing: -.005em; outline: none; }
.page-head__title .dot { color: var(--accent-ink); }
.page-head__icon { color: var(--accent); opacity: .9; }
.page-head__icon .icon { width: 42px; height: 42px; }
.page-hero { margin: -12px 0 40px; border-radius: var(--radius); overflow: hidden; }
.page-hero img { width: 100%; max-height: 460px; object-fit: cover; }
.page-foot { display: none; }

/* ---------------------------------------------------------------
   Startseite – Hero
   --------------------------------------------------------------- */
.hero { position: relative; min-height: 100%; height: 100vh; height: 100dvh; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { opacity: 0; transition: opacity 1s; }
.hero__video.is-playing { opacity: 1; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,calc(var(--hero-overlay) * .8)), rgba(0,0,0,var(--hero-overlay)) 70%, rgba(0,0,0,calc(var(--hero-overlay) + .1))); }
.hero__fallback { position: absolute; inset: 0; background:
  radial-gradient(60% 70% at 78% 18%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%),
  radial-gradient(50% 60% at 12% 90%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%),
  repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 1px, transparent 1px 14px),
  #1d2024; }
.hero__content { padding: 40px 24px; max-width: 980px; }
.hero__title { margin: 0 0 .25em; color: #fff; font-size: clamp(2.6rem, 1.2rem + 5.2vw, 5.4rem); letter-spacing: .03em; text-transform: uppercase; line-height: 1.05; outline: none; text-wrap: balance; }
.hero__accent { color: var(--accent); }
.hero__typed { font-size: clamp(1.15rem, .9rem + 1vw, 1.6rem); margin: 0 0 1.2em; color: rgba(255,255,255,.92); }
.hero__prefix { font-weight: 400; }
.typer { position: relative; display: inline-block; font-weight: 700; color: #fff; min-width: 1ch; }
.typer__word { white-space: pre; }
/* Signatur: Laserstrahl unter dem getippten Wort */
.typer__beam { position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent), 0 0 2px #fff; transform-origin: left; transform: scaleX(var(--beam, 1)); transition: transform .08s linear; }
.typer__beam::after { content: ""; position: absolute; right: -3px; top: -2px; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 2px var(--accent); animation: beamPulse 1.1s ease-in-out infinite; }
@keyframes beamPulse { 50% { opacity: .35; } }
.hero__text { max-width: 620px; margin: 0 auto 1.6em; color: rgba(255,255,255,.85); }
.hero__btn { --btn-border: #fff; }
.hero__scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; color: #fff; animation: scrollHint 2.4s var(--ease-in-out) infinite; }
.hero__scroll:hover { color: #fff; background: rgba(255,255,255,.12); }
@keyframes scrollHint { 0%, 60%, 100% { transform: translate(-50%, 0); } 30% { transform: translate(-50%, 6px); } }
.page-wrap--home { padding-top: 24px; }

/* ---------------------------------------------------------------
   Buttons
   --------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 24px; border: 1px solid var(--accent); border-radius: var(--radius-sm); background: transparent; color: var(--accent-ink); font: 500 .78rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .15s; touch-action: manipulation; }
.btn .icon { width: 16px; height: 16px; transition: transform .2s var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 86%, #000); border-color: transparent; color: var(--on-accent); }
.btn--outline:hover { background: var(--accent); color: var(--on-accent); }
.btn--lg { min-height: 54px; padding: 0 30px; font-size: .82rem; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: .72rem; }
.btn[disabled], .btn.is-busy { opacity: .6; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; min-height: 44px; }
.link-arrow .icon { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------------------------------------------------------------
   Fließtext
   --------------------------------------------------------------- */
.rich { max-width: 72ch; }
.rich--page { max-width: 78ch; }
.rich > :last-child { margin-bottom: 0; }
.rich h2 { font-size: 1.65rem; margin-top: 1.6em; }
.rich h3 { font-size: 1.25rem; margin-top: 1.4em; }
.rich h4 { font-size: 1.05rem; margin-top: 1.2em; font-family: var(--font-body); }
.rich > h2:first-child, .rich > h3:first-child { margin-top: 0; }
.rich ul, .rich ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.rich li { margin-bottom: .35em; }
.rich li::marker { color: var(--accent); }
.rich blockquote { margin: 1.4em 0; padding: .2em 0 .2em 1.2em; border-left: 3px solid var(--accent); font-family: var(--font-heading); font-size: 1.15rem; color: var(--heading); }
.rich img { border-radius: var(--radius); height: auto; }
.rich hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.rich .lead { font-size: 1.2rem; line-height: 1.65; color: var(--heading); }
.rich .accent { color: var(--accent-ink); }
.align-center { text-align: center; margin-left: auto; margin-right: auto; }
.align-right { text-align: right; }
.float-left { float: left; margin: .3em 1.4em .8em 0; max-width: 45%; }
.float-right { float: right; margin: .3em 0 .8em 1.4em; max-width: 45%; }
.clear { clear: both; }

/* ---------------------------------------------------------------
   Blöcke
   --------------------------------------------------------------- */
.blk { position: relative; }
.blk.pt--none { padding-top: 0; } .blk.pt--s { padding-top: 20px; } .blk.pt--m { padding-top: 44px; } .blk.pt--l { padding-top: 88px; }
.blk.pb--none { padding-bottom: 0; } .blk.pb--s { padding-bottom: 20px; } .blk.pb--m { padding-bottom: 44px; } .blk.pb--l { padding-bottom: 88px; }
.blocks > .blk:first-child.pt--m { padding-top: 0; }
.blk.bg--light, .blk.bg--accent, .blk.bg--dark, .blk.bg--image { margin-inline: calc(var(--wrap-pad) * -1); padding-inline: var(--wrap-pad); }
.blk.bg--light { background: color-mix(in srgb, var(--bg) 45%, var(--surface)); }
.blk.bg--accent { background: var(--accent); color: var(--on-accent); }
.blk.bg--accent :is(h2, h3, .blk-title, .blk-cta__title, a:not(.btn)) { color: var(--on-accent); }
.blk.bg--accent .btn--primary { background: var(--on-accent); color: var(--accent); border-color: var(--on-accent); }
.blk.bg--accent .blk-title::after { background: var(--on-accent); }
.blk.bg--dark { background: var(--heading); color: var(--surface); }
.blk.bg--dark :is(h2, h3, .blk-title) { color: var(--surface); }
.blk.bg--image { background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)), var(--blk-bg) center/cover no-repeat; color: #fff; }
.blk.bg--image :is(h2, h3, .blk-title, a:not(.btn)) { color: #fff; }
.blk__inner { position: relative; }

.blk-title { text-align: center; font-size: 1.35rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 40px; padding-bottom: 14px; position: relative; }
.blk-title::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 44px; height: 2px; background: var(--accent); transform: translateX(-50%); }
.blk-title--small { font-size: 1.05rem; margin-bottom: 24px; text-align: left; }
.blk-title--small::after { left: 0; transform: none; }
.blk-heading__title { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); margin-bottom: .3em; }
.blk-heading h3.blk-heading__title { font-size: 1.35rem; }
.blk-heading__sub { color: var(--muted); font-size: 1.05rem; margin: 0; }
.blk-heading.align-center { text-align: center; }
.blk-heading.align-right { text-align: right; }

.blk-image { margin: 0; }
.blk-image img { width: 100%; border-radius: var(--radius); }
.blk-image--normal { max-width: 820px; }
.blk-image--full { margin-inline: calc(var(--wrap-pad) * -1); }
.blk-image--full img { border-radius: 0; }
.blk-image figcaption, .blk-video figcaption { font-size: .85rem; color: var(--muted); margin-top: 10px; }

.blk-imagetext { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 52px; align-items: center; }
.blk-imagetext--right .blk-imagetext__media { order: 2; }
.blk-imagetext--noimg { grid-template-columns: 1fr; }
.blk-imagetext__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

.blk-columns { display: grid; gap: 40px; }
.blk-columns.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.blk-columns.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.blk-gallery { display: grid; gap: 14px; }
.blk-gallery.cols-2 { grid-template-columns: repeat(2, 1fr); }
.blk-gallery.cols-3 { grid-template-columns: repeat(3, 1fr); }
.blk-gallery.cols-4 { grid-template-columns: repeat(4, 1fr); }
.blk-gallery__item { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--bg); }
.blk-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.blk-gallery__item:hover img { transform: scale(1.04); }

.blk-quote { margin: 0 auto; max-width: 760px; text-align: center; }
.blk-quote__icon { width: 34px; height: 34px; color: var(--accent); margin: 0 auto 12px; }
.blk-quote blockquote { margin: 0; font: 400 clamp(1.3rem, 1rem + 1vw, 1.75rem)/1.45 var(--font-heading); color: var(--heading); font-style: italic; }
.blk-quote figcaption { margin-top: 14px; color: var(--muted); font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }

.blk-button { margin: 0; }
.blk-divider { border: 0; border-top: 1px solid var(--line); margin: 0; }
.blk-spacer--s { height: 16px; } .blk-spacer--m { height: 40px; } .blk-spacer--l { height: 90px; }

/* Leistungen */
.services { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.service { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 36px 26px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform .3s var(--ease-out), box-shadow .3s, border-color .3s; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.service__icon { display: inline-flex; width: 64px; height: 64px; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--accent); }
.service__icon .icon { width: 44px; height: 44px; stroke-width: 1.5; }
.service__title { font-size: 1.15rem; margin-bottom: .5em; }
.service__text { font-size: .95rem; margin-bottom: 1em; }
.service__link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; font-weight: 500; min-height: 44px; }
.service__link::after { content: ""; position: absolute; inset: 0; }
.service__link .icon { width: 14px; height: 14px; }
.bg--accent .service { color: var(--text); }
.bg--accent .service :is(h3) { color: var(--heading); }

/* CTA */
.blk-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.blk-cta__title { margin: 0 0 .3em; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); }
.blk-cta__text { margin: 0; max-width: 56ch; opacity: .92; }

/* Zahlen */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; margin: 0; text-align: center; }
.stat { display: flex; flex-direction: column-reverse; gap: 4px; }
.stat__value { margin: 0; font: 700 clamp(2.2rem, 1.6rem + 2vw, 3.2rem)/1 var(--font-heading); color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.bg--accent .stat__value { color: var(--on-accent); }
.stat__label { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }

/* Logos */
.logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 28px 46px; align-items: center; justify-content: center; }
.logos img { max-height: 54px; width: auto; filter: grayscale(1); opacity: .65; transition: filter .3s, opacity .3s; }
.logos li:hover img { filter: none; opacity: 1; }

/* Kundenlogos: Einzellogo & Laufband */
.client-logo { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.client-logo__img { width: auto; height: auto; max-height: 64px; max-width: 180px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.client-logo:hover .client-logo__img, a.client-logo:focus-visible .client-logo__img { filter: none; opacity: 1; }
.client-logo-single { display: flex; justify-content: center; margin: 1.6em 0; }
.client-logo-single .client-logo__img { max-height: 96px; max-width: 240px; }
.blk-clients--random .client-logo-single { margin: 0; }
.blk-clients__title { text-align: center; }
.blk-clients__title::after { left: 50%; transform: translateX(-50%); }
.logo-marquee { --marquee-per: 3.5s; position: relative; overflow: hidden; margin: 1.4em 0; padding: 10px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-marquee--slow { --marquee-per: 5.5s; }
.logo-marquee--fast { --marquee-per: 2s; }
.logo-marquee__track { display: flex; width: max-content; animation: logoMarquee calc(var(--marquee-items, 6) * var(--marquee-per)) linear infinite; }
.logo-marquee:hover .logo-marquee__track, .logo-marquee:focus-within .logo-marquee__track { animation-play-state: paused; }
.logo-marquee__list { display: flex; align-items: center; flex-shrink: 0; gap: 64px; margin: 0; padding: 0 32px; list-style: none; }
.logo-marquee__list li { display: flex; align-items: center; }
@keyframes logoMarquee { to { transform: translateX(-50%); } }
[data-theme=dark] .client-logo { background: #fff; padding: 8px 14px; border-radius: 8px; }
[data-theme=dark] .client-logo__img { opacity: .85; }
@media (max-width: 639px) { .logo-marquee__list { gap: 40px; padding: 0 20px; } .client-logo__img { max-height: 48px; max-width: 130px; } }
@media (prefers-reduced-motion: reduce) {
  .logo-marquee { -webkit-mask-image: none; mask-image: none; }
  .logo-marquee__track { animation: none !important; width: auto; justify-content: center; }
  .logo-marquee__list { flex-wrap: wrap; justify-content: center; gap: 28px 48px; flex-shrink: 1; }
  .logo-marquee__list[aria-hidden], .logo-marquee__list li[aria-hidden] { display: none; }
}

/* Infobox & Kontaktdaten */
.infobox { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); max-width: 460px; }
.infobox__title { font-size: 1.25rem; }
.infobox__list { margin: 0 0 20px; }
.infobox__list > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.infobox__list dt { font-family: var(--font-heading); color: var(--heading); font-weight: 700; }
.infobox__list dd { margin: 0; overflow-wrap: anywhere; }
.contact-info__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-info__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-info__list .icon { color: var(--accent); margin-top: 4px; width: 20px; height: 20px; }
.contact-info__available { color: var(--heading); font-weight: 500; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 4px; min-height: 56px; cursor: pointer; list-style: none; font: 700 1.05rem/1.4 var(--font-heading); color: var(--heading); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__chev { color: var(--accent); transition: transform .3s var(--ease-out); }
.faq__item[open] .faq__chev { transform: rotate(180deg); }
.faq__a { padding: 0 4px 20px; }

/* Bewertungen */
.testimonials { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.testimonial { margin: 0; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 14px; }
.testimonial__stars { display: flex; gap: 2px; color: var(--line); }
.testimonial__stars .is-on { color: #E8A317; fill: currentColor; }
.testimonial blockquote { margin: 0; font-style: italic; color: var(--heading); }
.testimonial figcaption { font-size: .88rem; color: var(--muted); margin-top: auto; }

/* Einbettungen mit Zustimmung */
.embed { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.embed--video { aspect-ratio: 16/9; }
.embed--map { aspect-ratio: 16/7; min-height: 280px; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.consent__box { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; font-size: .9rem; background: repeating-linear-gradient(135deg, transparent 0 10px, color-mix(in srgb, var(--line) 60%, transparent) 10px 11px), var(--bg); }
.consent__box p { max-width: 46ch; margin: 0; }
.consent__box .icon { display: inline; vertical-align: -3px; color: var(--accent); }
.consent__remember { display: inline-flex; gap: 8px; align-items: center; font-size: .82rem; cursor: pointer; min-height: 32px; }
.consent.is-loaded .consent__box { display: none; }

/* ---------------------------------------------------------------
   Portfolio
   --------------------------------------------------------------- */
.pf-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: -8px auto 36px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; width: fit-content; max-width: 100%; }
.pf-filter a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; color: var(--heading); font-size: .76rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; transition: background-color .2s, color .2s; }
.pf-filter a:hover { color: var(--accent-ink); }
.pf-filter a[aria-pressed=true] { background: var(--accent); color: var(--on-accent); }
.pf-notice { text-align: center; color: var(--muted); margin: -16px 0 28px; }
.pf-grid { --pf-gap: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--pf-gap); align-items: start; }
.pf-grid.is-masonry { grid-auto-rows: 4px; row-gap: 0; }
.pf-grid.is-masonry .pf-card { margin-bottom: var(--pf-gap); }
.pf-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--bg); color: #fff; text-decoration: none; transition: transform .35s var(--ease-out), box-shadow .35s, opacity .3s; }
.pf-grid--static .pf-card { aspect-ratio: 4/3; }
.pf-grid--static .pf-card img { height: 100%; }
.pf-card img { width: 100%; height: auto; object-fit: cover; transition: transform .6s var(--ease-out); }
.pf-card__ph { aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; color: var(--muted); background: repeating-linear-gradient(45deg, var(--bg) 0 12px, var(--surface) 12px 24px); }
.pf-card__ph .icon { width: 40px; height: 40px; }
.pf-card__info { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 18px; background: linear-gradient(transparent, rgba(0,0,0,.78)); transform: translateY(12px); opacity: 0; transition: opacity .35s, transform .35s var(--ease-out); }
.pf-card__title { display: block; font: 700 1.1rem/1.25 var(--font-heading); color: #fff; }
.pf-card__cat { display: block; margin-top: 4px; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.pf-card:hover, .pf-card:focus-visible { color: #fff; box-shadow: var(--shadow-lift); }
.pf-card:hover img, .pf-card:focus-visible img { transform: scale(1.05); }
.pf-card:hover .pf-card__info, .pf-card:focus-visible .pf-card__info { opacity: 1; transform: none; }
@media (hover: none) { .pf-card__info { opacity: 1; transform: none; } }
.pf-card.is-hiding { opacity: 0; transform: scale(.94); }
.pf-card[hidden] { display: none; }
.pf-empty { text-align: center; padding: 40px 0; color: var(--muted); }

/* Projekt-Detail */
.project__meta { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 48px; align-items: start; margin-bottom: 44px; }
.project__facts { margin: 0; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); position: sticky; top: 24px; }
.project__facts > div { padding: 9px 0; border-bottom: 1px dashed var(--line); display: grid; grid-template-columns: 100px 1fr; gap: 12px; font-size: .95rem; }
.project__facts > div:last-of-type { border-bottom: 0; }
.project__facts dt { font-family: var(--font-heading); font-weight: 700; color: var(--heading); }
.project__facts dd { margin: 0; overflow-wrap: anywhere; }
.project__facts .btn { width: 100%; margin-top: 16px; }
.project__cover { margin: 0 0 32px; border-radius: var(--radius); overflow: hidden; }
.project__cover img { width: 100%; max-height: 640px; object-fit: cover; }
.project__gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 44px; }
.project__gallery a { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--bg); }
.project__gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.project__gallery a:hover img { transform: scale(1.04); }
.project__videos { display: grid; gap: 28px; margin-bottom: 44px; }
@media (min-width: 900px) { .project__videos--multi { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.project__video { margin: 0; }
.project__video figcaption { margin-top: 10px; font-size: .88rem; color: var(--muted); }
.video-file { display: block; width: 100%; max-height: 80vh; border-radius: var(--radius); background: #000; }
.embed--portrait { aspect-ratio: 9/16; max-width: 400px; max-height: 80vh; margin-inline: auto; }
.pf-card__video { position: absolute; z-index: 2; top: 12px; right: 12px; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(4px); pointer-events: none; }
.pf-card__video .icon { width: 16px; height: 16px; margin-left: 2px; }
.project__nav { display: flex; justify-content: space-between; gap: 20px; padding-top: 26px; border-top: 1px solid var(--line); }
.project__nav a { display: inline-flex; flex-direction: column; gap: 2px; text-decoration: none; max-width: 48%; min-height: 44px; }
.project__nav small { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.project__nav strong { font-family: var(--font-heading); color: var(--heading); font-size: 1.05rem; }
.project__nav a:hover strong { color: var(--accent-ink); }
.project__nav .next { text-align: right; margin-left: auto; align-items: flex-end; }
.project__want { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 30px 34px; margin-bottom: 44px; border-radius: var(--radius); background: var(--accent-soft); }
.project__want h2 { margin: 0; font-size: 1.4rem; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; margin-bottom: 18px; min-height: 40px; }

/* ---------------------------------------------------------------
   Formulare
   --------------------------------------------------------------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; max-width: 820px; }
.form__intro, .form__full, .form__actions, .form__errors, .form__success, .form__project, .form__heading { grid-column: 1 / -1; }
.form__field { display: flex; flex-direction: column; gap: 6px; }
.form__field--full { grid-column: 1 / -1; }
.form__label { font-size: .82rem; font-weight: 500; color: var(--heading); letter-spacing: .02em; }
.form__req { color: var(--accent-ink); margin-left: 2px; }
.form__hint { font-size: .8rem; color: var(--muted); }
.form input[type=text], .form input[type=email], .form input[type=tel], .form input[type=number], .form input[type=date], .form select, .form textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--text) 30%, var(--surface)); border-radius: var(--radius-sm); background: var(--surface); color: var(--heading); font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.form [aria-invalid=true] { border-color: #C62828; }
.form__error { color: #C62828; font-size: .82rem; display: flex; gap: 6px; align-items: center; }
[data-theme=dark] .form__error { color: #FF8A80; }
.form__choice { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; min-height: 32px; font-size: .95rem; }
.form__choice input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); flex: 0 0 auto; }
.form__choices { display: grid; gap: 6px; }
.form__heading h3 { font-size: 1.15rem; margin: 10px 0 0; }
.form__hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__errors { padding: 14px 18px; border-left: 3px solid #C62828; background: color-mix(in srgb, #C62828 8%, var(--surface)); border-radius: var(--radius-sm); }
.form__errors p { margin: 0; }
.form__success { padding: 26px; border-radius: var(--radius); background: var(--accent-soft); display: flex; gap: 14px; align-items: flex-start; }
.form__success .icon { color: var(--accent-ink); width: 28px; height: 28px; }
.form__success p { margin: 0; color: var(--heading); }
.form__project { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: color-mix(in srgb, var(--bg) 35%, var(--surface)); }
.form__project img { width: 72px; height: 56px; object-fit: cover; border-radius: 6px; }
.form__project small { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.form__project strong { font-family: var(--font-heading); color: var(--heading); }
.form__file { padding: 10px; border: 1px dashed color-mix(in srgb, var(--text) 30%, var(--surface)); border-radius: var(--radius-sm); }
.form__math input { max-width: 140px; }

/* ---------------------------------------------------------------
   Blog
   --------------------------------------------------------------- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px; }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); text-decoration: none; color: inherit; transition: transform .3s var(--ease-out), box-shadow .3s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); color: inherit; }
.post-card__img { aspect-ratio: 16/10; overflow: hidden; background: var(--bg); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 22px 22px 26px; }
.post-card time, .post__date { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.post-card h2 { font-size: 1.2rem; margin: 6px 0 8px; }
.post-card p { margin: 0; font-size: .95rem; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pager a, .pager span { display: inline-flex; min-width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; }
.pager [aria-current] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.post__cover { margin: 0 0 32px; border-radius: var(--radius); overflow: hidden; }
.post__cover img { width: 100%; max-height: 520px; object-fit: cover; }

/* ---------------------------------------------------------------
   Leerzustände, Popup, Lightbox
   --------------------------------------------------------------- */
.empty-state { text-align: center; padding: 30px 0 10px; max-width: 560px; margin: 0 auto; }
.empty-state__code { font: 700 clamp(5rem, 3rem + 8vw, 9rem)/1 var(--font-heading); color: transparent; -webkit-text-stroke: 2px var(--accent); margin: 0 0 10px; }

.site-popup { position: fixed; inset: 0; z-index: var(--z-modal); display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.5); }
.site-popup[hidden] { display: none; }
.site-popup__box { position: relative; width: min(520px, 100%); max-height: calc(100dvh - 40px); overflow-y: auto; background: var(--surface); border-radius: var(--radius); padding: 34px 30px 28px; box-shadow: 0 30px 80px rgba(0,0,0,.35); border-top: 4px solid var(--accent); animation: popIn .35s var(--ease-out); }
.site-popup__close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: none; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.site-popup__close:hover { background: var(--bg); color: var(--heading); }
.site-popup .btn { margin-top: 10px; }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }

.lightbox { position: fixed; inset: 0; z-index: var(--z-modal); display: flex; align-items: center; justify-content: center; background: rgba(10,10,12,.94); touch-action: pan-y; }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; max-width: calc(100vw - 140px); max-height: calc(100dvh - 120px); display: flex; flex-direction: column; align-items: center; }
.lightbox__img { max-width: 100%; max-height: calc(100dvh - 140px); width: auto; height: auto; object-fit: contain; border-radius: 4px; animation: lbIn .3s var(--ease-out); }
.lightbox__cap { color: rgba(255,255,255,.85); font-size: .9rem; margin-top: 12px; text-align: center; }
.lightbox__btn { position: absolute; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: background-color .2s; }
.lightbox__btn:hover { background: rgba(255,255,255,.22); }
.lightbox__btn .icon { width: 24px; height: 24px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; top: 28px; left: 24px; color: rgba(255,255,255,.7); font-size: .8rem; letter-spacing: .1em; }
@keyframes lbIn { from { opacity: 0; transform: scale(.97); } }

.maintenance { display: grid; place-items: center; min-height: 100vh; padding: 24px; text-align: center; }
.maintenance__box { max-width: 520px; }
.maintenance__brand { font: 400 1rem var(--font-brand); text-transform: uppercase; letter-spacing: .1em; color: var(--accent-ink); }
.maintenance h1 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }

/* ---------------------------------------------------------------
   Tablet & Handy
   --------------------------------------------------------------- */
@media (max-width: 1279px) { :root { --wrap-pad: 40px; --sidebar-w: 240px; } }

@media (max-width: 1023px) {
  :root { --wrap-pad: 22px; }
  body.menu-open { overflow: hidden; }
  .topbar { display: flex; position: fixed; z-index: var(--z-topbar); left: 0; right: 0; top: 0; height: var(--topbar-h); align-items: center; justify-content: space-between; padding: 0 8px 0 18px; padding-top: env(safe-area-inset-top); height: calc(var(--topbar-h) + env(safe-area-inset-top)); background: var(--sidebar-bg); border-bottom: 1px solid var(--line); }
  .topbar__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
  .topbar__logo { height: 34px; width: auto; }
  .topbar__name { font: 700 1.05rem/1 var(--font-brand); text-transform: uppercase; letter-spacing: .05em; color: var(--heading); }
  .topbar__burger { width: 48px; height: 48px; border: 0; background: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border-radius: 8px; }
  .topbar__burger span { display: block; width: 22px; height: 2px; background: var(--heading); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .2s; }
  .sidebar { width: min(310px, 86vw); transform: translateX(-102%); transition: transform .35s var(--ease-out), visibility 0s .35s; visibility: hidden; box-shadow: none; }
  body.menu-open .sidebar { transform: none; visibility: visible; transition: transform .35s var(--ease-out); box-shadow: 0 0 60px rgba(0,0,0,.25); }
  .sidebar__close { display: inline-flex; position: absolute; z-index: 2; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; align-items: center; justify-content: center; }
  .sidebar__monogram, .sidebar__logo { height: 150px; }
  .sidebar__image { height: 170px; }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 45; background: rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: opacity .3s; display: block; }
  body.menu-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }
  .pt-stage { position: relative; left: 0; inset: auto; min-height: 100dvh; padding-top: calc(var(--topbar-h) + env(safe-area-inset-top)); overflow: visible; perspective: 1000px; }
  .pt-page { position: relative; inset: auto; overflow: visible; min-height: calc(100dvh - var(--topbar-h)); }
  .pt-page:not(.is-current) { display: none; }
  .pt-page.is-animating { display: block; position: absolute; left: 0; right: 0; }
  .pt-progress { left: 0; top: calc(var(--topbar-h) + env(safe-area-inset-top)); }
  .page-wrap { padding: 32px var(--wrap-pad) 48px; }
  .page-head { margin-bottom: 30px; }
  .page-head__icon .icon { width: 32px; height: 32px; }
  .hero { height: calc(100svh - var(--topbar-h)); min-height: 480px; }
  .page-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding: 22px var(--wrap-pad) 32px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
  .page-foot p { margin: 0; }
  .page-foot__legal { display: flex; gap: 16px; }
  .page-foot__legal a { color: var(--muted); padding: 6px 0; }
  .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); --pf-gap: 14px; }
  .blk-imagetext, .project__meta { grid-template-columns: 1fr; gap: 28px; }
  .blk-imagetext--right .blk-imagetext__media { order: 0; }
  .project__facts { position: static; }
  .blk-columns.cols-3 { grid-template-columns: 1fr; }
  .lightbox__figure { max-width: calc(100vw - 24px); }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; transform: none; }
}

@media (max-width: 639px) {
  body { font-size: 16px; }
  .blk-columns.cols-2 { grid-template-columns: 1fr; gap: 24px; }
  .blk-gallery.cols-3, .blk-gallery.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .form { grid-template-columns: 1fr; }
  .form__field { grid-column: 1 / -1; }
  .pf-filter { border-radius: 14px; }
  .pf-filter a { padding: 0 14px; }
  .blk.pt--l { padding-top: 56px; } .blk.pb--l { padding-bottom: 56px; }
  .blk-cta { flex-direction: column; align-items: flex-start; }
  .project__want { padding: 24px; }
  .float-left, .float-right { float: none; margin: 0 0 1em; max-width: 100%; }
  .infobox__list > div { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 420px) { .pf-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html, .pt-page { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

@media print {
  .sidebar, .topbar, .pt-progress, .hero__scroll, .consent__box { display: none !important; }
  .pt-stage, .pt-page { position: static !important; overflow: visible !important; }
}

/* ---------------------------------------------------------------- *
 * Cookie-Banner
 * ---------------------------------------------------------------- */
.cookie-banner { position: fixed; z-index: calc(var(--z-modal) - 1); right: 24px; bottom: 24px; width: min(440px, calc(100vw - 48px)); max-height: calc(100dvh - 48px); overflow-y: auto; padding: 26px 26px 22px; background: var(--surface); color: var(--text); border-radius: var(--radius); border-top: 4px solid var(--accent); box-shadow: 0 24px 70px rgba(0,0,0,.28); opacity: 0; transform: translateY(16px); transition: opacity .25s var(--ease-out), transform .25s var(--ease-out); }
.cookie-banner.is-open { opacity: 1; transform: none; }
.cookie-banner[hidden] { display: none; }
.cookie-banner__title { display: flex; align-items: center; gap: 10px; margin: 0 28px 10px 0; font-size: 1.15rem; line-height: 1.3; outline: none; }
.cookie-banner__title .icon { width: 20px; height: 20px; color: var(--accent); flex: none; }
.cookie-banner__text { margin: 0 0 16px; font-size: .9rem; line-height: 1.6; }
.cookie-banner__text a { color: var(--accent-ink); }
.cookie-banner__close { display: none; position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: none; color: var(--muted); align-items: center; justify-content: center; border-radius: 50%; cursor: pointer; }
.cookie-banner.is-revisit .cookie-banner__close { display: inline-flex; }
.cookie-banner__close:hover { background: var(--bg); color: var(--heading); }
.cookie-banner__opts { display: grid; gap: 10px; margin: 0 0 16px; }
.cookie-banner__opts[hidden] { display: none; }
.cookie-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-size: .88rem; line-height: 1.45; }
.cookie-opt input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.cookie-opt input:disabled { opacity: .6; }
.cookie-opt strong { display: block; color: var(--heading); }
.cookie-opt small { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cookie-banner__actions .btn { flex: 1 1 150px; }
.cookie-banner__actions .btn[hidden] { display: none; }
.cookie-banner__more { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--accent-ink); font: 500 .85rem var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cookie-banner__more[hidden] { display: none; }
@media (max-width: 600px) {
  .cookie-banner { right: 12px; left: 12px; bottom: 12px; width: auto; padding: 22px 18px 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .cookie-banner__actions .btn { flex-basis: 120px; padding: 0 10px; letter-spacing: .06em; }
}
@media (prefers-reduced-motion: reduce) { .cookie-banner { transition: none; transform: none; } }
