/* Supervision Südostbayern
   Keine externen Schriften oder Skripte: alles wird vom eigenen Server geladen. */

:root {
  --lake: #2f4f7f;
  --lake-dark: #1f3557;
  --lake-soft: #e7edf5;
  --clay: #b8663d;
  --ink: #1d2330;
  --muted: #5d6572;
  --line: #e2ddd4;
  --bg: #f6f3ee;
  --card: #ffffff;
  --radius: 14px;
  --max: 72rem;
  --sans: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--lake); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--clay); }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
address { font-style: normal; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

.skip-link {
  position: absolute; left: -999px; top: 0.5rem; z-index: 100;
  background: var(--lake-dark); color: #fff; padding: 0.5rem 1rem; border-radius: 6px;
}
.skip-link:focus { left: 0.5rem; }

/* Kopfzeile */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--lake-dark); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { color: #fff; text-decoration: none; line-height: 1.2; }
.brand strong { display: block; font-size: 1.15rem; letter-spacing: 0.01em; }
.brand span { font-size: 0.82rem; color: #c3cfe0; }
.brand:hover { color: #fff; }
@media (max-width: 30rem) { .brand span { display: none; } }
.header-link {
  color: #fff; text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 0.45rem 0.95rem; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px;
}
.header-link:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.header-link[aria-current] { display: none; }

/* Einstieg */
.hero {
  padding: clamp(2.75rem, 8vw, 5.5rem) 0;
  background: linear-gradient(160deg, var(--lake) 0%, var(--lake-dark) 100%);
  color: #fff;
}
.hero-grid { display: grid; gap: 2.5rem; grid-template-columns: 1.15fr 1fr; align-items: center; }
@media (max-width: 52rem) { .hero-grid { grid-template-columns: 1fr; } }
.eyebrow {
  display: inline-block; margin-bottom: 1rem; font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.16em; color: #f1c8a9;
}
.hero h1 { margin-bottom: 1.25rem; max-width: 18ch; }
.lead { font-size: 1.18rem; max-width: 36rem; color: #dbe3ee; }
.actions { margin-top: 1.75rem; }
.btn {
  display: inline-block; padding: 0.8rem 1.4rem; border-radius: 8px;
  font-weight: 600; text-decoration: none; background: var(--clay); color: #fff;
}
.btn:hover { background: #a1552f; color: #fff; }

.group-photo { margin: 0; }
.group-photo img {
  width: 100%; border-radius: var(--radius);
  border: 6px solid #fff; box-shadow: 0 18px 40px rgba(16, 28, 48, 0.28);
  transform: rotate(1.5deg);
}
@media (max-width: 52rem) { .group-photo { max-width: 26rem; } }

/* Mitglieder */
section { padding: clamp(3rem, 7vw, 5rem) 0; }
#mitglieder h2::after {
  content: ""; display: block; width: 3.5rem; height: 4px; margin-top: 0.85rem;
  background: var(--clay); border-radius: 2px;
}
.section-intro { color: var(--muted); margin: 1rem 0 2.25rem; }

.members { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 30rem), 1fr)); }
.member {
  display: grid; grid-template-columns: 8.5rem 1fr; gap: 1.4rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; scroll-margin-top: 5.5rem;
}
.member:target { border-color: var(--clay); box-shadow: 0 0 0 3px rgba(184, 102, 61, 0.2); }
.member img {
  width: 8.5rem; height: 8.5rem; object-fit: cover; object-position: 50% 30%;
  border-radius: 50%; border: 4px solid var(--lake-soft);
}
@media (max-width: 30rem) {
  .member { grid-template-columns: 1fr; }
  .member img { width: 7rem; height: 7rem; }
}
.member h3 { color: var(--lake-dark); }
.place {
  display: inline-block; margin: 0.35rem 0 0.75rem; font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--clay);
}
.role { color: var(--muted); font-size: 0.97rem; }
.member address { margin-bottom: 0.75rem; }
.contact-lines { list-style: none; margin: 0; padding: 0.75rem 0 0; border-top: 1px solid var(--line); font-size: 0.97rem; }
.contact-lines li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 0.5rem; padding: 0.12rem 0; }
.contact-lines span { color: var(--muted); font-size: 0.85rem; padding-top: 0.1rem; }
.contact-lines a { overflow-wrap: anywhere; }

/* Fußzeile */
.site-footer { background: var(--lake-dark); color: #c3cfe0; padding: 1.75rem 0; font-size: 0.92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #f1c8a9; }

/* Rechtstexte */
.legal { padding: 3rem 0 4rem; }
.legal .wrap { max-width: 46rem; }
.legal h1 { margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.3rem; margin: 2.25rem 0 0.75rem; color: var(--lake-dark); }
.legal address { margin-bottom: 1rem; }
.legal ul { padding-left: 1.2rem; }
.legal li::marker { color: var(--clay); }
.note { font-size: 0.95rem; color: var(--muted); }

@media print {
  .site-header, .actions, .skip-link { display: none; }
  .hero, .site-footer { background: none; color: var(--ink); }
  .lead, .eyebrow { color: var(--ink); }
  .group-photo img { transform: none; box-shadow: none; }
  .member { break-inside: avoid; }
}
