/* ---------------------------------------------------------------------------
   /lernmodul-online/lo.css

   Gemeinsame Gestaltung des Lerntrainers. Uebernommen aus Modul.php, damit
   das verkaufte Werkzeug aussieht wie der Rest von unterHUNDs und nicht wie
   etwas Fremdes: gleiches Gruen, Arial, fester Kopf mit Banner und Logo,
   Kacheln im Raster mit Fortschrittsbalken.

   Eine Datei fuer alle Seiten. Wenn sich die Gestaltung aendert, aendert
   sie sich ueberall - genau das ist bei den einzelnen style-Bloecken
   vorher nicht passiert.
--------------------------------------------------------------------------- */

:root {
  --green:      #299533;
  --green-dark: #226e35;
  --green-tief: #215c2d;
  --bg:         #f8f8f8;
  --card:       #ffffff;
  --text:       #222;
  --muted:      #666;
  --border:     rgba(0, 0, 0, 0.08);
  --shadow:     0 8px 28px rgba(0, 0, 0, 0.10);
  --gut:        #299533;
  --mittel:     #f39c12;
  --schwach:    #e74c3c;
  --safe-area:  env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  font-family: Arial, sans-serif;
  background: var(--bg);
  margin: 0;
  color: var(--text);
  padding-bottom: var(--safe-area);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
a.link { color: var(--green-dark); text-decoration: underline; }


/* --- Kopf ---------------------------------------------------------------- */

.uh-header { background: var(--green); position: sticky; top: 0; z-index: 100; }

.uh-header-inner {
  display: flex; justify-content: center; align-items: center; gap: 18px;
  height: 80px; padding: 0 12px;
}

.uh-banner, .uh-logo { height: 60px; width: auto; max-height: 80px; }

/* Zweite Zeile: Name, Stand, Navigation */
.uh-leiste {
  background: var(--green-dark);
  color: #fff;
  padding: 8px 14px;
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  align-items: center; justify-content: center;
  font-size: 0.92em;
}
.uh-leiste a { border-bottom: 1px solid rgba(255, 255, 255, 0.45); }
.uh-leiste a:hover { border-bottom-color: #fff; }
.uh-leiste .stand { font-weight: bold; }

@media (max-width: 600px) {
  .uh-header-inner { height: 52px; gap: 10px; }
  .uh-banner, .uh-logo { height: 38px; }
  .uh-leiste { font-size: 0.86em; gap: 4px 12px; }
}


/* --- Grundgeruest -------------------------------------------------------- */

.container { max-width: 1200px; margin: 20px auto; padding: 16px; }
.container.schmal { max-width: 780px; }
.container.eng    { max-width: 460px; }

h1 { font-size: 26px; margin: 0 0 10px; }
h2 { font-size: 22px; margin: 0 0 10px; }
h3 { font-size: 17px; margin: 0 0 6px; }

.subline { color: var(--muted); margin-bottom: 18px; }

.abschnitt-titel {
  font-size: 20px; color: var(--green); margin: 34px 0 12px; font-weight: bold;
}

@media (max-width: 600px) {
  .container { padding: 12px; }
  h1 { font-size: 22px; }
  h2 { font-size: 20px; }
  .subline { font-size: 0.95em; margin-bottom: 16px; }
  .abschnitt-titel { font-size: 18px; margin: 28px 0 10px; }
}


/* --- Karten und Raster --------------------------------------------------- */

.karte {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin-bottom: 14px;
}

.raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 14px 0 20px; }
@media (max-width: 1024px) { .raster { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px)  { .raster { grid-template-columns: 1fr; gap: 12px; margin: 12px 0 18px; } }

.kachel {
  background: #fdfdfd;
  border: 0;
  border-radius: 16px;
  padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .045);
  transition: box-shadow .12s ease, background .12s ease;
}
.kachel:hover { background: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .09); }
/**
 * Der Titel bekommt Platz fuer zwei Zeilen, auch wenn er nur eine braucht.
 * Sonst sitzen Balken und Zahl in einer Reihe mal hoeher, mal tiefer -
 * je nachdem wie lang der Blockname ist. Das wirkt unruhig, obwohl die
 * Karten selbst gleich hoch sind.
 */
.kachel .titel {
  font-weight: bold; font-size: 0.97em;
  line-height: 1.35;
  min-height: 2.7em;
  display: flex; align-items: flex-start;
}

/* Balken und Zahl sitzen dadurch immer auf derselben Hoehe */
.kachel .balken-huelle { margin-top: auto; }
.kachel .zusatz { color: var(--muted); font-size: 0.83em; }


/* --- Fortschritt --------------------------------------------------------- */

.balken-huelle {
  background: #e6e9e6;
  border-radius: 20px;
  height: 20px;
  overflow: hidden;
  position: relative;
}
.balken {
  background: var(--green);
  height: 100%;
  border-radius: 20px;
  color: #fff;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  min-width: 0;
  transition: width .4s ease;
  white-space: nowrap;
}
.balken-klein { height: 9px; }
.balken-klein .balken { line-height: 9px; font-size: 0; }

.wert-reihe { display: flex; justify-content: space-between; font-size: 0.87em; margin-bottom: 3px; }


/* --- Kennzahlen ---------------------------------------------------------- */

.zahlen { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.zahl {
  flex: 1 1 140px; background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px; text-align: center; box-shadow: var(--shadow);
}
.zahl b { display: block; font-size: 1.8em; color: var(--green); line-height: 1.2; }
.zahl span { font-size: 0.82em; color: var(--muted); }


/* --- Knoepfe ------------------------------------------------------------- */

.knopf, button.knopf, a.knopf {
  display: inline-block;
  padding: 12px 24px;
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: 9px;
  font-family: inherit;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
}
.knopf:hover:not(:disabled) { background: var(--green-dark); }
.knopf:disabled { background: #a9bfa9; cursor: not-allowed; }

.knopf.leise { background: #fff; color: var(--green-dark); border: 1px solid var(--border); }
.knopf.leise:hover:not(:disabled) { background: #f1f6f1; }

.knopf.gross { padding: 15px 34px; font-size: 1.08em; }
.knopf.voll  { width: 100%; }

.knopf.kaufen { background: #f39c12; }
.knopf.kaufen:hover { background: #d4880c; }

.knopfreihe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }


/* --- Formulare ----------------------------------------------------------- */

label { display: block; margin: 14px 0 4px; font-weight: bold; font-size: 0.9em; }
label.leicht { font-weight: normal; }

input[type=text], input[type=email], input[type=password],
input[type=number], input[type=search], select, textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #cfcfcf;
  border-radius: 9px;
  font-family: inherit;
  font-size: 1em;
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green);
}
textarea { min-height: 190px; resize: vertical; line-height: 1.55; }

.feld { display: flex; flex-direction: column; }
.feld label { margin-top: 0; }
.reihe { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.reihe > .feld { flex: 1 1 160px; }

.zaehler { text-align: right; font-size: 0.82em; color: var(--muted); margin-top: 5px; }
.zaehler.warnung { color: var(--schwach); font-weight: bold; }


/* --- Meldungen ----------------------------------------------------------- */

.meldung { padding: 13px 15px; border-radius: 10px; margin-bottom: 14px; font-size: 0.95em; }
.meldung.gut     { background: #eef7ef; border-left: 5px solid var(--green); }
.meldung.warnung { background: #fffbe5; border-left: 5px solid var(--mittel); }
.meldung.fehler  { background: #ffeaea; border-left: 5px solid #b00020; }
.meldung strong { display: inline-block; }

.hinweis { font-size: 0.86em; color: var(--muted); margin-top: 8px; }


/* --- Bewertung ----------------------------------------------------------- */

.punkte { font-size: 2.6em; font-weight: bold; line-height: 1; }
.punkte small { font-size: 0.36em; font-weight: normal; color: var(--muted); }
.punkte.gut     { color: var(--gut); }
.punkte.mittel  { color: var(--mittel); }
.punkte.schwach { color: var(--schwach); }

.marke {
  display: inline-block; font-size: 0.78em; padding: 3px 10px;
  border-radius: 20px; background: #eef1ee; color: var(--muted);
}
.marke.bestanden { background: #b7e1c2; color: #16532a; }
.marke.aktiv     { background: #dff0e2; color: #1d6b2c; }
.marke.warnung   { background: #fff3e0; color: #8a5300; }
.marke.offen     { background: #fffbe5; color: #8a6300; }
.marke.gesperrt  { background: #ffeaea; color: #a02020; }

.frage-text { font-size: 1.08em; font-weight: bold; margin: 0 0 6px; }
.antwort-block, .muster-block {
  white-space: pre-wrap; font-size: 0.95em;
}
.antwort-block {
  background: #f6f9f6; border: 1px solid var(--border); border-radius: 10px; padding: 13px;
}

ul.liste { margin: 6px 0 0; padding-left: 20px; }
ul.liste li { margin-bottom: 5px; }

details { margin-top: 14px; }
details summary { cursor: pointer; color: var(--green-dark); font-weight: bold; }


/* --- Ueberlagerung fuer die Runde ---------------------------------------- */

.ueberlagerung {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .55);
  display: none; align-items: flex-start; justify-content: center;
  padding: 20px 12px; overflow-y: auto; z-index: 200;
}
.ueberlagerung.an { display: flex; }
.fenster {
  background: var(--card); border-radius: 16px; box-shadow: var(--shadow);
  width: 100%; max-width: 760px; padding: 22px; margin: auto;
}
@media (max-width: 600px) {
  .ueberlagerung { padding: 0; }
  .fenster { border-radius: 0; min-height: 100vh; padding: 16px; }
}


/* --- Tabellen (Verwaltung) ----------------------------------------------- */

table.liste { width: 100%; border-collapse: collapse; font-size: 0.92em; }
table.liste th, table.liste td {
  text-align: left; padding: 9px 6px; border-bottom: 1px solid #eef1ee; vertical-align: top;
}
table.liste th { color: var(--muted); font-size: 0.85em; }
table.liste tr:last-child td { border-bottom: 0; }


/* --- Lader --------------------------------------------------------------- */

.lader { display: none; text-align: center; padding: 30px 10px; color: var(--muted); }
.lader.an { display: block; }
.kreisel {
  display: inline-block; width: 26px; height: 26px; vertical-align: middle;
  border: 3px solid #d8e2d8; border-top-color: var(--green);
  border-radius: 50%; animation: dreh .9s linear infinite; margin-right: 10px;
}
@keyframes dreh { to { transform: rotate(360deg); } }


/* --- Fuss ---------------------------------------------------------------- */

.uh-fuss {
  text-align: center; color: var(--muted); font-size: 0.85em;
  padding: 26px 16px 40px;
}
.uh-fuss a { text-decoration: underline; }


/* --- Kopfkarte, Kennzahlen, Bereiche ------------------------------------- */



.kennzahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 34px; }
@media (max-width: 700px) { .kennzahlen { grid-template-columns: 1fr; gap: 10px; } }

.kennzahl {
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .06);
  padding: 22px 24px;
}
.kennzahl b { display: block; font-size: 2.1em; color: var(--green); line-height: 1.1; }
.kennzahl span { color: var(--muted); font-size: 0.95em; }

/* Abschnittsüberschrift mit farbigem Balken statt Symbol */
.bereich-titel {
  display: flex; align-items: center; gap: 12px;
  font-size: 21px; color: var(--green); font-weight: bold;
  margin: 34px 0 14px;
}
.bereich-titel::before {
  content: ""; display: block; width: 6px; height: 26px;
  background: var(--green); border-radius: 4px; flex: 0 0 6px;
}
.bereich-titel.fach::before { background: #f39c12; }

.weiterlernen {
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .06);
  padding: 24px 26px;
  margin-bottom: 16px;
  display: flex; flex-wrap: wrap; gap: 18px;
  align-items: center; justify-content: space-between;
}
.weiterlernen .info { flex: 1 1 260px; min-width: 0; }
.weiterlernen .stand-text { font-weight: bold; margin-bottom: 8px; }
.weiterlernen .stand-text span { font-weight: normal; color: var(--muted); }

@media (max-width: 600px) {
  .weiterlernen { padding: 18px; border-radius: 14px; }
  .weiterlernen .knopf { width: 100%; }
}

.gezielt {
  color: var(--muted); font-size: 0.9em; font-weight: bold;
  text-transform: uppercase; letter-spacing: .5px;
  margin: 20px 0 10px;
}

/* --- Kleinteile fuer die Kontoseiten ------------------------------------- */

.koeder { position: absolute; left: -9999px; }

.zustimmung {
  margin-top: 20px; margin-bottom: 22px; padding: 14px;
  background: #f6f9f6; border: 1px solid var(--border);
  border-radius: 10px; font-size: 0.88em;
}
.zustimmung label { display: flex; gap: 10px; align-items: flex-start; font-weight: normal; margin: 0; }
.zustimmung input { width: auto; margin-top: 3px; flex: 0 0 auto; }

.mitte { text-align: center; }
.fuss-links { margin-top: 20px; font-size: 0.88em; color: var(--muted); text-align: center; }
.fuss-links a { color: var(--green-dark); text-decoration: underline; }

/* --- Pakete, Schritte, Kriterien ----------------------------------------- */

.paket-zeile {
  display: flex; flex-wrap: wrap; gap: 18px;
  align-items: center; justify-content: space-between;
}
.paket-zeile .titel { font-weight: bold; font-size: 1.05em; }
.paket-zeile .preis { font-size: 1.4em; font-weight: bold; color: var(--green); white-space: nowrap; }
.paket-zeile .stueck { font-size: 0.8em; color: var(--muted); font-weight: normal; }

.schritte { counter-reset: schritt; }
.schritt { display: flex; gap: 15px; margin-bottom: 18px; }
.schritt:last-child { margin-bottom: 0; }
.schritt .nr {
  counter-increment: schritt; flex: 0 0 34px; height: 34px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: bold;
}
.schritt .nr::before { content: counter(schritt); }

table.kriterien td:last-child { text-align: right; font-weight: bold; color: var(--green); white-space: nowrap; }

.punkte-klein { font-weight: bold; font-size: 1.1em; white-space: nowrap; }

.zeile {
  display: flex; gap: 14px; align-items: flex-start; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid #eef1ee;
}
.zeile:last-child { border-bottom: 0; }

.filter { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.filter a {
  font-size: 0.87em; padding: 7px 14px; border-radius: 20px;
  background: #fff; box-shadow: 0 3px 12px rgba(0,0,0,.05);
}
.filter a.an { background: var(--green); color: #fff; }

.leer { text-align: center; color: var(--muted); padding: 30px 10px; }

.punkte-punkte::after { content: '.'; animation: punkte 1.4s steps(4, end) infinite; }
@keyframes punkte { 0% { content: '.'; } 33% { content: '..'; } 66% { content: '...'; } }

/* --- Reiterzeile der Verwaltung ------------------------------------------ */

.reiter {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 20px;
}
.reiter a {
  padding: 9px 18px; border-radius: 20px; font-weight: bold; font-size: 0.92em;
  background: #fff; box-shadow: 0 3px 12px rgba(0, 0, 0, .05); color: var(--muted);
}
.reiter a:hover { color: var(--green-dark); }
.reiter a.an { background: var(--green); color: #fff; }

/* --- Passwort anzeigen --------------------------------------------------- */

.pw-huelle { position: relative; }
.pw-huelle input { padding-right: 78px; }

.pw-schalter {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  background: none; border: 0; padding: 6px 10px;
  font-family: inherit; font-size: 0.85em; font-weight: bold;
  color: var(--green-dark); cursor: pointer; border-radius: 7px;
  width: auto;
}
.pw-schalter:hover { background: #eef4ee; }
.pw-schalter:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }

/* --- Fusszeile ----------------------------------------------------------- */

.uh-fuss-links {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  justify-content: center; margin-bottom: 14px;
}
.uh-fuss-links a { color: var(--green-dark); text-decoration: none; font-weight: bold; }
.uh-fuss-links a:hover { text-decoration: underline; }
.uh-fuss-text { margin: 0; line-height: 1.7; }

/* --- Auswertung ---------------------------------------------------------- */

.ergebnis-kopf {
  background: linear-gradient(135deg, #f7faf7 0%, #eef3ee 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 22px;
  text-align: center;
  margin-bottom: 20px;
}

.score-kreis {
  width: 104px; height: 104px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  color: #fff; font-weight: 800; font-size: 38px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .13);
}
.score-kreis.gut     { background: var(--green); }
.score-kreis.mittel  { background: var(--mittel); }
.score-kreis.schwach { background: var(--schwach); }

.score-label { font-weight: bold; font-size: 21px; margin-bottom: 3px; }
.score-label.gut     { color: var(--green); }
.score-label.mittel  { color: var(--mittel); }
.score-label.schwach { color: var(--schwach); }
.score-punkte { color: var(--muted); font-size: 0.98em; }

.fazit {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 15px 16px; margin-top: 16px; text-align: left; line-height: 1.6;
}

.kriterien-titel {
  font-weight: bold; font-size: 1.02em; color: var(--muted);
  margin: 22px 0 12px;
}

.kriterium {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 15px 16px; margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}
.kriterium .zeile-oben {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-bottom: 10px;
}
.kriterium .name { display: flex; align-items: center; gap: 11px; font-weight: bold; }
.kriterium .nr {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 34px;
  background: #eef4ee; color: var(--green-dark);
  display: flex; align-items: center; justify-content: center; font-weight: bold;
}
.kriterium .wert { font-weight: bold; white-space: nowrap; color: var(--muted); }
.kriterium .wert b { color: var(--text); font-size: 1.1em; }



.kennzahl b.gut     { color: var(--green); }
.kennzahl b.mittel  { color: var(--mittel); }
.kennzahl b.schwach { color: var(--schwach); }

/* --- Rueckmeldeblöcke ----------------------------------------------------- */

.block-kopf { display: flex; align-items: flex-start; gap: 12px; margin: 26px 0 10px; }
.block-kopf .symbol {
  width: 40px; height: 40px; border-radius: 12px; flex: 0 0 40px;
  display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.block-kopf .titel { font-weight: bold; font-size: 1.12em; line-height: 1.3; }
.block-kopf .unter { font-size: 0.85em; margin-top: 2px; }

.block-staerke .symbol      { background: #d1fae5; }
.block-staerke .titel       { color: #065f46; }
.block-staerke .unter       { color: #047857; }

.block-luecke .symbol       { background: #fef3c7; }
.block-luecke .titel        { color: #92400e; }
.block-luecke .unter        { color: #b45309; }

.block-verbesserung .symbol { background: #dbeafe; }
.block-verbesserung .titel  { color: #1e40af; }
.block-verbesserung .unter  { color: #1d4ed8; }

.punkt {
  padding: 13px 16px; margin: 8px 0; border-radius: 10px;
  background: rgba(249, 250, 251, .8); border-left: 4px solid var(--green);
  line-height: 1.55; font-size: 0.97em;
}
.punkt:nth-child(even) { background: rgba(255, 255, 255, .9); }
.punkt.luecke       { border-left-color: var(--mittel); }
.punkt.verbesserung { border-left-color: #3b82f6; }
.punkt.leer {
  border-left-color: #d8dcd8; color: var(--muted);
  font-style: italic; text-align: center;
}

.abschluss {
  display: flex; gap: 12px; align-items: flex-start;
  background: #f7faf9; border: 1px solid var(--border); border-radius: 12px;
  padding: 16px; margin-top: 24px;
}
.abschluss .symbol { font-size: 19px; flex: 0 0 auto; }
.abschluss .titel  { font-weight: bold; margin-bottom: 5px; }
.abschluss .text   { font-size: 0.92em; color: var(--muted); line-height: 1.6; }

.fazit { display: flex; gap: 11px; align-items: flex-start; }
.fazit .symbol { flex: 0 0 auto; font-size: 18px; line-height: 1.4; }

.kriterien-titel { display: flex; align-items: center; gap: 9px; }

/* Wechselnder Hintergrund nur innerhalb einer Gruppe */
.punkte-gruppe .punkt:nth-child(even) { background: rgba(255, 255, 255, .9); }
.punkte-gruppe .punkt:nth-child(odd)  { background: rgba(249, 250, 251, .8); }

.form-hinweis {
  background: #f2f6fb; border-left: 4px solid #3b82f6; border-radius: 9px;
  padding: 11px 14px; margin-bottom: 12px; font-size: 0.9em; color: #1e3a5f;
}

/* Abstand zwischen Zustimmungskasten und Absendeknopf */
.zustimmung + button,
.zustimmung + .knopf { margin-top: 6px; }

/* --- Widerrufszustimmung am Kaufknopf ------------------------------------ */

.widerruf-zeile {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 0.78em; font-weight: normal; color: var(--muted);
  line-height: 1.45; margin: 0 0 10px; max-width: 300px;
}
.widerruf-zeile input { width: auto; margin-top: 2px; flex: 0 0 auto; }
.widerruf-zeile a { color: var(--muted); text-decoration: underline; }
.widerruf-zeile a:hover { color: var(--green-dark); }

/* Rechte Spalte der Paketzeile darf breiter werden, damit die Zeile passt */
.paket-zeile form { text-align: left; }

/* --- Paketkarte ---------------------------------------------------------- */

.paket-karte { padding: 22px 24px; }
.paket-karte .titel { font-size: 1.12em; margin-bottom: 4px; }
.paket-karte .text { color: var(--muted); font-size: 0.93em; }
.paket-karte .preis { font-size: 1.75em; line-height: 1.1; margin-bottom: 12px; }
.paket-karte .knopf { min-width: 160px; }

@media (max-width: 600px) {
  .paket-karte { padding: 18px; }
  .paket-karte > .paket-zeile > div:last-child { width: 100%; text-align: left !important; }
  .paket-karte .knopf { width: 100%; }
  .widerruf-zeile { max-width: none; }
}

/* --- Dankeseite nach dem Kauf -------------------------------------------- */

.danke-karte {
  text-align: center;
  padding: 34px 28px 30px;
  margin-top: 26px;
}
.danke-karte h1 { font-size: 26px; margin: 0 0 8px; }
.danke-karte .subline { margin: 0 0 22px; }
.danke-karte .hinweis { max-width: 34ch; margin-left: auto; margin-right: auto; }

.danke-haken {
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--green); color: #fff;
  font-size: 32px; line-height: 62px; font-weight: bold;
  margin: 0 auto 18px;
}

.danke-stand {
  background: #f2f7f2;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 24px;
  font-size: 1.05em;
}
.danke-stand strong { color: var(--green-dark); }
.danke-stand .bis { font-size: 0.85em; color: var(--muted); margin-top: 4px; }

@media (max-width: 600px) {
  .danke-karte { padding: 26px 20px 24px; }
  .danke-karte h1 { font-size: 23px; }
  .danke-karte .knopf { width: 100%; }
}

/* Anzahl neben der Bereichsüberschrift */
.bereich-anzahl {
  font-size: 0.68em; font-weight: normal; color: var(--muted);
  margin-left: 10px; white-space: nowrap;
}

/* Aufteilung unter der Kennzahl */
.kennzahl .hinweis { display: block; margin-top: 3px; font-size: 0.92em; }

/* --- Kopfbereich --------------------------------------------------------- */

/**
 * Gruener Ton statt Weiss: Der Kopf soll sich als Kopf zu erkennen geben.
 * Vorher waren Kopf, Kennzahlen, Bereichskarten und Blockkacheln allesamt
 * weiss - sechs gleiche Flaechen ohne Rangordnung.
 */
.buehne {
  background: linear-gradient(135deg, #eef6ef 0%, #e3efe4 100%);
  border-radius: 18px;
  padding: 26px 30px 22px;
  margin-bottom: 16px;
  display: flex; flex-wrap: wrap; gap: 26px; align-items: center;
}
.buehne-text { flex: 1 1 320px; min-width: 0; }
.buehne h1 { font-size: 28px; margin: 0 0 6px; letter-spacing: -0.4px; }
.buehne .text { color: var(--muted); margin: 0; font-size: 0.98em; max-width: 46ch; }

.buehne-fortschritt { flex: 1 1 300px; min-width: 0; }
.buehne-fortschritt .balken-huelle { height: 12px; background: #fff; }
.buehne-fortschritt .balken { font-size: 0; }
.buehne-fortschritt .unterschrift {
  font-weight: bold; font-size: 0.92em; margin-top: 9px;
}
.buehne-fortschritt .unterschrift span { font-weight: normal; color: var(--muted); }
.buehne-fortschritt .unterschrift span:first-child {
  font-weight: bold; color: var(--green-dark);
}
.buehne-fortschritt .regel {
  font-size: 0.82em; color: var(--muted); margin-top: 6px;
}

@media (max-width: 760px) {
  .buehne { padding: 20px 18px 18px; border-radius: 14px; gap: 18px; }
  .buehne h1 { font-size: 23px; }
  .buehne .text { font-size: 0.94em; }
}

/* --- Kennzahlen: nur noch zwei, kleiner ---------------------------------- */

.kennzahlen.zweispaltig { grid-template-columns: repeat(2, 1fr); margin-bottom: 28px; }
@media (max-width: 700px) { .kennzahlen.zweispaltig { grid-template-columns: 1fr; } }

.kennzahlen.zweispaltig .kennzahl { padding: 16px 20px; }
.kennzahlen.zweispaltig .kennzahl b { font-size: 1.7em; }

/* --- Rangordnung: Handlung kraeftig, Kacheln ruhig ----------------------- */

.weiterlernen { box-shadow: 0 8px 26px rgba(0, 0, 0, .09); }

.gezielt { margin-top: 22px; }

/* --- Kontoseiten: Karte mittig statt oben klebend ------------------------ */

/**
 * Anmeldung, Registrierung und die Passwortseiten haben wenig Inhalt.
 * Ohne diese Regel klebt die Karte oben und darunter steht eine grosse
 * leere Flaeche bis zur Fusszeile.
 */
body.konto-seite { display: flex; flex-direction: column; min-height: 100vh; }
body.konto-seite .container {
  flex: 1 0 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding-top: 20px; padding-bottom: 20px;
}
body.konto-seite .container > .karte { width: 100%; margin: 0; }
body.konto-seite .uh-fuss { flex: 0 0 auto; padding-top: 18px; }

@media (max-width: 600px) {
  body.konto-seite .container { align-items: flex-start; padding-top: 14px; }
}

/* --- Abstaende in Formularen -------------------------------------------- */

/**
 * Der Absendeknopf braucht Luft zum letzten Feld. In den frueheren
 * einzelnen style-Bloecken stand das, beim Umzug in dieses Stylesheet
 * ist es untergegangen - der Knopf klebte direkt am Eingabefeld.
 */
.karte form .knopf.voll { margin-top: 26px; }

/* Nach dem Zustimmungskasten reicht weniger, der bringt eigenen Abstand mit */
.zustimmung + .knopf.voll { margin-top: 18px; }

/* Etwas mehr Luft zwischen den Feldern selbst */
.karte form label { margin-top: 18px; }
.karte form .reihe label { margin-top: 0; }

/* ========================================================================
   Oeffentliche Seite (info.php)
   ======================================================================== */

.info-kopf { text-align: center; padding: 8px 0 26px; }
.info-kopf h1 {
  font-size: 32px; line-height: 1.25; margin: 0 0 18px;
  letter-spacing: -0.5px; max-width: 20ch; margin-left: auto; margin-right: auto;
}
.info-vorspann {
  max-width: 58ch; margin: 0 auto 14px; color: var(--muted);
  font-size: 1.02em; line-height: 1.65;
}
.info-tat { margin-top: 26px; }
.info-tat .hinweis { margin-top: 10px; }

.info-titel {
  font-size: 22px; margin: 46px 0 8px; letter-spacing: -0.2px;
}
.info-text {
  color: var(--muted); margin: 0 0 20px; max-width: 62ch; line-height: 1.6;
}

/* Bildschirmfotos ------------------------------------------------------- */

.info-bild { margin: 0 0 8px; }
.info-bild img {
  width: 100%; height: auto; display: block;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .10);
}

.bild-paar {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
  align-items: start;
}
.bild-paar figure { margin: 0; }
.bild-paar img {
  width: 100%; height: auto; display: block;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .10);
}
.bild-paar figcaption {
  font-size: 0.85em; color: var(--muted); text-align: center;
  margin-top: 10px; line-height: 1.45;
}

@media (max-width: 640px) {
  .bild-paar { grid-template-columns: 1fr; gap: 26px; }
}

/* Ablauf in drei Schritten ---------------------------------------------- */

.schritte { display: flex; flex-direction: column; gap: 22px; }
.schritt { display: flex; gap: 16px; align-items: flex-start; }
.schritt .nr {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  background: var(--green); color: #fff;
  font-weight: bold; font-size: 0.9em;
  display: flex; align-items: center; justify-content: center;
}
.schritt h3 { margin: 0 0 4px; font-size: 1.02em; }
.schritt > div:last-child { color: var(--muted); line-height: 1.6; }

/* Bewertungskriterien ---------------------------------------------------- */

.kriterien td:last-child {
  text-align: right; white-space: nowrap; color: var(--muted);
}

/* Themenliste ------------------------------------------------------------ */

.themen { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 640px) { .themen { grid-template-columns: 1fr; gap: 20px; } }

.liste-punkte { margin: 10px 0 0; padding-left: 20px; color: var(--muted); }
.liste-punkte li { margin-bottom: 7px; line-height: 1.5; }

/* Hinweiskasten ---------------------------------------------------------- */

.ehrlich p { margin: 0 0 14px; color: var(--muted); line-height: 1.6; }
.ehrlich p:last-child { margin-bottom: 0; }
.ehrlich strong { color: var(--text); }

/* Abschluss -------------------------------------------------------------- */

.info-abschluss {
  text-align: center; padding: 44px 20px;
  background: linear-gradient(135deg, #eef6ef 0%, #e3efe4 100%);
  border-radius: 18px; margin-top: 46px;
}
.info-abschluss h2 { margin: 0 0 8px; font-size: 22px; }
.info-abschluss p { color: var(--muted); margin: 0 0 20px; }

@media (max-width: 640px) {
  .info-kopf h1 { font-size: 25px; }
  .info-titel { font-size: 19px; margin-top: 36px; }
  .info-abschluss { padding: 32px 18px; }
  .info-kopf .knopf.gross,
  .info-abschluss .knopf.gross { width: 100%; }
}

/**
 * Ohne Bereichstrennung gibt es nur eine Liste. Die soll nicht als schmale
 * Spalte links stehen, sondern die Namen selbst zweispaltig verteilen.
 */
.themen.einspaltig { grid-template-columns: 1fr; }
.themen.einspaltig .liste-punkte { columns: 2; column-gap: 30px; margin-top: 0; }
.themen.einspaltig .liste-punkte li { break-inside: avoid; }

@media (max-width: 640px) {
  .themen.einspaltig .liste-punkte { columns: 1; }
}

/* Unterzeile unter der Hauptueberschrift: traegt die Suchbegriffe */
.info-unterzeile {
  font-size: 1.05em; color: var(--green-dark); font-weight: bold;
  margin: -8px 0 22px; letter-spacing: -0.1px;
}
@media (max-width: 640px) {
  .info-unterzeile { font-size: 0.98em; margin-bottom: 18px; }
}

/* --- Die zwei Stufen: Pruefungstrainer und Lerntrainer ------------------ */

.geschwister > p:first-child { margin: 0 0 20px; color: var(--muted); }

.stufen { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .stufen { grid-template-columns: 1fr; } }

.stufe {
  background: #f7f9f7;
  border-radius: 14px;
  padding: 20px;
}
.stufe.hier {
  background: #eef6ef;
  box-shadow: inset 0 0 0 2px rgba(41, 149, 51, .25);
}
.stufe h3 { margin: 0 0 10px; font-size: 1.05em; }
.stufe p { margin: 0 0 12px; color: var(--muted); line-height: 1.55; font-size: 0.95em; }
.stufe .hinweis { margin-bottom: 12px; }
.stufe > a { font-weight: bold; }

.marke-stufe {
  display: inline-block;
  font-size: 0.72em; font-weight: bold; letter-spacing: 0.5px;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 6px;
}
.stufe.hier .marke-stufe { color: var(--green-dark); }

.jetzt { font-weight: normal; font-size: 0.85em; color: var(--green-dark); }

/* ========================================================================
   Bewertungen
   ======================================================================== */

/* Sternewahl: umgekehrte Reihenfolge im HTML, damit ~ die linken faerbt */
.sterne-wahl {
  display: inline-flex; flex-direction: row-reverse;
  gap: 4px; margin-bottom: 6px;
}
.sterne-wahl input { position: absolute; opacity: 0; width: 0; height: 0; }
.sterne-wahl label {
  font-size: 34px; line-height: 1; cursor: pointer;
  color: #ddd; margin: 0; padding: 0 2px;
  transition: color .12s ease;
}
.sterne-wahl input:checked ~ label,
.sterne-wahl label:hover,
.sterne-wahl label:hover ~ label { color: #f0a500; }
.sterne-wahl input:focus-visible + label { outline: 2px solid var(--green); border-radius: 4px; }

/* Kopf der Anzeigeseite: Schnitt links, Verteilung rechts */
.bewertung-kopf {
  display: flex; flex-wrap: wrap; gap: 30px; align-items: center;
}
.bewertung-kopf .gesamt { flex: 0 0 auto; text-align: center; min-width: 120px; }
.bewertung-kopf .zahl {
  font-size: 3em; font-weight: bold; color: var(--green-dark); line-height: 1;
}
.bewertung-kopf .sterne { color: #f0a500; font-size: 1.2em; letter-spacing: 2px; margin: 6px 0 2px; }

.verteilung { flex: 1 1 240px; min-width: 0; }
.verteilung .zeile {
  display: flex; align-items: center; gap: 10px; margin-bottom: 5px;
  font-size: 0.85em; color: var(--muted);
}
.verteilung .stufe { flex: 0 0 34px; white-space: nowrap; }
.verteilung .balken-huelle { flex: 1 1 auto; height: 8px; }
.verteilung .wert { flex: 0 0 24px; text-align: right; }

/* Einzelne Stimme */
.karte.stimme { padding: 18px 20px; }
.karte.stimme .oben {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.karte.stimme .oben .sterne { color: #f0a500; letter-spacing: 1px; }
.karte.stimme .oben .wer { font-weight: bold; }
.karte.stimme .oben .wann { color: var(--muted); font-size: 0.82em; margin-left: auto; }
.karte.stimme p { margin: 0; line-height: 1.6; }

/* Zaehler am Reiter im Adminbereich */
.reiter .zaehler {
  display: inline-block; min-width: 18px; padding: 1px 6px;
  border-radius: 999px; background: #d9822b; color: #fff;
  font-size: 0.72em; font-weight: bold; line-height: 1.5;
  margin-left: 4px; vertical-align: middle;
}

@media (max-width: 600px) {
  .bewertung-kopf { gap: 18px; }
  .bewertung-kopf .gesamt { flex: 1 1 100%; }
  .sterne-wahl label { font-size: 30px; }
  .karte.stimme .oben .wann { margin-left: 0; width: 100%; }
}
