/* ============================================================================
   TRINKKUMPEL — Landing (WERKSTATT-Erbe, poppig für die Kneipe)
   Grundgerüst aus dem RankWerkstatt-Design-System (Fraunces + Satoshi,
   Papier/Tinte, Radius 2px, keine Shadows, defined edges, thick-thin-Linie)
   — hier „Späti bei Nacht"-poppig: warmes Schwarz + Bier-Gold.
   ========================================================================== */

/* Theme-Logik:
   Default = „Späti bei Nacht" (dunkel, warmes Kneipen-Holz). data-theme überschreibt
   IMMER, ohne data-theme entscheidet das System (prefers-color-scheme).
   Die hellen Werte stehen 2× (Media-Query + data-theme) — bitte synchron halten. */
:root {
  --tb-bg: #150e07;
  --tb-panel: #211708;
  --tb-ink: #f6f0e3;
  --tb-ink-2: #b3a78f;
  --tb-gold: #f0a832;
  --tb-gold-2: #ffc356;
  --tb-brick: #d95436;
  --tb-gruen: #5ea569;
  --tb-line: #3d2f1a;
  --tb-line-2: #5c4826;

  --tb-display: "Fraunces", Georgia, serif;
  --tb-body: "Satoshi", -apple-system, "Segoe UI", sans-serif;

  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --tb-bg: #f6f1e6;
    --tb-panel: #ece4d2;
    --tb-ink: #221c12;
    --tb-ink-2: #6d6552;
    --tb-gold: #c07f16;
    --tb-gold-2: #9a6410;
    --tb-brick: #b8422e;
    --tb-gruen: #3d6b46;
    --tb-line: #d8cfba;
    --tb-line-2: #bfa878;
    color-scheme: light;
  }
}

[data-theme="light"] {
  --tb-bg: #f6f1e6;
  --tb-panel: #ece4d2;
  --tb-ink: #221c12;
  --tb-ink-2: #6d6552;
  --tb-gold: #c07f16;
  --tb-gold-2: #9a6410;
  --tb-brick: #b8422e;
  --tb-gruen: #3d6b46;
  --tb-line: #d8cfba;
  --tb-line-2: #bfa878;
  color-scheme: light;
}

/* Kreidetafel: eigene Fläche, in BEIDEN Themes dunkel (wie eine echte Tafel). */
:root {
  --tb-tafel: #171310;
  --tb-tafel-ink: #efe8d8;
}

* { box-sizing: border-box; }

html {
  background: var(--tb-bg);
  color: var(--tb-ink);
  font-family: var(--tb-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  scroll-behavior: smooth;
}

body { margin: 0; }

h1, h2, h3, .display {
  font-family: var(--tb-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.08;
}

.tb-wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
}

.tb-topbar {
  border-bottom: 1px solid var(--tb-line);
}
.tb-topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 10px 16px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}
.tb-controls { margin-left: auto; }
@media (max-width: 480px) {
  .tb-btn { padding: 10px 16px; min-height: 44px; font-size: 14px; }
}
.tb-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--tb-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--tb-ink);
  text-decoration: none;
}
.tb-brand-kegel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--tb-gold);
  border-radius: 2px;
  color: var(--tb-gold);
  font-size: 18px;
  flex: none;
}

/* Sprach-Schalter DE/EN + Theme-Umschalter (WERKSTATT: Kante, kein Kitsch) */
.tb-controls {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.tb-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.tb-lang a {
  color: var(--tb-ink-2);
  text-decoration: none;
  padding: 8px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.tb-lang a:hover { color: var(--tb-ink); }
.tb-lang a[aria-current="true"] {
  color: var(--tb-gold);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.tb-lang-sep { color: var(--tb-line-2); }
.tb-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--tb-line-2);
  border-radius: 2px;
  background: transparent;
  color: var(--tb-gold);
  cursor: pointer;
  transition: border-color 160ms ease-out;
}
.tb-theme-toggle:hover { border-color: var(--tb-ink); }
/* Sonnensymbol im Dunkel (Klick = hell), Mond im Hell (Klick = dunkel) */
.tb-theme-toggle .icon-sun { display: block; }
.tb-theme-toggle .icon-moon { display: none; }
[data-theme="light"] .tb-theme-toggle .icon-sun { display: none; }
[data-theme="light"] .tb-theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .tb-theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="dark"]) .tb-theme-toggle .icon-moon { display: block; }
}

/* Signature Move: thick-thin Doppellinie (WERKSTATT) */
.tb-sec-head {
  display: inline-block;
  position: relative;
  padding-bottom: 12px;
  margin: 0 0 30px;
  font-size: clamp(26px, 4vw, 38px);
}
.tb-sec-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--tb-gold);
}
.tb-sec-head::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--tb-ink);
}

/* Hero: echte Kneipen-Atmosphäre (KI-Foto) mit dunklem Scrim — bleibt in
   BEIDEN Themes dunkel wie die Kneipe bei Nacht, Text darauf fest hell. */
.tb-hero {
  position: relative;
  padding: clamp(72px, 12vw, 140px) 0 clamp(56px, 9vw, 96px);
  border-bottom: 1px solid var(--tb-line);
  background-color: #150e07;
  background-image:
    linear-gradient(rgba(16, 10, 4, 0.72), rgba(16, 10, 4, 0.92)),
    url("/img/hero-kneipe.jpg");
  background-size: cover;
  background-position: center 62%;
  color: #f6f0e3;
}
.tb-hero .tb-eyebrow { color: var(--tb-gold); }
.tb-hero-sub { color: rgba(246, 240, 227, 0.78); }
.tb-hero .tb-btn-ghost {
  color: #f6f0e3;
  border-color: rgba(246, 240, 227, 0.45);
}
.tb-hero .tb-btn-ghost:hover { border-color: #f6f0e3; }

.tb-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tb-gold);
  margin: 0 0 18px;
}
.tb-hero h1 {
  font-size: clamp(40px, 7.5vw, 78px);
  margin: 0 0 22px;
  max-width: 15ch;
}
.tb-hero h1 em {
  font-style: italic;
  color: var(--tb-gold);
}
.tb-hero-sub {
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--tb-ink-2);
  max-width: 52ch;
  margin: 0 0 34px;
}
.tb-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* Stamp: poppig, aber defined edge (kein Shadow, kein Gradient) */
.tb-stamp {
  position: absolute;
  top: clamp(28px, 6vw, 72px);
  right: 8px;
  transform: rotate(-7deg);
  border: 3px solid var(--tb-brick);
  color: var(--tb-brick);
  border-radius: 2px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.35;
  pointer-events: none;
}
@media (max-width: 720px) {
  .tb-stamp { position: static; display: inline-block; transform: rotate(-3deg); margin-bottom: 26px; }
}

/* Buttons */
.tb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 2px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 160ms ease-out, color 160ms ease-out, border-color 160ms ease-out;
}
.tb-btn-primary { background: var(--tb-gold); color: #171310; }
.tb-btn-primary:hover { background: var(--tb-gold-2); }
.tb-btn-ghost { color: var(--tb-ink); border-color: var(--tb-line-2); background: transparent; }
.tb-btn-ghost:hover { border-color: var(--tb-ink); }

/* Verdict-Streifen: die Chips tragen die Bedeutung, keine Zusatz-Boxen */
.tb-verdicts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 26px 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--tb-line);
}
.tb-verdict p {
  margin: 0;
  color: var(--tb-ink-2);
  font-size: 15px;
}
.tb-verdict-chip {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 10px;
}
.tb-verdict-chip.geil { color: var(--tb-gruen); border: 2px solid var(--tb-gruen); }
.tb-verdict-chip.ok { color: var(--tb-ink); border: 2px solid var(--tb-ink-2); }
.tb-verdict-chip.sprit { color: var(--tb-brick); border: 2px solid var(--tb-brick); }
.tb-verdict-chip.angst { color: var(--tb-bg); background: var(--tb-brick); border: 2px solid var(--tb-brick); }
.tb-verdict p { margin: 0; color: var(--tb-ink-2); font-size: 15px; }

/* Sektionen */
.tb-sec { padding: clamp(48px, 8vw, 84px) 0; border-bottom: 1px solid var(--tb-line); }
.tb-sec-sub {
  color: var(--tb-ink-2);
  font-size: 17px;
  max-width: 60ch;
  margin: -18px 0 34px;
}

/* Schritte: editorial statt Kartchen (Kanten sparsam, WERKSTATT) */
.tb-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 34px 40px;
}
.tb-step-nr {
  font-family: var(--tb-display);
  font-size: 56px;
  font-weight: 700;
  color: var(--tb-gold);
  line-height: 1;
  display: block;
  margin-bottom: 10px;
}
.tb-step h3 { margin: 0 0 8px; font-size: 20px; }
.tb-step p { margin: 0; color: var(--tb-ink-2); font-size: 15px; max-width: 34ch; }

/* Feature-Bento: Gewichte nach Wichtigkeit statt 8 gleiche Kartchen */
.tb-cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.tb-card.span2 { grid-column: span 2; }
.tb-card.span3 { grid-column: span 3; }
.tb-card.span4 { grid-column: span 4; }
@media (max-width: 900px) {
  .tb-cards { grid-template-columns: repeat(2, 1fr); }
  .tb-card.span2, .tb-card.span3, .tb-card.span4 { grid-column: auto; }
}
@media (max-width: 560px) {
  .tb-cards { grid-template-columns: 1fr; }
}
.tb-card {
  border: 1px solid var(--tb-line);
  border-radius: 2px;
  background: var(--tb-panel);
  padding: 22px 20px;
}
.tb-card h3 { margin: 0 0 8px; font-size: 19px; }
.tb-card p { margin: 0; color: var(--tb-ink-2); font-size: 15px; }
.tb-card .tb-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tb-gold);
  margin-bottom: 10px;
}

/* Kreidetafel fürs Ehrlich-Band: Holzrahmen (thick) + feine Kreidelinie (thin),
   in beiden Themes dunkel. Kreide-Gold fix (nicht das helle Theme-Gold). */
.tb-tafel {
  position: relative;
  background: var(--tb-tafel);
  border: 3px solid var(--tb-line-2);
  border-radius: 2px;
  padding: clamp(30px, 5vw, 52px);
  color: var(--tb-tafel-ink);
}
.tb-tafel::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(239, 232, 216, 0.22);
  border-radius: 1px;
  pointer-events: none;
}
.tb-tafel .tb-honest { gap: 30px 44px; }
.tb-tafel .tb-honest-item strong {
  color: #f0a832;
  font-family: var(--tb-display);
  font-style: italic;
  font-size: 19px;
  margin-bottom: 8px;
}
.tb-tafel .tb-honest-item {
  color: rgba(239, 232, 216, 0.82);
}

/* Ehrlich-Bande: editoriale Spalten, keine 3er-Box-Reihe */
.tb-honest {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px 40px;
}
.tb-honest-item {
  font-size: 15px;
  max-width: 36ch;
}
.tb-honest-item strong { color: var(--tb-gold); display: block; margin-bottom: 4px; }

/* CTA-Band */
.tb-cta-band {
  padding: clamp(56px, 9vw, 96px) 0;
  text-align: center;
}
.tb-cta-band h2 { font-size: clamp(32px, 5.5vw, 56px); margin: 0 0 18px; }
.tb-cta-band p { color: var(--tb-ink-2); font-size: 18px; margin: 0 0 30px; }
.tb-cta-band .tb-note { font-size: 13px; color: var(--tb-ink-2); margin-top: 18px; }

.tb-link-note {
  color: var(--tb-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Footer */
.tb-footer {
  border-top: 3px solid var(--tb-gold);
  padding: 26px 0 34px;
  color: var(--tb-ink-2);
  font-size: 14px;
}
.tb-footer-in {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  align-items: baseline;
}
.tb-footer a { color: var(--tb-ink); text-decoration: underline; text-underline-offset: 3px; }
.tb-footer a:hover { color: var(--tb-gold); }

:focus-visible {
  outline: 2px solid var(--tb-gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ============================================================================
   10/10-UPGRADE: Phone-Mockup (echter App-Screen), Chat-Demo (echte Antworten),
   Scroll-Reveals. Alles ohne Shadows/Gradients-Ornament, WERKSTATT-Kanten.
   ========================================================================== */

/* Hero als zweispaltiges Setting: Copy links, Phone rechts */
.tb-hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.tb-hero-phone { display: flex; justify-content: center; }
.tb-phone {
  width: min(300px, 78vw);
  background: #0d0a06;
  border: 1px solid var(--tb-line-2);
  border-radius: 44px;
  padding: 10px;
}
.tb-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 35px;
}
@media (max-width: 900px) {
  .tb-hero-grid { grid-template-columns: 1fr; }
  .tb-hero-phone { margin-top: 8px; }
  .tb-phone { width: min(270px, 72vw); }
}

/* Chat-Demo: sieht aus wie der Lukas-Tab der App */
.tb-chat {
  max-width: 640px;
  margin: 0 auto;
  background: var(--tb-panel);
  border: 1px solid var(--tb-line);
  border-radius: 2px;
}
.tb-chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--tb-line);
}
.tb-chat-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--tb-gold);
  border-radius: 2px;
  font-size: 18px;
  flex: none;
}
.tb-chat-name { font-weight: 700; font-size: 15px; }
.tb-chat-status { font-size: 12px; color: var(--tb-gruen); display: inline-flex; align-items: center; gap: 6px; }
.tb-chat-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tb-gruen); }
.tb-chat-body {
  padding: 20px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 300px;
}
.tb-msg {
  max-width: 86%;
  padding: 11px 14px;
  font-size: 15px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 240ms ease-out, transform 240ms ease-out;
}
.tb-msg.in { opacity: 1; transform: none; }
.tb-msg.user {
  align-self: flex-end;
  background: var(--tb-gold);
  color: #171310;
  font-weight: 500;
  border-radius: 10px 10px 2px 10px;
}
.tb-msg.lukas {
  align-self: flex-start;
  background: var(--tb-bg);
  border: 1px solid var(--tb-line);
  color: var(--tb-ink);
  border-radius: 10px 10px 10px 2px;
}
.tb-typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 5px;
  padding: 13px 15px;
  background: var(--tb-bg);
  border: 1px solid var(--tb-line);
  border-radius: 10px 10px 10px 2px;
  opacity: 0;
  transition: opacity 200ms ease-out;
}
.tb-typing.in { opacity: 1; }
.tb-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tb-ink-2);
  animation: tb-typ 1.1s infinite;
}
.tb-typing span:nth-child(2) { animation-delay: 180ms; }
.tb-typing span:nth-child(3) { animation-delay: 360ms; }
@keyframes tb-typ { 0%, 70%, 100% { opacity: 0.3; } 35% { opacity: 1; } }
.tb-chat-note {
  text-align: center;
  font-size: 13px;
  color: var(--tb-ink-2);
  margin-top: 16px;
}

/* Scroll-Reveal: nur aktiv, wenn JS läuft (html.js) und keine reduzierte Motion */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms ease-out, transform 520ms ease-out;
}
.js [data-reveal].in { opacity: 1; transform: none; }
.js .tb-cards .tb-card:nth-child(3n+2) { transition-delay: 70ms; }
.js .tb-cards .tb-card:nth-child(3n+3) { transition-delay: 140ms; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .tb-typing span { animation: none; }
}

/* Karten mit dezenter Kanten-Antwort beim Hovern (WERKSTATT: border-color) */
.tb-card { transition: border-color 160ms ease-out; }
.tb-card:hover { border-color: var(--tb-line-2); }

/* Ohne JS: leeren Chat-Kasten gar nicht erst zeigen */
html:not(.js) [data-chat],
html:not(.js) .tb-chat-note { display: none; }
