/* Klarwort – „Verträge hier kündigen“ (kuendigen.html, § 312k BGB). Kopf, Karte und Fuß aus legal.css;
   eigene Datei statt <style>-Block, damit die Seite ohne 'unsafe-inline' in der Content-Security-Policy
   auskommt. Druckansicht: nur die Eingangsbestätigung (Datum, Uhrzeit, Angaben). */

[hidden] { display: none !important; }

.legal-header .lang { display: flex; background: #EFE9E1; border-radius: 999px; padding: 3px; }
.legal-header .lang button {
  border: 0; background: transparent; font: 700 13px var(--body); color: var(--ink2);
  padding: 5px 12px; border-radius: 999px; cursor: pointer;
}
.legal-header .lang button.active { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }

.kd-card { max-width: 640px; margin: 24px auto 0; }
.kd-card h1 { margin-bottom: 14px; }
.kd-card h1:focus { outline: none; }
.kd-lead { color: var(--ink2); margin-bottom: 14px; }
.kd-note {
  background: var(--tint); border-radius: 14px; padding: 12px 16px; margin-bottom: 22px;
  font-size: 14.5px; color: var(--ink2);
}

/* ── Formular ── */
.kd-group { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.kd-group legend, .kd-field > label { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 8px; padding: 0; }
.kd-opt { font-weight: 600; color: var(--ink2); }
.kd-choice {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
  border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; background: var(--card);
}
.kd-choice:has(input:checked) { border-color: var(--teal-deep); background: var(--tint); }
.kd-choice input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--teal-deep); }
.kd-choice b { display: block; font-size: 15.5px; }
.kd-choice small { display: block; font-size: 13.5px; color: var(--ink2); }

.kd-field { margin-bottom: 16px; }
.kd-field input, .kd-field textarea {
  width: 100%; font: 500 16px var(--body); color: var(--ink); background: var(--paper);
  border: 2px solid var(--line); border-radius: 14px; padding: 12px 15px; outline: none;
}
.kd-field textarea { resize: vertical; min-height: 104px; line-height: 1.5; }
.kd-field input:focus, .kd-field textarea:focus { border-color: var(--teal-deep); background: var(--card); }
.kd-field [aria-invalid="true"] { border-color: #C2410C; }
.kd-hint { font-size: 13px; color: var(--ink2); margin-top: 6px; }
.kd-privacy { font-size: 13px; color: var(--ink2); margin: 4px 0 18px; }

/* Honeypot: für Menschen unsichtbar (nicht display:none, damit einfache Bots das Feld ausfüllen). */
.kd-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ── Schaltflächen ── */
.kd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%;
  background: var(--teal-deep); color: #fff; font: 700 16.5px var(--body); padding: 15px 26px; border: 0;
  border-radius: 999px; cursor: pointer; box-shadow: 0 6px 18px rgba(10, 102, 115, .28); text-decoration: none;
}
.kd-btn:hover { background: #8E1016; text-decoration: none; }
.kd-btn:disabled { opacity: .7; cursor: default; }
/* „jetzt kündigen“: gut lesbar, groß, eindeutig (§ 312k Abs. 2 BGB). */
.kd-send { font-size: 18px; padding: 17px 26px; }
.kd-plain {
  display: inline-flex; align-items: center; justify-content: center; width: 100%;
  background: transparent; color: var(--teal-deep); font: 700 15.5px var(--body); padding: 13px 22px;
  border: 0; border-radius: 999px; cursor: pointer; box-shadow: inset 0 0 0 2px rgba(204, 27, 34, .35);
}
.kd-plain:hover { background: rgba(204, 27, 34, .08); text-decoration: none; }
.kd-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }

/* ── Meldungen ── */
.msg { border-radius: 14px; padding: 14px 18px; font-size: 15px; line-height: 1.5; margin-bottom: 18px; }
.msg-error { background: #FDECEC; color: #8A1C1C; border-left: 4px solid #D64545; }

/* ── Zusammenfassung ── */
.kd-summary { margin: 6px 0 4px; border-top: 1px solid var(--line); }
.kd-summary div { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.kd-summary dt { font-size: 14px; font-weight: 700; color: var(--ink2); }
.kd-summary dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; white-space: pre-line; }

/* ── Eingangsbestätigung ── */
.kd-icon {
  width: 60px; height: 60px; margin-bottom: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--tint); color: var(--teal-deep);
}
.kd-icon svg { width: 28px; height: 28px; }
.kd-received { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 16px; }
.kd-result {
  background: var(--tint); border-left: 4px solid var(--teal-deep); border-radius: 12px;
  padding: 14px 18px; margin: 0 0 18px; color: var(--ink);
}
.kd-result p { margin-bottom: 8px; }
.kd-result p:last-child { margin-bottom: 0; }
.kd-result b { display: block; font-family: var(--display); font-size: 17px; margin-bottom: 4px; }
.kd-result ol { margin: 4px 0 10px; padding-left: 1.3em; color: var(--ink2); }
.kd-result li { margin-bottom: 4px; }
.kd-result a { text-decoration: underline; text-underline-offset: 2px; }
.kd-result-store { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.kd-mail { color: var(--ink2); margin-top: 16px; }
.kd-print-only { display: none; }

@media (max-width: 480px) {
  .kd-summary div { grid-template-columns: minmax(0, 1fr); }
}

@media print {
  .legal-header .lang, .kd-noprint { display: none !important; }
  .kd-card { max-width: none; margin: 0; }
  .kd-result { border: 1px solid var(--ink3); }
  .kd-print-only { display: block; font-size: 13px; color: var(--ink2); margin-top: 22px; }
}
