/* PRJ-137: Kündigungs- und Widerrufsbutton (/kuendigen, /widerrufen,
   /kuendigen/zuruecknehmen). Brand palette of landing.html; no Tailwind
   (prebuilt/purged), so the pages carry their own small stylesheet. */
:root {
  --lf-bg: #0d0d14;
  --lf-card: #14141d;
  --lf-well: #0a0a12;
  --lf-border: rgba(255, 255, 255, .08);
  --lf-input-border: rgba(255, 255, 255, .18);
  --lf-text: #e2e8f0;
  --lf-muted: #a3aec2;
  --lf-accent: #a78bfa;
  --lf-error: #fca5a5;
  --lf-ok: #86efac;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--lf-bg);
  color: var(--lf-text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--lf-accent); }
:focus-visible { outline: 3px solid var(--lf-accent); outline-offset: 2px; }

.lf-skip { position: absolute; left: -9999px; top: 8px; background: var(--lf-card); color: var(--lf-text); padding: 10px 14px; border-radius: 8px; z-index: 10; }
.lf-skip:focus { left: 16px; }

.lf-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 720px; width: 100%; margin: 0 auto; padding: 18px 16px;
}
.lf-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--lf-text); text-decoration: none; font-weight: 700; font-size: 17px; }
.lf-brand img { border-radius: 6px; }
.lf-lang { display: inline-flex; gap: 4px; }
.lf-lang button {
  min-width: 44px; min-height: 44px; border-radius: 10px; border: 1px solid var(--lf-border);
  background: transparent; color: var(--lf-muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}

.lf-main { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 8px 16px 48px; }
.lf-main h1 { font-size: clamp(26px, 6vw, 34px); line-height: 1.2; margin: 8px 0 10px; letter-spacing: -.01em; }
.lf-lead { color: var(--lf-muted); margin: 0 0 24px; }

.lf-card {
  background: var(--lf-card); border: 1px solid var(--lf-border); border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); padding: 22px 18px;
}
@media (min-width: 560px) { .lf-card { padding: 28px 28px; } }

.lf-form fieldset { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.lf-form legend, .lf-label { display: block; font-weight: 600; font-size: 15px; margin: 0 0 8px; padding: 0; color: #f1f5f9; }
.lf-hint { color: var(--lf-muted); font-weight: 400; font-size: 14px; }
.lf-field { margin: 0 0 20px; }
.lf-sub { margin: 12px 0 0 0; }

.lf-choice {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; margin: 0 0 8px;
  border: 1px solid var(--lf-border); border-radius: 12px; background: var(--lf-well); cursor: pointer;
}
.lf-choice input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; }
.lf-choice:has(input:checked) { border-color: rgba(167, 139, 250, .6); }

.lf-input, .lf-select, .lf-textarea {
  display: block; width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; font-size: 16px;
  color: var(--lf-text); background: var(--lf-well); border: 1px solid var(--lf-input-border); border-radius: 10px;
}
.lf-textarea { min-height: 110px; resize: vertical; }
.lf-input[aria-invalid="true"], .lf-select[aria-invalid="true"], .lf-textarea[aria-invalid="true"] { border-color: var(--lf-error); }
.lf-input::-webkit-calendar-picker-indicator { filter: invert(.85); }

.lf-err { color: var(--lf-error); font-size: 14px; margin: 6px 0 0; }
.lf-err:empty { display: none; }
.lf-errors {
  border: 1px solid rgba(252, 165, 165, .5); background: rgba(127, 29, 29, .25); color: #fee2e2;
  border-radius: 12px; padding: 12px 14px; margin: 0 0 20px;
}
.lf-errors:empty { display: none; }
.lf-errors ul { margin: 6px 0 0; padding-left: 20px; }

.lf-submit, .lf-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; width: 100%;
  padding: 12px 22px; border: 0; border-radius: 12px; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer;
  color: #fff; background: linear-gradient(to right, #5b5ef0, #9333ea); box-shadow: 0 8px 24px rgba(99, 102, 241, .25);
}
@media (min-width: 560px) { .lf-submit, .lf-btn { width: auto; } }
.lf-submit[disabled] { opacity: .7; cursor: progress; }
.lf-btn-secondary { background: #1b1b27; border: 1px solid var(--lf-border); box-shadow: none; color: var(--lf-text); }

.lf-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.lf-success h2 { font-size: 24px; margin: 0 0 10px; }
.lf-success:focus { outline: none; }
.lf-summary { margin: 18px 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 2px 16px; }
@media (min-width: 560px) { .lf-summary { grid-template-columns: minmax(150px, max-content) 1fr; } }
.lf-summary dt { color: var(--lf-muted); font-size: 14px; margin-top: 8px; }
.lf-summary dd { margin: 0; overflow-wrap: anywhere; }
.lf-note { color: var(--lf-muted); font-size: 14px; }
.lf-ok { color: var(--lf-ok); }
.lf-warn { color: #fde68a; border: 1px solid rgba(253, 230, 138, .4); border-radius: 10px; padding: 10px 12px; }

.lf-footer { border-top: 1px solid rgba(255, 255, 255, .06); padding: 22px 16px; font-size: 14px; color: var(--lf-muted); }
.lf-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; max-width: 720px; margin: 0 auto; }
.lf-footer a { color: var(--lf-muted); }

@media print {
  body { background: #fff; color: #000; display: block; }
  .lf-header, .lf-footer, .lf-form, .lf-noprint, .lf-skip { display: none !important; }
  .lf-card { border: 1px solid #999; box-shadow: none; background: #fff; }
  .lf-summary dt, .lf-note, .lf-lead { color: #333; }
  .lf-main { max-width: none; }
}
