/* ==================================================================
   HUKV.CSS – Design der Website (1:1 aus Sebastians Datei hukv-aktuell-v2.html)
   ------------------------------------------------------------------
   Dieser Teil ist UNVERÄNDERT aus dem <style>-Block der HTML-Datei übernommen.
   Farben/Rundungen zentral in :root ändern. Zusätzliche Regeln für die
   Unterseiten (News-Artikel, Galerien, Termine …) stehen in unterseiten.css.
   ================================================================== */
/* ==================================================================
   CLEAN-VARIANTE: ruhig, hell, viel Weißraum, runde Ecken überall.
   Einheitliche Rundungen: --r (Karten/Bilder), --r-sm (Badges), Buttons = Pille.
   ================================================================== */
:root {
  --red: #E02030;
  --red-dark: #c01828;
  --blue: #7080C0;
  --blue-dark: #5a6aad;
  --blue-tint: #f4f5fa;   /* sehr helle Fläche */
  --ink: #1f2027;         /* Textfarbe */
  --gray: #6b6d78;
  --line: #ebecf0;
  --white: #fff;
  --wrap: 1360px;
  --pad: clamp(1.1rem, 3vw, 2.5rem);
  --r: 16px;              /* Radius Karten / Bilder */
  --r-sm: 999px;          /* Badges / Buttons (Pille) */
  --shadow: 0 1px 2px rgba(31,32,39,.04), 0 6px 20px rgba(31,32,39,.06);
  --shadow-h: 0 2px 4px rgba(31,32,39,.05), 0 14px 34px rgba(31,32,39,.10);
  --font: 'Jost', 'Futura', 'Century Gothic', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--white); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* Textlink: dezent, Unterstreichung erst beim Überfahren kräftig */
.u-link { font-weight: 500; font-size: .92rem; color: var(--ink); text-decoration: underline; text-decoration-color: rgba(31,32,39,.25); text-underline-offset: 5px; text-decoration-thickness: 1px; transition: color .2s, text-decoration-color .2s; }
.u-link:hover { color: var(--red); text-decoration-color: currentColor; }
/* Button: Pillenform, feine Kontur */
.btn-outline { display: inline-block; border: 1px solid var(--ink); border-radius: var(--r-sm); padding: .7rem 1.6rem; font-size: .9rem; font-weight: 500; letter-spacing: .02em; transition: background .2s, color .2s; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.sec-title { font-weight: 300; font-size: clamp(1.9rem, 3.2vw, 2.6rem); letter-spacing: .005em; line-height: 1.15; }
.sec-sub { color: var(--gray); font-size: 1rem; margin-top: .4rem; font-weight: 400; }

/* ========== 1. HEADER ========== */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(31,32,39,.05); }
.header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 2rem; height: 78px; }
.nav-main { display: flex; gap: .4rem; }
.nav-main a { font-weight: 400; font-size: 1rem; padding: .45rem 1rem; border-radius: var(--r-sm); transition: background .2s, color .2s; }
.nav-main a:hover { background: var(--blue-tint); }
.nav-main a.active { background: var(--blue-tint); color: var(--ink); font-weight: 500; }
.nav-main a.active::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-right: .5rem; vertical-align: .15em; }
.brand { display: flex; align-items: center; gap: .65rem; }
.brand img { width: 42px; height: 42px; object-fit: contain; border-radius: 10px; }
.brand .word { font-weight: 400; font-size: 1.75rem; letter-spacing: .16em; line-height: 1; }
.brand .word b { font-weight: 400; color: var(--red); }
.brand .word i { font-style: normal; color: var(--blue); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; transition: background .2s; }
.burger:hover { background: var(--blue-tint); }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 1.5px; background: var(--ink); position: relative; transition: transform .25s, background .25s; }
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.nav-mobile { display: none; background: var(--white); padding: .4rem var(--pad) 1.2rem; border-bottom: 1px solid var(--line); }
.nav-mobile.open { display: block; }
.nav-mobile a { display: flex; justify-content: space-between; align-items: center; padding: .85rem 1rem; border-radius: 12px; font-size: 1.1rem; }
.nav-mobile a:hover { background: var(--blue-tint); }
.nav-mobile a::after { content: '›'; color: var(--gray); font-size: 1.3rem; line-height: 1; }

/* ========== 2. HERO (abgerundete Bühne mit Rand) ========== */
.hero { position: relative; height: clamp(420px, 62vh, 620px); overflow: hidden; color: var(--white); background: var(--ink);
        max-width: calc(var(--wrap) - 2 * var(--pad)); margin: .5rem auto 0; border-radius: calc(var(--r) * 1.5); width: calc(100% - 2 * var(--pad)); }
/* v2: Hero über die gesamte Fensterbreite (ohne Rand/Rundung). Bild wird per background-size: cover
   proportional skaliert – nie verzerrt, ggf. oben/unten bzw. seitlich zugeschnitten. */
.hero { width: 100%; max-width: none; margin: 0; border-radius: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease, transform 8s ease; transform: scale(1.05); }
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,22,30,0) 35%, rgba(20,22,30,.6) 100%); }
.hero-text { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(1.8rem, 5vh, 3rem); }
.hero-text .wrap { padding: 0 clamp(1.4rem, 3.5vw, 3rem); max-width: none; }
.hero-text h1 { font-weight: 300; text-transform: uppercase; letter-spacing: .14em; font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.1; }
.hero-text h1 span { display: inline-block; padding-bottom: .35rem; background: linear-gradient(var(--red), var(--red)) left bottom / 2.2em 2px no-repeat; }
.hero-text p { font-size: clamp(1rem, 1.5vw, 1.2rem); font-weight: 300; margin-top: .7rem; max-width: 40rem; opacity: .95; }

/* ========== 3. AKTUELLES (News-Slider) ========== */
.news { padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.news-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 2.2rem; flex-wrap: wrap; }
.news-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 1.5rem) / 4.2); gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: .4rem .4rem 1.6rem; margin: -.4rem -.4rem 0; scrollbar-width: none; }
.news-row::-webkit-scrollbar { display: none; }
.news-card { scroll-snap-align: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; position: relative; box-shadow: var(--shadow); transition: box-shadow .3s, transform .3s; }
.news-card:hover { box-shadow: var(--shadow-h); transform: translateY(-3px); }
.news-card .img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--blue-tint); }
.news-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.news-card .img.contain { background: var(--white); border-bottom: 1px solid var(--line); }
.news-card .img.contain img { object-fit: contain; padding: 1.4rem; }
.news-card:hover .img img { transform: scale(1.03); }
.news-card .badge { position: absolute; top: .9rem; left: .9rem; z-index: 2; background: var(--red); color: var(--white); border-radius: var(--r-sm); font-size: .7rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; padding: .22rem .7rem; }
.news-card .body { padding: 1.2rem 1.35rem 1.5rem; }
.news-card h3 { font-weight: 500; font-size: 1.08rem; line-height: 1.35; }
.news-card time { display: block; font-size: .82rem; color: var(--blue-dark); margin-top: .3rem; }
.news-card p { font-size: .9rem; color: var(--gray); margin-top: .5rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.slider-ctrl { display: flex; gap: .5rem; margin: .4rem 0 1.6rem; }
.slider-ctrl button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); display: flex; align-items: center; justify-content: center; font-size: 1.15rem; box-shadow: var(--shadow); transition: background .2s, color .2s, border-color .2s; }
.slider-ctrl { gap: .75rem; }                       /* v2: größere Pfeile */
.slider-ctrl button { width: 56px; height: 56px; font-size: 2rem; line-height: 1; padding-bottom: .2rem; }
.slider-ctrl button:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* ========== 4. HIGHLIGHTS (3 Kacheln, Text im Bild) ========== */
.stories3 { padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }	
.stories3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.story { position: relative; aspect-ratio: 4 / 5; max-height: 560px; overflow: hidden; color: var(--white); display: block; width: 100%; border-radius: var(--r); box-shadow: var(--shadow); }
.story img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.story:hover img { transform: scale(1.03); }
.story::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(20,22,30,.68) 100%); }
.story .txt { position: absolute; z-index: 2; left: 1.6rem; right: 1.6rem; bottom: 1.6rem; }
.story .tag { display: inline-block; background: rgba(255,255,255,.92); color: var(--red); border-radius: var(--r-sm); font-size: .7rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; padding: .22rem .7rem; margin-bottom: .7rem; }
.story .tag.blue { color: var(--blue-dark); }
.story h3 { font-weight: 400; font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.25; margin-bottom: .5rem; }
.story .u-link { color: var(--white); font-size: .88rem; text-decoration-color: rgba(255,255,255,.5); }
.story:hover .u-link { text-decoration-color: var(--white); }

/* ========== 5. HUKV-AKTIVE (Reiter + Kacheln) ========== */
.cats { padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.cats-head { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 2rem; margin-bottom: 2.2rem; }
.cats-tabs { display: inline-flex; gap: .25rem; padding: .3rem; background: var(--blue-tint); border-radius: var(--r-sm); }
.cats-tabs button { font-size: .95rem; font-weight: 400; padding: .5rem 1.25rem; border-radius: var(--r-sm); color: var(--gray); transition: background .2s, color .2s, box-shadow .2s; }
.cats-tabs button[aria-selected="true"] { background: var(--white); color: var(--ink); font-weight: 500; box-shadow: 0 1px 2px rgba(31,32,39,.08), 0 2px 8px rgba(31,32,39,.06); }
.cats-tabs button:hover { color: var(--ink); }
.cat-panel { display: none; }
.cat-panel.active { display: block; }
.cat-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 1.25rem) / 6); gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.cat-tile { scroll-snap-align: start; }
.cat-tile .img { aspect-ratio: 1 / 1; overflow: hidden; background: var(--blue-tint); border-radius: var(--r); }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cat-tile:hover img { transform: scale(1.04); }
.cat-tile span { display: block; margin-top: .75rem; font-size: .95rem; font-weight: 500; line-height: 1.3; transition: color .2s; }
.cat-tile:hover span { color: var(--red); }
.cats .btn-outline { margin-top: 1.4rem; }

/* ========== 6. TERMINE (eine helle, abgerundete Box) ========== */
.termine { padding: 0 0 clamp(3.5rem, 7vw, 6rem); }
.termine-body { margin-top: 2rem; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: calc(var(--r) * 1.25); box-shadow: var(--shadow); padding: .4rem clamp(1rem, 2.5vw, 2rem); }
.termin > div { min-width: 0; }
.termin h3 { overflow-wrap: anywhere; }
.termin-list { list-style: none; }
.termin { display: grid; grid-template-columns: 84px 1fr auto; gap: 1.4rem; align-items: center; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.termin:last-child { border-bottom: 0; }
.termin .date { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1; background: var(--blue-tint); border-radius: 14px; padding: .7rem .3rem .65rem; }
.termin .date .d { font-size: 1.9rem; font-weight: 400; color: var(--blue-dark); }
.termin .date .m { display: block; font-size: .68rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; margin-top: .3rem; color: var(--gray); }
.termin h3 { font-weight: 500; font-size: 1.12rem; line-height: 1.3; }
.termin .info { font-size: .88rem; color: var(--gray); margin-top: .15rem; }
.termin .u-link { font-size: .88rem; white-space: nowrap; }
.termin.next .date { background: #fdecee; }
.termin.next .date .d { color: var(--red); }
.termin.next h3::after { content: 'Als Nächstes'; display: inline-block; margin-left: .6rem; font-size: .66rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--white); background: var(--red); border-radius: var(--r-sm); padding: .15rem .6rem; vertical-align: .2em; }
.termin.past { opacity: .5; }
.termin.past h3::after { content: 'Vergangen'; display: inline-block; margin-left: .6rem; font-size: .66rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--gray); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .12rem .6rem; vertical-align: .2em; }
.termine .note { font-size: .88rem; color: var(--gray); margin-top: 1.2rem; }

/* ========== 7. FOOTER ========== */
.footer { background: var(--blue-tint); font-size: .94rem; border-radius: calc(var(--r) * 1.5) calc(var(--r) * 1.5) 0 0; }
.footer-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding: 3.2rem 0 2.4rem; }
.footer h4 { font-weight: 500; font-size: 1rem; margin-bottom: 1rem; }
.footer address { font-style: normal; line-height: 1.75; color: var(--gray); }
.footer .col a { display: block; padding: .2rem 0; color: var(--gray); transition: color .2s; }
.footer .col a:hover { color: var(--red); }
.footer .mail { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; margin-top: .8rem; }
.footer .mail:hover { color: var(--red); }
.footer .social { display: flex; gap: .5rem; margin-top: .2rem; }
.footer .social a { width: 40px; height: 40px; border-radius: 50%; background: var(--white); color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); transition: background .2s, color .2s; }
.footer .social a:hover { background: var(--ink); color: var(--white); }
.footer .social svg { width: 18px; height: 18px; }
/* v2: Social-Symbole deutlich größer und untereinander */
.footer .social { flex-direction: column; align-items: flex-start; gap: .8rem; }
.footer .social a { width: 60px; height: 60px; }
.footer .social svg { width: 30px; height: 30px; }
.sponsors { padding: 0 0 2rem; }
.sponsors .wrap > * { position: relative; }
.sponsors p { font-size: .85rem; color: var(--gray); margin-bottom: 1rem; }
/* Sponsoren-Logos in einer weißen, abgerundeten Box (Logo-Größe wie bisher: 136px Höhe) */
.sponsor-row { display: flex; flex-wrap: wrap; gap: 2rem 3rem; align-items: center; background: var(--white); border-radius: var(--r); padding: 1.8rem 2rem; box-shadow: var(--shadow); }
.sponsor-row img { height: 136px; width: auto; max-width: min(480px, 100%); object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .25s, opacity .25s; }
.sponsor-row img:hover { filter: none; opacity: 1; }
/* v2: Links um die Logos – display: contents = der Link erzeugt keine eigene Box,
   Logos sehen exakt aus wie vorher (Größe, Abstände, mobil), keine Unterstreichung/Rahmen. */
.sponsor-row a { display: contents; text-decoration: none; }
.footer-bottom { border-top: 1px solid #e2e4ee; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem 1.5rem; padding-top: 1.2rem; padding-bottom: 1.5rem; font-size: .82rem; color: var(--gray); }
.footer-bottom nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-bottom nav a:hover { color: var(--red); }
.footer-stripe { height: 3px; background: linear-gradient(90deg, var(--blue) 0 50%, var(--red) 50% 100%); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
  .nav-main a { padding: .45rem .7rem; }
  .cat-row { grid-auto-columns: calc((100% - 3 * 1.25rem) / 4); }
  .news-row { grid-auto-columns: calc((100% - 2 * 1.5rem) / 3.2); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .sponsor-row img { height: 100px; }
}
@media (max-width: 860px) {
  .nav-main { display: none; }
  .burger { display: flex; }
  .header .wrap { height: 64px; }
  .brand .word { font-size: 1.45rem; }
  .brand img { width: 34px; height: 34px; }
  .stories3 { grid-template-columns: 1fr; gap: 1rem; }
  .story { aspect-ratio: 4 / 3; }
  .news-row { grid-auto-columns: 76%; gap: 1rem; }
  .cat-row { grid-auto-columns: 42%; gap: 1rem; }
}
@media (max-width: 520px) {
  :root { --r: 14px; }
  .hero { height: 440px; }
  .termin { grid-template-columns: 64px 1fr; gap: .9rem; }
  .termin .date .d { font-size: 1.5rem; }
  .termin .u-link { grid-column: 2; justify-self: start; }
  .termin.next h3::after, .termin.past h3::after { margin: .3rem 0 0; display: table; }
  .footer-top { grid-template-columns: 1fr; }
  .sponsor-row { gap: 1.2rem 1.5rem; padding: 1.2rem; }
  .sponsor-row img { height: 72px; max-width: calc(50% - .75rem); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
