/* Shared chrome for the marketing site — extracted from the per-page
   inline <style> blocks (theme vars, header/nav/buttons, reset, Zammad
   form, mobile rules) so a chrome edit touches ONE file. Page-specific
   CSS stays inline per page. Served website-local at /style.css. */
:root,
html[data-theme="dark"] {
    --bg: #0a0b0e;
    --bg-2: #08090c;
    --surface: #101218;
    --surface-2: #15171c;
    --surface-2b: #131519;
    --surface-2c: #0d0f13;
    --surface-2d: #0e1014;
    --surface-3: #1d2027;
    --surface-3b: #24272f;
    --surface-4: #16181d;
    --pc-on-bg: #0c0f0a;
    --pc-off-bg: #0b0d11;
    --pc-off-bg2: #0a0c10;
    --hero-f2: #08090cf2;
    --hero-d0: #08090cd0;
    --hero-66: #08090c66;
    --hero-14: #08090c14;
    --surface-2b-a: #13151955;
    --border: #1b1d23;
    --border-2: #1f2229;
    --border-2b: #2b2e36;
    --border-3: #34373f;
    --border-3b: #3a3d45;
    --border-3c: #353a45;
    --border-card: #1d2027;
    --text: #f4f5f6;
    --heading: #ffffff;
    --text-bright: #e9eaec;
    --text-bright-2: #cfd2d8;
    --text-bright-3: #dadce0;
    --text-bright-4: #e8eaed;
    --text-2: #c4c7cd;
    --text-3: #b3b6bd;
    --text-3b: #a9acb3;
    --muted: #9a9ea6;
    --muted-b: #9b9ea6;
    --muted-c: #9aa0a6;
    --muted-d: #9aa0aa;
    --muted-2: #8c8f98;
    --muted-3: #8b8e97;
    --muted-3b: #8b9099;
    --faint: #6e7178;
    --faint-2: #5f636b;
    --header-bg: rgba(10, 11, 14, 0.82);
}

html[data-theme="light"] {
    --bg: #f5f6f8;
    --bg-2: #eceef1;
    --surface: #ffffff;
    --surface-2: #f0f1f4;
    --surface-2b: #f0f1f4;
    --surface-2c: #ffffff;
    --surface-2d: #f6f7f9;
    --surface-3: #e6e8ec;
    --surface-3b: #e6e8ec;
    --surface-4: #eceef1;
    --pc-on-bg: #f2faf4;
    --pc-off-bg: #f0f1f4;
    --pc-off-bg2: #f0f1f4;
    --hero-f2: #f5f6f8f2;
    --hero-d0: #f5f6f8d0;
    --hero-66: #f5f6f866;
    --hero-14: #f5f6f814;
    --surface-2b-a: #f0f1f4;
    --border: #e3e5e9;
    --border-2: #d7dade;
    --border-2b: #d7dade;
    --border-3: #c9cdd3;
    --border-3b: #c9cdd3;
    --border-3c: #c9cdd3;
    --border-card: #e3e5e9;
    --text: #171a1f;
    --heading: #0a0b0e;
    --text-bright: #23262b;
    --text-bright-2: #23262b;
    --text-bright-3: #23262b;
    --text-bright-4: #23262b;
    --text-2: #3d4047;
    --text-3: #565a62;
    --text-3b: #565a62;
    --muted: #6c707a;
    --muted-b: #6c707a;
    --muted-c: #6c707a;
    --muted-d: #6c707a;
    --muted-2: #6c707a;
    --muted-3: #6d7076;
    --muted-3b: #6d7076;
    --faint: #888c94;
    --faint-2: #888c94;
    --header-bg: rgba(255, 255, 255, 0.82);
}

.lb-tt {
    width: 34px;
    height: 34px;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-2b);
    border-radius: 7px;
    background: transparent;
    color: var(--text-bright);
    cursor: pointer;
    padding: 0;
    transition: .15s
}

.lb-tt:hover {
    border-color: var(--border-3)
}

.lb-tt svg {
    width: 17px;
    height: 17px;
    display: block
}

.lb-tt .i-sun {
    display: none
}

html[data-theme="light"] .lb-tt .i-moon {
    display: none
}

html[data-theme="light"] .lb-tt .i-sun {
    display: block
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Helvetica Neue', Helvetica, Arial, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6
}

a {
    color: inherit;
    text-decoration: none
}

::placeholder {
    color: var(--faint-2)
}

input,
textarea {
    font-family: inherit
}

::selection {
    background: #e7a93a;
    color: #0a0b0e
}

image-slot::part(placeholder) {
    color: var(--muted-3b)
}

.nv:hover {
    color: var(--heading) !important
}

.soc {
    color: var(--muted-b);
    transition: .15s
}

.soc:hover {
    color: #e7a93a;
    border-color: var(--border-3b) !important
}

.rail::-webkit-scrollbar {
    display: none
}

.fstrip {
    grid-template-columns: repeat(7, 1fr);
    gap: 6px
}

.fstrip>div {
    min-width: 0
}

@media(max-width:1180px) {
    .fstrip {
        grid-template-columns: repeat(4, 1fr);
        row-gap: 14px
    }
}

@media(max-width:640px) {
    .fstrip {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 14px
    }
}

@keyframes blink {

    0%,
    49% {
        opacity: 1
    }

    50%,
    100% {
        opacity: 0
    }
}

/* Zammad feedback form (contact) — style the injected fields+button to match the site */
#zammad-feedback-form form {
    margin: 0
}

#zammad-feedback-form .form-group {
    margin-bottom: 14px
}

/* verstecktes Titelfeld (siehe ZammadForm attributes): keinen Leerraum erzeugen */
#zammad-feedback-form .form-group:has(> input[type=hidden]),
#zammad-feedback-form .zammad-form-group:has(> input[type=hidden]) {
    display: none;
    margin: 0
}

#zammad-feedback-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .2px;
    color: var(--text-3b);
    margin-bottom: 6px
}

#zammad-feedback-form input[type=text],
#zammad-feedback-form input[type=email],
#zammad-feedback-form textarea,
#zammad-feedback-form .form-control {
    width: 100%;
    box-sizing: border-box;
    background: var(--surface-2b-a);
    border: 1px solid var(--border-2b);
    border-radius: 8px;
    padding: 11px 13px;
    font-size: 14px;
    color: var(--text-bright);
    font-family: inherit;
    outline: none;
    transition: border-color .15s
}

#zammad-feedback-form input:focus,
#zammad-feedback-form textarea:focus {
    border-color: #e7a93a
}

#zammad-feedback-form textarea {
    resize: vertical;
    min-height: 120px
}

#zammad-feedback-form input[type=submit],
#zammad-feedback-form button,
#zammad-feedback-form .js-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f2c14e, #e0a02a);
    color: #1a1206;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .3px;
    cursor: pointer;
    font-family: inherit;
    transition: filter .15s
}

#zammad-feedback-form input[type=submit]:hover,
#zammad-feedback-form button:hover,
#zammad-feedback-form .js-submit:hover {
    filter: brightness(1.06)
}

#zammad-feedback-form input[type=submit]:disabled,
#zammad-feedback-form .js-submit:disabled {
    opacity: .6;
    cursor: not-allowed
}

#zammad-feedback-form .zammad-form-group.has-error input,
#zammad-feedback-form .has-error textarea {
    border-color: #d9534f
}

#zammad-feedback-form .zammad-form-control-message,
#zammad-feedback-form .help-block {
    font-size: 12px;
    color: var(--muted-2);
    margin-top: 5px
}

/* ── Mobile/tablet responsive: kill the horizontal scrollbar; desktop (>1200px) unchanged ── */
@media(max-width:1200px) {

    html,
    body {
        overflow-x: clip
    }

    img,
    table,
    video,
    iframe {
        max-width: 100%;
        height: auto
    }

    pre {
        max-width: 100%;
        overflow-x: auto
    }
}

.lb-burger {
    display: none;
    width: 40px;
    height: 40px;
    flex: none;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-2b);
    border-radius: 7px;
    background: transparent;
    color: var(--text-bright);
    cursor: pointer;
    padding: 0;
    transition: .15s
}

.lb-burger:hover {
    border-color: var(--border-3)
}

.lb-burger svg {
    width: 20px;
    height: 20px;
    display: block
}

@media(max-width:720px) {
    header>div {
        flex-wrap: wrap;
        height: auto !important;
        padding: 10px 14px !important;
        gap: 10px !important
    }

    .lb-burger {
        display: inline-flex
    }

    #primary-nav {
        flex-basis: 100% !important;
        order: 5;
        flex-direction: column !important;
        align-items: stretch !important;
        flex-wrap: wrap !important;
        overflow: visible !important;
        gap: 0 !important;
        display: none !important;
        border-top: 1px solid var(--border);
        margin-top: 4px
    }

    #primary-nav.open {
        display: flex !important
    }

    #primary-nav a {
        white-space: normal !important;
        font-size: 14px !important;
        letter-spacing: .4px;
        padding: 13px 4px !important;
        min-height: 44px;
        display: flex;
        align-items: center;
        border-bottom: 1px solid var(--border)
    }

    #primary-nav a:last-child {
        border-bottom: none
    }

    header a[href="/register"],
    header a[href="/portal"] {
        font-size: 11px !important;
        padding: 8px 12px !important
    }

    h1 {
        overflow-wrap: break-word
    }

    .hero-h1 {
        font-size: 34px !important;
        line-height: 1.08 !important;
        letter-spacing: -.8px !important
    }
}

@media(max-width:400px) {
    .hero-h1 {
        font-size: 29px !important
    }
}

/* ── Mobile pass 2 (≤720px only; desktop unchanged): single-line header —
     top-bar CTAs move into the burger panel; footer becomes a stacked link
     menu; tables scroll within themselves; long words wrap. ── */
.nv-cta {
    display: none
}

@media(max-width:720px) {

    header a[href="/register"]:not(.nv-cta),
    header a[href="/portal"]:not(.nv-cta) {
        display: none !important
    }

    #primary-nav .nv-cta {
        display: flex;
        font-size: 14px !important;
        padding: 13px 4px !important
    }

    footer>div {
        grid-template-columns: 1fr 1fr !important;
        gap: 26px 18px !important
    }

    footer>div>div:first-child {
        grid-column: 1/-1
    }

    footer a {
        line-height: 2
    }

    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch
    }

    h1,
    h2,
    h3,
    p,
    li,
    td {
        overflow-wrap: break-word
    }

    code {
        overflow-wrap: anywhere
    }
}

/* Sprachumschalter-Dropdown + Nav-Scrollbar-Sicherheitsnetz — vormals per JS in
   i18n-on.js injiziert (kein geteiltes Stylesheet); jetzt hier zentral. */
#primary-nav {
    scrollbar-width: none
}

#primary-nav::-webkit-scrollbar {
    display: none
}

.lb-lang {
    position: relative;
    flex: none
}

.lb-lang-btn {
    height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 8px 0 10px;
    border: 1px solid var(--border-2b);
    border-radius: 7px;
    background: transparent;
    color: var(--text-bright);
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: .15s
}

.lb-lang-btn:hover {
    border-color: var(--border-3)
}

.lb-lang-btn svg {
    width: 11px;
    height: 11px;
    color: var(--muted);
    transition: transform .15s
}

.lb-lang.open .lb-lang-btn svg {
    transform: rotate(180deg)
}

.lb-lang-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 150px;
    margin: 0;
    padding: 5px;
    list-style: none;
    background: var(--surface);
    border: 1px solid var(--border-2b);
    border-radius: 10px;
    box-shadow: 0 12px 32px #0006;
    z-index: 50;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity .12s, transform .12s
}

html[data-theme="light"] .lb-lang-menu {
    box-shadow: 0 12px 32px #0002
}

.lb-lang.open .lb-lang-menu {
    opacity: 1;
    transform: none;
    pointer-events: auto
}

.lb-lang-menu li {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-2);
    cursor: pointer;
    white-space: nowrap
}

.lb-lang-menu li .lb-lang-full {
    font-weight: 400;
    font-size: 11.5px;
    color: var(--muted)
}

.lb-lang-menu li:hover,
.lb-lang-menu li:focus-visible {
    background: var(--surface-3);
    color: var(--text-bright);
    outline: none
}

.lb-lang-menu li[aria-selected="true"] {
    color: #e7a93a
}

.lb-lang-menu li[aria-selected="true"]::after {
    content: "\2713";
    margin-left: auto;
    font-size: 11px
}
/* ===== SANFTE SEITENUEBERGAENGE ===== */
/* Cross-Document View Transitions (Chrome/Edge/Safari; andere Browser
   ignorieren das schadlos): Seitenwechsel crossfaden in 0.18s, Header und
   Footer bleiben per eigenem view-transition-name ruhig stehen (je Seite
   existiert genau EIN header/footer — Mehrfachnamen wuerden die Transition
   abbrechen). Zusaetzlich blendet main bei jedem Aufbau sanft ein — auch in
   Browsern ohne View-Transition-Support. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.18s; }
header { view-transition-name: site-header; }
footer { view-transition-name: site-footer; }
main { animation: lbPageIn 0.22s ease-out; }
@keyframes lbPageIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    @view-transition { navigation: none; }
    main { animation: none; }
}

/* ===== FAQ-Ziehharmonika (Startseite) =====================================
   Ersetzt die frueheren <sc-if>-Elemente mit unverarbeiteten Platzhaltern
   ({{ t0 }}, {{ r0 }}, {{ o0 }}) aus einem Seitenbaukasten: die Antworten
   waren dauerhaft aufgeklappt und onclick="{{ t0 }}" war ungueltiges
   JavaScript. Natives <details>/<summary> braucht keinerlei Skript, ist
   per Tastatur bedienbar und wird von Suchmaschinen indexiert. */
.faq-item { border-bottom: 1px solid var(--surface-3); }
.faq-item > summary {
    list-style: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 13px 0; text-align: left;
    color: var(--text-bright); font-size: 13.5px; font-weight: 600;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::marker { content: ""; }
.faq-item > summary:focus-visible { outline: 2px solid #e7a93a; outline-offset: 2px; border-radius: 4px; }
.faq-item .faq-plus { color: #e7a93a; font-size: 18px; flex: none; transition: transform .2s; }
.faq-item[open] .faq-plus { transform: rotate(45deg); }
.faq-item .faq-answer { font-size: 13px; color: var(--muted-b); line-height: 1.6; padding: 0 0 14px; }
@media (prefers-reduced-motion: reduce) {
    .faq-item .faq-plus { transition: none; }
}
