/* =====================================================================
   ETERNAL5 – Design "AE"
   Vorlage: Referenzen/css/ae.css (SerialIdent / LOG-IX, Version 3: HUD)

   Formensprache:
     - hellsilberne, stark gerundete Kacheln mit feinem Glanz, dunkle Glas-Panels im Dark Mode
     - Akzentfarbe Orange (#ff7a00) für Auswahl, Schalter und Indikatoren
     - schwarze Kopf-Tabs ("ETERNAL5 │ …"), Mono-Kennungen, breite Versalien
     - konzentrische Kreisbögen & rotierende Ringe im Hintergrund
     - Bewegung: gestaffeltes Einblenden, Hover-Anheben, Glanz-Sweep
       (abgeschaltet bei "Bewegung reduzieren" und bei Folgeaufrufen: html.ae-calm)
   Schriften: nur lokal installierte Schriften, keine externen Requests.
   Dark Mode: html.dark – nur die Variablen wechseln.
   ===================================================================== */

/* ---------- Variablen ---------- */
:root {
    --ae-bg:          #e6e7ea;
    --ae-ring:        rgb(20 22 26 / .09);
    --ae-dot:         rgb(20 22 26 / .10);
    --ae-panel:       #fbfbfc;
    --ae-panel-2:     #f3f4f6;
    --ae-panel-3:     #e9eaed;
    --ae-line:        #d5d7db;
    --ae-line-soft:   #e7e8eb;
    --ae-ink:         #131417;
    --ae-ink-2:       #1b1c20;
    --ae-ink-3:       #3a3c42;
    --ae-ink-4:       #585b62;
    --ae-mute:        #6f727a;
    --ae-mute-2:      #9a9da4;
    --ae-mute-3:      #c0c2c7;
    --ae-tag:         #17181b;
    --ae-tag-text:    #ffffff;
    --ae-black:       #17181b;

    --ae-accent-rgb:  255 122 0;
    --ae-accent:      rgb(var(--ae-accent-rgb));
    --ae-accent-2:    color-mix(in srgb, var(--ae-accent) 90%, #000);
    --ae-accent-hi:   color-mix(in srgb, var(--ae-accent) 65%, #fff);
    --ae-on-accent:   #131417;
    --ae-accent-soft: color-mix(in srgb, var(--ae-accent) 14%, #fff);
    --ae-accent-line: color-mix(in srgb, var(--ae-accent) 70%, #8a8a8a);
    --ae-accent-ink:  #b45200;   /* Akzent als Schriftfarbe auf hell (Kontrast) */
    --ae-blue:        #1032cf;
    --ae-ok:          #0f7a3d;
    --ae-ok-soft:     #e3f5ea;
    --ae-err:         #b4231b;
    --ae-err-soft:    #fdeceb;

    --ae-silver:      linear-gradient(180deg, #ffffff 0%, #f1f2f4 55%, #e3e4e7 100%);
    --ae-silver-hi:   inset 0 1px 0 rgb(255 255 255 / .95), inset 0 -1px 0 rgb(0 0 0 / .05);
    /* leicht durchscheinend, damit die Punkt-Kamera im Hintergrund durch die Kacheln schimmert */
    --ae-surface:     linear-gradient(180deg, rgb(255 255 255 / .84) 0%, rgb(247 248 249 / .8) 100%);
    --ae-shadow:      0 1px 2px rgb(16 18 22 / .06), 0 8px 24px -12px rgb(16 18 22 / .18);
    --ae-shadow-up:   0 2px 4px rgb(16 18 22 / .06), 0 18px 36px -14px rgb(16 18 22 / .28);
    --ae-glass:       blur(10px) saturate(1.1);

    --ae-r-xl: 24px;
    --ae-r-lg: 18px;
    --ae-r-md: 12px;
    --ae-r-sm: 8px;

    --ae-ease: cubic-bezier(.2, .8, .2, 1);
    --ae-font:      "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --ae-font-wide: "Novecento Sans Wide", "Novecentosanswide-Bold", "Bahnschrift", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --ae-font-mono: "Space Grotesk", "Cascadia Mono", Consolas, ui-monospace, monospace;

    color-scheme: light;
}
html.dark {
    --ae-bg:          #0d0e10;
    --ae-ring:        rgb(255 255 255 / .07);
    --ae-dot:         rgb(255 255 255 / .06);
    --ae-panel:       #17191d;
    --ae-panel-2:     #121417;
    --ae-panel-3:     #22252a;
    --ae-line:        #2c3036;
    --ae-line-soft:   #202328;
    --ae-ink:         #f3f4f5;
    --ae-ink-2:       #e5e6e8;
    --ae-ink-3:       #c8cacf;
    --ae-ink-4:       #a7aab1;
    --ae-mute:        #8d9098;
    --ae-mute-2:      #6a6d75;
    --ae-mute-3:      #474a51;
    --ae-tag:         #f3f4f5;
    --ae-tag-text:    #0d0e10;
    --ae-black:       #0a0b0d;
    --ae-accent-soft: rgb(var(--ae-accent-rgb) / .10);
    --ae-accent-line: rgb(var(--ae-accent-rgb) / .35);
    --ae-accent-ink:  #ff9a3d;
    --ae-blue:        #7d95ff;
    --ae-ok:          #4ccf86;
    --ae-ok-soft:     rgb(76 207 134 / .12);
    --ae-err:         #ff7b72;
    --ae-err-soft:    rgb(255 123 114 / .12);

    /* Silber-Kacheln bleiben hell – wie im HUD auf dunklem Grund */
    --ae-silver:      linear-gradient(180deg, #f4f5f6 0%, #dfe0e3 100%);
    --ae-silver-hi:   inset 0 1px 0 rgb(255 255 255 / .9), inset 0 -1px 0 rgb(0 0 0 / .25);
    --ae-surface:     linear-gradient(180deg, rgb(30 32 37 / .8) 0%, rgb(22 24 28 / .78) 100%);
    --ae-shadow:      0 1px 0 rgb(255 255 255 / .04) inset, 0 12px 30px -14px rgb(0 0 0 / .7);
    --ae-shadow-up:   0 1px 0 rgb(255 255 255 / .06) inset, 0 22px 44px -16px rgb(0 0 0 / .85);
    --ae-glass:       blur(14px) saturate(1.2);

    color-scheme: dark;
}

/* ---------- Animationen ---------- */
@keyframes ae-rise   { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes ae-slide  { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes ae-spin   { to { transform: rotate(360deg); } }
@keyframes ae-spin-r { to { transform: rotate(-360deg); } }
@keyframes ae-scan   { 0% { transform: translateX(-120%); } 100% { transform: translateX(520%); } }
@keyframes ae-grow   { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ae-shine  { from { transform: translateX(-130%) skewX(-20deg); } to { transform: translateX(260%) skewX(-20deg); } }
@keyframes ae-pulse  { 0%, 100% { box-shadow: 0 0 0 0 rgb(var(--ae-accent-rgb) / .55); } 50% { box-shadow: 0 0 0 6px rgb(var(--ae-accent-rgb) / 0); } }

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* ---------- Grundfläche: Punktraster + HUD-Kreisbögen ---------- */
body.ae {
    min-height: 100vh;
    font-family: var(--ae-font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--ae-ink-2);
    background-color: var(--ae-bg);
    background-image:
        radial-gradient(var(--ae-dot) 1px, transparent 1.3px),
        radial-gradient(circle at 72% 46%, transparent 0 279px, var(--ae-ring) 280px 281px, transparent 282px 379px,
                        var(--ae-ring) 380px 381px, transparent 382px 539px, var(--ae-ring) 540px 541px, transparent 542px);
    background-size: 20px 20px, 100% 100%;
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
html.dark body.ae {
    background-image:
        radial-gradient(var(--ae-dot) 1px, transparent 1.3px),
        radial-gradient(circle at 72% 46%, transparent 0 279px, var(--ae-ring) 280px 281px, transparent 282px 379px,
                        var(--ae-ring) 380px 381px, transparent 382px 539px, var(--ae-ring) 540px 541px, transparent 542px),
        radial-gradient(90% 70% at 72% 40%, #1b1d22 0%, transparent 70%);
    background-size: 20px 20px, 100% 100%, 100% 100%;
}
/* Rotierende Ringe (gestrichelt + Bogensegment in Akzentfarbe), liegen hinter allem */
body.ae::before,
body.ae::after {
    content: ""; position: fixed; z-index: -1; pointer-events: none; border-radius: 50%;
    left: 72%; top: 46%;
}
body.ae::before {
    width: 660px; height: 660px; margin: -330px 0 0 -330px;
    border: 1px dashed var(--ae-ring);
    animation: ae-spin 90s linear infinite;
}
body.ae::after {
    width: 920px; height: 920px; margin: -460px 0 0 -460px;
    background: conic-gradient(from 0deg, transparent 0 78%, rgb(var(--ae-accent-rgb) / .55) 78% 81%, transparent 81% 100%);
    -webkit-mask: radial-gradient(circle, transparent 0 457px, #000 458px 460px);
            mask: radial-gradient(circle, transparent 0 457px, #000 458px 460px);
    animation: ae-spin-r 60s linear infinite;
}
/* ---------- Kamera aus Punkten + Raster-Punktfeld + Fadenkreuz (assets/js/e5-camera.js) ---------- */
.e5-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; --cx: 72%; --cy: 46%; }
.e5-bg canvas { position: absolute; left: var(--cx); top: var(--cy); transform: translate(-50%, -50%); }
.e5-halftone { -webkit-mask: radial-gradient(closest-side, #000 35%, transparent 100%); mask: radial-gradient(closest-side, #000 35%, transparent 100%); }
.e5-cross-h, .e5-cross-v { position: absolute; background: rgb(var(--ae-accent-rgb) / .28); }
.e5-cross-h { left: 0; right: 0; top: var(--cy); height: 1px; -webkit-mask: linear-gradient(90deg, transparent, #000 35%, #000 85%, transparent); mask: linear-gradient(90deg, transparent, #000 35%, #000 85%, transparent); }
.e5-cross-v { top: 0; bottom: 0; left: var(--cx); width: 1px; -webkit-mask: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); mask: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); }
.e5-cross-mark {
    position: absolute; left: var(--cx); top: var(--cy); width: 11px; height: 11px; margin: -5px 0 0 -5px;
    border: 2px solid rgb(var(--ae-accent-rgb) / .85); background: var(--ae-bg);
}
.e5-coord {
    position: absolute; left: calc(var(--cx) + 14px); top: calc(var(--cy) + 10px);
    font-family: var(--ae-font-mono); font-size: 8.5px; line-height: 1.35; letter-spacing: .12em; text-transform: uppercase;
    color: rgb(var(--ae-accent-rgb) / .7); padding-left: 16px;
}
.e5-coord::before { content: ""; position: absolute; left: 0; top: 2px; width: 10px; height: 10px; background: linear-gradient(135deg, transparent 45%, rgb(var(--ae-accent-rgb) / .8) 45% 55%, transparent 55%), rgb(var(--ae-accent-rgb) / .25); }
.e5-coord b { color: rgb(var(--ae-accent-rgb)); }
@media (max-width: 760px) {
    .e5-bg { --cx: 60%; --cy: 34%; }
    .e5-coord { display: none; }
    /* Handy: kein Weichzeichner (Akku/Leistung), dafür deckendere Kacheln */
    :root { --ae-glass: none; --ae-surface: linear-gradient(180deg, rgb(255 255 255 / .93), rgb(247 248 249 / .9)); }
    html.dark { --ae-glass: none; --ae-surface: linear-gradient(180deg, rgb(30 32 37 / .9), rgb(22 24 28 / .88)); }
}
@media print { .e5-bg { display: none; } }
/* Kamera im Startseiten-Hero: Logo-Kachel weicht, Hero ohne Weichzeichner, damit die Punkte scharf bleiben */
.e5-cam-on .hero-visual.has-camera .hero-logo { display: none; }
.e5-cam-on .hero:has(.has-camera) { -webkit-backdrop-filter: none; backdrop-filter: none; background-image: linear-gradient(90deg, var(--ae-hero-l) 0%, var(--ae-hero-l) 38%, var(--ae-hero-r) 70%); }
:root { --ae-hero-l: rgb(255 255 255 / .86); --ae-hero-r: rgb(255 255 255 / .35); }
html.dark { --ae-hero-l: rgb(26 28 32 / .85); --ae-hero-r: rgb(26 28 32 / .25); }
.e5-cam-on .hero-visual.has-camera { min-height: 340px; }
.e5-cam-on .hero-visual.has-camera .ring-2 { inset: 6%; border-style: dashed; }
.e5-bg.is-anchored .e5-cross-h { -webkit-mask: linear-gradient(90deg, transparent, #000 45%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 45%, #000 90%, transparent); }

::selection { background: var(--ae-accent); color: var(--ae-on-accent); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--ae-mute-3); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
:focus-visible { outline: 3px solid rgb(var(--ae-accent-rgb) / .7); outline-offset: 2px; border-radius: 6px; }

.skip { position: absolute; left: 14px; top: -60px; z-index: 100; padding: 8px 14px; border-radius: var(--ae-r-md); background: var(--ae-accent); color: var(--ae-on-accent); font-weight: 700; text-decoration: none; }
.skip:focus { top: 14px; }

.ico { width: 20px; height: 20px; flex-shrink: 0; }

/* =====================================================================
   RAHMEN
   ===================================================================== */
.shell { max-width: 1280px; margin: 0 auto; padding: 14px; display: flex; flex-direction: column; gap: 14px; min-height: 100vh; }
.content { flex: 1; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
main { flex: 1; display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* Gemeinsame Fläche: Panels */
.topbar, .page-head, .panel, .foot-panel {
    background-color: transparent;
    background-image: var(--ae-surface);
    border: 1px solid var(--ae-line);
    border-radius: var(--ae-r-xl);
    box-shadow: var(--ae-shadow);
    -webkit-backdrop-filter: var(--ae-glass); backdrop-filter: var(--ae-glass);
}

/* ---------- Kopfleiste ---------- */
.topbar {
    position: sticky; top: 14px; z-index: 40;
    display: flex; align-items: center; gap: 12px; padding: 8px;
    animation: ae-rise .5s var(--ae-ease) both;
}
.brand {
    display: flex; align-items: center; gap: 12px; flex-shrink: 0;
    padding: 8px 18px 8px 8px; border-radius: 16px; text-decoration: none;
    background: var(--ae-black); position: relative; overflow: hidden;
}
html.dark .brand { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06); }
/* langsam wandernder Lichtstreifen im Markenblock */
.brand::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / .09), transparent);
    animation: ae-shine 6s ease-in-out 1.2s infinite;
}
/* Indikator in Akzentfarbe unten im Markenblock */
.brand::after {
    content: ""; position: absolute; left: 14px; bottom: 4px; width: 28px; height: 3px; border-radius: 3px;
    background: var(--ae-accent); transform-origin: left; animation: ae-grow .6s var(--ae-ease) .4s both;
}
.brand-logo {
    width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px;
    background: #050506; overflow: hidden;
    box-shadow: 0 0 0 2px rgb(var(--ae-accent-rgb) / .9), 0 6px 16px -6px rgb(var(--ae-accent-rgb) / .6);
}
.brand-logo img { width: 32px; height: 32px; object-fit: contain; }   /* images/logo-96.png – echtes Logo, auf den Inhalt zugeschnitten */
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text strong { font-family: var(--ae-font-wide); font-size: 14px; font-weight: 700; letter-spacing: .16em; color: #fff; }
.brand-text small {
    font-family: var(--ae-font-mono); font-size: 10px; font-weight: 600; letter-spacing: .18em;
    text-transform: uppercase; color: #8d9098; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px;
}

.topnav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.topnav-link {
    display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px 0 6px;
    border-radius: 14px; text-decoration: none; white-space: nowrap;
    font-family: var(--ae-font-wide); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--ae-ink-3);
    transition: background-color .25s var(--ae-ease), color .2s, transform .25s var(--ae-ease), box-shadow .25s;
    animation: ae-slide .45s var(--ae-ease) both;
}
.topnav-link:nth-child(1) { animation-delay: .08s; }
.topnav-link:nth-child(2) { animation-delay: .13s; }
.topnav-link:nth-child(3) { animation-delay: .18s; }
.topnav-link:nth-child(4) { animation-delay: .23s; }
.topnav-link:nth-child(5) { animation-delay: .28s; }
/* Icon in einer Silber-Kachel */
.topnav-link .ico {
    width: 34px; height: 34px; padding: 8px; border-radius: 11px;
    background: var(--ae-silver); box-shadow: var(--ae-silver-hi), 0 1px 2px rgb(0 0 0 / .08);
    color: #2a2c31; transition: transform .3s var(--ae-ease), background .25s;
}
.topnav-link:hover { background: var(--ae-panel-3); color: var(--ae-ink); }
.topnav-link:hover .ico { transform: rotate(-6deg) scale(1.05); }
/* Aktiv: Kachel in Akzentfarbe mit Glanz */
.topnav-link.is-active {
    background: linear-gradient(180deg, var(--ae-accent-hi) 0%, var(--ae-accent) 60%, var(--ae-accent-2) 100%);
    color: var(--ae-on-accent);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .7), 0 6px 18px -8px rgb(var(--ae-accent-rgb) / .75);
}
.topnav-link.is-active .ico { background: var(--ae-black); color: var(--ae-accent); box-shadow: none; }
.topnav-insta { display: none; }

.top-actions { display: flex; align-items: center; gap: 6px; padding-left: 6px; }
.icon-btn {
    width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    border-radius: 12px; border: 1px solid var(--ae-line); background: transparent; color: var(--ae-ink-4); text-decoration: none;
    transition: background-color .2s, color .2s, transform .2s var(--ae-ease), border-color .2s;
}
.icon-btn:hover { background: var(--ae-accent); color: var(--ae-on-accent); border-color: transparent; transform: translateY(-1px); }
.icon-btn.is-admin { color: var(--ae-accent-ink); border-color: var(--ae-accent-line); background: var(--ae-accent-soft); }
.i-sun, html.dark .i-moon { display: none; }
html.dark .i-sun { display: block; }
.menu-btn { display: none; }
.i-close { display: none; }
.menu-open .i-close { display: block; }
.menu-open .i-menu { display: none; }

/* ---------- Kopfzeile der Unterseiten ---------- */
.page-head {
    position: relative; overflow: hidden; padding: 22px 28px 24px;
    animation: ae-rise .5s var(--ae-ease) .05s both;
}
.page-head > div { position: relative; z-index: 1; }
/* Kennung als schwarzer Kopf-Tab */
.page-head > div::before,
.tag {
    display: inline-flex; align-items: center; padding: 4px 10px 4px 8px; border-radius: var(--ae-r-sm);
    font-family: var(--ae-font-mono); font-size: 10px; font-weight: 700; letter-spacing: .2em; line-height: 1.5;
    background: var(--ae-tag); color: var(--ae-tag-text); text-transform: uppercase; white-space: pre;
    box-shadow: inset 3px 0 0 var(--ae-accent);
}
.page-head > div::before { content: attr(data-tag); margin-bottom: 12px; }
.page-title, .display {
    font-family: var(--ae-font-wide); font-weight: 700; text-transform: uppercase; color: var(--ae-ink);
    font-size: clamp(22px, 3.2vw, 30px); letter-spacing: .12em; line-height: 1.12; overflow-wrap: break-word; hyphens: auto;
}
.page-title::after, .display::after {
    content: ""; display: block; width: 44px; height: 4px; margin-top: 12px; border-radius: 4px; background: var(--ae-accent);
    box-shadow: 52px 0 0 var(--ae-line), 66px 0 0 var(--ae-line);
    transform-origin: left; animation: ae-grow .6s var(--ae-ease) .25s both;
}
.page-sub { font-size: 14px; color: var(--ae-mute); margin-top: 10px; max-width: 70ch; }
/* HUD-Ringe rechts in der Kopfzeile */
.page-head::after {
    content: ""; position: absolute; right: -60px; top: 50%; width: 220px; height: 220px; margin-top: -110px;
    border-radius: 50%; pointer-events: none; border: 1px dashed var(--ae-line);
    box-shadow: 0 0 0 22px transparent, 0 0 0 23px var(--ae-line-soft);
    animation: ae-spin 40s linear infinite;
}
/* Scan-Linie */
.page-head::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 22%; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgb(var(--ae-accent-rgb) / .10), transparent);
    animation: ae-scan 7s ease-in-out 1s infinite;
}
html.dark .page-head::before { background: linear-gradient(90deg, transparent, rgb(var(--ae-accent-rgb) / .07), transparent); }
.back-link {
    display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px 10px; vertical-align: top;
    font-family: var(--ae-font-mono); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--ae-mute); text-decoration: none;
}
.back-link .ico { width: 14px; height: 14px; }
.back-link:hover { color: var(--ae-accent-ink); }

/* =====================================================================
   BAUSTEINE
   ===================================================================== */
/* Gestaffeltes Einblenden der Inhalte */
main > * { animation: ae-rise .55s var(--ae-ease) both; }
main > :nth-child(1) { animation-delay: .10s; }
main > :nth-child(2) { animation-delay: .16s; }
main > :nth-child(3) { animation-delay: .22s; }
main > :nth-child(4) { animation-delay: .28s; }
main > :nth-child(n+5) { animation-delay: .34s; }

/* Karte: Silberfläche, Indikator in Akzentfarbe oben, Punkt rechts */
.panel {
    position: relative; padding: 26px;
    background-image:
        linear-gradient(var(--ae-accent), var(--ae-accent)),
        radial-gradient(circle, var(--ae-mute-3) 0 2.5px, transparent 3px),
        var(--ae-surface);
    background-size: 30px 3px, 10px 10px, 100% 100%;
    background-position: 22px 0, right 14px top 14px, 0 0;
    background-repeat: no-repeat;
}
.panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.kicker {
    display: block; font-family: var(--ae-font-mono); font-size: 11px; font-weight: 700; letter-spacing: .2em;
    text-transform: uppercase; color: var(--ae-mute); margin-bottom: 6px;
}
.h2 { font-family: var(--ae-font-wide); font-size: 18px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ae-ink); line-height: 1.25; }
.h3 { font-family: var(--ae-font-wide); font-size: 13.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ae-ink); line-height: 1.3; }
.muted { color: var(--ae-mute); }
.prose p + p { margin-top: 12px; }
.prose a, .link { color: var(--ae-accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover, .link:hover { text-decoration-thickness: 2px; }
.mono { font-family: var(--ae-font-mono); }

/* Buttons: Kapseln; Primär schwarz → Akzentfarbe, Sekundär als Silber-Kachel */
.btn {
    position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 48px; padding: 0 22px; border-radius: 14px; border: 1px solid transparent; text-decoration: none; white-space: nowrap;
    font-family: var(--ae-font-wide); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    transition: background-color .2s, color .2s, transform .2s var(--ae-ease), box-shadow .25s, border-color .2s;
}
.btn .ico { width: 18px; height: 18px; }
.btn::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; pointer-events: none; transform: translateX(-130%) skewX(-20deg);
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / .35), transparent);
}
.btn:hover::after { animation: ae-shine .8s var(--ae-ease); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgb(0 0 0 / .5); }
.btn:active { transform: translateY(0) scale(.97); }
.btn-primary { background: var(--ae-tag); color: var(--ae-tag-text); }
.btn-primary:hover { background: var(--ae-accent); color: var(--ae-on-accent); }
.btn-silver { background: var(--ae-silver); color: #1b1c20; box-shadow: var(--ae-silver-hi), 0 1px 2px rgb(0 0 0 / .1); border-color: #d0d2d6; }
.btn-silver:hover { color: var(--ae-on-accent); background: linear-gradient(180deg, var(--ae-accent-hi), var(--ae-accent)); }
.btn-ghost { background: transparent; color: var(--ae-ink-3); border-color: var(--ae-line); }
.btn-ghost:hover { background: var(--ae-panel-3); color: var(--ae-ink); }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Chips / Mono-Kennungen */
.chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px;
    font-family: var(--ae-font-mono); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    background: var(--ae-panel-3); color: var(--ae-ink-3); border: 1px solid var(--ae-line); text-decoration: none; white-space: nowrap;
}
.chip .ico { width: 14px; height: 14px; }
a.chip { transition: background-color .2s, color .2s, border-color .2s; }
a.chip:hover { background: var(--ae-accent); color: var(--ae-on-accent); border-color: transparent; }
.chip-accent { background: var(--ae-accent-soft); border-color: var(--ae-accent-line); color: var(--ae-accent-ink); }
.chip-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ae-accent); animation: ae-pulse 2s infinite; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ae-mute); }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta .ico { width: 15px; height: 15px; }

/* Raster */
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Bildkarte (Aktivitäten, Blog) */
.card {
    position: relative; display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit;
    border-radius: var(--ae-r-lg); border: 1px solid var(--ae-line); background: var(--ae-panel);
    box-shadow: var(--ae-shadow); transition: transform .35s var(--ae-ease), box-shadow .35s var(--ae-ease), border-color .25s;
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--ae-shadow-up); border-color: var(--ae-mute-2); }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0b0c0e; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ae-ease), opacity .3s; }
a.card:hover .card-media img { transform: scale(1.05); }
.card-media::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, transparent 50%, rgb(0 0 0 / .55));
}
.card-media.is-logo { background: #fff; }
.card-media.is-logo img { object-fit: contain; padding: 18px; }
.card-media.is-logo::after { background: none; }
.card-media .tag { position: absolute; z-index: 1; left: 12px; top: 12px; }
html.dark .card-media .tag { background: #f3f4f5; color: #0d0e10; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-go {
    margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--ae-font-mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ae-mute);
    transition: color .2s, gap .25s var(--ae-ease);
}
.card-go .ico { width: 15px; height: 15px; }
a.card:hover .card-go { color: var(--ae-accent-ink); gap: 12px; }

/* Bild-Fallback, falls ein CDN-Bild fehlt */
.img-missing { display: grid !important; place-items: center; }
.img-missing img { opacity: 0; }
.img-missing::before {
    content: "Bild nicht verfügbar"; position: absolute; z-index: 1; color: #8d9098;
    font-family: var(--ae-font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
}

/* =====================================================================
   STARTSEITE
   ===================================================================== */
.hero {
    position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: center;
    padding: 34px 34px 36px; min-height: 380px;
}
.hero-text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.hero .display { font-size: clamp(30px, 5.4vw, 58px); letter-spacing: .08em; line-height: 1.02; }
.hero .display em { font-style: normal; color: var(--ae-accent-ink); }
.hero-lead { font-size: 16px; color: var(--ae-ink-4); max-width: 52ch; }
.hero-visual { position: relative; aspect-ratio: 1; max-width: 360px; width: 100%; justify-self: center; display: grid; place-items: center; }
.hero-visual .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed var(--ae-line); animation: ae-spin 50s linear infinite; }
.hero-visual .ring-2 { inset: 12%; border-style: solid; border-color: var(--ae-line-soft); animation: none; }
.hero-visual .ring-3 {
    inset: -4%; border: 0; animation: ae-spin-r 24s linear infinite;
    background: conic-gradient(from 0deg, transparent 0 70%, rgb(var(--ae-accent-rgb) / .8) 70% 76%, transparent 76% 100%);
    -webkit-mask: radial-gradient(circle, transparent 0 calc(50% - 3px), #000 calc(50% - 2px) 50%, transparent calc(50% + 1px));
            mask: radial-gradient(circle, transparent 0 calc(50% - 3px), #000 calc(50% - 2px) 50%, transparent calc(50% + 1px));
}
.hero-logo {
    position: relative; width: 58%; aspect-ratio: 1; border-radius: 32px; display: grid; place-items: center;
    background: var(--ae-black); box-shadow: 0 0 0 6px rgb(var(--ae-accent-rgb) / .18), 0 30px 60px -24px rgb(0 0 0 / .6);
    overflow: hidden;
}
.hero-logo::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%;
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / .1), transparent);
    animation: ae-shine 5s ease-in-out 1s infinite;
}
.hero-logo img { width: 78%; height: auto; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.stat {
    display: flex; flex-direction: column; padding: 10px 16px; border-radius: 14px; min-width: 110px;
    background: var(--ae-panel-2); border: 1px solid var(--ae-line);
}
.stat b { font-family: var(--ae-font-wide); font-size: 20px; color: var(--ae-ink); letter-spacing: .04em; line-height: 1.2; }
.stat span { font-family: var(--ae-font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ae-mute); }

/* Marken-Kacheln (Silber bleibt in beiden Modi hell) */
.brand-tile {
    display: flex; flex-direction: column; gap: 14px; padding: 16px; text-decoration: none; color: #1b1c20;
    border-radius: var(--ae-r-lg); background: var(--ae-silver); box-shadow: var(--ae-silver-hi), var(--ae-shadow); border: 1px solid #d0d2d6;
    transition: transform .3s var(--ae-ease), box-shadow .3s;
}
.brand-tile:hover { transform: translateY(-3px); box-shadow: var(--ae-silver-hi), var(--ae-shadow-up); }
.brand-tile-logo { position: relative; height: 92px; border-radius: 12px; display: grid; place-items: center; padding: 12px; background: rgb(255 255 255 / .6); overflow: hidden; }
.brand-tile-logo.is-dark { background: var(--ae-black); }
.brand-tile-logo img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.brand-tile-logo .wordmark { font-family: var(--ae-font-wide); font-weight: 700; font-size: 20px; letter-spacing: .18em; text-transform: uppercase; color: #1b1c20; }
.brand-tile strong { font-family: var(--ae-font-wide); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.brand-tile strong .ico { width: 16px; height: 16px; color: #585b62; }
.brand-tile small { font-family: var(--ae-font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #585b62; margin-top: -10px; }

/* =====================================================================
   EQUIPMENT
   ===================================================================== */
.gear-group { padding: 22px; }
.gear-group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.gear-icon {
    width: 40px; height: 40px; padding: 9px; border-radius: 12px; flex-shrink: 0;
    background: var(--ae-silver); box-shadow: var(--ae-silver-hi), 0 1px 2px rgb(0 0 0 / .08); color: #2a2c31;
}
.gear-count { margin-left: auto; }
.gear-list { display: flex; flex-direction: column; }
.gear-item {
    display: flex; align-items: center; gap: 14px; padding: 12px 10px; border-radius: 12px; text-decoration: none; color: inherit;
    border-top: 1px dotted var(--ae-line); transition: background-color .15s, box-shadow .15s;
}
.gear-item:first-child { border-top: 0; }
.gear-item:hover { background: var(--ae-panel-2); box-shadow: inset 3px 0 0 var(--ae-accent-2); }
.gear-maker { font-family: var(--ae-font-mono); font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--ae-mute); min-width: 0; }
.gear-name { font-weight: 600; color: var(--ae-ink); }
.gear-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }
.gear-src { display: inline-flex; align-items: center; gap: 6px; font-family: var(--ae-font-mono); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ae-mute); flex-shrink: 0; }
.gear-src .ico { width: 14px; height: 14px; }
.gear-item:hover .gear-src { color: var(--ae-accent-ink); }
.masonry { columns: 2 380px; column-gap: 14px; }
.masonry > * { break-inside: avoid; margin-bottom: 14px; }

/* =====================================================================
   BLOG
   ===================================================================== */
.post-hero { padding: 0; overflow: hidden; }
.post-hero .card-media { aspect-ratio: 21 / 9; }
.post-body { padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.gallery-item {
    position: relative; display: block; padding: 0; border: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 2;
    background: #0b0c0e; cursor: zoom-in;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ae-ease); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item.is-logo { background: #fff; }
.gallery-item.is-logo img { object-fit: contain; padding: 16px; }
.gallery-item::after {
    content: attr(data-credit); position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 6px;
    font-family: var(--ae-font-mono); font-size: 9.5px; letter-spacing: .08em; color: #fff; background: rgb(0 0 0 / .55);
    opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s;
}
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; transform: none; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 18px; border-top: 1px dotted var(--ae-line); }
.share .kicker { margin: 0 6px 0 0; }

/* =====================================================================
   PRESSEFOTOS
   ===================================================================== */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search {
    position: relative; flex: 1; min-width: 220px;
}
.search .ico { position: absolute; left: 14px; top: 50%; margin-top: -9px; width: 18px; height: 18px; color: var(--ae-mute); pointer-events: none; }
.search input { padding-left: 42px !important; }
.press-list { display: flex; flex-direction: column; gap: 14px; }
.press-item { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; padding: 22px; }
.press-side { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.press-side .h2 { font-size: 16px; }
.press-side .meta { flex-direction: column; gap: 4px; }
.press-side .chips { margin-top: 4px; }
.press-item .gallery { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.press-empty { text-align: center; padding: 40px; }
.license {
    display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--ae-r-lg);
    background: var(--ae-accent-soft); border: 1px solid var(--ae-accent-line); font-size: 14px; color: var(--ae-ink-3);
}
.license .ico { color: var(--ae-accent-ink); margin-top: 2px; }

/* =====================================================================
   FORMULAR (Kontakt)
   ===================================================================== */
.form-wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.steps { display: flex; gap: 6px; margin-bottom: 22px; }
.step {
    flex: 1; display: flex; flex-direction: column; gap: 8px;
    font-family: var(--ae-font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ae-mute-2);
}
.step::before { content: ""; height: 4px; border-radius: 4px; background: var(--ae-line); transition: background-color .3s; }
.step.is-done { color: var(--ae-mute); }
.step.is-done::before { background: var(--ae-ink-3); }
.step.is-active { color: var(--ae-ink); }
.step.is-active::before { background: var(--ae-accent); }
.fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.js .fieldset:not(.is-current) { display: none; }
.js .fieldset.is-current { animation: ae-rise .4s var(--ae-ease) both; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.label { font-family: var(--ae-font-mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ae-ink-4); }
.label i { font-style: normal; color: var(--ae-accent-ink); }
.input, .textarea, .select {
    width: 100%; padding: 12px 14px; font: inherit; font-size: 15px; color: var(--ae-ink);
    background: var(--ae-panel-2); border: 1px solid var(--ae-line); border-radius: var(--ae-r-md);
    box-shadow: inset 0 1px 2px rgb(0 0 0 / .04); caret-color: var(--ae-accent-2);
    transition: border-color .2s, box-shadow .25s var(--ae-ease), background-color .2s;
}
.textarea { min-height: 160px; resize: vertical; }
.input:hover, .textarea:hover, .select:hover { border-color: var(--ae-mute-2); }
.input:focus, .textarea:focus, .select:focus {
    outline: none; border-color: var(--ae-ink-3); background: var(--ae-panel);
    box-shadow: 0 0 0 4px rgb(var(--ae-accent-rgb) / .45);
}
html.dark .input:focus, html.dark .textarea:focus, html.dark .select:focus { box-shadow: 0 0 0 4px rgb(var(--ae-accent-rgb) / .22); }
.input::placeholder, .textarea::placeholder { color: var(--ae-mute-2); }
.field.has-error .input, .field.has-error .textarea, .field.has-error .choice-grid { border-color: var(--ae-err); }
.field-error { font-size: 12.5px; color: var(--ae-err); display: none; }
.field.has-error .field-error { display: block; }
.hint { font-size: 12.5px; color: var(--ae-mute); }
/* Kategorie als Kacheln */
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border-radius: var(--ae-r-md); border: 1px solid transparent; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice > span {
    display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; height: 100%;
    border-radius: 14px; border: 1px solid var(--ae-line); background: var(--ae-panel-2); cursor: pointer;
    font-family: var(--ae-font-wide); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ae-ink-3);
    transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
.choice > span > .ico { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: var(--ae-silver); box-shadow: var(--ae-silver-hi); color: #2a2c31; }
.choice:hover > span { border-color: var(--ae-mute-2); }
.choice input:checked + span .hint { color: inherit; opacity: .8; }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px rgb(var(--ae-accent-rgb) / .45); }
.choice input:checked + span {
    background: linear-gradient(180deg, var(--ae-accent-hi) 0%, var(--ae-accent) 60%, var(--ae-accent-2) 100%); color: var(--ae-on-accent); border-color: transparent;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .7), 0 6px 18px -8px rgb(var(--ae-accent-rgb) / .75);
}
.choice input:checked + span .ico { background: var(--ae-black); color: var(--ae-accent); box-shadow: none; }
.form-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; }
.form-nav .btn:only-child { margin-left: auto; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ae-ink-4); }
.consent input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--ae-accent-2); flex-shrink: 0; }

.notice { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--ae-r-lg); border: 1px solid; }
.notice .ico { width: 42px; height: 42px; padding: 10px; border-radius: 12px; }
.notice.ok { background: var(--ae-ok-soft); border-color: color-mix(in srgb, var(--ae-ok) 40%, transparent); }
.notice.ok .ico { background: var(--ae-ok); color: #fff; }
.notice.err { background: var(--ae-err-soft); border-color: color-mix(in srgb, var(--ae-err) 40%, transparent); }
.notice.err .ico { background: var(--ae-err); color: #fff; }
.notice .h3 { margin-bottom: 4px; }

.info-list { display: flex; flex-direction: column; gap: 4px; }
.info-row { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; text-decoration: none; color: inherit; transition: background-color .15s; }
a.info-row:hover { background: var(--ae-panel-2); }
.info-row .gear-icon { width: 36px; height: 36px; padding: 8px; }
.info-row small { display: block; font-family: var(--ae-font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ae-mute); }
.info-row b { font-weight: 600; color: var(--ae-ink); overflow-wrap: anywhere; }

/* =====================================================================
   RECHTLICHES
   ===================================================================== */
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 14px; align-items: start; }
.toc { position: sticky; top: 104px; padding: 18px; }
.toc a { display: block; padding: 7px 10px; border-radius: 10px; text-decoration: none; font-size: 13.5px; color: var(--ae-ink-4); }
.toc a:hover { background: var(--ae-panel-3); color: var(--ae-ink); box-shadow: inset 3px 0 0 var(--ae-accent); }
.legal-body { display: flex; flex-direction: column; gap: 14px; }
.legal-body section { scroll-margin-top: 104px; }
.legal-body .h3 { margin-bottom: 10px; }
.legal-body .prose { font-size: 14.5px; color: var(--ae-ink-3); }
.legal-body ul.dots li { position: relative; padding-left: 18px; }
.legal-body ul.dots li + li { margin-top: 4px; }
.legal-body ul.dots li::before { content: ""; position: absolute; left: 2px; top: .65em; width: 6px; height: 6px; border-radius: 2px; background: var(--ae-accent); }
.address { font-style: normal; line-height: 1.7; }
:target > .panel, section:target { box-shadow: 0 0 0 3px rgb(var(--ae-accent-rgb) / .5), var(--ae-shadow); }

/* =====================================================================
   FUSSZEILE
   ===================================================================== */
.site-foot { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.foot-panel { display: flex; align-items: center; gap: 18px; padding: 12px 12px 12px 14px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand strong { display: block; font-family: var(--ae-font-wide); font-size: 13px; letter-spacing: .16em; color: var(--ae-ink); line-height: 1.2; }
.foot-brand small { font-family: var(--ae-font-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ae-mute); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.foot-links a {
    padding: 8px 12px; border-radius: 10px; text-decoration: none;
    font-family: var(--ae-font-mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ae-ink-4);
    transition: background-color .15s, color .15s;
}
.foot-links a:hover { background: var(--ae-panel-3); color: var(--ae-ink); }
.foot-copy {
    display: flex; justify-content: space-between; gap: 10px; padding: 0 14px 4px;
    font-family: var(--ae-font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ae-mute);
}

/* =====================================================================
   LIGHTBOX
   ===================================================================== */
.lightbox {
    position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
    padding: 24px; background: rgb(10 11 13 / .88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    animation: ae-rise .25s var(--ae-ease);
}
.lightbox figure { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; max-height: 100%; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 110px); border-radius: 14px; box-shadow: 0 30px 70px -24px rgb(0 0 0 / .8); object-fit: contain; }
.lightbox figcaption { display: flex; gap: 16px; font-family: var(--ae-font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #c8cacf; }
.lb-count { color: var(--ae-accent); }
.lightbox figcaption { flex-wrap: wrap; justify-content: center; }
.lb-exif { text-transform: none; letter-spacing: .04em; color: #9a9da4; }
.lb-exif:empty { display: none; }

/* Kameradaten (EXIF) in der rechten unteren Bildecke – erscheinen wie der Bildnachweis beim Überfahren;
   auf Touch-Geräten (ohne Maus) dauerhaft, aber dezent */
.img-exif {
    position: absolute; right: 8px; bottom: 8px; z-index: 2; max-width: calc(100% - 16px); padding: 3px 8px; border-radius: 6px;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis; pointer-events: none;
    font-family: var(--ae-font-mono); font-size: 9.5px; letter-spacing: .04em; color: #fff; background: rgb(0 0 0 / .55);
    opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s;
}
.has-exif:hover > .img-exif, .has-exif:focus-visible > .img-exif, .has-exif:focus-within > .img-exif { opacity: 1; transform: none; }
/* Bildnachweis links und Kameradaten rechts teilen sich die Breite */
.gallery-item.has-exif::after { max-width: 45%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gallery-item.has-exif > .img-exif { max-width: calc(55% - 20px); }
@media (hover: none) { .img-exif { opacity: .85; transform: none; font-size: 8.5px; } }
.lb-btn {
    width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; border: 1px solid rgb(255 255 255 / .16);
    background: rgb(255 255 255 / .06); color: #fff; transition: background-color .2s, color .2s;
}
.lb-btn:hover { background: var(--ae-accent); color: var(--ae-on-accent); border-color: transparent; }
.lb-close { position: absolute; top: 18px; right: 18px; }
.lb-single .lb-prev, .lb-single .lb-next { visibility: hidden; }
body.lb-open { overflow: hidden; }

/* =====================================================================
   PAGEBUILDER-BAUSTEINE
   ===================================================================== */
.hero-plain { grid-template-columns: 1fr; min-height: 0; }
.hero-lead.prose p + p { margin-top: 8px; }
.pb-prose { margin-top: 14px; max-width: 75ch; color: var(--ae-ink-3); }
.pb-prose .h3 { margin: 18px 0 8px; }
.prose ul.dots { margin: 10px 0; }
.prose ul.dots li { position: relative; padding-left: 18px; }
.prose ul.dots li + li { margin-top: 4px; }
.prose ul.dots li::before { content: ""; position: absolute; left: 2px; top: .65em; width: 6px; height: 6px; border-radius: 2px; background: var(--ae-accent); }
.pb-stack { display: flex; flex-direction: column; gap: 14px; }
.pb-section-intro { margin: -6px 0 16px; max-width: 75ch; }
.license .pb-section-intro { margin: 0; }
.pb-text[id] { scroll-margin-top: 104px; }
.form-wrap.no-aside { grid-template-columns: 1fr; }

/* Text & Bild nebeneinander */
.pb-split { display: grid; gap: 30px; align-items: center; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pb-split.w-40 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.pb-split.w-60 { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.pb-split.is-left.w-40 { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.pb-split.is-left.w-60 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.pb-split.is-left .pb-split-media { order: -1; }
.pb-split.v-start { align-items: start; }
.pb-split-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pb-split-text .btn-row { margin-top: 14px; }
.pb-split-media { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; }
.pb-split-media .gallery-item { width: 100%; }
.pb-split-media figcaption { justify-content: flex-end; padding: 0 4px; }
@media (max-width: 760px) {
    .pb-split, .pb-split.w-40, .pb-split.w-60, .pb-split.is-left.w-40, .pb-split.is-left.w-60 { grid-template-columns: 1fr; gap: 18px; }
    .pb-split .pb-split-media { order: -1; }
}
.pb-image { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.pb-image-frame { width: 100%; aspect-ratio: auto; }
.pb-image-frame img { height: 100%; }
.pb-image figcaption { padding: 0 6px 2px; justify-content: space-between; }
.pb-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 36px 20px; text-align: center;
    border: 2px dashed var(--ae-line); border-radius: var(--ae-r-lg); color: var(--ae-mute);
    font-family: var(--ae-font-mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.pb-empty .ico { width: 32px; height: 32px; }
.pb-feature { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--ae-r-lg); background: var(--ae-panel-2); border: 1px solid var(--ae-line); }
.pb-feature .prose { font-size: 14px; }
.pb-cta { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.pb-cta > div { max-width: 62ch; display: flex; flex-direction: column; gap: 6px; }
.pb-cta.is-accent { background: linear-gradient(135deg, var(--ae-accent-hi) 0%, var(--ae-accent) 55%, var(--ae-accent-2) 100%); border-color: transparent; color: var(--ae-on-accent); }
.pb-cta.is-accent :is(.h2, .kicker, .prose) { color: var(--ae-on-accent); }
.pb-cta.is-accent .kicker { opacity: .75; }
.pb-cta.is-accent .prose a { color: var(--ae-on-accent); }
.pb-cta.is-dark { background: #17181b; border-color: #2c3036; color: #e5e6e8; }
html.dark .pb-cta.is-dark { background: #050506; }
.pb-cta.is-dark .h2 { color: #fff; }
.pb-cta.is-dark .kicker { color: var(--ae-accent); }
/* Design-Optionen je Baustein (Pagebuilder → Baustein → Design): Hülle .pb-d mit Klassen/Variablen */
.pb-d { min-width: 0; }
.pb-d.has-ink {   /* Textfarbe: alle Schrift-Töne des Bausteins umfärben */
    --ae-ink: var(--pb-ink); --ae-ink-2: var(--pb-ink); --ae-ink-3: var(--pb-ink); --ae-ink-4: var(--pb-ink);
    --ae-mute: color-mix(in srgb, var(--pb-ink) 72%, transparent); --ae-mute-2: color-mix(in srgb, var(--pb-ink) 55%, transparent);
    color: var(--pb-ink);
}
.pb-d.bg-none .panel { border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.pb-d.bg-accent .panel, .pb-d.bg-dark .panel, .pb-d.bg-custom .panel { -webkit-backdrop-filter: none; backdrop-filter: none; }
.pb-d.bg-accent .panel { border-color: transparent; background-image: linear-gradient(var(--ae-on-accent), var(--ae-on-accent)), radial-gradient(circle, rgb(0 0 0 / .25) 0 2.5px, transparent 3px), var(--ae-surface); }
.pb-d.al-left   { text-align: left; }
.pb-d.al-center { text-align: center; }
.pb-d.al-right  { text-align: right; }
.pb-d.al-center .btn-row, .pb-d.al-center .panel-head { justify-content: center; }
.pb-d.al-right .btn-row, .pb-d.al-right .panel-head { justify-content: flex-end; }
.pb-d.al-center .prose { margin-inline: auto; }   /* begrenzte Textbreite mit ausrichten */
.pb-d.al-right .prose { margin-left: auto; }
.pb-d.al-center .pb-quote { align-items: center; }
.pb-d.al-right .pb-quote { align-items: flex-end; }
.pb-d.fs-s .prose, .pb-d.fs-s .pb-quote blockquote { font-size: .88em; }
.pb-d.fs-l .prose { font-size: 1.15em; }
.pb-d.fs-xl .prose { font-size: 1.32em; }
.pb-d.fs-s .h2 { font-size: 15px; }
.pb-d.fs-l .h2 { font-size: 23px; }
.pb-d.fs-xl .h2 { font-size: clamp(24px, 3.4vw, 32px); }
.pb-d.fs-l .pb-quote blockquote { font-size: clamp(21px, 2.9vw, 29px); }
.pb-d.fs-xl .pb-quote blockquote { font-size: clamp(24px, 3.6vw, 36px); }
/* Größe in px und Schriftart (Design → Textgröße/Überschrift in px, Schriftart) – stehen nach den Größen-Stufen und gewinnen */
.pb-d.has-tpx .prose, .pb-d.has-tpx .pb-quote blockquote, .pb-d.has-tpx .hero-lead, .pb-d.has-tpx .card-body p, .pb-d.has-tpx figcaption { font-size: var(--pb-tpx); }
.pb-d.has-hpx .h2, .pb-d.has-hpx .h3, .pb-d.has-hpx .display, .pb-d.has-hpx .prose h3 { font-size: var(--pb-hpx); }
.pb-d.has-ft, .pb-d.has-ft .prose, .pb-d.has-ft .pb-quote blockquote, .pb-d.has-ft p, .pb-d.has-ft li { font-family: var(--pb-ft); }
.pb-d.has-fh .h2, .pb-d.has-fh .h3, .pb-d.has-fh .display, .pb-d.has-fh .kicker, .pb-d.has-fh .prose h3 { font-family: var(--pb-fh); }
.pb-d.pad-s .panel { padding: 16px 18px; }
.pb-d.pad-l .panel { padding: 44px 48px; }
.pb-d.sp-s { margin-block: 14px; }
.pb-d.sp-l { margin-block: 40px; }
.pb-d.w-wide { width: 100%; max-width: 1040px; margin-inline: auto; }
.pb-d.w-narrow { width: 100%; max-width: 760px; margin-inline: auto; }
.pb-d.r-square .panel { border-radius: 0; }
.pb-d.r-round .panel { border-radius: 36px; }
.pb-d.deco-off .panel { background-image: var(--ae-surface); }
@media (max-width: 760px) {
    .pb-d.only-desktop { display: none; }
    .pb-d.pad-l .panel { padding: 30px 24px; }
}
@media (min-width: 761px) { .pb-d.only-mobile { display: none; } }

/* ---------- Bausteine: Vorher/Nachher, Video, FAQ, Preise, Zeitleiste, Zahlen ---------- */
.pb-caption { margin-top: 12px; font-size: 13.5px; }
.pb-ba { position: relative; margin: 0; overflow: hidden; border-radius: var(--ae-r-lg); user-select: none; touch-action: pan-y; background: var(--ae-panel-3); }
.pb-ba > img, .pb-ba-before img { display: block; width: 100%; height: auto; }
.pb-ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.pb-ba-before img { height: 100%; object-fit: cover; }
.pb-ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px rgb(0 0 0 / .4); pointer-events: none; }
.pb-ba-line i { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--ae-accent); box-shadow: 0 6px 20px rgb(0 0 0 / .35); }
.pb-ba-line i::before, .pb-ba-line i::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; border: solid var(--ae-on-accent); border-width: 0 0 2px 2px; }
.pb-ba-line i::before { left: 10px; transform: rotate(45deg); }
.pb-ba-line i::after { right: 10px; transform: rotate(-135deg); }
.pb-ba-tag { position: absolute; top: 12px; padding: 4px 10px; border-radius: 99px; background: rgb(0 0 0 / .55); color: #fff; font-family: var(--ae-font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; pointer-events: none; }
.pb-ba-tag.is-l { left: 12px; }
.pb-ba-tag.is-r { right: 12px; }
.pb-ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.pb-ba-range:focus-visible + * { outline: none; }
.pb-ba:has(.pb-ba-range:focus-visible) .pb-ba-line i { outline: 3px solid #fff; outline-offset: 2px; }

.pb-video { position: relative; overflow: hidden; border-radius: var(--ae-r-lg); background: #0a0b0d; aspect-ratio: 16 / 9; }
.pb-video.is-4x3 { aspect-ratio: 4 / 3; }
.pb-video.is-1x1 { aspect-ratio: 1; max-width: 640px; margin: 0 auto; }
.pb-video.is-9x16 { aspect-ratio: 9 / 16; max-width: 400px; margin: 0 auto; }
.pb-video video, .pb-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.pb-video-load { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; cursor: pointer; color: #fff;
    background: radial-gradient(circle at 50% 45%, rgb(var(--ae-accent-rgb) / .22), transparent 60%), linear-gradient(135deg, #16181c, #0a0b0d); }
.pb-video-load img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: opacity .2s; }
.pb-video-load:hover img { opacity: .9; }
.pb-video-play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%; background: var(--ae-accent); color: var(--ae-on-accent); box-shadow: 0 10px 30px rgb(0 0 0 / .4); transition: transform .2s; }
.pb-video-play svg { width: 32px; height: 32px; margin-left: 4px; }
.pb-video-load:hover .pb-video-play { transform: scale(1.08); }
.pb-video-note { position: absolute; left: 12px; right: 12px; bottom: 10px; font-size: 11.5px; color: rgb(255 255 255 / .75); text-shadow: 0 1px 4px rgb(0 0 0 / .8); }

.pb-faq { display: flex; flex-direction: column; gap: 8px; }
.pb-faq-item { border: 1px solid var(--ae-line); border-radius: 14px; background: var(--ae-panel-2); }
.pb-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; cursor: pointer; list-style: none; font-weight: 600; color: var(--ae-ink); }
.pb-faq-item summary::-webkit-details-marker { display: none; }
.pb-faq-ico { width: 18px; height: 18px; flex-shrink: 0; transition: transform .2s; color: var(--ae-accent-ink); }
.pb-faq-item[open] .pb-faq-ico { transform: rotate(180deg); }
.pb-faq-item .prose { padding: 0 18px 16px; }

.pb-prices { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.pb-price { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px 22px; border: 1px solid var(--ae-line); border-radius: var(--ae-r-lg); background: var(--ae-panel-2); }
.pb-price.is-hl { border-color: var(--ae-accent); box-shadow: 0 0 0 1px var(--ae-accent), 0 18px 40px -20px rgb(var(--ae-accent-rgb) / .55); }
.pb-price-badge { position: absolute; top: -11px; right: 18px; padding: 3px 10px; border-radius: 99px; background: var(--ae-accent); color: var(--ae-on-accent); font-family: var(--ae-font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.pb-price-val b { font-family: var(--ae-font-wide); font-size: clamp(26px, 3vw, 34px); color: var(--ae-ink); }
.pb-price-val small { color: var(--ae-mute); font-size: 13px; }
.pb-price-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; font-size: 14px; color: var(--ae-ink-3); }
.pb-price-list li { display: flex; gap: 8px; align-items: flex-start; }
.pb-price-list .ico { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--ae-accent-ink); }
.pb-price .btn { justify-content: center; }

.pb-timeline { list-style: none; margin: 0; padding: 0 0 0 4px; position: relative; display: flex; flex-direction: column; gap: 22px; }
.pb-timeline::before { content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 2px; background: var(--ae-line); }
.pb-tl-item { position: relative; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 4px 18px; padding-left: 34px; }
.pb-tl-dot { position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--ae-accent); box-shadow: 0 0 0 4px var(--ae-panel), 0 0 0 5px var(--ae-accent-line); }
.pb-tl-date { font-family: var(--ae-font-mono); font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--ae-accent-ink); padding-top: 2px; }
.pb-tl-body { display: flex; flex-direction: column; gap: 6px; grid-column: 2; }
.pb-tl-item > .pb-tl-date + .pb-tl-body { grid-column: 2; }
.pb-tl-img { max-width: 420px; width: 100%; border-radius: 12px; margin-top: 4px; }

.pb-counters { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 14px; }
.pb-counter { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--ae-r-lg); background: var(--ae-panel-2); border: 1px solid var(--ae-line); text-align: center; }
.pb-counter b { font-family: var(--ae-font-wide); font-size: clamp(32px, 5vw, 52px); line-height: 1; color: var(--ae-ink); }
.pb-counter b .pb-count { color: var(--ae-accent-ink); }
@media (max-width: 760px) {
    .pb-prices, .pb-counters { grid-template-columns: 1fr; }
    .pb-counters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pb-tl-item { grid-template-columns: 1fr; }
    .pb-tl-body, .pb-tl-item > .pb-tl-date + .pb-tl-body { grid-column: 1; }
}

/* Eigene Inhaltsarten: Karte ohne Titelbild */
.card-noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ae-accent); background: var(--ae-accent-soft); }
.card-noimg .ico { width: 42px; height: 42px; }

/* Eigenes HTML: Einbettungen nie breiter als der Inhaltsbereich */
.pb-html { overflow-wrap: anywhere; }
.pb-html.panel { padding: 30px 34px; }
.pb-html iframe, .pb-html video, .pb-html img { max-width: 100%; }
.pb-quote { display: flex; flex-direction: column; gap: 14px; padding: 30px 34px; }
.pb-quote-icon { width: 42px; height: 42px; padding: 9px; border-radius: 12px; background: var(--ae-accent); color: var(--ae-on-accent); }
.pb-quote blockquote { margin: 0; font-family: var(--ae-font-wide); font-size: clamp(18px, 2.4vw, 24px); line-height: 1.4; letter-spacing: .02em; color: var(--ae-ink); }
.pb-quote figcaption { display: flex; flex-direction: column; font-size: 14px; }
.pb-quote figcaption strong { color: var(--ae-ink); }
.pb-quote figcaption span { font-family: var(--ae-font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ae-mute); }

/* ---------- Bausteine: Portfolio, Showreel, Logo-Leiste, Termine, Downloads, Abschnittstitel, Fahrzeug ---------- */
/* Portfolio */
.pb-pf-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.pb-pf-filter button { padding: 7px 14px; border: 1px solid var(--ae-line); border-radius: 99px; background: var(--ae-panel-2); color: var(--ae-ink-3, var(--ae-ink)); font: 600 12px/1 var(--ae-font-mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.pb-pf-filter button:hover { border-color: var(--ae-accent-line, var(--ae-accent)); }
.pb-pf-filter button.is-active { background: var(--ae-accent); border-color: var(--ae-accent); color: var(--ae-on-accent); }
.pb-pf-item { display: flex; flex-direction: column; gap: 10px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pb-pf-item[hidden] { display: none; }
.pb-pf-media { position: relative; display: block; overflow: hidden; border-radius: var(--ae-r-lg); background: var(--ae-panel-3, var(--ae-panel-2)); }
.pb-pf-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ae-ease, ease); }
.pb-pf-item:hover .pb-pf-media img, .pb-pf-item:focus-visible .pb-pf-media img { transform: scale(1.045); }
.pb-pf-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 0 var(--ae-accent); transition: box-shadow .2s; }
.pb-pf-item:hover .pb-pf-media::after, .pb-pf-item:focus-visible .pb-pf-media::after { box-shadow: inset 0 0 0 3px var(--ae-accent); }
.pb-pf-badge { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 99px; background: rgb(0 0 0 / .6); color: #fff; font: 700 10.5px/1 var(--ae-font-mono); letter-spacing: .1em; text-transform: uppercase; }
.pb-pf-badge .ico { width: 13px; height: 13px; }
.pb-pf-cap { display: flex; flex-direction: column; gap: 4px; padding: 0 2px; }
.pb-pf-cap .h3 { color: var(--ae-ink); }
.pb-pf-none { margin-top: 12px; }
.pb-pf-dialog { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgb(6 7 9 / .72); backdrop-filter: blur(6px); overflow-y: auto; animation: ae-rise .25s var(--ae-ease, ease); }
.pb-pf-dialog[hidden] { display: none; }
.pb-pf-sheet { position: relative; width: min(980px, 100%); max-height: none; display: flex; flex-direction: column; gap: 16px; margin: auto; }
.pb-pf-close { position: absolute; right: 14px; top: 14px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--ae-line); border-radius: 12px; background: var(--ae-panel-2); color: var(--ae-ink); cursor: pointer; }
.pb-pf-close:hover { border-color: var(--ae-accent); }
.pb-pf-close .ico { width: 18px; height: 18px; }
.pb-pf-head { padding-right: 52px; display: flex; flex-direction: column; gap: 6px; }
.pb-pf-gallery { margin-top: 2px; }
body.pf-open { overflow: hidden; }

/* Showreel */
.pb-reel { position: relative; overflow: hidden; display: flex; padding: clamp(24px, 4vw, 48px); min-height: 80vh; color: #fff; background: #08090b; isolation: isolate; }
.pb-reel.h-m { min-height: 60vh; }
.pb-reel.h-full { min-height: calc(100vh - 120px); min-height: calc(100svh - 120px); }
.pb-reel-media { position: absolute; inset: 0; z-index: -2; }
.pb-reel-media img, .pb-reel-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pb-reel-video { opacity: 0; transition: opacity .8s; }
.pb-reel.is-loaded .pb-reel-video { opacity: 1; }
.pb-reel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(0 0 0 / .15), rgb(0 0 0 / .55)); }
.pb-reel.sh-light::before { background: linear-gradient(180deg, rgb(0 0 0 / 0), rgb(0 0 0 / .4)); }
.pb-reel.sh-strong::before { background: linear-gradient(180deg, rgb(0 0 0 / .45), rgb(0 0 0 / .78)); }
.pb-reel.al-left::before { background: linear-gradient(90deg, rgb(0 0 0 / .7), rgb(0 0 0 / .15) 70%); }
.pb-reel-text { position: relative; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; max-width: 760px; margin-top: auto; }
.pb-reel.al-left .pb-reel-text { margin-block: auto; }
.pb-reel.al-center .pb-reel-text { margin: auto; align-items: center; text-align: center; }
.pb-reel .display { color: #fff; }
.pb-reel .display em { color: var(--ae-accent); }
.pb-reel .hero-lead, .pb-reel .hero-lead p { color: rgb(255 255 255 / .85); }
.pb-reel .tag { background: rgb(0 0 0 / .55); color: #fff; }
.pb-reel-toggle { position: absolute; right: 18px; bottom: 18px; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgb(255 255 255 / .35); border-radius: 50%; background: rgb(0 0 0 / .45); cursor: pointer; backdrop-filter: blur(4px); }
.pb-reel-toggle:hover { border-color: var(--ae-accent); }
.pb-reel-toggle span.is-pause { width: 12px; height: 14px; border: solid #fff; border-width: 0 4px; }
.pb-reel-toggle span.is-play { width: 0; height: 0; margin-left: 4px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; }
.pb-reel-hint { position: absolute; inset: 0; z-index: -1; display: grid; place-items: center; align-content: center; gap: 10px; padding: 20px; color: rgb(255 255 255 / .6); text-align: center; font-size: 14px;
    background: repeating-linear-gradient(135deg, rgb(255 255 255 / .03) 0 12px, transparent 12px 24px); }
.pb-reel-hint .ico { width: 38px; height: 38px; color: var(--ae-accent); }
@media (max-width: 760px) { .pb-reel { min-height: 70vh; padding: 22px; } .pb-reel.h-m { min-height: 52vh; } }

/* Logo-Leiste */
.pb-logos { --lh: 52px; display: flex; flex-direction: column; gap: 16px; }
.pb-logos.sz-s { --lh: 36px; } .pb-logos.sz-l { --lh: 76px; }
.pb-logos-head { display: flex; flex-direction: column; gap: 4px; }
.pb-logos ul { list-style: none; margin: 0; padding: 0; }
.pb-logo { display: grid; place-items: center; }
.pb-logo a { display: grid; place-items: center; }
.pb-logo img { height: var(--lh); width: auto; max-width: calc(var(--lh) * 3.4); object-fit: contain; transition: filter .25s, opacity .25s; }
.pb-logos.is-gray .pb-logo img { filter: grayscale(1); opacity: .62; }
html.dark .pb-logos.is-gray .pb-logo img { filter: grayscale(1) brightness(1.6); }
.pb-logos.is-gray .pb-logo:hover img, .pb-logos.is-gray .pb-logo a:focus-visible img { filter: none; opacity: 1; }
.pb-logos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(calc(var(--lh) * 2.6), 1fr)); gap: 22px 28px; align-items: center; }
.pb-logos-track { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.pb-logos-row { display: flex; width: max-content; gap: 56px; padding-right: 56px; animation: pb-marquee calc(var(--n) * 4.5s) linear infinite; }
.pb-logos.sp-slow .pb-logos-row { animation-duration: calc(var(--n) * 7s); }
.pb-logos.sp-fast .pb-logos-row { animation-duration: calc(var(--n) * 2.6s); }
.pb-logos-track:hover .pb-logos-row, .pb-logos-track:focus-within .pb-logos-row { animation-play-state: paused; }
@keyframes pb-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .pb-logos-track { -webkit-mask-image: none; mask-image: none; }
    .pb-logos-row { flex-wrap: wrap; width: auto; justify-content: center; gap: 22px 40px; padding: 0; }
    .pb-logos-row [aria-hidden="true"] { display: none; }
}

/* Termine */
.pb-ev-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pb-ev { display: grid; grid-template-columns: 66px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 16px; border: 1px solid var(--ae-line); border-radius: var(--ae-r-lg); background: var(--ae-panel-2); }
.pb-ev.is-now { border-color: var(--ae-accent); box-shadow: 0 0 0 1px var(--ae-accent); }
.pb-ev.is-past { opacity: .62; }
.pb-ev-cal { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 66px; border-radius: 14px; background: var(--ae-accent); color: var(--ae-on-accent); line-height: 1; }
.pb-ev.is-past .pb-ev-cal { background: var(--ae-panel-3, var(--ae-line)); color: var(--ae-ink); }
.pb-ev-cal b { font-family: var(--ae-font-wide); font-size: 26px; }
.pb-ev-cal small { margin-top: 4px; font: 700 10px/1 var(--ae-font-mono); letter-spacing: .1em; text-transform: uppercase; }
.pb-ev-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pb-ev-when { font: 700 12px/1.3 var(--ae-font-mono); letter-spacing: .06em; color: var(--ae-accent-ink); }
.pb-ev.is-past .pb-ev-when { color: var(--ae-mute); }
.pb-ev-live { display: inline-block; margin-right: 6px; padding: 2px 7px; border-radius: 99px; background: var(--ae-accent); color: var(--ae-on-accent); font-style: normal; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.pb-ev-place { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; color: var(--ae-mute); }
.pb-ev-place .ico { width: 14px; height: 14px; }
.pb-ev-empty { display: flex; align-items: center; gap: 10px; padding: 16px; border: 1px dashed var(--ae-line); border-radius: var(--ae-r-lg); }
.pb-ev-empty .ico { width: 20px; height: 20px; flex-shrink: 0; color: var(--ae-accent-ink); }
.pb-ev-archive { margin-top: 12px; border: 1px solid var(--ae-line); border-radius: 14px; }
.pb-ev-archive summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; font-weight: 600; color: var(--ae-ink); }
.pb-ev-archive summary::-webkit-details-marker { display: none; }
.pb-ev-archive[open] .pb-faq-ico { transform: rotate(180deg); }
.pb-ev-archive .pb-ev-list { padding: 0 12px 12px; }
@media (max-width: 760px) {
    .pb-ev { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
    .pb-ev-cal { height: 56px; } .pb-ev-cal b { font-size: 21px; }
    .pb-ev-btn { grid-column: 2; justify-self: start; }
}

/* Downloads */
.pb-dl-intro { margin-bottom: 14px; }
.pb-dl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pb-dl-item { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--ae-line); border-radius: var(--ae-r-lg); background: var(--ae-panel-2); }
.pb-dl-item.is-missing { border-style: dashed; opacity: .75; }
.pb-dl-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--ae-accent-soft, rgb(var(--ae-accent-rgb) / .14)); color: var(--ae-accent-ink); }
.pb-dl-ico .ico { width: 22px; height: 22px; }
.pb-dl-text { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pb-dl-text b { color: var(--ae-ink); overflow-wrap: anywhere; }
.pb-dl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--ae-mute); }
.pb-dl-meta .chip { padding: 2px 8px; font-size: 10.5px; }
.pb-dl-lock { display: inline-flex; align-items: center; gap: 4px; }
.pb-dl-lock .ico { width: 13px; height: 13px; }
@media (max-width: 760px) { .pb-dl-item { grid-template-columns: 40px minmax(0, 1fr); } .pb-dl-ico { width: 40px; height: 40px; } .pb-dl-btn { grid-column: 1 / -1; justify-content: center; } }

/* Abschnittstitel */
.pb-heading { display: flex; flex-direction: column; gap: 8px; padding: 18px 6px 4px; }
.pb-heading.panel { padding: 26px 30px; }
.pb-heading.al-center { align-items: center; text-align: center; }
.pb-heading-title { margin: 0; font-family: var(--ae-font-wide); font-size: clamp(24px, 3.2vw, 34px); font-weight: 700; letter-spacing: .04em; line-height: 1.15; text-transform: uppercase; color: var(--ae-ink); }
.pb-heading.sz-l .pb-heading-title { font-size: clamp(30px, 5vw, 54px); }
.pb-heading-text { margin: 0; max-width: 680px; color: var(--ae-mute); }
.pb-heading-line { display: block; margin-top: 6px; }
.pb-heading.ln-accent .pb-heading-line { width: 56px; height: 3px; border-radius: 3px; background: var(--ae-accent); }
.pb-heading.ln-line .pb-heading-line { width: 100%; height: 1px; background: var(--ae-line); }
.pb-heading.ln-dots .pb-heading-line { width: 100%; height: 2px; background: radial-gradient(circle, var(--ae-mute-2, var(--ae-mute)) 1px, transparent 1.5px) 0 50% / 10px 2px repeat-x; }
.pb-heading:not(.panel) .pb-heading-title { text-shadow: 0 1px 14px var(--ae-bg, transparent); }

/* Fahrzeug-Steckbrief (Baustein + Blog) */
.pb-veh { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 26px; align-items: center; }
.pb-veh.is-top, .pb-veh.no-img { grid-template-columns: 1fr; }
.pb-veh-media { position: relative; margin: 0; }
.pb-veh-media .gallery-item { display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: var(--ae-r-lg); overflow: hidden; }
.pb-veh.is-top .pb-veh-media .gallery-item { aspect-ratio: 21 / 9; }
.pb-veh-media img { width: 100%; height: 100%; object-fit: cover; }
.pb-veh-num { position: absolute; left: 14px; bottom: 14px; min-width: 54px; padding: 6px 12px; border-radius: 12px; background: #fff; color: #0b0c0e; font: 700 28px/1 var(--ae-font-wide); text-align: center; box-shadow: 0 0 0 3px var(--ae-accent), 0 10px 26px rgb(0 0 0 / .35); pointer-events: none; }
.pb-veh-num.is-inline { position: static; display: inline-block; min-width: 0; padding: 2px 10px; font-size: .8em; vertical-align: .08em; box-shadow: 0 0 0 2px var(--ae-accent); }
.pb-veh-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pb-veh-head { display: flex; flex-direction: column; gap: 8px; }
.pb-veh-name { margin: 0; }
.pb-veh-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; border: 1px solid var(--ae-line); border-radius: 14px; overflow: hidden; background: var(--ae-line); }
.pb-veh.is-top .pb-veh-specs { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.pb-veh-specs div { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; background: var(--ae-panel-2); }
.pb-veh-specs dt { font: 700 10.5px/1.2 var(--ae-font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ae-mute); }
.pb-veh-specs dd { margin: 0; font-weight: 600; color: var(--ae-ink); overflow-wrap: anywhere; }
.pb-veh-credit { font-size: 11px; }
@media (max-width: 900px) { .pb-veh { grid-template-columns: 1fr; gap: 18px; } }
@media (max-width: 420px) { .pb-veh-specs { grid-template-columns: 1fr; } }

/* Vorschau im Pagebuilder: Bausteine anklickbar */
.pb-preview [data-pb] { cursor: pointer; transition: box-shadow .15s; }
.pb-preview [data-pb]:hover { box-shadow: 0 0 0 3px rgb(var(--ae-accent-rgb) / .55), var(--ae-shadow); }
.pb-preview [data-pb].pb-selected { box-shadow: 0 0 0 3px var(--ae-accent), var(--ae-shadow-up); }

/* 404 */
.notfound { text-align: center; padding: 60px 26px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.notfound .code { font-family: var(--ae-font-wide); font-size: clamp(64px, 14vw, 140px); font-weight: 700; letter-spacing: .1em; line-height: 1; color: var(--ae-ink); }
.notfound .code span { color: var(--ae-accent); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1100px) {
    .topnav-link { padding: 0 6px; }
    .topnav-link span { display: none; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; padding: 28px 24px; }
    .hero-visual { max-width: 260px; order: -1; }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-wrap, .legal { grid-template-columns: 1fr; }
    .toc { position: static; }
    .press-item { grid-template-columns: 1fr; gap: 16px; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .shell { padding: 10px; gap: 10px; }
    .content, main { gap: 10px; }
    .topbar { top: 10px; flex-wrap: wrap; }
    .brand-text small { max-width: 120px; }
    .menu-btn { display: inline-flex; }
    .top-actions { margin-left: auto; }
    .topnav {
        order: 3; width: 100%; flex-direction: column; align-items: stretch; gap: 4px; margin: 0;
        display: none; padding: 6px 0 2px; border-top: 2px dotted var(--ae-line);
    }
    .menu-open .topnav { display: flex; animation: ae-rise .3s var(--ae-ease); }
    .topnav-link { padding: 0 12px 0 6px; }
    .topnav-link span { display: inline; }
    .topnav-insta { display: inline-flex; }
    .panel { padding: 20px; }
    .page-head { padding: 18px 20px 20px; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .choice-grid { grid-template-columns: 1fr; }
    .choice > span { flex-direction: row; align-items: center; }
    .foot-links { margin-left: 0; }
    .foot-copy { flex-direction: column; }
    .lightbox { grid-template-columns: 1fr 1fr; padding: 70px 12px 16px; }
    .lightbox figure { grid-column: 1 / -1; grid-row: 1; }
    .lb-prev { justify-self: end; } .lb-next { justify-self: start; }
}
@media (max-width: 420px) {
    .grid-4 { grid-template-columns: 1fr; }
    .brand-text small { display: none; }
}

/* =====================================================================
   RUHIGE FOLGEAUFRUFE (html.ae-calm) & BEWEGUNG REDUZIEREN
   ===================================================================== */
html.ae-calm :is(.topbar, .topnav-link, .page-head, main > *, .page-title, .display, .brand)::after,
html.ae-calm :is(.topbar, .topnav-link, .page-head, main > *) { animation: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after, body.ae::before, body.ae::after { animation: none !important; transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
}

/* Druck */
@media print {
    body.ae { background: #fff; color: #000; }
    body.ae::before, body.ae::after, .topbar, .site-foot, .share, .lightbox { display: none !important; }
    .panel, .page-head { box-shadow: none; border-color: #ccc; }
}

/* Baustein „Abstand“: die eingestellte Höhe ist der ganze Abstand zwischen den Nachbar-Bausteinen
   (der normale Bausteinabstand von main wird oben und unten herausgerechnet). Handy: eigene Höhe --hm. */
.pb-spacer { --gap: 14px; position: relative; height: var(--h); margin-block: calc(var(--gap) * -1); display: grid; place-items: center; pointer-events: none; }
.pb-spacer.ln-line::before { content: ""; width: 100%; height: 1px; background: var(--ae-line); }
.pb-spacer.ln-dots::before { content: ""; width: 100%; height: 2px; background: radial-gradient(circle, var(--ae-mute-2, var(--ae-mute)) 1px, transparent 1.5px) 0 50% / 10px 2px repeat-x; }
.pb-spacer.ln-accent::before { content: ""; width: 56px; height: 3px; border-radius: 3px; background: var(--ae-accent); }
@media (max-width: 760px) { .pb-spacer { --gap: 10px; height: var(--hm, var(--h)); } }
/* Pagebuilder-Vorschau: unsichtbaren Abstand sichtbar und anklickbar machen */
html.pb-preview .pb-spacer { pointer-events: auto; outline: 1px dashed rgb(var(--ae-accent-rgb) / .55); outline-offset: -1px; background: repeating-linear-gradient(135deg, rgb(var(--ae-accent-rgb) / .06) 0 8px, transparent 8px 16px); min-height: 18px; }
html.pb-preview .pb-spacer::after { content: attr(data-label); position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font: 700 10px/1 var(--ae-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ae-mute); background: var(--ae-bg); padding: 3px 6px; border-radius: 6px; }
/* ---------- Eigener Mauszeiger (assets/js/e5-cursor.js; Einstellungen → Design → Darstellung) ---------- */
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor :is(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="range"]), textarea, [contenteditable=""], [contenteditable="true"]) { cursor: text !important; }
.e5-cursor { position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; opacity: 0; transition: opacity .2s; }
.e5-cursor.is-on { opacity: 1; }
.e5-cursor.is-text { opacity: 0; }
.e5-cursor i { position: absolute; left: 0; top: 0; display: block; will-change: transform; }
/* Punkt: Größe über --s (Position läuft über transform) */
.e5c-dot { --s: 1; width: calc(8px * var(--s)); height: calc(8px * var(--s)); margin: calc(-4px * var(--s)) 0 0 calc(-4px * var(--s)); border-radius: 50%;
    background: var(--ae-accent); box-shadow: 0 0 0 1.5px rgb(0 0 0 / .35); transition: width .2s, height .2s, margin .2s, opacity .2s, background-color .2s; }
html.dark .e5c-dot { box-shadow: 0 0 0 1.5px rgb(255 255 255 / .25); }
.e5-cursor-dot.is-link .e5c-dot { --s: 4.2; background: rgb(var(--ae-accent-rgb) / .35); box-shadow: 0 0 0 1.5px var(--ae-accent); }
.e5-cursor-dot.is-down .e5c-dot { --s: .7; }
.e5-cursor-dot.is-link.is-down .e5c-dot { --s: 3.4; }
/* Punkt mit Ring */
.e5-cursor-ring .e5c-dot { --s: .75; }
.e5c-ring { width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 1.5px solid rgb(var(--ae-accent-rgb) / .8);
    transition: width .25s, height .25s, margin .25s, background-color .25s, border-color .25s; }
.e5-cursor-ring.is-link .e5c-ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgb(var(--ae-accent-rgb) / .14); border-color: var(--ae-accent); }
.e5-cursor-ring.is-link .e5c-dot { opacity: 0; }
.e5-cursor-ring.is-down .e5c-ring { width: 24px; height: 24px; margin: -12px 0 0 -12px; }
/* Fokusrahmen: vier Ecken wie das AF-Feld im Sucher; über Links umrahmt er das Element */
.e5c-box { width: 26px; height: 26px; }
.e5c-box b { position: absolute; width: 8px; height: 8px; border: 0 solid var(--ae-ink); transition: border-color .2s, width .2s, height .2s; }
.e5c-box b:nth-child(1) { left: 0; top: 0; border-left-width: 2px; border-top-width: 2px; }
.e5c-box b:nth-child(2) { right: 0; top: 0; border-right-width: 2px; border-top-width: 2px; }
.e5c-box b:nth-child(3) { left: 0; bottom: 0; border-left-width: 2px; border-bottom-width: 2px; }
.e5c-box b:nth-child(4) { right: 0; bottom: 0; border-right-width: 2px; border-bottom-width: 2px; }
.e5-cursor-focus .e5c-dot { --s: .5; }
.e5-cursor-focus.is-link .e5c-box b { border-color: var(--ae-accent); width: 11px; height: 11px; }
.e5-cursor-focus.is-link .e5c-dot { opacity: 0; }
.e5-cursor-focus.is-down .e5c-box b { border-color: var(--ae-accent); }
@media (hover: none), (pointer: coarse) { .e5-cursor { display: none; } }
@media print { .e5-cursor { display: none; } }
/* Bildschutz (Einstellungen → Allgemein): kein Herausziehen, kein Speichern-Menü bei langem Drücken (iOS), Bilder nicht markierbar */
.img-protect img, .img-protect video, .img-protect picture { -webkit-user-drag: none; user-drag: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }

/* Passwortgeschützte Seite (Pagebuilder → Seite → Passwortschutz) */
.pg-lock { max-width: 460px; margin: 6vh auto 0; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 40px 28px; }
.pg-lock-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--ae-accent-soft, rgb(var(--ae-accent-rgb) / .14)); color: var(--ae-accent-ink, var(--ae-accent)); }
.pg-lock-ico svg { width: 26px; height: 26px; }
.pg-lock-form { display: flex; gap: 8px; width: 100%; margin-top: 6px; }
.pg-lock-form .input { flex: 1; min-width: 0; }
.pg-lock-err { color: var(--ae-err, #e5484d); font-size: 14px; margin: 0; }
@media (max-width: 420px) { .pg-lock-form { flex-direction: column; } }

/* =====================================================================
   Baustein Bild-Slider (pb-sl), Vorher/Nachher-Serie (pb-bas), Countdown (pb-cd)
   ===================================================================== */
.pb-sl { position: relative; border-radius: var(--ae-r-lg); overflow: hidden; background: var(--ae-panel-3); }
.pb-sl-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; outline: none; }
.pb-sl-track::-webkit-scrollbar { display: none; }
.pb-sl-track:focus-visible { box-shadow: inset 0 0 0 3px var(--ae-accent); }
.pb-sl-slide { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.pb-sl-img { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; aspect-ratio: 16 / 9; }
.pb-sl-21x9 .pb-sl-img { aspect-ratio: 21 / 9; }
.pb-sl-3x2 .pb-sl-img { aspect-ratio: 3 / 2; }
.pb-sl-4x5 .pb-sl-img { aspect-ratio: 4 / 5; max-height: 80vh; }
.pb-sl-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-sl-slide figcaption { position: absolute; left: 16px; bottom: 44px; max-width: calc(100% - 32px); padding: 7px 12px; border-radius: 10px; background: rgb(0 0 0 / .6); color: #fff; font-size: 13.5px; line-height: 1.4;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pb-sl-nav { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; margin-top: -23px; border: 1px solid rgb(255 255 255 / .3); border-radius: 50%;
    background: rgb(10 11 13 / .55); color: #fff; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background-color .15s, transform .15s; }
.pb-sl-nav:hover, .pb-sl-nav:focus-visible { background: var(--ae-accent); color: var(--ae-on-accent); border-color: transparent; }
.pb-sl-nav:active { transform: scale(.94); }
.pb-sl-nav .ico, .pb-sl-nav svg { width: 20px; height: 20px; }
.pb-sl-nav.is-prev { left: 14px; }
.pb-sl-nav.is-next { right: 14px; }
.pb-sl-dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2; display: flex; justify-content: center; gap: 7px; pointer-events: none; }
.pb-sl-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 99px; background: rgb(255 255 255 / .55); cursor: pointer; pointer-events: auto; transition: width .25s, background-color .2s; }
.pb-sl-dots button.is-active { width: 26px; background: var(--ae-accent); }
.pb-sl-pause { position: absolute; right: 14px; bottom: 10px; z-index: 2; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: rgb(10 11 13 / .55); cursor: pointer; }
.pb-sl-pause i { position: absolute; inset: 0; margin: auto; width: 10px; height: 11px; border-left: 3px solid #fff; border-right: 3px solid #fff; box-sizing: border-box; }
.pb-sl.is-paused .pb-sl-pause i { width: 0; height: 0; border: 0; border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 11px; }
.pb-sl-pause[hidden] { display: none; }
@media (max-width: 760px) { .pb-sl-nav { width: 38px; height: 38px; margin-top: -19px; } .pb-sl-nav.is-prev { left: 8px; } .pb-sl-nav.is-next { right: 8px; } }

.pb-bas-nav { display: flex; align-items: center; gap: 8px; }
.pb-bas-count { font-family: var(--ae-font-mono); font-size: 12px; letter-spacing: .08em; color: var(--ae-mute); min-width: 52px; text-align: center; }
.pb-bas-count b { color: var(--ae-ink); }
.pb-bas-item[hidden] { display: none; }
.pb-bas-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.pb-bas-thumbs button { flex: 0 0 auto; width: 92px; aspect-ratio: 3 / 2; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--ae-panel-3); cursor: pointer; opacity: .65; transition: opacity .15s, border-color .15s; }
.pb-bas-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-bas-thumbs button:hover { opacity: 1; }
.pb-bas-thumbs button.is-active { opacity: 1; border-color: var(--ae-accent); }

.pb-cd-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 20px; }
.pb-cd-when { display: inline-flex; align-items: center; gap: 8px; font-family: var(--ae-font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ae-mute); }
.pb-cd-when svg { width: 16px; height: 16px; color: var(--ae-accent-ink, var(--ae-accent)); }
.pb-cd-units { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 12px; }
.pb-cd-unit { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 8px 18px; border-radius: var(--ae-r-lg); background: var(--ae-panel-2); border: 1px solid var(--ae-line); }
.pb-cd-unit b { font-family: var(--ae-font-wide); font-size: clamp(34px, 7vw, 72px); line-height: 1; font-variant-numeric: tabular-nums; color: var(--ae-ink); }
.pb-cd-unit:first-child b { color: var(--ae-accent-ink, var(--ae-accent)); }
.pb-cd-unit small { font-family: var(--ae-font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ae-mute); }
.pb-cd-done { display: none; margin: 0; font-family: var(--ae-font-wide); font-size: clamp(24px, 4vw, 40px); text-transform: uppercase; letter-spacing: .04em; color: var(--ae-accent-ink, var(--ae-accent)); }
.pb-cd[data-done] .pb-cd-units { display: none; }
.pb-cd[data-done] .pb-cd-done { display: block; }
.pb-cd-text { margin-top: 18px; }
.pb-cd-btn { margin-top: 18px; }
.pb-cd-compact .pb-cd-units { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.pb-cd-compact .pb-cd-unit { flex-direction: row; align-items: baseline; gap: 6px; padding: 0; border: 0; background: none; }
.pb-cd-compact .pb-cd-unit b { font-size: clamp(26px, 4vw, 40px); }
@media (max-width: 520px) { .pb-cd-units { gap: 6px; } .pb-cd-unit { padding: 14px 4px 12px; } .pb-cd-unit small { font-size: 9.5px; letter-spacing: .08em; } }

/* =====================================================================
   Bausteine „Nebeneinander“ (1 × 2–4) und „Raster“ (2 × 2–4): pb-gr
   ===================================================================== */
.pb-gr { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.pb-gr-gap-s { gap: 6px; }
.pb-gr-gap-l { gap: 24px; }
.pb-gr-cell { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.pb-gr-card .pb-gr-cell { border-radius: var(--ae-r-lg); background: var(--ae-panel-2); border: 1px solid var(--ae-line); }
.pb-gr-card .pb-gr-cell.is-image { background: var(--ae-panel-3); }
.pb-gr-plain .pb-gr-media { border-radius: var(--ae-r-lg); }
.pb-gr-media { display: block; width: 100%; padding: 0; border: 0; background: var(--ae-panel-3); overflow: hidden; cursor: zoom-in; position: relative; }
a.pb-gr-media { cursor: pointer; }
.pb-gr-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ae-ease, ease); }
.pb-gr-media:hover img { transform: scale(1.03); }
.pb-gr-1x1 .pb-gr-media { aspect-ratio: 1; }
.pb-gr-4x3 .pb-gr-media { aspect-ratio: 4 / 3; }
.pb-gr-3x2 .pb-gr-media { aspect-ratio: 3 / 2; }
.pb-gr-16x9 .pb-gr-media { aspect-ratio: 16 / 9; }
.pb-gr-4x5 .pb-gr-media { aspect-ratio: 4 / 5; }
.pb-gr-auto .pb-gr-media img { height: auto; }
.pb-gr-cell.is-image .pb-gr-media { flex: 1; }
.pb-gr-auto .pb-gr-cell.is-image .pb-gr-media { flex: 0 0 auto; }
.pb-gr-text { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; flex: 1; }
.pb-gr-plain .pb-gr-text { padding: 12px 2px 4px; }
.pb-gr-cell.is-text .pb-gr-text { justify-content: center; }
.pb-gr-text .h3 { margin: 0; }
.pb-gr-text .prose { margin: 0; }
.pb-gr-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-weight: 700; font-size: 14px; color: var(--ae-accent-ink, var(--ae-accent)); text-decoration: none; }
.pb-gr-link svg, .pb-gr-link .ico { width: 15px; height: 15px; transition: transform .15s; }
.pb-gr-link:hover svg, .pb-gr-link:hover .ico { transform: translateX(3px); }
.pb-gr-cell.is-empty, .pb-gr-media.is-empty { display: grid; place-items: center; gap: 6px; min-height: 140px; border: 1px dashed var(--ae-line); border-radius: var(--ae-r-lg); background: transparent; color: var(--ae-mute); font-size: 13px; cursor: default; }
.pb-gr-cell.is-empty span { display: inline-flex; align-items: center; gap: 6px; }
.pb-gr-cell.is-empty svg, .pb-gr-media.is-empty svg { width: 20px; height: 20px; }
.pb-gr-media.is-empty { border-radius: 0; border-width: 0 0 1px; aspect-ratio: auto; }
.pb-gr-hint { margin: 12px 0 0; }
@media (max-width: 900px) { .pb-gr { grid-template-columns: repeat(2, minmax(0, 1fr)); } }   /* 3–4 Spalten → 2 (es sind immer mindestens 2) */
@media (max-width: 520px) {
    .pb-gr:not(.pb-gr-imgonly) { grid-template-columns: 1fr; }   /* Text braucht die volle Breite; reine Bilder bleiben zu zweit */
    .pb-gr-text { padding: 14px 14px 16px; }
}

/* =====================================================================
   Baustein Instagram (pb-ig)
   ===================================================================== */
.pb-ig-profile { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding: 12px 14px; border-radius: var(--ae-r-lg); background: var(--ae-panel-2); border: 1px solid var(--ae-line); }
.pb-ig-avatar { position: relative; display: grid; place-items: center; flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; padding: 3px;
    background: conic-gradient(from 200deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75); }
.pb-ig-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: contain; background: #0b0c0e; border: 2px solid var(--ae-panel-2); box-sizing: border-box; padding: 6px; }
.pb-ig-avatar img[src*="uploads/"] { object-fit: cover; padding: 0; }
.pb-ig-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pb-ig-who b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-ig-who small { color: var(--ae-mute); font-size: 13px; }
.pb-ig-follow .ico, .pb-ig-follow svg { width: 17px; height: 17px; }
.pb-ig-grid { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 8px; }
.pb-ig-post { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: var(--ae-panel-3); }
.pb-ig-post img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ae-ease, ease); }
.pb-ig-kind { position: absolute; top: 8px; right: 8px; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgb(0 0 0 / .5); color: #fff; }
.pb-ig-kind svg, .pb-ig-kind .ico { width: 16px; height: 16px; }
.pb-ig-over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 14px; text-align: center;
    background: rgb(10 11 13 / .62); color: #fff; opacity: 0; transition: opacity .2s; }
.pb-ig-over svg, .pb-ig-over .ico { width: 26px; height: 26px; }
.pb-ig-over span { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.45; }
.pb-ig-post:hover .pb-ig-over, .pb-ig-post:focus-visible .pb-ig-over { opacity: 1; }
.pb-ig-post:hover img { transform: scale(1.05); }
.pb-ig-embeds { gap: 14px; align-items: start; }
.pb-ig-embed { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pb-ig-embed iframe { width: 100%; height: 640px; border: 0; border-radius: 12px; background: #fff; }
.pb-ig-load { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 260px; padding: 20px; border: 1px dashed var(--ae-line); border-radius: 12px;
    background: var(--ae-panel-2); color: var(--ae-ink); font: inherit; text-align: center; cursor: pointer; transition: border-color .15s, background-color .15s; }
.pb-ig-load:hover { border-color: var(--ae-accent); }
.pb-ig-load small { color: var(--ae-mute); font-size: 12px; max-width: 220px; }
.pb-ig-load-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: #fff; background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5); }
.pb-ig-load-ico svg, .pb-ig-load-ico .ico { width: 26px; height: 26px; }
.pb-ig-open { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ae-mute); text-decoration: none; }
.pb-ig-open:hover { color: var(--ae-ink); }
.pb-ig-open svg, .pb-ig-open .ico { width: 13px; height: 13px; }
@media (max-width: 900px) { .pb-ig-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pb-ig-embeds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
    .pb-ig-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
    .pb-ig-embeds { grid-template-columns: 1fr; }
    .pb-ig-profile { flex-wrap: wrap; }
    .pb-ig-follow { width: 100%; justify-content: center; }
}

/* =====================================================================
   LADE-ANIMATION BEIM ÖFFNEN DER WEBSITE (html.e5-boot, Ablauf in e5.js)
   Dunkler Ladebildschirm mit Logo · gelber Balken am linken Rand wächst mit
   der Prozentanzeige nach unten · bei 100 % schiebt er sich über die ganze
   Seite · das Gelb blendet aus und gibt die Seite frei.
   ===================================================================== */
.e5-loader { display: none; }
html.e5-boot, html.e5-boot body { overflow: hidden; }
html.e5-boot .e5-loader {
    /* Farbe = Akzentfarbe (Design → Akzentfarbe); Schrift in einer auf Dunkel lesbaren Variante davon */
    --y: rgb(var(--ae-accent-rgb, 255 242 0)); --y-ink: var(--ae-accent-ink-dark, var(--y)); --p: 0;
    display: block; position: fixed; inset: 0; z-index: 2147483000; overflow: hidden;
    background: radial-gradient(ellipse 70% 60% at 58% 46%, #26282d 0%, #16171a 58%, #0b0c0e 100%);
    color: #fff; font-family: var(--ae-font-mono); user-select: none; cursor: progress;
    transition: opacity .6s ease;
}
html.e5-boot .e5-loader::before {   /* feines Raster wie auf der Website */
    content: ""; position: absolute; inset: 0; opacity: .5;
    background-image: linear-gradient(rgb(255 255 255 / .035) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .035) 1px, transparent 1px);
    background-size: 64px 64px; background-position: center;
    -webkit-mask-image: radial-gradient(ellipse at 58% 46%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 58% 46%, #000 0%, transparent 70%);
}
html.e5-boot-out .e5-loader { opacity: 0; pointer-events: none; }
/* Einblend-Animationen der Seite warten, bis die Lade-Animation aufgeht */
html.e5-boot:not(.e5-boot-out) :is(.topbar, .topnav-link, .page-head, main > *, .page-title, .display, .brand),
html.e5-boot:not(.e5-boot-out) :is(.topbar, .topnav-link, .page-head, main > *, .page-title, .display, .brand)::after { animation-play-state: paused; }

.e5-boot-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 6px; }
.e5-boot-fill { position: absolute; left: 0; top: 0; width: 100%; height: calc(var(--p) * 100%); background: var(--y); box-shadow: 0 0 18px rgb(var(--ae-accent-rgb, 255 242 0) / .35); }
.e5-boot-pct {
    position: absolute; left: 20px; top: max(96px, calc(var(--p) * 100%)); transform: translateY(-100%);
    display: grid; grid-template-columns: auto auto; align-items: end; column-gap: 2px; color: var(--y-ink); white-space: nowrap;
}
.e5-boot-pct > i { grid-column: 1 / -1; width: 3px; height: 16px; margin: 0 0 6px 2px; background: var(--y); }
.e5-boot-pct b { font: 700 46px/1 var(--ae-font-wide); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.e5-boot-pct em { font: 700 22px/1.2 var(--ae-font-wide); font-style: normal; }
.e5-boot-pct small { grid-column: 1 / -1; margin-top: 6px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgb(255 255 255 / .5); }

.e5-boot-brand {
    position: absolute; left: 58%; top: 46%; transform: translate(-50%, -50%);
    display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
    animation: e5-boot-in .7s cubic-bezier(.2, .7, .2, 1) both .1s;
}
.e5-boot-tag { font-size: 9.5px; letter-spacing: .32em; color: rgb(255 255 255 / .45); white-space: nowrap; }
.e5-boot-brand img { width: 96px; height: auto; opacity: .9; }
.e5-boot-brand strong { font: 700 clamp(34px, 5.2vw, 64px)/.95 var(--ae-font-wide); letter-spacing: .08em; }
.e5-boot-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgb(255 255 255 / .7); }
.e5-boot-status i { width: 6px; height: 6px; background: var(--y); animation: e5-boot-blink 1s steps(2, jump-none) infinite; }
.e5-boot-coord { position: absolute; right: 22px; bottom: 18px; font-size: 10px; letter-spacing: .16em; color: rgb(255 255 255 / .3); }
.e5-boot-wipe {   /* der Balken schiebt sich über die ganze Seite */
    position: absolute; inset: 0; background: var(--y); transform: scaleX(0); transform-origin: left center;
    transition: transform .5s cubic-bezier(.76, 0, .24, 1);
}
.e5-loader.is-wipe .e5-boot-wipe { transform: scaleX(1); }
@keyframes e5-boot-in { from { opacity: 0; transform: translate(-50%, calc(-50% + 14px)); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes e5-boot-blink { to { opacity: .15; } }
@media (max-width: 700px) {
    .e5-boot-brand { left: calc(50% + 24px); }
    .e5-boot-tag { letter-spacing: .18em; }
    .e5-boot-pct b { font-size: 36px; }
}

/* Blog-Übersicht: Suche, Kategorien, „Mehr laden“ (inc/sections.php, e5.js [data-blogfilter]) */
.blog-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.blog-search { position: relative; flex: 1 1 260px; display: block; }
.blog-search .ico { position: absolute; left: 14px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--ae-mute); pointer-events: none; }
.blog-search .input { width: 100%; padding-left: 40px; }
.blog-tags { flex: 0 1 auto; }
.blog-tags .chip { cursor: pointer; }
.blog-tags .chip small { margin-left: 4px; opacity: .6; font-size: .9em; }
.blog-tags .chip.is-active { background: var(--ae-accent); color: var(--ae-on-accent); border-color: transparent; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.card-tags span { padding: 2px 8px; border-radius: 99px; background: var(--ae-panel-3); font-size: 11.5px; color: var(--ae-ink-4); }
.blog-more { display: flex; justify-content: center; }
.blog-more[hidden], .blog-none[hidden], .card[hidden] { display: none; }
.chip-tag { text-decoration: none; }
.chip-tag:hover { border-color: var(--ae-accent); }

/* Seitenübergang: Querbalken in Akzentfarbe (e5.js, body[data-page-trans]) */
.e5-trans { position: fixed; inset: 0; z-index: 2147482000; background: rgb(var(--ae-accent-rgb, 255 122 0)); transform: scaleX(0); transform-origin: left center;
    transition: transform .42s cubic-bezier(.76, 0, .24, 1); pointer-events: none; }
.e5-trans::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 6px; background: rgb(255 255 255 / .35); }
.e5-trans.is-in { transform: scaleX(1); pointer-events: auto; }
html.e5-trans-in::after { content: ""; position: fixed; inset: 0; z-index: 2147482000; background: rgb(var(--ae-accent-rgb, 255 122 0)); transform-origin: right center;
    animation: e5-trans-out .55s cubic-bezier(.76, 0, .24, 1) .06s both; pointer-events: none; }
@keyframes e5-trans-out { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .e5-trans, html.e5-trans-in::after { display: none; } }

/* =====================================================================
   KUNDENBEREICH (customer/)
   ===================================================================== */
.cust-login { max-width: 460px; width: 100%; margin: 0 auto; }
.cust-login-form { display: flex; flex-direction: column; gap: 14px; }
.cust-login-form .btn { align-self: flex-start; }
.cust-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cust-head-txt { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 8px; }
.cust-actions { flex-wrap: wrap; justify-content: flex-end; }
.cust-pickcount .ico { color: var(--ae-accent-ink, var(--ae-accent)); }
.cust-dir { margin: 18px 0 10px; }
.cust-gallery { position: relative; }
.cust-item { position: relative; }
.cust-item[hidden] { display: none; }
.cust-item > .gallery-item { width: 100%; }
.cust-heart, .cust-dl { position: absolute; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%;
    background: rgb(10 11 13 / .55); color: #fff; font-size: 17px; line-height: 1; cursor: pointer; text-decoration: none;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform .15s, background-color .15s, opacity .15s; }
.cust-heart { top: 8px; right: 8px; color: rgb(255 255 255 / .85); }
.cust-dl { bottom: 8px; right: 8px; opacity: 0; }
.cust-dl .ico { width: 16px; height: 16px; }
.cust-item:hover .cust-dl, .cust-dl:focus-visible { opacity: 1; }
.cust-heart:hover { transform: scale(1.1); }
.cust-item.is-pick .cust-heart { background: var(--ae-accent); color: var(--ae-on-accent); }
.cust-item.is-pick > .gallery-item { box-shadow: 0 0 0 3px var(--ae-accent); }
@media (hover: none) { .cust-dl { opacity: 1; } }
.cust-files { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.cust-file { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--ae-line); border-radius: 12px; color: inherit; text-decoration: none; }
.cust-file:hover { border-color: var(--ae-accent); }
.cust-file > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cust-file b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cust-file small { color: var(--ae-mute); font-size: 12px; }
.cust-invs { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.cust-inv { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 12px 14px; border: 1px solid var(--ae-line); border-radius: 12px; background: var(--ae-panel-2); }
.cust-inv-main { flex: 1; min-width: 200px; display: flex; flex-direction: column; }
.cust-inv-main small { color: var(--ae-mute); font-size: 12.5px; }
.cust-inv-sum { font-weight: 700; }
.cust-pill { padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--ae-panel-3); color: var(--ae-ink-3); }
.cust-pill.is-ok { background: var(--ae-ok-soft); color: var(--ae-ok); }
.cust-pill.is-late { background: var(--ae-err-soft, #fde8e7); color: var(--ae-err); }
.cust-pill.is-open { background: rgb(var(--ae-accent-rgb) / .14); color: var(--ae-accent-ink, var(--ae-accent)); }
.cust-pdf { height: 36px; padding: 0 12px; }
.cust-dun { flex-basis: 100%; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ae-err); text-decoration: none; }
.cust-dun .ico { width: 15px; height: 15px; }
