/* StromWS – mobil zuerst. Farben aus der Designvorlage: Grün-Balken, lila Handschrift. */
:root {
  --gruen: #7cc230;
  --gruen-dunkel: #5a9a1b;
  --lila: #7b2ab8;
  --lila-hell: #f3eafa;
  --text: #1f2328;
  --text-leise: #5b636d;
  --rand: #e3e6ea;
  --hintergrund: #f7f8f5;
  --karte: #ffffff;
  --warnung: #b45309;
  --warnung-hell: #fff7e6;
  --fehler: #b91c1c;
  --fehler-hell: #fdecec;
  --radius: 14px;
  --schatten: 0 1px 3px rgba(0,0,0,.06), 0 6px 20px rgba(0,0,0,.05);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--hintergrund); color: var(--text);
  font: 16px/1.5 "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--lila); }
.inhalt { max-width: 680px; margin: 0 auto; padding: 0 16px 48px; }

/* Kopf */
.kopf { background: #fff; border-bottom: 1px solid var(--rand); }
.kopf .inhalt { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.logo { font-family: "Gochi Hand", cursive; font-size: 28px; color: var(--lila); text-decoration: none; line-height: 1; }
.logo span { background: var(--gruen); color: #fff; padding: 0 6px; border-radius: 4px; margin-left: 2px; }
.kopf small { color: var(--text-leise); font-size: 13px; }

/* Bühne mit Handschrift auf Grün */
.buehne { text-align: center; padding: 28px 0 8px; }
.buehne h1 {
  font-family: "Gochi Hand", cursive; font-weight: 400; color: var(--lila);
  font-size: clamp(34px, 9vw, 52px); line-height: 1.05; margin: 0 0 14px; transform: rotate(-2deg);
}
.buehne h1 mark { background: linear-gradient(transparent 18%, var(--gruen) 18%, var(--gruen) 88%, transparent 88%); color: var(--lila); padding: 0 6px; }
.buehne p { color: var(--text-leise); margin: 0 auto 18px; max-width: 34em; }

/* Karten, Knöpfe, Formulare */
.karte { background: var(--karte); border: 1px solid var(--rand); border-radius: var(--radius); box-shadow: var(--schatten); padding: 20px; margin: 16px 0; }
.karte h2 { font-size: 19px; margin: 0 0 12px; }
.knopf {
  display: block; width: 100%; border: 0; border-radius: 999px; padding: 15px 20px; cursor: pointer;
  background: var(--gruen); color: #fff; font-family: inherit; font-weight: 700; font-size: 17px; line-height: 1.2;
  text-align: center; text-decoration: none;
  box-shadow: 0 3px 0 var(--gruen-dunkel);
}
.knopf:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--gruen-dunkel); }
.knopf:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.knopf.zweit { background: #fff; color: var(--lila); border: 2px solid var(--lila); box-shadow: none; }
.knopf + .knopf { margin-top: 10px; }
label { display: block; font-weight: 600; font-size: 14px; margin: 12px 0 4px; }
input[type=text], input[type=password], input[type=email], input[type=tel], input[type=date], input[type=number], select {
  width: 100%; padding: 12px; font: inherit; border: 1px solid #c9ced4; border-radius: 10px; background: #fff;
}
input:focus { outline: 3px solid rgba(123,42,184,.25); border-color: var(--lila); }
.zweispaltig { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
@media (min-width: 520px) { .zweispaltig { grid-template-columns: 2fr 1fr; } }
.haken { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 12px 0; }
.haken input { width: 22px; height: 22px; margin-top: 1px; flex: none; accent-color: var(--lila); }
.unsicher input { border-color: var(--warnung); background: var(--warnung-hell); }
.hinweis { font-size: 13px; color: var(--text-leise); }
.hinweis a { overflow-wrap: anywhere; }

/* Hochladen */
.upload { border: 2px dashed var(--gruen); border-radius: var(--radius); padding: 22px 16px; text-align: center; background: #fbfdf7; }
.upload input[type=file] { display: none; }
.upload .dateiname { margin-top: 10px; font-size: 14px; color: var(--text-leise); }
.schritte { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.schritte li { counter-increment: s; display: flex; gap: 12px; padding: 8px 0; }
.schritte li::before { content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--lila); color: #fff; display: grid; place-items: center; font-weight: 700; }
.vorteile { display: grid; gap: 8px; padding: 0; list-style: none; margin: 0; }
.vorteile li::before { content: "✓ "; color: var(--gruen-dunkel); font-weight: 800; }

/* Fortschritt */
.lader { width: 48px; height: 48px; border: 5px solid var(--lila-hell); border-top-color: var(--lila); border-radius: 50%; margin: 10px auto 16px; animation: drehen 1s linear infinite; }
@keyframes drehen { to { transform: rotate(360deg); } }
.mittig { text-align: center; }

/* Ergebnis */
.ersparnis { text-align: center; background: var(--lila); color: #fff; border: 0; }
.ersparnis .betrag { font-family: "Gochi Hand", cursive; font-size: clamp(54px, 16vw, 76px); line-height: 1; margin: 6px 0; }
.ersparnis p { margin: 4px 0; opacity: .92; }
.ersparnis .teilen { background: rgba(255,255,255,.12); border-radius: 12px; padding: 10px 12px; margin-top: 14px; text-align: left; }
.vergleich { width: 100%; border-collapse: collapse; font-size: 15px; }
.vergleich td { padding: 8px 0; border-bottom: 1px solid var(--rand); }
.vergleich td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vergleich tr.summe td { font-weight: 800; border-bottom: 0; }
.vergleich.admin td:last-child { white-space: normal; overflow-wrap: anywhere; text-align: left; padding-left: 12px; }
.tarif { border: 2px solid var(--rand); border-radius: 12px; padding: 12px; margin: 10px 0; display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.tarif:has(input:checked) { border-color: var(--lila); background: var(--lila-hell); }
.tarif input { margin-top: 4px; accent-color: var(--lila); }
.tarif .preis { margin-left: auto; text-align: right; font-weight: 700; white-space: nowrap; }
.etikett { display: inline-block; font-size: 12px; background: var(--gruen); color: #fff; border-radius: 999px; padding: 1px 8px; margin-left: 4px; }
.meldung { border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.meldung.warnung { background: var(--warnung-hell); color: var(--warnung); }
.meldung.fehler { background: var(--fehler-hell); color: var(--fehler); }
.meldung.ok { background: #eef8e4; color: var(--gruen-dunkel); }
details summary { cursor: pointer; font-weight: 700; }

/* Fuß */
.fuss { text-align: center; font-size: 13px; color: var(--text-leise); padding: 24px 16px; }
.fuss a { color: var(--text-leise); margin: 0 6px; }

/* Back-Office */
.tabelle { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; display: block; overflow-x: auto; }
.tabelle th, .tabelle td { padding: 8px; border-bottom: 1px solid var(--rand); text-align: left; vertical-align: top; }
.breit { max-width: 1100px; }
pre { white-space: pre-wrap; font-size: 12px; background: #f4f4f4; padding: 10px; border-radius: 8px; overflow-x: auto; }

/* Erklärfilm auf der Startseite (Höhe setzt app.js nach Meldung des Films) */
.film-rahmen { display: block; width: 100%; height: calc(56.25vw + 230px); max-height: 760px; border: 0; background: transparent; }
