/* =========================================================================
   Tiroler Dobermann Klub — site styles
   Palette taken from the club emblem: near-black, signal red, copper tan.
   Compact scale: tighter rhythm, smaller headings, denser cards.
   ========================================================================= */

:root {
  --ink:        #14151a;
  --ink-2:      #3b3f4a;
  --ink-3:      #6b7080;
  --line:       #e3e1de;
  --paper:      #ffffff;
  --paper-2:    #f7f5f2;
  --paper-3:    #efece7;
  --red:        #c8102e;
  --red-dark:   #9d0c24;
  --red-soft:   #fdeef0;
  --black:      #0e0f12;
  --black-2:    #191b20;

  --radius:     12px;
  --radius-sm:  7px;
  --shadow:     0 1px 2px rgba(20,21,26,.05), 0 6px 18px -10px rgba(20,21,26,.18);
  --shadow-lg:  0 2px 4px rgba(20,21,26,.05), 0 18px 44px -20px rgba(20,21,26,.3);

  --wrap:       1160px;
  --gap:        clamp(1rem, 2vw, 1.75rem);

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --display: 'Barlow Condensed', 'Inter', 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 2px; }
a:hover { color: var(--red-dark); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.005em;
  margin: 0 0 .45em;
  color: var(--ink);
}
h1 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); margin-top: 1.6em; }
h3 { font-size: clamp(1.12rem, 1.7vw, 1.28rem); margin-top: 1.4em; }
h4 { font-size: 1.02rem; }
p  { margin: 0 0 .95em; }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2rem, 720px); margin-inline: auto; }

.section { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-tight { padding-block: clamp(2rem, 3.5vw, 3rem); }
.section-tint { background: var(--paper-2); }

.muted { color: var(--ink-3); }
.small { font-size: .88rem; }
.lead { font-size: 1.1em; color: var(--ink-2); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--red); color: #fff; padding: .7rem 1.2rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; }

/* =========================================================================
   Header — single compact bar, flat navigation
   ========================================================================= */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14,15,18,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.masthead .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 62px; }

.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: #fff; flex-shrink: 0; }
.brand img { width: 40px; height: 40px; border-radius: 50%; background: #fff; padding: 1px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name { font-family: var(--display); font-size: 1.12rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.brand-sub { font-size: .62rem; letter-spacing: .15em; text-transform: uppercase; color: var(--red); font-weight: 700; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.nav ul { display: flex; align-items: center; gap: .1rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: .45rem .62rem; border-radius: var(--radius-sm);
  color: #d3d5da; text-decoration: none;
  font-size: .78rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase;
  white-space: nowrap; transition: background .15s, color .15s;
}
.nav a:hover, .nav a:focus-visible { background: rgba(255,255,255,.1); color: #fff; }
.nav a.is-active { color: #fff; box-shadow: inset 0 -2px 0 var(--red); }

.nav-cta {
  padding: .45rem .85rem !important; border-radius: 100px;
  background: var(--red); color: #fff !important; font-weight: 600;
}
.nav-cta:hover { background: var(--red-dark) !important; box-shadow: none !important; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius-sm);
  background: none; cursor: pointer; padding: 0; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 11px; width: 18px; height: 2px; background: #fff; transition: .2s;
}
.nav-toggle span { top: 19px; }
.nav-toggle span::before { top: -5px; left: 0; }
.nav-toggle span::after  { top: 5px; left: 0; }
.nav-toggle[aria-expanded='true'] span { background: transparent; }
.nav-toggle[aria-expanded='true'] span::before { transform: rotate(45deg); top: 0; }
.nav-toggle[aria-expanded='true'] span::after  { transform: rotate(-45deg); top: 0; }

@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; display: block;
    background: var(--black-2); border-bottom: 1px solid rgba(255,255,255,.12);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav.is-open { max-height: 80vh; overflow-y: auto; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .4rem; }
  /* scoped to the list so the CTA below keeps its own box */
  .nav ul a { width: 100%; padding: .7rem .9rem; font-size: .85rem; }
  .nav-cta { display: block; margin: 0 .8rem .8rem; text-align: center; }
}

/* =========================================================================
   Hero — full-width band, calm imagery, copy on a bottom scrim
   ========================================================================= */
.hero {
  position: relative; background: var(--black); color: #fff; overflow: hidden;
  display: grid; width: 100%;
  /* Eine Groesse fuer beides: Claim und Wappen leiten sich davon ab, damit ihr
     Groessenverhaeltnis auf jeder Bildschirmbreite gleich bleibt. */
  --claim-size: clamp(1.9rem, 3.8vw, 2.7rem);
  /* 37.5vw is 16:6 of the viewport width, so on wide screens the band matches
     the crop of the hero files exactly and nothing is cut off. Deliberately not
     `aspect-ratio`: combined with min-height that widens the box instead of the
     height, which overflowed the viewport on phones. */
  height: 37.5vw;
  min-height: 340px;
  max-height: 62vh;
}
.hero-media { position: absolute; inset: 0; }
.hero-media picture { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  opacity: 0; transition: opacity 1s ease;
}
.hero-media img.is-current { opacity: 1; }

/* Two stops: a light wash over the whole frame keeps white studio backgrounds
   from blowing out, plus a strong foot so the headline always has contrast. */
.hero-overlay {
  position: relative; z-index: 2; align-self: end; width: 100%;
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1.75rem, 3.5vw, 2.75rem);
  background:
    linear-gradient(180deg, rgba(14,15,18,0) 0%, rgba(14,15,18,.55) 45%, rgba(14,15,18,.92) 100%);
}
/* Wappen links, Claim rechts – beide auf einer Zeile und mittig zueinander.
   Der Abstand zum Fliesstext haengt am Claim und wandert vom h1 auf die Zeile. */
.hero-claim {
  display: flex; align-items: center; gap: clamp(.6rem, 1.2vw, 1rem);
  margin-bottom: calc(var(--claim-size) * .3);
}
.hero-copy h1 { color: #fff; margin-bottom: .3em; max-width: 17ch; font-size: var(--claim-size); text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero-claim h1 { margin-bottom: 0; min-width: 0; }

/* Vereinswappen: Durchmesser fest an die Schriftgroesse des Claims gekoppelt
   (Faktor 2.66 ≈ Hoehe der beiden Claim-Zeilen plus ein Drittel), damit Wappen
   und Schrift auf jeder Bildschirmbreite im gleichen Verhaeltnis stehen. Weisse
   Scheibe, Ring und Schatten trennen es sauber vom laufenden Slider – auf hellen
   wie auf dunklen Motiven. */
.hero-emblem { flex: none; display: block; line-height: 0; }
.hero-emblem img {
  display: block; width: calc(var(--claim-size) * 2.66); height: auto;
  border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 .14rem rgba(255,255,255,.9), 0 .4rem 1.1rem rgba(0,0,0,.5);
}
.hero-copy p { color: #dcdde1; max-width: 50ch; font-size: 1.02rem; margin-bottom: 0; text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.hero-eyebrow {
  display: inline-block; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 700; color: #fff; background: var(--red);
  padding: .28rem .68rem; border-radius: 100px; margin-bottom: .9rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.35rem; }

.hero-dots { position: absolute; right: max(1.25rem, calc((100vw - var(--wrap)) / 2)); bottom: 1.1rem; z-index: 3; display: flex; gap: .35rem; }
.hero-dots button {
  width: 26px; height: 3px; border: 0; border-radius: 3px; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.45); transition: background .2s;
}
.hero-dots button[aria-current='true'] { background: var(--red); }

@media (max-width: 640px) {
  .hero { min-height: 46vh; }
  .hero-claim { gap: .6rem; }
  .hero-copy h1 { max-width: none; }
  /* kleineres Wappen, damit dem Claim genug Zeilenbreite bleibt */
  .hero-emblem img { width: calc(var(--claim-size) * 2.26); box-shadow: 0 0 0 .11rem rgba(255,255,255,.9), 0 .3rem .8rem rgba(0,0,0,.5); }
  .hero-dots { left: 1.25rem; right: auto; }
}

/* slim facts strip directly under the hero */
.factbar { background: var(--black-2); color: #fff; border-top: 1px solid rgba(255,255,255,.08); }
.factbar dl {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .5rem 1.5rem; margin-block: 0; padding-block: .95rem;
}
.factbar dt { font-size: .62rem; letter-spacing: .15em; text-transform: uppercase; color: var(--red); font-weight: 700; }
.factbar dd { margin: .12rem 0 0; font-size: .88rem; color: #dcdde1; font-weight: 500; }

/* page header (non-home) */
.pagehead { position: relative; background: var(--black); color: #fff; overflow: hidden; }
.pagehead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.pagehead::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,15,18,.45), rgba(14,15,18,.88)); }
.pagehead .wrap { position: relative; z-index: 2; padding-block: clamp(1.75rem, 4vw, 3rem); }
.pagehead h1 { color: #fff; margin-bottom: .2em; }
.pagehead p { color: #cfcdc9; max-width: 60ch; margin: 0; font-size: .98rem; }
.pagehead.plain { background: var(--paper-2); color: var(--ink); }
.pagehead.plain::after { display: none; }
.pagehead.plain h1 { color: var(--ink); }
.pagehead.plain p { color: var(--ink-3); }

.crumbs { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .7rem; color: rgba(255,255,255,.6); }
.crumbs a { color: rgba(255,255,255,.85); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.pagehead.plain .crumbs, .pagehead.plain .crumbs a { color: var(--ink-3); }

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .62rem 1.2rem; border-radius: 100px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .88rem;
  text-decoration: none; cursor: pointer; transition: .16s;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { padding: .4rem .85rem; font-size: .8rem; }

/* =========================================================================
   Layout helpers
   ========================================================================= */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.more-link { font-size: .82rem; font-weight: 600; text-decoration: none; white-space: nowrap; }

.home-split { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.75rem); }
@media (max-width: 900px) { .home-split { grid-template-columns: 1fr; } }
.rail h2 { font-size: 1.15rem; margin-top: 0; }

/* quick-route tiles */
.tiles { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.tile {
  display: flex; align-items: center; gap: .9rem;
  padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); background: var(--paper);
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.tile:hover { border-color: #cfcbc5; box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.tile-thumb {
  flex-shrink: 0; width: 64px; height: 64px; border-radius: var(--radius-sm);
  overflow: hidden; background: var(--paper-3);
}
.tile-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.tile:hover .tile-thumb img { transform: scale(1.06); }
.tile-text { display: flex; flex-direction: column; gap: .12rem; min-width: 0; }
.tile-text strong { font-family: var(--display); font-size: 1.15rem; font-weight: 600; }
.tile-text span { font-size: .82rem; color: var(--ink-3); line-height: 1.45; }

/* =========================================================================
   Cards
   ========================================================================= */
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.card:hover { border-color: #cfcbc5; box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-3); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: .95rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.05rem; line-height: 1.25; }
.card-body h3 a { color: inherit; text-decoration: none; }
.card-body h3 a:hover { color: var(--red); }
.card-body p { margin: 0; color: var(--ink-2); font-size: .87rem; line-height: 1.5; }
.card-meta { font-size: .68rem; letter-spacing: .11em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }

.pill {
  display: inline-block; padding: .15rem .55rem; border-radius: 100px;
  font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  background: var(--red-soft); color: var(--red-dark);
}

/* compact news rows (home) */
.post-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.post-row {
  display: grid; grid-template-columns: 116px 1fr; gap: 1.1rem; align-items: start;
  padding: 1.1rem 0; border-top: 1px solid var(--line);
}
.post-row:first-child { border-top: 0; padding-top: 0; }
.post-row.no-thumb { grid-template-columns: 1fr; }
.post-thumb {
  display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-sm);
  overflow: hidden; background: var(--paper-3);
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.post-row:hover .post-thumb img { transform: scale(1.05); }
.post-row h3 { margin: .2rem 0 .3rem; font-size: 1.08rem; line-height: 1.25; }
.post-row h3 a { color: inherit; text-decoration: none; }
.post-row h3 a:hover { color: var(--red); }
.post-row p { margin: 0; font-size: .88rem; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 520px) { .post-row { grid-template-columns: 78px 1fr; gap: .85rem; } }

/* =========================================================================
   Events
   ========================================================================= */
.event-list { display: flex; flex-direction: column; gap: .65rem; list-style: none; margin: 0; padding: 0; }
.event {
  display: grid; grid-template-columns: 62px 1fr; gap: .9rem; align-items: start;
  padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
}
.event-date { text-align: center; background: var(--black); color: #fff; border-radius: var(--radius-sm); padding: .45rem .3rem; }
.event-day { display: block; font-family: var(--display); font-size: 1.45rem; line-height: 1; font-weight: 600; }
.event-month { display: block; font-size: .62rem; letter-spacing: .13em; text-transform: uppercase; color: var(--red); font-weight: 700; }
.event-year { display: block; font-size: .62rem; color: #9a9da4; }
.event h3 { margin: 0 0 .25rem; font-size: 1.02rem; }
.event-meta { display: flex; flex-wrap: wrap; gap: .2rem .8rem; font-size: .8rem; color: var(--ink-3); margin-bottom: .35rem; }
.event p { margin: 0; color: var(--ink-2); font-size: .87rem; line-height: 1.5; }
.event-list.compact .event p { display: none; }
.event.is-past { opacity: .58; }
.event.is-past .event-date { background: var(--ink-3); }

.mini-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.mini-list li { font-size: .88rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.mini-list a { text-decoration: none; font-weight: 500; }
.mini-list a:hover { text-decoration: underline; }

/* =========================================================================
   Downloads
   ========================================================================= */
.dl-group + .dl-group { margin-top: 1.75rem; }
.dl-group h2 { font-size: 1.25rem; margin-top: 0; }
.dl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.dl-item {
  display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  transition: border-color .16s, box-shadow .16s;
}
.dl-item:hover { border-color: #cfcbc5; box-shadow: var(--shadow); }
.dl-icon {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--red-soft); color: var(--red-dark);
  display: grid; place-items: center; font-size: .62rem; font-weight: 800;
}
.dl-text { flex: 1; min-width: 0; }
.dl-text strong { display: block; font-size: .95rem; }
.dl-text span { font-size: .82rem; color: var(--ink-3); }

/* =========================================================================
   Gallery
   ========================================================================= */
.album-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.album { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; text-decoration: none; background: var(--black); }
.album img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .4s, opacity .3s; }
.album:hover img { transform: scale(1.06); opacity: .6; }
.album-label { position: absolute; inset: auto 0 0 0; padding: 1.4rem .9rem .75rem; background: linear-gradient(transparent, rgba(14,15,18,.9)); color: #fff; }
.album-label strong { display: block; font-family: var(--display); font-size: 1.12rem; font-weight: 600; }
.album-label span { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #c2c4c9; }

.photo-grid { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.photo-grid a { display: block; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--paper-3); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.photo-grid a:hover img { transform: scale(1.07); }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10,11,13,.95); display: none; align-items: center; justify-content: center; padding: 2.5rem 1rem; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 85vh; object-fit: contain; border-radius: 4px; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.3rem; line-height: 1;
  display: grid; place-items: center; transition: background .15s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.25); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-count { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); color: #b8bac0; font-size: .82rem; }

/* =========================================================================
   People & links
   ========================================================================= */
.person { display: flex; gap: 1rem; align-items: flex-start; }
.person-photo {
  width: 88px; height: 88px; flex-shrink: 0; border-radius: 50%;
  overflow: hidden; background: var(--paper-3); box-shadow: var(--shadow);
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { margin: 0 0 .1rem; font-size: 1.12rem; }
.person .role { color: var(--red); font-weight: 700; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .5rem; }
.person address { font-style: normal; font-size: .85rem; color: var(--ink-2); line-height: 1.65; }
.contact-block { font-style: normal; font-size: .9rem; line-height: 1.7; }

.link-grid { display: grid; gap: .65rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.link-card {
  display: flex; flex-direction: column; gap: .3rem; align-items: flex-start;
  padding: .95rem 1.05rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); text-decoration: none; color: var(--ink);
  transition: border-color .16s, box-shadow .16s;
}
.link-card:hover { border-color: #cfcbc5; box-shadow: var(--shadow); color: var(--ink); }
.link-card strong { font-size: .98rem; }
/* Logo der verlinkten Seite, ganz oben in der Kachel. Feste Höhe, damit die
   Kacheln trotz unterschiedlicher Logoformate auf einer Linie beginnen. */
.link-logo { display: flex; align-items: center; height: 44px; margin-bottom: .25rem; }
.link-logo img { max-height: 44px; max-width: 150px; width: auto; height: auto; object-fit: contain; }
.link-host { font-size: .76rem; color: var(--red); margin-top: auto; padding-top: .3rem; }

/* =========================================================================
   Prose (CMS content)
   ========================================================================= */
/* Vereinsgeschichte auf /verein: steht unter dem aktuellen Vorstand und ist
   deutlich abgesetzt – getoentes Band, heller Textkoerper mit rotem Kopfstrich. */
.history-band { background: var(--paper-2); border-block: 1px solid var(--line); }
.history-band .prose {
  max-width: 80ch;
  background: var(--paper);
  border: 1px solid var(--line); border-top: 3px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.35rem, 3.2vw, 2.75rem);
}
@media (max-width: 640px) {
  .history-band .prose { border-radius: var(--radius-sm); }
}

.prose { max-width: 74ch; margin-inline: auto; }
.prose.wide { max-width: none; }
.prose > h2:first-child, .prose > h3:first-child, .prose > p:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1em; }
.prose li { margin-bottom: .3em; }
.prose ul.plain-list { list-style: none; padding-left: 0; }
.prose ul.plain-list li { padding-left: 1.1rem; position: relative; }
.prose ul.plain-list li::before { content: ''; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; background: var(--red); border-radius: 50%; }
.prose ol.steps { counter-reset: s; list-style: none; padding-left: 0; }
.prose ol.steps li { counter-increment: s; padding-left: 2.3rem; position: relative; margin-bottom: .6em; }
.prose ol.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--black); color: #fff;
  display: grid; place-items: center; font-size: .78rem; font-weight: 700; font-family: var(--display);
}
.prose blockquote { margin: 1.2em 0; padding: .1em 0 .1em 1.2rem; border-left: 3px solid var(--red); color: var(--ink-2); }
.prose figure { margin: 1.4em 0; }
.prose figure img { border-radius: var(--radius); }
.prose figcaption { font-size: .8rem; color: var(--ink-3); margin-top: .45rem; }
.prose figure.float-right { float: right; width: min(300px, 40%); margin: .2em 0 1.1em 1.6rem; }
.prose figure.float-right.small { width: min(190px, 30%); }
.prose h2 { clear: both; }
@media (max-width: 700px) {
  .prose figure.float-right, .prose figure.float-right.small { float: none; width: 100%; margin: 1.2em 0; }
}

.prose .callout { background: var(--red-soft); border-left: 3px solid var(--red); padding: .9rem 1.1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.4em 0; }
.prose .image-row { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 1.4em 0; }
.prose .image-row figure { margin: 0; }
.prose .image-row img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }

.table-scroll { overflow-x: auto; margin: 1.2em 0; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: .89rem; min-width: 440px; }
.data-table th, .data-table td { text-align: left; padding: .6rem .85rem; border-bottom: 1px solid var(--line); }
.data-table thead th { background: var(--paper-2); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; border-bottom: 2px solid var(--line); }
.data-table tbody tr:hover { background: var(--paper-2); }
.price-table td + td { font-variant-numeric: tabular-nums; white-space: nowrap; }

.definitions { margin: 1.2em 0; }
.definitions dt { font-weight: 700; color: var(--ink); margin-top: 1em; font-family: var(--display); font-size: 1.08rem; }
.definitions dd { margin: .25em 0 0; padding-left: .9rem; border-left: 2px solid var(--line); color: var(--ink-2); font-size: .93rem; }

.fact-grid {
  display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 1.5em 0;
}
.fact { background: var(--paper); padding: .85rem 1rem; }
.fact-label { display: block; font-size: .64rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-bottom: .15rem; }
.fact-value { font-weight: 600; font-size: .92rem; }

/* =========================================================================
   Forms
   ========================================================================= */
.field { margin-bottom: .95rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .9rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .82rem; margin-bottom: .3rem; }
input[type=text], input[type=email], input[type=password], input[type=date],
input[type=number], input[type=url], input[type=search], textarea, select {
  width: 100%; padding: .58rem .8rem; font: inherit; font-size: .92rem;
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
textarea { resize: vertical; min-height: 6rem; line-height: 1.55; }
.hp { position: absolute; left: -9999px; }

.alert { padding: .75rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1.1rem; font-size: .9rem; }
.alert-error { background: var(--red-soft); color: var(--red-dark); border: 1px solid #f3c6cd; }
.alert-ok { background: #e9f7ef; color: #1a6b3c; border: 1px solid #bfe6cf; }

/* =========================================================================
   Band & footer
   ========================================================================= */
.band { background: var(--black); color: #fff; }
.band-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  flex-wrap: wrap; padding-block: 1.5rem;
}
.band-inner strong { display: block; font-family: var(--display); font-size: 1.35rem; font-weight: 600; }
.band-inner span { font-size: .87rem; color: #a9acb4; }

.footer { background: var(--black-2); color: #a7aab2; padding-block: 2.25rem 1.25rem; font-size: .87rem; }
.footer-grid { display: grid; gap: 1.75rem; grid-template-columns: 1.7fr 1fr 1fr 1fr; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .7rem; }
.footer a { color: #cdd0d6; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.footer address { font-style: normal; line-height: 1.8; }
.footer-brand { display: flex; gap: .75rem; align-items: center; margin-bottom: .75rem; }
.footer-brand img { width: 46px; height: 46px; border-radius: 50%; background: #fff; padding: 1px; flex-shrink: 0; }
.footer-brand strong { display: block; color: #fff; font-family: var(--display); font-size: 1.02rem; text-transform: uppercase; letter-spacing: .02em; }
.footer-brand span { font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: var(--red); font-weight: 700; }
.footer-note { max-width: 42ch; margin-bottom: 1.1rem; }

/* Verbandslogos in Originalfarben — alle vier haben transparente Ränder und
   stehen mit ihren hellen Flächen gut auf dem dunklen Fußzeilen-Hintergrund. */
.partner-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; }
.partner-row a { display: block; transition: transform .2s; }
.partner-row a:hover { transform: translateY(-2px); }
.partner-row img { height: 42px; width: auto; object-fit: contain; }

.footer-bottom {
  margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; font-size: .8rem; color: #7e828b;
}

/* =========================================================================
   Misc
   ========================================================================= */
.pagination { display: flex; gap: .35rem; justify-content: center; margin-top: 2.25rem; }
.pagination a, .pagination span {
  min-width: 38px; padding: .45rem .7rem; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  text-decoration: none; color: var(--ink); font-size: .88rem;
}
.pagination a:hover { border-color: var(--ink); }
.pagination .is-current { background: var(--black); color: #fff; border-color: var(--black); }

.empty { text-align: center; padding: 2.25rem 1.25rem; color: var(--ink-3); border: 1px dashed var(--line); border-radius: var(--radius); font-size: .9rem; }

.split { display: grid; gap: var(--gap); grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split img { border-radius: var(--radius); width: 100%; }
