/* TSV Feichten – öffentliche Website */
:root {
  --red: #c8102e;
  --red-dark: #8e0c21;
  --red-soft: #fbeaec;
  --blue: #1f6fc0;
  --blue-soft: #e9f2fb;
  --ink: #1b1c1f;
  --ink-2: #4a4d55;
  --muted: #6f737c;
  --line: #e5e2dd;
  --bg: #ffffff;
  --bg-alt: #f6f4f0;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 20px rgba(0,0,0,.06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Arial Black", "Segoe UI Black", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
h3 { font-size: 1.15rem; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.mt { margin-top: 2rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 10px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Topbar & Header */
.topbar { background: var(--ink); color: #cfd2d8; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding: 6px 0; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.15rem; }
.brand-text span { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.logo-img { width: 58px; height: 58px; object-fit: contain; }
.logo-badge { width: 58px; height: 58px; border-radius: 50%; border: 3px solid var(--red); background: #fff;
  display: grid; place-content: center; text-align: center; line-height: .9; color: var(--red); flex: none;
  box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px var(--blue-soft); }
.logo-badge span { font: 900 17px/1 var(--font-head); letter-spacing: .02em; }
.logo-badge em { font: italic 700 10px/1.1 Georgia, serif; }
.logo-badge small { font-size: 7px; font-weight: 700; }
.rauten { height: 7px; background:
  linear-gradient(135deg, #fff 25%, transparent 25%) -7px 0 / 14px 14px,
  linear-gradient(225deg, #fff 25%, transparent 25%) -7px 0 / 14px 14px,
  linear-gradient(315deg, #fff 25%, transparent 25%) 0 0 / 14px 14px,
  linear-gradient(45deg, #fff 25%, transparent 25%) 0 0 / 14px 14px, var(--blue); }

.mainnav > ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.mainnav a { display: block; padding: 10px 13px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15.5px; }
.mainnav a:hover, .mainnav a.is-active { color: var(--red); background: var(--red-soft); }
.has-sub { position: relative; }
.has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); opacity: .6; }
.sub { position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease; }
.sub ul { list-style: none; margin: 0; padding: 0; }
.sub a { font-weight: 500; padding: 8px 12px; }
.sub.mega { width: 520px; }
.sub.mega ul { display: grid; grid-template-columns: 1fr 1fr; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.nav-toggle { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .4em; padding: 12px 22px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 700; text-decoration: none; border: 2px solid var(--red); cursor: pointer; font-size: 16px; transition: .15s; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-light { background: #fff; color: var(--red); border-color: #fff; }
.btn-light:hover { background: var(--red-soft); color: var(--red-dark); border-color: var(--red-soft); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-outline { background: transparent; color: var(--red); }
.btn-outline:hover { color: #fff; }

/* Hero */
.hero { position: relative; color: #fff; background: var(--red);
  background-image: linear-gradient(120deg, rgba(142,12,33,.0) 40%, rgba(142,12,33,.55)),
    repeating-linear-gradient(60deg, rgba(255,255,255,.045) 0 2px, transparent 2px 46px),
    repeating-linear-gradient(-60deg, rgba(255,255,255,.045) 0 2px, transparent 2px 46px); overflow: hidden; }
.hero.has-img { background-image: linear-gradient(100deg, rgba(142,12,33,.92) 0%, rgba(200,16,46,.78) 45%, rgba(0,0,0,.25)), var(--hero); background-size: cover; background-position: center; }
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; padding: clamp(3rem, 7vw, 5.5rem) 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 700; opacity: .85; margin: 0 0 .6rem; }
.hero h1 { font-family: var(--font-head); font-size: clamp(2.2rem, 5.2vw, 3.7rem); line-height: 1.04; letter-spacing: -.02em; margin-bottom: .4em; }
.lead { font-size: 1.15rem; max-width: 40em; }
.hero .lead { opacity: .95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.today-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 22px 24px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.today-card h2 { font-size: 1.2rem; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-bottom: 2px solid var(--red-soft); padding-bottom: 10px; }
.today-card h2 small { font-size: .85rem; color: var(--muted); font-weight: 500; }
.today-card ul { list-style: none; margin: 0 0 12px; padding: 0; max-height: 280px; overflow: auto; }
.today-card li { display: grid; grid-template-columns: 54px 1fr; column-gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.today-card li small { grid-column: 2; color: var(--muted); font-size: 13px; }
.today-card .time { font-weight: 800; color: var(--red); font-variant-numeric: tabular-nums; }
.today-card a { color: var(--ink); font-weight: 600; text-decoration: none; }
.today-card a:hover { color: var(--red); }
.today-card .link { color: var(--red); font-weight: 700; font-size: 15px; }

/* Sections */
.section { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section.alt { background: var(--bg-alt); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.4rem; }
.section-head h2 { margin: 0; position: relative; padding-left: 16px; }
.section-head h2::before { content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 5px; border-radius: 3px; background: var(--red); }
.section-head a { font-weight: 700; text-decoration: none; white-space: nowrap; }
.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3rem; }

/* Abteilungen */
.dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.dept-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; color: var(--ink); transition: .18s; position: relative; overflow: hidden; }
.dept-card:hover { border-color: var(--red); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.dept-card img { width: calc(100% + 36px); margin: -18px -18px 8px; aspect-ratio: 16/9; object-fit: cover; }
.mono { width: 52px; height: 52px; border-radius: 12px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; font: 900 20px/1 var(--font-head); margin-bottom: 6px; }
.dept-card:nth-child(3n+2) .mono { background: var(--blue-soft); color: var(--blue); }
.dept-card:nth-child(3n) .mono { background: #f1efe9; color: var(--ink-2); }
.dept-title { font-weight: 800; font-size: 1.08rem; }
.dept-teaser { color: var(--muted); font-size: 14.5px; line-height: 1.45; }

.dept-list { display: grid; gap: 14px; }
.dept-row { display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.dept-row-img img { width: 120px; height: 90px; object-fit: cover; border-radius: 10px; }
.dept-row-img .mono { width: 90px; height: 90px; font-size: 32px; margin: 0 auto; }
.dept-row h2 { margin: 0 0 4px; font-size: 1.3rem; }
.dept-row h2 a { color: var(--ink); text-decoration: none; }
.dept-row h2 a:hover { color: var(--red); }
.dept-row p { margin: 0 0 8px; color: var(--ink-2); }
.chips, .filter { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: 5px 13px; border-radius: 999px; background: var(--bg-alt); color: var(--ink-2); font-size: 14px; text-decoration: none; border: 1px solid var(--line); cursor: pointer; font-family: inherit; }
.chip:hover, .chip.is-on { background: var(--red); border-color: var(--red); color: #fff; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.news-grid.compact { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.news-card a { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); border: 1px solid var(--line); transition: .18s; }
.news-card a:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.news-img { aspect-ratio: 16/10; background: var(--red); overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; }
.news-ph { display: grid; place-items: center; height: 100%; color: rgba(255,255,255,.9); font: 900 44px var(--font-head);
  background: repeating-linear-gradient(60deg, rgba(255,255,255,.07) 0 2px, transparent 2px 26px), linear-gradient(135deg, var(--red), var(--red-dark)); }
.news-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.news-body h3 { font-size: 1.06rem; margin: 0; }
.news-body p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.meta { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.tag { background: var(--blue-soft); color: var(--blue); padding: 2px 9px; border-radius: 999px; font-weight: 700; font-size: 12px; }
.more { margin-top: auto; padding-top: 6px; color: var(--red); font-weight: 700; font-size: 14px; }

/* Termine */
.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.event-list li { display: grid; grid-template-columns: 58px 1fr; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.ev-date { background: var(--red); color: #fff; border-radius: 10px; text-align: center; padding: 6px 0; line-height: 1.1; align-self: start; }
.ev-date b { display: block; font: 900 22px var(--font-head); }
.ev-date span { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.ev-info { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.ev-info span { color: var(--muted); font-size: 14px; }
.ev-info p { margin: 4px 0 0; color: var(--ink-2); }
.ev-page { font-size: 13px; font-weight: 700; text-decoration: none; }
h2.month { margin: 2rem 0 .8rem; font-size: 1.2rem; color: var(--red); }
h2.month:first-child { margin-top: 0; }

/* CTA */
.cta { display: flex; justify-content: space-between; align-items: center; gap: 2rem; background: var(--ink); color: #fff; border-radius: 20px; padding: clamp(1.6rem, 4vw, 2.6rem) clamp(1.6rem, 4vw, 3rem);
  background-image: radial-gradient(circle at 100% 0, rgba(200,16,46,.55), transparent 55%); }
.cta h2 { margin: 0 0 .3rem; }
.cta p { margin: 0; color: #cfd2d8; }

/* Unterseiten */
.page-head { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 2.4rem 0 2rem; position: relative; }
.page-head.with-img { color: #fff; background: linear-gradient(100deg, rgba(20,20,22,.82), rgba(20,20,22,.35)), var(--hero) center/cover; padding: 5rem 0 2.4rem; border: 0; }
.page-head.with-img a, .page-head.with-img .crumbs { color: #fff; }
.page-head h1 { margin: .2em 0 .25em; }
.page-head p { margin: 0; color: var(--ink-2); max-width: 46em; font-size: 1.08rem; }
.page-head.with-img p { color: #eee; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--red); text-decoration: underline; }
.edit-link { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 700; background: #fff; border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; text-decoration: none; color: var(--red) !important; }
.badge-hidden { display: inline-block; margin-top: 10px !important; background: #fff3cd; color: #7a5a00 !important; padding: 4px 10px; border-radius: 6px; font-size: 14px !important; }
.meta-line { color: var(--muted) !important; }
.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 3rem; align-items: start; }
.layout-single .content { max-width: 860px; }
.content > :first-child { margin-top: 0; }
.content h2 { margin-top: 1.6em; }
.content h3 { margin-top: 1.4em; color: var(--red-dark); }
.content ul, .content ol { padding-left: 1.3em; }
.content li { margin: .25em 0; }
.content img { border-radius: 10px; margin: 1em 0; }
.content blockquote { margin: 1.2em 0; padding: .6em 1.2em; border-left: 4px solid var(--red); background: var(--bg-alt); border-radius: 0 10px 10px 0; }
.content table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: 15.5px; display: block; overflow-x: auto; }
.content th, .content td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.content thead th { background: var(--ink); color: #fff; font-weight: 600; }
.content thead th:first-child { border-radius: 8px 0 0 0; } .content thead th:last-child { border-radius: 0 8px 0 0; }
.content tbody tr:nth-child(even) { background: var(--bg-alt); }
.content .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 1.2em 0; }
.content .gallery img { margin: 0; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.content .box { background: var(--bg-alt); border-radius: 12px; padding: 1em 1.2em; margin: 1.2em 0; }
.content .box-info { background: var(--blue-soft); border-left: 4px solid var(--blue); }
.content .box p:last-child { margin-bottom: 0; }
.lead-img { width: 100%; border-radius: var(--radius); margin: 0 0 1.5rem !important; }
.sub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 1.8rem 0; }
.sub-card { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 10px; text-decoration: none; color: var(--ink); transition: .15s; }
.sub-card:hover { box-shadow: var(--shadow); color: var(--ink); }
.sub-card span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.sidebar { display: grid; gap: 18px; position: sticky; top: 100px; }
.side-box { background: var(--bg-alt); border-radius: var(--radius); padding: 20px 22px; }
.side-box h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--red); margin-bottom: .8em; }
.side-box p { margin: 0; font-size: 15.5px; }
.side-box .event-list li { grid-template-columns: 48px 1fr; padding: 8px; }
.side-box .ev-date b { font-size: 18px; }
table.training { width: 100%; border-collapse: collapse; font-size: 15px; }
table.training th { text-align: left; vertical-align: top; width: 42px; padding: 8px 0; color: var(--red); }
table.training td { padding: 8px 0; border-bottom: 1px solid var(--line); }
table.training tr:last-child td { border: 0; }
table.training .muted, table.training .loc { font-size: 13.5px; color: var(--muted); }

/* Wochenplan */
.week { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 1.4rem; }
.day { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: #fff; }
.day.is-today { border: 2px solid var(--red); }
.day h2 { font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.day h2 span { background: var(--red); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.day ul { list-style: none; margin: 0; padding: 0; }
.day li { display: grid; grid-template-columns: 96px 1fr; column-gap: 10px; padding: 8px 0; border-top: 1px dashed var(--line); font-size: 15px; }
.day li small { grid-column: 2; color: var(--muted); font-size: 13px; }
.day li .loc::before { content: "📍 "; }
.day .time { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 14px; }
.day a { font-weight: 700; text-decoration: none; color: var(--ink); }
.day a:hover { color: var(--red); }
.filter select { font: inherit; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); }
.filter { margin-bottom: 1.2rem; }
.pager { display: flex; gap: 12px; justify-content: center; margin-top: 2rem; }

/* Footer */
.site-footer { background: #141518; color: #b9bdc6; margin-top: 2rem; font-size: 15px; }
.site-footer a { color: #e7e9ed; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1.6fr 1fr; gap: 2.5rem; padding: 3rem 0 2rem; }
.footer-grid h4 { color: #fff; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-cols { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; color: #fff; }
.footer-grid p { margin: 0 0 .5rem; }
.footer-bottom { border-top: 1px solid #2a2c31; font-size: 14px; }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 1rem; padding: 16px 0; flex-wrap: wrap; }
.footer-bottom a { margin-left: 18px; }

/* Responsive */
@media (max-width: 1060px) {
  .nav-toggle { display: flex; flex-direction: column; gap: 4px; align-items: center; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
  .nav-toggle span { width: 22px; height: 2px; background: var(--ink); display: block; transition: .2s; }
  .nav-toggle b { font-size: 11px; margin-top: 2px; }
  .mainnav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - 110px); overflow: auto; }
  .nav-open .mainnav { display: block; }
  .mainnav > ul { flex-direction: column; padding: 10px 20px 20px; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 14px; min-width: 0; }
  .sub.mega { width: auto; }
  .has-sub > a::after { display: none; }
  .hero-inner, .two-col, .layout-side { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar span { display: none; }
  .topbar .wrap { justify-content: flex-end; }
  .brand-text span { display: none; }
  .brand-text strong { font-size: 1rem; }
  .logo-badge, .logo-img { width: 48px; height: 48px; }
  .dept-row { grid-template-columns: 64px 1fr; gap: 14px; }
  .dept-row-img .mono { width: 60px; height: 60px; font-size: 22px; }
  .dept-row-img img { width: 64px; height: 64px; }
  .cta { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .sub.mega ul { grid-template-columns: 1fr; }
  .day li { grid-template-columns: 96px 1fr; }
}
@media print {
  .topbar, .site-header, .site-footer, .edit-link, .sidebar .side-box:last-child { display: none; }
  .layout-side { grid-template-columns: 1fr; }
}

.preview-bar { background: #ffd54a; color: #222; text-align: center; font: 600 14px system-ui, sans-serif; padding: 8px; position: relative; z-index: 60; }
.preview-bar a { color: #222; margin: 0 4px; }

/* Formulare */
.tsv-form { background: var(--bg-alt); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); margin: 2.4rem 0; }
.tsv-form h2 { margin-top: 0 !important; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-top: 1rem; }
.ff { display: flex; flex-direction: column; gap: 5px; }
.ff.wide { grid-column: 1 / -1; }
.ff > label:not(.opt), .ff legend { font-weight: 700; font-size: 15px; }
.ff input:not([type=checkbox]):not([type=radio]), .ff select, .ff textarea { font: inherit; padding: 11px 13px; border: 1px solid #cfcbc3; border-radius: 8px; background: #fff; width: 100%; color: var(--ink); }
.ff input:focus, .ff select:focus, .ff textarea:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red); }
.ff fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ff legend { margin-bottom: 6px; width: 100%; }
.ff .opt { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.ff .opt input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--red); flex: none; }
.ff .consent { font-size: 14.5px; color: var(--ink-2); }
.ff-info { margin: 0; color: var(--ink-2); }
.ff .req { color: var(--red); }
.ff.has-error input, .ff.has-error select, .ff.has-error textarea { border-color: #c00; background: #fff5f5; }
.ff .err { color: #c00; font-weight: 600; }
.form-errors { background: #fdecee; color: #a0001c; padding: 12px 16px; border-radius: 8px; font-weight: 600; margin-top: 1rem; }
.form-success { background: #e7f5ec; color: #135c33; padding: 18px 20px; border-radius: 10px; font-weight: 600; font-size: 1.05rem; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.mainnav a, .brand-text strong { white-space: nowrap; }
.pdf-dl { margin: 0 0 1.2rem; }
.logo-img { background: transparent; }

/* Details zu Trainingszeiten */
.filter-label { font-weight: 700; font-size: 14px; color: var(--muted); align-self: center; margin-right: 2px; min-width: 34px; }
.filter + .filter { margin-top: -0.6rem; }
.slot-details { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.slot-details .tgt { display: inline-block; align-self: flex-start; font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--blue-soft, #e9f2fb); color: var(--blue, #1f6fc0); }
.slot-details .trainer { color: var(--ink-2); font-size: 13.5px; }
.slot-details .trainer::before { content: "👤 "; }
.slot-details .trainer a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); }
.slot-details .info { color: var(--muted); font-size: 13px; line-height: 1.4; }
.slot-details .info::before { content: "ℹ "; }
table.training .slot-name { color: var(--ink-2); font-size: 14px; }
.day .slot-name { color: var(--ink-2) !important; }
.side-box .slot-details .tgt { background: rgba(255,255,255,.9); }

/* Fotos: Größe & Ausrichtung (im Editor einstellbar) */
.content img.img-s { width: 33%; }
.content img.img-m { width: 50%; }
.content img.img-l { width: 75%; }
.content img.img-full { width: 100%; }
.content img.img-center { margin-left: auto; margin-right: auto; }
.content img.img-left { float: left; margin: .3em 1.4em 1em 0; }
.content img.img-right { float: right; margin: .3em 0 1em 1.4em; }
.content::after { content: ""; display: table; clear: both; }
.content h2, .content h3, .content .gallery, .content table, .content .tsv-form, .content .sub-grid { clear: both; }
.content .gallery.gallery-s { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.content .gallery.gallery-l { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
@media (max-width: 640px) {
  .content img.img-left, .content img.img-right { float: none; margin: 1em 0; }
  .content img.img-s { width: 60%; }
  .content img.img-m, .content img.img-l { width: 100%; }
}

/* Lightbox */
img.zoomable { cursor: zoom-in; transition: filter .15s; }
img.zoomable:hover { filter: brightness(1.06); }
.lb { position: fixed; inset: 0; z-index: 1000; background: rgba(10,10,12,.93); display: none; align-items: center; justify-content: center; padding: 56px 70px; }
.lb.is-open { display: flex; animation: lbIn .18s ease; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; max-width: 100%; max-height: 100%; width: 100%; height: 100%; }
.lb-img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.5); cursor: default; }
.lb-cap { color: #e6e6e6; margin-top: 12px; text-align: center; font-size: 15px; max-width: 800px; }
.lb button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; cursor: pointer; border-radius: 999px; display: grid; place-items: center; transition: background .15s; font-family: system-ui, sans-serif; }
.lb button:hover, .lb button:focus-visible { background: rgba(255,255,255,.25); }
.lb-close { top: 14px; right: 16px; width: 44px; height: 44px; font-size: 20px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 34px; line-height: 1; padding-bottom: 4px; }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-count { position: absolute; top: 24px; left: 22px; color: #bbb; font: 14px system-ui, sans-serif; }
@media (max-width: 640px) { .lb { padding: 50px 8px; } .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; } .lb-prev { left: calc(50% - 64px); } .lb-next { right: calc(50% - 64px); } }
.mt-s { margin-top: .8em !important; }
.content table.committee td:first-child a { font-weight: 700; }

/* Download-Karten */
.content .dl-card { display: flex; align-items: center; gap: 16px; max-width: 620px; margin: .8em 0; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: .15s; }
.content .dl-card:hover { border-color: var(--red); box-shadow: 0 8px 22px rgba(0,0,0,.1); transform: translateY(-1px); color: var(--ink); }
.dl-ico { flex: none; width: 46px; height: 56px; display: grid; place-items: center; background: var(--red); color: #fff; font: 800 12px/1 var(--font); letter-spacing: .04em; border-radius: 4px; clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%); }
.dl-txt { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.dl-txt strong { font-size: 1.08rem; line-height: 1.25; }
.dl-txt small { color: var(--muted); font-size: 13.5px; }
.dl-btn { flex: none; background: var(--red); color: #fff; font-weight: 700; font-size: 14.5px; padding: 9px 16px; border-radius: 999px; white-space: nowrap; }
.dl-card:hover .dl-btn { background: var(--red-dark); }
.content ol.steps { list-style: none; counter-reset: st; padding: 0; margin: 1.2em 0 1.6em; display: grid; gap: 12px; }
.content ol.steps li { counter-increment: st; position: relative; padding: 4px 0 4px 52px; margin: 0; min-height: 38px; }
.content ol.steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; }
@media (max-width: 640px) { .dl-btn { display: none; } }
.content table.committee tr.sub-row td:first-child a { font-weight: 500; }
.content table.committee .sub-mark { color: var(--muted); }
.content table.committee tr.main-row td { border-top: 2px solid var(--line); }
.dl-desc { color: var(--ink-2); font-size: 14.5px; line-height: 1.4; }
.content .dl-card.dl-doc { border-left-color: #2b5797; } .dl-doc .dl-ico { background: #2b5797; }
.content .dl-card.dl-xls { border-left-color: #1e7145; } .dl-xls .dl-ico { background: #1e7145; }
.content .dl-card.dl-doc:hover { border-color: #2b5797; } .content .dl-card.dl-xls:hover { border-color: #1e7145; }
/* Sponsoren */
.content .sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; margin: 1.2em 0 1.6em; }
.content .sponsor { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: .15s; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.content a.sponsor:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.1); border-color: var(--red); }
.content .sp-logo { height: 110px; display: flex; align-items: center; justify-content: center; padding: 18px 22px; }
.content .sp-logo img { max-width: 100%; max-height: 74px; width: auto; height: auto; object-fit: contain; margin: 0; border-radius: 0; box-shadow: none; }
.content .sp-none { background: linear-gradient(135deg, var(--ink), #2c2f36); }
.content .sp-none b { font-family: var(--font-head); font-size: 38px; letter-spacing: .04em; color: #fff; }
.content .sp-name { padding: 10px 14px; border-top: 1px solid var(--line); font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.content a.sponsor:hover .sp-name { color: var(--red); }
/* Tabellen aus dem Editor – automatisch ausgerichtet */
.content .table-wrap { clear: both; overflow-x: auto; margin: 1.2em 0 1.8em; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.content .table-wrap.tbl-narrow { width: fit-content; max-width: 100%; }
.content .table-wrap table { display: table; width: 100%; margin: 0; overflow: visible; }
.content .table-wrap td, .content .table-wrap th { padding: 9px 18px; line-height: 1.45; }
.content .table-wrap thead th { border-radius: 0 !important; }
.content .table-wrap tbody tr:nth-child(even) td { background: rgba(0,0,0,.025); }
.content .table-wrap tbody tr:hover td { background: var(--red-soft); }
.content .table-wrap tbody tr:last-child td { border-bottom: 0; }
.content .table-wrap td img { max-height: 60px; width: auto; margin: 0; }
.content .tbl-keycol tbody td:first-child { white-space: nowrap; font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; padding-right: 28px; }
@media (max-width: 600px) { .content .table-wrap td, .content .table-wrap th { padding: 9px 12px; } .content .tbl-keycol tbody td:first-child { padding-right: 14px; } }
.content .tbl-keycol td:not(:first-child) { font-variant-numeric: tabular-nums; }
.content .table-wrap thead th { white-space: nowrap; }

.content .table-wrap .num { text-align: right; font-variant-numeric: tabular-nums; }
.content .table-wrap.tbl-narrow table { width: auto; min-width: min(520px, calc(100vw - 48px)); }
.content .table-wrap.tbl-narrow td:last-child, .content .table-wrap.tbl-narrow th:last-child { padding-right: 28px; }
.content .tbl-bars td.bar-cell { width: min(440px, 52vw); }
.content .tbl-bars .bar-row { display: flex; align-items: center; gap: 14px; }
.content .tbl-bars .bar { flex: 1; height: 12px; background: rgba(0,0,0,.06); border-radius: 99px; overflow: hidden; }
.content .tbl-bars .bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--red-dark), var(--red)); border-radius: 99px; }
.content .tbl-bars .bar-num { min-width: 3em; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
/* Inhaltsverzeichnis */
.content .toc { background: var(--bg-alt); border-left: 5px solid var(--red); border-radius: var(--radius); padding: 18px 24px 14px; margin: 1.2em 0 2em; }
.content .toc > strong { display: block; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; font-size: 15px; margin-bottom: 8px; }
.content .toc ol { margin: 0; padding-left: 1.4em; columns: 2 280px; column-gap: 32px; }
.content .toc li { margin: 0 0 6px; break-inside: avoid; font-size: 15px; }
.content .toc a { color: var(--ink); text-decoration: none; }
.content .toc a:hover { color: var(--red); text-decoration: underline; }
.content h2[id] { scroll-margin-top: 110px; }
/* Rechtstexte (Datenschutz, Impressum) */
.content .legal-meta { color: var(--muted); font-size: 14px; }
.content address { font-style: normal; line-height: 1.6; }
/* Ansprechpartner – einheitlich „Leitung: / Kontakt: / Weiterer Ansprechpartner:“ */
.people { display: grid; gap: 12px; }
.person { line-height: 1.5; }
.person + .person { padding-top: 12px; border-top: 1px solid rgba(127,127,127,.25); }
.person .pl { font-weight: 700; }
.person a { white-space: nowrap; }
.people-notes { margin: 14px 0 0; font-size: .92em; opacity: .85; }
table.committee .people { gap: 6px; }
table.committee .person + .person { padding-top: 6px; }
.ev-date small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; opacity: .85; margin-bottom: -2px; }
.period { display: inline-block; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 4px; margin-right: 6px; }
