/* Kündigungsgenerator – ergänzende Styles (neben Tailwind CDN) */

:root {
  --ink: #1c2430;
  --paper: #f7f4ef;
  --accent: #0f5c4c;
  --line: #d6d0c6;
}

body {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(15, 92, 76, 0.08), transparent 50%),
    radial-gradient(900px 500px at 100% 0%, rgba(28, 36, 48, 0.06), transparent 45%),
    linear-gradient(180deg, #fbfaf7 0%, #f0ebe3 100%);
}

.font-display {
  font-family: Fraunces, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

/* DIN 5008 Briefvorschau */
.din-letter {
  width: 210mm;
  min-height: 297mm;
  max-width: 100%;
  background: #fff;
  color: #111;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11pt;
  line-height: 1.35;
  box-shadow: 0 12px 40px rgba(28, 36, 48, 0.12);
  position: relative;
  padding: 20mm 20mm 20mm 25mm; /* ca. DIN 5008 */
  box-sizing: border-box;
}

.din-letter .absender-zeile {
  font-size: 8pt;
  color: #444;
  border-bottom: 0.4pt solid #888;
  padding-bottom: 2mm;
  margin-bottom: 5mm;
  max-width: 85mm;
}

.din-letter .anschrift {
  min-height: 40mm;
  max-width: 85mm;
  margin-bottom: 8mm;
  white-space: pre-line;
}

.din-letter .datum-zeile {
  text-align: right;
  margin-bottom: 10mm;
}

.din-letter .betreff {
  font-weight: 700;
  margin-bottom: 8mm;
}

.din-letter .brieftext {
  white-space: pre-wrap;
  margin-bottom: 14mm;
}

.din-letter .unterschrift {
  margin-top: 12mm;
}

@media print {
  body * {
    visibility: hidden;
  }
  .print-area,
  .print-area * {
    visibility: visible;
  }
  .print-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
  .din-letter {
    box-shadow: none;
    margin: 0;
    width: 210mm;
    min-height: auto;
  }
  .no-print {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .din-letter {
    padding: 16px;
    min-height: auto;
    font-size: 10.5pt;
  }
}

/* Land-/Kategorie-Auswahl (auch ohne Tailwind peer-checked sichtbar) */
.choice-option {
  position: relative;
  cursor: pointer;
  display: block;
}
.choice-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
.choice-option .choice-face {
  display: block;
  text-align: center;
  padding: 0.75rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  background: rgba(255, 255, 255, 0.8);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.choice-option.choice-inline {
  display: inline-flex;
}
.choice-option.choice-inline .choice-face {
  padding: 0.5rem 1rem;
}
.choice-option:has(input:checked) .choice-face,
.choice-option input:checked + .choice-face {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.choice-option.choice-dark:has(input:checked) .choice-face,
.choice-option.choice-dark input:checked + .choice-face {
  background: #0f172a;
  border-color: #0f172a;
}
.choice-option:focus-within .choice-face {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.legal-prose h2 {
  color: var(--ink);
  font-family: Fraunces, Georgia, serif;
  font-size: 1.35rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}
.legal-prose h3 {
  font-size: 1.1rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}
.legal-prose p,
.legal-prose li {
  line-height: 1.65;
}
.legal-prose ul,
.legal-prose ol {
  padding-left: 1.25rem;
  margin: 0.5rem 0 1rem;
  list-style: disc;
}
.legal-prose a {
  color: var(--accent);
  text-decoration: underline;
}
