/* meteo365.es v4 — Seite /konto/ (Login + Kontoübersicht)
   Farbschema: LAGUNE & SONNE. Nutzt die globalen Tokens aus tokens.css.
   Präfix: .kto- */

:root {
  --kto-blue:      #158dbd;
  --kto-blue-soft: rgba(21, 141, 189, .12);
  --kto-panel:     var(--surface);
}
html[data-theme="dark"] {
  --kto-blue:      var(--brand-cyan);
  --kto-blue-soft: rgba(104, 194, 227, .12);
  --kto-panel:     var(--bg-elev);
}

.kto-shell { padding-bottom: 8px; }
.kto-wrap { max-width: 460px; margin: 0 auto; padding: 40px 0 56px; }

.kto-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--kto-blue); margin-bottom: 14px;
}
.kto-kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--kto-blue); }

.kto-h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 36px); letter-spacing: -.02em; font-weight: 400;
  margin: 0 0 8px; color: var(--text); text-wrap: balance;
}
.kto-lede { color: var(--muted); margin: 0 0 26px; font-size: 15.5px; }

.kto-card {
  background: var(--kto-panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-soft);
}
.kto-card + .kto-card { margin-top: 16px; }

/* Formular */
.kto-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.kto-field label { font-size: 13px; font-weight: 600; color: var(--text); }
.kto-input {
  width: 100%; box-sizing: border-box;
  padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg-elev); color: var(--text);
  font-size: 15px; font-family: inherit;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.kto-input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus);
}

/* Buttons */
.kto-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; box-sizing: border-box;
  font-size: 15px; font-weight: 650; text-decoration: none;
  padding: 13px 20px; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease),
              border-color var(--t) var(--ease), color var(--t) var(--ease), opacity var(--t);
}
.kto-btn:hover { text-decoration: none; transform: translateY(-1px); }
.kto-btn:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.kto-btn-primary {
  color: #2a1a03; background: linear-gradient(180deg, var(--brand-sun), var(--brand-sun-2));
  box-shadow: 0 10px 24px -12px var(--glow);
}
.kto-btn-ghost { color: var(--text); background: transparent; border-color: var(--line); }
.kto-btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.kto-or {
  display: flex; align-items: center; gap: 12px; margin: 18px 0;
  color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
}
.kto-or::before, .kto-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Google-Knopf (vorerst inaktiv) */
.kto-google { position: relative; }
.kto-google .kto-soon {
  margin-left: 4px; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  color: var(--kto-blue); background: var(--kto-blue-soft);
  padding: 2px 8px; border-radius: var(--radius-pill);
}
.kto-gicon { width: 18px; height: 18px; flex: none; }

.kto-note { margin-top: 16px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* Rückmeldung nach Link-Anforderung */
.kto-msg {
  margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm);
  font-size: 14px; display: none;
}
.kto-msg.is-shown { display: block; }
.kto-msg.is-ok {
  color: var(--text); background: var(--accent-soft-bg); border: 1px solid var(--accent-soft-border);
}
.kto-msg.is-err {
  color: var(--text); background: var(--accent-alt-soft-bg); border: 1px solid var(--accent-alt-soft-border);
}

/* Eingeloggt-Ansicht */
.kto-ident { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.kto-avatar {
  width: 46px; height: 46px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 18px;
  color: #2a1a03; background: linear-gradient(180deg, var(--brand-sun), var(--brand-sun-2));
  text-transform: uppercase;
}
.kto-ident .kto-who { min-width: 0; }
.kto-ident .kto-email { font-weight: 650; color: var(--text); word-break: break-all; }
.kto-ident .kto-since { font-size: 12.5px; color: var(--muted); }

.kto-status {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 18px;
  font-size: 14px; border: 1px solid var(--line); background: var(--bg-elev);
}
.kto-badge {
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 9px; border-radius: var(--radius-pill);
}
.kto-badge.is-premium { color: #2a1a03; background: var(--brand-sun); }
.kto-badge.is-free { color: var(--kto-blue); background: var(--kto-blue-soft); }

.kto-actions { display: flex; flex-direction: column; gap: 10px; }

/* Gefahrenzone: Konto löschen */
.kto-danger { margin-top: 16px; border-color: var(--accent-alt-soft-border); }
.kto-danger h3 { margin: 0 0 6px; font-size: 15px; color: var(--accent-alt); }
.kto-danger > p { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); }
.kto-btn-danger { color: #fff; background: var(--accent-alt); }
.kto-btn-danger:hover { background: var(--accent-alt-hover); }
.kto-btn-danger:disabled { opacity: .6; }

.kto-confirm {
  margin-top: 12px; padding: 14px 16px; display: none;
  border: 1px solid var(--accent-alt-soft-border); border-radius: var(--radius-sm);
  background: var(--accent-alt-soft-bg);
}
.kto-confirm.is-open { display: block; }
.kto-confirm p { margin: 0 0 12px; font-size: 13.5px; color: var(--text); }
.kto-confirm-row { display: flex; gap: 10px; flex-wrap: wrap; }
.kto-confirm-row .kto-btn { width: auto; flex: 1; min-width: 140px; }

/* Erfolgsbanner nach Löschung (ausgeloggte Ansicht) */
.kto-banner {
  margin-bottom: 20px; padding: 14px 16px; border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text);
  background: var(--accent-soft-bg); border: 1px solid var(--accent-soft-border);
}

@media (max-width: 520px) { .kto-wrap { padding: 28px 0 40px; } }

/* Anmeldecode (13.10.2026) */
.kto-code { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.kto-code[hidden] { display: none; }
.kto-code .kto-field { margin-bottom: 4px; }
.kto-code-input { font-size: 24px; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.kto-code-hint { font-size: 12.5px; color: var(--muted); }

/* Angemeldete Geräte (13.10.2026) */
.kto-devices[hidden] { display: none; }
.kto-devices h3 { margin: 0 0 6px; font-size: 17px; }
.kto-dev-p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.kto-dev-list { list-style: none; margin: 0 0 14px; padding: 0; }
.kto-dev-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.kto-dev-list li:first-child { border-top: 0; }
.kto-dev-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kto-dev-txt strong { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kto-dev-txt span { font-size: 12.5px; color: var(--muted); }
.kto-dev-out {
  flex: 0 0 auto; padding: 6px 12px; border-radius: var(--radius-pill); border: 1px solid var(--line);
  background: transparent; color: var(--text); font: inherit; font-size: 13px; cursor: pointer;
}
.kto-dev-out:hover { border-color: var(--kto-blue); }
.kto-dev-out:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* „Was bringt mir ein Konto?" — Vergleichstabelle (29.10.2026, Vorschau). Premium-Spalte leicht getönt,
   eigener Tarif mit Rahmenlinie. Kein Orange als Schrift (nur Fläche). */
.kto-vt { margin-top: 16px; padding: 22px 18px; scroll-margin-top: 90px; }
.kto-vt-h { font-family: var(--font-display); font-size: 20px; font-weight: 400; letter-spacing: -.01em; margin: 0 0 14px; color: var(--text); text-wrap: balance; }
.kto-vt-huelle { overflow-x: auto; }
.kto-vt-tab { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.kto-vt-tab th, .kto-vt-tab td { padding: 9px 6px; text-align: center; border-bottom: 1px solid var(--line); vertical-align: middle; }
.kto-vt-tab tbody tr:last-child th, .kto-vt-tab tbody tr:last-child td { border-bottom: 0; }
.kto-vt-tab thead th { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); vertical-align: bottom; }
.kto-vt-tab tbody th { text-align: left; font-weight: 600; color: var(--text); padding-left: 0; }
.kto-vt-tab td { color: var(--text); font-weight: 600; }
.kto-vt-tab .is-premium { background: var(--kto-blue-soft); }
.kto-vt-link { display: block; color: inherit; text-decoration: underline; text-decoration-color: var(--kto-blue); text-underline-offset: 3px; }
.kto-vt-link:hover { color: var(--kto-blue); }
.kto-vt-link small { text-decoration: none; }
.kto-vt-tab thead .is-premium { color: var(--kto-blue); border-radius: 10px 10px 0 0; }
.kto-vt-tab .is-dein { box-shadow: inset 2px 0 0 var(--kto-blue), inset -2px 0 0 var(--kto-blue); }
.kto-vt-tab thead .is-dein { box-shadow: inset 2px 0 0 var(--kto-blue), inset -2px 0 0 var(--kto-blue), inset 0 2px 0 var(--kto-blue); }
.kto-vt-tab tbody tr:last-child .is-dein { box-shadow: inset 2px 0 0 var(--kto-blue), inset -2px 0 0 var(--kto-blue), inset 0 -2px 0 var(--kto-blue); }
.kto-vt-tab thead th small { display: block; margin-top: 3px; font-size: 10px; letter-spacing: .04em; color: var(--kto-blue); text-transform: none; }
.kto-vt-tab td small { display: block; margin-top: 2px; font-size: 11px; font-weight: 500; color: var(--muted); line-height: 1.3; }

/* Zweispaltig mit Vergleichstabelle (29.10.2026, Maren: „Seite zu schmal"). Unter 900 px untereinander. */
.kto-wrap--breit { max-width: 1120px; }
.kto-wrap--breit .kto-vt { max-width: 760px; margin-left: auto; margin-right: auto; }
@media (min-width: 900px) {
  .kto-wrap--breit { display: flex; align-items: flex-start; gap: 40px; }
  .kto-wrap--breit .kto-haupt { flex: 0 1 440px; min-width: 0; }
  .kto-wrap--breit .kto-vt { flex: 1 1 0; min-width: 0; max-width: none; margin: 58px 0 0; padding: 28px 28px 22px; }
  .kto-wrap--breit .kto-vt-h { font-size: 26px; margin-bottom: 18px; }
  .kto-wrap--breit .kto-vt-tab { font-size: 15px; }
  .kto-wrap--breit .kto-vt-tab th, .kto-wrap--breit .kto-vt-tab td { padding: 12px 10px; }
  .kto-wrap--breit .kto-vt-tab thead th { font-size: 12.5px; }
  .kto-wrap--breit .kto-vt-tab td small { font-size: 12px; }
}
.kto-vt-tab tbody th small { display: block; margin-top: 2px; font-size: 11px; font-weight: 500; color: var(--muted); line-height: 1.3; }
.kto-vt-fn { margin: 14px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.kto-vt-fn + .kto-vt-fn { margin-top: 6px; }

/* Links im Hinweistext (Bedingungen, Datenschutz) als Links erkennbar machen (Maren 29.10.2026). */
.kto-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.kto-note a:hover { color: var(--text); text-decoration-thickness: 2px; }
.kto-note a:focus-visible { outline: 2px solid var(--kto-blue); outline-offset: 2px; border-radius: 2px; }

/* Logo oben rechts in „Was bringt mir ein Konto?" (Maren 29.10.2026) — Vollfassung mit Schriftzug als Pfaden. */
.kto-vt-kopf { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.kto-vt-kopf .kto-vt-h { margin: 0; }
.kto-vt-logo { flex: 0 0 auto; height: 30px; width: auto; }
@media (min-width: 900px) { .kto-wrap--breit .kto-vt-logo { height: 40px; } .kto-wrap--breit .kto-vt-kopf { margin-bottom: 18px; } }
@media (max-width: 380px) { .kto-vt-logo { height: 24px; } }

/* Premium ohne Werbe-Tracking — Hinweis unter der Tabelle (Maren 29.10.2026). Getönt wie die Premium-Spalte. */
.kto-vt-track { margin: 16px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--kto-blue-soft); color: var(--text); font-size: 13.5px; line-height: 1.5; }
.kto-vt-track strong { color: var(--kto-blue); }
