/* Preise, Anmelden und Konto: baut auf stil.css auf (Farben, Schrift, Knöpfe, Kopf, Fuß).
   Die Skripte (preise.js, anmelden.js, konto.js) liegen daneben; ihre data-Attribute und die Klassen,
   die konto.js selbst erzeugt (schriftfeld, zeile-knopf, handlung …), sind hier gestaltet. */

/* Die Skripte blenden Formulare per hidden aus; das darf kein display: grid/flex überstimmen */
[hidden] { display: none !important; }
.nur-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.textlink { padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; transition: color 200ms ease, text-underline-offset 200ms var(--ease-out); }
.textlink:hover { color: var(--accent); text-underline-offset: 8px; }
.knopf.leise { background: var(--surface); color: var(--ink); }
.knopf.leise:hover { background: var(--ink); color: var(--bg); }
button.knopf { border: 0; cursor: pointer; font: inherit; font-weight: 500; }
.knopf[disabled] { opacity: 0.45; cursor: not-allowed; }
.knopf[aria-busy="true"] { cursor: progress; }
.handlung { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

/* ---------- Seitenkopf der Unterseiten ---------- */
.seitenkopf { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: center; padding: 148px var(--pad) 96px; background: var(--ton); }
.seitenkopf-text { grid-column: 1 / 7; }
.seitenkopf h1 { max-width: 9em; }
.seitenkopf .lead { margin-top: 32px; max-width: 40ch; }
.seitenkopf .aktionen { margin-top: 40px; }

/* ---------- Preise ---------- */
.preis-bild { grid-column: 7 / -1; position: relative; }
.preis-bild img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
/* Exportleiste wie in CaliCAD: liegt auf dem freien Boden unter dem Arm, ganz innerhalb des Bildes */
.export { position: absolute; left: 20px; right: 20px; bottom: 20px; display: grid; gap: 14px; padding: 16px; border-radius: var(--radius); background: var(--bg); font-size: 14px; box-shadow: 0 20px 40px -24px rgba(8, 32, 31, 0.45); } /* taste-skill-ignore: schwebende Leiste der App */
.export-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.export-kopf span { color: var(--muted); }
.export-formate { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin: 0; padding: 4px; border: 0; border-radius: calc(var(--radius) + 2px); background: var(--surface); }
.export-formate label { position: relative; cursor: pointer; }
.export-formate input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.export-formate span { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border-radius: var(--radius); font-weight: 500; color: var(--muted); transition: background-color 200ms ease, color 200ms ease; }
.export-formate .mit-plan span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ring); }
.export-formate label:hover span { color: var(--ink); }
.export-formate input:checked + span { background: var(--ink); color: var(--bg); }
.export-formate input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.export-fuss { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.export-fuss p { max-width: 40ch; }
.export-fuss b { color: var(--accent); font-weight: 500; }

/* Preiskarten: farbiger Kopf mit Preis und Knopf, darunter was drin ist. Frei im hellen Ton, Plan in Petrol. */
.tarife { padding: 112px var(--pad) var(--abstand); background: color-mix(in srgb, var(--accent) 20%, var(--bg)); }
.tarife-kopf { display: grid; justify-items: center; gap: 20px; max-width: 46rem; margin: 0 auto; text-align: center; }
.tarife-kopf p { max-width: 52ch; }
.tarife-wahl { display: inline-flex; gap: 4px; margin-top: 12px; padding: 4px; border-radius: 999px; background: var(--bg); }
.tarife-wahl button { min-height: 42px; padding: 0 22px; border: 0; border-radius: 999px; background: none; cursor: pointer; font-weight: 500; color: var(--ink); transition: background-color 200ms ease, color 200ms ease; }
.tarife-wahl button:hover { background: var(--surface); }
.tarife-wahl button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.tarife-karten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 980px; margin: 56px auto 0; }
.tarif { display: flex; flex-direction: column; padding: 18px 18px 28px; border-radius: 14px; background: var(--bg); }
.tarif-kopf { display: grid; gap: 14px; padding: 28px; border-radius: 10px; background: var(--surface); }
.tarif-plan .tarif-kopf { background: var(--accent); color: var(--accent-ink); }
.tarif h3 { font-size: var(--step-lead); }
.tarif-preis { display: grid; gap: 8px; }
.tarif-preis .betrag { font-family: var(--display); font-weight: 500; font-size: var(--step-head); letter-spacing: -0.045em; line-height: 0.95; font-variant-numeric: tabular-nums; }
.tarif-preis .zusatz { font-size: var(--step-small); }
.tarif-kopf .knopf { width: 100%; margin-top: 6px; }
.tarif-plan .tarif-kopf .knopf { background: var(--accent-ink); color: var(--accent); }
.tarif-plan .tarif-kopf .knopf:hover { background: var(--ink); color: var(--bg); }
.tarif h4 { margin: 28px 10px 4px; font-family: var(--text); font-size: var(--step-body); font-weight: 500; letter-spacing: 0; }
.tarif-liste { margin: 0; padding: 0 10px; list-style: none; }
.tarif-liste li { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.tarif-liste li::before { content: ""; flex: none; width: 16px; height: 16px; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3.5 10.5l4.2 4.2L16.5 5.5' fill='none' stroke='black' stroke-width='2.4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3.5 10.5l4.2 4.2L16.5 5.5' fill='none' stroke='black' stroke-width='2.4'/%3E%3C/svg%3E") center / contain no-repeat; }

.vergleich { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; padding: var(--abstand) var(--pad) 0; }
.vergleich h2 { grid-column: 1 / 5; }
.vergleich-tabelle { grid-column: 5 / -1; }
.tabelle { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tabelle th, .tabelle td { padding: 16px 12px; border-bottom: 1px solid var(--ton); text-align: left; vertical-align: middle; } /* taste-skill-ignore: echte Tabelle */
.tabelle thead th { font-size: var(--step-small); font-weight: 500; color: var(--muted); }
.tabelle tbody th { font-weight: 400; }
.tabelle td svg { color: var(--accent); vertical-align: -3px; }
.tabelle .plan-spalte { font-weight: 500; }
.vorbehalt { margin-top: 20px; color: var(--muted); font-size: var(--step-small); max-width: 70ch; }

.auch-frei { display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px 24px; padding: var(--abstand) var(--pad) 0; }
.auch-frei h2 { grid-column: 1 / -1; }
.auch-frei figure:nth-of-type(1) { grid-column: 1 / 8; grid-row: 2 / 4; }
.auch-frei figure:nth-of-type(2) { grid-column: 8 / -1; }
.auch-frei figure:nth-of-type(3) { grid-column: 8 / -1; }
.auch-frei img { width: 100%; height: auto; border-radius: var(--radius); background: var(--surface); }
.auch-frei figcaption { margin-top: 12px; color: var(--muted); font-size: var(--step-small); }

/* ---------- Formulare ---------- */
.formular { display: grid; gap: 18px; }
.eingabe { display: grid; gap: 8px; font-size: var(--step-small); font-weight: 500; }
.eingabe input { width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid #c3d3d3; border-radius: var(--radius); background: var(--bg); color: var(--ink); font: 400 1rem var(--text); transition: border-color 200ms ease, box-shadow 200ms ease; } /* taste-skill-ignore: Rahmen eines Formularfelds */
.eingabe input:hover { border-color: var(--muted); }
.eingabe input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 124, 128, 0.18); } /* taste-skill-ignore: Fokusring eines Formularfelds */
.eingabe input[aria-invalid="true"] { border-color: #b3261e; }
.eingabe input:disabled { background: var(--surface); }
.haken { display: flex; gap: 12px; align-items: flex-start; font-size: var(--step-small); }
.haken input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.fehler { padding: 12px 14px; border-radius: var(--radius); background: #fbeceb; color: #8c1d18; font-size: var(--step-small); }
.trenner { display: flex; align-items: center; gap: 16px; margin: 28px 0; color: var(--muted); font-size: var(--step-small); }
.trenner::before, .trenner::after { content: ""; flex: 1; height: 1px; background: var(--ton); } /* taste-skill-ignore: Trennlinie zwischen zwei Formularen */

/* ---------- Anmelden ---------- */
.wahl { display: inline-flex; padding: 4px; border-radius: calc(var(--radius) + 4px); background: var(--surface); }
.wahl button { min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--radius); background: none; cursor: pointer; font-weight: 500; color: var(--muted); transition: background-color 200ms ease, color 200ms ease; }
.wahl button:hover { color: var(--ink); }
.wahl button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.zugang { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; min-height: 100svh; padding: 0 var(--pad); }
.zugang-feld { grid-column: 1 / 6; align-self: center; padding: 140px 0 96px; }
.zugang-feld h1 { font-size: var(--step-head); }
.zugang-feld .wahl { margin: 32px 0 28px; }
.plan-hinweis { margin-bottom: 20px; padding: 14px 16px; border-radius: var(--radius); background: var(--ton); }
.bestaetigung { display: grid; gap: 16px; justify-items: start; }
.bestaetigung svg { color: var(--accent); }
.zugang-bild { grid-column: 7 / -1; position: relative; margin: 96px 0 24px; border-radius: var(--radius); overflow: hidden; }
.zugang-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.zugang-bild figcaption { position: absolute; left: 24px; right: 24px; bottom: 24px; display: grid; gap: 4px; padding: 20px 22px; border-radius: var(--radius); background: var(--bg); }
.zugang-bild figcaption b { font-family: var(--display); font-weight: 500; font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 8px; }
.zugang-bild figcaption span { color: var(--muted); font-size: var(--step-small); }

/* ---------- Konto ---------- */
/* Konto und Anmelden sind Arbeitsflächen: der Titel benennt die Seite, er wirbt nicht */
.app-seite .seitenkopf { padding: 128px var(--pad) 48px; }
.app-seite h1, .zugang-feld h1 { font-size: 2rem; letter-spacing: -0.025em; line-height: 1.1; max-width: none; }
.plan-feld .knopf.leise { background: var(--bg); }
.app-seite h2 { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.15; }
.konto-kopf { grid-column: 7 / -1; justify-self: end; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.konto-kopf p { color: var(--muted); }
.konto { display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px 24px; padding: 72px var(--pad) var(--abstand); }
.konto-projekte { grid-column: 1 / 8; }
.konto-seite { grid-column: 9 / -1; display: grid; gap: 20px; align-content: start; }
.abschnitt-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 20px; margin-bottom: 20px; }
.abschnitt-kopf h2 { font-size: var(--step-lead); letter-spacing: -0.02em; }
.abschnitt-kopf .knopf { margin-left: auto; }
.zaehler { color: var(--muted); font-variant-numeric: tabular-nums; }
.grenze { flex-basis: 100%; padding: 12px 14px; border-radius: var(--radius); background: var(--ton); font-size: var(--step-small); }
.konto-projekte .pos { color: var(--muted); width: 7.5em; }
.konto-projekte td:last-child { text-align: right; white-space: nowrap; }
.konto-projekte td:last-child .textlink + .textlink { margin-left: 16px; }
.notiz-demo { margin-top: 16px; color: var(--muted); font-size: var(--step-small); }
.plan-feld { display: grid; gap: 16px; padding: 24px; border-radius: var(--radius); background: var(--surface); }
.schriftfeld { display: grid; gap: 12px; }
.schriftfeld > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.sf-label { color: var(--muted); font-size: var(--step-small); }
.sf-wert { font-weight: 500; text-align: right; }
.sf-wert.gross { font-family: var(--display); font-size: var(--step-lead); letter-spacing: -0.02em; }
.sf-wert.ok { color: var(--accent); }
.sf-wert.warnung { color: #8c1d18; }
.plan-aktion .knopf { flex: 1; }
.zugang-liste { display: grid; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.zeile-knopf { display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 18px; border: 0; background: none; cursor: pointer; text-align: left; font: inherit; color: var(--ink); transition: background-color 200ms ease; }
.zeile-knopf + .zeile-knopf { box-shadow: inset 0 1px 0 var(--bg); } /* taste-skill-ignore: Fuge zwischen Listenzeilen */
.zeile-knopf::after { content: "→"; color: var(--muted); transition: transform 220ms var(--ease-out); }
.zeile-knopf:hover { background: var(--ton); }
.zeile-knopf:hover::after { transform: translateX(4px); }
.zeile-knopf.gefahr { color: #8c1d18; }
.plan-feld .zugang-liste { background: var(--bg); }
.kuendigen-feld, .loesch-feld { display: grid; gap: 16px; padding: 20px; border-radius: var(--radius); background: var(--ton); }
.abgemeldet .lead { margin-top: 24px; }
.abgemeldet .handlung { margin-top: 32px; }
.abgemeldet-bild { grid-column: 8 / -1; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); }

/* ---------- Kasse (Attrappe im Demo-Modus) und Mitteilungen ---------- */
.kasse { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; background: rgba(8, 32, 31, 0.45); }
.kasse[hidden] { display: none; }
.kasse-dialog { width: min(460px, 100%); display: grid; gap: 18px; padding: 32px; border-radius: calc(var(--radius) + 4px); background: var(--bg); box-shadow: 0 40px 80px -30px rgba(8, 32, 31, 0.6); } /* taste-skill-ignore: Dialog */
.kasse-dialog .von { color: var(--muted); font-size: var(--step-small); }
.kasse-dialog h2 { font-size: var(--step-lead); letter-spacing: -0.02em; }
.mitteilung { position: fixed; left: 50%; bottom: 24px; z-index: 40; transform: translateX(-50%); max-width: min(560px, calc(100% - 32px)); padding: 14px 20px; border-radius: var(--radius); background: var(--ink); color: var(--bg); font-size: var(--step-small); box-shadow: 0 20px 40px -20px rgba(8, 32, 31, 0.6); animation: mitteilung 320ms var(--ease-out); } /* taste-skill-ignore: schwebende Mitteilung */
@keyframes mitteilung { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- Kleiner Fuß für Anmelden und Konto ---------- */
.fuss.knapp { padding-top: 56px; }
.fuss.knapp .fuss-marke { display: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .seitenkopf-text { grid-column: 1 / -1; }
  .preis-bild { grid-column: 1 / -1; margin-top: 56px; }
  .vergleich h2, .vergleich-tabelle { grid-column: 1 / -1; }
  .vergleich h2 { margin-bottom: 32px; }
  .zugang-feld { grid-column: 1 / 8; }
  .zugang-bild { grid-column: 8 / -1; }
  .konto-kopf { grid-column: 1 / -1; justify-self: start; margin-top: 24px; }
  .abgemeldet-bild { grid-column: 1 / -1; margin-top: 40px; }
  .konto-projekte, .konto-seite { grid-column: 1 / -1; }
}

/* ---------- Telefon ---------- */
@media (max-width: 760px) {
  .seitenkopf { display: flex; flex-direction: column; align-items: stretch; padding: 112px var(--pad) 64px; }
  .export { position: static; margin-top: 12px; padding: 14px; box-shadow: none; } /* taste-skill-ignore: entfernt den Schatten */
  .export-formate { grid-template-columns: repeat(3, 1fr); }
  .vergleich, .auch-frei { display: flex; flex-direction: column; gap: 32px; }
  .tarife-karten { grid-template-columns: 1fr; }
  .tarif-plan { order: -1; }
  .tarif-kopf { padding: 22px; }
  .tabelle th, .tabelle td { padding: 14px 6px; }
  .zugang { display: flex; flex-direction: column; min-height: 0; }
  .zugang-feld { padding: 112px 0 48px; }
  .zugang-bild { height: 60svh; margin: 0 0 48px; }
  .konto { display: flex; flex-direction: column; padding-top: 48px; }
  .konto-projekte .pos { display: none; }
  .plan-aktion { flex-direction: column; align-items: stretch; }
  .app-seite h1, .zugang-feld h1 { font-size: 1.5rem; }
}
