/* ════════════════════════════════════════════════════════════════
   plan_starter.css — Plan-Rechner, Listen-Import, Hinweis, Leiste (30.11.2026)
   Für die öffentlichen Seiten im Startseiten-Stil (seo_seite.css):
   weiße Karten, dunkle Knöpfe, Lavendel als Akzent.
   ════════════════════════════════════════════════════════════════ */

/* ── Plan-Rechner ─────────────────────────────────────────────────── */
.ps-rechner {
    margin-top: 22px;
    max-width: 520px;
    padding: 18px 18px 16px;
    background: #fff;
    border: 1px solid rgba(29, 29, 31, 0.09);
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(79, 74, 140, 0.10);
}
.ps-rechner-titel { display: block; margin: 0 0 12px; font-size: 15px; font-weight: 800; color: #1d1d1f; }
.ps-zeile { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; }
.ps-modus {
    display: inline-flex; padding: 3px; gap: 2px;
    background: #f2f1f8; border-radius: 12px;
}
.ps-modus button {
    border: 0; background: none; padding: 7px 12px; border-radius: 10px;
    font: inherit; font-size: 13px; font-weight: 700; color: rgba(29, 29, 31, 0.6); cursor: pointer;
}
.ps-modus button.is-aktiv { background: #fff; color: #1d1d1f; box-shadow: 0 1px 4px rgba(29, 29, 31, 0.12); }
.ps-modus button:focus-visible { outline: 2px solid var(--sl-tinte, #4f4a8c); outline-offset: 1px; }
.ps-feld { display: flex; flex-direction: column; gap: 4px; }
.ps-datum-text { font-size: 12px; font-weight: 700; color: rgba(29, 29, 31, 0.55); }
.ps-datum {
    height: 42px; padding: 0 12px; box-sizing: border-box;
    border: 1px solid rgba(29, 29, 31, 0.14); border-radius: 12px;
    background: #fafafd; font: inherit; font-size: 15px; font-weight: 600; color: #1d1d1f;
}
.ps-datum:focus { outline: none; border-color: #b8b0f4; background: #fff; box-shadow: 0 0 0 3px rgba(184, 176, 244, 0.35); }
.ps-ergebnis { margin: 12px 0 0; font-size: 14.5px; line-height: 1.5; color: rgba(29, 29, 31, 0.75); min-height: 1.5em; }
.ps-ergebnis strong { color: #1d1d1f; }
.ps-knapp { display: block; padding: 9px 11px; border-radius: 12px; background: #fbf2e2; color: #6b4600; font-size: 13.5px; }
.ps-knapp strong { color: #6b4600; }
.ps-rechner .sl-knoepfe { margin-top: 14px; }
.ps-klein { margin: 10px 0 0; font-size: 12.5px; color: rgba(29, 29, 31, 0.55); }
.ps-klein a { color: inherit; font-weight: 700; }
.ps-pro { margin: 10px 0 0; padding: 9px 11px; border-radius: 12px; background: #f2f1fb; font-size: 13px; line-height: 1.5; color: #3e3a7a; }

/* Termine an den Phasen der Vorlagenseite */
.ps-phase-datum { display: block; margin-top: 4px; font-size: 12.5px; font-weight: 700; color: var(--sl-tinte, #4f4a8c); font-variant-numeric: tabular-nums; }

/* Kasten im Ratgeber-Artikel */
.ps-box {
    margin: 34px 0;
    padding: 22px 22px 20px;
    border-radius: 22px;
    background: var(--sl-flaeche, #f6f5fb);
    border: 1px solid rgba(29, 29, 31, 0.06);
}
.ps-box-kicker { margin: 0 0 4px; font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--sl-tinte, #4f4a8c); }
.ps-box h2, .ps-box .ps-box-titel { margin: 0 0 6px; font-size: 21px; font-weight: 800; letter-spacing: -0.3px; line-height: 1.25; color: #1d1d1f; }
.ps-box > p { margin: 0; font-size: 15px; line-height: 1.6; color: rgba(29, 29, 31, 0.72); }
.ps-box .ps-rechner { max-width: none; box-shadow: none; margin-top: 16px; }

/* ── Listen-Import ─────────────────────────────────────────────────── */
.pi {
    padding: 22px;
    background: #fff;
    border: 1px solid rgba(29, 29, 31, 0.09);
    border-radius: 24px;
}
.ps-box .pi { padding: 0; background: none; border: 0; border-radius: 0; }
.pi-titel { display: block; font-size: 19px; font-weight: 800; letter-spacing: -0.3px; color: #1d1d1f; }
.ps-box .pi-titel { display: none; }      /* Überschrift steht dann schon im Kasten */
.pi-unter { margin: 6px 0 14px; max-width: 70ch; font-size: 14px; line-height: 1.55; color: rgba(29, 29, 31, 0.65); }
.pi-label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; color: rgba(29, 29, 31, 0.55); }
.pi-text {
    width: 100%; box-sizing: border-box; resize: vertical; min-height: 110px;
    padding: 12px 14px;
    border: 1px solid rgba(29, 29, 31, 0.14); border-radius: 14px;
    background: #fafafd;
    font-family: ui-monospace, 'Cascadia Mono', Consolas, Menlo, monospace; font-size: 13px; line-height: 1.55; color: #1d1d1f;
    tab-size: 18;
}
.pi-text:focus { outline: none; border-color: #b8b0f4; background: #fff; box-shadow: 0 0 0 3px rgba(184, 176, 244, 0.35); }
.pi-werkzeug { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pi-beispiel, .pi-datei {
    display: inline-flex; align-items: center; height: 34px; padding: 0 12px;
    border: 1px solid rgba(29, 29, 31, 0.12); border-radius: 10px; background: #fff;
    font: inherit; font-size: 13px; font-weight: 700; color: #1d1d1f; cursor: pointer;
}
.pi-beispiel:hover, .pi-datei:hover { background: #f4f4f7; }
.pi-datei:focus-within, .pi-beispiel:focus-visible { outline: 2px solid var(--sl-tinte, #4f4a8c); outline-offset: 2px; }
.pi-ergebnis { margin-top: 18px; }
.pi-zusammen { margin: 0 0 6px; font-size: 15px; color: rgba(29, 29, 31, 0.75); }
.pi-zusammen strong { color: #1d1d1f; }
.pi-hinweise { margin: 0 0 10px; padding-left: 18px; font-size: 13px; color: #6b4600; }
.pi-hinweise:empty { display: none; }
.pi-vorschau { border-radius: 16px; overflow: hidden; border: 1px solid rgba(29, 29, 31, 0.07); }
.pi-los-zeile { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 14px; }
.pi-name-feld { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: rgba(29, 29, 31, 0.55); }
.pi-name {
    height: 46px; min-width: 220px; padding: 0 12px; box-sizing: border-box;
    border: 1px solid rgba(29, 29, 31, 0.14); border-radius: 12px; background: #fafafd;
    font: inherit; font-size: 15px; font-weight: 600; color: #1d1d1f;
}
.pi-name:focus { outline: none; border-color: #b8b0f4; background: #fff; }
.pi-klein { margin: 10px 0 0; font-size: 12.5px; color: rgba(29, 29, 31, 0.55); }

/* ── Hinweis (Desktop, unten rechts — nie über dem Inhalt) ─────────── */
.ps-hinweis {
    position: fixed; right: 22px; bottom: 22px; z-index: 900;
    width: 320px; box-sizing: border-box;
    padding: 18px 18px 12px;
    background: #fff; color: #1d1d1f;
    border: 1px solid rgba(29, 29, 31, 0.08);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(29, 29, 31, 0.18);
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transform: translateY(24px); opacity: 0; pointer-events: none;
    transition: transform 0.32s cubic-bezier(.2, .8, .2, 1), opacity 0.25s;
}
.ps-hinweis.is-sichtbar { transform: none; opacity: 1; pointer-events: auto; }
.ps-hinweis-zu {
    position: absolute; top: 8px; right: 8px; width: 30px; height: 30px;
    border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.04);
    font-size: 18px; line-height: 1; color: rgba(0, 0, 0, 0.5); cursor: pointer;
}
.ps-hinweis-zu:hover { background: rgba(0, 0, 0, 0.08); }
.ps-hinweis-mini { display: flex; flex-direction: column; gap: 4px; width: 92px; margin-bottom: 12px; }
.ps-hinweis-mini i { display: block; height: 7px; border-radius: 4px; background: #b8b0f4; }
.ps-hinweis-mini i:nth-child(1) { width: 52%; }
.ps-hinweis-mini i:nth-child(2) { width: 70%; margin-left: 24%; background: #a8d8b9; }
.ps-hinweis-mini i:nth-child(3) { width: 44%; margin-left: 56%; background: #f4c4a8; }
.ps-hinweis-titel { display: block; padding-right: 26px; font-size: 16px; font-weight: 800; letter-spacing: -0.2px; line-height: 1.3; }
.ps-hinweis-text { margin: 6px 0 14px; font-size: 13.5px; line-height: 1.5; color: rgba(29, 29, 31, 0.68); }
.ps-hinweis-knopf {
    display: flex; align-items: center; justify-content: center; height: 44px;
    border-radius: 12px; background: #1d1d1f; color: #fff !important;
    font-size: 14px; font-weight: 700; text-decoration: none;
}
.ps-hinweis-knopf:hover { background: #3a3a40; }
.ps-hinweis-nein {
    display: block; width: 100%; margin-top: 6px; padding: 8px;
    border: 0; background: none; font: inherit; font-size: 12.5px; color: rgba(29, 29, 31, 0.5); cursor: pointer; border-radius: 8px;
}
.ps-hinweis-nein:hover { color: rgba(29, 29, 31, 0.8); }
.ps-hinweis a:focus-visible, .ps-hinweis button:focus-visible { outline: 2px solid #4f4a8c; outline-offset: 2px; }

/* ── Leiste (Handy, schmal am unteren Rand) ───────────────────────── */
.ps-leiste {
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 900;
    display: flex; align-items: center; gap: 6px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(29, 29, 31, 0.08);
    border-radius: 16px;
    box-shadow: 0 12px 34px rgba(29, 29, 31, 0.16);
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transform: translateY(140%); transition: transform 0.28s cubic-bezier(.2, .8, .2, 1);
}
.ps-leiste.is-sichtbar { transform: none; }
.ps-leiste-knopf {
    flex: 1 1 auto; display: flex; align-items: center; justify-content: center;
    height: 44px; padding: 0 12px; border-radius: 12px;
    background: #1d1d1f; color: #fff !important; font-size: 14.5px; font-weight: 700; text-decoration: none; text-align: center;
}
.ps-leiste-zu {
    flex: 0 0 40px; height: 40px; border: 0; border-radius: 12px; background: rgba(0, 0, 0, 0.04);
    font-size: 20px; color: rgba(0, 0, 0, 0.5); cursor: pointer;
}

@media (max-width: 600px) {
    .ps-rechner { padding: 16px 14px 14px; border-radius: 18px; }
    .ps-zeile { flex-direction: column; align-items: stretch; }
    .ps-modus { align-self: flex-start; }
    .ps-datum { width: 100%; }
    .ps-rechner .sl-knopf { width: 100%; justify-content: center; }
    .pi { padding: 16px; border-radius: 18px; }
    .pi-los-zeile { flex-direction: column; align-items: stretch; }
    .pi-name { min-width: 0; width: 100%; }
    .pi-los { justify-content: center; }
    .ps-box { padding: 18px 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .ps-hinweis, .ps-leiste { transition: none; }
}
@media print { .ps-hinweis, .ps-leiste { display: none !important; } }

/* Abschnitt „Eigene Liste statt Vorlage" auf /vorlagen */
.vl-eigene { margin: 6px 0 56px; scroll-margin-top: 90px; }
.vl-eigene .sl-h2 { margin-bottom: 16px; }
#pi-vorlagen, #pi-artikel { scroll-margin-top: 90px; }
