/* ==========================================================
   Puettage-Helferplan 2026 – Haupt-Stylesheet (v2, modernisiert)
   ==========================================================
   Farbwelt: Rot nur noch als Akzent. Ueberschriften in Anthrazit,
   weichere Schatten, mehr Whitespace, moderner Systemfont-Stack.
   Mobile-first, Breakpoint 720px fuer 3-spaltigen Plan.
   ========================================================== */

:root {
    /* Rot – nur noch als Akzent */
    --color-primary:        #C8102E;
    --color-primary-dark:   #A00C24;
    --color-primary-deeper: #7A0918;   /* fuer Header-Gradient-Endpunkt */
    --color-primary-hover:  #B00E28;
    --color-primary-soft:   #FBE9EC;   /* Hover-/Highlight-Hintergrund */
    --color-gold:           #C9A24B;   /* Zierakzent, klassisch */

    /* Titel-Schrift (System-Serif fuer klassischen Vereinseindruck) */
    --font-title: Georgia, 'Palatino Linotype', Palatino, 'Times New Roman', serif;

    /* Neutralen mit klarer Skala */
    --color-bg:             #F7F7F8;   /* Seitenhintergrund */
    --color-surface:        #FFFFFF;   /* Karten */
    --color-surface-alt:    #F1F2F4;   /* subtile Sekundaerflaeche */
    --color-text:           #0F172A;   /* Slate 900 – Anthrazit */
    --color-text-strong:    #020617;
    --color-text-muted:     #64748B;   /* Slate 500 */
    --color-text-subtle:    #94A3B8;   /* Slate 400 */
    --color-border:         #E2E8F0;   /* Slate 200 */
    --color-border-strong:  #CBD5E1;   /* Slate 300 */
    --color-success:        #16A34A;
    --color-success-soft:   #DCFCE7;
    --color-warning:        #D97706;
    --color-danger:         #DC2626;
    --color-danger-soft:    #FEE2E2;

    /* Typo */
    --font-body:
        -apple-system, BlinkMacSystemFont,
        'Inter', 'Segoe UI Variable', 'Segoe UI',
        system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --fs-xs:  0.8125rem;
    --fs-sm:  0.9375rem;
    --fs-md:  1rem;
    --fs-lg:  1.125rem;
    --fs-xl:  1.375rem;
    --fs-2xl: 1.75rem;
    --fs-3xl: 2.25rem;

    --lh-tight: 1.2;
    --lh-body:  1.55;

    /* Layout */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-pill: 999px;

    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 24px 48px rgba(15, 23, 42, 0.18);

    --max-w:    1120px;

    --gap-xs: 0.5rem;
    --gap-sm: 0.75rem;
    --gap-md: 1rem;
    --gap-lg: 1.5rem;
    --gap-xl: 2rem;

    --focus-ring: 0 0 0 3px rgba(200, 16, 46, 0.25);
}

/* --------------------------------------------------------
   Passwort-Gate (client-seitige „Insider-Schwelle")
   -------------------------------------------------------- */

.gate {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background:
        radial-gradient(circle at 20% 20%, rgba(200, 16, 46, 0.12), transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(200, 16, 46, 0.08), transparent 45%),
        #F7F7F8;
}

.gate[hidden] { display: none !important; }

.gate__panel {
    width: 100%;
    max-width: 420px;
    background: #FFFFFF;
    border-radius: 18px;
    padding: 2rem 1.75rem 1.5rem;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.15);
    text-align: center;
}

.gate__logo {
    width: 112px;
    height: 112px;
    margin: 0 auto 1rem;
    display: block;
    background: #FFFFFF;
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.gate__title {
    font-size: 1.5rem;
    color: #0F172A;
    margin: 0 0 0.4rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.gate__lead {
    color: #64748B;
    margin: 0 0 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.gate__form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.gate__form input[type='password'] {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    text-align: center;
    color: #0F172A;
    background: #F1F2F4;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    min-height: 48px;
    letter-spacing: 0.05em;
}

.gate__form input[type='password']:focus {
    outline: none;
    border-color: #C8102E;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15);
}

.gate__error {
    color: #DC2626;
    font-size: 0.875rem;
    background: #FEE2E2;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    text-align: center;
}
.gate__error[hidden] { display: none !important; }

.gate__request {
    text-align: left;
    margin-bottom: 1rem;
    border-top: 1px solid #E2E8F0;
    padding-top: 1rem;
}

.gate__request summary {
    cursor: pointer;
    color: #64748B;
    font-size: 0.9rem;
    padding: 0.35rem 0;
    text-align: center;
    list-style: none;
    transition: color 0.15s;
}
.gate__request summary::-webkit-details-marker { display: none; }
.gate__request summary::before {
    content: '›';
    display: inline-block;
    margin-right: 0.4rem;
    transition: transform 0.2s;
    font-weight: 600;
}
.gate__request[open] summary::before { transform: rotate(90deg); }
.gate__request summary:hover { color: #A00C24; }

.gate__form--request { margin-top: 0.75rem; }

.gate__form--request input[type='email'],
.gate__form--request input[type='text'] {
    width: 100%;
    padding: 0.75rem 0.9rem;
    font-size: 0.9375rem;
    color: #0F172A;
    background: #F1F2F4;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    min-height: 44px;
}

.gate__form--request input:focus {
    outline: none;
    border-color: #C8102E;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15);
}

.gate__request-lead {
    font-size: 0.875rem;
    color: #64748B;
    margin: 0 0 0.25rem;
    text-align: left;
}

.gate__hint {
    font-size: 0.75rem;
    color: #94A3B8;
    text-align: center;
    margin: 0.25rem 0 0;
}
.gate__hint a { color: #64748B; }

.gate__legal {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #E2E8F0;
    font-size: 0.8125rem;
}

.gate__legal a {
    color: #64748B;
    text-decoration: none;
}
.gate__legal a:hover {
    color: #A00C24;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.app[hidden] { display: none !important; }

/* --------------------------------------------------------
   Basis
   -------------------------------------------------------- */

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: var(--fs-md);
    line-height: var(--lh-body);
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
    color: var(--color-text-strong);
    line-height: var(--lh-tight);
    letter-spacing: -0.01em;
    margin: 0 0 0.4em;
    font-weight: 700;
}
h1 { font-size: clamp(1.75rem, 3.5vw, var(--fs-3xl)); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }
p  { margin: 0 0 0.75em; }

a  { color: var(--color-primary-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--color-primary); }

button { cursor: pointer; }

*:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }

/* Fuer dynamische Texte aus site_content: Absaetze bleiben erhalten */
[data-content] { white-space: pre-line; }

.container {
    width: 100%;
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: clamp(1rem, 3vw, 2rem);
}

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------
   Kopf
   -------------------------------------------------------- */

.site-header {
    background:
        radial-gradient(ellipse at top left, rgba(255,255,255,0.08) 0%, transparent 55%),
        linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-dark) 55%, var(--color-primary-deeper) 100%);
    color: #fff;
    padding: 1.75rem 0 1.5rem;
    box-shadow: 0 4px 16px rgba(122, 9, 24, 0.15);
    border-bottom: 3px double var(--color-gold);
    position: relative;
}

.site-header::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -3px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    opacity: 0.6;
}

.site-header .container {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.site-header__text {
    flex: 1;
    min-width: 0;
}

.site-header__admin {
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 0.15rem;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-gold);
    opacity: 0.55;
    text-decoration: none;
    padding: 0.35rem 0.6rem;
    border: 1px solid rgba(201, 162, 75, 0.35);
    border-radius: var(--radius-pill);
    transition: opacity 0.15s, background 0.15s, color 0.15s;
    white-space: nowrap;
}

.site-header__admin:hover,
.site-header__admin:focus-visible {
    opacity: 1;
    color: var(--color-gold);
    background: rgba(201, 162, 75, 0.12);
    border-color: rgba(201, 162, 75, 0.7);
}

@media (max-width: 520px) {
    /* Mobile: Admin-Button oben rechts in eigener Zeile,
       damit Titel darunter die volle Breite bekommt. */
    .site-header .container {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        column-gap: 0.9rem;
        row-gap: 0.4rem;
    }
    .site-header__logo {
        grid-row: 2;
        grid-column: 1;
    }
    .site-header__text {
        grid-row: 2;
        grid-column: 2;
        min-width: 0;
    }
    .site-header__admin {
        grid-row: 1;
        grid-column: 1 / -1;
        justify-self: end;
        align-self: flex-start;
        margin: 0;
        font-size: 0.65rem;
        padding: 0.2rem 0.55rem;
        letter-spacing: 0.08em;
    }
}

.site-header__logo {
    width: 96px;
    height: 96px;
    flex-shrink: 0;
    background: #FFFFFF;
    border-radius: 50%;
    padding: 6px;
    box-shadow:
        0 0 0 2px var(--color-gold),
        0 4px 12px rgba(0, 0, 0, 0.25);
}

@media (max-width: 520px) {
    .site-header { padding: 1.25rem 0 1.1rem; }
    .site-header__logo { width: 68px; height: 68px; padding: 4px; }
}

.site-header__title {
    font-family: var(--font-title);
    font-size: clamp(1.15rem, 3.5vw, 1.55rem);
    font-weight: 700;
    letter-spacing: 0.005em;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.site-header__subtitle {
    font-size: var(--fs-xs);
    margin-top: 0.35em;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-gold);
    font-weight: 500;
}

/* --------------------------------------------------------
   Hero + Plan-Erklaerung
   -------------------------------------------------------- */

.hero {
    padding: clamp(2rem, 5vw, 3.5rem) 0 1rem;
}

.hero h1 {
    color: var(--color-text-strong);
    margin-bottom: 0.6rem;
    max-width: 22ch;
}

.hero__body {
    font-size: var(--fs-lg);
    color: var(--color-text);
    max-width: 62ch;
    line-height: 1.55;
}

.plan-intro {
    padding: 0.5rem 0 1.25rem;
    color: var(--color-text-muted);
    max-width: 68ch;
    font-size: var(--fs-md);
}

/* --------------------------------------------------------
   Schichtplan
   -------------------------------------------------------- */

.plan { padding: 0.5rem 0 3.5rem; }

.plan__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gap-lg);
}

@media (min-width: 720px) {
    .plan__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--gap-md);
    }
}

.day {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.15rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
}

.day:hover { box-shadow: var(--shadow-md); }

.day__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: 0.6rem;
    margin-bottom: 0.35rem;
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

.day__header::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 34px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
}

.day__title {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--color-text-strong);
    letter-spacing: -0.01em;
}

.day__date {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    font-variant-numeric: tabular-nums;
}

/* Schicht-Zeile */
.shift {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.5rem 0.9rem;
    padding: 0.75rem 0.85rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: left;
    width: 100%;
    font: inherit;
    color: inherit;
    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        transform 0.15s ease,
        box-shadow 0.18s ease;
}

.shift:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-soft);
    box-shadow: var(--shadow-xs);
    transform: translateY(-1px);
}

.shift__time {
    font-weight: 600;
    font-size: var(--fs-md);
    color: var(--color-text-strong);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

.shift__status {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    white-space: nowrap;
    justify-self: end;
    font-variant-numeric: tabular-nums;
    background: var(--color-surface-alt);
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-pill);
}

.shift__slots {
    grid-column: 1 / -1;
    display: flex;
    gap: 5px;
    margin-top: 0.2rem;
}

.slot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid var(--color-border-strong);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.slot--filled {
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.12);
}

.slot--buffer {
    border-style: dashed;
    border-color: var(--color-border-strong);
    opacity: 0.75;
}
.slot--buffer.slot--filled {
    background: var(--color-warning);
    border-color: var(--color-warning);
    border-style: solid;
    box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.15);
    opacity: 1;
}

.shift__names {
    grid-column: 1 / -1;
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    margin-top: 0.15rem;
    line-height: 1.4;
}

/* Voll belegte Schicht: gedaempft, nicht klickbar */
.shift[disabled],
.shift[aria-disabled='true'] {
    cursor: not-allowed;
    opacity: 0.55;
    background: var(--color-surface-alt);
}
.shift[disabled]:hover,
.shift[aria-disabled='true']:hover {
    border-color: var(--color-border);
    background: var(--color-surface-alt);
    box-shadow: none;
    transform: none;
}

/* Ladezustand */
.plan__loading {
    text-align: center;
    color: var(--color-text-muted);
    padding: 2rem 0;
    font-size: var(--fs-sm);
}

/* --------------------------------------------------------
   Kontakt-Alt (unter dem Plan)
   -------------------------------------------------------- */

.contact-alt {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin: 0 0 3rem;
    box-shadow: var(--shadow-sm);
    max-width: 62ch;
}

.contact-alt__title {
    font-size: var(--fs-lg);
    color: var(--color-text-strong);
    margin: 0 0 0.4rem;
}

.contact-alt__body {
    color: var(--color-text);
    white-space: pre-line;
    font-size: var(--fs-md);
    line-height: 1.7;
    margin: 0;
}

.contact-alt__body .wa-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #128C7E;                /* WhatsApp-Grün */
    text-decoration: none;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    padding: 0.1rem 0.55rem 0.1rem 0.3rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(18, 140, 126, 0.25);
    background: rgba(18, 140, 126, 0.08);
    transition: background 0.15s, border-color 0.15s;
}

.contact-alt__body .wa-link::before {
    content: '';
    width: 14px;
    height: 14px;
    background-color: #128C7E;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20.52 3.48A11.86 11.86 0 0012 0C5.37 0 0 5.37 0 12a11.9 11.9 0 001.64 6L0 24l6.16-1.6A11.9 11.9 0 0012 24c6.63 0 12-5.37 12-12 0-3.19-1.25-6.19-3.48-8.52zM12 21.8a9.79 9.79 0 01-4.99-1.36l-.36-.21-3.66.95.98-3.56-.23-.37A9.8 9.8 0 012.2 12C2.2 6.6 6.6 2.2 12 2.2 17.4 2.2 21.8 6.6 21.8 12 21.8 17.4 17.4 21.8 12 21.8zm5.36-7.36c-.29-.15-1.72-.85-1.99-.94-.27-.1-.46-.15-.66.15-.19.3-.75.94-.92 1.13-.17.19-.34.22-.63.07-.29-.15-1.24-.46-2.36-1.47-.87-.78-1.46-1.74-1.63-2.04-.17-.29-.02-.45.13-.6.13-.13.29-.34.44-.51.15-.17.19-.29.29-.48.1-.19.05-.36-.02-.51-.07-.15-.66-1.59-.9-2.18-.24-.57-.48-.5-.66-.51h-.57c-.19 0-.5.07-.76.36-.26.3-1 .98-1 2.4 0 1.42 1.03 2.79 1.17 2.98.14.19 2.03 3.1 4.92 4.35.69.3 1.22.48 1.63.61.68.22 1.31.19 1.8.12.55-.08 1.72-.7 1.96-1.38.24-.68.24-1.26.17-1.38-.07-.12-.26-.19-.55-.34z'/></svg>") no-repeat center / contain;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20.52 3.48A11.86 11.86 0 0012 0C5.37 0 0 5.37 0 12a11.9 11.9 0 001.64 6L0 24l6.16-1.6A11.9 11.9 0 0012 24c6.63 0 12-5.37 12-12 0-3.19-1.25-6.19-3.48-8.52zM12 21.8a9.79 9.79 0 01-4.99-1.36l-.36-.21-3.66.95.98-3.56-.23-.37A9.8 9.8 0 012.2 12C2.2 6.6 6.6 2.2 12 2.2 17.4 2.2 21.8 6.6 21.8 12 21.8 17.4 17.4 21.8 12 21.8zm5.36-7.36c-.29-.15-1.72-.85-1.99-.94-.27-.1-.46-.15-.66.15-.19.3-.75.94-.92 1.13-.17.19-.34.22-.63.07-.29-.15-1.24-.46-2.36-1.47-.87-.78-1.46-1.74-1.63-2.04-.17-.29-.02-.45.13-.6.13-.13.29-.34.44-.51.15-.17.19-.29.29-.48.1-.19.05-.36-.02-.51-.07-.15-.66-1.59-.9-2.18-.24-.57-.48-.5-.66-.51h-.57c-.19 0-.5.07-.76.36-.26.3-1 .98-1 2.4 0 1.42 1.03 2.79 1.17 2.98.14.19 2.03 3.1 4.92 4.35.69.3 1.22.48 1.63.61.68.22 1.31.19 1.8.12.55-.08 1.72-.7 1.96-1.38.24-.68.24-1.26.17-1.38-.07-.12-.26-.19-.55-.34z'/></svg>") no-repeat center / contain;
    flex-shrink: 0;
}

.contact-alt__body .wa-link:hover,
.contact-alt__body .wa-link:focus-visible {
    background: rgba(18, 140, 126, 0.16);
    border-color: rgba(18, 140, 126, 0.55);
    color: #0e6f64;
    outline: none;
}

/* --------------------------------------------------------
   Modal
   -------------------------------------------------------- */

.modal[hidden] { display: none !important; }

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}

.modal__panel {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 480px;
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    padding: 1.75rem 1.5rem 1.5rem;
    position: relative;
}

.modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--color-text-muted);
    transition: background 0.15s, color 0.15s;
}

.modal__close:hover { background: var(--color-surface-alt); color: var(--color-text); }

.modal__shift-info {
    background: var(--color-primary-soft);
    color: var(--color-primary-dark);
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: var(--fs-sm);
    letter-spacing: -0.01em;
}

.modal__body p {
    color: var(--color-text-muted);
    margin: 0.5rem 0 0;
}

.modal__actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.25rem;
}
.modal__actions .btn { flex: 1; }
@media (min-width: 480px) {
    .modal__actions .btn { flex: 0 1 auto; }
}

/* Bereits-eingetragen-Liste im Anmelde-Modal */
.modal__existing {
    margin: 0 0 1rem;
    padding: 0.75rem 0.9rem;
    background: var(--color-surface-alt);
    border-radius: var(--radius-md);
}
.modal__existing[hidden] { display: none !important; }

.modal__existing-title {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.modal__existing-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.modal__existing-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.3rem 0.15rem;
    font-size: var(--fs-sm);
    color: var(--color-text);
}

.modal__existing-list .name-anonym {
    color: var(--color-text-muted);
    font-style: italic;
}

.modal__existing-delete {
    background: transparent;
    border: 1px solid transparent;
    color: var(--color-text-muted);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.modal__existing-delete:hover {
    background: var(--color-danger-soft);
    color: var(--color-danger);
    border-color: rgba(220, 38, 38, 0.35);
}

/* --------------------------------------------------------
   Formular (im Modal)
   -------------------------------------------------------- */

.form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.form__honeypot {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.form__field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.form__label {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-text-strong);
}

.form__req { color: var(--color-primary); }

.form__hint {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

.form input[type='text'],
.form input[type='email'],
.form input[type='tel'] {
    width: 100%;
    padding: 0.6rem 0.75rem;
    font-size: var(--fs-md);
    color: var(--color-text-strong);
    background: var(--color-surface);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    transition: border-color 0.15s, box-shadow 0.15s;
    min-height: 44px;
}

.form input[type='text']:focus,
.form input[type='email']:focus,
.form input[type='tel']:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--focus-ring);
}

.form input[aria-invalid='true'] {
    border-color: var(--color-danger);
    background: var(--color-danger-soft);
}

.form__check {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: var(--fs-sm);
    color: var(--color-text);
    line-height: 1.4;
    cursor: pointer;
    padding: 0.25rem 0;
}

.form__check input[type='checkbox'] {
    width: 20px;
    height: 20px;
    margin-top: 0.1rem;
    accent-color: var(--color-primary);
    flex-shrink: 0;
    cursor: pointer;
}

.form__check a {
    color: var(--color-primary-dark);
    text-underline-offset: 3px;
}

.form__error {
    background: var(--color-danger-soft);
    color: var(--color-danger);
    border: 1px solid var(--color-danger);
    border-radius: var(--radius-md);
    padding: 0.6rem 0.85rem;
    font-size: var(--fs-sm);
    font-weight: 500;
}

.form__error[hidden] { display: none !important; }

.form__check--reminder {
    background: var(--color-primary-soft);
    border: 1px solid rgba(200, 16, 46, 0.25);
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-md);
    margin-top: -0.2rem;
}
.form__check--reminder[hidden] { display: none !important; }

/* Primaer-Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    font-size: var(--fs-md);
    font-weight: 600;
    line-height: 1;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    background: var(--color-surface-alt);
    color: var(--color-text-strong);
    cursor: pointer;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    min-height: 44px;
}

.btn:hover { background: var(--color-border); }
.btn:active { transform: translateY(1px); }

.btn--primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.25);
    margin-top: 0.4rem;
}

.btn--primary:hover:not([disabled]) {
    background: var(--color-primary-hover);
}

.btn--primary[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.btn__spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
.btn__spinner[hidden] { display: none !important; }

@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------
   Toast
   -------------------------------------------------------- */

.toast[hidden] { display: none !important; }

.toast {
    position: fixed;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    background: var(--color-success);
    color: #fff;
    padding: 0.8rem 1.3rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    font-weight: 600;
    max-width: 90vw;
}

.toast--error { background: var(--color-danger); }

/* --------------------------------------------------------
   Admin-Bereich (admin.html)
   -------------------------------------------------------- */

.admin-header__actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}

.admin-header__actions .btn {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
    padding: 0.5rem 0.85rem;
    min-height: 36px;
    white-space: nowrap;
}
.admin-header__actions .btn:hover { background: rgba(255,255,255,0.28); color: #fff; }

.admin-header__back { text-decoration: none; }

@media (max-width: 600px) {
    .admin-header__actions .btn { font-size: 0.75rem; padding: 0.4rem 0.65rem; }
}

.admin-subhead {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-text-muted);
    font-weight: 700;
    margin: 0 0 0.85rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--color-border);
}
.admin-subhead:not(:first-child) { margin-top: 2.5rem; }

/* Kompakte Übersicht (wie Startseite, aber mit Klarnamen) */
.admin-overview { margin-bottom: 0.5rem; }
.admin-overview .shift { cursor: default; }
.admin-overview .shift:hover { transform: none; box-shadow: var(--shadow-xs); border-color: var(--color-border); background: var(--color-surface); }
.admin-overview .shift__names { color: var(--color-text); }
.admin-overview .shift__names .anon { color: var(--color-text-muted); font-style: italic; }

.shift__people {
    grid-column: 1 / -1;
    list-style: none;
    padding: 0;
    margin: 0.4rem 0 0;
    font-size: var(--fs-xs);
    color: var(--color-text);
    line-height: 1.45;
    font-variant-numeric: tabular-nums;
}
.shift__people li { padding: 0.1rem 0; }
.shift__people .anon { color: var(--color-text-muted); font-style: italic; }
.shift__people .shift__contact { color: var(--color-text-muted); }

.admin-main {
    padding: 2rem 1rem 4rem;
    display: grid;
    gap: 2.5rem;
}

.admin-section {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.admin-section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.admin-section__head h2 {
    margin: 0;
    font-size: var(--fs-xl);
}

.admin-section__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
}

.admin-hint {
    background: var(--color-surface-alt);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    margin: 0 0 1.25rem;
}

.admin-danger {
    background: var(--color-danger-soft) !important;
    color: var(--color-danger) !important;
    border-color: rgba(220, 38, 38, 0.4) !important;
    box-shadow: none !important;
}
.admin-danger:hover:not([disabled]) {
    background: var(--color-danger) !important;
    color: #fff !important;
}

.admin-signups { display: flex; flex-direction: column; gap: 1.25rem; }

.admin-shift {
    background: var(--color-surface-alt);
    border-radius: var(--radius-md);
    padding: 1rem 1.15rem;
}

.admin-shift__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
    flex-wrap: wrap;
}

.admin-shift__title { font-weight: 700; color: var(--color-text-strong); }
.admin-shift__meta  { font-size: var(--fs-sm); color: var(--color-text-muted); font-variant-numeric: tabular-nums; }

.admin-row {
    background: var(--color-surface);
    border-radius: var(--radius-sm);
    margin-top: 0.5rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--color-border);
}

.admin-row summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    cursor: pointer;
    list-style: none;
    flex-wrap: wrap;
}
.admin-row summary::-webkit-details-marker { display: none; }
.admin-row summary::before {
    content: '›';
    display: inline-block;
    margin-right: 0.35rem;
    transition: transform 0.15s;
    font-weight: 700;
    color: var(--color-text-muted);
}
.admin-row[open] summary::before { transform: rotate(90deg); }

.admin-row__name { font-weight: 600; color: var(--color-text-strong); }

.admin-row__tags {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.tag {
    font-size: var(--fs-xs);
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-pill);
    background: var(--color-surface-alt);
    color: var(--color-text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}
.tag--ok   { background: var(--color-success-soft); color: var(--color-success); }
.tag--info { background: var(--color-primary-soft); color: var(--color-primary-dark); }

.admin-row__body {
    padding: 0.75rem 0.25rem 0.25rem;
    font-size: var(--fs-sm);
    color: var(--color-text);
    display: grid;
    gap: 0.35rem;
}

.admin-row__actions {
    margin-top: 0.5rem;
    display: flex;
    justify-content: flex-end;
}

.admin-texts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-texts textarea {
    width: 100%;
    font-family: inherit;
    font-size: var(--fs-md);
    padding: 0.7rem 0.9rem;
    background: var(--color-surface);
    color: var(--color-text-strong);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    resize: vertical;
    min-height: 90px;
    line-height: 1.5;
}
.admin-texts textarea:focus,
.admin-texts input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--focus-ring);
}

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

.site-footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 1.5rem 0;
    text-align: center;
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    margin-top: 2rem;
}

.site-footer__links a {
    color: var(--color-text-muted);
    text-decoration: none;
    margin: 0 0.75rem;
    transition: color 0.15s;
}

.site-footer__links a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.site-footer__meta {
    margin-top: 0.5rem;
    font-size: var(--fs-xs);
    color: var(--color-text-subtle);
}

/* --------------------------------------------------------
   Rechtliche Seiten (impressum.html, datenschutz.html)
   -------------------------------------------------------- */

.legal-page {
    max-width: 68ch;
    padding: clamp(1.5rem, 4vw, 3rem) 0 3rem;
}

.legal-page h1 {
    color: var(--color-text-strong);
    margin-bottom: 1rem;
}

.legal-page h2 {
    font-size: var(--fs-lg);
    margin-top: 2rem;
    margin-bottom: 0.4rem;
    color: var(--color-text-strong);
}

.legal-page h3 {
    font-size: var(--fs-md);
    margin-top: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--color-text-strong);
}

.legal-page p,
.legal-page ul { color: var(--color-text); font-size: var(--fs-md); }
.legal-page ul { padding-left: 1.25rem; }
.legal-page li { margin-bottom: 0.35rem; }

.legal-notice {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius-md);
    margin: 1rem 0;
    font-size: var(--fs-sm);
    color: var(--color-text);
}

.legal-page a {
    color: var(--color-primary-dark);
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 2rem;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: var(--fs-sm);
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    background: var(--color-surface);
    transition: border-color 0.15s, color 0.15s;
}

.legal-back:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-dark);
}
