:root {
    --bg: #070707;
    --panel: #111111;
    --panel-2: #171717;
    --line: #2b2b2b;
    --text: #f5f5f5;
    --muted: #979797;
    --accent: #ff3b30;
    --accent-2: #ff6259;
    --ok: #45d483;
    --warn: #f0b94a;
    --radius: 18px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
    background: var(--bg);
    overflow-x: hidden;
}

body {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
input,
select,
textarea {
    box-sizing: border-box;
    font: inherit;
}

.app-shell {
    width: 100%;
    max-width: 1120px;
    min-height: 100vh;
    margin: 0 auto;
    padding-top: env(safe-area-inset-top);
    padding-right: 18px;
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: 18px;
}

.topbar {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.brand {
    font-weight: 900;
    letter-spacing: 0.08em;
}

.eyebrow,
.kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.content {
    width: 100%;
    min-width: 0;
    padding: 28px 0 52px;
}

.page-head {
    margin-bottom: 24px;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 14px;
    font-size: clamp(34px, 9vw, 64px);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

h2 {
    margin-bottom: 10px;
    font-size: 24px;
    letter-spacing: -0.025em;
}

.muted {
    color: var(--muted);
    line-height: 1.55;
}

.deadline {
    color: #d8d8d8;
    font-weight: 700;
}

/* FIREWEAR Wachenbereich: kompakter, zeitabhängiger Bestellschluss. */
.order-overview-card .deadline {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b0b0b0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

.order-overview-card .deadline svg {
    display: block;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    color: #a3a3a3;
}

.order-overview-card .deadline span {
    min-width: 0;
}

.order-overview-card .deadline--week { color: #dedede; }
.order-overview-card .deadline--week svg { color: #c9c9c9; }
.order-overview-card .deadline--hours48 { color: #e7bd7d; }
.order-overview-card .deadline--hours48 svg { color: #e1ac58; }
.order-overview-card .deadline--hours24 { color: #f09b9b; }
.order-overview-card .deadline--hours24 svg { color: #ed7777; }

.text-link {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-decoration: none;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    transition: color 0.15s ease, border-color 0.15s ease;
}

.text-link:hover,
.text-link:focus-visible {
    color: #fff;
    border-bottom-color: rgba(255, 59, 48, 0.78);
}

.hero-card,
.card {
    width: 100%;
    min-width: 0;
    padding: 22px;
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.hero-card {
    margin-top: 8vh;
}

.card + .card {
    margin-top: 14px;
}

.stack-form {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 16px;
}

.form-field {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 8px;
}

label {
    display: block;
    width: 100%;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.13em;
    color: #b7b7b7;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="tel"],
select {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 54px;
    min-height: 54px;
    margin: 0;
    padding: 0 15px;
    border: 1px solid #383838;
    border-radius: 13px;
    background: #0b0b0b;
    color: var(--text);
    font-size: 16px;
    outline: none;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
select:focus {
    border-color: #666;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

select {
    padding-right: 42px;
    cursor: pointer;
}

.field-grid {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.field-grid > * {
    min-width: 0;
}

.native-input-wrap {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 54px;
    overflow: hidden;
    border: 1px solid #383838;
    border-radius: 13px;
    background: #0b0b0b;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.native-input-wrap:focus-within {
    border-color: #666;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.native-input-wrap input[type="date"],
.native-input-wrap input[type="time"] {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 54px;
    min-height: 54px;
    margin: 0;
    padding: 0 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    font-size: 16px;
    line-height: 54px;
    outline: none;
    color-scheme: dark;
    -webkit-appearance: none;
    appearance: none;
}

.native-input-wrap input[type="date"]::-webkit-date-and-time-value,
.native-input-wrap input[type="time"]::-webkit-date-and-time-value {
    min-width: 0;
    height: 54px;
    margin: 0;
    padding: 0;
    line-height: 54px;
    text-align: left;
}

.native-input-wrap input[type="date"]::-webkit-datetime-edit,
.native-input-wrap input[type="time"]::-webkit-datetime-edit {
    display: flex;
    align-items: center;
    min-width: 0;
    height: 54px;
    min-height: 54px;
    margin: 0;
    padding: 0;
}

.native-input-wrap input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.native-input-wrap input[type="time"]::-webkit-datetime-edit-fields-wrapper {
    display: flex;
    align-items: center;
    min-width: 0;
    height: 54px;
    min-height: 54px;
    margin: 0;
    padding: 0;
}

.native-input-wrap input[type="date"]::-webkit-datetime-edit-day-field,
.native-input-wrap input[type="date"]::-webkit-datetime-edit-month-field,
.native-input-wrap input[type="date"]::-webkit-datetime-edit-year-field,
.native-input-wrap input[type="date"]::-webkit-datetime-edit-text,
.native-input-wrap input[type="time"]::-webkit-datetime-edit-hour-field,
.native-input-wrap input[type="time"]::-webkit-datetime-edit-minute-field,
.native-input-wrap input[type="time"]::-webkit-datetime-edit-text {
    margin: 0;
    padding: 0;
    line-height: 54px;
}

.input-placeholder {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 16px;
    line-height: 1;
    pointer-events: none;
    transition: opacity 0.12s ease;
}

.native-input-wrap.has-value .input-placeholder,
.native-input-wrap.is-focused .input-placeholder {
    opacity: 0;
}

.native-input-wrap:not(.has-value):not(.is-focused) input[type="date"]::-webkit-datetime-edit,
.native-input-wrap:not(.has-value):not(.is-focused) input[type="time"]::-webkit-datetime-edit {
    color: transparent;
}

.btn {
    width: 100%;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 13px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-2);
}

.btn-ghost {
    margin-top: 10px;
    background: transparent;
    border-color: var(--line);
    color: #d2d2d2;
}

.btn-disabled {
    background: #242424;
    color: #777;
    cursor: default;
}

.alert,
.notice {
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    line-height: 1.45;
}

.alert-error {
    background: #2a1111;
    border-color: #5a2222;
}

.alert-info {
    background: #10202b;
    border-color: #22475f;
}

.notice {
    margin-top: 14px;
    color: var(--muted);
}

.status-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #d8d8d8;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.11em;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 5px rgba(69, 212, 131, 0.09);
}

.status-indicator {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
    background: #555;
}

.status-indicator--aktiv {
    background: var(--ok);
    box-shadow: 0 0 0 4px rgba(69, 212, 131, 0.08);
}

.status-indicator--geschlossen {
    background: #7d7d7d;
}

.status-indicator--bestellschluss {
    background: var(--warn);
}

.tour-grid,
.tour-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.tour-mini,
.tour-choice {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #0b0b0b;
}

.tour-mini {
    display: grid;
    gap: 3px;
}

.tour-mini span,
.tour-mini small {
    color: var(--muted);
    font-size: 11px;
}

.tour-mini strong {
    font-size: 25px;
}

.tour-choice {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    letter-spacing: 0.07em;
}

.tour-list {
    display: grid;
    gap: 14px;
    margin: 14px 0;
}

.tour-card {
    display: grid;
    min-width: 0;
    gap: 14px;
}

.share-row {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) 46px 46px;
    gap: 8px;
    align-items: center;
}

.share-link-input {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 46px;
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid #333;
    border-radius: 11px;
    background: #0b0b0b;
    color: #aaa;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: text;
}

.share-link-input:focus {
    border-color: #666;
    color: var(--text);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.share-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin: 0;
    padding: 0;
    border: 1px solid #333;
    border-radius: 11px;
    background: #0b0b0b;
    color: #d7d7d7;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.share-action:hover {
    background: #161616;
    border-color: #555;
    color: #fff;
}

.share-action:active {
    transform: scale(0.95);
}

.share-action svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.share-action.is-success {
    border-color: var(--ok);
    color: var(--ok);
}

.order-overview-card {
    overflow: hidden;
}

.public-tour-status-list,
.tour-select-list,
.manage-tour-list {
    display: grid;
    gap: 10px;
    margin: 20px 0;
}

.public-tour-status-row,
.tour-select-row,
.manage-tour-row {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #0b0b0b;
}

.public-tour-status-row > div,
.tour-select-row > div,
.manage-tour-main {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.public-tour-status-row strong,
.tour-select-row strong,
.manage-tour-title strong {
    font-size: 15px;
}

.public-tour-status-row span,
.tour-select-row span,
.manage-tour-meta {
    color: var(--muted);
    font-size: 12px;
}

.tour-select-row,
.manage-tour-row {
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.tour-select-row:hover,
.manage-tour-row:hover {
    border-color: #444;
    background: #121212;
}

.tour-select-row:active,
.manage-tour-row:active {
    transform: scale(0.99);
}


/* =========================================================
   TOUR STATUS // WACHENANSICHT
   ========================================================= */

.tour-status-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.tour-status-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #555;
}

.tour-select-row--aktiv {
    border-color: rgba(69, 212, 131, 0.42);
    background:
        linear-gradient(
            90deg,
            rgba(69, 212, 131, 0.075),
            rgba(69, 212, 131, 0.015)
        ),
        #0b0b0b;
    box-shadow:
        inset 3px 0 0 rgba(69, 212, 131, 0.85);
}

.tour-select-row--aktiv:hover {
    border-color: rgba(69, 212, 131, 0.62);
    background:
        linear-gradient(
            90deg,
            rgba(69, 212, 131, 0.11),
            rgba(69, 212, 131, 0.025)
        ),
        #101210;
}

.tour-select-row--aktiv .tour-status-label {
    color: #78e5a6;
}

.tour-select-row--aktiv .tour-status-dot {
    background: var(--ok);
    box-shadow:
        0 0 0 4px rgba(69, 212, 131, 0.09);
}

.tour-select-row--bestellschluss {
    border-color: rgba(240, 185, 74, 0.32);
}

.tour-select-row--bestellschluss .tour-status-label {
    color: #f2c76d;
}

.tour-select-row--bestellschluss .tour-status-dot {
    background: var(--warn);
}

.tour-select-row--geschlossen {
    opacity: 0.72;
}

.tour-select-row--geschlossen .tour-status-dot {
    background: #858585;
}

.tour-select-row svg,
.row-arrow {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    fill: none;
    stroke: #7a7a7a;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.manage-head {
    margin-bottom: 18px;
}

.manage-deadline {
    display: grid;
    gap: 4px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.manage-deadline span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.manage-deadline strong {
    font-size: 16px;
}

.manage-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.summary-tile {
    min-width: 0;
    display: grid;
    gap: 5px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #0b0b0b;
}

.summary-tile span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.summary-tile strong {
    font-size: 27px;
    line-height: 1;
}

.compact-share-card {
    margin-bottom: 28px;
}

.compact-card-head h2 {
    margin-bottom: 14px;
}

.section-block {
    margin-top: 28px;
}

.section-heading {
    margin-bottom: 12px;
}

.section-heading h2 {
    margin-bottom: 0;
}

.manage-tour-list {
    margin-top: 0;
}

.manage-tour-row {
    padding: 17px 16px;
}

.manage-tour-title {
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border: 1px solid #343434;
    border-radius: 999px;
    background: #151515;
    color: #aaa;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.status-pill--aktiv {
    border-color: rgba(69, 212, 131, 0.28);
    background: rgba(69, 212, 131, 0.08);
    color: #78e5a6;
}

.status-pill--bestellschluss {
    border-color: rgba(240, 185, 74, 0.28);
    background: rgba(240, 185, 74, 0.08);
    color: #f2c76d;
}

.status-pill--geschlossen {
    color: #c1c1c1;
}

.back-link {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.15s ease;
}

.back-link:hover,
.back-link:focus-visible {
    color: #fff;
}

.back-link svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tour-head-status {
    margin-top: 16px;
}

.responsibility-card {
    margin-top: 14px;
}

.manager-invite-box {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.manager-invite-box > span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.footer {
    padding: 22px 0 30px;
    border-top: 1px solid var(--line);
    color: #666;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-align: center;
}

@media (min-width: 520px) {
    .field-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .manage-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 760px) {
    .app-shell {
        padding-right: 28px;
        padding-left: 28px;
    }

    .content {
        padding-top: 44px;
    }

    .hero-card {
        max-width: 560px;
        margin: 10vh auto 0;
        padding: 32px;
    }

    .tour-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .tour-choice-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .tour-card {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
        align-items: center;
    }

    .manage-summary {
        max-width: 680px;
    }

    .manage-tour-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   KOORDINATOR / ERSTELLUNG
   ========================================================= */

.form-section-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.form-section-label--spaced {
    margin-top: 8px;
}

.form-section-label span {
    color: #d8d8d8;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.form-section-label small {
    color: var(--muted);
    font-size: 11px;
}

.coordinator-info {
    display: grid;
    gap: 5px;
    padding: 15px 16px;
    border: 1px solid #343434;
    border-radius: 13px;
    background: #0b0b0b;
}

.coordinator-info strong {
    font-size: 14px;
}

.coordinator-info span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.coordinator-created-card {
    display: grid;
    gap: 18px;
}

.critical-notice {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 13px;
    padding: 16px;
    border: 1px solid rgba(240, 185, 74, 0.42);
    border-radius: 14px;
    background: rgba(240, 185, 74, 0.08);
}

.critical-notice__icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--warn);
}

.critical-notice__icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.critical-notice strong {
    display: block;
    margin-bottom: 7px;
    color: #fff;
    font-size: 14px;
}

.critical-notice p {
    margin: 0 0 7px;
    color: #c8c8c8;
    font-size: 13px;
    line-height: 1.5;
}

.critical-notice p:last-child {
    margin-bottom: 0;
}

.management-access-block {
    display: grid;
    gap: 9px;
}

.save-access-confirmation {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: start;
    gap: 11px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #0b0b0b;
    color: #d8d8d8;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: 0;
    cursor: pointer;
}

.save-access-confirmation input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--accent);
}

.btn:disabled {
    background: #242424;
    border-color: #242424;
    color: #737373;
    cursor: not-allowed;
}

.coordinator-strip {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3px 12px;
    margin-top: 18px;
    padding: 14px 15px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #0b0b0b;
}

.coordinator-strip span {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.coordinator-strip strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.coordinator-strip small {
    align-self: center;
    color: var(--muted);
    font-size: 12px;
}


.order-overview-hint {
    margin: -2px 0 18px;
    max-width: 720px;
    color: #cfcfcf;
    font-size: 13px;
    line-height: 1.55;
}

/* =========================================================
   WACHENZUGANG // ACCORDION
   ========================================================= */

.wache-access-card {
    width: 100%;
    margin-top: 14px;
    overflow: hidden;
    border: 1px solid #303030;
    border-radius: var(--radius);
    background: #121212;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.16),
        inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.wache-access-card[open] {
    border-color: #454545;
}

.wache-access-summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: 70px;
    padding: 22px;
    background: #191919;
    color: #dedede;
    cursor: pointer;
    user-select: none;
}

.wache-access-summary::-webkit-details-marker {
    display: none;
}

.wache-access-summary span {
    display: grid;
    gap: 3px;
}

.wache-access-summary small {
    color: #858585;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.wache-access-summary strong {
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -0.015em;
}

.wache-access-chevron {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.18s ease;
}

.wache-access-card[open] .wache-access-chevron {
    transform: rotate(180deg);
}

.wache-access-content {
    display: grid;
    gap: 9px;
    padding: 22px;
    background:
        #111;
}

.wache-access-label {
    display: block;
    color: #8f8f8f;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.wache-access-label--code {
    margin-top: 8px;
}

.wache-access-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px 42px;
    gap: 7px;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.wache-access-value {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #303030;
    border-radius: 11px;
    background: #090909;
    color: #c8c8c8;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    outline: none;
    cursor: text;
}

.wache-access-value:focus {
    border-color: #5c5c5c;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.wache-access-value--code {
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.wache-access-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid #343434;
    border-radius: 11px;
    background: #0c0c0c;
    color: #d2d2d2;
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        color 0.15s ease,
        transform 0.1s ease;
}

.wache-access-action:hover {
    border-color: #575757;
    background: #171717;
    color: #fff;
}

.wache-access-action:active {
    transform: scale(0.94);
}

.wache-access-action:disabled {
    opacity: 0.35;
    cursor: default;
}

.wache-access-action svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wache-access-action.is-success {
    border-color: rgba(69, 212, 131, 0.62);
    color: var(--ok);
}

@media (max-width: 390px) {
    .wache-access-summary {
        min-height: 70px;
        padding: 22px;
        background: #191919;
        color: #dedede;
    }

    .wache-access-content {
        padding: 22px;
        background: #111;
    }

    .wache-access-row {
        grid-template-columns: minmax(0, 1fr) 39px 39px;
        gap: 6px;
    }

    .wache-access-action {
        width: 39px;
        height: 44px;
    }

    .wache-access-value {
        padding: 0 10px;
        font-size: 10px;
    }

    .wache-access-value--code {
        font-size: 12px;
    }
}


/* FIREWEAR brand logo -------------------------------------------------- */
.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand-logo {
    display: block;
    width: auto;
    height: 30px;
    max-width: min(190px, 52vw);
}

@media (max-width: 640px) {
    .brand-logo {
        height: 27px;
        max-width: 48vw;
    }
}


/* =========================================================
   LANDING LOGIN
   ========================================================= */

body.landing-login .app-shell {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

body.landing-login .topbar,
body.landing-login .footer {
    display: none;
}

body.landing-login .content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
}

.login-card {
    width: min(100%, 430px);
    padding: 28px 22px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(180deg, #141414, #0e0e0e);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.login-card__brand {
    margin-bottom: 26px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.login-card__head {
    margin-bottom: 24px;
}

.login-card__head h1 {
    margin-bottom: 8px;
    font-size: clamp(30px, 8vw, 42px);
    line-height: 1;
}

.login-card__head .muted {
    margin-bottom: 0;
    font-size: 14px;
}

.login-card .alert {
    margin-bottom: 18px;
}

@media (min-width: 760px) {
    .login-card {
        padding: 34px;
    }
}

/* =========================================================
   LANDING LOGIN // SYSTEM V2
   ========================================================= */

body.landing-login--system {
    position: relative;
    min-height: 100svh;
    background:
        radial-gradient(circle at 50% 42%, rgba(255, 59, 48, 0.075), transparent 34%),
        #070707;
}

body.landing-login--system::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at center, #000 0%, rgba(0,0,0,.85) 38%, transparent 82%);
}

body.landing-login--system::after {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: linear-gradient(
        180deg,
        transparent,
        rgba(255, 59, 48, 0.08) 26%,
        rgba(255, 59, 48, 0.18) 50%,
        rgba(255, 59, 48, 0.08) 74%,
        transparent
    );
    pointer-events: none;
}

body.landing-login--system .app-shell {
    position: relative;
    z-index: 1;
}

body.landing-login--system .content {
    padding: 28px 0;
}

.system-access {
    position: relative;
    width: min(100%, 520px);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.095);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(22, 22, 22, 0.98), rgba(11, 11, 11, 0.98));
    box-shadow:
        0 32px 90px rgba(0, 0, 0, 0.52),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
    overflow: hidden;
}

.system-access::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    width: 78px;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 22px rgba(255, 59, 48, 0.35);
}

.system-access::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 86px;
    height: 86px;
    border-top: 1px solid rgba(255, 59, 48, 0.11);
    border-right: 1px solid rgba(255, 59, 48, 0.11);
    border-radius: 0 22px 0 86px;
    pointer-events: none;
}

.system-access__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin-bottom: 28px;
    color: #666;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.system-access__status-dot {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.07);
}

.system-access__meta-line {
    height: 1px;
    flex: 1;
    min-width: 24px;
    background: rgba(255, 255, 255, 0.08);
}

.system-access__brand {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 7px 10px;
    margin-bottom: 38px;
}

.system-access__brand-fire {
    color: var(--accent);
    font-size: clamp(29px, 9vw, 44px);
    font-weight: 950;
    line-height: 0.92;
    letter-spacing: -0.055em;
}

.system-access__brand-system {
    color: #f4f4f4;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: clamp(10px, 2.6vw, 12px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.system-access__intro {
    margin-bottom: 25px;
}

.system-access__intro h1 {
    margin: 0 0 9px;
    color: #f8f8f8;
    font-size: clamp(28px, 7vw, 38px);
    font-weight: 850;
    line-height: 1;
    letter-spacing: -0.045em;
}

.system-access__intro p {
    max-width: 390px;
    margin: 0;
    color: #8d8d8d;
    font-size: 13px;
    line-height: 1.55;
}

.system-access__alert {
    margin-bottom: 18px;
}

.system-access__form {
    display: grid;
    gap: 12px;
}

.system-access__field {
    position: relative;
}

.system-access__field label {
    display: block;
    margin-bottom: 8px;
    color: #777;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.system-access__field input[type="text"] {
    width: 100%;
    height: 62px;
    min-height: 62px;
    padding: 0 16px 15px;
    border: 1px solid #2c2c2c;
    border-radius: 13px;
    background: #080808;
    color: #fff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    outline: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

.system-access__field input[type="text"]:focus {
    border-color: rgba(255, 59, 48, 0.72);
    background: #0b0909;
    box-shadow:
        0 0 0 3px rgba(255, 59, 48, 0.07),
        0 10px 30px rgba(0, 0, 0, 0.22);
}

.system-access__field-hint {
    position: absolute;
    left: 17px;
    bottom: 8px;
    color: #4e4e4e;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.12em;
    pointer-events: none;
}

.system-access__submit {
    width: 100%;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 17px 0 18px;
    border: 1px solid var(--accent);
    border-radius: 13px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        transform 0.1s ease,
        box-shadow 0.15s ease;
}

.system-access__submit:hover {
    background: #ff4a40;
    border-color: #ff4a40;
    box-shadow: 0 12px 28px rgba(255, 59, 48, 0.16);
}

.system-access__submit:active {
    transform: translateY(1px);
}

.system-access__submit svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.system-access__footerline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 26px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
    color: #454545;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

@media (max-width: 390px) {
    .system-access {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .system-access::before {
        left: 18px;
    }

    .system-access__brand {
        display: grid;
        gap: 9px;
        margin-bottom: 32px;
    }

    .system-access__brand-system {
        white-space: normal;
    }

    .system-access__footerline {
        font-size: 7px;
    }
}

@media (min-width: 760px) {
    body.landing-login--system .content {
        padding: 42px 0;
    }

    .system-access {
        padding: 32px;
    }

    .system-access::before {
        left: 32px;
        width: 92px;
    }
}

/* =========================================================
   FIREWEAR HOME // ACCESS
   ========================================================= */

body.home-access-page {
    background:
        radial-gradient(circle at 72% 38%, rgba(255, 59, 48, 0.055), transparent 28%),
        var(--bg);
}

body.home-access-page .content {
    min-height: calc(100svh - 145px);
    display: flex;
    align-items: center;
    padding-top: 34px;
    padding-bottom: 42px;
}

.home-access-stage {
    position: relative;
    width: 100%;
    display: grid;
    gap: 28px;
    padding: 30px 0 12px;
    isolation: isolate;
}

.home-access-stage::before {
    content: "";
    position: absolute;
    z-index: -2;
    top: -110px;
    right: -22%;
    width: min(660px, 78vw);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 59, 48, 0.095) 0%, rgba(255, 59, 48, 0.035) 37%, transparent 70%);
    filter: blur(2px);
    pointer-events: none;
}

.home-access-stage::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -32px -18px;
    opacity: 0.18;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.78) 62%, transparent 100%);
}

.home-access-copy {
    align-self: center;
}

.home-access-kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin-bottom: 24px;
    color: #6f6f6f;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.home-access-status-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.08), 0 0 18px rgba(255, 59, 48, 0.25);
}

.home-access-kicker-line {
    width: 30px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.home-access-copy h1 {
    max-width: 620px;
    margin-bottom: 18px;
    font-size: clamp(42px, 13vw, 72px);
    line-height: 0.94;
}

.home-access-copy h1 span {
    color: var(--accent);
}

.home-access-copy > p {
    max-width: 570px;
    margin-bottom: 22px;
    color: #929292;
    font-size: 14px;
    line-height: 1.65;
}

.home-access-features {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.home-access-features span {
    padding: 7px 9px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.018);
    color: #6f6f6f;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.home-access-card {
    position: relative;
    width: 100%;
    padding: 23px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.095);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(19, 19, 19, 0.97), rgba(10, 10, 10, 0.985));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.home-access-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 23px;
    width: 74px;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 20px rgba(255, 59, 48, 0.35);
}

.home-access-card__head {
    margin-bottom: 22px;
}

.home-access-card__eyebrow {
    display: block;
    margin-bottom: 18px;
    color: var(--accent);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.home-access-card__head h2 {
    margin-bottom: 7px;
    color: #f7f7f7;
    font-size: clamp(28px, 8vw, 36px);
    line-height: 1;
}

.home-access-card__head p {
    margin: 0;
    color: #828282;
    font-size: 13px;
    line-height: 1.5;
}

.home-access-card__alert {
    margin-bottom: 17px;
}

.home-access-form {
    display: grid;
    gap: 12px;
}

.home-access-field {
    display: grid;
    gap: 8px;
}

.home-access-field > span {
    color: #777;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.home-access-field input {
    width: 100%;
    min-height: 58px;
    padding: 0 16px;
    border: 1px solid #2b2b2b;
    border-radius: 11px;
    background: #080808;
    color: #fff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 18px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.home-access-field input:focus {
    border-color: rgba(255, 59, 48, 0.72);
    background: #0b0909;
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.07);
}

.home-access-submit {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 16px 0 18px;
    border: 1px solid var(--accent);
    border-radius: 11px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .1s ease, background .15s ease, box-shadow .15s ease;
}

.home-access-submit:hover {
    background: #ff4a40;
    box-shadow: 0 12px 28px rgba(255, 59, 48, 0.15);
}

.home-access-submit:active {
    transform: translateY(1px);
}

.home-access-submit svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-access-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
    padding-top: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
    color: #4a4a4a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

@media (max-width: 420px) {
    body.home-access-page .content {
        min-height: auto;
        align-items: flex-start;
        padding-top: 26px;
        padding-bottom: 38px;
    }

    .home-access-stage {
        gap: 24px;
        padding-top: 12px;
    }

    .home-access-stage::before {
        top: 70px;
        right: -52%;
        width: 520px;
    }

    .home-access-copy h1 {
        font-size: clamp(42px, 13.2vw, 58px);
    }

    .home-access-copy > p {
        font-size: 13px;
    }

    .home-access-card {
        padding: 21px 18px;
        border-radius: 16px;
    }

    .home-access-card::before {
        left: 18px;
    }

    .home-access-card__foot {
        font-size: 6.5px;
    }
}

@media (min-width: 760px) {
    body.home-access-page .content {
        min-height: calc(100svh - 165px);
        padding-top: 50px;
        padding-bottom: 58px;
    }

    .home-access-stage {
        grid-template-columns: minmax(0, 1.2fr) minmax(360px, 430px);
        align-items: center;
        gap: clamp(48px, 8vw, 96px);
        padding: 40px 0 28px;
    }

    .home-access-copy h1 {
        font-size: clamp(54px, 6.4vw, 78px);
    }

    .home-access-copy > p {
        font-size: 15px;
    }

    .home-access-card {
        padding: 28px;
        border-radius: 20px;
    }

    .home-access-card::before {
        left: 28px;
        width: 88px;
    }
}

/* =========================================================
   MOBILE FULL-BLEED GLOW + TOPBAR SPACING FIX
   ========================================================= */
.topbar {
    gap: 24px;
}

.topbar > .eyebrow {
    flex: 0 1 auto;
    margin-left: auto;
    text-align: right;
    line-height: 1.35;
    white-space: normal;
}

@media (max-width: 640px) {
    .topbar {
        gap: 18px;
    }

    .topbar > .eyebrow {
        max-width: 128px;
        font-size: 9px;
        letter-spacing: 0.12em;
    }

    .home-access-stage::before {
        top: -88px;
        left: 50%;
        right: auto;
        width: 100vw;
        height: 500px;
        aspect-ratio: auto;
        transform: translateX(-50%);
        border-radius: 0;
        background:
            radial-gradient(circle at 72% 32%, rgba(255, 59, 48, 0.13) 0%, rgba(255, 59, 48, 0.052) 27%, rgba(255, 59, 48, 0) 64%),
            radial-gradient(circle at 12% 62%, rgba(255, 59, 48, 0.035) 0%, rgba(255, 59, 48, 0) 46%);
        filter: none;
    }

    .home-access-stage::after {
        left: 50%;
        right: auto;
        width: 100vw;
        transform: translateX(-50%);
    }
}

/* =========================================================
   HOME GLOW — FINAL EDGE-SAFE OVERRIDE
   ========================================================= */
body.home-access-page {
    background: var(--bg);
}

.home-access-stage::before {
    top: 0;
    bottom: 0;
    left: 50%;
    right: auto;
    width: 120vw;
    height: auto;
    aspect-ratio: auto;
    transform: translateX(-50%);
    border-radius: 0;
    filter: none;
    background: radial-gradient(
        ellipse 38% 66% at 71% 52%,
        rgba(255, 59, 48, 0.12) 0%,
        rgba(255, 59, 48, 0.055) 28%,
        rgba(255, 59, 48, 0.018) 52%,
        rgba(255, 59, 48, 0) 74%
    );
}

@media (max-width: 640px) {
    .home-access-stage::before {
        top: 0;
        bottom: auto;
        left: 50%;
        right: auto;
        width: 120vw;
        height: 420px;
        transform: translateX(-50%);
        background: radial-gradient(
            ellipse 58% 68% at 63% 40%,
            rgba(255, 59, 48, 0.13) 0%,
            rgba(255, 59, 48, 0.052) 30%,
            rgba(255, 59, 48, 0.016) 54%,
            rgba(255, 59, 48, 0) 76%
        );
    }

    .home-access-stage::after {
        top: 0;
        bottom: -32px;
    }
}

/* Wachenbereich: identische, dezente Farben auf Mobilgeraeten und Desktop. */
@media (max-width: 640px) {
    .wache-access-card {
        border-color: #303030;
        background: #121212;
    }
    .wache-access-card[open] { border-color: #454545; }
    .wache-access-summary { background: #191919; color: #dedede; }
    .wache-access-content { background: #111; }
    .wache-access-action {
        border-color: #343434;
        background: #0c0c0c;
        color: #d2d2d2;
    }
    .wache-access-action:hover {
        border-color: #575757;
        background: #171717;
        color: #fff;
    }
    /* Touch-Geraete behalten nach dem Tippen oft den Hover-Zustand.
       Das Kopier-Feedback muss diesen Zustand uebersteuern. */
    .wache-access-action.is-success,
    .wache-access-action.is-success:hover {
        border-color: rgba(69, 212, 131, 0.62);
        background: rgba(69, 212, 131, 0.12);
        color: var(--ok);
    }
}

/* Bestellabschluss: Einwilligungen */
.checkout-consent {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    column-gap: 12px;
    width: 100%;
    font-size: .9rem;
    font-weight: 400;
    letter-spacing: normal;
    line-height: 1.5;
    text-align: left;
    text-transform: none;
    cursor: pointer;
}
.checkout-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: #53bb83;
}
.checkout-consent__text {
    min-width: 0;
    font: inherit;
    font-weight: 400;
    letter-spacing: normal;
    line-height: inherit;
    text-align: left;
    overflow-wrap: break-word;
}

/* Datenschutzlink im Warenkorb und in der Einwilligung */
.checkout-privacy-link { color: #d9e8e0; text-decoration: underline; text-underline-offset: 3px; }
.checkout-privacy-link:hover { color: #fff; }
.cart-panel__privacy { padding: 12px 22px 18px; text-align: center; border-top: 1px solid rgba(255,255,255,.07); }
.cart-panel__privacy a { color: #999; font-size: .78rem; text-decoration: underline; text-underline-offset: 3px; }
.cart-panel__privacy a:hover { color: #e2e2e2; }
/* Datenschutz-Platzhalter */
.privacy-shell { width: min(100%, 880px); margin: 0 auto; padding: 28px 0 56px; }
.privacy-back { margin-bottom: 28px; }
.privacy-hero { padding: clamp(24px, 5vw, 44px); border: 1px solid #343434; border-radius: 20px; background: linear-gradient(145deg, #1e1e1e, #121212); }
.privacy-hero h1 { margin: 10px 0 14px; }
.privacy-hero p:last-child { color: #aaa; line-height: 1.7; margin-bottom: 0; }
.privacy-placeholder { margin-top: 20px; padding: clamp(22px, 4vw, 34px); border: 1px solid #303030; border-radius: 18px; background: #171717; }
.privacy-placeholder h2 { margin-top: 0; }
.privacy-placeholder p { color: #b6b6b6; line-height: 1.7; }

/* Einheitliche Navigation auf Informationsseiten und im Footer */
.public-page-toolbar {
    display: flex;
    align-items: center;
    min-height: 17px;
    margin-bottom: 22px;
}
.public-page-toolbar .back-link { margin-bottom: 0; }
/* FIREWEAR Footer: schlichte Legal-Textlinks */
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.footer-legal a {
    display: inline;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: #888;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
    line-height: 1.5;
    text-decoration: none;
    text-transform: uppercase;
    transition: color .18s ease;
}
.footer-legal a:hover,
.footer-legal a:focus-visible {
    border: 0;
    background: none;
    color: #f2f2f2;
    text-decoration: none;
}
.footer-legal a:focus-visible {
    outline: 2px solid #777;
    outline-offset: 4px;
}


/* Elektronische Widerrufsfunktion dauerhaft gut auffindbar im Legal-Footer. */
.footer-legal a.footer-withdrawal-link {
    color: var(--accent, #ff3131);
    font-weight: 800;
}

.footer-legal a.footer-withdrawal-link:hover,
.footer-legal a.footer-withdrawal-link:focus-visible {
    color: #fff;
}

/* FIREWEAR 1.0: Zweistufiger Footer auf den Shop- und Infoseiten.
   Einladungs-Startseite (ohne .footer--shop) bleibt unverändert. */
.footer--shop {
    padding-top: 22px;
    padding-bottom: 26px;
}

.footer--shop .footer-legal {
    gap: 10px 22px;
    margin: 0;
    padding: 0 0 19px;
}

.footer--shop .footer-legal a {
    color: #999;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .10em;
    white-space: nowrap;
}

.footer--shop .footer-legal a:hover,
.footer--shop .footer-legal a:focus-visible {
    color: #fff;
}

.footer--shop .footer-mobile-break {
    display: none;
}

.footer--shop .footer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 24px;
    color: #888;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .10em;
    line-height: 1.6;
    text-align: left;
}

.footer--shop .footer-legal + .footer-meta {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding-top: 19px;
}

.footer--shop .footer-system,
.footer--shop .footer-powered {
    display: inline-block;
}

.footer--shop .footer-system {
    color: #aaa;
}

.footer--shop .footer-system-label {
    color: #666;
    font-weight: 600;
}

.footer--shop .footer-powered {
    color: #888;
}

.footer--shop .footer-meta-separator {
    padding: 0 4px;
    color: var(--accent);
}

.footer--shop .footer-version {
    color: #999;
    font-weight: 600;
    letter-spacing: .06em;
    white-space: nowrap;
}

@media (max-width: 620px) {
    .footer--shop {
        padding-top: 21px;
        padding-bottom: 25px;
    }

    .footer--shop .footer-legal {
        gap: 4px 19px;
        padding-bottom: 18px;
    }

    .footer--shop .footer-mobile-break {
        display: block;
        flex-basis: 100%;
        height: 0;
    }

    .footer--shop .footer-legal a {
        font-size: 10px;
        letter-spacing: .07em;
    }

    .footer--shop .footer-meta {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
        font-size: 9px;
        text-align: center;
    }

    .footer--shop .footer-legal + .footer-meta {
        padding-top: 17px;
    }

    .footer--shop .footer-system {
        letter-spacing: .07em;
    }
}
