/* ============================================================
   SmartlineCard — common.css
   Basis-Styling für öffentliche Seiten (Etappe 1a).
   Karten-Rendering (layout-card) kommt in Phase 3.

   Farben & Schriften sind die zentrale Smartline-CI (Master:
   _Projekte/CI/ci.json, Richtlinie: _Projekte/CI/README.md).
   Variablen bewusst auf die smartline.info-Namen (--green, --text, …)
   ausgerichtet — identisch zu smartline.info/css/common.css, damit
   alle Unterprojekte gleich aussehen und Änderungen an der CI hier
   1:1 übernommen werden können.
   ============================================================ */

/* -------- Fonts: Outfit (Primär), Source Serif 4 (Akzent) --------
   WOFF2-Dateien liegen lokal unter /fonts/ (nicht Google-CDN — DSGVO).
   Master-Ablage: _Projekte/CI/fonts/. Beim Deploy müssen die Files
   nach /Smartlinecard/www/fonts/ hochgeladen werden. Fehlen sie,
   greift der system-ui-Fallback in body. */

@font-face {
    font-family: 'Outfit';
    src: url('/fonts/outfit-latin-400.woff2') format('woff2');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Outfit';
    src: url('/fonts/outfit-latin-600.woff2') format('woff2');
    font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Outfit';
    src: url('/fonts/outfit-latin-700.woff2') format('woff2');
    font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Outfit';
    src: url('/fonts/outfit-latin-800.woff2') format('woff2');
    font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Source Serif 4';
    src: url('/fonts/source-serif-4-latin-300.woff2') format('woff2');
    font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Source Serif 4';
    src: url('/fonts/source-serif-4-latin-400.woff2') format('woff2');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Source Serif 4';
    src: url('/fonts/source-serif-4-latin-300italic.woff2') format('woff2');
    font-weight: 300; font-style: italic; font-display: swap;
}
@font-face {
    font-family: 'Source Serif 4';
    src: url('/fonts/source-serif-4-latin-400italic.woff2') format('woff2');
    font-weight: 400; font-style: italic; font-display: swap;
}

:root {
    /* CI — Master in _Projekte/CI/ci.json */
    --green:        #014639;
    --green-dark:   #00312a;
    --green-light:  #e8edea;
    --green-mid:    #a9b7a2;
    --text:         #1a2318;
    --text-muted:   #848f7f;
    --border:       #cbd5c6;
    --white:        #ffffff;
    --bg:           #f7faf6;
    --red:          #b83232;
    --red-light:    #fdf0f0;
    --red-border:   #f0c8c5;

    /* Semantische Aliase (kompatibel zu bisherigem SmartlineCard-Code) */
    --slc-primary:      var(--green);
    --slc-primary-ink:  var(--white);
    --slc-secondary:    var(--text-muted);
    --slc-accent:       var(--green-mid);
    --slc-accent-soft:  var(--border);
    --slc-text:         var(--text);
    --slc-text-muted:   var(--text-muted);
    --slc-bg:           var(--bg);
    --slc-bg-soft:      var(--green-light);
    --slc-border:       var(--border);
    --slc-danger:       var(--red);

    --slc-radius:       .5rem;
    --slc-radius-sm:    .3rem;
    --slc-shadow:       0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05);

    color-scheme: light;
    /* Native Form-Controls (Radio, Checkbox, Range, Progress) in CI-Grün
       statt Browser-/OS-Default (z.B. Windows-Akzent-Lila). */
    accent-color: var(--green);
}

* { box-sizing: border-box; }

/* Lucide-Icons (Inline-SVG). Quelle: lucide.dev, MIT.
   Siehe _Projekte/CI/ci.json + _Projekte/CI/README.md. */
.lucide {
    width: 1em;
    height: 1em;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: inline-block;
    vertical-align: middle;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--slc-bg);
    color: var(--slc-text);
    font-family: 'Outfit', system-ui, -apple-system, "Segoe UI",
                 Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-text-size-adjust: 100%;
}

a {
    color: var(--slc-primary);
    text-decoration: none;
}
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

h1, h2, h3 {
    color: var(--slc-primary);
    font-weight: 600;
    letter-spacing: -.01em;
    margin: 0 0 .8rem;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); line-height: 1.25; }
h3 { font-size: 1.1rem; }

p  { margin: 0 0 1rem; }

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    background: var(--slc-bg-soft);
    padding: .1rem .35rem;
    border-radius: var(--slc-radius-sm);
    font-size: .92em;
}

.container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.3rem;
}
.container--narrow {
    max-width: 48rem;
}
/* Auth-Seiten (Login, Registrierung): Container bleibt im Layout zentriert
   und behält sein Padding. Die Form-Elemente innen sind schmaler und sitzen
   links im Container (statt mittig zentriert). Mobile-first: bei schmalem
   Viewport nimmt die Form ohnehin volle Breite. */
.container--auth .form,
.container--auth .form-error--global,
.container--auth .form-success {
    max-width: 32rem;
}

.muted-note {
    color: var(--slc-text-muted);
    font-size: .9rem;
    padding: .9rem 1.1rem;
    background: var(--slc-bg-soft);
    border: 1px solid var(--slc-border);
    border-radius: var(--slc-radius-sm);
    margin: 1.5rem 0;
}

/* Inline-Hilfetexte unter Form-Elementen, Radio-Cards, Listen.
   Kein Box-Look — nur dezenter Subtext. Ersetzt die früheren
   .muted-note style="padding:0;"-Inline-Overrides. */
.form-help {
    color: var(--slc-text-muted);
    font-size: .875rem;
    line-height: 1.5;
    margin: 0;
}
.form-help--block {
    display: block;
    margin-top: .25rem;
}
.form-help--lead {
    margin: 0 0 1.25rem;
    font-size: .95rem;
}

/* -------- Header / Nav -------- */

.site-header {
    border-bottom: 1px solid var(--slc-border);
    background: var(--slc-bg);
    position: sticky;
    top: 0;
    z-index: 50;
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4rem;
    gap: 1.5rem;
}
.site-logo {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--slc-primary);
    font-weight: 700;
    letter-spacing: -.01em;
    font-size: 1.15rem;
    text-decoration: none;
}
.site-logo:hover { text-decoration: none; }
.site-logo__img {
    display: block;
    height: 3.25rem;
    width: auto;
    max-width: 100%;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.3rem;
    flex-wrap: wrap;
}
.site-nav a {
    color: var(--slc-text);
    font-weight: 500;
    font-size: .95rem;
}
.site-nav a.is-active {
    color: var(--slc-primary);
    border-bottom: 2px solid var(--slc-primary);
    padding-bottom: .1rem;
}
.site-nav__secondary {
    color: var(--slc-text-muted) !important;
}
.site-nav__divider {
    width: 1px;
    height: 1.5rem;
    background: var(--slc-border);
    display: inline-block;
}

/* Burger-Button — Desktop versteckt, Mobile sichtbar (siehe Media Query unten).
   Drei Linien, die per .is-open zu einem X morphen. */
.site-nav-toggle {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border-radius: .35rem;
}
.site-nav-toggle:hover { background: var(--slc-accent-soft, rgba(0,0,0,.04)); }
.site-nav-toggle:focus-visible {
    outline: 2px solid var(--slc-primary);
    outline-offset: 2px;
}
.site-nav-toggle__line {
    width: 22px;
    height: 2px;
    background: var(--slc-text);
    border-radius: 1px;
    transition: transform .2s ease, opacity .15s ease;
    transform-origin: center;
}
/* Burger → X: oberste Linie nach unten + 45°, mittlere ausblenden,
   untere nach oben + -45°. */
.site-nav-toggle.is-open .site-nav-toggle__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.site-nav-toggle.is-open .site-nav-toggle__line:nth-child(2) {
    opacity: 0;
}
.site-nav-toggle.is-open .site-nav-toggle__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ----- Mobile: Burger sichtbar, Nav als Drop-Panel unter dem Header ----- */
@media (max-width: 47.99rem) {
    .site-header__inner { gap: .8rem; }
    .site-logo__img     { height: 2.5rem; }   /* Logo etwas kompakter auf klein */
    .site-nav-toggle    { display: flex; }

    .site-nav {
        /* Aus dem Header-Flex rausnehmen und als Overlay direkt unter den
           Header platzieren — der Header ist sticky, das Drop wandert mit. */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: .25rem 1.3rem 1rem;
        background: var(--slc-bg);
        border-bottom: 1px solid var(--slc-border);
        box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .12);
        display: none;
    }
    .site-nav[data-open="true"] { display: flex; }

    .site-nav a {
        padding: .85rem .25rem;
        border-bottom: 1px solid var(--slc-border);
        font-size: 1rem;
    }
    .site-nav a:last-child { border-bottom: 0; }
    .site-nav a.is-active  { border-bottom: 1px solid var(--slc-border); color: var(--slc-primary); }
    .site-nav__divider     { display: none; }
    .site-nav .btn--primary {
        margin-top: .6rem;
        text-align: center;
    }
}

/* -------- Main / Sections -------- */

.site-main { min-height: 50vh; }

.hero {
    /* Mobile: großzügig oben (Bild kommt erst nach dem Text — der braucht Luft).
       Bottom-Padding bleibt 0 — der Trennstrich sitzt am hero__inner und damit
       direkt am unteren Bildrand. */
    padding: 3rem 0 0;
    background: linear-gradient(180deg, var(--slc-accent-soft) 0%, var(--slc-bg) 100%);
    position: relative;
    z-index: 1;
}
/* Desktop: kompakter oben — im Zwei-Spalten-Layout neben dem Foto wirkt
   das visuell kompakter und hebt die zwei nebeneinander stehenden Inhalte
   (Headline / Bild) mittig auf gleiche optische Höhe. */
@media (min-width: 60rem) {
    .hero {
        padding-top: clamp(1.5rem, 3vw, 3rem);
    }
}
.hero__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 4vw, 3rem);
    /* align pro Item: Bild unten am Trennstrich, Text-Block mittig
       (siehe .hero__content / .hero__visual unten). */
    /* Trennstrich am inneren Container — genau Container-Breite, nicht über
       die volle Browser-Breite. Sitzt direkt am Bild-Unterrand, weil der
       hero kein padding-bottom mehr hat. Der Schatten kommt nicht über
       box-shadow (würde rundum strahlen), sondern als Pseudo-Element mit
       Gradient — siehe .hero__inner::after weiter unten. */
    border-bottom: 1px solid var(--border);
    position: relative;
}
@media (min-width: 60rem) {
    .hero__inner {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    }
}
/* „Schatten nur unten" — linearer Gradient als Pseudo-Element direkt
   unter dem Border. box-shadow geht nicht, weil der immer rundum
   strahlt; Gradient-Streifen ist gerichtet und exakt steuerbar. */
.hero__inner::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 12px;
    background: linear-gradient(180deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, 0));
    pointer-events: none;
}
.hero__content {
    min-width: 0;
    align-self: center;        /* Text-Block mittig in der Cell, Buttons hängen
                                  damit nicht am Trennstrich. */
}
.hero__title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -.02em;
    max-width: 26ch;
    margin-bottom: 1.3rem;
}
.hero__lead {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    color: var(--slc-text-muted);
    max-width: 50ch;
    margin-bottom: 1.8rem;
}
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
}
.hero__visual {
    display: flex;
    justify-content: center;
    align-items: end;
    min-width: 0;
    align-self: end;            /* Bild sitzt unten am Trennstrich. */
}
.hero__visual img {
    display: block;
    width: 100%;
    max-width: 28rem;
    height: auto;
}

.features {
    padding: clamp(3rem, 6vw, 5rem) 0;
}
.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 2rem;
}
.feature__ico {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: var(--slc-radius);
    background: var(--slc-accent-soft);
    color: var(--slc-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .8rem;
}
.feature__ico svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cta-band {
    background: var(--slc-primary);
    color: var(--slc-primary-ink);
    padding: clamp(2rem, 5vw, 3.5rem) 0;
    margin-top: 2rem;
}

/* Bonus-Highlight zwischen Features und FAQ — bewusst auffällige Terracotta-
   Farbe als Akzent zu Smartline-Grün. Hebt einzelnes Sekundär-Feature heraus
   ohne den Features-Grid auf 4/5 Items aufzublähen. */
.feature-highlight {
    padding: 0 0 clamp(2rem, 5vw, 3rem);
}
.feature-highlight__inner {
    background: var(--slc-bg);
    color: var(--slc-text);
    border: 2px solid #b85e1c;
    border-radius: var(--slc-radius);
    padding: 1.4rem 1.8rem;
    display: flex;
    align-items: center;
    gap: 1.3rem;
    box-shadow: 0 4px 18px rgba(184, 94, 28, .22);
}
.feature-highlight__icon {
    flex: 0 0 auto;
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(184, 94, 28, .12);
    color: #b85e1c;
    border-radius: 50%;
}
.feature-highlight__icon svg {
    width: 1.6rem;
    height: 1.6rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.feature-highlight__text { flex: 1 1 auto; }
.feature-highlight__title {
    margin: 0 0 .2rem;
    font-size: 1.15rem;
    line-height: 1.25;
    color: var(--slc-text);
}
.feature-highlight__lead {
    margin: 0;
    font-size: .95rem;
    line-height: 1.45;
    color: var(--slc-text-muted);
}
@media (max-width: 32rem) {
    .feature-highlight__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: .9rem;
        padding: 1.3rem 1.4rem;
    }
}
.cta-band__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.cta-band__title {
    color: var(--slc-primary-ink);
    margin: 0 0 .4rem;
    max-width: 32ch;
}
.cta-band__lead {
    margin: 0;
    opacity: .85;
    max-width: 42ch;
}

/* -------- Page-Head (Pricing/Legal etc.) -------- */

.page-head {
    padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(1rem, 2vw, 1.5rem);
    background: var(--slc-bg-soft);
    border-bottom: 1px solid var(--slc-border);
}
.page-head__lead {
    color: var(--slc-text-muted);
    font-size: 1.05rem;
    max-width: 55ch;
}

.page-content {
    padding: 2.5rem 0 4rem;
}
.page-content h2 {
    margin-top: 2rem;
}

/* -------- Ratgeber (Long-Form Artikel) -------- */

.breadcrumb {
    font-size: .85rem;
    color: var(--slc-text-muted);
    margin: 0 0 .8rem;
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    align-items: center;
}
.breadcrumb a {
    color: var(--slc-text-muted);
    text-decoration: none;
}
.breadcrumb a:hover {
    color: var(--slc-primary);
    text-decoration: underline;
}

.ratgeber-toc {
    background: var(--slc-bg-soft);
    border: 1px solid var(--slc-border);
    border-radius: var(--slc-radius);
    padding: 1.2rem 1.4rem 1.3rem;
    margin: 0 0 2.5rem;
}
.ratgeber-toc__title {
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--slc-text-muted);
    margin: 0 0 .6rem;
}
.ratgeber-toc ol {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: .25rem;
    font-size: .98rem;
}
.ratgeber-toc a {
    color: var(--slc-text);
    text-decoration: none;
}
.ratgeber-toc a:hover {
    color: var(--slc-primary);
    text-decoration: underline;
}

.ratgeber-prose {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--slc-text);
}
.ratgeber-prose h2 {
    margin: 2.6rem 0 .8rem;
    font-size: 1.55rem;
    line-height: 1.25;
    scroll-margin-top: 5rem;
}
.ratgeber-prose h2:first-child {
    margin-top: 0;
}
.ratgeber-prose p { margin: 0 0 1rem; }
.ratgeber-prose ul,
.ratgeber-prose ol {
    margin: 0 0 1.2rem;
    padding-left: 1.4rem;
}
.ratgeber-prose li { margin: 0 0 .4rem; }
.ratgeber-prose code {
    background: var(--slc-bg-soft);
    border: 1px solid var(--slc-border);
    border-radius: 4px;
    padding: .05rem .35rem;
    font-size: .92em;
}

.ratgeber-steps {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.4rem;
    counter-reset: rstep;
}
.ratgeber-steps > li {
    position: relative;
    padding: .2rem 0 .8rem 2.6rem;
    counter-increment: rstep;
    margin-bottom: .4rem;
}
.ratgeber-steps > li::before {
    content: counter(rstep);
    position: absolute;
    left: 0;
    top: .2rem;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    background: var(--slc-primary);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
}

/* -------- Ratgeber-Hub (Liste aller Artikel) -------- */

.ratgeber-hub__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
}
.ratgeber-hub__item {
    margin: 0;
}
.ratgeber-hub__link {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    height: 100%;
    padding: 1.4rem 1.4rem 1.5rem;
    background: var(--slc-bg-soft);
    border: 1px solid var(--slc-border);
    border-radius: var(--slc-radius);
    color: var(--slc-text);
    text-decoration: none;
    transition: border-color .15s, transform .15s;
}
.ratgeber-hub__link:hover {
    border-color: var(--slc-primary);
    transform: translateY(-2px);
}
.ratgeber-hub__badge {
    align-self: flex-start;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--slc-primary);
    background: #fff;
    border: 1px solid var(--slc-border);
    border-radius: 999px;
    padding: .25rem .65rem;
}
.ratgeber-hub__title {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.3;
    color: var(--slc-text);
}
.ratgeber-hub__lead {
    margin: 0;
    font-size: .98rem;
    line-height: 1.55;
    color: var(--slc-text-muted);
    flex-grow: 1;
}
.ratgeber-hub__more {
    margin-top: .3rem;
    font-size: .92rem;
    font-weight: 600;
    color: var(--slc-primary);
}
.ratgeber-hub__note {
    margin: 2rem 0 0;
    text-align: center;
    color: var(--slc-text-muted);
    font-size: .95rem;
}

/* -------- Pricing -------- */

.pricing { padding: 3rem 0 4rem; }
.pricing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1.3rem;
    margin-top: 2rem;
}
.pricing__note {
    margin-top: 2rem;
    color: var(--slc-text-muted);
    font-size: .9rem;
    text-align: center;
}
.pricing__custom-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 1.3rem;
    margin-top: 2.5rem;
}
.pricing__custom-card {
    background: var(--slc-bg-soft);
    border: 1px solid var(--slc-border);
    border-radius: var(--slc-radius);
    padding: 1.4rem 1.4rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.pricing__custom-card__title {
    color: var(--slc-primary);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
}
.pricing__custom-card p {
    margin: 0;
    line-height: 1.5;
}
.pricing__custom-card .btn {
    align-self: flex-start;
    margin-top: .4rem;
}
.pricing-card {
    position: relative;
    background: var(--slc-bg);
    border: 1px solid var(--slc-border);
    border-radius: var(--slc-radius);
    padding: 1.6rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: .7rem;
}
.pricing-card.is-highlight {
    border-color: var(--slc-primary);
    box-shadow: var(--slc-shadow);
    transform: translateY(-.2rem);
}
.pricing-card.is-soon {
    opacity: .75;
}
.pricing-card__badge {
    position: absolute;
    top: -.7rem;
    left: 1.4rem;
    background: var(--slc-primary);
    color: var(--slc-primary-ink);
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: .2rem .7rem;
    border-radius: 99px;
}
.pricing-card__badge--current {
    background: var(--slc-bg-soft);
    color: var(--slc-primary);
    border: 1px solid var(--slc-primary);
}
.pricing-card.is-current {
    border-color: var(--slc-primary);
    box-shadow: 0 0 0 2px var(--slc-primary) inset;
    opacity: 1;
}
.pricing-card.is-included {
    opacity: .55;
}
.btn.is-disabled,
.btn.is-disabled:hover {
    cursor: default;
    opacity: .55;
    background: transparent;
    color: var(--slc-text-muted, #848f7f);
    border-color: var(--slc-border);
    transform: none;
    box-shadow: none;
}
.pricing-card__title {
    margin: 0;
    font-size: 1.25rem;
}
.pricing-card__price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--slc-primary);
}
.pricing-card__per-user {
    font-size: .8rem;
    color: var(--slc-text-muted);
    margin-top: -.4rem;
}
.pricing-card__desc {
    margin: 0;
    color: var(--slc-text-muted);
    font-size: .95rem;
}
.pricing-card__features {
    list-style: none;
    padding: 0;
    margin: .3rem 0 .8rem;
    font-size: .9rem;
}
.pricing-card__features li {
    padding: .25rem 0 .25rem 1.2rem;
    position: relative;
}
.pricing-card__features li::before {
    content: "";
    position: absolute;
    left: 0; top: .7rem;
    width: .4rem; height: .4rem;
    border-radius: 99px;
    background: var(--slc-primary);
}
.pricing-card__soon {
    display: inline-block;
    padding: .6rem 1rem;
    border: 1px dashed var(--slc-border);
    border-radius: var(--slc-radius);
    color: var(--slc-text-muted);
    font-size: .9rem;
    text-align: center;
    margin-top: auto;
}

/* -------- Print-Add-on auf Pricing-Seite -------- */

.pricing-print {
    margin-top: 3rem;
    padding: 2rem 1.6rem 2.2rem;
    background: var(--slc-bg-soft);
    border: 1px solid var(--slc-border);
    border-radius: var(--slc-radius);
}
.pricing-print__title {
    margin: 0 0 .4rem;
    font-size: 1.5rem;
    color: var(--slc-primary);
}
.pricing-print__lead {
    margin: 0 0 1.5rem;
    color: var(--slc-text-muted);
    max-width: 44rem;
    line-height: 1.5;
}
.pricing-print__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: 1.3rem;
}
.pricing-print__card {
    position: relative;
    background: var(--slc-bg);
    border: 1px solid var(--slc-border);
    border-radius: var(--slc-radius);
    padding: 1.4rem 1.4rem 1.5rem;
}
.pricing-print__card.is-recommended {
    border-color: var(--slc-primary);
    box-shadow: var(--slc-shadow);
}
.pricing-print__badge {
    position: absolute;
    top: -.7rem;
    left: 1.4rem;
    background: var(--slc-primary);
    color: var(--slc-primary-ink);
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: .2rem .7rem;
    border-radius: 99px;
}
.pricing-print__card-title {
    margin: 0 0 .3rem;
    font-size: 1.1rem;
    font-weight: 600;
}
.pricing-print__card-desc {
    margin: 0 0 1rem;
    color: var(--slc-text-muted);
    font-size: .9rem;
    line-height: 1.5;
}
.pricing-print__prices {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--slc-border);
}
.pricing-print__prices li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: .65rem 0;
    border-bottom: 1px solid var(--slc-border);
}
.pricing-print__prices li:last-child {
    border-bottom: none;
}
.pricing-print__qty {
    color: var(--slc-text-muted);
    font-size: .95rem;
}
.pricing-print__price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--slc-primary);
}
.pricing-print__cta-row {
    margin: 1.6rem 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}
.pricing-print__note {
    color: var(--slc-text-muted);
    font-size: .85rem;
}

/* -------- Buttons -------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .65rem 1.2rem;
    border-radius: var(--slc-radius);
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn--sm { padding: .4rem .9rem; font-size: .85rem; }
.btn--lg { padding: .85rem 1.6rem; font-size: 1rem; }
.btn--block { width: 100%; margin-top: auto; }
.btn--primary,
.site-nav a.btn--primary {
    background: var(--slc-primary);
    color: var(--white);
    border-color: var(--slc-primary);
}
.btn--primary:hover,
.site-nav a.btn--primary:hover {
    background: var(--green-dark);
    color: var(--white);
}

/* Im grünen CTA-Band wird der Primary-Button invertiert (weiß auf grün),
   sonst verschwindet er im gleichfarbigen Hintergrund. */
.cta-band .btn--primary {
    background: var(--white);
    color: var(--slc-primary);
    border-color: var(--white);
}
.cta-band .btn--primary:hover {
    background: var(--slc-bg-soft);
    color: var(--slc-primary);
    border-color: var(--slc-bg-soft);
}
.btn--ghost {
    background: transparent;
    color: var(--slc-primary);
    border-color: var(--slc-border);
}
.btn--ghost:hover {
    border-color: var(--slc-primary);
    background: var(--slc-bg-soft);
}

/* -------- Contact card -------- */
.contact-card {
    background: var(--slc-bg-soft);
    border: 1px solid var(--slc-border);
    border-radius: var(--slc-radius);
    padding: 1.5rem;
    margin: 1rem 0;
}

/* -------- Forms (Etappe 1b) -------- */

.form {
    max-width: 32rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-fieldset {
    border: 1px solid var(--border);
    border-radius: var(--slc-radius);
    padding: 1.2rem 1.4rem;
    background: var(--white);
}
.form-fieldset legend {
    padding: 0 .5rem;
    font-weight: 600;
    color: var(--green);
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin: 1rem 0;
}
.form-row:first-of-type { margin-top: .3rem; }
.form-row:last-of-type  { margin-bottom: 0; }

.form-row label {
    font-weight: 600;
    font-size: .9rem;
    color: var(--text);
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="password"],
.form-row input[type="tel"],
.form-row input[type="url"],
.form-row input[type="number"],
.form-row input[type="date"],
.form-row input[type="time"],
.form-row input[type="datetime-local"],
.form-row input[type="search"],
.form-row textarea,
.form-row select {
    width: 100%;
    padding: .7rem .85rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: var(--slc-radius-sm);
    background: var(--white);
    color: var(--text);
    transition: border-color .15s, box-shadow .15s;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(1, 70, 57, 0.12);
}

.form-row.is-error input,
.form-row.is-error textarea,
.form-row.is-error select {
    border-color: var(--red);
    background: var(--red-light);
}

/* -------- Select: native Pfeil ersetzen, sonst ist's kein einheitliches Bild -------- */
.form-row select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23848f7f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right .85rem center;
    cursor: pointer;
}
.form-row select:focus {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23014639' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
}

/* -------- File-Upload: Browser-Default ersetzen --------
   Container-Look wie ein Input, aber der eigentliche „Durchsuchen"-Button
   wird via ::file-selector-button als Smartline-Button gerendert. */
.form-row input[type="file"] {
    width: 100%;
    padding: .35rem .5rem;
    font-size: .95rem;
    font-family: inherit;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--slc-radius-sm);
    background: var(--white);
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}
.form-row input[type="file"]:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(1, 70, 57, 0.12);
}
.form-row input[type="file"]::file-selector-button {
    margin-right: .9rem;
    padding: .5rem 1rem;
    font-size: .9rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--white);
    background: var(--green);
    border: none;
    border-radius: var(--slc-radius-sm);
    cursor: pointer;
    transition: background .15s;
}
.form-row input[type="file"]::file-selector-button:hover {
    background: var(--green-dark);
}
/* WebKit-Legacy für ältere Safari/Chromium-Versionen */
.form-row input[type="file"]::-webkit-file-upload-button {
    margin-right: .9rem;
    padding: .5rem 1rem;
    font-size: .9rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--white);
    background: var(--green);
    border: none;
    border-radius: var(--slc-radius-sm);
    cursor: pointer;
}

.form-hint {
    font-size: .85rem;
    color: var(--text-muted);
    line-height: 1.4;
}
.form-hint--error {
    color: var(--red);
    font-weight: 500;
}

.form-slug-input {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: var(--slc-radius-sm);
    background: var(--white);
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}
.form-slug-input:focus-within {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(1, 70, 57, 0.12);
}
.form-slug-input__prefix {
    padding: .7rem .85rem;
    background: var(--bg);
    color: var(--text-muted);
    font-size: .95rem;
    border-right: 1px solid var(--border);
    white-space: nowrap;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.form-slug-input input {
    flex: 1;
    padding: .7rem .85rem;
    font-size: 1rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    border: none;
    background: transparent;
    color: var(--text);
}
.form-slug-input input:focus {
    outline: none;
    box-shadow: none;
}
.form-row.is-error .form-slug-input {
    border-color: var(--red);
    background: var(--red-light);
}

.form-error {
    background: var(--red-light);
    border: 1px solid var(--red-border);
    border-left: 4px solid var(--red);
    border-radius: var(--slc-radius-sm);
    padding: 1rem 1.2rem;
    color: var(--text);
    margin: 1rem 0;
}
.form-error--global {
    font-weight: 500;
}

.form-success {
    background: var(--green-light);
    border: 1px solid var(--border);
    border-left: 4px solid var(--green);
    border-radius: var(--slc-radius-sm);
    padding: 1.3rem 1.5rem;
    margin: 1rem 0;
    color: var(--text);
    line-height: 1.5;
}
.form-success p:last-child { margin-bottom: 0; }

.form-legal {
    font-size: .85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.form-actions {
    display: flex;
    gap: .7rem;
    flex-wrap: wrap;
    align-items: center;
}

.form-login-hint {
    margin-top: 2rem;
    font-size: .9rem;
    color: var(--text-muted);
    text-align: center;
}

/* -------- Textarea (ergänzt Forms) -------- */
.form-row textarea {
    resize: vertical;
    min-height: 5rem;
    line-height: 1.5;
}

/* -------- Form-Grid (für PLZ + Ort nebeneinander) -------- */
.form-grid {
    display: grid;
    gap: 1rem;
}
.form-grid--zip-city {
    grid-template-columns: 8rem 1fr;
}
.form-grid .form-row {
    margin: 0;
}
@media (max-width: 30rem) {
    .form-grid--zip-city { grid-template-columns: 1fr; }
}

/* -------- Dashboard-Card (Etappe 2a) -------- */

.dashboard-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--slc-radius);
    padding: 1.5rem 1.6rem;
    box-shadow: var(--slc-shadow);
}
.dashboard-card__publish {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}
.dashboard-card__publish:not(:first-child) {
    padding-top: 1.2rem;
    border-top: 1px solid var(--border);
}

/* -------- Badges -------- */

.badge {
    display: inline-block;
    padding: .25rem .7rem;
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    border-radius: 99px;
}
.badge--live {
    background: var(--green);
    color: var(--white);
}
.badge--draft {
    background: var(--green-light);
    color: var(--green);
    border: 1px solid var(--border);
}

/* -------- Checklist -------- */

.checklist {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}
.checklist__item {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .6rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.checklist__item:last-child { border-bottom: none; }
.checklist__item.is-done {
    color: var(--text-muted);
    text-decoration: line-through;
    text-decoration-color: var(--green-mid);
}
.checklist__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    font-weight: 700;
    color: var(--text-muted);
}
.checklist__item.is-done .checklist__mark {
    color: var(--green);
}
.checklist__label {
    flex: 1;
}
.checklist__tag {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    padding: .15rem .5rem;
    border: 1px solid var(--border);
    border-radius: 99px;
    background: var(--bg);
}
.checklist__tag--soon {
    color: var(--green);
    border-color: var(--border);
    background: var(--green-light);
}

/* -------- 404 -------- */

.error-page {
    padding: clamp(4rem, 10vw, 8rem) 0;
    text-align: center;
}
.error-page__code {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 700;
    color: var(--slc-accent);
    line-height: 1;
    margin-bottom: .5rem;
}
.error-page__title {
    margin-bottom: .8rem;
}
.error-page__lead {
    color: var(--slc-text-muted);
    max-width: 45ch;
    margin: 0 auto 2rem;
}
.error-page__actions {
    display: inline-flex;
    gap: .7rem;
    flex-wrap: wrap;
    justify-content: center;
}
.error-page__debug {
    margin-top: 3rem;
    padding: 1rem;
    background: #fff8e1;
    border: 1px solid #e8d99a;
    border-radius: var(--slc-radius);
    font-size: .88rem;
    text-align: left;
    font-family: ui-monospace, Menlo, Consolas, monospace;
}

/* -------- Footer -------- */

.site-footer {
    margin-top: 3rem;
    padding: 2.2rem 0 1.8rem;
    background: var(--slc-bg-soft);
    border-top: 1px solid var(--slc-border);
    font-size: .9rem;
    color: var(--slc-text-muted);
}
.site-footer__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "brand meta"
        "nav   nav";
    align-items: start;
    gap: 1.4rem 2rem;
}
.site-footer__brand { grid-area: brand; }
.site-footer__meta  { grid-area: meta; }
.site-footer__nav   { grid-area: nav; }

.site-footer__brand strong {
    color: var(--slc-primary);
    display: block;
}
.site-footer__claim {
    font-size: .85rem;
}
.site-footer__nav {
    display: flex;
    gap: 1.4rem;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid var(--slc-border);
}
.site-footer__nav a {
    color: var(--slc-text-muted);
}
.site-footer__meta {
    text-align: right;
    font-size: .82rem;
}

/* Responsive fallback für Footer + CTA-Band
   (.site-nav-Mobile-Verhalten siehe Header-Block oben — nicht hier doppelt regeln) */
@media (max-width: 42rem) {
    .site-footer__inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "meta"
            "nav";
        text-align: center;
    }
    .site-footer__meta { text-align: center; }
    .site-footer__nav  { justify-content: center; gap: 1rem 1.2rem; }
    .cta-band__inner   { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Etappe 2d: Logo-Editor, CI-Editor, Editor-Jump, Brand-Block
   ============================================================ */

/* -------- Logo-Editor -------- */
.logo-editor {
    display: grid;
    grid-template-columns: 14rem 1fr;
    gap: 2rem;
    align-items: start;
}
@media (max-width: 38rem) {
    .logo-editor { grid-template-columns: 1fr; }
}
.logo-editor__preview-label {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: .5rem;
}
.logo-editor__preview-frame {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: var(--slc-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.logo-editor__preview-frame img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
.logo-editor__placeholder {
    color: var(--text-muted);
    font-size: .9rem;
    font-style: italic;
}
.logo-editor__delete {
    grid-column: 1 / -1;
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border);
}

/* -------- CI-Editor -------- */
/* Zwei Spalten innerhalb der einheitlichen editor-area (48rem):
   Form links (~22rem), Live-Vorschau rechts. Bei schmalen Viewports
   (<40rem) automatisch in eine Spalte umbrechen. */
.ci-editor {
    display: grid;
    grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}
@media (max-width: 40rem) {
    .ci-editor { grid-template-columns: 1fr; }
}
.ci-picker {
    display: flex;
    align-items: center;
    gap: .8rem;
}
.ci-picker input[type="color"] {
    width: 4rem;
    height: 3rem;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: .5rem;
    background: var(--white);
    cursor: pointer;
    flex-shrink: 0;
}
/* Selektor mit gleicher Spezifität wie `.form-row input[type="text"]` (0,2,1)
   und später im CSS — gewinnt für die kompakte Inline-Breite. */
.ci-picker input.ci-picker__hex {
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    width: 7.5rem;
    padding: .55rem .7rem;
}
.ci-picker input.ci-picker__hex.is-invalid {
    border-color: var(--red);
    background: var(--red-light);
}
.ci-editor__preview-label {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: .8rem;
}
.ci-editor__reset {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* CI-Live-Vorschau (vereinfachte Karte). Nutzt dieselben CSS-Variablen
   wie die echte öffentliche Karte. */
.ci-preview {
    --slc-card-primary: #014639;
    --slc-card-secondary: #848f7f;
    --slc-card-text-on-primary: #FFFFFF;
    background: var(--white);
    border-radius: var(--slc-radius);
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,.04), 0 12px 32px rgba(0,0,0,.08);
    max-width: 22rem;
    transition: --slc-card-primary .25s, --slc-card-secondary .25s;
}
/* CI-Vorschau spiegelt das echte Karten-Layout: weißer Header, Logo frei
   in Originalproportion, Name + Bio in CI-Primärfarbe. */
.ci-preview__header {
    background: var(--white);
    color: var(--slc-card-primary);
    padding: 1.6rem 1.3rem 1.4rem;
    text-align: center;
}
.ci-preview__logo {
    margin: 0 auto 1rem;
    max-width: 12rem;
    max-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ci-preview__logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.ci-preview__name {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--slc-card-primary);
}
.ci-preview__bio {
    margin-top: .4rem;
    font-size: .85rem;
    color: var(--text);
    opacity: .85;
}
.ci-preview__row {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .9rem 1.2rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.ci-preview__ico {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--green-light);
    color: var(--slc-card-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ci-preview__ico svg {
    width: 1rem;
    height: 1rem;
}
.ci-preview__actions {
    padding: 1rem 1.2rem;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.ci-preview__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .6rem 1rem;
    border-radius: .45rem;
    font-size: .9rem;
    font-weight: 600;
    border: 2px solid transparent;
}
.ci-preview__btn--primary {
    background: var(--slc-card-primary);
    color: var(--slc-card-text-on-primary);
    border-color: var(--slc-card-primary);
}
.ci-preview__btn--ghost {
    background: transparent;
    color: var(--slc-card-primary);
    border-color: var(--slc-card-primary);
}

/* -------- Dashboard: Brand-Block (Logo + CI-Swatches) -------- */
.dashboard-card__brand {
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
    padding-bottom: 1.2rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--border);
}
.dashboard-card__brand-cell {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.dashboard-card__brand-label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    font-weight: 600;
}
/* Logo-Mini-Vorschau: weißer Hintergrund + dünner Border (analog zum
   neuen Karten-Layout, kein Primärfarben-Frame mehr). */
.dashboard-card__logo-frame {
    width: 6rem;
    height: 4rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--slc-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: .35rem;
}
.dashboard-card__logo-frame img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.dashboard-card__swatches {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}
.dashboard-card__swatch {
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    border: 1px solid var(--border);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.4);
}
.dashboard-card__swatches code {
    font-size: .85rem;
    color: var(--text-muted);
    background: transparent;
    padding: 0;
    border: none;
    margin-right: .5rem;
}

/* Klickbare Checklist-Items */
a.checklist__label {
    color: var(--green);
    text-decoration: none;
}
a.checklist__label:hover {
    text-decoration: underline;
}

/* Vererbte Firmen-Social-Links im Mitarbeiter-Editor (read-only Hinweisbox) */
.inherited-links {
    margin: 0 0 2rem;
    padding: 1rem 1.2rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--slc-radius-sm);
}
.inherited-links__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: .8rem;
    flex-wrap: wrap;
}
.inherited-links__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.inherited-links__list li {
    display: grid;
    grid-template-columns: 1.6rem max-content 1fr;
    gap: .7rem;
    align-items: center;
    font-size: .9rem;
    color: var(--text-muted);
}
.inherited-links__icon {
    width: 1.6rem;
    height: 1.6rem;
    color: var(--green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.inherited-links__icon svg {
    width: 1.2rem;
    height: 1.2rem;
}
.inherited-links__label {
    color: var(--text);
    font-weight: 500;
}
.inherited-links__url {
    word-break: break-all;
}
@media (max-width: 32rem) {
    .inherited-links__list li {
        grid-template-columns: 1.6rem 1fr;
    }
    .inherited-links__url {
        grid-column: 2 / -1;
        font-size: .82rem;
    }
}

/* ============================================================
   Phase 5 — Mitarbeiter-Karten-Liste + Editor
   ============================================================ */

.members-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .8rem;
}
.members-list__row {
    display: grid;
    grid-template-columns: 4rem 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.2rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--slc-radius);
}
.members-list__row--archived {
    opacity: .55;
}
.members-list__photo {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    overflow: hidden;
    background: var(--green-light);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.members-list__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.members-list__photo--empty {
    background: var(--bg);
    color: var(--text-muted);
}
.members-list__photo--empty svg {
    width: 1.6rem;
    height: 1.6rem;
}
.members-list__main {
    min-width: 0;
}
.members-list__name {
    display: flex;
    align-items: center;
    gap: .55rem;
    flex-wrap: wrap;
    margin-bottom: .15rem;
}
.members-list__title {
    font-size: .92rem;
    color: var(--text-muted);
    margin-bottom: .2rem;
}
.members-list__access {
    margin: .25rem 0 .35rem;
}
.access-pill {
    display: inline-block;
    padding: .15rem .6rem;
    font-size: .78rem;
    font-weight: 500;
    line-height: 1.5;
    border-radius: 99px;
    border: 1px solid transparent;
}
.access-pill__label {
    opacity: .75;
    margin-right: .15rem;
}
.access-pill--assigned {
    background: var(--green-light);
    color: var(--green);
    border-color: var(--green);
}
.access-pill--pending {
    background: #fff4e0;
    color: #8a5a00;
    border-color: #e0a44e;
}
.access-pill--none {
    background: var(--bg);
    color: var(--text-muted);
    border-color: var(--border);
}
.members-list__meta {
    font-size: .82rem;
    color: var(--text-muted);
}
.members-list__meta code {
    font-size: .82rem;
    padding: .1rem .35rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 3px;
}
.members-list__actions {
    display: flex;
    gap: .35rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}
@media (max-width: 36rem) {
    .members-list__row {
        grid-template-columns: 4rem 1fr;
    }
    .members-list__actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

/* Foto-Vorschau im Member-Editor: rund + größer als die Logo-Vorschau */
.member-photo-preview {
    border-radius: 50%;
    overflow: hidden;
}
.member-photo-preview img {
    border-radius: 50%;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Dashboard: Mitarbeiter-Block */
.dashboard-card__members {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.2rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.dashboard-card__members-text {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
}

/* ============================================================
   Admin-Bereich: Tabellen, Detail-Listen, Impersonation-Banner
   ============================================================ */

.impersonation-banner {
    background: #b85e1c;
    color: #fff;
    padding: .65rem 0;
    font-size: .9rem;
    border-bottom: 1px solid rgba(0, 0, 0, .15);
}
.impersonation-banner__inner {
    display: flex;
    align-items: center;
    gap: .8rem;
    flex-wrap: wrap;
}
.impersonation-banner__icon {
    font-size: 1.1rem;
    line-height: 1;
}
.impersonation-banner__text {
    flex: 1;
    min-width: 0;
}
.impersonation-banner__action {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
    white-space: nowrap;
}
.impersonation-banner__action:hover {
    color: #fff;
    text-decoration: none;
}

/* -------- Admin-Tabelle (responsive scroll) -------- */
.admin-table-wrap {
    overflow-x: auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--slc-radius);
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
}
.admin-table thead th {
    text-align: left;
    padding: .8rem 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    font-size: .82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap;
}
.admin-table tbody td {
    padding: .8rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    overflow-wrap: anywhere;
}
.admin-table tbody tr:last-child td {
    border-bottom: none;
}
.admin-table tbody tr:hover {
    background: var(--bg);
}
.admin-table code {
    font-size: .88rem;
    padding: .15rem .4rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 3px;
    overflow-wrap: anywhere;
    display: inline-block;
    max-width: 100%;
}
.admin-table__actions {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
    white-space: nowrap;
}

/* -------- Admin-Detail-Liste (Definitions-Liste, zwei Spalten) -------- */
.admin-dl {
    display: grid;
    grid-template-columns: minmax(8rem, max-content) 1fr;
    gap: .5rem 1.5rem;
    margin: 0;
    padding: 1.2rem 1.4rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--slc-radius);
}
.admin-dl dt {
    font-weight: 600;
    color: var(--text-muted);
    font-size: .9rem;
}
.admin-dl dd {
    margin: 0;
    font-size: .95rem;
    word-break: break-word;
}
.admin-dl code {
    font-size: .9rem;
    padding: .15rem .4rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 3px;
}
@media (max-width: 32rem) {
    .admin-dl { grid-template-columns: 1fr; gap: .15rem 0; }
    .admin-dl dt { margin-top: .8rem; }
    .admin-dl dt:first-child { margin-top: 0; }
}

/* ============================================================
   Editor-Header mit Status + Pillar-Navigation (Etappe 2d/2e)
   ============================================================ */

.company-head {
    background: var(--slc-bg-soft);
    border-bottom: 1px solid var(--slc-border);
    padding: 1.8rem 0 1.8rem;
}

.company-head__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.4rem;
}
.company-head__brand {
    min-width: 0;
}
.company-head__label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: .35rem;
}
.company-head__url {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
}
.company-head__url code {
    font-size: .95rem;
    padding: .25rem .55rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--slc-radius-sm);
    color: var(--text);
    word-break: break-all;
}
.company-head__actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.company-head__title {
    padding: 0 0 1.4rem;
}
.company-head__title h1 {
    margin: 0 0 .35rem;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
}
.company-head__lead {
    margin: 0;
    color: var(--text-muted);
    max-width: 60ch;
    line-height: 1.5;
}

/* Pillar-Nav als Button-Reihe: aktiver Eintrag = primary (gefüllt grün),
   inaktive = ghost (weiß mit Border). Sieht aus wie eine Toolbar. */
.company-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}
.company-nav__item {
    display: inline-flex;
    align-items: center;
    padding: .55rem 1.1rem;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    border: 2px solid var(--border);
    border-radius: var(--slc-radius-sm);
    background: var(--white);
    color: var(--text);
    transition: background .15s, color .15s, border-color .15s;
    white-space: nowrap;
}
.company-nav__item:hover {
    border-color: var(--green);
    color: var(--green);
    text-decoration: none;
}
.company-nav__item.is-active {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
}
.company-nav__item.is-active:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: var(--white);
}
.company-nav__item:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

/* Editor-Inhalt: linksbündig, einheitliche Breite über alle vier Editoren.
   `.container` ist mit margin:0 auto zentriert (max 72rem) — der Editor-Inhalt
   liegt innerhalb, links angedockt, max 48rem breit. */
.editor-area {
    max-width: 48rem;
    margin: 0;
}
/* Innerhalb der Editor-Area überschreiben wir die Login-Form-Schmalheit (32rem),
   damit das Form die volle editor-area-Breite nutzt. */
.editor-area .form {
    max-width: none;
}

/* Editor-Title-Block: kommt im page-content oberhalb des Forms (nicht mehr im
   page-head). Visuell entkoppelt vom Background-Streifen oben drüber. */
.editor-title {
    margin-bottom: 1.8rem;
}
.editor-title h1 {
    margin: 0 0 .35rem;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
}
.editor-title__lead {
    margin: 0;
    color: var(--text-muted);
    max-width: 60ch;
    line-height: 1.5;
}

/* Mobile: Pillar-Nav scrollt horizontal, statt umzubrechen */
@media (max-width: 38rem) {
    .company-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -1.3rem;
        padding: 0 1.3rem .25rem;
    }
    .company-nav__item {
        flex-shrink: 0;
    }
}

/* ============================================================
   Etappe 2e: Social-Links-Editor
   ============================================================ */

.links-editor .link-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-row {
    display: grid;
    grid-template-columns: 2.6rem minmax(7rem, max-content) 1fr auto;
    grid-template-areas: "icon type fields actions";
    align-items: start;
    gap: 1rem;
    padding: 1rem 1.1rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--slc-radius);
}
.link-row.has-error {
    border-color: var(--red);
    background: var(--red-light);
}

.link-row__icon {
    grid-area: icon;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: var(--green-light);
    color: var(--green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.link-row__icon svg {
    width: 1.3rem;
    height: 1.3rem;
}
.link-row__type {
    grid-area: type;
    font-weight: 600;
    color: var(--text);
    padding-top: .35rem;
}
.link-row__fields {
    grid-area: fields;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: .8rem;
    min-width: 0;
}
.link-row__fields .form-row {
    margin: 0;
    min-width: 0;
}
.link-row__actions {
    grid-area: actions;
    display: flex;
    gap: .3rem;
    align-self: center;
}
.link-row__btn {
    width: 2.2rem;
    height: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: .4rem;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    color: var(--text);
    transition: background .15s, border-color .15s;
    font-family: inherit;
}
.link-row__btn:hover:not(:disabled) {
    background: var(--green-light);
    border-color: var(--green-mid);
}
.link-row__btn:disabled {
    opacity: .35;
    cursor: not-allowed;
}
.link-row__btn--danger {
    color: var(--red);
    font-size: 1.4rem;
}
.link-row__btn--danger:hover:not(:disabled) {
    background: var(--red-light);
    border-color: var(--red-border);
}

.form-hint--soft {
    color: var(--text-muted);
    font-size: .85rem;
    margin-top: .25rem;
}

/* Inline-Checkbox-Helper unter Form-Inputs (z.B. „Zusätzlich auf Mitarbeiter-
   Karten anzeigen"). Layout: Checkbox links, Text rechts, beides klickbar. */
.form-checkbox {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-top: .5rem;
    font-size: .9rem;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 400;
}
.form-checkbox input[type="checkbox"] {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--green);
    cursor: pointer;
}

@media (max-width: 44rem) {
    .link-row {
        grid-template-columns: 2.6rem 1fr;
        grid-template-areas:
            "icon   type"
            "fields fields"
            "actions actions";
    }
    .link-row__fields {
        grid-template-columns: 1fr;
    }
    .link-row__actions {
        justify-content: flex-end;
    }
}

/* -------- FAQ (Startseite) -------- */

.faq {
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(1rem, 3vw, 2rem);
}
.faq__title {
    text-align: center;
    margin-bottom: 2rem;
}
.faq__list {
    display: flex;
    flex-direction: column;
    gap: .8rem;
}
.faq__item {
    background: var(--white);
    border: 1px solid var(--slc-border);
    border-radius: var(--slc-radius);
    box-shadow: var(--slc-shadow);
    overflow: hidden;
}
.faq__question {
    cursor: pointer;
    padding: 1rem 1.2rem;
    font-weight: 600;
    color: var(--slc-primary);
    list-style: none;
    position: relative;
    padding-right: 3rem;
    user-select: none;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
    content: "";
    position: absolute;
    right: 1.2rem;
    top: 50%;
    width: .7rem;
    height: .7rem;
    border-right: 2px solid var(--slc-primary);
    border-bottom: 2px solid var(--slc-primary);
    transform: translateY(-65%) rotate(45deg);
    transition: transform .15s ease;
}
.faq__item[open] .faq__question::after {
    transform: translateY(-25%) rotate(-135deg);
}
.faq__question:hover {
    background: var(--slc-bg-soft);
}
.faq__answer {
    padding: 0 1.2rem 1rem;
    color: var(--slc-text);
}
.faq__answer p { margin: 0; }
.faq__answer a { text-decoration: underline; }
.faq__more {
    text-align: center;
    margin-top: 2rem;
    color: var(--slc-text-muted);
}
.faq__more a { font-weight: 600; }

/* -------- Install-Anleitung (Karte als App) -------- */

.install .install-block {
    background: var(--white);
    border: 1px solid var(--slc-border);
    border-radius: var(--slc-radius);
    box-shadow: var(--slc-shadow);
    padding: 1.5rem 1.6rem;
    margin-bottom: 1.5rem;
}
.install .install-block--note {
    background: var(--slc-bg-soft);
    box-shadow: none;
}
.install-block__head {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: .8rem;
}
.install-block__head h2 {
    margin: 0;
    font-size: 1.25rem;
}
.install-block__ico {
    flex: 0 0 auto;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: var(--slc-radius);
    background: var(--slc-accent-soft);
    color: var(--slc-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.install-block__ico svg {
    width: 1.4rem;
    height: 1.4rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.install-block__subhead {
    margin-top: 1.4rem;
    color: var(--slc-text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: .85rem;
    font-weight: 600;
}
.install-steps {
    margin: .5rem 0 .5rem;
    padding-left: 1.2rem;
}
.install-steps li {
    margin-bottom: .55rem;
    padding-left: .3rem;
}
.install-steps li:last-child { margin-bottom: 0; }
.install-block__note {
    margin-top: 1rem;
    margin-bottom: 0;
    color: var(--slc-text-muted);
    font-size: .95rem;
}

/* -------- Lead-Capture „Visitenkarten tauschen" -------- */

/* Erfolgs-/Fehler-Banner über dem Tausch-Button — sichtbar nach Submit */
.slc-lead-banner {
    margin: 1.25rem 0 0;
    padding: .9rem 1.1rem;
    border-radius: var(--slc-radius-sm);
    font-size: .92rem;
    line-height: 1.5;
}
.slc-lead-banner--success {
    background: #e8f5e8;
    color: #1d5a2e;
}
.slc-lead-banner--error {
    background: #fdecec;
    color: #8b1f1f;
}

/* Modal: position:fixed, escapt das Card-Layout. Zentriert auf Desktop,
   Bottom-Sheet auf Mobile. */
.slc-lead-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.slc-lead-modal[hidden] { display: none; }
.slc-lead-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 30, 24, .55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.slc-lead-modal__sheet {
    position: relative;
    width: 100%;
    max-width: 32rem;
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 12px 12px 0 0;
    padding: 1.75rem 1.4rem 1.4rem;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, .18);
    animation: slc-lead-slide-up .2s ease-out;
}
@keyframes slc-lead-slide-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0);    }
}
@media (min-width: 40rem) {
    .slc-lead-modal { align-items: center; }
    .slc-lead-modal__sheet {
        border-radius: 12px;
        max-height: 85vh;
        padding: 2rem 2rem 1.75rem;
        animation: slc-lead-fade-in .2s ease-out;
    }
    @keyframes slc-lead-fade-in {
        from { opacity: 0; transform: translateY(8px); }
        to   { opacity: 1; transform: translateY(0);    }
    }
}
.slc-lead-modal__close {
    position: absolute;
    top: .6rem;
    right: .9rem;
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--slc-text-muted);
    border-radius: 50%;
}
.slc-lead-modal__close:hover {
    background: var(--slc-bg-soft);
    color: var(--slc-text);
}
.slc-lead-modal__title {
    margin: 0 2rem .3rem 0;
    font-size: 1.25rem;
    color: var(--slc-primary);
    line-height: 1.3;
}
.slc-lead-modal__lead {
    margin: 0 0 1.25rem;
    color: var(--slc-text-muted);
    font-size: .92rem;
    line-height: 1.5;
}

/* Form */
.slc-lead-form {
    display: flex;
    flex-direction: column;
    gap: .85rem;
}
.slc-lead-row {
    display: grid;
    gap: .85rem;
}
.slc-lead-row--two { grid-template-columns: 1fr 1fr; }
@media (max-width: 28rem) {
    .slc-lead-row--two { grid-template-columns: 1fr; }
}
.slc-lead-field {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}
.slc-lead-field > span {
    font-size: .85rem;
    color: var(--slc-text-muted);
    font-weight: 500;
}
.slc-lead-field input,
.slc-lead-field textarea {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: .55rem .75rem;
    border: 1px solid var(--slc-border);
    border-radius: var(--slc-radius-sm);
    font-size: 1rem;
    font-family: inherit;
    background: var(--slc-bg);
    color: var(--slc-text);
    transition: border-color .15s;
}
.slc-lead-field input:focus,
.slc-lead-field textarea:focus {
    outline: none;
    border-color: var(--slc-primary);
    box-shadow: 0 0 0 2px var(--slc-primary-soft, rgba(1, 70, 57, .15));
}
.slc-lead-field textarea { resize: vertical; min-height: 4.5rem; }

/* DSGVO-Pflicht-Häkchen */
.slc-lead-consent {
    display: flex;
    gap: .65rem;
    align-items: flex-start;
    margin-top: .25rem;
    font-size: .85rem;
    line-height: 1.45;
    color: var(--slc-text-muted);
}
.slc-lead-consent input {
    margin-top: .15rem;
    flex: 0 0 auto;
}
.slc-lead-consent a { color: var(--slc-primary); }

/* Honeypot: für Bots im DOM, für Menschen unsichtbar. Standard sr-only-
   Pattern (clip:rect) statt left:-9999px — letzteres zwingt den Body auf
   die volle 9999px-Breite und löst horizontalen Scrollbalken aus. */
.slc-lead-honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.slc-lead-submit {
    margin-top: .65rem;
    width: 100%;
    justify-content: center;
}

/* Body-Lock wenn Modal offen — verhindert Scroll-Through auf Mobile */
body.slc-lead-modal-open {
    overflow: hidden;
}
