/* Landingpage, Rechtsseiten und Admin. Farben aus dem Theme „winterzauber“. */
@font-face { font-family: "Playfair Display"; font-weight: 700; font-display: swap; src: url("/static/schriften/PlayfairDisplay-Bold.ttf") format("truetype"); }
@font-face { font-family: "Lato"; font-weight: 400; font-display: swap; src: url("/static/schriften/Lato-Regular.ttf") format("truetype"); }
@font-face { font-family: "Lato"; font-weight: 700; font-display: swap; src: url("/static/schriften/Lato-Bold.ttf") format("truetype"); }

:root {
  --hg: #14342B; --flaeche: #1C4438; --text: #F5EEDF; --gedaempft: #C9D6CF;
  --akzent: #D9A84E; --auf-akzent: #14342B; --rahmen: #3E6355;
  --hell: #FBF8F1; --dunkel: #1d2622;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Lato", system-ui, sans-serif; font-size: 18px; line-height: 1.55; color: var(--dunkel); background: var(--hell); }
a { color: #0d5c46; }
h1, h2 { font-family: "Playfair Display", Georgia, serif; line-height: 1.2; }
h2 { font-size: 1.6rem; margin: 2.2rem 0 .6rem; }
.inhalt { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; }

/* Kopfbereich der Landingpage */
.held { background: var(--hg); color: var(--text); padding: 48px 16px 40px; }
.held-text { max-width: 760px; margin: 0 auto; }
.marke { font-family: "Playfair Display", Georgia, serif; color: var(--akzent); font-size: 1.3rem; margin: 0 0 .5rem; }
.held h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); margin: 0 0 1rem; }
.einleitung { color: var(--gedaempft); font-size: 1.1rem; max-width: 40em; }
.held a { color: var(--akzent); }
.held a.store { color: var(--auf-akzent); }
.link-pfeil::after { content: " →"; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4rem 0; }
.store { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 28px;
  background: var(--akzent); color: var(--auf-akzent); font-weight: 700; text-decoration: none; }
.store-bald { background: transparent; color: inherit; border: 2px dashed var(--rahmen); font-weight: 400; }
.inhalt .store-bald { border-color: #9bb0a7; }

.marke-mit-icon { display: grid; grid-template-columns: auto 1fr; column-gap: .75rem; align-items: center; line-height: 1.2; }
.marke-icon { grid-row: span 2; width: 52px; height: 52px; border-radius: 12px; box-shadow: 0 0 0 1px rgba(245,238,223,.18), 0 4px 14px rgba(0,0,0,.35); }
.marke-mit-icon .dachzeile { margin-top: .15rem; }
.dachzeile { display: block; margin-top: .2rem; font-family: "Lato", system-ui, sans-serif; font-size: .95rem; color: var(--gedaempft); letter-spacing: .02em; }
.held-vorteile { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .35rem; }
.held-vorteile li { padding-left: 1.6em; position: relative; }
.held-vorteile li::before { content: "✓"; position: absolute; left: 0; color: var(--akzent); font-weight: 700; }
.held-aktionen { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 1.6rem 0 0; }
.held-aktionen .stores { display: contents; }
.knopf-zweit { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 28px;
  border: 2px solid var(--akzent); color: var(--akzent); font-weight: 700; text-decoration: none; }
.knopf-zweit::after { content: " →"; white-space: pre; }
.knopf-zweit:hover, .knopf-zweit:focus-visible { background: var(--akzent); color: var(--auf-akzent); }
.held a.knopf-zweit:hover, .held a.knopf-zweit:focus-visible { color: var(--auf-akzent); }
/* Demo-Geschenk: Hauptweg für Besucher, über den Store-Knöpfen */
.demo-aufruf { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 14px; margin: 1.6rem 0 0; }
.demo-aufruf .knopf-haupt { min-height: 52px; font-size: 1.05rem; }
.held a.knopf-haupt, .held a.knopf-haupt:hover { color: var(--auf-akzent); }
.demo-hinweis { color: var(--gedaempft); font-size: .95rem; }
.demo-aufruf + .held-aktionen { margin-top: 1rem; }

/* Code-Eingabe für Beschenkte: schmale Leiste oben im Hero */
.held .code-form { max-width: 760px; margin: -24px auto 32px; padding: 10px 12px 10px 16px; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 8px 16px; border: 1px solid var(--rahmen); border-radius: 16px; background: var(--flaeche); }
.held .code-form label { margin: 0; font-weight: 700; }
.held .code-form .code-zeile { flex: 1 1 260px; min-width: 0; max-width: 360px; }
.held .code-form .code-zeile input { min-height: 44px; font-size: 1.05rem; background: var(--hg); }
.held .code-form .code-zeile button { min-height: 44px; }
@media (max-width: 560px) { .held .code-form .code-zeile { flex-basis: 100%; max-width: none; } }
.code-form label { display: block; margin-bottom: .4rem; }
.code-zeile { display: flex; gap: 8px; max-width: 420px; }
.code-zeile input { flex: 1; min-width: 0; min-height: 48px; font-size: 1.2rem; letter-spacing: .15em; text-transform: uppercase;
  padding: 0 14px; border-radius: 12px; border: 2px solid var(--rahmen); background: var(--flaeche); color: var(--text); }
.code-zeile button { min-height: 48px; padding: 0 20px; border: 0; border-radius: 28px; background: var(--akzent);
  color: var(--auf-akzent); font: inherit; font-weight: 700; cursor: pointer; }

/* Drei Beispiel-Screens als stilisierte Telefone */
.screens { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; padding: 32px 16px 8px; margin: 0; }
.telefon { margin: 0; width: 220px; text-align: center; }
.telefon figcaption { margin-top: .6rem; font-weight: 700; }
.bildschirm { height: 400px; border-radius: 30px; border: 8px solid #0e1f1a; background: var(--hg); color: var(--text);
  padding: 28px 16px; display: flex; flex-direction: column; justify-content: center; gap: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.ts-klein { margin: 0; font-size: .75rem; color: var(--gedaempft); }
.ts-gross { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: 2rem; }
.ts-text { margin: 0; color: var(--gedaempft); font-size: .9rem; }
.ts-frage { margin: 0 0 6px; font-weight: 700; }
.ts-knopf, .ts-antwort { display: block; padding: 10px; border-radius: 28px; font-size: .9rem; }
.ts-knopf { background: var(--akzent); color: var(--auf-akzent); font-weight: 700; margin-top: 10px; }
.ts-antwort { background: var(--flaeche); border: 2px solid var(--rahmen); border-radius: 14px; }
.ts-richtig { border-color: #5FB878; }
.ts-schein { margin: 6px auto; width: 150px; height: 80px; border-radius: 8px; background: linear-gradient(135deg, #cfe6c8, #8fbf88);
  color: #14342B; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 700; transform: rotate(-4deg); }

/* Landingpage: Sprungmarken und Abschnitte */
.landing .inhalt { max-width: 1040px; }
.landing .inhalt > section > p, .landing .schritte, .landing .haken { max-width: 760px; }
.landing section[id] { scroll-margin-top: 16px; }
.landing h3 { font-family: "Playfair Display", Georgia, serif; font-size: 1.15rem; line-height: 1.25; margin: 0 0 .4rem; }
.sprungmarken { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px; padding: 16px 16px 0; }
.sprungmarken a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 22px;
  border: 1.5px solid #9bb0a7; color: var(--dunkel); text-decoration: none; font-size: .95rem; }
.sprungmarken a:hover, .sprungmarken a:focus-visible { border-color: #0d5c46; background: #eef4f0; }
.mehr-beispiele { text-align: center; margin: 1rem 16px 0; font-weight: 700; }

/* Seite /beispiele: Screenshot-Geschichten als wischbare Streifen */
.held-schmal { padding-top: 24px; padding-bottom: 32px; }
.geschichte { margin: 0 0 3rem; }
.geschichte > p { max-width: 760px; }
.streifen { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 16px; margin: 0 -4px;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.streifen:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; border-radius: 12px; }
.streifen figure { flex: 0 0 200px; margin: 0; scroll-snap-align: start; text-align: center; }
.streifen img { display: block; width: 100%; height: auto; border-radius: 22px; border: 6px solid #0e1f1a; background: #0e1f1a;
  box-shadow: 0 8px 22px rgba(0,0,0,.16); }
@media (min-width: 900px) { .streifen { overflow-x: visible; } .streifen figure { flex: 1 1 0; min-width: 0; max-width: 200px; } }
.streifen figcaption { margin-top: .5rem; font-weight: 700; font-size: .95rem; }
.knopf-haupt { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 28px;
  background: var(--akzent); color: var(--auf-akzent); font-weight: 700; text-decoration: none; }
.knopf-haupt::after { content: " →"; white-space: pre; }
.knopf-haupt:hover, .knopf-haupt:focus-visible { filter: brightness(.95); }
.geschichte-ende { border-top: 1px solid #e2e6e2; padding-top: 1.5rem; }
.geschichte-ende .store-bald { border-color: #9bb0a7; }

/* Aufklappbare Liste der Spiele */
.aufklapp > summary { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; margin: .4rem 0 1rem;
  border-radius: 28px; border: 2px solid #0d5c46; color: #0d5c46; font-weight: 700; cursor: pointer; list-style: none; }
.aufklapp > summary::-webkit-details-marker { display: none; }
.aufklapp > summary::after { content: " ▾"; white-space: pre; }
.aufklapp[open] > summary::after { content: " ▴"; }
.aufklapp > summary:hover, .aufklapp > summary:focus-visible { background: #eef4f0; }

.karten, .gruppen, .merkmale { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.karte, .gruppe { background: #fff; border: 1px solid #e2e6e2; border-radius: 16px; padding: 18px 20px; }
.karte p { margin: 0; font-size: 1rem; }
.karte h3::before { content: ""; display: block; width: 32px; height: 4px; border-radius: 2px; background: var(--akzent); margin-bottom: .7rem; }
.gruppe ul { list-style: none; padding: 0; margin: 0; font-size: .98rem; }
.gruppe li { padding: 6px 0; border-top: 1px solid #eef0ec; }
.gruppe li:first-child { border-top: 0; }
.gruppe h3 { color: #0d5c46; }
.merkmale article { border-left: 4px solid var(--akzent); padding: 2px 0 2px 16px; }
.merkmale p { margin: 0; font-size: 1rem; }

/* Designs: Farben aus schema/themes (hintergrund, text, akzent) */
.designs { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.th { position: relative; border-radius: 14px; padding: 52px 14px 14px; display: flex; flex-direction: column;
  justify-content: flex-end; border: 1px solid rgba(0,0,0,.08); overflow: hidden; }
.th::before { content: ""; position: absolute; top: 14px; left: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--th-akzent); }
.th span { font-weight: 700; }
.th small { font-size: .85rem; opacity: .85; }
.th-winterzauber   { background: #14342B; color: #F5EEDF; --th-akzent: #D9A84E; }
.th-konfetti       { background: #5B2BE0; color: #FFFFFF; --th-akzent: #FFD23F; }
.th-sommerfest     { background: #FFE7A3; color: #3A2300; --th-akzent: #B93C0A; }
.th-gala           { background: #121212; color: #F7F1E3; --th-akzent: #D4AF37; }
.th-herzklopfen    { background: #FCE8EC; color: #5A0F24; --th-akzent: #A8123C; }
.th-meeresbrise    { background: #0E4A5C; color: #FFFFFF; --th-akzent: #FF8A6B; }
.th-fruehlingswiese{ background: #E3F5E9; color: #173F2A; --th-akzent: #C2185B; }
.th-herbstlaub     { background: #3B2416; color: #FBF3E8; --th-akzent: #E57E31; }
.th-sternennacht   { background: #101A3A; color: #F1F3FF; --th-akzent: #FFD866; }
.th-party          { background: #1A0B2E; color: #FFFFFF; --th-akzent: #FF3EA5; }
.th-zuckerwatte    { background: #FDE6F2; color: #3B2A5C; --th-akzent: #7B4FE0; }
.th-nostalgie      { background: #F5EBDD; color: #3A2A1C; --th-akzent: #7A3E2B; }
.th-klar           { background: #FFFFFF; color: #111111; --th-akzent: #D63B3F; }

.schritte li { margin-bottom: .6rem; }
.haken { list-style: none; padding: 0; }
.haken li { padding-left: 1.6em; position: relative; margin-bottom: .5rem; }
.haken li::before { content: "✓"; position: absolute; left: 0; color: #0d5c46; font-weight: 700; }

.fuss { background: var(--hg); color: var(--gedaempft); padding: 24px 16px; }
.fuss nav { max-width: 760px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.fuss a { color: var(--text); display: inline-block; min-height: 44px; line-height: 44px; }

/* Rechtsseiten */
.platzhalter { border: 3px dashed #c0392b; background: #fff4f2; padding: 12px 18px; border-radius: 8px; }
/* Offene Angaben in Impressum und Datenschutz: vor dem Start ausfüllen (Test TestKeineOffenenAngaben) */
.offen { background: #fff4f2; color: #c0392b; font-weight: 700; padding: 0 .2em; }
.stand { margin-top: 2rem; color: var(--gedaempft); font-size: .95rem; }
.hinweis-intern { font-family: "Lato", sans-serif; font-size: .9rem; color: #c0392b; }

/* Admin */
.admin main { padding: 16px; max-width: 1200px; margin: 0 auto; }
.admin h1 { font-size: 1.6rem; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kacheln div { background: #fff; border: 1px solid #ddd; border-radius: 10px; padding: 12px; font-size: .9rem; }
.kacheln span { display: block; font-size: 1.6rem; font-weight: 700; }
.tabelle-rahmen { overflow-x: auto; }
.admin table { border-collapse: collapse; font-size: .85rem; background: #fff; min-width: 100%; }
.admin th, .admin td { border: 1px solid #ddd; padding: 4px 8px; text-align: right; white-space: nowrap; }
.admin td:first-child, .admin th:first-child, .meldungen td { text-align: left; }
.meldungen td { white-space: normal; max-width: 360px; }
.meldungen .erledigt { color: #888; }
.aktionen form { display: inline; }
.aktionen button { min-height: 36px; margin: 2px; cursor: pointer; }
.gefahr { background: #b3261e; color: #fff; border: 0; border-radius: 6px; padding: 0 10px; }
.admin-hinweis { background: #e7f4ea; padding: 8px 12px; border-radius: 6px; }
.klein { font-size: .85rem; color: #555; }

/* Admin: Statistik */
.admin h3 { font-size: 1.05rem; margin: .4rem 0; }
.stat-spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.admin table.rang td { white-space: normal; }
.admin table.rang td:nth-child(2) { text-align: left; width: 90px; }
.admin meter { width: 90px; height: 12px; vertical-align: middle; }
.verlauf { width: 100%; max-width: 720px; height: auto; background: #fff; border: 1px solid #ddd; border-radius: 10px; }
.verlauf .gitter { stroke: #e3e3e3; stroke-width: 1; }
.verlauf .achse { font-size: 10px; fill: #555; }
.balken-angelegt { fill: #3E6355; background: #3E6355; }
.balken-geoeffnet { fill: #D9A84E; background: #D9A84E; }
.balken-finale { fill: #B3261E; background: #B3261E; }
.legende { font-size: .9rem; }
.punkt { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin: 0 4px 0 12px; vertical-align: -1px; }
