/* ============================================================
   Unabhängige Meldestelle – gemeinsames Stylesheet
   ============================================================ */

/* ── Schriften: lokal gehostet (keine Verbindung zu Google beim Seitenbesuch).
   Lora und Karla, SIL Open Font License; latin-ext deckt u. a. ő/ű (Ungarisch) ab. ── */
@font-face {
  font-family: 'Lora'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url('/assets/fonts/lora-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lora'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url('/assets/fonts/lora-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lora'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/lora-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lora'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/lora-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Karla'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/assets/fonts/karla-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Karla'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/assets/fonts/karla-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg:            #F7F4EE;
  --surface:       #FFFFFF;
  --surface-alt:   #F1ECE0;
  --ink:           #2B2A28;
  --muted:         #6B6459;
  --line:          #E3DCC9;

  --primary:       #2F4F4C;
  --primary-deep:  #1E3533;
  --primary-soft:  #DEE7E4;

  --accent:        #B5793E;
  --accent-deep:   #8F5F2C;
  --accent-soft:   #F1E4D3;

  --error:         #B3432B;
  --success-bg:    #E8F1EA;
  --success-border:#3F6B52;
  --success-text:  #234433;

  --radius:        6px;
  --radius-lg:     10px;
  --shadow:        0 10px 30px rgba(30, 53, 51, 0.08);

  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-sans:  'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--primary); text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; color: var(--primary-deep); line-height: 1.25; }

/* ── Skip link ── */
.skip-link {
  position: absolute; top: -40px; left: 0; z-index: 200;
  background: var(--primary-deep); color: #fff;
  padding: 10px 18px; font-size: 0.9rem; text-decoration: none;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { top: 0; }

/* ── Header / Navigation ── */
.site-header {
  background: var(--primary-deep);
}
.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: #fff;
}
/* Logo bleibt Link, ändert beim Überfahren/Klicken aber die Farbe nicht */
.brand:hover, .brand:active, .brand:visited { color: #fff; }
.brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.brand-mark {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
}
.brand-text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.brand-text span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #BFD0CC;
  margin-top: 1px;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0.4rem;
  margin: 0; padding: 0;
}
nav.main-nav a {
  display: inline-block;
  color: #E4EDEB;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}
nav.main-nav a:hover { background: rgba(255,255,255,0.1); color: #fff; }
nav.main-nav a[aria-current="page"] {
  background: var(--accent);
  color: #fff;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

/* ── Sprachumschalter ── */
nav.lang-switch ul {
  list-style: none;
  display: flex;
  gap: 0.3rem;
  margin: 0; padding: 0 0 0 0.9rem;
  border-left: 1px solid rgba(255,255,255,0.25);
}
/* Gut sichtbar auch auf dem Desktop: helle Schrift mit Rahmen, aktive Sprache gefüllt */
nav.lang-switch a {
  display: inline-block;
  min-width: 2.3rem;
  text-align: center;
  color: #fff;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.45);
  transition: background 0.15s, color 0.15s;
}
nav.lang-switch a:hover { background: rgba(255,255,255,0.15); color: #fff; }
nav.lang-switch a[aria-current="true"] {
  background: #fff;
  color: var(--primary-deep);
  box-shadow: none;
}
nav.main-nav a:focus-visible,
nav.lang-switch a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

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

.accent-bar {
  height: 3px;
  background: linear-gradient(to right, var(--accent) 0%, var(--primary) 55%, transparent 100%);
}

/* ── Layout ── */
main { max-width: 1140px; margin: 0 auto; padding: 3rem 1.5rem 4.5rem; }

.page-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 0.6rem;
}

h1.page-title { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 0 0 0.5rem; text-wrap: balance; }

.lead { color: var(--muted); font-size: 1.05rem; max-width: none; margin: 0 0 2.5rem; text-wrap: pretty; }

p { margin: 0 0 1.3rem; max-width: none; text-wrap: pretty; }
main.wide p { max-width: none; }

strong { color: var(--primary-deep); }

hr.divider { border: none; border-top: 1px solid var(--line); margin: 2.75rem 0 2.25rem; }

/* ── Boxen ── */
.box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.8rem;
}
.box + .box { margin-top: 1.25rem; }

.media-note {
  margin: 1.6rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  max-width: none;
}
.media-note a { color: var(--muted); }
.media-note a:hover { color: var(--accent-deep); }

.notice-box {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.4rem;
  margin: 0 0 2.25rem;
}
.notice-box p { margin: 0; max-width: none; font-size: 0.98rem; }

/* ── Kontaktbox / Downloadbox Listen ── */
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.info-list li:last-child { border-bottom: none; }
.info-list .ico {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--primary-soft);
  display: flex; align-items: center; justify-content: center;
}
.info-list .ico svg { width: 16px; height: 16px; stroke: var(--primary-deep); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.info-list .label { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.03em; color: var(--muted); margin-bottom: 2px; }
.info-list .value { font-size: 1rem; }
.info-list .value a { font-weight: 600; }

/* ── Download-Karten ── */
.download-grid { display: grid; gap: 1rem; margin: 0 0 2.25rem; }
.download-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.3rem;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.download-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-1px); color: var(--ink); }
.download-card .file-ico {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: var(--radius);
  background: var(--primary-deep);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.download-card .file-info { flex: 1; min-width: 0; }
.download-card .file-title { font-weight: 700; margin-bottom: 2px; }
.download-card .file-meta { font-size: 0.82rem; color: var(--muted); }
.download-card .file-arrow { flex-shrink: 0; color: var(--accent-deep); font-size: 1.3rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1.75rem;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--primary-deep); color: #fff; }
.btn-primary:hover { background: var(--primary); color: #fff; }
.btn-primary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn-secondary { background: transparent; color: var(--primary-deep); border: 1.5px solid var(--line); }
.btn-secondary:hover { background: var(--surface-alt); color: var(--primary-deep); }

.cta-row { display: flex; gap: 0.9rem; flex-wrap: wrap; margin: 2rem 0 0; }
.cta-row--tight { margin-top: 0.5rem; }

/* ── Fachpersonen-Karten ── */
.person-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 0 0 2.5rem;
}
.person-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.8rem 1.6rem 1.6rem;
}
.person-photo-frame {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-alt);
  border: 3px solid var(--primary-soft);
  margin: 0 0 1.1rem;
}
.person-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Neue Fotos haben bereits einen einheitlichen Hintergrund (kein Filter mehr nötig). */
/* Neue Fotos sind bereits einheitlich als quadratische Nahaufnahmen zugeschnitten. */
.person-photo--annemarie,
.person-photo--ursula,
.person-photo--simon,
.person-photo--daniel { object-position: 50% 30%; transform: scale(1.05); }
.person-body { padding: 0; max-width: 40ch; }
.person-body h2 { font-size: 1.15rem; margin: 0 0 0.5rem; }
.person-body p { font-size: 0.94rem; margin: 0; max-width: none; color: var(--ink); }

/* ── Formular ── */
.form-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(30, 53, 51, 0.04);
}
.section-head {
  padding: 1.05rem 1.6rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 0.9rem;
}
.step-badge {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--primary-soft);
  display: flex; align-items: center; justify-content: center;
}
.step-badge svg { width: 16px; height: 16px; fill: none; stroke: var(--primary-deep); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.section-head h2 {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--primary-deep);
  letter-spacing: 0;
}
.section-body { padding: 1.6rem 1.6rem 1.7rem; }

.field-row { display: grid; gap: 1rem 1.25rem; margin-bottom: 1rem; }
.field-row.cols-2 { grid-template-columns: 1fr 1fr; }
.field-row.cols-plz { grid-template-columns: 130px 1fr; }
.field-row:last-child { margin-bottom: 0; }
.field-row--narrow { max-width: 320px; }
.field-row--captcha { max-width: 260px; }
.field { display: flex; flex-direction: column; gap: 0.3rem; }

label { font-size: 0.8rem; font-weight: 700; color: var(--muted); letter-spacing: 0.02em; }
.req { color: var(--error); margin-left: 2px; }
.opt { font-weight: 400; font-size: 0.75rem; color: #9aa39c; margin-left: 4px; }

.field-error { display: none; font-size: 0.78rem; color: var(--error); margin-top: 2px; }
.field.invalid .field-error { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error) !important; }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  font-family: var(--font-sans);
  font-size: 1rem; /* mind. 16px, sonst zoomt iOS beim Fokussieren automatisch rein */
  color: var(--ink);
  background: #FCFBF8;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 0.65rem 0.85rem;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47,79,76,0.16);
  background: #fff;
}
input::placeholder, textarea::placeholder { color: #b3ac9e; font-weight: 400; }

select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B6459' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.4rem;
}
textarea { resize: vertical; min-height: 150px; line-height: 1.7; }

.check-label { font-size: 0.8rem; font-weight: 700; color: var(--muted); letter-spacing: 0.02em; margin-bottom: 0.4rem; display: block; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.checkbox-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0; cursor: pointer; }
.checkbox-item input[type="checkbox"] { width: 19px; height: 19px; accent-color: var(--primary); cursor: pointer; flex-shrink: 0; }
.checkbox-item span { font-size: 0.9rem; }

.form-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 1.6rem; gap: 1rem; flex-wrap: wrap; }
.required-note { font-size: 0.8rem; color: var(--muted); }
.btn-group { display: flex; gap: 0.75rem; }

.form-msg { display: none; border-radius: var(--radius); padding: 1.1rem 1.4rem; font-size: 0.95rem; margin-top: 1.4rem; }
.form-msg.visible { display: block; }
.form-msg.success { background: var(--success-bg); border: 1.5px solid var(--success-border); color: var(--success-text); }
.form-msg.error { background: #FBEAE5; border: 1.5px solid var(--error); color: #7A2E1D; }

/* Honeypot – für Menschen unsichtbar */
.hp-field {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── Footer ── */
footer.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-alt);
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted);
}
.footer-inner strong { color: var(--ink); }
.footer-links { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }

.footer-copyright {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem 1.6rem;
  font-size: 0.76rem;
  color: var(--muted);
  text-align: center;
}
.footer-copyright a { color: var(--muted); }
.footer-copyright a:hover { color: var(--accent-deep); }

/* ── Responsiv ── */
@media (max-width: 720px) {
  .person-grid { grid-template-columns: 1fr; }
  .download-card { align-items: flex-start; }
}

@media (max-width: 680px) {
  .header-inner { justify-content: center; text-align: center; padding: 1rem 1.2rem; }
  .header-nav { width: 100%; flex-direction: column; gap: 0.6rem; }
  nav.main-nav { width: 100%; }
  nav.lang-switch ul { padding: 0; border-left: none; justify-content: center; }
  nav.main-nav ul { justify-content: center; flex-wrap: wrap; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 560px) {
  .field-row.cols-2, .field-row.cols-plz { grid-template-columns: 1fr; }
  main { padding: 2rem 1.2rem 3.5rem; }
  .section-body { padding: 1.1rem 1rem; }
  .section-head { padding: 0.9rem 1.1rem; }
  nav.main-nav ul { gap: 0.15rem; }
  nav.main-nav a { padding: 0.45rem 0.65rem; font-size: 0.86rem; }
  .btn { width: 100%; justify-content: center; }
  .cta-row { flex-direction: column; }
  .cta-row .btn { width: 100%; }
  .form-actions { flex-direction: column-reverse; align-items: stretch; }
  .btn-group { flex-direction: column; }
  #meldeformular button[type="reset"] { display: none; } /* zu leicht aus Versehen getroffen auf Mobile */
  .download-card { flex-wrap: wrap; }
  .file-arrow { display: none; }
}

@media (max-width: 420px) {
  .brand-text span { display: none; }
  .brand-text { font-size: 1.02rem; }
  h1.page-title { font-size: 1.6rem; }
}

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

@media print {
  .site-header, footer.site-footer, .cta-row, nav.main-nav, nav.lang-switch { display: none !important; }
}
