:root {
  --gelb: #ffd500;
  --blau: #0a3d91;
  --blau-dunkel: #072c69;
  --text: #1a1916;
  --text-leise: #5f5c56;
  --flaeche: #f5f4f0;
  --rand: #dddbd6;
  --weiss: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--flaeche);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Kopfzeile */
.kopf {
  background: var(--gelb);
  padding: calc(14px + env(safe-area-inset-top)) 16px 14px;
  border-bottom: 4px solid var(--blau);
}
.kopf-inner { max-width: 560px; margin: 0 auto; display: flex; align-items: center; min-height: 36px; }
.wortmarke { font-size: 22px; font-weight: 800; letter-spacing: .5px; color: var(--blau); }
.wortmarke strong { font-weight: 800; color: var(--text); }
.logo { height: 40px; width: auto; display: block; }

/* Inhalt */
.inhalt { width: 100%; max-width: 560px; margin: 0 auto; padding: 24px 16px 32px; flex: 1; }
.kicker {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: var(--blau); margin-bottom: 6px;
}
h1 { font-size: clamp(24px, 6.4vw, 32px); line-height: 1.2; font-weight: 800; margin-bottom: 12px; }
.intro { font-size: 16px; color: var(--text-leise); margin-bottom: 20px; }

/* Video */
.video-box {
  position: relative;
  background: #111;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  max-height: 62vh;
  margin: 0 auto 20px;
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
}
.video-box video { width: 100%; height: 100%; object-fit: contain; display: block; background: #111; }
.video-hinweis {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #ddd; font-size: 15px; text-align: center; padding: 16px; pointer-events: none;
}

/* Download-Knopf */
.aktion { text-align: center; margin-bottom: 24px; }
.knopf {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 58px; padding: 14px 20px;
  background: var(--blau); color: var(--weiss);
  font-size: 18px; font-weight: 700; text-decoration: none;
  border: none; border-radius: 12px; cursor: pointer;
  box-shadow: 0 4px 0 var(--blau-dunkel);
  -webkit-tap-highlight-color: transparent;
  transition: transform .08s, box-shadow .08s, opacity .2s;
}
.knopf:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--blau-dunkel); }
.knopf[aria-disabled="true"] { opacity: .6; pointer-events: none; }
.knopf-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gelb); color: var(--blau); font-size: 18px; font-weight: 900;
}
.fortschritt { height: 6px; background: var(--rand); border-radius: 3px; overflow: hidden; margin-top: 12px; }
.fortschritt-balken { height: 100%; width: 0; background: var(--gelb); transition: width .2s; }
.meta { font-size: 13px; color: var(--text-leise); margin-top: 10px; min-height: 1em; }
.alternativ { display: inline-block; margin-top: 10px; font-size: 14px; color: var(--blau); }

.kein-video {
  background: var(--weiss); border: 1px solid var(--rand); border-radius: 12px;
  padding: 18px; text-align: center; margin-bottom: 24px;
}

/* Anleitung */
.anleitung details {
  background: var(--weiss); border: 1px solid var(--rand); border-radius: 12px;
  margin-bottom: 10px; overflow: hidden;
}
.anleitung summary {
  padding: 14px 16px; font-weight: 700; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.anleitung summary::-webkit-details-marker { display: none; }
.anleitung summary::after { content: "+"; font-size: 22px; color: var(--blau); line-height: 1; }
.anleitung details[open] summary::after { content: "–"; }
.anleitung ol { padding: 0 16px 14px 36px; }
.anleitung li { margin-bottom: 8px; font-size: 15px; }
.tipp { font-size: 13px; color: var(--text-leise); padding: 0 16px 14px; }

/* QR nur am Desktop */
.qr-box {
  margin-top: 24px; display: flex; gap: 16px; align-items: center;
  background: var(--weiss); border: 1px solid var(--rand); border-radius: 12px; padding: 16px;
}
.qr-box img { width: 120px; height: 120px; flex-shrink: 0; }
.qr-box p { font-size: 14px; color: var(--text-leise); }

.fuss {
  text-align: center; font-size: 12px; color: #9a968f;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
}
