/* ==========================================================================
   Nierene – Südtiroler Nierenkrankenverein EO
   ========================================================================== */

@font-face { font-family: "Roobert"; src: url("../fonts/Roobert-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Roobert"; src: url("../fonts/Roobert-RegularItalic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Roobert"; src: url("../fonts/Roobert-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Roobert"; src: url("../fonts/Roobert-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Roobert"; src: url("../fonts/Roobert-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --red: #d51424;          /* Markenrot (Logo) */
  --red-dark: #8c0f1e;     /* Dunkelrot für Titel */
  --ink: #000;             /* Lesetext */
  --grey: #5c5c5c;         /* Metainfos */
  --line: #e7e2e2;
  --tint: #f8eeee;         /* zarter Rot-Ton für Flächen */
  --tint-2: #f2f1ef;       /* neutrale Fläche */
  --white: #fff;

  --font: "Roobert", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --radius: 999px;
  --space: clamp(64px, 9vw, 140px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-size: clamp(17px, 1.05vw + 10px, 20px); line-height: 1.6; font-feature-settings: "ss01" 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
figure { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -100px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-medium { width: 100%; max-width: calc(1040px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { width: 100%; max-width: calc(760px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Typografie ---------- */
.h-page { font-size: clamp(2.3rem, 4.6vw, 4.25rem); color: var(--red-dark); line-height: 1.04; }
.h-section { font-size: clamp(2rem, 3.6vw, 3.4rem); color: var(--red-dark); line-height: 1.06; margin-bottom: .45em; }
.lead { font-size: clamp(1.1rem, 1.3vw, 1.3rem); line-height: 1.6; max-width: 38em; }
.meta { color: var(--grey); font-size: .9em; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .55em 1.9em; border-radius: var(--radius); background: var(--red-dark); color: #fff; text-decoration: none; font-weight: 500; font-size: 1.05em; border: 2px solid var(--red-dark); transition: background .15s, color .15s; }
.btn:hover { background: var(--red); border-color: var(--red); }
.btn--dark { background: var(--ink); border-color: var(--ink); }
.btn--dark:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.round-btn { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--red-dark); color: #fff; }
.round-btn:hover { background: var(--red); }

/* ---------- Header ---------- */
.site-header { padding-top: clamp(20px, 2.6vw, 36px); }
.site-header__bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--red); }
.brand__logo { width: clamp(64px, 6vw, 94px); height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-size: clamp(2rem, 3vw, 2.9rem); font-weight: 500; letter-spacing: -0.01em; line-height: .9; }
.brand__claim { font-size: clamp(.8rem, .85vw, 1rem); font-weight: 400; margin-top: .45em; letter-spacing: .01em; }
.brand--small .brand__logo { width: 64px; }
.brand--small .brand__name { font-size: 2rem; }

.search-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px; border-radius: var(--radius); background: var(--red-dark); color: #fff; border: 0; font-size: .95rem; font-weight: 500; margin-top: 6px; }
.search-toggle:hover { background: var(--red); }

.site-header__nav { margin-top: clamp(18px, 2vw, 28px); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 clamp(20px, 2.6vw, 44px); }
.main-nav a { display: inline-block; color: var(--red); text-decoration: none; font-weight: 500; font-size: 1.15rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--red-dark); }
.main-nav a[aria-current] { color: var(--red-dark); border-bottom-color: var(--red-dark); }

/* Sprachumschalter DT | IT */
.header-tools { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 24px); margin-top: 6px; }
.header-tools .search-toggle { margin-top: 0; }
.lang-switch { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; font-weight: 500; color: var(--grey); }
.lang-switch a { color: var(--ink); text-decoration: none; padding: 4px 2px; border-bottom: 2px solid transparent; }
.lang-switch a:hover { color: var(--red-dark); }
.lang-switch a[aria-current] { color: var(--red); border-bottom-color: var(--red); }

.menu-toggle { display: none; }

/* Startseite: Seitenmenü links, aktueller Beitrag rechts */
@media (min-width: 1024px) {
  .site-header--home .site-header__nav { display: grid; grid-template-columns: minmax(240px, 1fr) 2fr; gap: clamp(32px, 4vw, 72px); align-items: start; }
  .main-nav--side { padding-top: clamp(24px, 5vw, 80px); }
  .main-nav--side ul { flex-direction: column; gap: 4px; }
  .main-nav--side a { font-size: clamp(1.8rem, 2.6vw, 2.6rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; }
}

/* Mobile: Hamburger unter dem Logo */
@media (max-width: 1023px) {
  .menu-toggle { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--red-dark); color: #fff; }
  .menu-toggle__icon { display: grid; gap: 5px; width: 22px; }
  .menu-toggle__icon span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav { display: none; padding: 12px 0 8px; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { font-size: 1.9rem; font-weight: 600; padding: 4px 0; }
  .search-toggle span { display: none; }
  .search-toggle { width: 44px; height: 44px; padding: 0; justify-content: center; }
}

/* ---------- Hero (neuester Beitrag) ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 2.4vw, 40px); align-items: end; text-decoration: none; margin-top: 24px; }
.hero__media { overflow: hidden; background: var(--tint); aspect-ratio: 4 / 5; max-height: 78vh; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__kicker { display: block; color: var(--grey); font-size: .95rem; margin-bottom: .8em; }
.hero__title { font-size: clamp(1.9rem, 3vw, 3rem); color: var(--red-dark); line-height: 1.08; }
.hero__more { display: inline-block; margin-top: 1.1em; font-weight: 500; border-bottom: 2px solid var(--red); padding-bottom: 2px; }
.hero:hover .hero__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
@media (max-width: 1023px) {
  .hero { grid-template-columns: 1fr; margin-top: 28px; }
  .hero__media { aspect-ratio: 4 / 3; }
}

/* ---------- Abschnitte ---------- */
.section { padding-block: var(--space) 0; }
.section--tight { padding-top: clamp(32px, 4vw, 64px); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(28px, 3vw, 48px); }
.section-head .h-section { margin: 0; }
.section-head .lead { margin: 0; }
.section-more { margin: clamp(28px, 3vw, 48px) 0 0; }
.page-head { margin-bottom: clamp(36px, 4vw, 64px); }
.page-head .h-page { margin-bottom: .35em; }
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; } }

/* Aktuelles auf der Startseite: Text links, versetzte Karten rechts */
.news-teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.news-teaser__intro { position: sticky; top: 40px; padding-top: clamp(40px, 8vw, 140px); }
.news-teaser__intro .lead { margin-bottom: 1.6em; }
@media (max-width: 900px) {
  .news-teaser { grid-template-columns: 1fr; }
  .news-teaser__intro { position: static; padding-top: 0; }
}

/* versetztes Raster */
.stagger { display: grid; gap: clamp(28px, 3vw, 48px) clamp(20px, 2.2vw, 36px); align-items: start; }
.stagger--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stagger--2 > :nth-child(2n) { margin-top: clamp(60px, 16vw, 260px); }
.stagger--2 > :nth-child(2n+1):not(:first-child) { margin-top: clamp(-200px, -12vw, -40px); }
.stagger--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stagger--3 > :nth-child(3n+2) { transform: translateY(clamp(40px, 7vw, 120px)); }
.stagger--3 { padding-bottom: clamp(40px, 7vw, 120px); }
.stagger--flat > * { transform: none !important; }
.stagger--flat { padding-bottom: 0; }
@media (max-width: 900px) {
  .stagger--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 0; }
  .stagger--3 > * { transform: none !important; }
}
@media (max-width: 560px) {
  .stagger--2, .stagger--3 { grid-template-columns: 1fr; }
  .stagger > * { margin-top: 0 !important; }
}

/* Karte */
.card__link { display: block; text-decoration: none; }
.card__media { overflow: hidden; background: var(--tint); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card__link:hover .card__media img { transform: scale(1.025); }
.card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; }
.card__placeholder img { width: 30%; height: auto; opacity: .35; filter: grayscale(1); object-fit: contain; }
.card__link:hover .card__placeholder img { transform: none; }
.card__date { display: block; margin-top: 14px; color: var(--grey); font-size: .85rem; }
.card__title { font-size: clamp(1.15rem, 1.4vw, 1.45rem); margin-top: 4px; line-height: 1.2; }
.card__link:hover .card__title { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Wissens-Kacheln: reine Typografie */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 44px); }
.tile__link { position: relative; display: flex; flex-direction: column; gap: clamp(20px, 2.4vw, 40px); height: 100%; min-height: clamp(360px, 32vw, 520px); padding: clamp(24px, 2.6vw, 44px); background: var(--tint); text-decoration: none; transition: background .15s; }
.tiles > :nth-child(2n) .tile__link { background: var(--tint-2); }
.tile__link:hover { background: #f4e2e3 !important; }
.tile__num { font-size: clamp(3.4rem, 6.4vw, 6.4rem); font-weight: 600; color: var(--red-dark); line-height: .9; letter-spacing: -0.04em; }
.tile__body { display: flex; flex-direction: column; gap: .7em; }
.tile__title { font-size: clamp(1.75rem, 2.7vw, 2.9rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; hyphens: manual; overflow-wrap: break-word; }
.tile__intro { font-size: clamp(1.1rem, 1.45vw, 1.55rem); line-height: 1.4; }
.tile__more { margin-top: auto; font-size: 1.6rem; color: var(--red-dark); line-height: 1; }
.tile__link:hover .tile__title { color: var(--red-dark); }

/* horizontale Scroll-Reihe (Startseite) */
.tiles--scroll { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(300px, 34vw, 500px); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 0; padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: var(--red-dark) transparent; overscroll-behavior-x: contain; }
.tiles--scroll > * { scroll-snap-align: start; }
.tile-scroller__nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: clamp(24px, 3vw, 40px); }
.tile-scroller__arrows { display: flex; gap: 10px; }
.arrow-btn { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; font-size: 1.25rem; line-height: 1; }
.arrow-btn:hover { background: var(--ink); color: #fff; }
.arrow-btn:disabled { opacity: .3; pointer-events: none; }

@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tiles--scroll { grid-auto-columns: 62vw; } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } .tiles--scroll { grid-auto-columns: 80vw; } .tile__link { min-height: 340px; } .tile-scroller__arrows { display: none; } }

/* Statement (Verein) */
.statement { background: var(--tint); text-align: center; padding: clamp(56px, 9vw, 150px) clamp(20px, 6vw, 120px); }
.statement__title { font-size: clamp(1.9rem, 3.8vw, 3.6rem); color: var(--red-dark); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: .7em; }
.statement__text { max-width: 44em; margin: 0 auto 2em; font-size: clamp(1.05rem, 1.2vw, 1.2rem); }

/* Akkordeon */
.accordion { border-top: 1px solid var(--ink); }
.accordion__item { border-bottom: 1px solid var(--ink); }
.accordion__head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(18px, 2vw, 28px) 0; cursor: pointer; list-style: none; font-size: clamp(1.35rem, 2.1vw, 2rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.accordion__head::-webkit-details-marker { display: none; }
.accordion__head:hover { color: var(--red-dark); }
.accordion__icon { position: relative; flex: none; width: 28px; height: 28px; }
.accordion__icon::before, .accordion__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 2px; background: var(--red); transform: translate(-50%, -50%); }
.accordion__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.accordion__item[open] .accordion__icon::after { display: none; }
.accordion__body { padding: 0 0 clamp(28px, 3vw, 44px); max-width: 760px; }
.accordion--small { margin: 1.6em 0; border-top-color: var(--line); }
.accordion--small .accordion__item { border-bottom-color: var(--line); }
.accordion--small .accordion__head { font-size: 1.1em; padding: 16px 0; }

/* ---------- Artikel ---------- */
.article { padding-top: clamp(48px, 7vw, 110px); }
.article__head { margin-bottom: clamp(28px, 3vw, 48px); }
.back { display: inline-block; text-decoration: none; font-size: .95rem; font-weight: 500; margin-bottom: 1.6em; }
.back::before { content: "← "; color: var(--red); }
.article__date { display: block; color: var(--grey); font-size: .95rem; margin-bottom: .6em; }
.article__cover { margin-bottom: clamp(32px, 4vw, 64px); }
.article__cover img { width: auto; max-width: 100%; max-height: 82vh; margin-inline: auto; }
.article__cover figcaption, .prose figcaption { color: var(--grey); font-size: .85rem; margin-top: 8px; }

.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose p + p { margin-top: 1em; }
.prose h2 { font-size: 1.75em; color: var(--red-dark); margin-top: 1.6em; }
.prose h3 { font-size: 1.35em; margin-top: 1.5em; }
.prose h4 { font-size: 1.1em; margin-top: 1.4em; }
.prose a { text-decoration-color: var(--red); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:hover { color: var(--red-dark); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--red); }
.prose blockquote { margin: 1.6em 0; padding-left: 1em; border-left: 3px solid var(--red); font-size: 1.15em; }
.prose figure img { width: 100%; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9em; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; }
.prose ul.gallery, .prose .gallery ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.prose .gallery li { margin: 0; }
.prose .gallery img { aspect-ratio: auto; }
.prose--legal h2, .prose--legal h3, .prose--legal h4 { font-size: 1.2em; color: var(--ink); }
.prose--legal h2:first-child { margin-top: 0; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 110px); }
.contact__big { font-size: clamp(1.6rem, 3vw, 2.8rem); font-weight: 600; line-height: 1.25; margin-bottom: 1.2em; letter-spacing: -0.015em; }
.contact__big a { text-decoration: none; }
.contact__big a:hover { color: var(--red-dark); }
.contact__list { display: grid; grid-template-columns: max-content 1fr; gap: 14px 32px; margin: 0; }
.contact__list dt { font-weight: 600; }
.contact__list dd { margin: 0; }
.note { background: var(--tint); padding: clamp(24px, 3vw, 40px); }
.note h2 { font-size: 1.2em; margin-bottom: .5em; }
.note p { margin: 0; }
.link-list { list-style: none; padding: 0; margin: 28px 0 0; }
.link-list li + li { margin-top: 6px; }
.link-list a { font-weight: 500; text-decoration-color: var(--red); text-underline-offset: 3px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } .contact__list { grid-template-columns: 1fr; gap: 2px; } .contact__list dd { margin-bottom: 12px; } }

/* ---------- Suche ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 50; background: var(--tint); overflow-y: auto; }
.search-overlay[hidden] { display: none; }
.search-overlay__inner { min-height: 100%; display: flex; flex-direction: column; padding-top: clamp(20px, 2.6vw, 36px); padding-bottom: 28px; }
.search-overlay__badge { align-self: flex-start; padding: 9px 20px; border-radius: var(--radius); background: var(--red-dark); color: #fff; font-size: .95rem; font-weight: 500; }
.search-overlay__hello { margin: 28px 0 0; max-width: 34em; }
.search-overlay__results { flex: 1; padding: 24px 0; }
.search-field { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; max-width: 1040px; margin: 0 auto; padding: 8px 8px 8px 22px; background: #fff; border: 2px solid var(--ink); border-radius: 22px; }
.search-field input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1.05rem; padding: 12px 0; outline: none; }
.search-field input::placeholder { color: #8b8b8b; }
.search-field:focus-within { border-color: var(--red-dark); box-shadow: 0 0 0 3px rgba(213, 20, 36, .15); }
.search-field button { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--red-dark); color: #fff; }
.search-field button:hover { background: var(--red); }
.search-field--inline { margin: 0; max-width: none; }
.search-overlay__close { align-self: center; margin-top: 28px; }
.results { list-style: none; margin: 0 auto; padding: 0; max-width: 1040px; }
.results li { border-top: 1px solid rgba(0,0,0,.12); }
.results li:last-child { border-bottom: 1px solid rgba(0,0,0,.12); }
.results a { display: grid; gap: 2px; padding: 16px 0; text-decoration: none; }
.results a:hover strong { color: var(--red-dark); text-decoration: underline; text-underline-offset: 3px; }
.results strong { font-size: 1.15em; font-weight: 600; line-height: 1.25; }
.results span { font-size: .92em; }
.results .results__section { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--red-dark); font-weight: 600; }
.results-empty { max-width: 1040px; margin: 0 auto; }
body.search-open { overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { margin-top: var(--space); border-top: 1px solid var(--line); padding-top: clamp(40px, 5vw, 72px); font-size: .95rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer__label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--red-dark); margin-bottom: .6em; }
.site-footer a { text-decoration-color: var(--line); text-underline-offset: 3px; }
.site-footer a:hover { color: var(--red-dark); text-decoration-color: var(--red); }
.site-footer__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: clamp(32px, 4vw, 56px); padding-block: 24px 36px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--grey); }
.site-footer__meta p { margin: 0; }
.site-footer__meta ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; }
.site-footer__meta a { color: var(--ink); }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

.pager { display: flex; justify-content: center; gap: 16px; margin-top: clamp(40px, 5vw, 80px); }

@media (max-width: 480px) {
  .brand { gap: 10px; }
  .brand__claim { font-size: .68rem; white-space: nowrap; }
}

@media (max-width: 600px) {
  .site-header__bar { gap: 12px; }
  .brand { flex: 1 1 auto; min-width: 0; }
  .brand__logo { width: 54px; }
  .brand__name { font-size: 1.75rem; }
  .brand__claim { white-space: normal; font-size: .66rem; line-height: 1.2; }
  .header-tools { gap: 12px; flex: none; }
  .lang-switch { font-size: .95rem; gap: 6px; }
}

/* ---------- Verein: Intro links, nummeriertes Akkordeon rechts ---------- */
.verein { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.verein__intro { position: sticky; top: 40px; }
.kicker { font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--red-dark); margin-bottom: 1.4em; }
.verein__title { font-size: clamp(2rem, 3.4vw, 3.2rem); font-weight: 500; color: var(--red-dark); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: .8em; white-space: pre-line; }
.verein__text { max-width: 34em; margin-bottom: 2em; }
.btn--arrow { gap: .6em; }

.accordion--numbered { border-top: 1.5px solid var(--ink); }
.accordion--numbered .accordion__item { border-bottom: 1px solid var(--line); }
.accordion--numbered .accordion__head { display: grid; grid-template-columns: 3.2rem 1fr auto; align-items: center; gap: 0 12px; padding: clamp(20px, 2.2vw, 30px) 0; font-size: clamp(1.2rem, 1.7vw, 1.6rem); font-weight: 500; }
.accordion__num { font-size: .78rem; font-weight: 500; letter-spacing: .12em; color: var(--grey); }
.accordion--numbered .accordion__head:hover, .accordion--numbered .accordion__item[open] .accordion__head { color: var(--red-dark); }
.accordion--numbered .accordion__icon::before, .accordion--numbered .accordion__icon::after { width: 20px; height: 1.5px; background: currentColor; }
.accordion--numbered .accordion__body { padding: 0 0 clamp(28px, 3vw, 44px) calc(3.2rem + 12px); max-width: none; }

@media (max-width: 900px) {
  .verein { grid-template-columns: 1fr; }
  .verein__intro { position: static; }
  .accordion--numbered .accordion__head { grid-template-columns: 2.4rem 1fr auto; }
  .accordion--numbered .accordion__body { padding-left: 0; }
}

/* Verein auf der Startseite: leicht rote Fläche */
.verein--home { background: var(--tint); padding: clamp(40px, 6vw, 100px) clamp(20px, 5vw, 90px); }
.verein--home .accordion--numbered .accordion__item { border-bottom-color: rgba(140, 15, 30, .16); }
#verein, .accordion__item { scroll-margin-top: 24px; }

/* Buchstaben-Hintergrund der alten Seite (statisch, nur Startseite oben) */
.site-header--home { position: relative; isolation: isolate; padding-bottom: clamp(24px, 4vw, 64px); }
.letters { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; opacity: .22; }
.letters img { position: absolute; height: auto; }
.letters__n { width: 22vw; left: 30%; top: -6vw; }
.letters__i { width: 15vw; left: 4%; top: 52%; }
.letters__k { width: 19vw; right: -3vw; top: 4%; }
.letters__a { width: 17vw; left: 50%; bottom: -5vw; }
.letters__v { width: 15vw; left: 14%; bottom: -7vw; }
@media (max-width: 1023px) {
  .letters { opacity: .13; }
  .letters__n { width: 46vw; left: 62%; top: 120px; }
  .letters__i { width: 30vw; left: -6vw; top: 30%; }
  .letters__k { display: none; }
  .letters__a { width: 40vw; left: 66%; bottom: -6vw; }
  .letters__v { display: none; }
}

/* Animation wie auf der alten Seite: Buchstaben steigen langsam auf und pendeln leicht */
@media (prefers-reduced-motion: no-preference) {
  .letters--animated img { top: auto; right: auto; bottom: auto; animation: letter-rise var(--dur) linear var(--delay) infinite, letter-sway var(--sway) ease-in-out var(--delay) infinite alternate; will-change: top, translate; }
  .letters--animated .letters__n { --w: 22vw; width: var(--w); left: 34%; --dur: 26s; --sway: 5s; --delay: -4s; }
  .letters--animated .letters__i { --w: 15vw; width: var(--w); left: 6%;  --dur: 32s; --sway: 6s; --delay: -20s; }
  .letters--animated .letters__k { --w: 19vw; width: var(--w); left: 78%; --dur: 29s; --sway: 4s; --delay: -12s; }
  .letters--animated .letters__a { --w: 17vw; width: var(--w); left: 56%; --dur: 35s; --sway: 5s; --delay: -27s; }
  .letters--animated .letters__v { --w: 16vw; width: var(--w); left: 18%; --dur: 30s; --sway: 6s; --delay: -9s; }
  @media (max-width: 1023px) {
    .letters--animated .letters__k, .letters--animated .letters__v { display: block; }
    .letters--animated img { --w: 36vw !important; }
  }
}
@keyframes letter-rise { from { top: 100%; } to { top: calc(-1.1 * var(--w)); } }
@keyframes letter-sway { from { translate: -2vw 0; } to { translate: 2vw 0; } }

/* Mobil: runder Menü-Button an Stelle des Logos */
.brand-wrap { display: flex; align-items: center; gap: 14px; min-width: 0; }
.logo-toggle { display: none; place-items: center; flex: none; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; background: var(--red-dark); color: #fff; }
.logo-toggle:hover { background: var(--red); }
.logo-toggle__icon { display: grid; gap: 5px; width: 24px; }
.logo-toggle__icon span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.logo-toggle[aria-expanded="true"] .logo-toggle__icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.logo-toggle[aria-expanded="true"] .logo-toggle__icon span:nth-child(2) { opacity: 0; }
.logo-toggle[aria-expanded="true"] .logo-toggle__icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1023px) {
  .logo-toggle { display: grid; }
  .brand .brand__logo { display: none; }
  .menu-toggle { display: none !important; }
  .site-header__nav { margin-top: 0; }
  .main-nav.is-open { padding-top: 20px; }
}
@media (max-width: 600px) { .brand-wrap { gap: 12px; flex: 1 1 auto; } .logo-toggle { width: 50px; height: 50px; } }

/* ---------- Unterseiten: Menü mittig in der Kopfzeile ---------- */
.site-header { position: relative; }
@media (min-width: 1024px) {
  .site-header:not(.site-header--home) .site-header__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
  .site-header:not(.site-header--home) .header-tools { justify-self: end; margin-top: 0; }
  .main-nav--center ul { flex-wrap: nowrap; }
}
@media (max-width: 1023px) {
  .main-nav--center { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: #fff; padding: 8px var(--gutter) 24px; box-shadow: 0 12px 24px rgba(0,0,0,.06); }
}

/* Header-Bild mit dünnem Rand */
.hero__media { border: 1px solid #cdbfc0; }

/* Pfeil nach unten unter dem Header */
.scroll-down { display: grid; place-items: center; width: 52px; height: 52px; margin: clamp(28px, 3vw, 44px) auto 0; border: 1.5px solid var(--red-dark); border-radius: 50%; color: var(--red-dark); background: rgba(255,255,255,.7); text-decoration: none; }
.scroll-down:hover { background: var(--red-dark); color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .scroll-down svg { animation: nudge 2.4s ease-in-out infinite; }
  @keyframes nudge { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(4px); } }
}
.site-header--home { padding-bottom: clamp(16px, 2vw, 32px); }

/* ---------- Sticky Header beim Scrollen ---------- */
.sticky-bar { position: fixed; left: 0; right: 0; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); transform: translateY(-100%); transition: transform .25s ease; }
.sticky-bar.is-visible { transform: translateY(0); box-shadow: 0 6px 20px rgba(0,0,0,.05); }
@media (prefers-reduced-motion: reduce) { .sticky-bar { transition: none; } }
.sticky-bar__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 76px; }
.sticky-bar__left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.sticky-bar__claim { color: var(--red); font-weight: 500; font-size: 1.05rem; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-bar__claim:hover { color: var(--red-dark); }
.sticky-bar__nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(20px, 2.6vw, 44px); }
.sticky-bar__nav a { display: inline-block; color: var(--red); text-decoration: none; font-weight: 500; font-size: 1.15rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.sticky-bar__nav a:hover { color: var(--red-dark); }
.sticky-bar__nav a[aria-current] { color: var(--red-dark); border-bottom-color: var(--red-dark); }
.sticky-bar__tools { justify-self: end; display: flex; align-items: center; gap: clamp(14px, 1.6vw, 24px); }
.round-search { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--red-dark); color: #fff; }
.round-search:hover { background: var(--red); }
.sticky-bar__toggle { display: none; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--red-dark); color: #fff; }
.sticky-bar__toggle .logo-toggle__icon { width: 20px; gap: 4px; }
.sticky-bar__toggle[aria-expanded="true"] .logo-toggle__icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.sticky-bar__toggle[aria-expanded="true"] .logo-toggle__icon span:nth-child(2) { opacity: 0; }
.sticky-bar__toggle[aria-expanded="true"] .logo-toggle__icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1023px) {
  .sticky-bar__inner { grid-template-columns: 1fr auto; min-height: 64px; gap: 12px; }
  .sticky-bar__toggle { display: grid; }
  .sticky-bar__claim { font-size: .9rem; }
  .sticky-bar__nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; padding: 8px var(--gutter) 22px; border-bottom: 1px solid var(--line); }
  .sticky-bar__nav.is-open { display: block; }
  .sticky-bar__nav ul { flex-direction: column; gap: 0; }
  .sticky-bar__nav a { font-size: 1.7rem; font-weight: 600; padding: 4px 0; }
}
@media (max-width: 480px) { .sticky-bar__claim { display: none; } .sticky-bar .lang-switch { font-size: .95rem; } }
#verein, .accordion__item, [id] { scroll-margin-top: 96px; }
