/* Forster TV – Stylesheet (Farben aus dem Vereinslogo: Blau und Rot)
   Keine externen Schriften und Dateien: schnell und ohne Drittanbieter-Übermittlung. */

:root {
  --blue: #2F4093;      /* Logo: Blau (Flächen, Überschriften, Links) */
  --blue-d: #22306F;    /* dunkleres Blau für Fußzeile und Hover */
  --red: #D50D1B;       /* Logo: Rot (Akzent, Buttons, Markierungen) */
  --red-d: #A80A15;
  --paper: #F4F6FB;
  --tint: #E7EBF5;
  --ink: #141A33;
  --muted: #4D5673;
  --line: #CFD6E6;
  --white: #FFFFFF;
  --heading: "Times New Roman", Times, "Liberation Serif", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  --gut: clamp(20px, 5vw, 48px);
}
body.ftv-h-slab { --heading: Rockwell, "Roboto Slab", "Sitka Text", Cambria, "Bitstream Charter", Georgia, serif; }
body.ftv-h-sans { --heading: var(--sans); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
:root:has(body.admin-bar) { scroll-padding-top: 56px; }

body {
  margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6;
  color: var(--ink); background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--heading); line-height: 1.12; margin: 0; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px #fff; }
.hero :focus-visible, .page-head :focus-visible, .site-footer :focus-visible { outline-color: #fff; box-shadow: none; }

.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.muted { color: var(--muted); font-size: 0.95rem; }

/* ---------- Kopfzeile ---------- */
.site-header { background: var(--white); border-bottom: 4px solid var(--red); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--heading); font-size: 1.6rem; color: var(--blue); }
.brand-text small { font-size: 0.8rem; color: var(--muted); }
.brand-img { height: 76px; width: auto; }

.nav { display: flex; align-items: center; gap: 8px 20px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 2px; }
.nav li a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-weight: 600; color: var(--ink); }
.nav li a:hover, .nav li.current-menu-item > a { box-shadow: inset 0 -3px 0 var(--red); }
.nav-toggle { display: none; min-height: 44px; padding: 0 18px; background: var(--blue); color: #fff; border: 0; border-radius: 2px; font: inherit; font-weight: 700; cursor: pointer; }

@media (max-width: 900px) {
  .brand-img { height: 60px; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 20; flex-direction: column; align-items: stretch; background: var(--white); border-bottom: 1px solid var(--line); padding: 12px var(--gut) 20px; }
  .js .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; }
  .site-header { position: relative; }
  .no-js .bar, .bar { flex-wrap: wrap; }
}

/* ---------- Buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; font-weight: 700; text-decoration: none; border: 2px solid transparent; border-radius: 2px; cursor: pointer; font-family: inherit; font-size: 1rem; }
.btn-small { min-height: 44px; padding: 0 18px; width: 100%; }
/* „btn-sun“ ist der rote Akzent aus dem Logo */
.btn-sun { background: var(--red); color: #fff; }
.btn-sun:hover { background: var(--red-d); color: #fff; }
.btn-line { border-color: #fff; color: #fff; }
.hero a.btn-line:hover { background: #fff; color: var(--blue); }
.btn-dark { background: var(--blue); color: #fff; }
a.btn-dark:hover { background: var(--blue-d); color: #fff; }

/* ---------- Hero und Unterseiten-Kopf (Blau mit Linienmuster) ---------- */
.hero, .page-head {
  background-color: var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201200%20720'%20preserveAspectRatio='xMidYMid%20slice'%3E%3Cg%20fill='none'%20stroke='%23fff'%20stroke-opacity='.14'%20stroke-width='5'%3E%3Crect%20x='60'%20y='60'%20width='1080'%20height='600'/%3E%3Cpath%20d='M600%2060V660'/%3E%3Ccircle%20cx='600'%20cy='360'%20r='112'/%3E%3Crect%20x='60'%20y='215'%20width='176'%20height='290'/%3E%3Crect%20x='964'%20y='215'%20width='176'%20height='290'/%3E%3Cpath%20d='M60%20130H1140M60%20590H1140'%20stroke-opacity='.08'/%3E%3C/g%3E%3C/svg%3E");
  background-position: center; background-size: cover; background-repeat: no-repeat;
  color: #fff;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding-block: clamp(40px, 7vw, 88px); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero-badge { width: clamp(136px, 17vw, 176px); aspect-ratio: 1; border-radius: 50%; background: #fff; box-shadow: 0 12px 32px rgba(8, 14, 52, 0.4); display: flex; align-items: center; justify-content: center; padding: 14px; margin-bottom: 28px; }
.hero-logo { width: 100%; height: auto; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 20px; }
.hero .lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 34em; color: #E3E8F5; margin-bottom: 28px; }
.hero a { color: #fff; }

/* Wochenplan */
.plan { background: var(--paper); color: var(--ink); border-top: 6px solid var(--red); padding: clamp(20px, 3vw, 32px); }
.plan h2 { font-size: 1.9rem; margin-bottom: 4px; }
.plan-lead { color: var(--muted); margin-bottom: 16px; }
.plan-days { list-style: none; margin: 0; padding: 0; }
.plan-day { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 4px 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.plan-dayname { font-size: 1.25rem; }
.plan-day.is-today .plan-dayname::after { content: "heute"; margin-left: 8px; padding: 1px 8px; background: var(--red); color: #fff; font-family: var(--sans); font-size: 0.8rem; font-weight: 700; vertical-align: middle; }
.plan-entries { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan-time { font-weight: 700; }
.plan-title { font-weight: 600; color: var(--blue); }
.plan-place { display: block; color: var(--muted); font-size: 0.95rem; }
.plan-notes { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.plan-notes li + li { margin-top: 4px; }
.plan a { color: var(--blue); }
.plan :focus-visible { outline-color: var(--ink); }
@media (max-width: 520px) { .plan-day { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Abschnitte ---------- */
.section { padding-block: clamp(48px, 8vw, 96px); }
.section--tint { background: var(--tint); }
.section h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 700; color: var(--blue); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(24px, 5vw, 72px); }
@media (max-width: 820px) { .split { grid-template-columns: minmax(0, 1fr); } }
.prose { max-width: 62ch; }
.prose p:last-child { margin-bottom: 0; }
.join { background: var(--paper); border-bottom: 1px solid var(--line); }
.join .btns { margin-top: 20px; }

/* Abteilungen als Karten mit Foto */
.abt-list { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.abt { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-top: 6px solid var(--blue); box-shadow: 0 2px 12px rgba(20, 26, 51, 0.06); }
.abt-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.abt-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.abt-title { font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
.abt-title a { color: var(--ink); text-decoration: none; }
.abt-title a:hover { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px; }
.abt-sub { color: var(--muted); margin: 0; }
.abt-body p { margin: 0; }
.tag { display: inline-block; margin: 0; padding: 2px 10px; background: var(--red); color: #fff; font-size: 0.85rem; font-weight: 700; border-radius: 2px; align-self: flex-start; }
.abt-when { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.abt-place { display: block; color: var(--muted); font-size: 0.95rem; }
.abt-more { margin: auto 0 0; padding-top: 6px; }

/* Eigene Seite je Abteilung */
.page-head--dept .wrap { padding-block: clamp(32px, 5vw, 56px); }
.dept-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 820px) { .dept-head { grid-template-columns: minmax(0, 1fr); } }
.dept-photo { margin: 0; }
.dept-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 6px solid rgba(255, 255, 255, 0.92); border-radius: 4px; box-shadow: 0 12px 30px rgba(8, 14, 52, 0.35); }
.page-head--dept .tag { margin-top: 14px; }

/* Aktuelles */
.news { list-style: none; margin: 28px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px 36px; }
.news--list { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.news-date { display: block; color: var(--muted); font-size: 0.9rem; margin-bottom: 4px; }
.news-item h3, .news-item h2 { font-size: 1.5rem; margin-bottom: 8px; }
.news-item a { color: var(--ink); }

/* Zeitstrahl: echte Abfolge, daher mit Jahreszahlen */
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 4px solid var(--red); display: grid; gap: 18px; align-content: start; }
.timeline li { display: grid; grid-template-columns: 4.5em minmax(0, 1fr); gap: 4px 16px; }
.timeline-year { font-family: var(--heading); font-size: 1.5rem; font-weight: 700; color: var(--blue); line-height: 1.2; }
.timeline-text { padding-top: 3px; }

/* ---------- Unterseiten ---------- */
.page-head .wrap { padding-block: clamp(32px, 5vw, 56px); }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.page-sub { margin: 10px 0 0; color: #E3E8F5; font-size: 1.1rem; }
.crumbs { font-size: 0.95rem; margin-bottom: 14px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.6; }
.crumbs a { color: #fff; }

.detail { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .detail { grid-template-columns: minmax(0, 1fr); } }
.facts { margin: 28px 0 0; }
.facts div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 4px 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.box { background: var(--paper); border-top: 4px solid var(--blue); padding: 20px 22px; margin-bottom: 20px; }
.box h2 { font-size: 1.4rem; margin-bottom: 12px; color: var(--blue); }
.box p { margin-bottom: 8px; }
.box address { font-style: normal; margin-bottom: 8px; }

.kontakt-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .kontakt-grid { grid-template-columns: minmax(0, 1fr); } }

.legal { max-width: 72ch; }
.legal h2 { font-size: 1.6rem; margin: 40px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal ul, .legal ol { margin: 0 0 1em; }

.group-title { font-size: 1.7rem; margin: 40px 0 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px 36px; }
.person { border-top: 4px solid var(--blue); padding-top: 12px; }
.person h3 { font-size: 1.35rem; }
.person .role { color: var(--muted); margin: 2px 0 8px; }
.person p { margin-bottom: 4px; }

.pagination, .navigation.pagination { margin-top: 32px; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 2px solid var(--blue); text-decoration: none; font-weight: 600; }
.page-numbers.current { background: var(--blue); color: #fff; }

/* ---------- Fußzeile ---------- */
.site-footer { background: var(--blue-d); color: #D9E0F2; padding-block: 48px 24px; border-top: 6px solid var(--red); }
.site-footer a { color: #fff; }
.foot-logo { width: 96px; height: auto; background: #fff; border-radius: 50%; padding: 6px; margin-bottom: 14px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px 40px; }
.foot-title { font-size: 1.3rem; color: #fff; margin-bottom: 10px; }
.site-footer address { font-style: normal; }
.foot-reg { margin-top: 8px; font-size: 0.95rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; }
.foot-copy { margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.2); font-size: 0.9rem; }

/* WordPress-Kernklassen */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-inline: auto; display: block; }
.wp-caption-text, figcaption { font-size: 0.9rem; color: var(--muted); }
