:root {
  --bg1: #061018;
  --bg2: #101827;
  --glass: rgba(255, 255, 255, 0.09);
  --glass-strong: rgba(255, 255, 255, 0.15);
  --border: rgba(255, 255, 255, 0.22);
  --text: #f6f8fb;
  --muted: rgba(246, 248, 251, 0.72);
  --cyan: #00d4ff;
  --blue: #0077ff;
  --green: #31e981;
  --yellow: #ffd166;
  --red: #ff4d6d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --radius: 30px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(0, 212, 255, 0.28), transparent 30%),
    radial-gradient(circle at 90% 15%, rgba(0, 119, 255, 0.25), transparent 31%),
    radial-gradient(circle at 50% 100%, rgba(49, 233, 129, 0.15), transparent 34%),
    linear-gradient(135deg, var(--bg1), var(--bg2));
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 440px;
  height: 440px;
  border-radius: 999px;
  z-index: -1;
  filter: blur(28px);
  opacity: 0.48;
  animation: float 13s ease-in-out infinite alternate;
}

body::before {
  top: 5%;
  left: -130px;
  background: rgba(0, 212, 255, 0.28);
}

body::after {
  right: -140px;
  bottom: -140px;
  background: rgba(49, 233, 129, 0.18);
  animation-delay: 2s;
}

@keyframes float {
  from {
    transform: translateY(0) scale(1);
  }

  to {
    transform: translateY(42px) scale(1.12);
  }
}

.app {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 72px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.brand h1 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.9rem);
  letter-spacing: -0.08em;
  line-height: 0.95;
}

.brand span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.pill {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}

.grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
}

@media (max-width: 920px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

.glass {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.05)),
    var(--glass);
  backdrop-filter: blur(30px) saturate(140%);
  -webkit-backdrop-filter: blur(30px) saturate(140%);
  box-shadow: var(--shadow);
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.25), transparent 24%, transparent 72%, rgba(255, 255, 255, 0.08));
  pointer-events: none;
}

.panel {
  padding: clamp(18px, 3vw, 30px);
}

.hero {
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

.result-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
}

@media (max-width: 680px) {
  .result-row {
    grid-template-columns: 1fr;
  }
}

.bac {
  font-size: clamp(4rem, 11vw, 8.5rem);
  line-height: 0.85;
  letter-spacing: -0.08em;
  font-weight: 850;
  text-shadow: 0 0 32px rgba(0, 212, 255, 0.25);
}

.bac small {
  color: var(--cyan);
  font-size: 0.25em;
  letter-spacing: -0.02em;
}

.label {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.status {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 750;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
}

.time-stack {
  display: grid;
  gap: 14px;
}

.time-circle {
  width: 174px;
  height: 174px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.28), transparent 30%),
    linear-gradient(135deg, rgba(0, 212, 255, 0.95), rgba(0, 119, 255, 0.62));
  box-shadow:
    inset 0 0 36px rgba(255, 255, 255, 0.14),
    0 22px 52px rgba(0, 0, 0, 0.35);
}

.time-circle strong {
  display: block;
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.time-circle span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.8rem;
}

.sober-card {
  width: 174px;
  padding: 16px 14px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 255, 255, 0.18), transparent 40%),
    rgba(255, 255, 255, 0.09);
  text-align: center;
}

.sober-card b {
  display: block;
  font-size: 1.55rem;
  letter-spacing: -0.05em;
  color: var(--green);
}

.sober-card small {
  color: var(--muted);
}

.meter {
  height: 18px;
  margin-top: 18px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.meter-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--yellow), var(--red));
  transition: width 0.35s ease;
}

.meter-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}

h2 {
  margin: 0 0 18px;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.drink-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 800px) {
  .drink-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.drink {
  position: relative;
  min-height: 152px;
  border-radius: 26px;
  padding: 18px 12px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 40% 0%, rgba(255, 255, 255, 0.22), transparent 35%),
    rgba(255, 255, 255, 0.08);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: 0.18s ease;
  cursor: pointer;
  user-select: none;
}

.drink:hover {
  transform: translateY(-4px) scale(1.015);
  background: rgba(0, 212, 255, 0.16);
  border-color: rgba(0, 212, 255, 0.65);
}

.drink:active {
  transform: scale(0.98);
}

.drink .icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.drink strong {
  font-size: 1.03rem;
}

.drink small {
  margin-top: 4px;
  color: var(--muted);
}

.count {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.88);
  font-weight: 850;
}

.minus {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  display: none;
  border: none;
  border-radius: 999px;
  color: white;
  background: rgba(255, 77, 109, 0.92);
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 2;
}

.drink.has-count .minus {
  display: block;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  color: var(--muted);
  font-size: 0.88rem;
}

input,
select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 1rem;
}

select option {
  color: #111;
}

input:focus,
select:focus {
  border-color: rgba(0, 212, 255, 0.8);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.12);
}

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  color: var(--muted);
}

.checkbox-row input {
  width: auto;
}

.primary-btn,
.stepper button {
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  cursor: pointer;
  transition: 0.15s ease;
}

.primary-btn {
  padding: 12px 16px;
  margin-top: 14px;
}

.stepper {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  flex-wrap: wrap;
}

.stepper button {
  min-width: 42px;
  min-height: 42px;
  padding: 0 13px;
  font-size: 1rem;
}

.primary-btn:hover,
.stepper button:hover {
  transform: translateY(-2px);
  background: rgba(0, 212, 255, 0.18);
}

.section {
  margin-top: 20px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

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

.mini-card b {
  display: block;
  margin-bottom: 4px;
  font-size: 1.75rem;
  letter-spacing: -0.05em;
}

.mini-card span,
.footer-note {
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

.nutri-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 12px;
}

@media (max-width: 760px) {
  .nutri-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.nutri {
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.nutri b {
  font-size: 1.12rem;
}

.advice-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.advice-list li {
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.45;
}

.breakdown {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

details {
  padding: 16px 18px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
}

summary {
  cursor: pointer;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.calc {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.65;
}

code {
  padding: 2px 6px;
  border-radius: 8px;
  color: #b7f7ff;
  background: rgba(0, 0, 0, 0.25);
}
/* -------------------------------------------------------
   Kater-Puffer / Maßnahmen-Visualisierung
------------------------------------------------------- */

.hangover-dashboard {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 850px) {
  .hangover-dashboard {
    grid-template-columns: 1fr;
  }
}

.hangover-orb {
  min-height: 280px;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
}

.hangover-ring {
  --progress: 0%;
  --ringColor: var(--cyan);

  width: 210px;
  height: 210px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(10, 18, 28, 0.95) 0 58%, transparent 59%),
    conic-gradient(var(--ringColor) var(--progress), rgba(255, 255, 255, 0.11) 0);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 0 32px rgba(255, 255, 255, 0.08),
    0 24px 55px rgba(0, 0, 0, 0.35);
  transition: background 0.35s ease;
}

.hangover-ring-inner {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.18), transparent 35%),
    rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hangover-score {
  font-size: 2.7rem;
  line-height: 1;
  font-weight: 850;
  letter-spacing: -0.07em;
}

.hangover-score small {
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0;
}

.hangover-label {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.hangover-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 750;
}

.hangover-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
}

.water-visual {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

@media (max-width: 520px) {
  .water-visual {
    grid-template-columns: 1fr;
  }
}

.bottle {
  width: 74px;
  height: 170px;
  border-radius: 22px 22px 28px 28px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
  margin: auto;
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.08),
    0 18px 35px rgba(0, 0, 0, 0.28);
}

.bottle::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 21px;
  width: 30px;
  height: 18px;
  border-radius: 10px 10px 3px 3px;
  border: 2px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.09);
}

.bottle-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0%;
  background:
    radial-gradient(circle at 30% 15%, rgba(255, 255, 255, 0.34), transparent 22%),
    linear-gradient(180deg, rgba(0, 212, 255, 0.82), rgba(0, 119, 255, 0.72));
  transition: height 0.35s ease;
}

.bottle-fill::before {
  content: "";
  position: absolute;
  left: -20%;
  top: -10px;
  width: 140%;
  height: 22px;
  border-radius: 50%;
  background: rgba(183, 247, 255, 0.55);
  animation: waterWave 2.4s ease-in-out infinite alternate;
}

@keyframes waterWave {
  from {
    transform: translateX(-8px) rotate(-2deg);
  }

  to {
    transform: translateX(8px) rotate(2deg);
  }
}

.water-copy b {
  display: block;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
  margin-bottom: 4px;
}

.water-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

@media (max-width: 620px) {
  .action-grid {
    grid-template-columns: 1fr;
  }
}

.action-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: white;
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 255, 255, 0.15), transparent 38%),
    rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 14px;
  text-align: left;
  cursor: pointer;
  transition: 0.18s ease;
  min-height: 92px;
}

.action-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 212, 255, 0.58);
  background: rgba(0, 212, 255, 0.13);
}

.action-btn.active {
  border-color: rgba(49, 233, 129, 0.75);
  background: rgba(49, 233, 129, 0.15);
}

.action-btn strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 5px;
}

.action-btn span {
  display: block;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.35;
}

.action-points {
  display: inline-flex;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #061018;
  background: var(--green);
}

.puffer-bars {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.puffer-row {
  display: grid;
  grid-template-columns: 110px 1fr 54px;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.puffer-track {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.puffer-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  transition: width 0.35s ease;
}

.puffer-fill.load {
  background: linear-gradient(90deg, var(--yellow), var(--red));
}

.micro-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}
