/* Fristen-Rechner (gratis), Angebot, Persönlicher Fahrplan, Danke-Seite und Kaufbedingungen (31.10.2026).
   Ergänzt stil.css und nutzt nur dessen Farb-Variablen (Variante B: warmes Grau, Salbei-Knöpfe). Eigene Datei, damit stil.css unverändert bleibt. */
input[type=date], input[type=tel] {
  width: 100%; font: inherit; font-size: 1rem; padding: 9px 12px; border: 1px solid var(--feld-rand); border-radius: 8px; background: var(--feld); color: var(--text);
}
input[type=date] { max-width: 260px; min-height: 46px; }
textarea { resize: vertical; }
.leise { color: var(--leise); }
.fehler { color: var(--frist-text); font-weight: 600; }
.knopf.klein, button.knopf.klein { padding: 8px 14px; font-size: .95rem; }
.knopf-zeile { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 6px; }
.klein-titel { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: .95rem; margin: 18px 0 0; color: var(--leise); }

/* Fristen mit Datum */
#fristen .karte { padding-bottom: 14px; }
.fristen-liste { list-style: none; padding: 0; margin: 12px 0 0; }
.fristen-liste li { display: grid; grid-template-columns: minmax(0, 13em) 1fr; gap: 2px 16px; padding: 10px 0; border-top: 1px solid var(--linie); }
.fristen-liste .datum { font-weight: 700; color: var(--frist-text); font-variant-numeric: tabular-nums; }
.fristen-liste li.art-info .datum, .fristen-liste li.art-richt .datum, .fristen-liste li.art-sofort .datum { color: var(--haupt); font-weight: 600; }
.fristen-liste li.art-sofort .datum { color: var(--frist-text); }
.fristen-liste .was { font-weight: 700; }
.fristen-liste .wie { grid-column: 2; font-size: .9rem; color: var(--leise); }
.fristen-liste li.wichtig .was::after { content: " · wichtig"; font-weight: 400; color: var(--frist-text); font-size: .88rem; }
.frist-warnung { color: var(--frist-text); font-weight: 600; }
@media (max-width: 600px) {
  .fristen-liste li { grid-template-columns: 1fr; }
  .fristen-liste .wie { grid-column: 1; }
}

/* Angebot: Karten */
.stufen { display: grid; gap: 22px; margin: 22px 0 12px; }
@media (min-width: 760px) { .stufen { grid-template-columns: 1fr 1fr; } }
.stufe { position: relative; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); box-shadow: var(--schatten); padding: 24px 22px 20px; display: flex; flex-direction: column; min-width: 0; }
.stufe.hervor { border: 2px solid var(--akzent); }
.stufe h3 { margin: 0 0 4px; font-size: 1.35rem; }
.stufe .preis { margin: 0 0 6px; }
.stufe .preis small { font-size: .85rem; font-weight: 400; color: var(--leise); }
.stufe ul { flex: 1; margin: 8px 0 16px; }
.stufe .knopf { text-align: center; }
.stufe .zugang { font-size: .9rem; color: var(--leise); margin: 0 0 12px; }
.band { position: absolute; top: -12px; left: 18px; background: var(--akzent); color: var(--knopf-text); font-size: .78rem; font-weight: 700; padding: 2px 10px; border-radius: 99px; }
.kleingedrucktes { font-size: .88rem; color: var(--leise); }
.kleingedrucktes p { margin-bottom: .6em; }

/* Sperre und Code-Eingabe */
.sperre { background: var(--flaeche); border: 2px solid var(--akzent); border-radius: var(--rund); padding: 22px; margin: 18px 0; }
.sperre h2 { margin-top: 0; }
.code-form { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-top: 16px; }
.code-form label { width: 100%; font-weight: 700; }
.code-form input { flex: 1 1 220px; max-width: 340px; text-transform: uppercase; letter-spacing: .03em; }
.code-form input::placeholder { text-transform: none; letter-spacing: 0; }
main.fahrplan { padding-top: 26px; }
.code-form .fehler { width: 100%; }
.inhalt-liste { columns: 1; }
@media (min-width: 700px) { .inhalt-liste { columns: 2; column-gap: 28px; } .inhalt-liste li { break-inside: avoid; } }

/* Fahrplan: Eingaben */
.fahrplan .hinweis { margin: 0 0 14px; }
.fahrplan fieldset { background: var(--flaeche); margin-bottom: 16px; }
.fahrplan fieldset .zeile > .feld { flex: 1 1 200px; min-width: 0; }
.stelle { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 12px 0; border-top: 1px solid var(--linie); position: relative; }
.stelle .feld { margin: 0; }
@media (min-width: 700px) { .stelle { grid-template-columns: 1fr 1fr; } .stelle .breit { grid-column: 1 / -1; } }
.stelle .weg { position: absolute; right: 0; top: 8px; }
.weg { background: none; border: 1px solid var(--linie); border-radius: 8px; color: var(--leise); font: inherit; font-size: .9rem; padding: 4px 10px; cursor: pointer; }
.weg:hover { color: var(--frist-text); border-color: var(--frist-rand); }
.gespeichert { font-size: .85rem; color: var(--leise); }

/* Fahrplan: Dokument (am Bildschirm als Blätter, beim Drucken als Seiten) */
.blatt { background: #fff; color: #1f1c19; border: 1px solid var(--linie); border-radius: 6px; box-shadow: var(--schatten); padding: 28px 30px; margin: 24px 0; overflow-wrap: anywhere; }
.blatt h2 { font-size: 1.45rem; margin: 0 0 .4em; }
.blatt h3 { font-size: 1.08rem; margin: 1.3em 0 .4em; }
.blatt .klein, .blatt .quellen { color: #4a443e; }
.deckblatt { text-align: left; }
.deckblatt .zeichen { width: 84px; height: auto; opacity: .55; display: block; margin: 0 0 14px; }
.deckblatt .titel-gross { font-family: Georgia, "Times New Roman", serif; font-size: 2rem; line-height: 1.2; margin: 0 0 6px; color: #2f2a26; }
.deckblatt .fuer { font-size: 1.15rem; margin: 0 0 18px; }
.deckblatt dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0 0 18px; }
.deckblatt dt { color: #4a443e; }
.deckblatt dd { margin: 0; font-weight: 600; }
.kasten { border: 1px solid #b9b1a7; border-radius: 6px; padding: 12px 14px; margin: 16px 0; }
.kasten.ruhig { background: #f6f3ef; }
.dok-tabelle { width: 100%; border-collapse: collapse; font-size: .95rem; table-layout: fixed; }
.dok-tabelle th, .dok-tabelle td { text-align: left; vertical-align: top; padding: 7px 6px; border-bottom: 1px solid #cfc8bf; overflow-wrap: anywhere; }
.dok-tabelle th { font-size: .85rem; color: #4a443e; border-bottom: 2px solid #8a8178; }
.dok-tabelle .sp-datum { width: 31%; }
.dok-tabelle .sp-haken { width: 2.4em; text-align: center; white-space: nowrap; }
.dok-tabelle .datum { font-weight: 700; color: var(--frist-text); }
.dok-tabelle .vorbei .datum { text-decoration: line-through; }
.dok-tabelle .kt { font-size: .88rem; color: #4a443e; margin-top: 4px; }
.leer-zeilen td { height: 2.1em; }
.kaestchen { display: inline-block; width: .95em; height: .95em; border: 1.5px solid #6d655c; border-radius: 2px; vertical-align: -2px; }
.aufgabe-dok { display: grid; grid-template-columns: 1.6em 1fr; gap: 2px 6px; padding: 8px 0; border-top: 1px solid #ddd6cd; break-inside: avoid; }
.aufgabe-dok .kaestchen { margin-top: 5px; }
.aufgabe-dok .t { font-weight: 700; }
.aufgabe-dok .t .frist { margin-left: 6px; }
.aufgabe-dok .x { grid-column: 2; font-size: .92rem; color: #3d3833; }
.phase-dok h3 .bis { font-family: system-ui, sans-serif; font-size: .85rem; font-weight: 700; color: var(--frist-text); margin-left: 6px; }
.familie-platz { border: 1px dashed var(--akzent); border-radius: var(--rund); padding: 14px 16px; margin: 12px 0; background: var(--flaeche); }

/* Familien-Paket (31.10.2026): Aufgabenliste per Link, Erinnerungen, Erbteilung in Franken (familie.js) */
.familie-teil { border: 1px solid var(--linie); border-radius: var(--rund); padding: 16px 18px 8px; margin: 16px 0; background: var(--grund); min-width: 0; }
.familie-teil > h3 { margin-top: 0; }
.familie-teil fieldset { background: var(--flaeche); }
.gut { color: var(--haupt); font-weight: 600; }
.mehr-aktionen { margin: 8px 0 4px; }
.mehr-aktionen summary { cursor: pointer; color: var(--haupt); font-weight: 600; }
.plan-liste { list-style: none; padding: 0; margin: 6px 0 10px; }
.plan-liste li { padding: 7px 0; border-top: 1px solid var(--linie); }
.plan-liste li.entfaellt { color: var(--leise); }
#et-varianten label.aus { opacity: .55; }
#et-varianten label { align-items: flex-start; }
#et-varianten input { margin-top: 4px; }
.zeile.weitere { align-items: flex-end; border-top: 1px solid var(--linie); padding-top: 8px; }
.zeile.weitere .weg { margin-bottom: 14px; }
#et-ergebnis h4, #erbteilung-blatt h4 { font-size: 1.02rem; margin: 1.2em 0 .35em; }
#et-ergebnis .kasten { background: var(--flaeche); }
.dok-tabelle .z { text-align: right; }

/* Gemeinsame Aufgabenliste (liste.html) */
.liste-seite { padding-top: 26px; }
.liste-seite .phase { margin: 0 0 16px; }
.liste-seite .phase h2 { font-size: 1.15rem; margin: 0 0 4px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.liste-seite .phase h2 .wann { font-family: system-ui, sans-serif; font-size: .8rem; font-weight: 700; color: var(--knopf-text); background: var(--haupt); padding: 2px 10px; border-radius: 99px; }
.aufgabe.geteilt details { background: none; border: 0; border-radius: 0; padding: 0; margin: 0 0 4px; }
.aufgabe.geteilt details summary { cursor: pointer; color: var(--haupt); font-size: .9rem; font-weight: 600; }
.aufgabe.geteilt details[open] summary { margin-bottom: 4px; }
/* stil.css macht alle Eingaben in .aufgabe zu 20-px-Häkchen – hier gilt das nur für das Häkchen selbst */
.aufgabe.geteilt .wer-zeile input, .aufgabe.geteilt .wer-zeile textarea { width: 100%; height: auto; margin: 0; padding: 7px 10px; font-size: .95rem; }
.nur-vorlesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bis-datum { font-size: .82rem; font-weight: 700; color: var(--frist-text); margin-left: 4px; }
.bis-datum .vorbei { text-decoration: line-through; }
.wer-zeile { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 6px; }
.wer-zeile .feld { flex: 1 1 140px; margin: 0; min-width: 0; }
.wer-zeile .feld.notiz { flex: 2 1 220px; }
.wer-zeile label { font-size: .85rem; font-weight: 600; }
.aufgabe.geteilt .zustand { margin: 4px 0 0; min-height: 1.2em; }
.aufgabe.geteilt.fertig .wer-zeile input, .aufgabe.geteilt.fertig .wer-zeile textarea { background: var(--flaeche); }

/* Briefe */
.brief { background: #fff; color: #1f1c19; border: 1px solid #d8d1c8; border-radius: 4px; padding: 26px 30px; margin: 18px 0; box-shadow: var(--schatten); }
.brief-hinweis { background: var(--hinweis-grund); border-left: 4px solid var(--akzent); padding: 8px 12px; margin: -6px -8px 16px; font-size: .9rem; border-radius: 0 6px 6px 0; }
.brief-text { font-size: .98rem; line-height: 1.5; outline: none; }
.brief-text:focus { box-shadow: 0 0 0 2px var(--haupt-hell); }
.brief .absender { font-size: .85rem; color: #3d3833; margin-bottom: 1.6em; }
.brief .empfaenger { margin: 0 0 2em 48%; min-height: 4.5em; }
.brief .ort-datum { margin-bottom: 1.4em; }
.brief .betreff { margin-bottom: 1.2em; }
.unterschriften { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 2.4em 0 .4em; }
.unterschrift { min-width: 200px; flex: 0 1 240px; }
.unterschrift .linie { display: block; border-top: 1px solid #6d655c; margin-bottom: 3px; }
.brief .beilagen { font-size: .9rem; margin-top: 1.4em; }
@media (max-width: 600px) {
  .blatt { padding: 18px 14px; }
  .brief { padding: 18px 14px; }
  .brief .empfaenger { margin-left: 0; }
  .deckblatt .titel-gross { font-size: 1.6rem; }
  .deckblatt dl { grid-template-columns: 1fr; }
  .dok-tabelle { font-size: .88rem; }
  .dok-tabelle .sp-datum { width: 36%; }
}

/* Danke-Seite, Kaufbedingungen */
.schritte li { margin-bottom: .5em; }
.kaufbedingungen h2 { margin-top: 1.4em; font-size: 1.35rem; }

/* Drucken: nur das Dokument, jede Abteilung auf einer neuen Seite */
@media print {
  @page { size: A4; margin: 16mm 17mm 18mm; }
  body { font-size: 10.5pt; line-height: 1.45; background: #fff !important; }
  .kopf, .fuss, .nicht-drucken, .sperre, #eingaben, #aktionen, #familie, #upgrade, #fristen form, .stufen, #angebot { display: none !important; }
  main.wrap.schmal.fahrplan { max-width: none; padding: 0; }
  .blatt { border: 0; box-shadow: none; border-radius: 0; padding: 0; margin: 0; break-before: page; background: #fff; }
  .blatt:first-of-type { break-before: auto; }
  .dok-tabelle tr, .aufgabe-dok, .kasten { break-inside: avoid; }
  .dok-tabelle th { color: #333; }
  .brief { border: 0; box-shadow: none; padding: 0; margin: 0; break-before: page; }
  #briefe-blatt > .brief:first-of-type { break-before: auto; }
  .brief .absender { margin-bottom: 10mm; }
  .brief .empfaenger { margin: 0 0 14mm 92mm; min-height: 26mm; }
  .unterschrift { min-width: 55mm; }
  #briefe-blatt > h2, #briefe-blatt > p { display: none !important; }   /* jeder Brief beginnt auf einer eigenen Seite */
  body.nur-briefe .blatt:not(#briefe-blatt) { display: none !important; }
  body.nur-briefe #briefe-blatt { break-before: auto; }
  body.nur-erbteilung .blatt:not(#erbteilung-blatt) { display: none !important; }
  body.nur-erbteilung #erbteilung-blatt { break-before: auto; }
  #erbteilung-blatt .tabelle-wrap { overflow: visible; }
  #erbteilung-blatt .dok-tabelle td, #erbteilung-blatt .dok-tabelle th { padding: 5px 5px; }
  a { color: inherit; text-decoration: none; }
}
