/* mäxchen.fun – Kneipen-Optik wie die App (dunkles Holz, Elfenbein, Gold, Filzgrün).
   Aufbau wie kniffo.app: Leiste, Held mit Handy, Schritte im Wechsel, Rangfolge, Fragen. */
@font-face { font-family: 'Bree Serif'; src: url(schriften/BreeSerif-400.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Kaushan Script'; src: url(schriften/KaushanScript-400.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Nunito Sans'; font-weight: 600; src: url(schriften/NunitoSans-600.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Nunito Sans'; font-weight: 800; src: url(schriften/NunitoSans-800.woff2) format('woff2'); font-display: swap; }

:root {
  --grund: #120b06; --holz: #24160c; --holz-hell: #3a2614; --rand: #5a3f24;
  --elfenbein: #f1e3c6; --matt: #cdb88e; --gold: #e7c27a;
  --gruen: #2f7a45; --gruen-hell: #49a565;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; background: var(--grund); color: var(--elfenbein); font: 600 17px/1.6 'Nunito Sans', system-ui, sans-serif; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
h1, h2, h3 { font-family: 'Bree Serif', Georgia, serif; font-weight: 400; line-height: 1.15; margin: 0 0 .45em; }
.schrift { font-family: 'Kaushan Script', cursive; }
.gold { color: var(--gold); }
.innen { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Leiste oben */
.leiste { position: sticky; top: 0; z-index: 20; background: rgba(18,11,6,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(90,63,36,.6); }
.leiste .innen { display: flex; align-items: center; gap: 14px; height: 58px; }
.leiste .marke img { height: 38px; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,.8)); transition: opacity .25s, transform .25s; }
.leiste.oben .marke img { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.leiste.oben { background: rgba(18,11,6,.35); border-bottom-color: transparent; }
.leiste nav { display: flex; gap: 20px; font-size: 15px; }
.leiste nav a { color: var(--matt); text-decoration: none; }
.leiste nav a:hover { color: var(--elfenbein); }
@media (max-width: 640px) { .leiste nav { display: none; } }

/* Knöpfe (Filzgrün / lackiertes Holz wie in der App) */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; border-radius: 13px; text-decoration: none;
  font: 800 18px 'Nunito Sans', sans-serif; color: #fff; background: linear-gradient(#45a463, #24663a); border: 2px solid #6cc489;
  box-shadow: 0 8px 18px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.35); text-shadow: 0 1px 2px rgba(0,0,0,.5); transition: transform .15s, filter .15s; }
.knopf:hover { filter: brightness(1.08); transform: translateY(-1px); }
.knopf.holz { background: linear-gradient(#5f4026, #36230f); border-color: #8a6a3a; }
.knoepfe { display: flex; gap: 12px; flex-wrap: wrap; }
/* Offizielles Google-Play-Badge */
.playbadge { display: inline-block; border-radius: 12px; transition: transform .15s, filter .15s; filter: drop-shadow(0 8px 14px rgba(0,0,0,.6)); }
.playbadge:hover { transform: translateY(-1px); filter: drop-shadow(0 10px 16px rgba(0,0,0,.7)) brightness(1.1); }
.playbadge img { height: 62px; width: auto; }
.knoepfe { align-items: center; }
.leiste .marke { margin-right: auto; }
.leiste .playbadge { filter: none; }
.leiste .playbadge.klein img { height: 40px; }

/* Held */
.held { position: relative; overflow: hidden; padding: 34px 0 40px;
  background: linear-gradient(rgba(18,11,6,.55), rgba(18,11,6,.82) 55%, var(--grund)), url(bilder/kneipe.webp) center top / cover; }
.held-raster { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.held .schild { width: min(380px, 78%); margin: 0 0 18px; filter: drop-shadow(0 12px 18px rgba(0,0,0,.85)); }
.plakette { display: inline-block; margin: 0 0 16px; padding: 7px 16px; border-radius: 999px; font-size: 15px; color: var(--gold);
  background: rgba(231,194,122,.1); border: 1px solid rgba(231,194,122,.45); }
.held h1 { font-size: clamp(36px, 6.4vw, 60px); margin-bottom: 14px; text-shadow: 0 3px 8px #000; }
.held h1 .schrift { display: block; font-size: .8em; margin-top: 6px; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.held .unter { font-size: clamp(18px, 2.3vw, 21px); color: var(--matt); margin: 0 0 22px; max-width: 540px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 26px; padding: 0; list-style: none; }
.chips li { padding: 8px 14px; border-radius: 11px; font-size: 15px; background: rgba(58,38,20,.72); border: 1px solid var(--rand); box-shadow: inset 0 1px 0 rgba(255,220,170,.1); }
.held .klein { margin: 18px 0 0; font-size: 14px; color: var(--matt); }

.held-bild { position: relative; display: flex; justify-content: center; padding: 20px 0 10px; }
.held-bild .deckel { position: absolute; width: 74%; max-width: 400px; top: 4%; left: 50%; transform: translateX(-62%) rotate(-14deg);
  filter: drop-shadow(0 18px 24px rgba(0,0,0,.7)) brightness(.9); }
.held-bild .handy { transform: rotate(4deg); }
.held-bild .w { position: absolute; z-index: 3; width: 74px; filter: drop-shadow(0 10px 10px rgba(0,0,0,.7)); }
.held-bild .w-a { right: 6%; bottom: 18%; transform: rotate(18deg); }
.held-bild .w-b { right: 15%; bottom: 7%; width: 64px; transform: rotate(-12deg); }

/* Handgeschriebener Zettel */
.zettel { position: absolute; left: 0; top: 7%; z-index: 3; margin: 0; padding: 12px 16px 14px; max-width: 200px;
  font: 400 19px/27px 'Kaushan Script', cursive; color: #3b2a1a; transform: rotate(-7deg); border-radius: 3px; box-shadow: 0 10px 18px rgba(0,0,0,.55);
  background: linear-gradient(transparent 0 26px, rgba(120,90,60,.18) 26px 27px) 0 12px / 100% 27px, linear-gradient(#f7ecd2, #eadbb6); }
.zettel::before { content: ''; position: absolute; top: -9px; left: 50%; width: 70px; height: 20px; transform: translateX(-50%) rotate(3deg);
  background: rgba(231,214,170,.75); box-shadow: 0 1px 2px rgba(0,0,0,.2); }

/* Handy im dunklen Rahmen */
.handy { position: relative; z-index: 2; width: min(270px, 66vw); padding: 9px; border-radius: 38px;
  background: linear-gradient(145deg, #3a302a, #120d0a 55%, #2a221d); box-shadow: 0 0 0 1.5px #5a4634, 0 34px 60px rgba(0,0,0,.75), inset 0 0 0 2px #000; }
.handy img { border-radius: 30px; width: 100%; }

/* Abschnitte */
section { padding: 72px 0; }
.abschnitt-kopf { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.etikett { display: inline-block; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
h2 { font-size: clamp(30px, 4.6vw, 44px); }
h2 .schrift { color: var(--gold); }
.lead { color: var(--matt); font-size: 18px; margin: 0; }

/* Schritte im Wechsel */
.schritt { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; max-width: 940px; margin: 0 auto 80px; }
.schritt:last-child { margin-bottom: 0; }
.schritt:nth-child(even) .schritt-text { order: 2; }
.schritt-text .nr { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%;
  font: 400 22px 'Bree Serif', serif; color: #2a1a0c; background: radial-gradient(circle at 35% 30%, #f6dfa4, #c9974a); box-shadow: 0 4px 10px rgba(0,0,0,.6); margin-bottom: 14px; }
.schritt-text h3 { font-size: clamp(26px, 3.6vw, 34px); }
.schritt-text p { color: var(--matt); font-size: 18px; margin: 0; }
.schritt .handy { margin: 0 auto; }
.schritt:nth-child(odd) .handy { transform: rotate(-3deg); }
.schritt:nth-child(even) .handy { transform: rotate(3deg); }

/* Holz-Band */
.holzband { background: linear-gradient(rgba(30,18,9,.9), rgba(18,11,6,.95)), url(bilder/holz.webp) center / 420px;
  border-top: 1px solid var(--rand); border-bottom: 1px solid var(--rand); }

/* Rangfolge auf Filz */
.filzbrett { max-width: 900px; margin: 0 auto; padding: 30px 22px 26px; border-radius: 18px;
  background: radial-gradient(ellipse at 50% 20%, #1f4a31, #0d2216 80%); border: 10px solid #4a3019;
  box-shadow: inset 0 0 0 2px rgba(201,160,90,.45), inset 0 8px 24px rgba(0,0,0,.6), 0 20px 40px rgba(0,0,0,.6); }
.stufe { margin-bottom: 22px; }
.stufe:last-of-type { margin-bottom: 0; }
.stufe h3 { font-size: 20px; color: var(--gold); margin-bottom: 10px; text-align: center; }
.stufe h3 small { display: block; font: 600 14px 'Nunito Sans', sans-serif; color: #b9cdbd; margin-top: 2px; }
.paare { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.paar { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 9px 10px 6px; border-radius: 10px; background: rgba(0,0,0,.25); }
.paar span { display: flex; gap: 4px; }
.paar img { width: 34px; height: 34px; filter: drop-shadow(0 3px 3px rgba(0,0,0,.55)); }
.paar b { font: 400 15px 'Bree Serif', serif; color: var(--elfenbein); }
.paar.punkte { justify-content: center; color: #b9cdbd; font-size: 22px; background: none; }
.paar.mx { background: linear-gradient(rgba(231,194,122,.25), rgba(231,194,122,.08)); border: 1px solid var(--gold); padding: 12px 16px 10px; }
.paar.mx img { width: 52px; height: 52px; }
.paar.mx b { font-size: 19px; color: var(--gold); }
.filzbrett .regel { text-align: center; color: #cfe3d2; margin: 20px 0 0; font-size: 16px; }

/* Vorteile */
.vorteile { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.karte { background: linear-gradient(var(--holz-hell), var(--holz)); border: 1px solid var(--rand); border-radius: 16px; padding: 22px 22px 20px;
  box-shadow: inset 0 1px 0 rgba(255,220,170,.12), 0 10px 22px rgba(0,0,0,.5); }
.karte .sym { font-size: 30px; line-height: 1; margin-bottom: 10px; }
.karte h3 { font-size: 21px; color: var(--gold); margin-bottom: 4px; }
.karte p { margin: 0; color: var(--matt); font-size: 16px; }

/* Fragen */
.fragen { max-width: 780px; margin: 0 auto; }
details { background: var(--holz); border: 1px solid var(--rand); border-radius: 13px; padding: 15px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-family: 'Bree Serif', serif; font-size: 19px; color: var(--elfenbein); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--gold); font-size: 24px; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { color: var(--matt); margin: 10px 0 0; }

/* Schluss */
.schluss { text-align: center; padding: 96px 0; background: linear-gradient(rgba(10,6,3,.72), rgba(10,6,3,.88)), url(bilder/tisch.webp) center / cover; }
.schluss .schild { width: min(300px, 70%); margin: 0 auto 18px; filter: drop-shadow(0 12px 18px rgba(0,0,0,.85)); }
.schluss h2 { margin-bottom: 10px; }
.schluss p { color: var(--matt); margin: 0 auto 26px; max-width: 560px; font-size: 18px; }
.schluss .knoepfe { justify-content: center; }

/* Fuß */
footer { padding: 34px 20px 50px; text-align: center; color: var(--matt); font-size: 14px; border-top: 1px solid var(--rand); }
footer a { color: var(--matt); }

/* Unterseiten (Regeln, Datenschutz, Impressum) */
.seite { padding: 40px 0 20px; }
.seite .logo-klein { width: 220px; margin: 0 auto 20px; }
.text { max-width: 760px; margin: 0 auto; }
.text h2 { text-align: left; }
.text h3 { font-size: 23px; color: var(--gold); margin-top: 1.6em; }
.rang { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.rang li { background: var(--holz-hell); border: 1px solid var(--rand); border-radius: 8px; padding: 3px 10px; font-family: 'Bree Serif', serif; }
.rang li.top { background: var(--gruen); border-color: var(--gruen-hell); }
.blatt { background: var(--holz); border: 1px solid var(--rand); border-radius: 12px; padding: 8px 24px 24px; }
.blatt h3 { font-size: 19px; color: var(--gold); margin-top: 1.4em; }

/* Einblenden beim Scrollen */
.js .zeige { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .zeige.da { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .zeige { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Handy-Breite */
@media (max-width: 860px) {
  .held { padding-top: 22px; padding-bottom: 8px; }
  .held + section { padding-top: 28px; }
  .held-raster { grid-template-columns: 1fr; gap: 10px; }
  .held-text { text-align: center; }
  .held .schild { margin: 0 auto 16px; width: min(330px, 86%); }
  .held .unter { margin-left: auto; margin-right: auto; }
  .chips, .held .knoepfe { justify-content: center; }
  .held-bild { margin-top: 18px; }
  .zettel { left: 1%; top: 4%; font-size: 17px; line-height: 25px; max-width: 165px; }
  .chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 360px; margin-left: auto; margin-right: auto; }
  .chips li { font-size: 14px; padding: 8px 8px; text-align: center; }
  .held .unter { font-size: 18px; }
  .schritt .handy { width: min(240px, 64vw); }
  .held-bild .w { width: 58px; } .held-bild .w-b { width: 50px; }
  .held-bild .deckel { width: 58%; left: -8%; top: auto; bottom: 4%; transform: rotate(-16deg); }
  .schritt { grid-template-columns: 1fr; gap: 26px; text-align: center; margin-bottom: 64px; }
  .schritt:nth-child(even) .schritt-text { order: 0; }
  section { padding: 48px 0; }
  .abschnitt-kopf { margin-bottom: 30px; }
}
@media (max-width: 400px) {
  .knopf { padding: 14px 20px; font-size: 17px; }
  .playbadge img { height: 56px; }
  .held .knoepfe .knopf { padding: 14px 18px; }
  .paar img { width: 30px; height: 30px; }
  .paare { gap: 8px; }
  .filzbrett { border-width: 7px; padding: 24px 12px 20px; }
}
