/* ============================================================
   Fechtklub Spittal an der Drau
   "Klinge & Wappen" — heraldisches Navy, Gold als Schneide.
   ============================================================ */

/* ---------- Fonts (self-hosted, keine externen Requests) ---------- */
@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/bodoni-moda-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
                 U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/bodoni-moda-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
                 U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bodoni Moda';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/bodoni-moda-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
                 U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/source-sans-3-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
                 U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/source-sans-3-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
                 U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/source-sans-3-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
                 U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  /* Wappenfarben, direkt aus dem Logo entnommen */
  --navy-900: #071a33;
  --navy-800: #0a2447;
  --navy-700: #003c84;
  --navy-600: #14508f;
  --gold-500: #d8a800;
  --gold-400: #e8c14a;
  --gold-300: #f0d68a;
  --red-600:  #c02418;

  --paper:    #f7f4ee;
  --paper-2:  #efeae0;
  --ink:      #16202e;
  --ink-soft: #4a5666;
  --light-on-dark: #dfe6f0;
  --muted-on-dark: #93a4bd;

  --line-dark:  rgba(216, 168, 0, .28);
  --line-light: rgba(22, 32, 46, .14);

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --f-display: 'Bodoni Moda', 'Didot', 'Times New Roman', serif;
  --f-body: 'Source Sans 3', 'Segoe UI', sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-lift: 0 18px 40px -18px rgba(7, 26, 51, .45);
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--f-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.68;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--gold-500);
  color: var(--navy-900);
  padding: .75rem 1.25rem;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Typografie ---------- */
.h-display {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2rem, 1.3rem + 3.2vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.h-display--light { color: #fff; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 1.1rem;
}
.eyebrow--dark { color: var(--navy-700); }
.eyebrow .rule {
  flex: 0 0 46px;
  height: 1px;
  background: currentColor;
  opacity: .55;
}
/* Auf schmalen Schirmen bricht die Linie den Satz auseinander */
@media (max-width: 520px) {
  .eyebrow { flex-wrap: wrap; gap: .5rem; letter-spacing: .16em; }
  .eyebrow .rule { display: none; }
}

.prose p + p { margin-top: 1.1em; }
.prose .lead {
  font-size: 1.15em;
  line-height: 1.6;
  color: var(--ink);
}
.prose em { font-family: var(--f-display); font-style: italic; font-size: 1.06em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 26, 51, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(216, 168, 0, .18);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(7, 26, 51, .96);
  border-bottom-color: rgba(216, 168, 0, .34);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
  color: #fff;
}
.brand-crest {
  width: 40px;
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .45));
  transition: transform .4s var(--ease);
}
.brand:hover .brand-crest { transform: rotate(-4deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--f-display);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.brand-sub {
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.1rem);
}
.nav a {
  position: relative;
  display: block;
  padding: .4rem 0;
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--light-on-dark);
  text-decoration: none;
  transition: color .25s var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav a:hover { color: #fff; }
.nav a:hover::after,
.nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav a.is-active { color: var(--gold-400); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: .6rem;
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: .5rem .25rem;
}
.nav-toggle-bars { display: grid; gap: 4px; width: 22px; }
.nav-toggle-bars i {
  display: block;
  height: 1.5px;
  background: var(--gold-500);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(7, 26, 51, .985);
    border-bottom: 1px solid rgba(216, 168, 0, .3);
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .38s var(--ease);
  }
  .nav.is-open { grid-template-rows: 1fr; }
  .nav ul {
    overflow: hidden;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav li { border-top: 1px solid rgba(255, 255, 255, .07); }
  .nav li:first-child { border-top: 0; }
  .nav a { padding: 1.05rem var(--gutter); font-size: .92rem; }
  .nav a::after { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--navy-900);
  color: #fff;
  padding-top: clamp(4rem, 9vw, 7.5rem);
  overflow: hidden;
}

/* Die drei Original-Bildstreifen als atmosphärischer Hintergrund */
.hero-bg {
  position: absolute;
  inset: -8% -14%;
  z-index: -2;
  display: grid;
  align-content: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  transform: rotate(-4deg) scale(1.16);
  opacity: .34;
}
.hero-strip {
  height: clamp(90px, 13vw, 168px);
  background-repeat: repeat-x;
  background-size: auto 100%;
  filter: grayscale(.35) contrast(1.05);
  will-change: transform;
}
.hero-strip--1 { background-image: url('../img/Slidebar-2.jpg'); animation: drift-l 90s linear infinite; }
.hero-strip--2 { background-image: url('../img/Slidebar-3.jpg'); animation: drift-r 110s linear infinite; }
.hero-strip--3 { background-image: url('../img/Slidebar-4.jpg'); animation: drift-l 100s linear infinite; }

@keyframes drift-l { from { background-position-x: 0; }    to { background-position-x: -1100px; } }
@keyframes drift-r { from { background-position-x: -1040px; } to { background-position-x: 0; } }

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 12% 8%, rgba(0, 60, 132, .62) 0%, transparent 62%),
    linear-gradient(180deg, rgba(7, 26, 51, .82) 0%, rgba(7, 26, 51, .9) 48%, var(--navy-900) 100%);
}

.hero-inner {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 8vw, 6rem);
  max-width: 900px;
}

.hero-title {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: .92;
  letter-spacing: -.02em;
  margin-bottom: 1.6rem;
}
.hero-title-line { display: block; }
.hero-title-line:nth-child(1) { font-size: clamp(2.4rem, 1.2rem + 5.4vw, 5rem); }
.hero-title-line--em {
  font-size: clamp(3.4rem, 1.2rem + 9.6vw, 8.5rem);
  font-weight: 700;
  font-style: italic;
  margin-left: clamp(.6rem, 4vw, 3.5rem);
  background: linear-gradient(96deg, var(--gold-300) 6%, var(--gold-500) 46%, #a97f00 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Die Zeilenhöhe des h1 (.92) ist kleiner als die Glyphen hoch sind. Die
     Unterlänge des „p" ragt dadurch aus der Elementbox — und weil
     background-clip:text nur innerhalb dieser Box malt, wird sie abgeschnitten.
     Diese eine Zeile bekommt deshalb genug Höhe für die Unterlänge. */
  line-height: 1.06;
}
.hero-title-line--sm {
  font-size: clamp(1rem, .7rem + 1.2vw, 1.6rem);
  font-style: normal;
  font-weight: 400;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--light-on-dark);
  margin-top: .9rem;
  font-family: var(--f-body);
}

.hero-lead {
  max-width: 40ch;
  font-size: clamp(1.05rem, 1rem + .35vw, 1.28rem);
  line-height: 1.62;
  color: var(--light-on-dark);
  border-left: 2px solid var(--gold-500);
  padding-left: 1.35rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2.4rem;
}

.btn {
  /* Overlay- und Textfarbe sind bewusst getrennt: sonst zieht der Hover-Text
     dieselbe Farbe wie die einfahrende Fläche und wird unlesbar. */
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-hover-bg: #fff;
  --btn-hover-fg: var(--navy-900);
  --btn-border: currentColor;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.9rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  overflow: hidden;
  transition: color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--btn-hover-bg);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .42s var(--ease);
  z-index: -1;
}
.btn:hover,
.btn:focus-visible { color: var(--btn-hover-fg); transform: translateY(-2px); }
.btn:hover::before,
.btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }

.btn--gold {
  --btn-bg: var(--gold-500);
  --btn-fg: var(--navy-900);
  --btn-hover-bg: var(--navy-900);
  --btn-hover-fg: var(--gold-400);
  --btn-border: var(--gold-500);
  box-shadow: 0 10px 30px -12px rgba(216, 168, 0, .7);
}
.btn--gold:hover { box-shadow: 0 16px 36px -12px rgba(216, 168, 0, .85); }

.btn--ghost {
  --btn-fg: #fff;
  --btn-hover-bg: #fff;
  --btn-hover-fg: var(--navy-900);
  --btn-border: rgba(255, 255, 255, .42);
}

/* Fakten-Leiste */
.hero-facts {
  position: relative;
  border-top: 1px solid var(--line-dark);
  background: rgba(3, 14, 30, .55);
}
.hero-facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.fact {
  padding: 1.6rem .5rem;
  text-align: center;
  border-left: 1px solid rgba(216, 168, 0, .16);
}
.fact:first-child { border-left: 0; }
.fact-num {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 1rem + 1.8vw, 2.5rem);
  font-weight: 600;
  color: var(--gold-400);
  line-height: 1;
}
.fact-label {
  display: block;
  margin-top: .45rem;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}
@media (max-width: 620px) {
  .hero-facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid rgba(216, 168, 0, .16); }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }

.section--light {
  background: var(--paper);
  position: relative;
}
.section--light::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(22, 32, 46, .045) 1px, transparent 1px);
  background-size: 22px 22px;
}
.section--light > * { position: relative; }

.section--dark {
  background: var(--navy-900);
  color: var(--light-on-dark);
  position: relative;
  overflow: hidden;
}
.section--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(0, 60, 132, .5) 0%, transparent 60%),
    radial-gradient(70% 50% at 0% 100%, rgba(0, 60, 132, .35) 0%, transparent 60%);
}
.section--dark > * { position: relative; }

.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-intro {
  margin-top: 1.1rem;
  font-size: 1.08rem;
  color: var(--muted-on-dark);
  max-width: 52ch;
}
.section--light .section-intro { color: var(--ink-soft); }

/* ---------- Willkommen ---------- */
.willkommen-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.willkommen-intro { position: sticky; top: 110px; }
.willkommen-text { color: var(--ink-soft); }
@media (max-width: 880px) {
  .willkommen-grid { grid-template-columns: 1fr; }
  .willkommen-intro { position: static; }
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.pillar {
  position: relative;
  padding: 2rem 1.6rem 1.8rem;
  background: #fff;
  border: 1px solid var(--line-light);
  border-top: 2px solid var(--navy-700);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-top-color .35s var(--ease);
}
.pillar:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
  border-top-color: var(--gold-500);
}
.pillar-mark {
  position: absolute;
  top: 1.1rem;
  right: 1.3rem;
  font-family: var(--f-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--navy-700);
  opacity: .1;
  line-height: 1;
}
.pillar h3 {
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: .6rem;
}
.pillar p { color: var(--ink-soft); font-size: .97rem; }

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-left: clamp(0px, 2vw, 20px);
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: .8rem;
  bottom: 2rem;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold-500) 8%, var(--gold-500) 88%, transparent);
  opacity: .45;
}
@media (min-width: 861px) {
  .timeline { padding-left: 0; }
  .timeline::before { left: 168px; }
}

.tl-item {
  position: relative;
  display: grid;
  gap: .35rem 2.6rem;
  padding-left: 1.75rem;
}
@media (min-width: 861px) {
  .tl-item {
    grid-template-columns: 168px minmax(0, 1fr);
    padding-left: 0;
  }
}

/* Klingenspitze auf der Zeitachse */
.tl-item::before {
  content: '';
  position: absolute;
  left: -4.5px;
  top: .72rem;
  width: 9px;
  height: 9px;
  background: var(--navy-900);
  border: 1.5px solid var(--gold-500);
  transform: rotate(45deg);
  transition: background .35s var(--ease), transform .35s var(--ease);
}
@media (min-width: 861px) {
  .tl-item::before { left: 163.5px; }
}
.tl-item:hover::before { background: var(--gold-500); transform: rotate(45deg) scale(1.25); }
.tl-item--accent::before { background: var(--gold-500); }

.tl-year {
  font-family: var(--f-display);
  font-size: clamp(1.3rem, 1rem + 1.1vw, 1.85rem);
  font-weight: 600;
  color: var(--gold-400);
  line-height: 1.15;
  letter-spacing: .01em;
}
@media (min-width: 861px) {
  .tl-year { text-align: right; padding-right: 2.4rem; }
}
.tl-year-to {
  display: inline;
  font-size: .62em;
  font-weight: 400;
  color: var(--muted-on-dark);
  letter-spacing: .02em;
}

.tl-body h3 {
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 1rem + .55vw, 1.5rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: .55rem;
}
.tl-body p { color: var(--muted-on-dark); font-size: .99rem; }
.tl-body p + p { margin-top: .85rem; }
.tl-body strong { color: var(--light-on-dark); font-weight: 600; }
.tl-note {
  font-size: .92rem !important;
  font-style: italic;
  padding-left: 1rem;
  border-left: 1px solid var(--line-dark);
  opacity: .88;
}

/* ---------- Organe ---------- */
.board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}
.board-card {
  padding: 2rem 1.5rem;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line-light);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.board-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.board-card--lead {
  background: var(--navy-700);
  border-color: var(--navy-700);
  color: #fff;
  box-shadow: 0 16px 38px -16px rgba(0, 60, 132, .6);
}
.board-role {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: .7rem;
}
.board-card--lead .board-role { color: var(--gold-400); }
.board-name {
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.25;
}
.board-contact {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .2);
  font-size: .9rem;
  line-height: 1.75;
}
.board-contact a {
  color: var(--gold-300);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
  word-break: break-word;
}
.board-contact a:hover { border-bottom-color: currentColor; }

/* ---------- Galerie ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
  gap: clamp(.6rem, 1.4vw, 1rem);
}
.gallery-item { position: relative; }
.gallery-btn {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--navy-800);
  border: 1px solid rgba(216, 168, 0, .16);
  padding: 0;
}
.gallery-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.85) contrast(1.02);
  transition: transform .6s var(--ease), filter .45s var(--ease);
}
.gallery-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(7, 26, 51, .88) 100%);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.gallery-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: .8rem .85rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: #fff;
  text-align: left;
  transform: translateY(8px);
  opacity: 0;
  transition: transform .4s var(--ease), opacity .4s var(--ease);
}
.gallery-btn:hover img,
.gallery-btn:focus-visible img { transform: scale(1.07); filter: saturate(1) contrast(1.05); }
.gallery-btn:hover::after,
.gallery-btn:focus-visible::after { opacity: 1; }
.gallery-btn:hover .gallery-cap,
.gallery-btn:focus-visible .gallery-cap { transform: translateY(0); opacity: 1; }

/* ---------- Kontakt ---------- */
.kontakt-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: stretch;
}
@media (max-width: 900px) { .kontakt-grid { grid-template-columns: 1fr; } }

.kontakt-cards { display: grid; gap: 1.1rem; }

.kcard {
  padding: 1.8rem 1.6rem;
  background: #fff;
  border: 1px solid var(--line-light);
  border-left: 2px solid var(--navy-700);
}
.kcard--hero {
  background: var(--navy-900);
  border-color: var(--navy-900);
  border-left-color: var(--gold-500);
  color: var(--light-on-dark);
}
.kcard-title {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: .9rem;
}
.kcard-day {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
}
.kcard-time {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--gold-400);
  letter-spacing: -.01em;
}
.kcard-meta {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  margin-top: .3rem;
}
.kcard-hint {
  margin-top: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-dark);
  font-size: .92rem;
  color: var(--muted-on-dark);
}
.kcard-body {
  font-style: normal;
  color: var(--ink-soft);
  line-height: 1.8;
}
.kcard-body + .kcard-body { margin-top: .9rem; }
.kcard-body strong { color: var(--ink); }
.kcard-body a {
  color: var(--navy-700);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 60, 132, .32);
  transition: border-color .25s var(--ease), color .25s var(--ease);
  word-break: break-word;
}
.kcard-body a:hover { color: var(--red-600); border-bottom-color: currentColor; }

.kcard-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: 1rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy-700);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: gap .3s var(--ease), color .25s var(--ease);
}
.kcard-link::after { content: '→'; transition: transform .3s var(--ease); }
.kcard-link:hover { color: var(--red-600); }
.kcard-link:hover::after { transform: translateX(4px); }

/* Karte mit Klick-Zustimmung (kein Drittanbieter-Request vor dem Klick) */
.kontakt-map { height: 100%; min-height: 420px; }
.map-embed {
  position: relative;
  height: 100%;
  min-height: 420px;
  background:
    linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 100%);
  border: 1px solid var(--line-light);
  overflow: hidden;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: 2rem;
  text-align: center;
  color: var(--light-on-dark);
  transition: background .35s var(--ease);
}
.map-consent:hover { background: rgba(0, 60, 132, .35); }
.map-consent-icon svg {
  width: 40px;
  height: 40px;
  color: var(--gold-500);
  transition: transform .35s var(--ease);
}
.map-consent:hover .map-consent-icon svg { transform: translateY(-4px) scale(1.06); }
.map-consent-title {
  font-family: var(--f-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: #fff;
}
.map-consent-note {
  max-width: 34ch;
  font-size: .85rem;
  line-height: 1.6;
  color: var(--muted-on-dark);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #04101f;
  color: var(--muted-on-dark);
  padding-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.6fr) minmax(0, .55fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-crest { width: 62px; margin-bottom: 1rem; }
.footer-name {
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}
.footer-since {
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-top: .35rem;
}

.footer-h {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 1rem;
}
.footer-impressum p { font-size: .9rem; line-height: 1.75; }
.footer-impressum p + p { margin-top: .9rem; }

.footer-nav li + li { margin-top: .5rem; }
.footer-nav a {
  font-size: .92rem;
  text-decoration: none;
  transition: color .25s var(--ease);
}
.footer-nav a:hover { color: var(--gold-400); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .84rem;
}
.to-top {
  text-decoration: none;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .76rem;
  font-weight: 600;
  transition: color .25s var(--ease);
}
.to-top:hover { color: var(--gold-400); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(4, 12, 24, .95);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }

.lb-figure {
  max-width: min(1000px, 100%);
  text-align: center;
  transform: scale(.96);
  transition: transform .35s var(--ease);
}
.lightbox.is-open .lb-figure { transform: scale(1); }
/* Die Originalfotos sind klein (ca. 267×200 px). Moderat hochskalieren,
   damit sie ansehnlich bleiben, ohne unscharf zu werden. */
.lb-img {
  width: min(560px, 92vw);
  max-width: 100%;
  max-height: 74vh;
  object-fit: contain;
  margin-inline: auto;
  border: 1px solid rgba(216, 168, 0, .35);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .8);
  image-rendering: auto;
}
.lb-caption {
  margin-top: 1.1rem;
  font-size: .95rem;
  letter-spacing: .04em;
  color: var(--light-on-dark);
}

.lb-close,
.lb-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #fff;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  font-size: 1.9rem;
  line-height: 1;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.lb-close:hover,
.lb-nav:hover {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--navy-900);
  transform: scale(1.08);
}
.lb-close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); font-size: 2.1rem; }
.lb-prev { left: clamp(.5rem, 2.5vw, 2rem); }
.lb-next { right: clamp(.5rem, 2.5vw, 2rem); }
@media (max-width: 600px) {
  .lb-nav { width: 44px; height: 44px; bottom: 1.5rem; top: auto; }
  .lb-prev { left: calc(50% - 56px); }
  .lb-next { right: calc(50% - 56px); }
  .lb-img { max-height: 60vh; }
}

body.no-scroll { overflow: hidden; }

/* ---------- Reveal on scroll ----------
   Nur aktiv, wenn JS läuft — sonst bleibt alles sichtbar. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
}
.js .reveal.is-in {
  animation: reveal-in .78s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes reveal-in {
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}
