/* pages.css — Seitenkopf, Fließtext und Formular der Unterseiten.
   Ergänzt components.css; enthält keine Duplikate daraus. */

/* ─── SEITENKOPF (ohne WebGL-Hero) ─────────────────────────────────────────── */
.page-head {
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}

.page-head .section-inner {
  padding-top: var(--nav-clear);
  padding-bottom: clamp(3rem, 7vw, 5rem);
  max-width: 900px;
  margin-inline: 0;
  margin-left: max(calc((100vw - 1200px) / 2), clamp(1.5rem, 5vw, 2.5rem));
}

/* Stehen Brotkrümel davor, haben die den Abstand zur Kopfleiste schon geschaffen —
   der Seitenkopf darf ihn dann nicht ein zweites Mal aufschlagen. */
.breadcrumbs + .page-head .section-inner { padding-top: clamp(2rem, 4vw, 3rem); }

.page-eyebrow { display: block; margin-bottom: 1.1rem; }

.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.2vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.015em;
  max-width: 20ch;
}

.page-head h1 em { color: var(--accent); font-style: italic; }

.page-intro {
  margin-top: 1.75rem;
  font-size: clamp(0.92rem, 1.5vw, 1.05rem);
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 60ch;
}

.page-head-ctas {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ─── FLIESSTEXT ───────────────────────────────────────────────────────────── */
.prose { max-width: 66ch; }

.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 300;
  line-height: 1.15;
  margin-top: 3rem;
  margin-bottom: 1.1rem;
}

.prose h2:first-child { margin-top: 0; }
.prose h2 em { color: var(--accent); font-style: italic; }

.prose h3 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 2.25rem;
  margin-bottom: 0.8rem;
}

.prose p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 1.1rem;
}

.prose ul { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.75rem; }

.prose ul li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  padding-left: 1.3rem;
  position: relative;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

/* ─── FORMULAR (Kontaktseite) ──────────────────────────────────────────────── */
.contact-grid { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); align-items: start; }

@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.15fr; } }

.form {
  border: 1px solid var(--border);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  background: var(--bg-surface);
  display: grid;
  gap: 1.4rem;
}

.form-field { display: grid; gap: 0.5rem; }

.form-field label {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form-field .optional { color: var(--text-muted); text-transform: none; letter-spacing: 0.04em; }

.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.85rem 1rem;
  min-height: 44px;
  width: 100%;
  transition: border-color 0.25s;
}

.form-field textarea { min-height: 9rem; resize: vertical; }

.form-field input:hover,
.form-field textarea:hover { border-color: var(--text-muted); }

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] { border-color: #E0703A; }

/* Fehler nennen das Problem im Text — nicht nur über die Randfarbe */
.field-error {
  font-size: 0.82rem;
  line-height: 1.5;
  color: #E0703A;
}

[data-theme="light"] .field-error { color: #A63C0A; }

.field-error:empty { display: none; }

.form-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
}

.form-consent input[type="checkbox"] {
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.1rem;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.form-consent label { font-size: 0.9rem; line-height: 1.65; color: var(--text-secondary); }

.form-consent a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Honeypot — für Menschen und Screenreader unsichtbar, für Bots ausfüllbar */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  font-size: 1rem;
  line-height: 1.7;
  padding: 0.9rem 1.1rem;
  border-left: 2px solid var(--accent);
  background: var(--bg);
}

.form-status:empty { display: none; }
.form-status[data-state="error"] { border-left-color: #E0703A; }

.form button[type="submit"] { justify-self: start; border: 1px solid var(--accent); }

.form-note { font-size: 0.82rem; line-height: 1.6; color: var(--text-muted); }

/* ─── KONTAKTWEGE ──────────────────────────────────────────────────────────── */
.contact-ways { display: grid; gap: 1.5rem; }

.contact-way {
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  padding: clamp(1.4rem, 3vw, 2rem);
  display: grid;
  gap: 0.8rem;
  justify-items: start;
}

.contact-way h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
}

.contact-way p { font-size: 1rem; line-height: 1.8; color: var(--text-secondary); }

/* E-Mail-Adressen bleiben kleingeschrieben, auch in Buttons */
.contact-way .btn-ghost[href^="mailto:"] { text-transform: none; letter-spacing: 0.04em; }
