/* ==========================================================================
   BeerRun — gemeinsames Stylesheet
   ========================================================================== */

/* Schriften lokal gehostet (keine Verbindung zu Google beim Seitenaufruf) */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(fonts/bricolage-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(fonts/bricolage-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/geist-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/geist-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

:root {
  --bg: #f7f4ee;
  --surface: #ffffff;
  --surface-2: #efeae1;
  --ink: #14181f;
  --ink-2: #4a505b;
  --ink-3: #666b74;
  --line: rgba(20, 24, 31, 0.09);

  --navy: #104d7e;
  --navy-deep: #0b365a;
  --navy-ink: #072641;
  --amber: #f2a51f;
  --amber-soft: #fde9c2;
  --foam: #fff7e6;

  /* Abstände: 4px-Raster */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;
  --sp-32: 128px;
  --sp-40: 160px;

  /* Radien: 4px-Raster */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-2xl: 40px;
  --r-pill: 999px;

  /* Abschnitts-Abstand und Seitenrand (wachsen in festen Stufen) */
  --section: var(--sp-24);
  --gutter: var(--sp-4);
  --nav-h: 64px;

  --font-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;

  --wrap: 1200px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 640px) {
  :root {
    --gutter: var(--sp-8);
  }
}

@media (min-width: 760px) {
  :root {
    --section: var(--sp-32);
  }
}

@media (min-width: 1100px) {
  :root {
    --section: var(--sp-40);
    --gutter: var(--sp-12);
  }
}

html {
  /* Auch hinter Safaris Leisten und beim Überscrollen den hellen Hintergrund zeigen */
  background-color: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--sp-8));
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 4px;
  border-radius: var(--sp-1);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Typografie ---------- */

.display,
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-2);
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--navy);
}

.lead {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 34em;
  text-wrap: pretty;
}

p {
  text-wrap: pretty;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;
  padding: 0 var(--sp-6);
  border-radius: var(--r-pill);
  font: 500 0.95rem/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

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

/* Wichtige Buttons heben sich beim Hover leicht an */
@media (hover: hover) {
  .btn-dark:hover,
  .btn-light:hover,
  .btn-ghost:hover,
  .store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -10px rgba(7, 38, 65, 0.45);
  }

  .btn-dark:active,
  .btn-light:active,
  .btn-ghost:active,
  .store-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: none;
  }
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: #2a303a;
}

.btn-light {
  background: #fff;
  color: var(--ink);
}

.btn-light:hover {
  background: var(--foam);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: rgba(20, 24, 31, 0.25);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  height: 56px;
  padding: 0 var(--sp-6) 0 var(--sp-5);
  border-radius: var(--r-md);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.store-btn:hover {
  background: #2a303a;
}

.store-btn:active {
  transform: scale(0.98);
}

.store-btn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.store-btn span {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.1;
}

.store-btn small {
  font-size: 0.6875rem;
  opacity: 0.7;
}

.store-btn strong {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.store-buttons.on-dark .store-btn {
  background: #fff;
  color: var(--ink);
}

.store-buttons.on-dark .store-btn:hover {
  background: var(--foam);
}

/* Auf dem Handy nur den passenden Store zeigen */
html[data-platform="ios"] .store-btn[data-store="android"],
html[data-platform="android"] .store-btn[data-store="ios"] {
  display: none;
}

/* QR-Code für Desktop-Besucher */
.qr-hint {
  display: none;
  align-items: center;
  gap: var(--sp-3);
  height: 56px;
  padding: var(--sp-1) var(--sp-4) var(--sp-1) var(--sp-1);
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.8125rem;
  line-height: 1.25;
  text-align: left;
}

.qr-hint img {
  width: 46px;
  height: 46px;
  padding: 3px;
  border-radius: var(--sp-2);
  background: #fff;
}

html[data-platform="desktop"] .qr-hint {
  display: inline-flex;
}

@media (max-width: 860px) {
  html[data-platform="desktop"] .qr-hint {
    display: none;
  }
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: var(--sp-4);
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0 var(--gutter);
  pointer-events: none;
}

.nav-inner {
  pointer-events: auto;
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  height: var(--nav-h);
  padding: 0 var(--sp-2) 0 var(--sp-5);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 1px 2px rgba(20, 24, 31, 0.04), 0 8px 24px -12px rgba(20, 24, 31, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 44px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
}

.brand img {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  gap: var(--sp-1);
  list-style: none;
}

.nav-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--sp-4);
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(20, 24, 31, 0.05);
}

.nav .btn {
  min-height: 44px;
  padding: 0 var(--sp-5);
  font-size: 0.9rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover {
  background: rgba(20, 24, 31, 0.05);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-toggle .i-close,
.nav.is-open .nav-toggle .i-menu {
  display: none;
}

.nav.is-open .nav-toggle .i-close {
  display: block;
}

@media (max-width: 860px) {
  .nav-inner {
    position: relative;
  }

  .nav-toggle {
    display: grid;
  }

  .no-js .nav-toggle {
    display: none;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + var(--sp-2));
    left: 0;
    right: 0;
    flex-direction: column;
    padding: var(--sp-2);
    border-radius: var(--r-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 1px 2px rgba(20, 24, 31, 0.04), 0 16px 40px -16px rgba(20, 24, 31, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(calc(-1 * var(--sp-2)));
    transition: opacity 0.2s ease, transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }

  .nav.is-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.2s ease, transform 0.25s var(--ease), visibility 0s;
  }

  .nav-links a {
    min-height: 48px;
    padding: 0 var(--sp-4);
    border-radius: var(--r-md);
    font-size: 1rem;
    color: var(--ink);
  }
}

/* ---------- Footer ---------- */

.footer {
  padding: var(--sp-24) 0 var(--sp-10);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: var(--sp-10);
}

.footer-about p {
  margin-top: var(--sp-3);
  color: var(--ink-2);
  max-width: 30ch;
}

.footer-about p a {
  color: var(--navy);
  text-underline-offset: 3px;
}

.footer h4 {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-3);
  margin-bottom: var(--sp-2);
}

.footer ul {
  list-style: none;
  display: grid;
}

.footer ul a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s ease;
}

.footer ul a:hover {
  color: var(--navy);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-16);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.8125rem;
}

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

  .footer-about {
    grid-column: 1 / -1;
  }
}

/* ---------- Rechtliche Unterseiten ---------- */

.doc {
  padding: calc(var(--nav-h) + var(--sp-24)) 0 var(--section);
}

.doc .container {
  max-width: calc(688px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
  line-height: 1.7;
  color: var(--ink-2);
}

.doc .back {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 44px;
  margin-bottom: var(--sp-6);
  font-size: 0.875rem;
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.2s ease;
}

.doc .back:hover {
  color: var(--ink);
}

.doc .back svg {
  width: 16px;
  height: 16px;
}

.doc h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  color: var(--ink);
  margin-bottom: var(--sp-4);
}

.doc h2 {
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: var(--sp-16) 0 var(--sp-4);
}

.doc h3 {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: var(--sp-8) 0 var(--sp-2);
}

.doc p,
.doc ul,
.doc ol {
  margin-bottom: var(--sp-4);
}

.doc ul,
.doc ol {
  padding-left: 1.25em;
}

.doc li {
  margin-bottom: var(--sp-2);
}

.doc li::marker {
  color: var(--ink-3);
}

.doc strong {
  color: var(--ink);
  font-weight: 600;
}

.doc a {
  color: var(--navy);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.doc a:hover {
  text-decoration-thickness: 2px;
}

.doc .stand,
.doc .intro {
  color: var(--ink-3);
  font-size: 0.95rem;
  margin-bottom: var(--sp-12);
}

.doc .intro {
  font-size: 1.1rem;
  color: var(--ink-2);
}

.doc .hint,
.doc .contact-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  margin: var(--sp-6) 0 var(--sp-8);
}

.doc .hint p:last-child {
  margin-bottom: 0;
}

.doc .contact-box p {
  margin-bottom: var(--sp-1);
}

.doc .contact-box .label {
  font-size: 0.8125rem;
  color: var(--ink-3);
}

.doc .contact-box .email {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.doc .contact-box .email a {
  color: var(--ink);
  text-decoration: none;
}

.doc .contact-box .response {
  margin-top: var(--sp-2);
  margin-bottom: 0;
  font-size: 0.875rem;
  color: var(--ink-3);
}

.doc .contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
}

.doc .contact-actions .btn {
  min-height: 44px;
  text-decoration: none;
}

.doc .contact-actions .btn-dark {
  color: #fff;
}

.doc .contact-actions .btn-ghost {
  color: var(--ink);
}

/* ---------- 404 ---------- */

.not-found {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-h) + var(--sp-16)) var(--gutter) var(--sp-16);
  text-align: center;
}

.not-found .code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--navy);
}

.not-found h1 {
  margin-top: var(--sp-4);
  font-size: clamp(2rem, 5vw, 3rem);
}

.not-found p {
  margin: var(--sp-4) auto var(--sp-8);
  max-width: 32em;
  color: var(--ink-2);
}

.not-found .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
}

.doc .faq-item {
  padding: var(--sp-6) 0;
  border-bottom: 1px solid var(--line);
}

.doc .faq-item:last-child {
  border-bottom: none;
}

.doc .faq-q {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--sp-2);
}

.doc .faq-a {
  margin-bottom: 0;
}

.doc .steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
}

.doc .steps li {
  position: relative;
  padding-left: var(--sp-12);
  margin-bottom: var(--sp-4);
  counter-increment: step;
}

.doc .steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -1px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  display: grid;
  place-items: center;
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(var(--sp-6));
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.footer .slogan {
  display: inline-block;
  margin-bottom: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
