:root {
    --bg: #f4f7fb;
    --card: #ffffff;
    --text: #172033;
    --muted: #667085;
    --line: #e3e9f2;
    --primary: #123f73;
    --primary-dark: #0b2f57;
    --accent: #13a37d;
    --danger: #d92d20;
    --shadow: 0 18px 50px rgba(18, 63, 115, .10);
    --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top left, #e8f2ff 0, transparent 38%), var(--bg);
    line-height: 1.5;
}

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

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px clamp(18px, 5vw, 56px);
    background: rgba(255,255,255,.86);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}
.brand:hover { text-decoration: none; }
.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
}
.topnav { display: flex; gap: 14px; align-items: center; }
.topnav a { font-weight: 650; color: var(--text); }

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 70px;
}

.hero, .public-hero {
    padding: clamp(34px, 7vw, 72px);
    border-radius: 28px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, #0b2749 100%);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}
.hero::after, .public-hero::after {
    content: "";
    position: absolute;
    inset: auto -80px -120px auto;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255,255,255,.10);
}
.hero h1, .public-hero h1 {
    margin: 0;
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}
.lead {
    font-size: clamp(18px, 2vw, 22px);
    max-width: 780px;
    color: rgba(255,255,255,.85);
}
.eyebrow {
    margin: 0 0 10px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .11em;
    font-weight: 800;
    color: var(--accent);
}
.public-desc {
    max-width: 820px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.86);
}

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 22px;
}
.page-head h1 { margin: 0; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.03em; }
.page-head .eyebrow { color: var(--primary); }

.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards-list { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(18px, 3vw, 28px);
    box-shadow: var(--shadow);
}
.card.small { box-shadow: none; }
.card h1, .card h2, .card h3 { margin-top: 0; }
.card-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}
.narrow { max-width: 680px; margin-inline: auto; }
.empty { text-align: center; padding: 44px; }
.muted { color: var(--muted); }

.btn, button.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    padding: 11px 18px;
    min-height: 44px;
    font-weight: 750;
    cursor: pointer;
    text-decoration: none;
    font-size: 15px;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn.primary:hover { background: var(--primary-dark); }
.btn.danger { background: #fff; color: var(--danger); border-color: #ffd4d0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.actions.right { justify-content: flex-end; margin-top: 0; }
.link-button {
    background: none;
    border: 0;
    color: var(--primary);
    padding: 0;
    font-weight: 700;
    cursor: pointer;
}

.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 7px; font-weight: 750; }
.form input, .form textarea, .form select, .share-box input {
    width: 100%;
    border: 1px solid #d5deeb;
    border-radius: 13px;
    padding: 12px 14px;
    font: inherit;
    background: #fff;
    color: var(--text);
}
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus, .share-box input:focus {
    outline: 3px solid rgba(18, 63, 115, .16);
    border-color: var(--primary);
}
.check { display: flex !important; grid-template-columns: auto 1fr; flex-direction: row; align-items: flex-start; gap: 10px !important; color: var(--muted); font-weight: 600 !important; }
.check input { width: auto; margin-top: 5px; }
.compact-form { gap: 12px; }

.share-box { display: flex; gap: 10px; align-items: center; }
.share-box input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.share-box.compact { margin: 15px 0; }
.inline-form { margin-top: 14px; }

.flash {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-weight: 700;
}
.flash.success { background: #e9f8f3; color: #047857; border: 1px solid #b7ead9; }
.flash.error { background: #fff1f0; color: #b42318; border: 1px solid #ffd4d0; }

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 850;
    white-space: nowrap;
}
.badge.green { background: #e9f8f3; color: #047857; }
.badge.gray { background: #edf0f5; color: #667085; }
.badge.red { background: #fff1f0; color: #b42318; }
.stats { display: flex; gap: 18px; margin: 18px 0; color: var(--muted); }
.stats strong { color: var(--text); font-size: 22px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    border: 1px solid var(--line);
    background: #f8fafc;
    border-radius: 999px;
    padding: 7px 8px 7px 13px;
    font-weight: 700;
}
.chip button, .icon-danger {
    border: 0;
    background: #ffe4e0;
    color: var(--danger);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 900;
}

.date-heading {
    margin: 28px 0 14px;
    color: var(--primary);
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
}
.shift-list { display: grid; gap: 14px; }
.shift-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fbfdff;
}
.shift-title { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.shift-title span { color: var(--muted); }
.shift-main p { margin: 6px 0; }
.helper-list { display: grid; gap: 8px; margin-top: 12px; }
.helper-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 10px 12px;
}
.helper-item span, .helper-item em { display: block; color: var(--muted); font-size: 14px; }

.info-card { margin: 18px 0; }
.public-shifts { display: grid; gap: 16px; }
.public-date { margin-top: 26px; }
.shift-public-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.shift-public h3 { margin-bottom: 5px; }
.shift-time { font-weight: 800; color: var(--primary); }
.full-note { color: var(--muted); font-weight: 700; }
.signup-box {
    margin-top: 16px;
    border-top: 1px solid var(--line);
    padding-top: 14px;
}
.signup-box summary {
    cursor: pointer;
    font-weight: 850;
    color: var(--primary);
}
.signup-box form { margin-top: 14px; }
.success-card h1 { color: #047857; }


.btn.small-btn {
    min-height: 36px;
    padding: 7px 12px;
    font-size: 14px;
}
.own-entry-box {
    margin: 14px 0;
    padding: 13px;
    border-radius: 14px;
    border: 1px solid #b7ead9;
    background: #e9f8f3;
    color: #065f46;
}
.own-entry-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 9px;
}
.shift-edit-box {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}
.shift-edit-box summary {
    cursor: pointer;
    color: var(--primary);
    font-weight: 850;
}
.shift-edit-form {
    margin-top: 14px;
    padding: 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--line);
}
.form input[type="date"], .form input[type="time"] {
    cursor: pointer;
}

.footer {
    text-align: center;
    color: var(--muted);
    padding: 28px 16px 46px;
}
code, pre {
    background: #f2f5f9;
    border-radius: 8px;
    padding: 2px 6px;
}
pre { padding: 14px; overflow: auto; }

@media (max-width: 860px) {
    .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; }
    .page-head { flex-direction: column; }
    .actions.right { justify-content: flex-start; }
    .share-box { flex-direction: column; align-items: stretch; }
    .shift-row { grid-template-columns: 1fr; }
    .topbar { position: static; }
}

@media (max-width: 520px) {
    .container { width: min(100% - 22px, 1180px); margin-top: 18px; }
    .topbar { padding: 14px 12px; }
    .brand { font-size: 18px; }
    .hero, .public-hero { border-radius: 20px; padding: 28px 22px; }
    .card { border-radius: 16px; padding: 18px; }
    .btn, button.btn { width: 100%; }
    .actions { width: 100%; }
    .card-row, .shift-public-head, .own-entry-row { flex-direction: column; align-items: stretch; }
    .own-entry-row form { width: 100%; }
}

.public-helper-list {
    margin: 14px 0 4px;
    padding: 13px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
}
.public-helper-list strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
}
.helper-name-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.helper-name-chips span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f2f5f9;
    border: 1px solid var(--line);
    font-weight: 750;
    font-size: 14px;
}

/* ShiftHunter v1.6: kompakte Platzliste */
.shift-public {
    border: 1px solid #d0d5dd;
    box-shadow: none;
    background: #fff;
    padding: clamp(16px, 3vw, 24px);
}
.shift-public-head {
    align-items: flex-start;
    margin-bottom: 12px;
}
.shift-public-head h3 {
    font-size: clamp(24px, 4.5vw, 32px);
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
    color: #1f2937;
}
.shift-public-head .muted {
    font-size: 15px;
    color: #606873;
    margin: 0;
}
.shift-public .badge {
    margin-top: 4px;
    font-size: 13px;
    padding: 7px 12px;
}
.shift-time {
    margin: 12px 0 0;
    color: #475467;
    font-weight: 750;
    font-size: 15px;
}
.shift-slots {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 18px 0 6px;
}
.shift-slot {
    width: 100%;
    min-height: 48px;
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.2;
}
.shift-slot.filled {
    justify-content: flex-start;
    position: relative;
    background: #fff;
    border: 0;
    color: #1f2937;
    text-align: left;
}
.shift-slot.own-slot {
    background: #fff;
    border: 0;
}
.shift-slot.placeholder {
    background: #fff;
    color: #1f2937;
    border: 2px dashed #667085;
    cursor: pointer;
    justify-content: flex-start;
    font: inherit;
    font-size: 18px;
    font-weight: 500;
    text-align: left;
}
.shift-slot.placeholder:hover,
.shift-slot.placeholder:focus {
    color: var(--primary);
    border-color: var(--primary);
    outline: 3px solid rgba(18, 63, 115, .13);
}
.slot-name {
    display: block;
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.slot-remove-form {
    margin: 0 0 0 8px;
    flex: 0 0 auto;
    display: inline-flex;
}
.slot-remove-btn,
.dialog-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 900;
    line-height: 1;
}
.slot-remove-btn {
    width: 24px;
    height: 24px;
    min-width: 24px;
    background: #e53935 !important;
    color: #fff !important;
    font-size: 18px;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
}
.slot-remove-btn:hover,
.slot-remove-btn:focus {
    background: #c62828 !important;
    outline: 3px solid rgba(229, 57, 53, .18);
}
@media (max-width: 520px) {
    .shift-public { padding: 18px 16px; }
    .shift-public-head h3 { font-size: 24px; }
    .shift-slots { gap: 8px; margin-top: 16px; }
    .shift-slot { min-height: 44px; font-size: 17px; padding: 9px 12px; }
    .shift-slot.placeholder { font-size: 17px; }
    .signup-dialog .actions.right .btn,
    .signup-dialog .actions.right button.btn { width: 100%; }
}


/* ShiftHunter v1.7: noch kompaktere Schichtkarten */
.shift-public {
    padding: 16px 18px;
}
.shift-public-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 8px;
}
.shift-title-block {
    min-width: 0;
}
.shift-public-head h3 {
    font-size: 22px;
    line-height: 1.15;
    margin: 0 0 3px;
}
.shift-head-time {
    flex: 0 0 auto;
    text-align: right;
    color: var(--primary);
    font-weight: 850;
    font-size: 14px;
    line-height: 1.25;
    padding-top: 3px;
    white-space: nowrap;
}
.shift-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 8px 0 10px;
}
.shift-public .badge {
    min-width: 0;
    margin: 0;
    padding: 5px 10px;
    font-size: 12px;
}
.shift-time {
    display: none;
}
.shift-slots {
    gap: 5px;
    margin: 10px 0 2px;
}
.shift-slot {
    min-height: 36px;
    padding: 6px 12px;
    font-size: 16px;
    line-height: 1.15;
}
.shift-slot.placeholder {
    min-height: 38px;
    font-size: 16px;
    border-width: 2px;
}
.shift-slot.filled {
    min-height: 34px;
    padding-top: 5px;
    padding-bottom: 5px;
}
.slot-remove-btn {
    width: 22px;
    height: 22px;
    min-width: 22px;
    font-size: 17px;
}
@media (max-width: 520px) {
    .shift-public { padding: 14px 16px; }
    .shift-public-head { gap: 10px; margin-bottom: 8px; }
    .shift-public-head h3 { font-size: 21px; }
    .shift-head-time { font-size: 13px; padding-top: 2px; }
    .shift-status-row { margin: 7px 0 9px; }
    .shift-slots { gap: 5px; margin-top: 9px; }
    .shift-slot, .shift-slot.placeholder {
        min-height: 36px;
        font-size: 16px;
        padding: 6px 11px;
    }
    .shift-slot.filled { min-height: 32px; }
}

/* ShiftHunter v1.8: feste Kopfzeile, Filter und Cache-Buster */
.shift-filter-card {
    display: grid;
    grid-template-columns: auto minmax(190px, 320px);
    align-items: center;
    justify-content: start;
    gap: 10px 14px;
    margin: 10px 0 18px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255,255,255,.86);
}
.shift-filter-card label {
    font-weight: 850;
    color: var(--text);
}
.shift-filter-card select {
    width: 100%;
    min-height: 40px;
    border: 1px solid #d5deeb;
    border-radius: 12px;
    padding: 8px 12px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-weight: 700;
}
.shift-filter-card select:focus {
    outline: 3px solid rgba(18, 63, 115, .16);
    border-color: var(--primary);
}
.shift-public-head {
    display: grid !important;
    grid-template-columns: minmax(0, 4fr) minmax(100px, 1fr);
    align-items: start !important;
}
.shift-title-block {
    min-width: 0;
    overflow-wrap: anywhere;
}
.shift-title-block h3 {
    overflow-wrap: anywhere;
    hyphens: auto;
}
.shift-head-time {
    justify-self: end;
    align-self: start;
    width: 100%;
    max-width: 125px;
    white-space: nowrap;
    text-align: right;
}
@media (max-width: 520px) {
    .shift-public-head {
        grid-template-columns: minmax(0, 4fr) minmax(92px, 1fr) !important;
    }
    .shift-head-time {
        max-width: 98px;
        font-size: 12px;
        line-height: 1.15;
    }
    .shift-public-head h3 {
        font-size: 20px;
        line-height: 1.12;
    }
    .shift-filter-card {
        grid-template-columns: 1fr;
        gap: 7px;
        margin-bottom: 14px;
    }
}


/* ShiftHunter v1.10: iPhone-Zoom verhindern, Felder kompakt */
.signup-dialog {
    max-width: min(520px, calc(100vw - 24px));
}
.signup-dialog .dialog-head {
    margin-bottom: 10px;
}
.signup-dialog .dialog-head h3 {
    margin: 4px 0 4px;
}
.signup-dialog .dialog-close {
    display: none !important;
}
.signup-dialog .form,
.signup-dialog .compact-form {
    gap: 9px;
}
.signup-dialog .form label {
    gap: 4px;
    font-size: 14px;
}
.signup-dialog .form input,
.signup-dialog .form textarea,
.signup-dialog .form select {
    min-height: 36px;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.2;
}
.signup-dialog .form textarea {
    min-height: 54px;
}
.signup-dialog .check {
    font-size: 10px !important;
    line-height: 1.35 !important;
    gap: 7px !important;
    margin-top: 2px;
    font-weight: 600 !important;
}
.signup-dialog .check input {
    width: 14px;
    height: 14px;
    min-height: 14px;
    margin-top: 1px;
    flex: 0 0 auto;
}
.signup-dialog .actions.right {
    gap: 8px;
    margin-top: 6px;
}
.signup-dialog .actions.right .btn {
    min-height: 42px;
    padding: 9px 16px;
}
@media (max-width: 520px) {
    .signup-dialog {
        padding: 16px;
    }
    .signup-dialog .form-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }
    .signup-dialog .form input,
    .signup-dialog .form textarea,
    .signup-dialog .form select {
        min-height: 36px;
        padding: 6px 12px;
        font-size: 16px;
    }
    .signup-dialog .form textarea {
        min-height: 54px;
    }
}


/* ShiftHunter v1.11: Spaltenlayout, mobile Uhrzeit-Abstand, optionale Labels */
.public-shifts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}
.public-date {
    grid-column: 1 / -1;
    margin-top: 26px;
    margin-bottom: 6px;
}
.shift-public {
    height: 100%;
}
.label-optional {
    font-weight: 400;
    color: var(--muted);
}
.signup-dialog .form label .label-optional {
    font-weight: 400;
}
.shift-head-time {
    padding-right: 4px;
}

@media (max-width: 1020px) {
    .public-shifts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .public-shifts {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .public-date {
        margin-bottom: 6px;
    }
    .shift-head-time {
        padding-right: 8px;
    }
}

@media (max-width: 520px) {
    .shift-public-head {
        grid-template-columns: minmax(0, 4fr) minmax(96px, 1fr) !important;
    }
    .shift-head-time {
        justify-self: end;
        max-width: 104px;
        padding-right: 6px;
    }
}

/* ShiftHunter v1.12: Admin-Spalten, Bearbeiten-Popup und mobile Uhrzeit */
.public-shifts .shift-head-time {
    padding-right: 8px;
}
.admin-shifts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}
.admin-shifts .date-heading {
    grid-column: 1 / -1;
    margin: 22px 0 8px;
}
.admin-shifts .shift-row {
    height: 100%;
    gap: 12px;
}
.admin-shift-actions {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}
.admin-shift-actions form {
    margin: 0;
}
.btn.edit {
    border-color: #bbf7d0;
    background: #ecfdf3;
    color: #047857;
}
.btn.edit:hover,
.btn.edit:focus {
    border-color: #86efac;
    background: #d1fae5;
}
.admin-edit-dialog {
    width: min(720px, calc(100vw - 28px));
    border: 0;
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
}
.admin-edit-dialog::backdrop {
    background: rgba(15, 23, 42, .42);
}
.admin-edit-dialog .dialog-head {
    margin-bottom: 14px;
}
.admin-edit-dialog .dialog-head h3 {
    margin: 4px 0;
}
.admin-edit-dialog .shift-edit-form {
    margin-top: 0;
    padding: 0;
    border: 0;
    background: transparent;
}
@media (max-width: 1060px) {
    .admin-shifts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .admin-shifts { grid-template-columns: 1fr; gap: 14px; }
    .admin-shift-actions { justify-content: stretch; }
    .admin-shift-actions .btn,
    .admin-shift-actions form { flex: 1 1 130px; }
    .admin-shift-actions form .btn { width: 100%; }
}
@media (max-width: 520px) {
    .public-shifts .shift-head-time {
        padding-right: 12px;
        max-width: 106px;
    }
    .shift-public-head {
        grid-template-columns: minmax(0, 4fr) minmax(104px, 1fr) !important;
    }
    .admin-edit-dialog { padding: 16px; }
}

/* ShiftHunter v1.13: Admin-Karten wie Helferübersicht */
.public-shifts .shift-head-time {
    padding-right: 14px;
}
.admin-shifts {
    gap: 22px;
}
.admin-shifts .shift-row.admin-shift-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
}
.admin-shift-head {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(112px, 1fr);
    align-items: start;
    gap: 12px;
    margin-bottom: 8px;
}
.admin-shift-title {
    min-width: 0;
    overflow-wrap: anywhere;
}
.admin-shift-title strong {
    overflow-wrap: anywhere;
}
.admin-shift-time {
    justify-self: end;
    text-align: right;
    color: var(--primary);
    font-size: 14px;
    font-weight: 850;
    line-height: 1.25;
    white-space: nowrap;
    padding-right: 2px;
}
.admin-status-row {
    margin: 7px 0 10px;
}
.admin-shift-note {
    margin: 6px 0 8px !important;
    font-size: 14px;
}
.admin-helper-list {
    margin-top: 8px;
    gap: 7px;
}
.admin-helper-item {
    padding: 9px 10px;
    border-radius: 12px;
}
.admin-helper-item strong {
    font-size: 15px;
}
.admin-helper-item span,
.admin-helper-item em {
    font-size: 13px;
}
.admin-shift-actions {
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    margin-top: auto;
    padding-top: 8px;
    gap: 8px;
}
.admin-shift-actions .small-admin-btn,
.admin-shift-actions form .small-admin-btn {
    width: auto;
    min-height: 34px;
    padding: 6px 13px;
    font-size: 13px;
    line-height: 1;
}
.admin-shift-actions form {
    margin: 0;
    width: auto;
}
.admin-shift-actions .btn.danger {
    background: #fff;
}
@media (max-width: 720px) {
    .admin-shift-actions {
        justify-content: flex-start;
    }
    .admin-shift-actions .small-admin-btn,
    .admin-shift-actions form,
    .admin-shift-actions form .small-admin-btn {
        flex: 0 0 auto;
        width: auto;
    }
}
@media (max-width: 520px) {
    .public-shifts .shift-head-time {
        padding-right: 18px;
    }
    .admin-shift-head {
        grid-template-columns: minmax(0, 4fr) minmax(104px, 1fr);
        gap: 10px;
    }
    .admin-shift-time {
        font-size: 12px;
        max-width: 108px;
        padding-right: 4px;
    }
}

/* ShiftHunter v1.14: Dashboard-Löschen und bessere Schichtformular-Anordnung */
.dashboard-event-actions {
    align-items: center;
}
.dashboard-event-actions form {
    margin: 0;
}
.dashboard-event-actions .btn.danger {
    background: #fff7f7;
    border-color: #fecaca;
    color: var(--danger);
}
.dashboard-event-actions .btn.danger:hover,
.dashboard-event-actions .btn.danger:focus {
    background: #fee2e2;
    border-color: #fca5a5;
}
.shift-time-grid {
    display: grid;
    grid-template-columns: minmax(150px, 1.25fr) minmax(124px, 1fr) minmax(124px, 1fr) minmax(90px, .75fr);
    gap: 16px 18px;
    align-items: end;
}
.shift-time-grid label {
    min-width: 0;
}
.shift-time-grid input {
    min-width: 0;
}
.label-optional {
    font-weight: 400;
    color: var(--muted);
}
@media (max-width: 1140px) {
    .shift-time-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 560px) {
    .shift-time-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .dashboard-event-actions {
        align-items: stretch;
    }
    .dashboard-event-actions form,
    .dashboard-event-actions .btn,
    .dashboard-event-actions form .btn {
        width: 100%;
    }
}

/* ShiftHunter v1.15: 5-Minuten-Auswahl, Formularfeinschliff und Abstände */
.share-card {
    margin-bottom: 28px;
}
.admin-setup-grid {
    margin-top: 28px;
    margin-bottom: 32px;
}
.shift-overview-card {
    margin-top: 32px;
}
.form .field-label-text {
    display: inline-block;
    white-space: nowrap;
}
.label-optional {
    font-weight: 400 !important;
    color: var(--muted);
}
.form input::placeholder,
.form textarea::placeholder,
.share-box input::placeholder {
    color: #98a2b3;
    font-style: italic;
    font-weight: 400;
    opacity: 1;
}
.form select {
    min-height: 52px;
    height: 52px;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1.2;
}
.form input:not([type="checkbox"]),
.form textarea,
.share-box input {
    min-height: 52px;
}
.shift-time-grid select {
    min-width: 0;
}
@media (max-width: 560px) {
    .share-card {
        margin-bottom: 22px;
    }
    .admin-setup-grid {
        margin-top: 22px;
        margin-bottom: 26px;
    }
    .shift-overview-card {
        margin-top: 26px;
    }
    .form .field-label-text {
        white-space: normal;
    }
}

/* ShiftHunter v1.16 */
.share-card-head {
    align-items: flex-start;
}
.status-toggle-form {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0;
}
.status-toggle-btn {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 14px;
}
.btn.soft-success {
    background: #e9f8f3;
    color: #047857;
    border-color: #b7ead9;
}
.btn.soft-success:hover {
    background: #d9f3ea;
}
.btn.soft-danger {
    background: #fff1f0;
    color: #b42318;
    border-color: #ffd4d0;
}
.btn.soft-danger:hover {
    background: #ffe6e3;
}
.share-box .btn {
    flex: 0 0 auto;
}
@media (max-width: 860px) {
    .share-card-head {
        gap: 14px;
    }
    .status-toggle-form {
        justify-content: flex-start;
    }
}
@media (max-width: 520px) {
    .status-toggle-form {
        width: 100%;
    }
    .status-toggle-form .badge,
    .status-toggle-form .btn {
        width: auto;
    }
}

/* ShiftHunter v1.18: kompakter Status-Button, native Uhrzeitfelder und Admin-Helferplätze */
.status-toggle-form {
    gap: 8px;
}
.status-toggle-btn {
    min-height: 30px !important;
    padding: 5px 12px !important;
    font-size: 13px !important;
    line-height: 1 !important;
    border-radius: 999px !important;
    font-weight: 800;
}
.shift-time-grid input[type="time"] {
    min-width: 0;
    width: 100%;
}
.admin-slot-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 8px;
}
.admin-slot {
    width: 100%;
    border-radius: 12px;
    font: inherit;
    text-align: left;
}
.admin-slot.filled {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 43px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    background: #fff;
}
.admin-slot.filled strong {
    display: block;
    font-size: 15px;
    line-height: 1.25;
}
.admin-slot.filled span,
.admin-slot.filled em {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    line-height: 1.25;
    color: var(--muted);
}
.admin-slot.filled em {
    font-style: italic;
}
.admin-slot.placeholder {
    min-height: 38px;
    padding: 8px 12px;
    border: 2px dashed #64748b;
    background: #fff;
    color: var(--text);
    cursor: pointer;
}
.admin-slot.placeholder:hover,
.admin-slot.placeholder:focus {
    border-color: var(--primary);
    background: #f8fbff;
}
.admin-helper-dialog {
    width: min(680px, calc(100vw - 28px));
}
.admin-helper-form .form-grid {
    margin-top: 2px;
}
@media (max-width: 560px) {
    .status-toggle-form {
        gap: 7px;
    }
    .status-toggle-btn {
        min-height: 28px !important;
        padding: 5px 10px !important;
        font-size: 12px !important;
    }
    .admin-slot.placeholder {
        min-height: 36px;
    }
}


/* ShiftHunter v1.19: dünnere Platzhalterlinien und optionale Labels in einer Zeile */
.shift-slot.placeholder,
.admin-slot.placeholder {
    border-width: 1.5px !important;
}
.admin-helper-form .field-label-text,
.signup-dialog .field-label-text,
.admin-edit-dialog .field-label-text {
    display: inline-block;
    white-space: nowrap;
}
.admin-helper-form .label-optional,
.signup-dialog .label-optional,
.admin-edit-dialog .label-optional {
    display: inline !important;
    font-weight: 400 !important;
    color: var(--muted);
}
@media (max-width: 420px) {
    .admin-helper-form .field-label-text,
    .signup-dialog .field-label-text,
    .admin-edit-dialog .field-label-text {
        white-space: normal;
    }
}


/* ShiftHunter v1.20: Veranstalter-Telefon und grüner Bearbeiten-Button */
.event-contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.page-head .btn.edit {
    border-color: #bbf7d0;
    background: #ecfdf3;
    color: #047857;
}
.page-head .btn.edit:hover,
.page-head .btn.edit:focus {
    border-color: #86efac;
    background: #d1fae5;
}
@media (max-width: 820px) {
    .event-contact-grid {
        grid-template-columns: 1fr;
    }
}

/* v1.21 public hero contact details */
.public-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    gap: 10px 26px;
    margin-top: 22px;
    color: rgba(255,255,255,.9);
}
.public-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-size: clamp(16px, 1.8vw, 20px);
    line-height: 1.35;
}
.public-meta-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.public-meta-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}
.public-meta a {
    color: rgba(255,255,255,.94);
    text-decoration: none;
    overflow-wrap: anywhere;
}
.public-meta a:hover,
.public-meta a:focus {
    text-decoration: underline;
}
@media (max-width: 760px) {
    .public-meta {
        grid-template-columns: 1fr;
        gap: 9px;
    }
    .public-meta-item {
        font-size: 16px;
    }
}

/* ShiftHunter v1.22: Kontaktdaten untereinander + Tage einklappbar */
.public-meta {
    grid-template-columns: 1fr !important;
    gap: 9px !important;
    max-width: 720px;
}
.public-meta-item {
    width: 100%;
}
.public-shifts {
    display: block !important;
}
.day-group {
    margin-top: 18px;
}
.day-group[style*="display: none"] {
    display: none !important;
}
.day-summary {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    margin: 0 0 14px !important;
}
.day-summary::-webkit-details-marker {
    display: none;
}
.day-toggle-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid var(--line);
    color: var(--primary);
    font-size: 30px;
    line-height: 1;
    transition: transform .18s ease, background .18s ease;
}
.day-group[open] .day-toggle-icon {
    transform: rotate(180deg);
    background: #eff6ff;
}
.day-shifts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}
@media (max-width: 1020px) {
    .day-shifts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 680px) {
    .day-group {
        margin-top: 16px;
    }
    .day-summary {
        margin-bottom: 12px !important;
    }
    .day-toggle-icon {
        width: 38px;
        height: 38px;
        font-size: 28px;
    }
    .day-shifts {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* ShiftHunter v1.23: Tagesüberschriften größer und kräftiger */
.day-summary,
.day-summary span:first-child,
.public-date.day-summary span:first-child {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: var(--primary) !important;
    line-height: 1.25 !important;
}

@media (max-width: 680px) {
    .day-summary,
    .day-summary span:first-child,
    .public-date.day-summary span:first-child {
        font-size: 24px !important;
        font-weight: 800 !important;
    }
}

/* =========================================================
   ShiftHunter v1.30: App-Startseite mit Login/Registrierung
   ========================================================= */
.topnav .nav-primary {
    background: #1f8fff;
    color: #fff !important;
    padding: 11px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(31, 143, 255, .22);
}
.topnav .nav-primary:hover {
    text-decoration: none;
    background: #1679dc;
}

.app-auth-shell {
    min-height: calc(100vh - 210px);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .75fr);
    gap: clamp(22px, 4vw, 42px);
    align-items: stretch;
}
.auth-hero-panel {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    padding: clamp(34px, 6vw, 70px);
    color: #fff;
    background:
        radial-gradient(circle at 88% 88%, rgba(255,255,255,.16) 0 0, transparent 190px),
        linear-gradient(135deg, #123f73 0%, #0b2749 100%);
    box-shadow: var(--shadow);
}
.auth-hero-panel h1 {
    margin: 0;
    font-size: clamp(36px, 6vw, 70px);
    line-height: 1.02;
    letter-spacing: -.055em;
    max-width: 760px;
}
.auth-hero-panel .lead {
    max-width: 700px;
    margin-top: 22px;
}
.auth-feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: clamp(24px, 5vw, 46px);
}
.auth-feature-list span {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.16);
    color: rgba(255,255,255,.92);
    font-weight: 750;
}
.auth-card {
    align-self: center;
    padding: clamp(24px, 4vw, 38px);
}
.auth-card h2 {
    margin: 0 0 8px;
    font-size: clamp(27px, 3vw, 38px);
    line-height: 1.12;
    letter-spacing: -.035em;
}
.auth-eyebrow {
    color: var(--primary);
}
.auth-form {
    margin-top: 22px;
}
.auth-submit {
    width: 100%;
    min-height: 50px;
    font-size: 16px;
}
.auth-register-box {
    margin-top: 20px;
    padding: 18px;
    border-radius: 18px;
    background: #f7faff;
    border: 1px solid var(--line);
    display: grid;
    gap: 8px;
}
.auth-register-box strong {
    font-size: 17px;
}
.auth-register-box span {
    color: var(--muted);
}
.register-shell .auth-card {
    align-self: start;
}
.label-optional {
    color: var(--muted);
    font-weight: 650;
}

@media (max-width: 980px) {
    .app-auth-shell {
        grid-template-columns: 1fr;
    }
    .auth-card {
        align-self: auto;
    }
}

@media (max-width: 720px) {
    .topbar {
        align-items: flex-start;
    }
    .topnav {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    .topnav .nav-primary {
        padding: 9px 13px;
    }
    .container {
        width: min(100% - 24px, 1180px);
        margin-top: 22px;
    }
    .auth-hero-panel {
        border-radius: 24px;
        padding: 28px 22px;
    }
    .auth-card {
        padding: 22px;
    }
    .register-shell .grid.two.form-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   ShiftHunter v2.0: Modernes Admin-Dashboard mit Sidebar
   ========================================================= */

.admin-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, .13) 0, transparent 34%),
        linear-gradient(180deg, #f6f9fd 0%, #eef4fb 100%);
}

.admin-body a:hover {
    text-decoration: none;
}

.app-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.app-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 22px 18px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(211, 221, 235, .86);
    box-shadow: 18px 0 55px rgba(15, 23, 42, .05);
    z-index: 40;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
    padding: 8px 8px 18px;
    border-bottom: 1px solid var(--line);
}

.sidebar-brand .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    box-shadow: 0 12px 28px rgba(18, 63, 115, .22);
}

.sidebar-brand strong,
.sidebar-brand small {
    display: block;
    line-height: 1.1;
}

.sidebar-brand strong {
    font-size: 20px;
    letter-spacing: -.03em;
}

.sidebar-brand small {
    margin-top: 4px;
    color: var(--muted);
    font-weight: 700;
    font-size: 12px;
}

.sidebar-nav {
    display: grid;
    gap: 8px;
}

.sidebar-section-title {
    margin: 4px 10px 6px;
    color: #98a2b3;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.side-link {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 15px;
    color: #344054;
    font-weight: 800;
    border: 1px solid transparent;
    transition: background .18s ease, color .18s ease, transform .18s ease, border-color .18s ease;
}

.side-link:hover {
    background: #f5f9ff;
    color: var(--primary);
    transform: translateX(2px);
}

.side-link.active {
    background: linear-gradient(135deg, var(--primary) 0%, #0b2f57 100%);
    color: #fff;
    box-shadow: 0 12px 26px rgba(18, 63, 115, .18);
}

.side-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(18, 63, 115, .08);
    color: inherit;
    flex: 0 0 auto;
}

.side-link.active .side-icon {
    background: rgba(255, 255, 255, .16);
}

.sidebar-bottom {
    margin-top: auto;
    display: grid;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 17px;
    background: #f7faff;
    border: 1px solid var(--line);
    min-width: 0;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-weight: 900;
    flex: 0 0 auto;
}

.sidebar-user strong,
.sidebar-user small {
    display: block;
    line-height: 1.25;
    min-width: 0;
    max-width: 175px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user small {
    color: var(--muted);
    font-size: 12px;
}

.side-link.logout {
    color: #475467;
}

.app-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px clamp(20px, 4vw, 42px);
    background: rgba(246, 249, 253, .84);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(211, 221, 235, .8);
}

.app-topbar h1 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.08;
    letter-spacing: -.04em;
    color: #111827;
}

.topbar-kicker {
    margin: 0 0 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.topbar-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.btn.ghost {
    background: rgba(255,255,255,.72);
}

.app-content {
    width: min(1240px, calc(100% - 40px));
    margin: 28px auto 64px;
}

.app-footer {
    margin-top: auto;
    padding: 0 24px 34px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

.dashboard-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(26px, 5vw, 44px);
    border-radius: 28px;
    color: #fff;
    background:
        radial-gradient(circle at 91% 92%, rgba(255,255,255,.17) 0 0, transparent 190px),
        radial-gradient(circle at 78% 22%, rgba(19, 163, 125, .28) 0 0, transparent 230px),
        linear-gradient(135deg, #123f73 0%, #092444 100%);
    box-shadow: 0 24px 70px rgba(18, 63, 115, .20);
    overflow: hidden;
}

.dashboard-hero h2 {
    margin: 0;
    max-width: 790px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.02;
    letter-spacing: -.055em;
}

.dashboard-hero p:not(.eyebrow) {
    margin: 14px 0 0;
    max-width: 720px;
    color: rgba(255,255,255,.82);
    font-size: clamp(17px, 2vw, 20px);
}

.hero-action {
    flex: 0 0 auto;
    background: #fff !important;
    color: var(--primary) !important;
    border-color: #fff !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .14);
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 18px 0;
}

.metric-card {
    position: relative;
    overflow: hidden;
    min-height: 156px;
    padding: 20px;
    border-radius: 22px;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(211, 221, 235, .9);
    box-shadow: 0 16px 46px rgba(15, 23, 42, .06);
}

.metric-card::after {
    content: "";
    position: absolute;
    right: -42px;
    bottom: -52px;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: rgba(18, 63, 115, .06);
}

.metric-card.attention::after {
    background: rgba(217, 45, 32, .08);
}

.metric-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #edf5ff;
    color: var(--primary);
    font-weight: 900;
    margin-bottom: 16px;
}

.metric-card small,
.metric-card span:not(.metric-icon) {
    display: block;
    color: var(--muted);
    font-weight: 750;
}

.metric-card strong {
    display: block;
    margin: 2px 0 0;
    font-size: 42px;
    line-height: 1;
    letter-spacing: -.055em;
    color: #111827;
}

.next-event-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin: 0 0 22px;
    box-shadow: 0 16px 45px rgba(15, 23, 42, .06);
}

.next-event-card h2 {
    margin: 0 0 5px;
    letter-spacing: -.03em;
}

.events-section {
    margin-top: 26px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    margin-bottom: 16px;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    letter-spacing: -.04em;
}

.app-event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
}

.app-event-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    border-radius: 24px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(211, 221, 235, .92);
    box-shadow: 0 18px 48px rgba(15, 23, 42, .07);
}

.event-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.app-event-card h3 {
    margin: 12px 0 5px;
    font-size: 24px;
    line-height: 1.12;
    letter-spacing: -.035em;
}

.event-open-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #f2f7ff;
    border: 1px solid var(--line);
    color: var(--primary);
    font-weight: 900;
    flex: 0 0 auto;
}

.event-open-icon:hover {
    background: var(--primary);
    color: #fff;
}

.event-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.event-mini-stats span {
    padding: 10px;
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.event-mini-stats strong {
    display: block;
    color: #111827;
    font-size: 22px;
    line-height: 1.1;
}

.event-progress {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eef7;
}

.event-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), #13a37d);
}

.event-progress-label {
    margin: -8px 0 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 750;
}

.event-link-box {
    margin: 0;
}

.event-link-box input {
    font-size: 13px;
    background: #f8fbff;
}

.event-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: auto;
}

.event-actions form {
    margin: 0;
}

.modern-empty {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 54px 24px;
}

.empty-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: #edf5ff;
    color: var(--primary);
    font-size: 30px;
    font-weight: 900;
}

.admin-body .card.narrow {
    max-width: 920px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .07);
}

.admin-body .page-head {
    padding: 24px;
    border-radius: 24px;
    background: rgba(255,255,255,.78);
    border: 1px solid var(--line);
    box-shadow: 0 16px 45px rgba(15, 23, 42, .05);
}

@media (max-width: 1120px) {
    .app-shell {
        grid-template-columns: 236px minmax(0, 1fr);
    }
    .dashboard-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .app-shell {
        display: block;
    }
    .app-sidebar {
        position: static;
        height: auto;
        gap: 12px;
        padding: 14px;
    }
    .sidebar-brand {
        padding-bottom: 12px;
    }
    .sidebar-nav {
        display: flex;
        overflow-x: auto;
        padding-bottom: 4px;
        gap: 8px;
    }
    .sidebar-section-title,
    .sidebar-bottom {
        display: none;
    }
    .side-link {
        flex: 0 0 auto;
        min-height: 42px;
        white-space: nowrap;
    }
    .app-topbar {
        position: static;
        align-items: flex-start;
        flex-direction: column;
    }
    .topbar-actions {
        justify-content: flex-start;
    }
    .app-content {
        width: min(100% - 24px, 1240px);
        margin-top: 18px;
    }
    .dashboard-hero {
        flex-direction: column;
        align-items: flex-start;
        border-radius: 24px;
    }
    .section-head,
    .next-event-card {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .dashboard-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .metric-card {
        min-height: 140px;
        padding: 16px;
    }
    .metric-icon {
        width: 34px;
        height: 34px;
        border-radius: 12px;
        margin-bottom: 12px;
    }
    .metric-card strong {
        font-size: 36px;
    }
    .metric-card small,
    .metric-card span:not(.metric-icon) {
        font-size: 13px;
    }
    .app-event-grid {
        grid-template-columns: 1fr;
    }
    .event-mini-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }
    .event-mini-stats span {
        padding: 9px 7px;
        border-radius: 14px;
        font-size: 12px;
        line-height: 1.15;
    }
    .event-mini-stats strong {
        font-size: 20px;
    }
    .topbar-actions,
    .topbar-actions .btn,
    .section-head .btn,
    .hero-action,
    .event-actions,
    .event-actions .btn,
    .event-actions form,
    .event-actions button {
        width: 100%;
    }
    .dashboard-hero h2 {
        font-size: 34px;
    }
}

/* ShiftHunter v1.18: Veranstaltung duplizieren */
.duplicate-card h1 {
    margin-top: 4px;
}
.duplicate-source-box {
    display: grid;
    gap: 4px;
    padding: 16px 18px;
    margin: 20px 0 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #f8fbff;
}
.duplicate-source-box span,
.duplicate-source-box small,
.form-help {
    color: var(--muted);
    font-weight: 700;
}
.duplicate-source-box strong {
    color: #071b3a;
    font-size: 20px;
    letter-spacing: -.025em;
}
.form-help {
    margin: -6px 0 4px;
    font-size: 14px;
}
.event-actions .btn {
    white-space: nowrap;
}

/* ShiftHunter v1.20: schöne Event-Links + Passwort vergessen */
.auth-forgot-row {
    margin-top: -6px;
    text-align: right;
    font-size: 14px;
    font-weight: 800;
}
.auth-forgot-row a {
    color: var(--primary);
    text-decoration: none;
}
.auth-forgot-row a:hover {
    text-decoration: underline;
}
.share-link-list {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}
.share-link-row {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}
.share-link-label {
    font-weight: 900;
    color: var(--primary);
}
.admin-share-row .share-link-label {
    color: #b42318;
}
.helper-share-row .share-link-label {
    color: #047857;
}
.share-link-row .share-box {
    min-width: 0;
}
@media (max-width: 760px) {
    .share-link-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .auth-forgot-row {
        text-align: left;
    }
}
