/* Hub: Seite «Pakete» mit Preisen und Kauf, dazu der Menüpunkt und der Hinweis auf der Übersicht (17.11.2026). */

/* Menüpunkt «Pakete»: ein oranges Kästchen wie im Logo, damit er auffällt */
.nav a[data-nav="pakete"] { display: inline-flex; align-items: center; gap: 7px; }
.nav a[data-nav="pakete"]::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--accent); flex: 0 0 auto; }

/* Status oben auf der Seite */
.pk-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 40px; padding: 16px 20px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: var(--surface); color: var(--ink-body); }
.pk-status strong { color: var(--ink); }
.pk-status.hat { border-color: var(--accent); background: var(--accent-subtle); }

/* Karten: dieselben Preiskarten wie auf der Preisseite */
.pk .preis .tag.hat { background: var(--ink); color: var(--ink-inverse); }
.pk-aktion { display: grid; gap: 10px; margin-top: auto; }
.pk-aktion .knopf { margin-top: 0; width: 100%; justify-content: center; }
.pk-aktion .knopf:disabled { background: var(--surface-muted); color: var(--ink-muted); border-color: var(--line-strong); cursor: not-allowed; box-shadow: none; transform: none; }
.pk-hat { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: var(--radius-control); background: var(--ok-soft, #EAF6EE); color: var(--on-ok, #0F5A2A); font-weight: 700; }
.pk-hat::before { content: ""; width: 14px; height: 8px; margin-top: -4px; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(-45deg); }
.pk-aktion .link-pfeil { justify-self: center; }
.pk .meldung { margin: 0; padding: 12px 14px; border-radius: var(--radius-control); background: var(--accent-soft); color: var(--on-accent-soft); font-size: 14px; line-height: 1.45; }
.pk .meldung.fehler { background: var(--bad-soft, #FCEBEB); color: var(--on-bad, #8E1B1B); }
.pk-code { margin: 0; padding: 12px 14px; border-radius: var(--radius-control); border: 1px dashed var(--line-strong); color: var(--ink-body); font-size: 14px; line-height: 1.45; }
.pk-code strong { color: var(--ink); }
.pk-fuss { margin: 28px 0 0; max-width: 46rem; color: var(--ink-muted); font-size: 14px; line-height: 1.6; }

/* Hinweis auf der Übersicht und auf gesperrten Seiten */
.pk-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 20px 24px; border: 2px solid var(--ink); border-radius: var(--radius-card); background: var(--surface); }
.pk-band p { margin: 0; color: var(--ink-body); max-width: 40rem; }
.pk-band strong { display: block; color: var(--ink); font-size: 18px; letter-spacing: -0.01em; }
.pk-band-wrap { padding-top: 32px; }
.pk .preis h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
@media (max-width: 960px) { .pk .preis.hervor { order: -1; } }

/* Danke-Seite nach dem Kauf (18.11.2026): alle Kästchen werden orange */
.dk-buehne { background-color: var(--surface-muted); background-image: linear-gradient(var(--raster) 1px, transparent 1px), linear-gradient(90deg, var(--raster) 1px, transparent 1px); background-size: var(--raster-size) var(--raster-size); }
.dk-karte { max-width: 880px; margin: 0 auto; padding: 48px; border: 1px solid var(--line-strong); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-card); }
.dk-kopf { margin-bottom: 36px; }
.dk-titel { margin: 0 0 14px; font-size: 52px; line-height: 1.04; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); text-wrap: balance; }
.dk-titel:focus { outline: none; }
.dk-titel .punkt { display: inline-block; width: 0.19em; height: 0.19em; margin-left: 0.05em; background: var(--accent); border-radius: 0.03em; }
.dk-text { margin: 0; max-width: 40rem; font-size: 19px; line-height: 1.55; color: var(--ink-body); }
.dk-text strong { color: var(--ink); }
.dk-zahl { display: inline-block; min-width: 2ch; font-variant-numeric: tabular-nums; color: var(--accent-text) !important; }
.dk-laden { display: inline-flex; gap: 4px; margin-right: 10px; vertical-align: 0.05em; }
.dk-laden i { width: 9px; height: 9px; border-radius: 2px; background: var(--accent); animation: dk-puls 1.2s var(--kurve-standard) infinite; }
.dk-laden i:nth-child(2) { animation-delay: 0.15s; }
.dk-laden i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dk-puls { 0%, 100% { opacity: 0.25; transform: scale(0.8); } 40% { opacity: 1; transform: scale(1); } }

.dk-raster { display: grid; gap: 10px; padding: 24px 0 0; border-top: 1px solid var(--line); }
.dk-zeile { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); align-items: center; gap: 12px; }
.dk-fach { font-size: 14px; font-weight: 700; color: var(--ink); }
.dk-kaesten { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.dk-kaesten i, .dk-legende i { display: block; width: 16px; height: 16px; border-radius: 4px; }
.dk-luecke { width: 12px; }
.dk-kaesten i.frei, .dk-legende i.frei { background: var(--accent); }
.dk-kaesten i.neu { background: var(--surface); border: 1.5px solid var(--line-strong); transition: background-color 280ms var(--kurve-standard), border-color 280ms var(--kurve-standard); transition-delay: calc(var(--i, 0) * 16ms); }
.dk-raster.ist-offen i.neu { background: #F8C584; border-color: #D9831F; animation: dk-pop 420ms var(--kurve-einrasten) both; animation-delay: calc(var(--i, 0) * 16ms); }
.dk-legende i.neu.an { background: #F8C584; border: 1.5px solid #D9831F; }
@keyframes dk-pop { 0% { transform: scale(0.5); } 100% { transform: scale(1); } }
.dk-legende { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 20px 0 0; padding: 0; list-style: none; color: var(--ink-muted); font-size: 14px; }
.dk-legende li { display: inline-flex; align-items: center; gap: 8px; }
.dk-legende i { width: 14px; height: 14px; }

.dk-weiter .titel-2 { margin: 0 0 28px; }
.dk-schritte { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.dk-schritte li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding-top: 20px; border-top: 2px solid var(--ink); }
.dk-schritte li:not(:first-child) { border-top-color: var(--line-strong); }
.dk-nr { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--accent-soft); color: var(--on-accent-soft); font-weight: 800; }
.dk-schritte h3 { margin: 4px 0 6px; font-size: 19px; line-height: 1.3; font-weight: 800; letter-spacing: -0.02em; }
.dk-schritte p { margin: 0 0 16px; color: var(--ink-body); }
.dk-plus { margin-top: 40px; padding: 24px; border-radius: var(--radius-card); background: var(--accent-subtle); border: 1px solid var(--accent); }
.dk-plus h3 { margin: 0 0 8px; font-size: 19px; font-weight: 800; }
.dk-plus p { margin: 0; color: var(--ink-body); }
.dk-fuss { margin: 32px 0 0; color: var(--ink-muted); font-size: 14px; }

@media (max-width: 880px) {
  .dk-schritte { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 640px) {
  .dk-karte { padding: 28px 20px; }
  .dk-titel { font-size: 36px; }
  .dk-text { font-size: 17px; }
  .dk-zeile { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .dk-kaesten i { width: 13px; height: 13px; border-radius: 3px; }
  .dk-luecke { width: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .dk-laden i { animation: none; opacity: 1; }
  .dk-kaesten i.neu, .dk-raster.ist-offen i.neu { transition: none; animation: none; }
}
.dk-kaesten { gap: 4px 20px; }
.dk-spalte { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.dk-lek { width: calc(21 * 20px - 4px); }
@media (max-width: 640px) { .dk-lek { width: auto; } .dk-kaesten { row-gap: 8px; } }

/* Regal «Lektionen» (26.11.2026): ohne Paket «im Paket» mit Schloss oder «gratis». Mit Paket stehen nur Schilder, die etwas aussagen. */
.modul .zeile:empty { display: none; }
.badge-paket { gap: 5px; background: transparent; border: 1px solid var(--line-control); color: var(--ink-body); }
.badge-paket svg { flex: 0 0 auto; margin-top: -1px; }
.badge-gratis { background: var(--accent-soft); color: var(--on-accent-soft); }

/* Feinschliff nach dem Browsertest des Hubs (28.11.2026): Klickziele mindestens 44 px, breite Antwortfelder, kein Zoom am iPhone */
.kopf-hub .marke { min-height: 44px; }
.kopf .nav a { min-height: 44px; display: inline-flex; align-items: center; }
.band .fuss-raster nav a { min-height: 44px; display: flex; align-items: center; }
.seitenmenue a { min-height: 44px; display: flex; align-items: center; box-sizing: border-box; }
.loesung summary { min-height: 44px; }
#hub-inhalt .link-pfeil { min-height: 44px; }
.empfehlung a, .empfehlung span { min-height: 44px; }
.zustimmung { min-height: 44px; align-items: center !important; }
.prosa .liste-haken label { min-height: 44px; display: flex; align-items: center; gap: 12px; }
.eingabe-zeile.feld-breit .feld { flex: 1 1 100%; max-width: none; }
.kal-export-form input, .kal-export-form select { font-size: 16px; }
a.knopf[data-schloss] { flex-wrap: wrap; row-gap: 6px; height: auto; max-width: 100%; padding-top: 10px; padding-bottom: 10px; line-height: 1.2; }
/* Mitwachsendes Textfeld für Satzantworten (29.11.2026, wie im Lernpfad) */
.eingabe-zeile textarea.feld-text { all: unset; flex: 1; min-width: 0; box-sizing: border-box; font: 600 18px/1.4 var(--font-sans); color: var(--ink); padding: 12px 0; resize: none; overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere; min-height: 52px; }
.eingabe-zeile textarea.feld-text::placeholder { color: var(--ink-muted); font-weight: 500; }
