:root {
  --bg: #090604;
  --bg-2: #140c07;
  --surface: rgba(30, 18, 10, .82);
  --surface-2: rgba(50, 30, 15, .72);
  --card-solid: #21150b;
  --gold: #d99a2b;
  --gold-2: #f7c76d;
  --gold-3: #8b5515;
  --cream: #fff5df;
  --text: #fff8ec;
  --muted: #cbb28c;
  --soft: rgba(255, 245, 223, .72);
  --danger: #ff766d;
  --ok: #65d19e;
  --border: rgba(255, 245, 223, .14);
  --border-strong: rgba(247, 199, 109, .28);
  --shadow: 0 24px 70px rgba(0,0,0,.46);
  --radius: 28px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% -10%, rgba(217,154,43,.30), transparent 32%),
    radial-gradient(circle at 90% 10%, rgba(139,85,21,.25), transparent 28%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 40%, #050302);
  color: var(--text);
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 70%);
}
a { color: inherit; }
.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.site-nav {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--border);
  background: rgba(9,6,4,.72);
  backdrop-filter: blur(18px);
}
.site-nav__inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 950; letter-spacing: -.03em; }
.brand-mark { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; color: #160d06; background: linear-gradient(135deg, var(--gold), var(--gold-2)); box-shadow: 0 10px 30px rgba(217,154,43,.25); }
.brand small { display: block; color: var(--muted); font-weight: 800; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.site-nav__links { display: flex; align-items: center; gap: 10px; }
.site-nav__links a { text-decoration: none; color: var(--soft); font-weight: 850; padding: 10px 13px; border-radius: 999px; }
.site-nav__links a:hover { background: rgba(255,255,255,.08); color: var(--text); }
.eyebrow { margin: 0 0 12px; color: var(--gold-2); text-transform: uppercase; letter-spacing: .17em; font-weight: 950; font-size: .73rem; }
h1, h2, h3 { margin: 0; line-height: .98; }
h1 { font-size: clamp(2.45rem, 7vw, 5.9rem); letter-spacing: -.075em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.65rem); letter-spacing: -.055em; }
h3 { font-size: 1.42rem; letter-spacing: -.035em; }
p { color: var(--muted); line-height: 1.68; }
.lead { font-size: clamp(1rem, 2vw, 1.22rem); max-width: 700px; color: rgba(255,245,223,.78); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 0 22px; border-radius: 999px; border: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #160d06; font-weight: 950; text-decoration: none; cursor: pointer;
  box-shadow: 0 16px 34px rgba(217,154,43,.23);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 20px 48px rgba(217,154,43,.30); }
.btn-small { min-height: 40px; padding: 0 15px; font-size: .92rem; }
.btn-ghost { background: rgba(255,255,255,.07); color: var(--cream); box-shadow: none; border: 1px solid var(--border); }
.admin-link { color: var(--gold-2); text-decoration: none; font-weight: 900; }
.home-hero {
  min-height: calc(78vh - 68px); display: flex; align-items: center; padding: 92px 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.80), rgba(0,0,0,.34) 55%, rgba(0,0,0,.12)),
    url('../../uploads/beer-wallpapers/sample-wallpaper.png') center/cover;
  position: relative;
  overflow: hidden;
}
.home-hero::after { content:""; position:absolute; left:0; right:0; bottom:-1px; height:150px; background: linear-gradient(to top, var(--bg), transparent); }
.home-hero__content { position: relative; z-index: 1; width: min(900px, 100%); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.trust-row { display:flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.trust-row span, .hero-stats span, .chip {
  padding: 10px 14px; border: 1px solid var(--border); border-radius: 999px; background: rgba(0,0,0,.28); color: var(--gold-2); font-weight: 950;
}
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 54px 0 24px; }
.beer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-bottom: 70px; }
.beer-card, .panel, .empty-card, .metric, .review-card, .feature-card {
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025)), var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.beer-card { overflow: hidden; position: relative; transition: transform .2s ease, border-color .2s ease; }
.beer-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.beer-card__media { position: relative; height: 230px; overflow: hidden; }
.beer-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.beer-card:hover .beer-card__media img { transform: scale(1.045); }
.beer-card__media::after { content:""; position:absolute; inset:0; background: linear-gradient(to top, rgba(0,0,0,.72), transparent 58%); }
.score-badge { position: absolute; right: 16px; bottom: 16px; z-index: 2; display:grid; place-items:center; min-width: 72px; height: 72px; border-radius: 22px; background: rgba(12,7,4,.74); border: 1px solid var(--border-strong); color: var(--gold-2); font-weight: 950; box-shadow: 0 14px 34px rgba(0,0,0,.32); }
.score-badge small { display: block; color: var(--muted); font-size: .72rem; margin-top: 2px; }
.beer-card__body { padding: 22px; }
.beer-card__body p { margin-bottom: 0; }
.card-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--gold-2); font-weight: 900; margin: 18px 0; }
.empty-card { padding: 34px; color: var(--muted); }
.beer-hero { min-height: 570px; display: flex; position: relative; overflow: hidden; background: #050302; }
.beer-hero::after { content:""; position:absolute; left:0; right:0; bottom:-1px; height:120px; background: linear-gradient(to top, var(--bg), transparent); z-index: 2; }
.beer-hero__bg { position: absolute; inset: -28px; background-image: var(--beer-wallpaper); background-size: cover; background-position: center; filter: blur(22px); opacity: .58; transform: scale(1.05); }
.beer-hero__wallpaper { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; z-index: 0; }
.beer-hero__overlay { width: 100%; display: flex; align-items: end; background: linear-gradient(to top, rgba(0,0,0,.90), rgba(0,0,0,.48), rgba(0,0,0,.10)); padding: 98px 0 62px; position: relative; z-index:1; }
.beer-hero__content p:not(.eyebrow) { max-width: 720px; font-size: 1.1rem; color: rgba(255,245,223,.80); }
.hero-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.rating-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 22px; margin-top: -42px; padding-bottom: 70px; position: relative; z-index: 2; }
.panel { padding: 30px; }
.rating-form, .admin-form, .login-box { display: grid; gap: 20px; }
label { display: grid; gap: 8px; color: var(--cream); font-weight: 880; }
.field-note { color: var(--muted); font-size: .9rem; font-weight: 650; margin-top: -2px; }
input, textarea, select {
  width: 100%; border: 1px solid var(--border); border-radius: 17px; padding: 14px 15px;
  background: rgba(0,0,0,.26); color: var(--cream); font: inherit; outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
input:focus, textarea:focus, select:focus { border-color: rgba(247,199,109,.58); box-shadow: 0 0 0 4px rgba(217,154,43,.12); background: rgba(0,0,0,.34); }
input[type="file"] { padding: 12px; }
textarea { resize: vertical; }
.ratings-grid, .form-grid, .metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.rating-sliders { align-items: stretch; }
.taste-block { padding: 18px; border: 1px solid var(--border); border-radius: 22px; background: rgba(0,0,0,.18); }
.rating-slider { display: grid; gap: 14px; margin: 0; }
.overall-slider { grid-column: 1 / -1; }
.taste-block__head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 0; color: var(--cream); }
.taste-block__head > span { display: grid; gap: 4px; }
.taste-block__head strong { font-size: 1rem; }
.taste-block__head small { color: var(--muted); font-size: .86rem; font-weight: 650; line-height: 1.35; }
.taste-block__head b { flex: 0 0 auto; min-width: 58px; text-align: right; color: var(--gold-2); font-size: 1.05rem; }
input[type="range"] { padding: 0; height: 34px; accent-color: var(--gold); cursor: pointer; background: transparent; }
input[type="range"]::-webkit-slider-runnable-track { height: 9px; border-radius: 999px; background: linear-gradient(90deg, rgba(217,154,43,.75), rgba(255,255,255,.10)); border: 1px solid rgba(255,245,223,.12); }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 24px; height: 24px; margin-top: -8px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-2)); border: 3px solid #160d06; box-shadow: 0 8px 20px rgba(0,0,0,.35); }
input[type="range"]::-moz-range-track { height: 9px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,245,223,.12); }
input[type="range"]::-moz-range-progress { height: 9px; border-radius: 999px; background: var(--gold); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-2)); border: 3px solid #160d06; box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.stats-panel ul { padding-left: 0; list-style: none; color: var(--muted); line-height: 1.9; }
.stats-panel li { display:flex; justify-content:space-between; gap:12px; border-bottom: 1px solid rgba(255,255,255,.07); padding: 7px 0; }
.centered-page { min-height: 100vh; display: grid; place-items: center; padding: 32px 0; }
.thanks-card, .login-box { width: min(540px, 100%); }
.admin-nav { position: sticky; top: 0; z-index: 50; display: flex; gap: 8px; padding: 12px; background: rgba(9,6,4,.82); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); }
.admin-nav a { text-decoration: none; padding: 11px 15px; border-radius: 999px; font-weight: 900; color: var(--cream); }
.admin-nav a:first-child { color: var(--gold-2); }
.admin-nav a:hover { background: rgba(255,255,255,.08); }
.admin-page { padding-bottom: 76px; }
.metric { padding: 24px; }
.metric span { color: var(--muted); font-weight: 900; }
.metric strong { display: block; font-size: 2.8rem; margin-top: 8px; letter-spacing:-.07em; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 15px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { color: var(--gold-2); font-size: .82rem; text-transform: uppercase; letter-spacing: .09em; }
tr:hover td { background: rgba(255,255,255,.025); }
.thumb { width: 112px; height: 64px; object-fit: cover; border-radius: 14px; border: 1px solid var(--border); }
.actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.actions a, .link-button { color: var(--gold-2); text-decoration: none; font-weight: 900; }
.link-button { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.badge { display:inline-flex; align-items:center; gap:7px; padding: 7px 11px; border-radius: 999px; border:1px solid var(--border); font-weight: 900; font-size:.86rem; }
.badge-ok { color: var(--ok); background: rgba(101,209,158,.09); }
.badge-off { color: var(--muted); background: rgba(255,255,255,.05); }
.danger { color: var(--danger); }
.alert { padding: 14px; border-radius: 16px; font-weight: 850; }
.error { background: rgba(255,118,109,.13); color: #ffc4bf; border: 1px solid rgba(255,118,109,.25); }
.hint { color: var(--muted); font-weight: 650; font-size: .9rem; }
.checkbox { display: flex; align-items: center; gap: 10px; }
.checkbox input { width: auto; }
.preview-img { max-width: 185px; border-radius: 20px; border: 1px solid var(--border); }
.preview-wide { width: min(560px, 100%); border-radius: 22px; border: 1px solid var(--border); }
.upload-help { display:grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.upload-box { padding: 18px; border-radius: 22px; border: 1px dashed var(--border-strong); background: rgba(217,154,43,.06); }
.filter-form { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.review-list { display: grid; gap: 14px; }
.review-card { padding: 18px; box-shadow: none; }
.review-card__top { display: flex; justify-content: space-between; gap: 20px; font-size: 1.1rem; }
.review-card__top span { color: var(--gold-2); font-weight: 950; }
.muted { color: var(--muted); }
.footer { border-top:1px solid var(--border); padding: 28px 0; color: var(--muted); }
.footer .container { display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; }
@media (max-width: 980px) {
  .beer-grid, .rating-layout { grid-template-columns: 1fr; }
  .ratings-grid, .form-grid, .metric-grid, .upload-help { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; }
  .beer-hero { min-height: 480px; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 22px, 1160px); }
  .site-nav__inner { min-height: 62px; }
  .site-nav__links a:not(.admin-link) { display:none; }
  .home-hero { min-height: 72vh; padding: 64px 0; }
  .beer-hero { min-height: 390px; }
  .beer-hero__overlay { padding: 80px 0 46px; }
  .panel { padding: 22px; border-radius: 24px; }
  .beer-card__media { height: 210px; }
  .rating-layout { margin-top: -26px; }
  .admin-nav { overflow-x:auto; }
  th, td { padding: 12px; }
}

/* 2026-07-02 hotfix: verhindert horizontales Verschieben der Bewertungsseite */
html, body { max-width: 100%; overflow-x: hidden; }
img, video, canvas, svg { max-width: 100%; }
.beer-hero {
  display: grid;
  min-height: clamp(430px, 62vw, 660px);
  width: 100%;
  max-width: 100vw;
  isolation: isolate;
}
.beer-hero > * { grid-area: 1 / 1; }
.beer-hero__bg,
.beer-hero__wallpaper,
.beer-hero__overlay { min-width: 0; }
.beer-hero__wallpaper {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  object-fit: contain;
  object-position: center center;
  display: block;
  align-self: stretch;
  justify-self: stretch;
}
.beer-hero__bg {
  z-index: -1;
}
.beer-hero__overlay {
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: flex;
  align-items: end;
}
.beer-hero__content {
  max-width: 1160px;
}
.rating-layout {
  align-items: start;
}
.rating-form .btn {
  width: fit-content;
  min-width: 240px;
}
@media (max-width: 760px) {
  .beer-hero { min-height: 420px; }
  .beer-hero__overlay { padding: 68px 0 42px; }
  .beer-hero__content h1 { font-size: clamp(2.15rem, 13vw, 4rem); }
  .taste-block__head { flex-direction: column; gap: 8px; }
  .taste-block__head b { text-align: left; }
  .rating-form .btn { width: 100%; }
}

/* Public review form honeypot */
.hp-field { position:absolute !important; left:-10000px !important; top:auto !important; width:1px !important; height:1px !important; overflow:hidden !important; opacity:0 !important; pointer-events:none !important; }

/* 2026-07-03 mobile wallpaper visibility fix */
@media (max-width: 760px) {
  .beer-hero {
    display: flex !important;
    flex-direction: column;
    min-height: 0 !important;
    height: auto !important;
    overflow: visible;
    background: #050302;
  }

  .beer-hero::after {
    display: none;
  }

  .beer-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    filter: blur(18px);
    opacity: .45;
    transform: scale(1.08);
  }

  .beer-hero__wallpaper {
    position: relative !important;
    z-index: 1;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 16 / 9;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
    background: rgba(0,0,0,.35);
  }

  .beer-hero__overlay {
    position: relative !important;
    z-index: 2;
    margin-top: -112px;
    min-height: 112px;
    padding: 132px 0 32px !important;
    align-items: end;
    background: linear-gradient(to top, var(--bg) 0%, rgba(0,0,0,.88) 45%, rgba(0,0,0,.18) 100%) !important;
  }

  .beer-hero__content h1 {
    font-size: clamp(2rem, 12vw, 3.7rem) !important;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .hero-stats {
    gap: 8px;
  }

  .hero-stats span {
    padding: 8px 10px;
    font-size: .86rem;
  }

  .rating-layout {
    margin-top: 0 !important;
  }
}

@media (max-width: 420px) {
  .beer-hero__overlay {
    margin-top: -92px;
    padding-top: 110px !important;
  }
}

/* 2026-07-03 final mobile image/proxy fix */
.beer-hero__wallpaper {
  border: 0 !important;
  color: transparent;
  text-indent: -9999px;
}
@media (max-width: 760px) {
  .site-nav { position: sticky; top: 0; }
  .site-nav__inner { padding: 12px 0; }
  .brand { min-width: 0; }
  .brand > span:last-child { min-width: 0; line-height: 1.05; }
  .brand small { margin-top: 4px; }
  .beer-hero__wallpaper {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    aspect-ratio: 16 / 9;
    min-height: 210px !important;
    object-fit: cover !important;
    object-position: center center !important;
    background: #050302;
  }
  .beer-hero__overlay {
    margin-top: -72px !important;
    padding-top: 96px !important;
  }
  .beer-hero__content p:not(.eyebrow) {
    font-size: .98rem;
    line-height: 1.5;
  }
  .rating-layout { padding-top: 0; }
}
@media (max-width: 420px) {
  .beer-hero__wallpaper { min-height: 230px !important; }
  .beer-hero__overlay {
    margin-top: -66px !important;
    padding-top: 88px !important;
  }
}

/* Branding-Fix: Header zeigt nur noch Hobbybräu Wemhoff, ohne zweite Unterzeile */
.brand > span:last-child {
  display: block;
  font-size: 1.02rem;
  line-height: 1.05;
  white-space: nowrap;
}
.brand small { display: none !important; }
@media (max-width: 560px) {
  .brand { gap: 10px; }
  .brand-mark { width: 44px; height: 44px; border-radius: 14px; font-size: 1.35rem; flex: 0 0 auto; }
  .brand > span:last-child { font-size: 1.36rem; letter-spacing: -.045em; }
  .site-nav__links { margin-left: auto; }
}
@media (max-width: 390px) {
  .brand > span:last-child { font-size: 1.14rem; }
  .site-nav__links a { padding: 8px 9px; }
}

/* Logo-/Favicon-Fix: echtes Hobbybräu-Wemhoff-Logo statt Bierkrug-Emoji */
.brand-mark {
  overflow: hidden;
  background: #fff !important;
  border: 1px solid rgba(247, 199, 109, .40);
}
.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.admin-brand-link {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
}
.admin-nav-logo {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  object-fit: cover;
  background: #fff;
  border: 1px solid rgba(247, 199, 109, .36);
}
@media (max-width: 560px) {
  .brand-mark img { transform: scale(1.05); }
}
