@font-face { font-family: "Barlow"; src: url(/fonts/barlow-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/fonts/barlow-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/fonts/barlow-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/fonts/barlow-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/fonts/barlow-condensed-latin-600-italic.woff2) format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/fonts/barlow-condensed-latin-700-italic.woff2) format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/fonts/barlow-condensed-latin-800-italic.woff2) format("woff2"); font-weight: 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* Farben aus dem Vereinslogo */
  --red: #ec5f47;        /* Logo-Streifen */
  --red-dark: #d0432c;   /* Logo-Rot, dunkler für Schrift und Knöpfe */
  --red-soft: #fde6e1;   /* auslaufende Streifen */
  --blue: #2d6aa8;       /* Kontur des Läufers */
  --blue-dark: #1f4d82;  /* Logo-Blau, dunkel für Titel und Flächen */
  --blue-light: #a9c9e7; /* Füllung des Läufers */
  --hall: #eef4fa;       /* helles Logo-Blau */
  --ink: #17304f;
  --muted: #55698a;
  --line: #d6e2ef;
  --white: #fff;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --text: "Barlow", system-ui, sans-serif;
  --wrap: 72rem;
  --r: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
body { margin: 0; font: 400 1.0625rem/1.6 var(--text); color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-style: italic; font-weight: 800; line-height: 1; letter-spacing: -0.01em; margin: 0 0 0.5em; color: var(--blue-dark); }
h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.45rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow > * { max-width: 46rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--blue-dark); color: #fff; padding: 0.6rem 1rem; z-index: 99; }
.skip:focus { left: 0.5rem; }
.small { font-size: 0.9rem; color: var(--muted); }
.mt { margin-top: 2.5rem; }

/* ---------- Tempo-Streifen aus dem Logo ---------- */
.stripes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.stripes i { position: absolute; right: 0; display: block; background: linear-gradient(90deg, rgba(236, 95, 71, 0), var(--red) 70%); border-radius: 0 0 0 0; }
.stripes--hero i:nth-child(1) { top: 0; height: 22px; width: 50%; }
.stripes--hero i:nth-child(2) { top: 36px; height: 8px; width: 38%; opacity: 0.8; }
.stripes--hero i:nth-child(3) { top: 58px; height: 28px; width: 58%; }
.stripes--hero i:nth-child(4) { top: 102px; height: 6px; width: 32%; opacity: 0.7; }
.stripes--hero i:nth-child(5) { top: 122px; height: 16px; width: 46%; }
.stripes--hero i:nth-child(6) { top: 152px; height: 5px; width: 24%; opacity: 0.6; }
.stripes--head i:nth-child(1) { top: 28%; height: 14px; width: 46%; }
.stripes--head i:nth-child(2) { top: calc(28% + 24px); height: 6px; width: 32%; opacity: 0.7; }
.stripes--head i:nth-child(3) { top: calc(28% + 40px); height: 20px; width: 56%; }
.stripes--foot { inset: 0 0 auto; height: 3.2rem; }
.stripes--foot i:nth-child(1) { top: 0; height: 10px; width: 60%; }
.stripes--foot i:nth-child(2) { top: 16px; height: 4px; width: 38%; opacity: 0.7; }
.stripes--foot i:nth-child(3) { top: 26px; height: 8px; width: 72%; }
.stripes--foot i:nth-child(4) { top: 40px; height: 3px; width: 24%; opacity: 0.6; }
@media (prefers-reduced-motion: no-preference) {
  .stripes--hero i { animation: dash 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; transform-origin: right center; }
  .stripes--hero i:nth-child(2n) { animation-delay: 0.08s; }
  .stripes--hero i:nth-child(3n) { animation-delay: 0.16s; }
  @keyframes dash { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* ---------- Kopf ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 4.6rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--blue-dark); margin-right: auto; }
.brand img { width: 72px; height: auto; }
.brand b { display: block; font: italic 800 1.6rem/1 var(--display); }
.brand small { display: block; font-size: 0.8rem; color: var(--muted); }
.nav ul { list-style: none; display: flex; gap: 0.2rem; margin: 0; padding: 0; }
.nav a { display: block; padding: 0.5rem 0.75rem; text-decoration: none; color: var(--ink); font-weight: 600; border-radius: var(--r); }
.nav a:hover { background: var(--hall); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--red-dark); box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.nav .nav-cta { background: var(--blue-dark); color: #fff; margin-left: 0.4rem; }
.nav .nav-cta:hover { background: #183f6c; color: #fff; }
.nav .nav-cta[aria-current="page"] { color: #fff; box-shadow: none; border-radius: var(--r); }
.nav-toggle { display: none; font: 600 1rem var(--text); background: var(--blue-dark); color: #fff; border: 0; border-radius: var(--r); padding: 0.55rem 0.9rem; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; inset: 100% 0 auto; background: #fff; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 0.5rem 1.25rem 1rem; }
  .nav a { padding: 0.8rem 0.5rem; font-size: 1.1rem; }
  .nav .nav-cta { margin: 0.4rem 0 0; text-align: center; }
  .brand small { display: none; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; font: 700 1.02rem/1.1 var(--text); padding: 0.85rem 1.3rem; border-radius: var(--r); border: 2px solid transparent; text-decoration: none; cursor: pointer; }
.btn--red { background: var(--red-dark); color: #fff; }
.btn--red:hover { background: #b5361f; color: #fff; }
.btn--blue { background: var(--blue-dark); color: #fff; }
.btn--blue:hover { background: #183f6c; color: #fff; }
.btn--line { border-color: currentColor; color: var(--blue-dark); background: transparent; }
.btn--line:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn--sm { padding: 0.5rem 0.85rem; font-size: 0.92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; background: var(--white); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(3.4rem, 9vw, 7.2rem); line-height: 0.9; margin-bottom: 0.35em; color: var(--blue-dark); }
/* wie der Schriftzug im Logo: kursiv, weiss gefüllt, blaue Kontur, hellblauer Schatten */
@supports (-webkit-text-stroke: 2px black) {
  .hero h1 { color: #fff; -webkit-text-stroke: clamp(2px, 0.3vw, 3.5px) var(--blue); text-shadow: 0.045em 0.045em 0 var(--blue-light); }
}
.hero .lead { font-size: 1.2rem; max-width: 34rem; color: var(--ink); }
.hero-photo { margin: 0; position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%); }
.hero .stripes--hero { top: auto; height: 170px; bottom: 12%; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .stripes--hero { bottom: 1.5rem; height: 170px; }
  .stripes--hero i:nth-child(n) { width: calc(var(--w, 1) * 70%); }
  .hero-photo img { clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%); }
}

/* ---------- Seitenkopf ---------- */
.page-head { position: relative; overflow: hidden; background: var(--hall); padding: clamp(2.2rem, 5vw, 3.8rem) 0 clamp(1.8rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.page-head .wrap { position: relative; z-index: 1; }
.page-head p { max-width: 40rem; font-size: 1.12rem; }
.page-head--tall { padding-block: 5rem; }
.jump { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.jump a { font: italic 700 1.15rem var(--display); background: #fff; border: 1px solid var(--line); color: var(--blue-dark); padding: 0.35rem 0.8rem; border-radius: 99px; text-decoration: none; }
.jump a:hover { border-color: var(--red); color: var(--red-dark); }

/* ---------- Sektionen ---------- */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section--tint { background: var(--hall); }
.section--blue { background: var(--blue-dark); color: #fff; }
.section--blue h2 { color: #fff; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.sec-head h2 { margin: 0; }
.sec-head a { font-weight: 600; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); }
.split--top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.empty { color: var(--muted); }
.notice-band { padding: 1.5rem 0 0; }
.notice { background: var(--red-soft); border-left: 5px solid var(--red); padding: 1rem 1.2rem; border-radius: 0 var(--r) var(--r) 0; margin-bottom: 1.5rem; }
.notice p:last-child { margin: 0; }

/* ---------- Wochenplan ---------- */
.week { display: grid; grid-template-columns: repeat(var(--days, 5), 1fr); gap: 0.6rem; }
.day { background: var(--hall); border-radius: var(--r); padding: 0.8rem; min-height: 9rem; }
.day h3 { font-size: 1.35rem; margin: 0 0 0.6rem; display: flex; align-items: baseline; gap: 0.4rem; }
.day h3 em { font: 600 0.75rem var(--text); color: #fff; background: var(--red); padding: 0.1rem 0.45rem; border-radius: 99px; }
.day .short { display: none; }
.day.is-today { background: #fff; box-shadow: inset 0 0 0 2px var(--red); }
.slot { display: block; text-decoration: none; color: var(--ink); background: #fff; border-left: 4px solid var(--blue-light); border-radius: 0 var(--r) var(--r) 0; padding: 0.5rem 0.6rem; margin-bottom: 0.45rem; }
.day.is-today .slot { background: var(--hall); }
.slot:hover { border-left-color: var(--red); color: var(--ink); }
.day.is-today .slot { border-left-color: var(--red); }
.slot .time { display: block; font: italic 700 1.1rem/1.1 var(--display); color: var(--blue-dark); }
.slot .who { display: block; font-weight: 700; }
.slot .lbl { display: block; font-size: 0.88rem; color: var(--muted); }
.day .none { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 860px) {
  .week { grid-template-columns: 1fr; }
  .day { display: grid; grid-template-columns: 3.2rem 1fr; gap: 0.6rem; min-height: 0; align-items: start; }
  .day h3 { flex-direction: column; gap: 0.2rem; }
  .day .long { display: none; }
  .day .short { display: inline; }
  .slots .slot:last-child { margin-bottom: 0; }
}

/* ---------- Termine ---------- */
.terms { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.term { display: grid; grid-template-columns: 3.6rem 1fr auto; gap: 0.9rem; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.term:first-child { border-top: 1px solid var(--line); }
.cal { display: grid; place-items: center; background: var(--blue-dark); color: #fff; border-radius: var(--r); padding: 0.35rem 0; line-height: 1; }
.cal b { font: italic 800 1.6rem var(--display); }
.cal small { font-size: 0.78rem; font-weight: 600; margin-top: 0.15rem; }
.term .body strong { font-weight: 700; }
.term .body small { display: block; color: var(--muted); font-size: 0.92rem; }
.term .aud { font-size: 0.85rem; font-weight: 600; color: var(--blue-dark); background: var(--hall); border-radius: 99px; padding: 0.2rem 0.65rem; text-align: center; }
.section--tint .term .aud { background: #fff; }
.term.is-off .body strong { text-decoration: line-through; color: var(--muted); }
.pill { display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 0.1rem 0.5rem; border-radius: 99px; }
.pill--off { background: var(--red-soft); color: var(--red-dark); }
@media (max-width: 560px) {
  .term { grid-template-columns: 3.2rem 1fr; }
  .term .aud { grid-column: 2; justify-self: start; }
}
.month { font-size: 1.9rem; margin: 2rem 0 0.6rem; }
.month span { color: var(--muted); font-weight: 600; }
.filter { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.5rem; }
.filter button { font: 600 0.95rem var(--text); border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 0.45rem 0.85rem; border-radius: 99px; cursor: pointer; }
.filter button[aria-pressed="true"] { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }

/* ---------- Riegen-Bahnen ---------- */
.lanes { list-style: none; margin: 0; padding: 0; border-top: 2px solid rgba(255, 255, 255, 0.85); }
.lanes li { border-bottom: 2px solid rgba(255, 255, 255, 0.85); }
.lane { display: grid; grid-template-columns: 15rem 1fr 13rem; grid-template-areas: "aud name when" "aud sum when"; column-gap: 2rem; align-items: center; padding: 1.1rem 0.25rem; color: #fff; text-decoration: none; position: relative; }
.lane::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--red); transition: right 0.4s ease; }
.lane:hover { color: #fff; }
.lane:hover::after, .lane:focus-visible::after { right: 0; }
.lane-aud { grid-area: aud; font-size: 0.95rem; color: #d3e3f3; }
.lane-name { grid-area: name; font: italic 800 clamp(1.9rem, 4vw, 2.8rem)/1 var(--display); }
.lane-sum { grid-area: sum; color: #e6eff8; }
.lane-when { grid-area: when; text-align: right; font-weight: 600; color: #fff; }
@media (max-width: 760px) {
  .lane { grid-template-columns: 1fr; grid-template-areas: "aud" "name" "sum" "when"; row-gap: 0.25rem; }
  .lane-when { text-align: left; color: #ffb3a6; }
}

/* ---------- Riegen-Seite ---------- */
.riege { padding: 1rem 0 3rem; border-bottom: 1px solid var(--line); margin-bottom: 2.5rem; }
.riege:last-child { border: 0; }
.riege-head .aud { color: var(--red-dark); font-weight: 600; margin: 0 0 0.3rem; }
.riege-head h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.riege-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.riege-side { background: var(--hall); border-radius: var(--r); padding: 1.3rem 1.4rem; position: sticky; top: 6rem; }
.riege-side h3 { margin-top: 0.4rem; }
.riege-side h3 + * { margin-top: 0; }
.train, .contacts { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.train li { padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.train li span, .contacts li span { display: block; color: var(--muted); font-size: 0.92rem; }
.contacts li { padding: 0.45rem 0; }
.contacts a { display: block; font-size: 0.95rem; word-break: break-word; }
.side-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 0; }
.photo { margin: 0 0 1.4rem; }
.photo img { width: 100%; border-radius: var(--r); max-height: 30rem; object-fit: cover; }
.prose { max-width: 42rem; }
.prose p { margin-bottom: 1em; }
.doc-links { list-style: none; padding: 0; margin: 0 0 1rem; }
.doc-links li { margin-bottom: 0.4rem; }
.doc-links a { font-weight: 600; }
.doc-links a[href$=".pdf"]::after { content: " (PDF)"; font-weight: 400; color: var(--muted); }
.doc-links--big a { display: block; padding: 0.8rem 1rem; background: var(--hall); border-radius: var(--r); text-decoration: none; }
.doc-links--big a:hover { background: var(--red-soft); }
@media (max-width: 860px) {
  .riege-grid { grid-template-columns: 1fr; }
  .riege-side { position: static; }
}

/* ---------- News ---------- */
.teasers { display: grid; gap: 1rem; }
.teaser { display: grid; grid-template-columns: 8rem 1fr; grid-template-rows: auto auto 1fr; column-gap: 1rem; text-decoration: none; color: var(--ink); background: #fff; border-radius: var(--r); padding: 0.75rem; }
.teaser img, .teaser .noimg { grid-row: 1 / 4; width: 8rem; height: 6.5rem; object-fit: cover; border-radius: 4px; background: var(--hall); }
.teaser time { font-size: 0.85rem; color: var(--muted); }
.teaser strong { font: italic 700 1.3rem/1.1 var(--display); color: var(--blue-dark); margin: 0.1rem 0 0.25rem; }
.teaser span { font-size: 0.93rem; color: var(--muted); }
.teaser:hover strong { color: var(--red-dark); }
@media (max-width: 480px) { .teaser { grid-template-columns: 5.5rem 1fr; } .teaser img, .teaser .noimg { width: 5.5rem; height: 5.5rem; } }
.news { padding-bottom: 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.news header time { color: var(--muted); font-size: 0.95rem; }
.news .tags { margin-left: 0.6rem; font-size: 0.85rem; font-weight: 600; color: var(--red-dark); }
.news h2 { margin-top: 0.3rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 0.5rem; }
.gallery img { aspect-ratio: 1; object-fit: cover; border-radius: 4px; width: 100%; }

/* ---------- Anlässe, Verein ---------- */
.anlass { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(1.5rem, 4vw, 3rem); padding-bottom: 3rem; margin-bottom: 3rem; border-bottom: 1px solid var(--line); }
.anlass:last-child { border: 0; }
@media (max-width: 760px) { .anlass { grid-template-columns: 1fr; } }
.people { list-style: none; padding: 0; margin: 0; }
.people li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.65rem 0; border-bottom: 1px solid var(--line); }
.people span { color: var(--muted); text-align: right; }

/* ---------- Sponsoren, Instagram ---------- */
.sponsors h2 { font-size: 1.6rem; }
.sponsor-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
.sponsor-list img { max-height: 3.5rem; width: auto; filter: grayscale(1); opacity: 0.85; }
.sponsor-list a:hover img { filter: none; opacity: 1; }
.sponsor-list span { font-weight: 700; color: var(--blue-dark); }
.insta { padding-block: 2rem; border-top: 1px solid var(--line); }
.insta-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.insta p { margin: 0; font-size: 1.1rem; }

/* ---------- Formulare ---------- */
.form { display: grid; gap: 0.9rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.field input, .field select, .field textarea { width: 100%; font: 400 1rem var(--text); padding: 0.75rem 0.85rem; border: 1px solid #c2c9d8; border-radius: var(--r); background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(45, 106, 168, 0.3); border-color: var(--blue); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.9rem; color: var(--muted); margin: 0; }
.hp { position: absolute; left: -9999px; }

/* ---------- Fuss ---------- */
.site-footer { position: relative; background: var(--blue-dark); color: #dbe7f4; padding: 4.5rem 0 1.5rem; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1.3rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.foot-name { font: italic 800 2rem/1 var(--display); color: #fff; }
.cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; } }
.legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 2.5rem; padding-top: 1.2rem; font-size: 0.9rem; }
@media (max-width: 700px) { .stripes--head { display: none; } }
.news .photo img, .anlass .photo img { width: auto; max-width: 100%; }
