/* Projekt Furina - verspieltes, freundliches Design
   Radius-Regel: Buttons, Inputs, Kacheln 12px, Karten 16px, runde Knöpfe und Pills voll rund. */

:root {
    --bg: #ddf4ff;
    --surface: #ffffff;
    --surface-2: #f1f9ff;
    --text: #3c3c3c;
    --muted: #6b6b6b;
    --line: #c9e8fb;
    --line-strong: #a9d9f5;

    --primary: #a5ed6e;
    --primary-shade: #7cc84a;
    --primary-soft: #e6fad6;
    --on-primary: #111111;

    --accent: #1cb0f6;
    --accent-shade: #1593d0;
    --accent-soft: #d3effd;
    --on-accent: #08283a;

    --danger-soft: #ffe1e1;
    --on-danger: #b3261e;

    --radius: 12px;
    --radius-card: 16px;
    --shadow: 0 0 5px rgba(28, 176, 246, .18);
    --font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
    --bounce: cubic-bezier(.34, 1.56, .64, 1);
    --smooth: cubic-bezier(.16, 1, .3, 1);
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f1d26;
        --surface: #172a36;
        --surface-2: #1c3342;
        --text: #eaf4fa;
        --muted: #a9bdca;
        --line: #284658;
        --line-strong: #33586d;
        --primary-soft: #23391a;
        --accent-soft: #123a50;
        --danger-soft: #3d1c1f;
        --on-danger: #ffb4ad;
        --shadow: 0 0 5px rgba(0, 0, 0, .45);
        color-scheme: dark;
    }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
    margin: 0;
    min-height: 100dvh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: .2px; }
h1 { font-size: 1.6rem; font-weight: 900; }
h2 { font-size: 1.2rem; font-weight: 900; }
p { margin: 0; }
code {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: .92em;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1px 6px;
}
.muted { color: var(--muted); }
.small { font-size: .85rem; }

.skip {
    position: absolute; left: -9999px; top: 8px;
    background: var(--surface); padding: 8px 12px; border-radius: var(--radius); z-index: 100;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ------------------------------------------------------------ Topbar */

.topbar {
    position: sticky; top: 0; z-index: 20;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--line);
}
.topbar-inner {
    max-width: 880px; margin: 0 auto;
    display: flex; align-items: center; gap: 12px;
    padding: 10px 16px; min-height: 64px;
}
.brand {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: var(--text);
    font-weight: 900; font-size: 1.15rem;
}
.brand-drop {
    width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--accent); color: #fff; font-size: 1.25rem;
    box-shadow: inset 0 -4px 0 var(--accent-shade);
    animation: wobble 4s ease-in-out infinite;
}
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav-link {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 12px; border-radius: var(--radius);
    text-decoration: none; color: var(--muted);
    font-weight: 800; text-transform: uppercase; letter-spacing: .8px; font-size: .78rem;
    border: 2px solid transparent;
    transition: background .2s, color .2s, transform .15s var(--bounce);
}
.nav-link i { font-size: 1.2rem; }
.nav-link:hover { background: var(--surface); color: var(--text); transform: translateY(-1px); }
.nav-link.is-active { background: var(--accent-soft); color: var(--accent-shade); border-color: var(--line-strong); }
@media (prefers-color-scheme: dark) { .nav-link.is-active { color: #8fd8ff; } }

.me { display: flex; align-items: center; gap: 8px; }
.me form { margin: 0; }
.me-name { font-weight: 800; }

@media (max-width: 680px) {
    .brand-name, .me-name { display: none; }
    .nav { margin-left: 0; flex: 1; justify-content: center; }
    .nav-link span { display: none; }
    .nav-link { padding: 10px 14px; }
}

/* ------------------------------------------------------------ Layout */

.wrap {
    max-width: 880px; margin: 0 auto;
    padding: 20px 16px 64px;
    display: grid; gap: 18px;
}
.guest-wrap {
    min-height: 100dvh;
    display: grid; place-items: center;
    padding: 24px 16px;
}
.two-col { display: grid; gap: 18px; }
@media (min-width: 760px) { .two-col { grid-template-columns: 1fr 1fr; } }

.card {
    background: var(--surface);
    border: 2px solid var(--line);
    border-bottom-width: 5px;
    border-radius: var(--radius-card);
    padding: 20px;
    box-shadow: var(--shadow);
    position: relative;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.card-head h2, .card-title { display: flex; align-items: center; gap: 8px; }
.card-head h2 i, .card-title i { color: var(--accent); font-size: 1.4rem; }
.card-title { margin-bottom: 14px; }
.sub-head { font-size: 1rem; font-weight: 900; margin: 22px 0 10px; }

.page-head { display: grid; gap: 12px; }
.page-head h1 { display: flex; align-items: center; gap: 10px; }
.page-head h1 i { color: var(--accent); }
.page-head .muted { margin-top: 4px; }

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

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: inherit; font-weight: 900; font-size: .9rem;
    text-transform: uppercase; letter-spacing: .8px; text-decoration: none;
    padding: 13px 20px; min-height: 48px;
    border-radius: var(--radius);
    border: 2px solid transparent; border-bottom-width: 5px;
    cursor: pointer; white-space: nowrap;
    transition: transform .12s, border-bottom-width .12s, filter .2s;
}
.btn i { font-size: 1.15rem; }
.btn:hover { filter: brightness(1.04); transform: translateY(-1px); }
.btn:active { transform: translateY(3px); border-bottom-width: 2px; }
.btn-primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary-shade); }
.btn-accent { background: var(--accent); color: var(--on-accent); border-color: var(--accent-shade); }
.btn-wide { width: 100%; }

.icon-btn {
    width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--surface); color: var(--muted);
    border: 2px solid var(--line); border-bottom-width: 4px;
    cursor: pointer; font-size: 1.1rem;
    transition: transform .15s var(--bounce), color .2s, background .2s;
}
.icon-btn:hover { color: var(--text); transform: scale(1.08); }
.icon-btn:active { transform: translateY(2px); border-bottom-width: 2px; }
.icon-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.icon-btn-soft:hover { color: var(--on-danger); background: var(--danger-soft); }
[data-copy].icon-btn-soft:hover { color: var(--accent-shade); background: var(--accent-soft); }

.round-btn {
    width: 48px; height: 48px; border-radius: 50%; flex: none;
    display: grid; place-items: center;
    background: var(--accent-soft); color: var(--accent-shade);
    border: 2px solid var(--line-strong); border-bottom-width: 4px;
    font-size: 1.25rem; cursor: pointer; text-decoration: none;
    transition: transform .15s var(--bounce);
}
@media (prefers-color-scheme: dark) { .round-btn { color: #8fd8ff; } }
.round-btn:hover { transform: scale(1.08) rotate(-4deg); }
.round-btn:active { transform: translateY(2px) scale(.96); border-bottom-width: 2px; }
.round-btn.is-disabled { opacity: .35; pointer-events: none; }

/* ------------------------------------------------------------ Forms */

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 900; font-size: .95rem; }
.help { color: var(--muted); font-size: .85rem; }

input[type="text"], input[type="password"], input[type="number"], input:not([type]) {
    width: 100%;
    font: inherit; font-weight: 800; color: var(--text);
    background: var(--surface-2);
    border: 2px solid var(--line-strong);
    border-radius: var(--radius);
    padding: 12px 14px; min-height: 48px;
    transition: border-color .2s, box-shadow .2s, transform .15s var(--bounce);
}
input::placeholder { color: var(--muted); opacity: 1; font-weight: 700; }
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.input-with-btn { display: flex; gap: 8px; }

.stepper { display: flex; align-items: center; gap: 10px; }
.stepper input {
    text-align: center; font-size: 1.6rem; font-weight: 900;
    max-width: 140px; -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input.bump { animation: bump .35s var(--bounce); }

.quick { display: flex; gap: 8px; flex-wrap: wrap; }
.quick-btn {
    font: inherit; font-weight: 900; color: var(--on-primary);
    background: var(--primary-soft);
    border: 2px solid var(--primary-shade); border-bottom-width: 4px;
    border-radius: 999px; padding: 6px 16px; cursor: pointer;
    transition: transform .15s var(--bounce);
}
@media (prefers-color-scheme: dark) { .quick-btn { color: var(--primary); } }
.quick-btn:hover { transform: translateY(-2px) rotate(-2deg); }
.quick-btn:active { transform: translateY(2px); border-bottom-width: 2px; }

.fate-form { display: grid; gap: 16px; margin-top: 10px; }

/* ------------------------------------------------------------ Login */

.login-card { width: 100%; max-width: 420px; text-align: center; padding: 28px 22px; }
.login-card .form { text-align: left; margin-top: 18px; }
.login-mascot { position: relative; width: 96px; height: 96px; margin: 0 auto 14px; }
.login-drop {
    position: absolute; inset: 0; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--accent); color: #fff; font-size: 3rem;
    box-shadow: inset 0 -8px 0 var(--accent-shade);
    animation: hop 2.4s var(--bounce) infinite;
    z-index: 1;
}
.login-ripple {
    position: absolute; inset: 0; border-radius: 50%;
    border: 3px solid var(--accent);
    animation: ripple 2.4s ease-out infinite;
}
.login-title { font-size: 1.8rem; }
.login-sub { color: var(--muted); margin-top: 6px; }

.notice { border-radius: var(--radius); padding: 12px 14px; margin-top: 16px; text-align: left; font-size: .92rem; }
.notice-error { background: var(--danger-soft); color: var(--on-danger); border: 2px solid color-mix(in srgb, var(--on-danger) 30%, transparent); }
.notice-warn { background: var(--accent-soft); color: var(--text); border: 2px solid var(--line-strong); }

/* ------------------------------------------------------------- Hero */

.hero { overflow: hidden; padding: 22px 20px 20px; }
.hero > *:not(.bubbles) { position: relative; z-index: 1; }
.hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.eyebrow {
    font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .8px;
    color: var(--muted);
}
.hero-count {
    display: flex; align-items: baseline; gap: 8px;
    font-size: clamp(2.8rem, 9vw, 3.8rem); font-weight: 900; line-height: 1;
    margin-top: 4px; font-variant-numeric: tabular-nums;
}
.hero-count small { font-size: 1.1rem; color: var(--muted); font-weight: 900; }
.hero-sub { margin-top: 8px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.today-badge {
    background: var(--primary); color: var(--on-primary);
    border-radius: 999px; padding: 2px 10px; font-size: .85rem; font-weight: 900;
    animation: pop-in .5s var(--bounce) .9s both;
}
.mascot {
    width: 76px; height: 76px; flex: none; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--accent); color: #fff; font-size: 2.6rem;
    box-shadow: inset 0 -7px 0 var(--accent-shade);
    animation: hop 2.8s var(--bounce) infinite;
}

.bubbles { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.bubbles span {
    position: absolute; bottom: -40px;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--accent-soft); border: 2px solid var(--line-strong);
    animation: rise 9s linear infinite;
    opacity: .8;
}
.bubbles span:nth-child(1) { left: 8%;  animation-delay: 0s;   }
.bubbles span:nth-child(2) { left: 26%; animation-delay: 2.5s; width: 12px; height: 12px; }
.bubbles span:nth-child(3) { left: 48%; animation-delay: 5s;   width: 24px; height: 24px; }
.bubbles span:nth-child(4) { left: 66%; animation-delay: 1.2s; width: 10px; height: 10px; }
.bubbles span:nth-child(5) { left: 82%; animation-delay: 3.8s; }
.bubbles span:nth-child(6) { left: 92%; animation-delay: 6.5s; width: 14px; height: 14px; }

/* -------------------------------------------------------- Pity-Bar */

.pity { margin-top: 18px; }
.pity-you-lane { position: relative; height: 38px; margin: 0 14px; }
.pity-you {
    position: absolute; bottom: 6px;
    transform: translateX(-50%);
    background: var(--text); color: var(--surface);
    font-weight: 900; font-size: .85rem;
    padding: 3px 10px; border-radius: 999px;
    white-space: nowrap; font-variant-numeric: tabular-nums;
}
.pity-you::after {
    content: ""; position: absolute; left: 50%; bottom: -6px;
    border: 6px solid transparent; border-bottom: 0; border-top-color: var(--text);
    transform: translateX(-50%);
}
.pity-you.bounce { animation: you-bounce .6s var(--bounce); }

.pity-track {
    position: relative;
    display: flex; gap: 4px;
    height: 26px;
}
.zone {
    position: relative; overflow: hidden;
    height: 100%;
    background: var(--surface-2);
    border: 2px solid var(--line-strong);
}
.zone-a { border-radius: 999px 6px 6px 999px; }
.zone-a:only-child { border-radius: 999px; }
.zone-b {
    border-radius: 6px 999px 999px 6px;
    background-image: repeating-linear-gradient(135deg, transparent 0 8px, var(--accent-soft) 8px 16px);
}
.fill {
    position: absolute; inset: 0;
    transform-origin: left center;
    transform: scaleX(0);
}
.fill::after {
    content: ""; position: absolute; left: 10px; right: 10px; top: 4px; height: 5px;
    border-radius: 999px; background: rgba(255, 255, 255, .45);
}
.fill-a { background: var(--primary); }
.fill-b {
    background: var(--accent);
    background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.18) 0 8px, transparent 8px 16px);
    background-size: 200% 100%;
    animation: stripes 1.2s linear infinite;
}
.tick {
    position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1.5px;
    border-radius: 2px; background: var(--muted); opacity: .55; z-index: 2;
}

.pity-nums { position: relative; height: 22px; margin-top: 6px; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pity-nums span { position: absolute; transform: translateX(-50%); }
.pity-nums span:first-child { transform: none; }
.pity-nums span:last-child { transform: translateX(-100%); }
.pity-nums .num-strong { color: var(--text); font-weight: 900; }

.legend { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; font-size: .9rem; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend strong { color: var(--text); min-width: 30px; font-variant-numeric: tabular-nums; }
.dot { width: 14px; height: 14px; border-radius: 50%; flex: none; border: 2px solid var(--line-strong); }
.dot-soft { background: var(--muted); border-color: transparent; opacity: .55; }
.dot-a { background: var(--primary); border-color: var(--primary-shade); }
.dot-b { background: var(--accent); border-color: var(--accent-shade); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px;
    background: var(--surface-2); border: 2px solid var(--line);
    font-size: .85rem; font-weight: 800;
    animation: pop-in .45s var(--bounce) both;
}
.chip:nth-child(2) { animation-delay: .08s; }
.chip:nth-child(3) { animation-delay: .16s; }
.chip:nth-child(4) { animation-delay: .24s; }
.chip i { font-size: 1rem; }
.chip-green { background: var(--primary-soft); border-color: var(--primary-shade); }
.chip-green i { color: var(--primary-shade); }
.chip-blue { background: var(--accent-soft); border-color: var(--line-strong); }
.chip-blue i { color: var(--accent); }
.chip-live i { color: var(--accent); animation: pulse 1.6s ease-in-out infinite; }

/* ---------------------------------------------------------- Dailys */

.pill {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 12px; border-radius: 999px;
    background: var(--surface-2); border: 2px solid var(--line);
    font-weight: 900; font-size: .85rem; font-variant-numeric: tabular-nums;
}
.pill-done { background: var(--primary); border-color: var(--primary-shade); color: var(--on-primary); }
.pill-blue { background: var(--accent-soft); border-color: var(--line-strong); }
.pill-blue i { color: var(--accent); }
.pill.bump { animation: bump .45s var(--bounce); }

.daily-grid { display: grid; gap: 12px; margin-top: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.daily-grid form { margin: 0; display: contents; }

.daily-tile {
    width: 100%; text-align: left;
    display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "icon text check" "icon by check";
    align-items: center; column-gap: 12px; row-gap: 4px;
    font: inherit; color: var(--text);
    background: var(--surface);
    border: 2px solid var(--line-strong); border-bottom-width: 5px;
    border-radius: var(--radius);
    padding: 14px; min-height: 92px;
    cursor: pointer;
    transition: transform .15s var(--bounce), background .25s, border-color .25s;
}
.daily-tile:hover { transform: translateY(-2px) rotate(-.5deg); }
.daily-tile:active { transform: translateY(3px); border-bottom-width: 2px; }
.daily-icon {
    grid-area: icon;
    width: 48px; height: 48px; border-radius: var(--radius);
    display: grid; place-items: center;
    background: var(--accent-soft); color: var(--accent); font-size: 1.6rem;
    transition: background .25s, color .25s, transform .3s var(--bounce);
}
.daily-text { grid-area: text; display: grid; gap: 2px; }
.daily-text strong { font-weight: 900; font-size: 1.02rem; }
.daily-text small { color: var(--muted); font-size: .85rem; }
.daily-extra { color: var(--accent-shade) !important; font-weight: 900; }
@media (prefers-color-scheme: dark) { .daily-extra { color: #8fd8ff !important; } }
.daily-by { grid-area: by; font-size: .8rem; color: var(--muted); }
.daily-check {
    grid-area: check;
    width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center;
    border: 3px solid var(--line-strong); color: transparent;
    font-size: 1.1rem;
    transition: background .25s, border-color .25s, color .25s, transform .4s var(--bounce);
}
.daily-tile.is-done { background: var(--primary-soft); border-color: var(--primary-shade); }
.daily-tile.is-done .daily-icon { background: var(--primary); color: var(--on-primary); transform: rotate(-8deg); }
.daily-tile.is-done .daily-check { background: var(--primary); border-color: var(--primary-shade); color: var(--on-primary); transform: scale(1.1); }
.daily-tile.is-done .daily-by { color: var(--text); }
.daily-tile.just-done .daily-check { animation: check-pop .55s var(--bounce); }
.daily-tile.just-done .daily-icon { animation: tada .7s ease; }
.daily-tile.is-busy { opacity: .7; pointer-events: none; }

/* ------------------------------------------------------------- Log */

.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.log-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: var(--radius);
    background: var(--surface-2); border: 2px solid var(--line);
    animation: slide-in .45s var(--smooth) both;
    animation-delay: calc(var(--i, 0) * 40ms + .3s);
}
.log-item form { margin: 0 0 0 auto; }
.log-main { display: grid; gap: 1px; min-width: 0; }
.log-amount { font-weight: 900; color: var(--text); }
.log-meta { font-size: .82rem; color: var(--muted); }
.log-note { font-size: .88rem; overflow-wrap: anywhere; }

.avatar {
    width: 36px; height: 36px; border-radius: 50%; flex: none;
    display: grid; place-items: center;
    background: var(--c, #9aa7b0); color: var(--on, #fff);
    font-weight: 900; font-size: 1rem;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15);
}
.avatar-lg { width: 48px; height: 48px; font-size: 1.25rem; }

.empty { text-align: center; padding: 22px 12px; color: var(--muted); }
.empty i { font-size: 2.6rem; color: var(--accent); display: inline-block; animation: hop 2.6s var(--bounce) infinite; }
.empty p { margin-top: 6px; }

/* ----------------------------------------------------- Zugangsdaten */

.creds { margin: 14px 0 16px; display: grid; gap: 8px; }
.cred-row {
    display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 8px;
    padding: 8px 10px; border-radius: var(--radius);
    background: var(--surface-2); border: 2px solid var(--line);
}
.cred-row dt { color: var(--muted); font-size: .88rem; }
.cred-row dd { margin: 0; display: flex; align-items: center; gap: 8px; min-width: 0; }
.cred-row code { background: transparent; border: 0; padding: 0; font-size: .98rem; overflow-wrap: anywhere; flex: 1; }
.creds.is-open .cred-row { animation: flip-in .45s var(--bounce) both; }
.creds.is-open .cred-row:nth-child(2) { animation-delay: .06s; }
.creds.is-open .cred-row:nth-child(3) { animation-delay: .12s; }
.creds.is-open .cred-row:nth-child(4) { animation-delay: .18s; }
.copied { animation: bump .4s var(--bounce); color: var(--primary-shade) !important; }

/* ---------------------------------------------------- Schicht-Teaser */

.shift-teaser { display: flex; gap: 18px; align-items: center; background: linear-gradient(135deg, var(--surface) 55%, var(--accent-soft)); }
.shift-teaser-art {
    width: 84px; height: 84px; flex: none; border-radius: var(--radius-card);
    display: grid; place-items: center;
    background: var(--primary); color: var(--on-primary); font-size: 2.8rem;
    box-shadow: inset 0 -6px 0 var(--primary-shade);
    animation: wobble 5s ease-in-out infinite;
}
.shift-teaser-body { display: grid; gap: 6px; justify-items: start; }
.shift-teaser-body .btn { margin-top: 8px; }
@media (max-width: 520px) {
    .shift-teaser { flex-direction: column; align-items: flex-start; }
    .shift-teaser-body .btn { width: 100%; }
}

/* ------------------------------------------------------- Schichten */

.week-nav { display: flex; align-items: center; gap: 12px; }
.week-label { font-weight: 900; font-size: 1.05rem; flex: 1; text-align: center; font-variant-numeric: tabular-nums; }
.mine-count { color: var(--muted); }
.mine-count strong { color: var(--text); }
@media (min-width: 720px) {
    .page-head:has(.week-nav) { grid-template-columns: 1fr auto; align-items: center; }
    .week-label { min-width: 150px; }
}

.days { display: grid; gap: 14px; }
.day-card.is-today { border-color: var(--primary-shade); }
.day-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.day-head small { color: var(--muted); font-size: .95rem; margin-left: 4px; }
.day-badges { display: flex; gap: 6px; }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.slots form { margin: 0; display: contents; }
.slot {
    width: 100%; min-height: 76px;
    display: grid; align-content: center; gap: 2px; text-align: left;
    font: inherit; color: var(--text);
    padding: 10px 12px;
    border-radius: var(--radius);
    border: 2px solid var(--line-strong); border-bottom-width: 5px;
    background: var(--surface);
    position: relative; overflow: hidden;
    transition: transform .15s var(--bounce), background .2s;
}
.slot-time { font-size: .82rem; font-weight: 900; font-variant-numeric: tabular-nums; opacity: .85; }
.slot-who { font-size: 1rem; font-weight: 900; display: flex; align-items: center; gap: 4px; overflow-wrap: anywhere; }
.slot-hint { font-size: .72rem; text-transform: uppercase; letter-spacing: .6px; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; }
button.slot { cursor: pointer; }
button.slot:hover { transform: translateY(-2px) rotate(-1deg); }
button.slot:hover .slot-hint, button.slot:focus-visible .slot-hint { opacity: .9; transform: none; }
button.slot:active { transform: translateY(3px); border-bottom-width: 2px; }

.slot-free { border-style: dashed; border-bottom-style: solid; background: var(--surface-2); }
.slot-free .slot-who { color: var(--accent-shade); }
@media (prefers-color-scheme: dark) { .slot-free .slot-who { color: #8fd8ff; } }
.slot-free:hover { background: var(--accent-soft); }

.slot-taken { background: var(--c); color: var(--on); border-color: color-mix(in srgb, var(--c) 70%, #000); }
.slot-taken.is-mine { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--c); }

.slot-past { opacity: .45; background: var(--surface-2); border-style: dotted; border-bottom-width: 2px; }

.slot.is-live::before {
    content: "Jetzt"; position: absolute; bottom: 8px; right: 8px;
    font-size: .65rem; font-weight: 900; text-transform: uppercase; letter-spacing: .5px;
    background: var(--text); color: var(--surface);
    padding: 1px 6px; border-radius: 999px;
    animation: pulse 1.6s ease-in-out infinite;
}

/* -------------------------------------------------------- Accounts */

.team { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.team-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: var(--radius);
    background: var(--surface-2); border: 2px solid var(--line);
    animation: slide-in .45s var(--smooth) both;
    animation-delay: calc(var(--i, 0) * 60ms + .2s);
}
.team-main { display: grid; gap: 2px; min-width: 0; }
.team-item form { margin: 0 0 0 auto; }

/* ---------------------------------------------------------- Toasts */

.toasts {
    position: fixed; z-index: 50; left: 50%; top: 76px;
    transform: translateX(-50%);
    display: grid; gap: 8px; width: min(92vw, 420px);
    pointer-events: none;
}
.is-guest .toasts { top: 16px; }
.toast {
    pointer-events: auto;
    background: var(--surface); color: var(--text);
    border: 2px solid var(--line-strong); border-bottom-width: 5px;
    border-radius: var(--radius);
    padding: 12px 16px; font-weight: 900;
    box-shadow: 0 8px 24px rgba(16, 80, 120, .18);
    animation: toast-in .5s var(--bounce) both;
}
.toast-success { background: var(--primary); color: var(--on-primary); border-color: var(--primary-shade); }
.toast-error { background: var(--danger-soft); color: var(--on-danger); }
.toast.is-leaving { animation: toast-out .35s ease forwards; }

/* --------------------------------------------------------- Konfetti */

.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

/* -------------------------------------------------------- Animationen */

.pop { animation: pop-up .6s var(--bounce) both; animation-delay: calc(var(--i, 0) * 80ms); }
.shake { animation: shake .45s ease; }

@keyframes pop-up { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes flip-in { from { opacity: 0; transform: rotateX(80deg); } to { opacity: 1; transform: none; } }
@keyframes hop { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-10px) scale(1.04, .96); } 45% { transform: translateY(0) scale(.96, 1.04); } }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
@keyframes ripple { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }
@keyframes rise { from { transform: translateY(0); opacity: 0; } 10% { opacity: .8; } to { transform: translateY(-340px); opacity: 0; } }
@keyframes stripes { from { background-position: 0 0; } to { background-position: 45px 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes check-pop { 0% { transform: scale(.3) rotate(-30deg); } 60% { transform: scale(1.3) rotate(8deg); } 100% { transform: scale(1.1); } }
@keyframes tada { 0% { transform: rotate(-8deg); } 25% { transform: rotate(10deg) scale(1.12); } 50% { transform: rotate(-12deg) scale(1.12); } 75% { transform: rotate(6deg); } 100% { transform: rotate(-8deg); } }
@keyframes you-bounce { 0% { transform: translateX(-50%) translateY(0); } 40% { transform: translateX(-50%) translateY(-8px) scale(1.15); } 100% { transform: translateX(-50%) translateY(0); } }
@keyframes shake { 0%, 100% { transform: none; } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(-16px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-12px) scale(.95); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .bubbles { display: none; }
}
