*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

:root {
    --gold: #f5c542;
    --gold-dark: #1a1000;
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

html,
body {
    height: 100%;
    font-family: var(--font-body);
    background: #000;
    color: #fff;
    overflow: hidden;
}

/* ─── TOPBAR ─── */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65) 0%, transparent 100%);
    pointer-events: none;
}

.topbar>* {
    pointer-events: auto;
}

.logo-img {
    height: 36px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.cart-btn {
    position: relative;
    background: rgba(255, 255, 255, 0.12);
    border: 0.5px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 12px;
    font-family: var(--font-body);
    letter-spacing: 1px;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--gold);
    color: var(--gold-dark);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ─── SCROLL CONTAINER ─── */
.homepage {
    height: 100dvh;
    overflow: hidden;
}

.snap-scroll {
    height: 100dvh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.snap-scroll::-webkit-scrollbar {
    display: none;
}

/* ─── SLIDES ─── */
.slide {
    height: 100dvh;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.slide--hero {
    background: #0e0b07;
}

.slide--hero-bg {
    background-image: url('/assets/hintergrunde/cropped-produktpalette-bar-scaled-1.webp');
    background-size: cover;
    background-position: center;
}

.slide--beer {
    background-image:
        radial-gradient(ellipse at 70% 40%, transparent 20%, rgba(0, 0, 0, 0.97) 75%),
        var(--bg);
    background-color: var(--accent, #1a1a1a);
    background-size: cover;
    background-position: 35% center;
    background-repeat: no-repeat;
}

.slide__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.92) 0%,
            rgba(0, 0, 0, 0.45) 45%,
            rgba(0, 0, 0, 0.1) 100%);
}

.slide__content {
    position: relative;
    z-index: 2;
    padding: 0 28px 90px;
    width: 100%;
    max-width: 520px;
}

/* ─── HERO SLIDE ─── */
.pretitle {
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin-bottom: 14px;
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(44px, 9vw, 80px);
    line-height: 1.0;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.accent {
    color: var(--gold);
}

.sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.65;
    margin-bottom: 26px;
    max-width: 380px;
}

/* ─── BEER SLIDE ─── */
.beer-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 0.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    font-size: 11px;
    padding: 3px 11px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.5px;
    align-self: flex-start;
}

h2.beer-name {
    font-family: var(--font-display);
    font-size: clamp(48px, 9vw, 72px);
    line-height: 0.95;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.beer-style {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

.beer-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.val {
    font-family: var(--font-display);
    font-size: 20px;
    letter-spacing: 0.5px;
}

.lbl {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 1.5px;
}

.beer-price {
    font-family: var(--font-display);
    font-size: 28px;
    letter-spacing: 1px;
    color: var(--gold);
    margin-bottom: 18px;
}

/* ─── BUTTONS ─── */
.cta-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    border-radius: 24px;
    padding: 10px 22px;
    font-size: 13px;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    border: none;
    letter-spacing: 0.3px;
    transition: opacity 0.15s;
}

.btn:hover {
    opacity: 0.85;
}

.btn--primary {
    background: var(--gold);
    color: var(--gold-dark);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.1);
    border: 0.5px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.btn--full {
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

/* ─── DESKTOP LAYOUT ─── */
@media (min-width: 768px) {
    .slide--beer {
        background-image:
            linear-gradient(to right, rgba(0,0,0,0.95) 35%, rgba(0,0,0,0.1) 65%),
            var(--bg);
        background-color: var(--accent, #1a1a1a);
        background-size: contain;
        background-position: 100% center;
        background-repeat: no-repeat;
    }

    .slide__overlay {
        background: none; /* Kein zweites Overlay auf Desktop */
    }

    .slide__content {
        padding: 0 64px 0 80px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
        max-width: 50%; /* Nur linke Hälfte belegen */
    }

    h1 {
        font-size: clamp(72px, 8vw, 110px);
    }

    h2.beer-name {
        font-size: clamp(64px, 7vw, 96px);
    }

    .beer-price {
        font-size: 36px;
    }

    .val {
        font-size: 24px;
    }

    .sub {
        font-size: 15px;
    }

    .topbar {
        padding: 20px 48px;
    }

    .logo {
        font-size: 26px;
    }
}

/* ─── CART DRAWER ─── */
.cart-drawer {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(380px, 100vw);
    background: #111;
    z-index: 200;
    padding: 24px 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-drawer__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: 1px;
}

.cart-drawer__header button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    cursor: pointer;
}

.cart-drawer__items {
    flex: 1;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
}

.cart-item__right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item__right button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 15px;
}

.cart-drawer__footer {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    font-family: var(--font-display);
    font-size: 20px;
    letter-spacing: 0.5px;
    border-top: 0.5px solid rgba(255, 255, 255, 0.15);
    margin-top: 8px;
}

.empty {
    color: rgba(255, 255, 255, 0.35);
    font-size: 13px;
    text-align: center;
    margin-top: 48px;
}

.cart-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 199;
}

/* ─── BEER STATS NEU ─── */
.beer-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.stat-block {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-label {
    font-size: 9px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

/* Hopfen */
.hop-row {
    display: flex;
    gap: 4px;
    align-items: center;
}

.hop-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.12);
    transition: color 0.2s;
}

.hop-icon.active {
    color: #7db83a;
}

.hop-val {
    font-family: var(--font-display);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.35);
    margin-left: 6px;
    letter-spacing: 0.5px;
}

/* EBC Skala */
.ebc-track {
    height: 10px;
    border-radius: 5px;
    width: 100%;
    max-width: 200px;
    background: linear-gradient(to right,
            #fef3a0 0%, #f5d060 8%, #e8a020 18%,
            #c87020 30%, #a04010 45%,
            #702010 62%, #3a0f08 78%, #150500 100%);
    position: relative;
}

.ebc-marker {
    position: absolute;
    top: -4px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, 0.9);
    transform: translateX(-50%);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.5);
}

.ebc-labels {
    display: flex;
    justify-content: space-between;
    max-width: 200px;
    margin-top: 4px;
}

.ebc-lbl {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.5px;
}

/* Alkohol */
.alc-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.alc-val {
    font-family: var(--font-display);
    font-size: 32px;
    color: #f5c542;
    letter-spacing: 1px;
}

.alc-unit {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

/* ─── INTERN GEMEINSAM ─── */
.k-topbar {
    background: #111;
    border-bottom: 0.5px solid #222;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}
.k-logo {
    font-family: var(--font-display);
    font-size: 18px;
    letter-spacing: 3px;
    color: #f5c542;
}
.k-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.k-user { font-size: 12px; color: #555; }
.k-btn-ghost {
    background: rgba(255,255,255,0.06);
    border: 0.5px solid rgba(255,255,255,0.15);
    color: #aaa;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 11px;
    text-decoration: none;
    cursor: pointer;
}
.k-search {
    width: 100%;
    background: #1a1a1a;
    border: 0.5px solid #2a2a2a;
    border-radius: 8px;
    padding: 7px 12px;
    color: #fff;
    font-size: 12px;
    outline: none;
    margin-bottom: 8px;
    font-family: var(--font-body);
}
.k-kat-btn {
    flex-shrink: 0;
    background: #1a1a1a;
    border: 0.5px solid #2a2a2a;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 10px;
    color: #666;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.k-kat-btn.active {
    background: #1e1800;
    border-color: #f5c542;
    color: #f5c542;
}
.k-btn-gold-sm {
    background: #f5c542;
    color: #1a1000;
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-body);
}
.k-btn-ghost-sm {
    background: rgba(255,255,255,0.05);
    border: 0.5px solid rgba(255,255,255,0.1);
    color: #666;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 11px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-family: var(--font-body);
    transition: color 0.2s;
}
.k-btn-ghost-sm:hover { color: #aaa; }
.k-cart-del {
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    font-size: 12px;
    flex-shrink: 0;
    transition: color 0.2s;
}
.k-cart-del:hover { color: #c0392b; }
.k-mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0d0d0d;
    border-top: 0.5px solid #1e1e1e;
    z-index: 50;
}
.k-bnav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 4px;
    font-size: 8px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #444;
    background: none;
    border: none;
    border-top: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    font-family: var(--font-body);
    transition: color 0.2s;
}
.k-bnav-item.active { color: #f5c542; border-top-color: #f5c542; }
.k-bnav-icon { font-size: 16px; }
.k-toast {
    position: fixed;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e1e1e;
    border: 0.5px solid #f5c542;
    color: #f5c542;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    z-index: 300;
    white-space: nowrap;
}
.k-modal-bg {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.k-modal {
    background: #161616;
    border: 0.5px solid #2a2a2a;
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 80dvh;
    overflow-y: auto;
}
@media (max-width: 767px) {
    .k-mobile-nav { display: flex; }
}

/* === LAGER === */
.lager-warnungen {
  background: #1a0a00;
  border: 1px solid #c0392b;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
}
.warnung-header { color: #e74c3c; font-weight: bold; margin-bottom: 8px; }
.warnung-item { display: flex; justify-content: space-between; color: #f5c542; padding: 4px 0; font-size: 0.9rem; }
.warnung-bestand { color: #aaa; }

.lager-tabelle-wrap { overflow-x: auto; }
.lager-tabelle { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.lager-tabelle th { text-align: left; padding: 10px 12px; border-bottom: 1px solid #333; color: #f5c542; font-family: 'Bebas Neue', sans-serif; font-size: 1rem; }
.lager-tabelle td { padding: 10px 12px; border-bottom: 1px solid #1a1a1a; color: #eee; }
.lager-tabelle tr.warnung-row td { background: #1a0800; }
.warnung-badge { display: inline-block; background: #c0392b; color: #fff; border-radius: 50%; width: 18px; height: 18px; text-align: center; line-height: 18px; font-size: 0.75rem; margin-left: 6px; }

.modal-lager { max-width: 780px; width: 95%; max-height: 90vh; overflow-y: auto; }
.lager-bestand-gross { font-size: 1.2rem; color: #f5c542; margin: 12px 0 20px; }
.lager-form { background: #111; border-radius: 8px; padding: 16px; margin-bottom: 24px; }
.lager-form h3, .lager-verlauf h3 { font-family: 'Bebas Neue', sans-serif; color: #f5c542; font-size: 1.2rem; margin-bottom: 12px; }
.form-feedback { margin-top: 10px; font-size: 0.9rem; }

.verlauf-tabelle { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.verlauf-tabelle th { text-align: left; padding: 8px 10px; border-bottom: 1px solid #333; color: #888; }
.verlauf-tabelle td { padding: 8px 10px; border-bottom: 1px solid #1a1a1a; color: #ccc; }
.typ-badge { padding: 2px 8px; border-radius: 4px; font-size: 0.8rem; font-weight: bold; }
.typ-zugang { background: #1a3a1a; color: #2ecc71; }
.typ-abgang { background: #3a1a1a; color: #e74c3c; }
.typ-korrektur { background: #1a1a3a; color: #3498db; }
.bestell-ref { color: #f5c542; margin-left: 6px; font-size: 0.8rem; }
.lade-text { color: #888; padding: 20px; text-align: center; }
[x-cloak] { display: none !important; }
/* Falls noch nicht vorhanden */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-box {
  background: #111;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 24px;
  width: 100%;
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-header h2 {
  font-family: 'Bebas Neue', sans-serif;
  color: #f5c542;
  font-size: 1.6rem;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: #aaa;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}

.modal-close:hover { color: #fff; }

@media (max-width: 900px) {
    .k-topbar-right .k-btn-ghost { display: none; }
    .k-topbar-right .k-btn-ghost:last-child { display: inline-block; } /* Logout immer sichtbar */
}

@media (max-width: 767px) {
    .k-topbar { display: none; }
}

a.k-btn-ghost {
    text-decoration: none;
    color: #aaa;
}
a.k-btn-ghost:visited {
    color: #aaa;
}

a.k-btn-ghost,
a.k-btn-ghost:visited,
a.k-btn-ghost:hover {
    text-decoration: none;
    color: #aaa;
}

a.k-bnav-item,
a.k-bnav-item:visited {
    text-decoration: none;
    color: #444;
}
a.k-bnav-item.active,
a.k-bnav-item.active:visited {
    color: #f5c542;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.intern-link {
    color: rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.intern-link:hover {
    color: rgba(255,255,255,0.9);
}

.slide--footer {
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 0.5px solid rgba(255,255,255,0.08);
}

.slide__content--footer {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    height: 52px;
    opacity: 0.85;
    filter: brightness(0) invert(1);
}

.footer-claim {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.05em;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold); }

.footer-divider {
    color: rgba(255,255,255,0.2);
    font-size: 12px;
}

.footer-copy {
    font-size: 11px;
    color: rgba(255,255,255,0.2);
    letter-spacing: 0.5px;
}