/* Schrift: Archivo (SIL Open Font License), lokal eingebunden – keine Verbindung zu Google */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2-variations"), url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --hallenblau: #1b3a57;
  --hallenblau-tief: #142c43;
  --kreide: #f3f5f4;
  --papier: #ffffff;
  --linie: #f0b323;
  --weste: #b3282d;
  --text: #1b2530;
  --text-leise: #56636f;
  --rand: #d8dee3;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--kreide);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--linie); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-stretch: 72%; font-weight: 800; line-height: 1.02; margin: 0; letter-spacing: -0.005em; }
h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.lead { color: var(--text-leise); max-width: 38rem; margin: 0.75rem 0 2rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--linie); color: var(--text); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Hero: das Spielfeld ---------- */
.hero {
  position: relative;
  background: var(--hallenblau);
  color: var(--papier);
  overflow: hidden;
}
.nav {
  position: relative; z-index: 2;
  max-width: var(--wrap); margin: 0 auto;
  padding: 1.25rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav-name { font-weight: 800; font-stretch: 72%; font-size: 1.35rem; text-decoration: none; }
.nav ul { list-style: none; display: flex; gap: clamp(.9rem, 3vw, 2rem); margin: 0; padding: 0; }
.nav ul a { text-decoration: none; font-size: .95rem; opacity: .85; }
.nav ul a:hover { opacity: 1; text-decoration: underline; text-decoration-color: var(--linie); text-underline-offset: 5px; text-decoration-thickness: 2px; }

.hero-inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) var(--gutter) 0;
  display: grid;
  display: flex;
  align-items: center;
  min-height: min(46rem, 88vh);
}
.hero-text { position: relative; z-index: 2; padding-bottom: clamp(3rem, 7vw, 5rem); max-width: 34rem; }
.hero-name {
  font-size: clamp(3.6rem, 11vw, 8.5rem);
  font-stretch: 62%;
  font-weight: 850;
  line-height: .88;
  letter-spacing: -0.01em;
  max-width: 7ch;
}
.hero-role {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.35;
  max-width: 28rem;
  margin: 1.5rem 0 1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--linie);
}
.hero-facts { color: #c4d2df; margin: 0 0 2rem; max-width: 30rem; }
.hero-facts strong { color: var(--papier); font-weight: 700; }
.hero-facts a { color: var(--papier); text-decoration-color: var(--linie); text-underline-offset: 4px; text-decoration-thickness: 2px; }

.btn {
  display: inline-block;
  background: var(--linie);
  color: var(--hallenblau-tief);
  font-weight: 700;
  text-decoration: none;
  padding: .85rem 1.4rem;
  border-radius: 999px;
}
.btn:hover { background: #ffc63d; }

/* Torraum: Foto liegt im 6-m-Kreis, die 9-m-Linie ist gestrichelt. Das Tor sitzt am rechten Bildschirmrand. */
.hero-court {
  position: absolute;
  right: 0; bottom: 0;
  height: min(88%, 46rem);
  aspect-ratio: 600 / 640;
  margin: 0;
}
.court { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.court-line { fill: none; stroke: rgba(255,255,255,.85); stroke-width: 4; }
.court-dash { stroke-dasharray: 22 18; stroke: rgba(255,255,255,.45); }
.court-mark { stroke: var(--linie); stroke-width: 6; }
.court-goal { fill: var(--weste); }
.hero-photo {
  position: absolute;
  left: 50%; top: 0;
  width: 50%; height: 100%;
  clip-path: ellipse(100% 46.875% at 100% 50%);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 40%; }

@media (max-width: 860px) {
  .hero-inner { display: block; min-height: 0; padding-bottom: 0; }
  .hero-text { padding-bottom: 1rem; }
  .hero-court { position: relative; height: auto; width: min(92%, 28rem); margin: 0 calc(-1 * var(--gutter)) 0 auto; }
  .nav ul { gap: .9rem; }
  .nav ul li:first-child { display: none; }
}

/* ---------- Bereiche (zugleich Filter) ---------- */
.areas { background: var(--papier); }
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  border-top: 2px solid var(--text);
}
.area {
  appearance: none; font: inherit; color: inherit; text-align: left; cursor: pointer;
  background: none; border: 0;
  border-bottom: 1px solid var(--rand);
  padding: 1.25rem 1.25rem 1.5rem 0;
  display: grid; gap: .45rem; align-content: start;
  position: relative;
}
.area + .area { padding-left: 1.25rem; border-left: 1px solid var(--rand); }
.area-name { font-weight: 800; font-stretch: 75%; font-size: 1.45rem; line-height: 1.1; display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; }
.area-count { font-size: 1rem; font-stretch: 100%; font-weight: 600; color: var(--text-leise); font-variant-numeric: tabular-nums; }
.area-text { font-size: .95rem; color: var(--text-leise); line-height: 1.5; }
.area::before {
  content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 6px;
  background: var(--linie); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.area + .area::before { left: 0; }
.area:hover .area-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--linie); }
.area[aria-pressed="true"]::before { transform: scaleX(1); }
.area[aria-pressed="true"] .area-count { color: var(--text); }
@media (max-width: 640px) {
  .area, .area + .area { padding-left: 0; border-left: 0; }
}

/* ---------- Qualifikationen, nach Jahr ---------- */
.quals-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 2rem; margin-bottom: 2.5rem; }
.quals-status { margin: 0; color: var(--text-leise); }
.quals-status button { font: inherit; color: var(--hallenblau); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }

.year { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1.5rem; padding-top: 1.25rem; border-top: 2px solid var(--text); }
.year + .year { margin-top: 3rem; }
.year-label { font-size: 2.6rem; font-weight: 800; font-stretch: 62%; line-height: 1; color: var(--hallenblau); font-variant-numeric: tabular-nums; position: sticky; top: 1rem; align-self: start; }
.year-items { list-style: none; margin: 0; padding: 0; }
@media (max-width: 640px) {
  .year { grid-template-columns: 1fr; gap: .5rem; }
  .year-label { position: static; }
}

.qual { border-bottom: 1px solid var(--rand); }
.qual:first-child { margin-top: -.5rem; }
.qual details > summary { list-style: none; cursor: pointer; padding: 1.1rem 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem 1.5rem; align-items: start; }
.qual details > summary::-webkit-details-marker { display: none; }
.qual-title { font-size: 1.3rem; font-weight: 700; font-stretch: 85%; line-height: 1.2; }
.qual-meta { grid-column: 1; color: var(--text-leise); font-size: .95rem; display: flex; flex-wrap: wrap; gap: .2rem 1rem; }
.qual-meta span:first-child { color: var(--text); }
.qual-toggle {
  grid-column: 2; grid-row: 1 / -1; align-self: center;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  border: 2px solid var(--rand); display: grid; place-items: center;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.qual-toggle svg { width: 14px; height: 14px; }
.qual summary:hover .qual-toggle { border-color: var(--hallenblau); }
.qual details[open] .qual-toggle { transform: rotate(45deg); background: var(--hallenblau); border-color: var(--hallenblau); color: var(--papier); }
.qual-key .qual-title::after {
  content: ""; display: inline-block; width: .55em; height: .55em; margin-left: .45em;
  border-radius: 50%; background: var(--linie); vertical-align: .1em;
}
.qual-body { padding: 0 3.5rem 1.5rem 0; max-width: 46rem; }
.qual-body p { margin: 0 0 1rem; }
.qual-body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .4rem; }
.qual-body li { padding-left: 1.4rem; position: relative; }
.qual-body li::before { content: ""; position: absolute; left: 0; top: .72em; width: .8rem; height: 2px; background: var(--linie); }
.qual-level { font-size: .9rem; color: var(--text-leise); margin-top: 1rem !important; }
.legend { color: var(--text-leise); font-size: .95rem; margin: 2.5rem 0 0; }
.legend::before { content: ""; display: inline-block; width: .6em; height: .6em; border-radius: 50%; background: var(--linie); margin-right: .5em; }

/* ---------- Über mich ---------- */
.about {
  display: grid; grid-template-columns: 1fr 1fr; padding: 0; background: var(--papier);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 24rem; }
.about-text { padding: clamp(3rem, 7vw, 6rem) var(--gutter); max-width: 38rem; }
.about-intro { font-size: 1.2rem; line-height: 1.5; margin: 1.25rem 0; }
.about-text p { margin: 0 0 1rem; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about-photo img { min-height: 0; aspect-ratio: 4 / 3; }
}

/* ---------- Kontakt ---------- */
.contact { background: var(--hallenblau); color: var(--papier); }
.contact-inner p { max-width: 34rem; color: #c4d2df; margin: 1rem 0 2rem; }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center; }
.contact-list a { text-decoration-color: var(--linie); text-underline-offset: 5px; }
.contact-list .btn { text-decoration: none; }
.contact-list .plain { color: #c4d2df; }

/* ---------- Footer ---------- */
.footer { background: var(--hallenblau-tief); color: #a9bacb; font-size: .9rem; padding: 1.5rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.footer nav { display: flex; gap: 1.5rem; }

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
.page-head { background: var(--hallenblau); color: var(--papier); }
.page-head .nav { padding-bottom: 2.5rem; }
.page { max-width: 46rem; margin: 0 auto; padding: 3rem var(--gutter) 5rem; }
.page h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin-bottom: 1.5rem; }
.page h2 { font-size: 1.6rem; margin: 2.25rem 0 .5rem; }
.page .todo { background: #fff4d6; border-left: 4px solid var(--linie); padding: .8rem 1rem; }

/* ---------- Anerkennungen ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.seals { background: var(--kreide); padding-bottom: 0; }
.seal-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1rem;
}
.seal-zfu { grid-row: span 2; }
.seal {
  appearance: none; font: inherit; color: inherit; text-align: left;
  background: var(--papier); border: 1px solid var(--rand); border-radius: 6px;
  padding: 1.5rem 1.4rem 1.4rem;
  display: flex; flex-direction: column; gap: .5rem;
}
button.seal { cursor: pointer; }
.seal-count { font-size: 3.6rem; font-weight: 850; font-stretch: 62%; line-height: .9; color: var(--hallenblau); font-variant-numeric: tabular-nums; }
.seal-title { font-weight: 800; font-stretch: 78%; font-size: 1.35rem; line-height: 1.15; }
.seal-text { font-size: .95rem; color: var(--text-leise); line-height: 1.5; }
.seal-action { margin-top: auto; padding-top: .5rem; font-size: .9rem; font-weight: 600; color: var(--hallenblau); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--linie); text-decoration-thickness: 2px; }
button.seal:hover { border-color: var(--hallenblau); }
button.seal[aria-pressed="true"] { border-color: var(--hallenblau); box-shadow: inset 0 0 0 2px var(--hallenblau); }
button.seal[aria-pressed="true"] .seal-action::before { content: "Aktiv: "; }

.seal-zfu { background: var(--hallenblau); border-color: var(--hallenblau); color: var(--papier); position: relative; overflow: hidden; }
.seal-zfu .seal-count { color: var(--linie); font-size: 5rem; }
.seal-zfu .seal-title { font-size: 1.6rem; }
.seal-zfu .seal-text { color: #c4d2df; }
.seal-zfu .seal-action { color: var(--papier); }
.seal-zfu:hover { border-color: var(--linie); }
.seal-zfu[aria-pressed="true"] { box-shadow: inset 0 0 0 3px var(--linie); }
.seal-zfu::after {
  content: ""; position: absolute; right: -3.5rem; top: -3.5rem; width: 11rem; height: 11rem;
  border-radius: 50%; border: 3px solid rgba(255,255,255,.18); box-shadow: 0 0 0 14px rgba(255,255,255,.05);
  pointer-events: none;
}
.seal-dosb .seal-count { color: var(--weste); }
@media (max-width: 960px) { .seal-grid { grid-template-columns: 1fr 1fr; } .seal-zfu { grid-row: auto; grid-column: 1 / -1; } }
@media (max-width: 560px) { .seal-grid { grid-template-columns: 1fr; } .seal-zfu { grid-column: auto; } }

.badges { grid-column: 1; display: flex; flex-wrap: wrap; gap: .4rem; }
.badge { font-size: .8rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; line-height: 1.4; }
.badge-zfu { background: var(--hallenblau); color: var(--papier); }
.badge-dosb { background: var(--weste); color: var(--papier); }
.qual-sub { font-size: 1rem; font-stretch: 100%; font-weight: 700; margin: 1.25rem 0 .6rem; }
.qual-proof li::before { width: .55rem; height: .55rem; border-radius: 50%; top: .55em; background: var(--hallenblau); }
.badge-verband { background: #fbe7b0; color: #5a4100; }
.badge-eqf { background: transparent; color: var(--hallenblau); box-shadow: inset 0 0 0 1.5px var(--hallenblau); }
.seal-fachverband .seal-count { color: #c48a00; }
.seal-list { display: grid; gap: 0; margin-top: 1rem; border-top: 1px solid rgba(255,255,255,.18); }
.seal-item { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,.18); font-size: .95rem; font-weight: 600; }
.seal-nr { color: #c4d2df; font-weight: 400; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .seal-item { flex-direction: column; gap: .1rem; } }
