:root {
    --fwk-red: #cc0000;
    /* RAL 3000 nah dran */
    --bg: #050509;
    --card-bg: #111217;
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --accent-soft: rgba(204, 0, 0, 0.16);
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-soft: 0 28px 60px rgba(0, 0, 0, 0.35);
    --border-subtle: 1px solid rgba(148, 163, 184, 0.2);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #111827 0, #020617 55%, #000 100%);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

/* Optional mit Foto:
body {
    background-image:
        linear-gradient(to bottom, rgba(15,23,42,0.95), rgba(15,23,42,0.98)),
        url('/assets/img/hero-firefighters.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
*/

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

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@supports (height: 100dvh) {
    .page {
        min-height: 100dvh;
    }
}

/* NAVBAR */

.nav {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    background: linear-gradient(to bottom,
            rgba(15, 23, 42, 0.9),
            rgba(15, 23, 42, 0.6),
            transparent);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%,
            #fee2e2 0,
            #b91c1c 35%,
            #450a0a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fee2e2;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow:
        0 0 0 1px rgba(248, 250, 252, 0.3),
        0 8px 24px rgba(0, 0, 0, 0.4);
    transform-origin: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand:hover .brand-mark {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 12px 30px rgba(185, 28, 28, 0.55);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.brand-title {
    font-size: 0.98rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #e5e7eb;
}

.brand-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.nav-pill {
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: rgba(15, 23, 42, 0.7);
    color: var(--text-muted);
    border: 1px solid rgba(148, 163, 184, 0.6);
}

.nav-cta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-cta button {
    border: none;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
    cursor: pointer;
    background: white;
    color: #111827;
    font-weight: 600;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.5);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.nav-cta button:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.75);
}

.nav-cta button.secondary {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: none;
}

.nav-cta button.secondary:hover {
    background: rgba(15, 23, 42, 0.8);
}

/* LAYOUT */

.content {
    flex: 1;
}

.shell {
    max-width: 1120px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 3.5rem;
}

/* HERO */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr);
    gap: 2.5rem;
    align-items: center;
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
    }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.2rem 0.6rem 0.2rem 0.25rem;
    border-radius: 999px;
    border: 1px solid rgba(248, 250, 252, 0.16);
    background: radial-gradient(circle at left,
            rgba(248, 113, 113, 0.28),
            transparent 55%);
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.eyebrow-dot {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.14);
    border: 1px solid rgba(254, 202, 202, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.hero h1 {
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
    margin: 0 0 0.8rem;
}

.hero h1 .highlight {
    color: var(--fwk-red);
}

.hero-lead {
    font-size: 0.98rem;
    color: var(--text-muted);
    max-width: 36rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.6rem 0 0.4rem;
}

.btn-primary {
    border-radius: 999px;
    border: none;
    padding: 0.8rem 1.4rem;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #fee2e2, var(--fwk-red));
    color: #111827;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 22px 50px rgba(248, 113, 113, 0.55);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 26px 60px rgba(248, 113, 113, 0.75);
    filter: brightness(1.03);
}

.btn-ghost {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    padding: 0.8rem 1.1rem;
    font-size: 0.86rem;
    background: rgba(15, 23, 42, 0.7);
    color: var(--text-main);
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn-ghost:hover {
    transform: translateY(-2px);
    background: rgba(31, 41, 55, 0.95);
    border-color: rgba(209, 213, 219, 0.85);
}

.hero-meta {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.divider-dot {
    width: 3px;
    height: 3px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.8);
}

/* HERO VISUAL */

.hero-visual {
    position: relative;
}

.card-phone {
    position: relative;
    border-radius: 32px;
    padding: 1.4rem 1rem;
    background: radial-gradient(circle at top left,
            rgba(248, 250, 252, 0.15),
            rgba(15, 23, 42, 0.98));
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.25);
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.card-phone::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(135deg,
            rgba(248, 113, 113, 0.1),
            transparent 40%,
            rgba(56, 189, 248, 0.08));
    mix-blend-mode: screen;
    pointer-events: none;
}

.phone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 1;
}

.pill {
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.5);
    color: var(--text-muted);
}

.signal {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.phone-main-title {
    font-size: 1.2rem;
    margin: 0.2rem 0 0.1rem;
}

.phone-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.9rem;
}

.drink-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    position: relative;
    z-index: 1;
}

.drink-tile {
    border-radius: 14px;
    padding: 0.65rem 0.7rem;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(75, 85, 99, 0.8);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    cursor: default;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.drink-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.8);
    border-color: rgba(248, 250, 252, 0.6);
}

.drink-name {
    font-size: 0.78rem;
}

.drink-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.drink-price {
    font-weight: 600;
    color: #facc15;
}

.chip {
    font-size: 0.7rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: rgba(31, 41, 55, 0.85);
    border: 1px solid rgba(75, 85, 99, 0.9);
}

.balance-card {
    margin-top: 0.85rem;
    border-radius: 16px;
    padding: 0.6rem 0.8rem;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(206, 17, 17, 0.55);
    font-size: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.balance-amount {
    font-weight: 600;
    color: rgba(206, 17, 17, 0.55);
}

.balance-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.balance-last-payment {
    font-size: 0.72rem;
}

.hero-tagline {
    margin-top: 0.9rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
}

.hero-photo-tag {
    position: absolute;
    inset-inline: 0;
    bottom: -2.3rem;
    text-align: center;
    font-size: 0.7rem;
    color: rgba(148, 163, 184, 0.85);
}

/* FEATURE SECTION */

.section {
    margin-top: 3.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 1.6rem;
}

.section-title {
    font-size: 1.4rem;
    margin: 0 0 0.4rem;
}

.section-kicker {
    font-size: 0.86rem;
    color: var(--text-muted);
    max-width: 30rem;
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 0.25rem 0.6rem;
    font-size: 0.74rem;
    color: var(--text-muted);
    background: rgba(15, 23, 42, 0.75);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.3rem;
}

@media (max-width: 900px) {
    .feature-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.feature-card {
    border-radius: var(--radius-lg);
    padding: 1.1rem;
    background: radial-gradient(circle at top left,
            rgba(248, 113, 113, 0.18),
            rgba(15, 23, 42, 1));
    border: var(--border-subtle);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.9);
    border-color: rgba(248, 250, 252, 0.5);
}

.feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.8);
    margin-bottom: 0.7rem;
}

.feature-card h3 {
    font-size: 0.98rem;
    margin: 0 0 0.25rem;
}

.feature-card p {
    margin: 0;
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* TIMELINE / STATUS */

.timeline {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr);
    gap: 1.8rem;
}

@media (max-width: 900px) {
    .timeline {
        grid-template-columns: minmax(0, 1fr);
    }
}

.steps {
    border-radius: var(--radius-xl);
    border: var(--border-subtle);
    padding: 1.1rem 1.2rem;
    background: radial-gradient(circle at top left,
            rgba(148, 163, 184, 0.12),
            rgba(15, 23, 42, 0.96));
}

.step {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    padding: 0.6rem 0;
}

.step-index {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.step h4 {
    margin: 0 0 0.2rem;
    font-size: 0.9rem;
}

.step p {
    margin: 0;
    font-size: 0.83rem;
    color: var(--text-muted);
}

.status-card {
    border-radius: var(--radius-xl);
    border: var(--border-subtle);
    padding: 1rem 1.1rem;
    background: rgba(15, 23, 42, 0.96);
}

.status-title {
    margin: 0 0 0.4rem;
    font-size: 0.98rem;
}

.status-list {
    list-style: none;
    padding: 0;
    margin: 0.3rem 0 0.6rem;
    font-size: 0.86rem;
}

.status-list li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.35rem;
}

.status-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.16);
    border: 1px solid rgba(74, 222, 128, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.status-list li.pending .status-dot {
    background: rgba(234, 179, 8, 0.12);
    border-color: rgba(250, 204, 21, 0.8);
}

.status-note {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* FOOTER (Landingpage-Footer mit .footer-inner) */

footer {
    border-top: 1px solid rgba(148, 163, 184, 0.3);
    padding: 1.2rem 1.25rem 1.6rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ANIMATIONEN */

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatSoft {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes pulseSoft {
    0% {
        box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.0);
        border-color: rgba(148, 163, 184, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(248, 113, 113, 0.16);
        border-color: rgba(248, 250, 252, 0.9);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.0);
        border-color: rgba(148, 163, 184, 0.4);
    }
}

.animate-fade-in-up {
    opacity: 0;
    animation-name: fadeInUp;
    animation-duration: 0.65s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
    animation-delay: 0.05s;
}

.delay-1 {
    animation-delay: 0.18s;
}

.delay-2 {
    animation-delay: 0.3s;
}

.delay-3 {
    animation-delay: 0.42s;
}

.float-soft {
    animation: floatSoft 5s ease-in-out infinite;
}

.pulse-soft {
    animation: pulseSoft 4s ease-out infinite;
}

/* FLASH-MESSAGES */

.flash-container {
    max-width: 1120px;
    margin: 0 auto 1.5rem;
    padding: 0 1.25rem;
}

.flash {
    border-radius: 999px;
    padding: 0.6rem 1rem;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.7);
    animation: fadeInUp 0.45s ease-out;
}

.flash-success {
    background: rgba(22, 163, 74, 0.18);
    border: 1px solid rgba(74, 222, 128, 0.85);
    color: #bbf7d0;
}

.flash-error {
    background: rgba(220, 38, 38, 0.18);
    border: 1px solid rgba(248, 113, 113, 0.9);
    color: #fecaca;
}

/* MODAL (Registrierung) */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 50;
}

.modal-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.modal-dialog {
    width: 100%;
    max-width: 460px;
    border-radius: 24px;
    background: radial-gradient(circle at top left, rgb(62, 50, 50), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.85);
    padding: 1.4rem 1.5rem 1.3rem;
    animation: fadeInUp 0.35s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.6rem;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.2rem;
}

.modal-close {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: transform 0.15s ease, color 0.15s ease;
}

.modal-close:hover {
    color: #e5e7eb;
    transform: scale(1.1);
}

.modal-intro {
    margin: 0 0 0.8rem;
    font-size: 0.86rem;
    color: var(--text-muted);
}

.modal-form {
    margin-top: 0.4rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.form-row label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.form-row input {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    padding: 0.55rem 0.9rem;
    font-size: 0.86rem;
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-main);
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.form-row input:focus {
    border-color: rgba(248, 113, 113, 0.9);
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.6);
    background: rgba(15, 23, 42, 0.98);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-top: 0.9rem;
    margin-bottom: 0.4rem;
}

.modal-hint {
    margin: 0.2rem 0 0;
    font-size: 0.74rem;
    color: var(--text-muted);
}

/* Feedback-Dialog */

.feedback-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 60;
}

.feedback-dialog {
    width: 100%;
    max-width: 420px;
    border-radius: 24px;
    background: radial-gradient(circle at top left,
            rgba(248, 113, 113, 0.14),
            rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(248, 250, 252, 0.35);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.85);
    padding: 1.2rem 1.4rem 1.1rem;
    animation: fadeInUp 0.35s ease-out;
}

.feedback-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #f9fafb;
}

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

.feedback-backdrop.fade-out {
    animation: feedbackFadeOut 0.3s ease forwards;
}

@keyframes feedbackFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(6px);
    }
}

/* HEADER/FOOTER-KLASSEN FÜR header.php/footer.php */

.main-header {
    background: #c00000;
    /* RAL 3000 */
    color: #fff;
    padding: 20px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.main-content {
    padding: 30px;
    min-height: 70vh;
}

.main-footer {
    background: #111;
    color: #bbb;
    padding: 25px;
    text-align: center;
    font-size: 15px;
    border-top: 1px solid #333;
}

.main-footer a {
    color: #bbb;
    margin: 0 12px;
    text-decoration: none;
    font-weight: 500;
}

.main-footer a:hover {
    color: #fff;
}

/* Seite für Login / Registrierung */
.page-auth {
    min-height: calc(100vh - var(--header-height, 60px));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/* Wrapper sorgt dafür, dass das Formular nicht zu breit wird */
.auth-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .auth-container {
        max-width: 640px;
    }
}

.auth-card {
    background: var(--surface-color, #0b0b0c);
    border-radius: 24px;
    padding: 2rem 1.75rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Titel / Untertitel im Card Kopf */
.auth-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

/* Formular-Grids: Mobile = 1 Spalte, Desktop = 2 Spalten */
.form-auth {
    margin-top: 0.5rem;
}

.form-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* 2 Spalten ab Tabletbreite */
@media (min-width: 768px) {
    .form-grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.form-group input {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 0.65rem 0.75rem;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.02);
    color: #fff;
}

/* Hinweis unter den Feldern */
.form-hint {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0.5rem 0 1rem;
}

/* Alerts */
.alert {
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.alert-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.8);
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.8);
}

/* Button Bootstrap-like, aber RAL3000 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: none;
    padding: 0.7rem 1.4rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
    background: #af1724;
    /* RAL3000-ähnliches Feuerwehrrot */
    color: #fff;
    box-shadow: 0 10px 25px rgba(175, 23, 36, 0.45);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 35px rgba(175, 23, 36, 0.6);
}

.btn-block {
    width: 100%;
}

/* Text unter dem Formular */
.auth-footer-text {
    margin-top: 1rem;
    font-size: 0.85rem;
    text-align: center;
}

.auth-footer-text a {
    color: #ffffff;
    text-decoration: underline;
}

.app-main {
    padding: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    padding: 24px;
}

.muted {
    color: rgba(255, 255, 255, 0.65);
}

.divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.14);
    margin: 16px 0;
}

.list {
    margin: 12px 0 0 18px;
}

.admin-hint {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(177, 0, 23, 0.12);
    border: 1px solid rgba(177, 0, 23, 0.35);
}

.theke {
    padding: 1rem;
}

.saldo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.getraenke-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.drink-card {
    background: #fff;
    border-radius: 14px;
    padding: .5rem;
    border: none;
    text-align: left;
    position: relative;
}

.drink-img {
    position: relative;
}

.drink-img img {
    width: 100%;
    border-radius: 10px;
}

.drink-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #c40000;
    color: #fff;
    font-size: .8rem;
    padding: 2px 6px;
    border-radius: 999px;
}

.drink-info {
    margin-top: .5rem;
}

.drink-name {
    font-weight: 600;
}

.drink-meta {
    font-size: .85rem;
    color: #666;
}

.buchung-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, .1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toast {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 5.2rem;
    /* über der Buchungsleiste */
    background: #fff;
    border-radius: 14px;
    padding: .9rem 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    z-index: 999;
}

.toast-text {
    line-height: 1.2;
    font-size: .95rem;
}

#toast-sub {
    color: #666;
    margin-top: .25rem;
    font-size: .85rem;
}

.buchung-hinweis {
    display: block;
    margin-top: .35rem;
    font-size: .85rem;
    color: #666;
}

.theke-page {
    padding: 1rem;
    max-width: 980px;
    margin: 0 auto;
    padding-bottom: calc(1rem + 92px + env(safe-area-inset-bottom));
}

.topbar {
    margin-bottom: 1rem;
}

.saldo-card {
    background: rgba(255, 255, 255, .75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 18px;
    padding: 1rem 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.saldo-label {
    font-size: .85rem;
    color: rgba(0, 0, 0, .65);
}

.saldo-value {
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: .2rem;
    letter-spacing: -.02em;
}

.saldo-sub {
    font-size: .8rem;
    color: rgba(0, 0, 0, .55);
    margin-top: .25rem;
}

.grid {
    display: grid;
    gap: .9rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

@media (max-width: 360px) {
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

@media (min-width: 900px) {
    .grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.drink {
    border: 0;
    padding: .65rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, .90);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
    text-align: left;
    width: 100%;
    transition: transform .08s ease, box-shadow .2s ease;
    touch-action: manipulation;
}

.drink:active {
    transform: scale(.985);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .10);
}


.drink-media {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(0, 0, 0, .04);
    height: clamp(110px, 18vw, 160px);
    /* <- einheitliche Höhe, passt sich ans Gerät an */
}

/* Bild füllt das Fenster immer sauber */
.drink-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* <- wichtig: nicht cover */
    object-position: center;
    display: block;
    padding: 10px;
    /* optisch schöner bei schmalen Flaschen */
    box-sizing: border-box;
}

.badge {
    position: absolute;
    top: .55rem;
    right: .55rem;
    min-width: 26px;
    height: 26px;
    padding: 0 .45rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    color: #fff;
    background: #c40000;
    box-shadow: 0 10px 20px rgba(196, 0, 0, .25);
}

.drink-meta {
    margin-top: .65rem;
}

.drink-name {
    font-weight: 700;
    letter-spacing: -.01em;
}

.drink-sub {
    margin-top: .15rem;
    font-size: .85rem;
    color: rgba(0, 0, 0, .6);
}

.actionbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: .9rem 1rem calc(.9rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .10);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
}

.action-title {
    font-weight: 800;
    letter-spacing: -.01em;
}

.action-sub {
    font-size: .9rem;
    color: rgba(0, 0, 0, .65);
    margin-top: .2rem;
}

.btn {
    border: 0;
    border-radius: 999px;
    padding: .75rem 1rem;
    font-weight: 700;
    touch-action: manipulation;
}

.btn-ghost {
    background: rgba(0, 0, 0, .06);
}

.btn-ghost:active {
    transform: scale(.98);
}

.toast {
    position: fixed;
    left: 1rem;
    right: 1rem;
    top: 1rem;
    background: rgba(0, 0, 0, .82);
    color: #fff;
    padding: .85rem 1rem;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
    z-index: 1000;
}

/* THEKE – Bilder immer gleich HOCH (Icon-Höhe) */
.theke-page .drink-media {
    height: clamp(110px, 18vw, 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    /* Abstand zum Rand, wirkt wie "Icon-Padding" */
    overflow: hidden;
    background: rgba(0, 0, 0, .04);
    border-radius: 14px;
}

/* Höhe ist führend: jedes Bild wird auf Container-Höhe skaliert */
.theke-page .drink-media img {
    height: 100% !important;
    /* garantiert gleiche Icon-Höhe */
    width: auto !important;
    /* proportional */
    max-width: 100%;
    /* verhindert Überlaufen bei extrem breiten Bildern */
    object-fit: unset !important;
    /* nicht mehr über object-fit skalieren */
    display: block;
}

/* Hidden-Attribut erzwingen (verhindert sichtbare Badges/Toast beim Laden) */
.badge[hidden],
.toast[hidden] {
    display: none !important;
}

/* --- Success Overlay (Apple-like, modern) --- */
.success-overlay[hidden] {
    display: none;
}

.success-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, .22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.success-card {
    position: relative;
    width: min(420px, calc(100vw - 32px));
    border-radius: 28px;
    padding: 22px 18px 18px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .22);
    text-align: center;
    transform: translateY(10px) scale(.98);
    opacity: 0;
    animation: successIn .22s ease-out forwards;
}

@keyframes successIn {
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.success-burst {
    position: absolute;
    inset: -80px;
    background:
        radial-gradient(circle at 50% 50%, rgba(220, 0, 0, .18), transparent 55%),
        radial-gradient(circle at 50% 50%, rgba(220, 0, 0, .10), transparent 65%);
    filter: blur(0px);
    opacity: .9;
    animation: burstPulse .55s ease-out both;
    pointer-events: none;
}

@keyframes burstPulse {
    0% {
        transform: scale(.75);
        opacity: 0;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.08);
        opacity: .0;
    }
}

.success-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 10px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    color: #d40000;
    /* RAL3000-Anmutung */
    background: rgba(212, 0, 0, .10);
    box-shadow: inset 0 0 0 1px rgba(212, 0, 0, .12);
}

.success-check {
    width: 44px;
    height: 44px;
}

.success-title {
    font-weight: 700;
    letter-spacing: .2px;
    font-size: 20px;
    margin-top: 2px;
}

.success-meta {
    margin-top: 6px;
    font-size: 14px;
    color: rgba(0, 0, 0, .62);
}

.success-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 28px;
    pointer-events: none;
}

.success-particles i {
    position: absolute;
    left: 50%;
    top: 55%;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(212, 0, 0, .85);
    transform: translate(-50%, -50%) scale(.6);
    opacity: 0;
    animation: particleFly .65s ease-out forwards;
    filter: blur(.0px);
}

@keyframes particleFly {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(.65);
    }

    10% {
        opacity: .95;
    }

    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.9);
    }
}

/* Prefer-reduced-motion: respektieren */
@media (prefers-reduced-motion: reduce) {

    .success-card,
    .success-burst,
    .success-particles i {
        animation: none !important;
    }
}

/* Error-State für die gleiche Karte */
.success-card.is-error .success-icon {
    color: rgba(0, 0, 0, .72);
    background: rgba(0, 0, 0, .08);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .10);
}

.success-card.is-error .success-burst {
    background:
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, .14), transparent 55%),
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, .08), transparent 65%);
}

/* Alias: booking-* nutzt exakt das gleiche Styling wie success-* */
.booking-overlay[hidden] {
    display: none;
}

.booking-overlay {
    all: unset;
}

.booking-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, .22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.booking-card {
    position: relative;
    width: min(420px, calc(100vw - 32px));
    border-radius: 28px;
    padding: 22px 18px 18px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .22);
    text-align: center;
    transform: translateY(10px) scale(.98);
    opacity: 0;
    animation: successIn .22s ease-out forwards;
}

.booking-burst {
    position: absolute;
    inset: -80px;
    background: radial-gradient(circle at 50% 50%, rgba(220, 0, 0, .18), transparent 55%), radial-gradient(circle at 50% 50%, rgba(220, 0, 0, .10), transparent 65%);
    opacity: .9;
    animation: burstPulse .55s ease-out both;
    pointer-events: none;
}

.booking-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 10px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    color: #d40000;
    background: rgba(212, 0, 0, .10);
    box-shadow: inset 0 0 0 1px rgba(212, 0, 0, .12);
}

.booking-check {
    width: 44px;
    height: 44px;
}

.booking-title {
    font-weight: 700;
    letter-spacing: .2px;
    font-size: 20px;
    margin-top: 2px;
}

.booking-meta {
    margin-top: 6px;
    font-size: 14px;
    color: rgba(0, 0, 0, .62);
}

.booking-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 28px;
    pointer-events: none;
}

.booking-particles i {
    position: absolute;
    left: 50%;
    top: 55%;
    border-radius: 999px;
    background: rgba(212, 0, 0, .85);
    transform: translate(-50%, -50%) scale(.6);
    opacity: 0;
    animation: particleFly .65s ease-out forwards;
}

/* Error-State */
.booking-card.is-error .booking-icon {
    color: rgba(0, 0, 0, .72);
    background: rgba(0, 0, 0, .08);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .10);
}

.booking-card.is-error .booking-burst {
    background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, .14), transparent 55%),
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, .08), transparent 65%);
}

/* Grundlayout Header (falls du schon etwas hast, nur die neuen Klassen ergänzen) */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* Desktop Nav standardmäßig sichtbar */
.nav-desktop {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Burger standardmäßig verstecken */
.nav-burger {
    display: none;
    background: transparent;
    border: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
}

.nav-burger:active {
    transform: scale(0.98);
}

.burger-lines {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    position: relative;
    margin: 0 auto;
    border-radius: 2px;
}

.burger-lines::before,
.burger-lines::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.burger-lines::before {
    top: -7px;
}

.burger-lines::after {
    top: 7px;
}

/* Mobile: ab einer Breite Desktop-Nav ausblenden, Burger einblenden */
@media (max-width: 860px) {
    .nav-desktop {
        display: none;
    }

    .nav-burger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    z-index: 999;
}

/* Off-Canvas Menü rechts */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(86vw, 360px);
    background: rgba(20, 20, 20, 0.98);
    color: #fff;
    transform: translateX(110%);
    transition: transform 220ms ease;
    z-index: 1000;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu-title {
    font-weight: 600;
    letter-spacing: 0.2px;
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 0;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.mobile-menu-nav {
    padding: 10px 10px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-link {
    display: flex;
    align-items: center;
    padding: 12px 12px;
    border-radius: 14px;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.mobile-link:active {
    transform: scale(0.99);
}

.mobile-link.danger {
    background: rgba(255, 80, 80, 0.18);
}

/* Scroll-Lock wenn Menü offen */
body.menu-open {
    overflow: hidden;
}

.saldo-negativ {
    color: #c40000;
    /* Feuerwehr-rot / Alarmrot */
    font-weight: 600;
}

.saldo-positiv {
    color: inherit;
    /* Standardfarbe */
}