/* wasserkuppe.news – ein Stylesheet, keine externen Ressourcen */

:root {
  color-scheme: light dark;

  --bg: #faf5e6;
  --surface: #fffdf7;
  --text: #2a2433;
  --muted: #564d63;
  --accent: #5b4776;
  --accent-hover: #47365f;
  --on-accent: #ffffff;
  --border: #d8cde3;
  --selected-bg: #f1eaf9;
  --focus: #1f5fbf;
  --error: #a3231f;
  --error-bg: #fdecea;
  --success: #1c6334;
  --success-bg: #e6f4ea;

  --radius: 0.75rem;
  --gutter: 1rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1722;
    --surface: #252030;
    --text: #f1ecf7;
    --muted: #c5bcd2;
    --accent: #c9b5ec;
    --accent-hover: #ddd0f5;
    --on-accent: #1b1722;
    --border: #463c59;
    --selected-bg: #332a44;
    --focus: #8ab4ff;
    --error: #ffaaa1;
    --error-bg: #3d1f1d;
    --success: #97dcae;
    --success-bg: #1b3325;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
  line-height: 1.25;
  margin: 1.6em 0 0.5em;
}

h1 {
  font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.4rem);
  margin-top: 0;
}

h2 {
  font-size: 1.35rem;
}

h3 {
  font-size: 1.15rem;
}

h4 {
  font-size: 1rem;
}

.wrap {
  width: 100%;
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 0 0 0.5rem 0.5rem;
}

.skip-link:focus {
  top: 0;
}

/* ---------- Kopf ---------- */

.site-header {
  padding: 0.75rem 0;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  width: 64px;
  height: 64px;
  padding: 3px;
  background: #fffdf7;
  border-radius: 50%;
}

.brand-name {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.brand-tagline {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.3;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}

.site-nav a {
  display: inline-block;
  padding: 0.35rem 0;
}

/* ---------- Headerbild ---------- */

.hero img {
  width: 100%;
  max-height: 26rem;
  aspect-ratio: 12 / 5;
  object-fit: cover;
}

/* ---------- Inhalt ---------- */

main {
  padding: 2rem 0 3rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 44rem;
  margin: 0 0 1.5rem;
}

.usps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.usps li {
  padding: 0.2rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.9375rem;
}

.usps li::before {
  content: "✓ ";
  color: var(--success);
  font-weight: 700;
}

/* ---------- Formular ---------- */

fieldset {
  margin: 0 0 2rem;
  padding: 0;
  border: 0;
  min-width: 0;
}

legend {
  padding: 0;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
}

.check-all {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
}

.check-all[hidden] {
  display: none;
}

.lists {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 44rem) {
  .lists {
    grid-template-columns: repeat(2, 1fr);
  }
}

.list-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  background: var(--surface);
  border: 2px solid var(--border);
  border-top: 6px solid var(--accent);
  border-radius: var(--radius);
  transition: border-color 0.15s, background-color 0.15s;
}

.list-card:has(input:checked) {
  border-color: var(--accent);
  background: var(--selected-bg);
}

/* Ganze Karte anklickbar: Die Klickfläche des Labels wird über die Karte gespannt.
   Die Checkbox bleibt das eigentliche Bedienelement (Tastatur, Screenreader). */
.list-card {
  position: relative;
  cursor: pointer;
}

.list-card .choice::after {
  content: "";
  position: absolute;
  inset: 0;
}

.list-card:hover {
  border-color: var(--accent);
}

.list-card:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.list-card h2 {
  margin: 0 0 0.6rem;
  font-size: 1.4rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--accent);
}

.list-card p {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

/* Fettungen im Text dezent halten, damit die Überschrift dominiert */
.list-card p strong {
  font-weight: 600;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.facts div {
  display: flex;
  gap: 0.3rem;
}

.facts dt {
  font-weight: 600;
}

.facts dt::after {
  content: ":";
}

.facts dd {
  margin: 0;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-weight: 600;
  cursor: pointer;
}

input[type="checkbox"] {
  flex: none;
  width: 1.3rem;
  height: 1.3rem;
  margin: 0.15rem 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Kontaktdaten, Einwilligung und Absenden als eigene Card */
.form-card {
  max-width: 48rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
}

.form-card fieldset {
  margin-bottom: 0.5rem;
}

.form-card legend {
  margin-bottom: 0.25rem;
}

.form-card .field-hint {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.form-card .noscript-note {
  background: var(--bg);
}

/* Schmale Displays: randlos, damit das Turnstile-Widget seine 300px behält */
@media (max-width: 24rem) {
  .form-card {
    margin-inline: calc(-1 * var(--gutter));
    padding: 1.25rem var(--gutter);
    border-inline: 0;
    border-radius: 0;
  }
}

.field {
  margin: 0 0 1rem;
  max-width: 28rem;
}

.field label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.required {
  color: var(--error);
}

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--muted);
  border-radius: 0.5rem;
}

input::placeholder {
  color: var(--muted);
  opacity: 1;
}

input[aria-invalid="true"] {
  border-color: var(--error);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  max-width: 46rem;
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  cursor: pointer;
}

/* Honeypot: für Menschen unsichtbar, für Bots ein normales Feld */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cf-turnstile {
  min-height: 65px;
  margin: 0 0 1.25rem;
}

.noscript-note {
  max-width: 46rem;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--accent);
  background: var(--surface);
}

.button {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  font: inherit;
  font-weight: 700;
  color: var(--on-accent);
  background: var(--accent);
  border: 0;
  border-radius: 0.5rem;
  cursor: pointer;
  text-decoration: none;
}

.button:hover {
  color: var(--on-accent);
  background: var(--accent-hover);
}

.button:disabled {
  cursor: progress;
  opacity: 0.7;
}

.form-status:empty {
  display: none;
}

.form-status {
  max-width: 46rem;
  margin: 1.25rem 0 0;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border-left: 5px solid currentColor;
}

.form-status.is-error {
  color: var(--error);
  background: var(--error-bg);
}

.form-status.is-success {
  color: var(--success);
  background: var(--success-bg);
}

.form-status p {
  margin: 0;
  color: var(--text);
}

.form-status strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* ---------- FAQ ---------- */

.faq details {
  max-width: 46rem;
  margin: 0 0 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.faq summary {
  padding: 0.85rem 1rem;
  font-weight: 600;
  cursor: pointer;
}

.faq details p {
  margin: 0;
  padding: 0 1rem 1rem;
}

/* ---------- Textseiten ---------- */

.prose {
  max-width: 46rem;
}

.message {
  max-width: 40rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.message > :last-child {
  margin-bottom: 0;
}

/* ---------- Fuß ---------- */

.site-footer {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
  color: var(--muted);
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}

.site-footer p {
  margin: 0;
}

/* Sehr schmale Displays: Turnstile-Widget braucht 300px Breite */
@media (max-width: 22.5rem) {
  :root {
    --gutter: 0.625rem;
  }

  .list-card {
    padding: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
