/* ════════════════════════════════════════════════════════════════════
   LERNPLAN — Informationsseite /lernplan/ (seit 17.11.2026)
   Hauptbuch & Beleg: Papier mit leisem Raster, Tinte-Linien, Serif für
   Text, Mono für Zahlen und Etiketten. Farbe nur als Code:
     Saldo-Rot = Handlung (Buchen) und Lücke
     Ocker     = wackelt, Wiederholung
     Grün      = sitzt
   Ein Stempel, nur im Kopf-Beleg.
   ════════════════════════════════════════════════════════════════════ */

.lp-body {
    --lp-papier: var(--hb-paper, #F4F1E8);
    --lp-karte: var(--hb-card, #FCFAF4);
    --lp-tinte: var(--hb-ink, #23201B);
    --lp-tinte-mitte: var(--hb-ink-mid, #6E6757);
    --lp-grau: #736B5B;
    --lp-linie: var(--hb-border, #DAD3C2);
    --lp-rot: var(--hb-terra, #B0492C);
    --lp-rot-dunkel: #93381C;
    --lp-ocker: #A8744D;
    --lp-ocker-dunkel: #7E5530;
    --lp-gruen: #1F7A4D;
    --lp-serif: 'Lora', 'Source Serif 4', Georgia, serif;
    --lp-mono: 'JetBrains Mono', 'IBM Plex Mono', monospace;

    margin: 0;
    background-color: var(--lp-papier);
    background-image:
        linear-gradient(rgba(35,32,27,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(35,32,27,.055) 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--lp-tinte);
    font-family: var(--lp-serif);
}

.lp-seite {
    box-sizing: border-box;
    max-width: 1120px;
    margin: 0 auto;
    padding: 28px 24px 72px;
}

.lp-body .visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.lp-marke {
    margin: 0 0 8px;
    font-family: var(--lp-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--lp-rot);
}

/* ── Knöpfe ───────────────────────────────────────────────────────── */
.lp-knoepfe { display: flex; flex-wrap: wrap; gap: 12px 16px; margin: 0; }
.lp-knopf, .lp-knopf-zweit {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 0 22px; box-sizing: border-box;
    font-family: var(--lp-mono); font-size: 15px; letter-spacing: .03em; text-decoration: none;
}
.lp-knopf {
    background: var(--lp-rot); color: var(--lp-karte);
    border: 1px solid var(--lp-rot); box-shadow: 3px 3px 0 var(--lp-tinte);
}
.lp-knopf:hover { background: var(--lp-rot-dunkel); }
.lp-knopf-zweit { border: 1px solid var(--lp-tinte); color: var(--lp-tinte); background: transparent; }
.lp-knopf-zweit:hover { background: var(--lp-karte); }
.lp-knopf.ist-gross { min-height: 56px; padding: 0 28px; font-size: 17px; }

/* Der Bestellknopf glänzt (Wunsch 17.11.2026): ein Lichtstreif läuft alle
   paar Sekunden darüber. Ohne Bewegungswunsch nur ein ruhiger Glanz. */
.lp-knopf.ist-glanz {
    position: relative; overflow: hidden; isolation: isolate;
    background: linear-gradient(180deg, #C4583A 0%, var(--lp-rot) 55%, #9E3E22 100%);
    border-color: #8E2E1B;
}
.lp-knopf.ist-glanz span { position: relative; z-index: 1; }
.lp-knopf.ist-glanz::after {
    content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 40%; z-index: 0;
    background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,240,215,.55) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-18deg);
    animation: lp-glanz 3.6s ease-in-out infinite;
}
.lp-knopf.ist-glanz:hover { background: linear-gradient(180deg, #B44A2E 0%, var(--lp-rot-dunkel) 100%); }
.lp-knopf.ist-glanz:hover::after { animation-duration: 1.4s; }
@keyframes lp-glanz {
    0%, 55% { left: -60%; }
    100% { left: 130%; }
}
@media (prefers-reduced-motion: reduce) {
    .lp-knopf.ist-glanz::after { animation: none; left: 55%; opacity: .5; }
}
.lp-seite a:focus-visible, .lp-seite button:focus-visible, .lp-seite summary:focus-visible {
    outline: 3px solid rgba(176,73,44,.45); outline-offset: 2px;
}

/* ── Kopf ─────────────────────────────────────────────────────────── */
.lp-held {
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 40px; align-items: center;
    padding: 30px 0 40px; margin-bottom: 8px;
    border-bottom: 2px solid var(--lp-tinte);
}
.lp-titel {
    margin: 0 0 14px; padding-bottom: 14px;
    border-bottom: 1px solid var(--lp-tinte);
    font-family: var(--lp-serif); font-size: clamp(36px, 5.4vw, 56px); line-height: 1.08; font-weight: 600;
    color: var(--lp-tinte);
}
.lp-unterzeile { max-width: 46ch; margin: 0 0 18px; font-size: 19px; line-height: 1.55; color: var(--lp-tinte); }
.lp-fakten { display: flex; flex-wrap: wrap; gap: 8px 0; margin: 0 0 26px; padding: 0; list-style: none; }
.lp-fakten li {
    padding: 0 14px; border-left: 1px solid var(--lp-linie);
    font-family: var(--lp-mono); font-size: 13px; color: var(--lp-tinte-mitte);
}
.lp-fakten li:first-child { padding-left: 0; border-left: 0; }

/* Beleg rechts im Kopf */
.lp-beleg {
    position: relative; margin: 0; padding: 18px 20px 16px;
    border: 1px solid var(--lp-tinte); background: var(--lp-karte);
    box-shadow: 3px 3px 0 var(--lp-tinte);
    transform: rotate(.6deg);
}
.lp-beleg-kopf {
    display: flex; justify-content: space-between; gap: 10px;
    margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--lp-tinte);
    font-family: var(--lp-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
}
.lp-beleg table { width: 100%; border-collapse: collapse; font-size: 15px; }
.lp-beleg th, .lp-beleg td { padding: 7px 0; border-bottom: 1px solid var(--lp-linie); text-align: left; vertical-align: top; }
.lp-beleg th { width: 3.2em; font-family: var(--lp-mono); font-size: 13px; font-weight: 500; color: var(--lp-tinte-mitte); }
.lp-beleg td:last-child { width: 3em; text-align: right; font-family: var(--lp-mono); font-size: 14px; }
.lp-beleg tr.ist-wdh td:nth-child(2) { color: var(--lp-ocker-dunkel); }
.lp-beleg tfoot th, .lp-beleg tfoot td { border-bottom: 3px double var(--lp-tinte); font-family: var(--lp-mono); font-size: 12px; color: var(--lp-tinte); }
.lp-beleg tfoot th { width: auto; letter-spacing: .06em; text-transform: uppercase; }
.lp-stempel {
    position: absolute; right: 14px; bottom: -16px;
    padding: 4px 10px; border: 2px solid var(--lp-gruen); border-radius: 4px;
    background: var(--lp-karte); color: var(--lp-gruen);
    font-family: var(--lp-mono); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    transform: rotate(-6deg);
}

/* ── Abschnitte ───────────────────────────────────────────────────── */
.lp-abschnitt { padding: 44px 0 8px; }
.lp-h2 {
    margin: 0 0 20px; padding-bottom: 10px; border-bottom: 1px solid var(--lp-tinte);
    font-family: var(--lp-serif); font-size: clamp(26px, 3vw, 34px); line-height: 1.2; font-weight: 600;
}
.lp-vorspann { max-width: 60ch; margin: -6px 0 20px; font-size: 17px; line-height: 1.6; color: var(--lp-tinte-mitte); }

/* Ablauf */
.lp-schritte {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px;
    margin: 0; padding: 0; list-style: none;
}
.lp-schritte li { position: relative; padding-top: 6px; }
.lp-schritt-nr {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; margin-bottom: 10px;
    border: 1px solid var(--lp-tinte); background: var(--lp-tinte); color: var(--lp-karte);
    font-family: var(--lp-mono); font-size: 16px;
}
.lp-schritte h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.3; }
.lp-schritte p { margin: 0 0 10px; font-size: 16px; line-height: 1.6; color: var(--lp-tinte); }

/* ── Beispiele ────────────────────────────────────────────────────── */
.lp-reiter {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--lp-tinte); border-bottom: 0;
}
.lp-reiter[hidden] { display: none; }
.lp-reiter button {
    display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
    min-height: 60px; padding: 10px 16px;
    border: 0; border-right: 1px solid var(--lp-tinte); border-bottom: 1px solid var(--lp-tinte);
    background: transparent; color: var(--lp-tinte); cursor: pointer; text-align: left;
    font-family: var(--lp-serif); font-size: 18px; font-weight: 600;
}
.lp-reiter button:last-child { border-right: 0; }
.lp-reiter button small { font-family: var(--lp-mono); font-size: 12px; font-weight: 400; color: var(--lp-tinte-mitte); }
.lp-reiter button:hover { background: rgba(252,250,244,.8); }
.lp-reiter button[aria-selected="true"] {
    background: var(--lp-karte); border-bottom-color: transparent;
    box-shadow: inset 0 3px 0 var(--lp-rot);
}

.lp-beispiel { padding: 24px 26px 34px; margin-bottom: 22px; border: 1px solid var(--lp-tinte); background: rgba(252,250,244,.55); }
.hat-reiter .lp-beispiel { border-top: 0; margin-bottom: 0; }
.lp-beispiel[hidden] { display: none; }
.lp-beispiel-kopf { max-width: 820px; margin: 0 auto 26px; }
.lp-beispiel-marke {
    margin: 0 0 6px; font-family: var(--lp-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--lp-tinte-mitte);
}
.lp-beispiel-kopf h3 { margin: 0 0 14px; font-size: clamp(21px, 2.3vw, 26px); line-height: 1.3; font-weight: 500; font-style: italic; }
.lp-leistet {
    margin: 0; padding: 2px 0 2px 14px; border-left: 3px solid var(--lp-rot);
    font-size: 16px; line-height: 1.6;
}

/* ── Das Blatt: ein gedruckter Plan, dahinter die Folgeseiten ─────── */
.lp-stapel { position: relative; max-width: 820px; margin: 0 auto; padding: 0 10px 12px 0; }
.lp-stapel::before, .lp-stapel::after {
    content: ""; position: absolute; inset: 0 10px 12px 0;
    border: 1px solid #CFC6B2; background: #FBF9F3;
}
.lp-stapel::before { transform: translate(10px, 12px) rotate(1.2deg); }
.lp-stapel::after { transform: translate(5px, 6px) rotate(.5deg); }
.lp-blatt {
    position: relative; z-index: 1;
    padding: 30px 36px 22px;
    border: 1px solid #CFC6B2; background: #FFFEFA;
    box-shadow: 0 1px 0 rgba(35,32,27,.06);
}
.lp-blatt-kopf {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    padding-bottom: 10px; border-bottom: 2px solid var(--lp-tinte);
    font-family: var(--lp-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--lp-tinte);
}
.lp-blatt-logo { display: inline-flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: .02em; font-size: 13px; }
.lp-blatt-logo img { width: 20px; height: 20px; }
.lp-blatt-fuer { margin: 18px 0 10px; font-size: 26px; line-height: 1.2; }
.lp-blatt-fuer strong { font-weight: 600; }
.lp-eckdaten {
    display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0 0 22px; padding-bottom: 14px;
    border-bottom: 1px solid var(--lp-linie);
}
.lp-eckdaten div { display: flex; flex-direction: column; gap: 2px; }
.lp-eckdaten dt { font-family: var(--lp-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--lp-grau); }
.lp-eckdaten dd { margin: 0; font-family: var(--lp-mono); font-size: 15px; color: var(--lp-tinte); }
.lp-blatt-raster { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 30px; align-items: start; }
.lp-blatt-h {
    margin: 0 0 10px; font-family: var(--lp-mono); font-size: 12px; font-weight: 500;
    letter-spacing: .1em; text-transform: uppercase; color: var(--lp-tinte-mitte);
}
.lp-lage { margin: 0 0 24px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
.lp-lage li { display: flex; align-items: baseline; gap: 10px; font-size: 15px; line-height: 1.4; }
.lp-ampel {
    flex: none; min-width: 5.6em; padding: 1px 6px; box-sizing: border-box; text-align: center;
    border: 1px solid currentColor;
    font-family: var(--lp-mono); font-size: 12px; letter-spacing: .04em;
}
.lp-ampel.ist-gruen { color: var(--lp-gruen); }
.lp-ampel.ist-gelb { color: var(--lp-ocker-dunkel); }
.lp-ampel.ist-rot { color: var(--lp-rot); }
.lp-blatt-fuss {
    display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; padding-top: 8px;
    border-top: 1px solid var(--lp-linie);
    font-family: var(--lp-mono); font-size: 12px; color: var(--lp-grau);
}

/* Randspalte: Tipps nur angedeutet — Überschrift, Satzanfang, dann Balken */
.lp-blatt-rand { display: grid; gap: 14px; }
.lp-hinweis { padding: 10px 12px 12px; border: 1px solid var(--lp-linie); background: #FBF8EF; }
.lp-hinweis.ist-lerntyp { border-left: 3px solid #185FA5; }
.lp-hinweis.ist-tipp { border-left: 3px solid var(--lp-ocker); }
.lp-hinweis.ist-hilfe { border-left: 3px solid var(--lp-gruen); }
.lp-hinweis-titel { margin: 0 0 4px; font-family: var(--lp-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--lp-tinte); }
.lp-hinweis-anfang { margin: 0 0 8px; font-size: 14px; line-height: 1.4; font-style: italic; color: var(--lp-tinte-mitte); }
.lp-balken { display: grid; gap: 6px; margin: 0; }
.lp-balken i { display: block; height: 7px; background: rgba(35,32,27,.11); }

/* Abhak-Kästchen wie auf einem Arbeitsblatt */
.lp-plan .lp-kaestchen { width: 22px; padding-right: 10px; }
.lp-plan .lp-kaestchen::before {
    content: ""; display: block; width: 14px; height: 14px; margin-top: 3px;
    border: 1.5px solid var(--lp-tinte); background: #fff;
}

/* Plantabelle: ein Kontoblatt */
.lp-plan { width: 100%; border-collapse: collapse; font-size: 16px; }
.lp-plan thead th {
    padding: 0 8px 8px 0; border-bottom: 2px solid var(--lp-tinte); text-align: left;
    font-family: var(--lp-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--lp-tinte-mitte);
}
.lp-plan thead th:last-child, .lp-plan td:last-child { text-align: right; padding-right: 0; }
.lp-plan tbody tr.lp-woche td, .lp-plan tbody tr.lp-pruefung td { text-align: left; }
.lp-plan tbody th, .lp-plan td { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--lp-linie); vertical-align: top; text-align: left; line-height: 1.45; }
.lp-plan tbody th { width: 4.4em; font-family: var(--lp-mono); font-size: 14px; font-weight: 500; color: var(--lp-tinte-mitte); }
.lp-plan.ist-wochen tbody th { width: 5.4em; }
.lp-plan td:last-child { width: 3em; font-family: var(--lp-mono); font-size: 15px; }
.lp-plan a { color: var(--lp-tinte); text-decoration: underline; text-decoration-color: rgba(35,32,27,.35); text-underline-offset: 3px; }
.lp-plan a:hover { color: var(--lp-rot); text-decoration-color: currentColor; }
.lp-wdh {
    display: inline-block; margin-right: 4px; padding: 0 5px;
    border: 1px solid var(--lp-ocker); color: var(--lp-ocker-dunkel);
    font-family: var(--lp-mono); font-size: 12px; letter-spacing: .04em;
}
.lp-plan tr.ist-wdh { background: rgba(168,116,77,.07); }
.lp-plan tr.lp-woche td {
    padding: 16px 0 6px; border-bottom: 1px solid var(--lp-tinte);
    font-family: var(--lp-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--lp-tinte-mitte); text-align: left;
}
.lp-plan tr.lp-puffer td, .lp-plan tr.lp-puffer th { color: var(--lp-grau); font-style: italic; }
.lp-plan tr.lp-pruefung th, .lp-plan tr.lp-pruefung td {
    border-bottom: 0; padding-top: 12px;
    color: var(--lp-rot); font-family: var(--lp-mono); font-size: 14px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
}
.lp-plan tr.lp-pruefung td { text-align: left; }
.lp-plan tfoot th, .lp-plan tfoot td {
    padding: 10px 0 6px; border-top: 1px solid var(--lp-tinte); border-bottom: 3px double var(--lp-tinte);
    font-family: var(--lp-mono); font-size: 13px; text-align: left;
}
.lp-plan tfoot th { letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.lp-plan tfoot td { text-align: right; font-size: 15px; }

/* ── Angebot im Überblick ─────────────────────────────────────────── */
.lp-angebot {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px;
    margin: 0; padding: 0; list-style: none; counter-reset: lp-angebot;
}
.lp-angebot li {
    display: grid; grid-template-columns: 2.4em minmax(0, 1fr); gap: 2px 8px;
    padding: 14px 0; border-bottom: 1px solid var(--lp-linie); counter-increment: lp-angebot;
}
.lp-angebot li::before {
    content: "✓"; grid-row: span 2;
    font-family: var(--lp-mono); font-size: 18px; font-weight: 700; color: var(--lp-gruen);
}
.lp-angebot strong { font-size: 18px; line-height: 1.3; }
.lp-angebot span { font-size: 15px; line-height: 1.5; color: var(--lp-tinte-mitte); }
.lp-frei { margin-top: 14px; }

/* ── Buchen ───────────────────────────────────────────────────────── */
.lp-buchen {
    display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 28px 40px; align-items: center;
    margin: 52px 0 8px; padding: 30px 32px;
    border: 1px solid var(--lp-tinte); border-top: 3px solid var(--lp-rot); background: var(--lp-karte);
}
.lp-buchen h2 { margin: 0 0 12px; font-size: clamp(26px, 3vw, 34px); line-height: 1.2; font-weight: 600; }
.lp-buchen-text > p:not(.lp-marke) { margin: 0 0 12px; font-size: 17px; line-height: 1.6; }
.lp-buchen-aktion { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.lp-klein { margin: 0; font-size: 14px; line-height: 1.5; color: var(--lp-tinte-mitte); }

/* ── Fragen ───────────────────────────────────────────────────────── */
.lp-fragen { border-top: 1px solid var(--lp-tinte); }
.lp-fragen details { border-bottom: 1px solid var(--lp-linie); }
.lp-fragen summary {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    min-height: 52px; padding: 10px 0; cursor: pointer; list-style: none;
    font-size: 18px; font-weight: 600;
}
.lp-fragen summary::-webkit-details-marker { display: none; }
.lp-fragen summary::after { content: "+"; font-family: var(--lp-mono); font-size: 20px; color: var(--lp-tinte-mitte); }
.lp-fragen details[open] summary::after { content: "–"; }
.lp-fragen details p { max-width: 64ch; margin: 0 0 16px; font-size: 16px; line-height: 1.6; }

/* ── Tablet ───────────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .lp-held { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .lp-beleg { max-width: 460px; }
    .lp-schritte { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .lp-blatt-raster { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .lp-blatt-rand { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lp-buchen { grid-template-columns: minmax(0, 1fr); }
}

/* ── Handy ────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .lp-seite { padding: 16px 16px 56px; }
    .lp-held { padding: 18px 0 34px; }
    .lp-unterzeile { font-size: 17px; }
    .lp-knoepfe a { width: 100%; }
    .lp-beleg { transform: none; padding: 14px 14px 14px; }
    .lp-abschnitt { padding-top: 34px; }
    .lp-reiter button { padding: 8px 10px; font-size: 15px; min-height: 56px; }
    .lp-reiter button small { font-size: 12px; }
    .lp-beispiel { padding: 18px 10px 26px; }
    .lp-blatt { padding: 18px 14px 14px; }
    .lp-blatt-fuer { font-size: 22px; }
    .lp-lage { grid-template-columns: minmax(0, 1fr); }
    .lp-blatt-rand { grid-template-columns: minmax(0, 1fr); }
    .lp-plan .lp-kaestchen { width: 16px; padding-right: 6px; }
    .lp-angebot { grid-template-columns: minmax(0, 1fr); }
    .lp-plan { font-size: 15px; }
    .lp-plan tbody th { width: 3em; font-size: 13px; }
    .lp-plan.ist-wochen tbody th { width: 3.6em; }
    .lp-plan td:last-child { width: 2.4em; font-size: 14px; }
    .lp-buchen { margin-top: 40px; padding: 22px 16px; }
    .lp-knopf.ist-gross { width: 100%; }
    .lp-fragen summary { font-size: 17px; }
}

/* ════════════════════════════════════════════════════════════════════
   BESTELLFORMULAR (Dialog) — seit 17.11.2026
   Ein Formular wie ein Bestellschein: nummerierte Teile, Tinte-Linien,
   Auswahl als Chips. Am Handy füllt es den ganzen Bildschirm.
   ════════════════════════════════════════════════════════════════════ */
html.lp-fenster-offen { overflow: hidden; }
.lp-fenster {
    width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px);
    padding: 0; border: 1px solid var(--lp-tinte); background: var(--lp-karte); color: var(--lp-tinte);
    box-shadow: 4px 4px 0 var(--lp-tinte);
    font-family: var(--lp-serif);
}
.lp-fenster::backdrop { background: rgba(35,32,27,.45); }
.lp-formular { display: flex; flex-direction: column; max-height: inherit; }
.lp-formular[hidden] { display: none; }
.lp-formular-kopf {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
    padding: 20px 24px 14px; border-bottom: 2px solid var(--lp-tinte);
}
.lp-formular-kopf h2 { margin: 0; font-size: clamp(22px, 3vw, 28px); line-height: 1.2; font-weight: 600; }
.lp-zu {
    flex: none; width: 44px; height: 44px; border: 1px solid var(--lp-tinte); background: transparent;
    font-family: var(--lp-mono); font-size: 24px; line-height: 1; color: var(--lp-tinte); cursor: pointer;
}
.lp-zu:hover { background: #fff; }
.lp-formular-inhalt { overflow-y: auto; padding: 4px 24px 8px; overscroll-behavior: contain; }
.lp-formular-fuss {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 16px;
    padding: 14px 24px 18px; border-top: 1px solid var(--lp-tinte); background: var(--lp-karte);
}
.lp-formular-fuss .lp-meldung { flex: 1 1 260px; margin: 0; }

.lp-teil { padding: 18px 0 16px; border-bottom: 1px solid var(--lp-linie); }
.lp-teil:last-child { border-bottom: 0; }
.lp-teil h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 19px; font-weight: 600; }
.lp-teil h3 > span:first-child {
    display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
    background: var(--lp-tinte); color: var(--lp-karte); font-family: var(--lp-mono); font-size: 14px; font-weight: 400;
}
.lp-hilfe { margin: -4px 0 12px; font-size: 15px; line-height: 1.5; color: var(--lp-tinte-mitte); }
.lp-hilfe strong { color: var(--lp-tinte); }

.lp-felder { display: grid; gap: 12px 16px; }
.lp-felder.ist-zwei { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.lp-felder.ist-zwei .lp-feld.ist-schmal { max-width: 160px; }
.lp-feld { display: flex; flex-direction: column; gap: 6px; font-family: var(--lp-mono); font-size: 12.5px; letter-spacing: .04em; color: var(--lp-tinte-mitte); }
.lp-feld small { font-size: 12px; color: var(--lp-grau); }
.lp-feld[hidden] { display: none; }
.lp-feld input, .lp-feld textarea {
    box-sizing: border-box; width: 100%; min-height: 46px; padding: 10px 12px;
    border: 1px solid var(--lp-tinte); border-radius: 0; background: #fff; color: var(--lp-tinte);
    font-family: var(--lp-serif); font-size: 16px; letter-spacing: 0;
}
.lp-feld textarea { min-height: 110px; line-height: 1.5; resize: vertical; }
.lp-feld input:focus, .lp-feld textarea:focus { outline: 3px solid rgba(176,73,44,.35); outline-offset: 0; border-color: var(--lp-rot); }
.lp-feld.ist-schmal { max-width: 220px; }

.lp-gruppe-feld { margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.lp-gruppe-feld > legend { margin-bottom: 8px; padding: 0; font-family: var(--lp-mono); font-size: 12.5px; letter-spacing: .04em; color: var(--lp-tinte-mitte); }
.lp-gruppe-feld .lp-feld { margin-top: 10px; }
.lp-gruppe-feld.ist-still { opacity: .55; }

/* Chips: Radio/Checkbox als Feld */
.lp-chips, .lp-tage { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-chip, .lp-tag { position: relative; display: inline-flex; }
.lp-chip input, .lp-tag input, .lp-wahl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lp-chip span, .lp-tag span {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
    border: 1px solid var(--lp-linie); background: #fff; cursor: pointer;
    font-family: var(--lp-serif); font-size: 15px;
}
.lp-tag span { justify-content: center; min-width: 48px; padding: 0 8px; font-family: var(--lp-mono); font-size: 14px; }
.lp-chip small { font-family: var(--lp-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--lp-gruen); }
.lp-chip input:checked + span, .lp-tag input:checked + span { border-color: var(--lp-tinte); background: var(--lp-tinte); color: var(--lp-karte); }
.lp-chip input:checked + span small { color: #BFE3CD; }
.lp-chip input:focus-visible + span, .lp-tag input:focus-visible + span, .lp-wahl input:focus-visible + span { outline: 3px solid rgba(176,73,44,.45); outline-offset: 2px; }
.lp-chip input:disabled + span { opacity: .45; cursor: not-allowed; }
.lp-chip:hover input:not(:checked):not(:disabled) + span, .lp-tag:hover input:not(:checked) + span { border-color: var(--lp-tinte); }

/* Themen je Semester */
.lp-gruppe { border: 1px solid var(--lp-linie); margin-bottom: 8px; background: #fff; }
.lp-gruppe > summary {
    display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; cursor: pointer; list-style: none;
    font-size: 16px; font-weight: 600;
}
.lp-gruppe > summary::-webkit-details-marker { display: none; }
.lp-gruppe > summary::after { content: "+"; margin-left: auto; font-family: var(--lp-mono); font-size: 18px; color: var(--lp-tinte-mitte); }
.lp-gruppe[open] > summary::after { content: "–"; }
.lp-gruppe-zahl { font-family: var(--lp-mono); font-size: 12px; font-weight: 400; color: var(--lp-gruen); }
.lp-thema {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 12px;
    margin: 0; padding: 8px 14px; border: 0; border-top: 1px solid var(--lp-linie); min-width: 0;
}
.lp-thema legend { float: left; padding: 0; font-size: 15px; line-height: 1.35; }
.lp-wahlen { display: inline-flex; border: 1px solid var(--lp-tinte); }
.lp-wahl { position: relative; display: inline-flex; }
.lp-wahl span {
    display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 40px; padding: 0 8px;
    border-left: 1px solid var(--lp-linie); cursor: pointer;
    font-family: var(--lp-mono); font-size: 12.5px; color: var(--lp-tinte-mitte); background: #fff;
}
.lp-wahl:first-child span { border-left: 0; }
.lp-wahl.ist-leer input:checked + span { background: var(--lp-papier); color: var(--lp-tinte); }
.lp-wahl.ist-sitzt input:checked + span { background: var(--lp-gruen); color: #fff; }
.lp-wahl.ist-wackelt input:checked + span { background: var(--lp-ocker); color: #fff; }
.lp-wahl.ist-luecke input:checked + span { background: var(--lp-rot); color: #fff; }

/* Elternteil, Hinweise, Einwilligung */
.lp-eltern { padding-top: 16px; }
.lp-eltern .lp-klein { margin-top: 8px; }
.lp-eltern-feld { display: grid; gap: 10px; margin-top: 12px; padding-left: 14px; border-left: 3px solid var(--lp-tinte); }
.lp-eltern-feld[hidden] { display: none; }
.lp-hinweis-box { margin: 0; padding: 10px 12px; border: 1px solid var(--lp-linie); background: #FBF8EF; font-size: 15px; line-height: 1.5; }
.lp-hinweis-box.ist-warnung { margin-top: 12px; border-color: var(--lp-rot); background: rgba(176,73,44,.07); }
.lp-hinweis-box[hidden] { display: none; }
.lp-einwilligung { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.5; cursor: pointer; }
.lp-einwilligung input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--lp-tinte); }
.lp-einwilligung a { color: var(--lp-tinte); }
.lp-einwilligung.ist-eltern { padding: 12px 14px; border: 1px solid var(--lp-tinte); background: #fff; }
.lp-meldung { margin: 8px 0 0; color: var(--lp-rot-dunkel); font-size: 15px; line-height: 1.45; }
.lp-meldung[hidden] { display: none; }
.lp-formular-fuss .lp-knopf[disabled] { opacity: .7; cursor: progress; }

/* Danke */
.lp-danke { padding: 40px 28px 32px; text-align: center; }
.lp-danke[hidden] { display: none; }
.lp-danke:focus { outline: none; }
.lp-danke h2 { margin: 18px 0 10px; font-size: 28px; }
.lp-danke p { max-width: 46ch; margin: 0 auto 22px; font-size: 17px; line-height: 1.6; }
.lp-stempel-gross {
    display: inline-block; margin: 0; padding: 6px 16px; border: 2.5px solid var(--lp-gruen); border-radius: 4px;
    color: var(--lp-gruen); font-family: var(--lp-mono); font-size: 18px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    transform: rotate(-6deg);
}

@media (max-width: 640px) {
    .lp-fenster {
        width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0;
        border: 0; box-shadow: none;
    }
    .lp-formular { height: 100%; }
    .lp-formular-kopf { padding: 14px 16px 10px; }
    .lp-formular-inhalt { padding: 0 16px 8px; flex: 1; }
    .lp-formular-fuss { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); }
    .lp-formular-fuss .lp-knopf { width: 100%; }
    .lp-felder.ist-zwei { grid-template-columns: minmax(0, 1fr); }
    .lp-felder.ist-zwei .lp-feld.ist-schmal { max-width: 160px; }
    .lp-thema { grid-template-columns: minmax(0, 1fr); }
    .lp-wahlen { width: 100%; }
    .lp-wahl { flex: 1; }
    .lp-wahl span { width: 100%; }
    .lp-tage { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
    .lp-tag span { min-width: 0; width: 100%; padding: 0; }
    .lp-tag { display: flex; }
}

/* ── Preis im Anfrage-Abschnitt (seit 17.11.2026) ─────────────────── */
.lp-preis { margin: 16px 0 8px; max-width: 360px; }
.lp-preis div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 6px 0; border-bottom: 1px solid var(--lp-linie); }
.lp-preis div:last-child { border-bottom: 3px double var(--lp-tinte); }
.lp-preis dt { font-size: 16px; }
.lp-preis dd { margin: 0; font-family: var(--lp-mono); font-size: 20px; font-weight: 500; white-space: nowrap; }
.lp-preis .ist-expert dd { color: var(--lp-ocker-dunkel); }
.lp-expert-marke {
    padding: 1px 6px; border: 1px solid #A8762F; background: #F3E2B8; color: #5A3D12;
    font-family: var(--lp-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
}
.lp-mini-ablauf { margin: 4px 0 0; padding: 0 0 0 20px; font-family: var(--lp-mono); font-size: 13px; line-height: 1.8; color: var(--lp-tinte-mitte); }

/* ── Bestellseite und Dankeseite (/lernplan/bestellen/, /lernplan/danke/) ── */
.lp-kasse-seite { max-width: 680px; }
.lp-kasse { margin: 24px 0 40px; padding: 28px 30px 30px; border: 1px solid var(--lp-tinte); border-top: 3px solid var(--lp-rot); background: var(--lp-karte); }
.lp-kasse-titel { margin: 0 0 12px; font-size: clamp(28px, 4vw, 38px); line-height: 1.15; font-weight: 600; }
.lp-kasse-vorspann { margin: 0 0 18px; font-size: 17px; line-height: 1.6; }
.lp-kasse-lade { color: var(--lp-tinte-mitte); font-family: var(--lp-mono); font-size: 14px; }
.lp-kasse-preis { max-width: none; }
.lp-kasse-preis dt small { font-family: var(--lp-mono); font-size: 12px; color: var(--lp-ocker-dunkel); }
.lp-kasse-preis dd { font-size: 24px; }
.lp-kasse-schritt { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--lp-linie); }
.lp-kasse-schritt[hidden] { display: none; }
.lp-kasse-schritt h2 { margin: 0 0 8px; font-size: 21px; }
.lp-kasse-schritt p { font-size: 16px; line-height: 1.55; }
.lp-kasse-schritt .lp-einwilligung { margin-bottom: 10px; }
.lp-kasse-schritt .lp-knopf.ist-gross { margin: 8px 0; }
.lp-kasse .lp-klein a { color: var(--lp-tinte); }
.lp-kasse-danke { text-align: center; }
.lp-kasse-danke .lp-knoepfe { justify-content: center; }
.lp-kasse-danke .lp-stempel-gross { margin-bottom: 16px; }
.lp-kasse-danke .lp-stempel-gross[hidden] { display: none; }
@media (max-width: 640px) {
    .lp-kasse { padding: 20px 16px 22px; }
    .lp-kasse-schritt .lp-knopf { width: 100%; }
}

/* ── Ratgeber Prüfungsvorbereitung (seit 17.11.2026) ─────────────── */
.lp-regeln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; margin: 0 0 16px; padding: 0; list-style: none; counter-reset: lp-regel; }
.lp-regeln li { position: relative; padding: 16px 0 14px 46px; border-bottom: 1px solid var(--lp-linie); counter-increment: lp-regel; }
.lp-regeln li::before {
    content: counter(lp-regel); position: absolute; left: 0; top: 18px;
    display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
    border: 1px solid var(--lp-tinte); font-family: var(--lp-mono); font-size: 14px;
}
.lp-regeln h3 { margin: 0 0 6px; font-size: 19px; line-height: 1.3; }
.lp-regeln p { margin: 0; font-size: 16px; line-height: 1.6; }
.lp-regeln a, .lp-abschnitt .lp-klein a { color: var(--lp-tinte); text-underline-offset: 3px; }
@media (max-width: 760px) { .lp-regeln { grid-template-columns: minmax(0, 1fr); } }

/* ── Vergleich KI-Lernplan / persönlicher Lernplan (seit 18.11.2026) ── */
.lp-vergleich { border-top: 2px solid var(--lp-tinte); }
.lp-vergleich-kopf, .lp-vergleich-zeile {
    display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.25fr); gap: 0 24px;
    border-bottom: 1px solid var(--lp-linie);
}
.lp-vergleich-kopf span {
    padding: 10px 0; font-family: var(--lp-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--lp-tinte-mitte);
}
.lp-vergleich-kopf .ist-wir { color: var(--lp-gruen); }
.lp-vergleich-zeile > * { margin: 0; padding: 14px 0; }
.lp-vergleich-zeile strong { font-size: 17px; }
.lp-vergleich-zeile p { font-size: 15.5px; line-height: 1.55; color: var(--lp-tinte-mitte); }
.lp-vergleich-zeile p.ist-wir { position: relative; padding-left: 28px; color: var(--lp-tinte); }
.lp-vergleich-zeile p.ist-wir::before { content: "✓"; position: absolute; left: 4px; top: 14px; font-family: var(--lp-mono); font-weight: 700; color: var(--lp-gruen); }
.lp-vergleich-zeile p.ist-wir b { font-weight: 600; }
.lp-vergleich-etikett { display: none; }
@media (max-width: 760px) {
    .lp-vergleich-kopf { display: none; }
    .lp-vergleich-zeile { grid-template-columns: minmax(0, 1fr); padding: 6px 0 10px; }
    .lp-vergleich-zeile > * { padding: 6px 0; }
    .lp-vergleich-zeile strong { padding-top: 12px; }
    .lp-vergleich-etikett {
        display: block; margin-bottom: 2px;
        font-family: var(--lp-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--lp-grau);
    }
    .lp-vergleich-zeile p.ist-wir { padding: 10px 12px 10px 34px; border-left: 3px solid var(--lp-gruen); background: #fff; }
    .lp-vergleich-zeile p.ist-wir::before { left: 12px; top: 30px; }
    .lp-vergleich-zeile p.ist-wir .lp-vergleich-etikett { color: var(--lp-gruen); }
}
