/* ==========================================================================
   Dorferneuerungsverein Breitensee — Stylesheet
   Eigenentwicklung, 2026. Keine fremden Templates, keine fremden Assets.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Typografie-Skala */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);

  /* Abstände */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --radius-sm: 4px;
  --radius: 10px;
  --radius-lg: 18px;

  --font-display: "Zodiak", "Iowan Old Style", Georgia, serif;
  --font-body: "Satoshi", "Segoe UI", system-ui, sans-serif;

  --maxw: 1180px;
  --maxw-prose: 68ch;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hell (Standard) */
:root,
[data-theme="light"] {
  --bg: #faf7f0;
  --surface: #fffdf8;
  --surface-2: #f3efe4;
  --surface-offset: #ece7d9;
  --border: #ddd6c4;
  --divider: #e6e0d1;

  --text: #23281f;
  --text-muted: #5f6a58;
  --text-faint: #8d9585;
  --text-inverse: #f7f5ed;

  --primary: #2f5d3f;
  --primary-hover: #24492f;
  --primary-soft: #e3ebdf;
  --accent: #a8792a;
  --accent-soft: #f2e6cd;

  --shadow-sm: 0 1px 2px rgba(35, 40, 31, 0.06);
  --shadow: 0 10px 30px -18px rgba(35, 40, 31, 0.35);
}

/* Dunkel */
[data-theme="dark"] {
  --bg: #14170f;
  --surface: #1b1f16;
  --surface-2: #22271c;
  --surface-offset: #2a3022;
  --border: #3a412f;
  --divider: #2e3427;

  --text: #eceadf;
  --text-muted: #a8b09c;
  --text-faint: #79826d;
  --text-inverse: #14170f;

  --primary: #9dc4a4;
  --primary-hover: #b6d6bb;
  --primary-soft: #22301f;
  --accent: #d9b167;
  --accent-soft: #2e2718;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 12px 34px -18px rgba(0, 0, 0, 0.7);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  text-wrap: balance;
  font-weight: 600;
}
h1,
h2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
}
p {
  margin: 0 0 var(--space-4);
}
ul {
  margin: 0 0 var(--space-4);
  padding-left: var(--space-5);
}
li {
  margin-bottom: var(--space-2);
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 4vw, var(--space-10));
}
.section {
  padding-block: clamp(var(--space-12), 7vw, var(--space-24));
}
.section--tight {
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
}
.section--alt {
  background: var(--surface-2);
  border-block: 1px solid var(--divider);
}
.prose {
  max-width: var(--maxw-prose);
}
.stack > * + * {
  margin-top: var(--space-4);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: var(--text-inverse);
  padding: var(--space-3) var(--space-4);
  z-index: 100;
}
.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--divider);
  box-shadow: var(--shadow-sm);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--text);
}
.brand svg {
  color: var(--primary);
  flex: none;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.brand__sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 2px;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.nav a {
  font-size: var(--text-sm);
  text-decoration: none;
  color: var(--text-muted);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: color 0.2s, background-color 0.2s;
}
.nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}
.nav a[aria-current="page"] {
  color: var(--primary);
  font-weight: 600;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: var(--space-2);
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.icon-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
}
.icon-btn:active {
  transform: scale(0.94);
}
.nav-toggle {
  display: none;
}
[data-theme="dark"] .icon-sun,
.icon-moon {
  display: none;
}
[data-theme="dark"] .icon-moon {
  display: block;
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    inset: 72px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--divider);
    padding: var(--space-3) clamp(var(--space-5), 4vw, var(--space-10))
      var(--space-6);
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav a {
    padding: var(--space-3) 0;
    font-size: var(--text-base);
    border-bottom: 1px solid var(--divider);
    border-radius: 0;
  }
  .nav a:last-child {
    border-bottom: 0;
  }
  .nav-toggle {
    display: inline-grid;
  }
  .header-tools {
    margin-left: auto;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  padding: var(--space-3) var(--space-5);
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s,
    transform 0.2s var(--ease);
}
.btn--primary {
  background: var(--primary);
  color: var(--text-inverse);
}
.btn--primary:hover {
  background: var(--primary-hover);
}
.btn--ghost {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn:active {
  transform: translateY(1px);
}

/* ---------- Eyebrow / Meta ---------- */
.eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 var(--space-4);
}
.lede {
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 60ch;
}
.meta {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--divider);
}
.hero__media {
  position: absolute;
  inset: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    color-mix(in oklab, var(--bg) 70%, transparent) 0%,
    color-mix(in oklab, var(--bg) 42%, transparent) 48%,
    color-mix(in oklab, var(--bg) 88%, transparent) 100%
  );
}
[data-theme="dark"] .hero__media img {
  opacity: 0.55;
}
.hero__inner {
  position: relative;
  padding-block: clamp(var(--space-16), 9vw, var(--space-20));
  min-height: 46vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero h1 {
  font-size: var(--text-2xl);
  max-width: 22ch;
  margin-bottom: var(--space-5);
}
.hero .lede {
  max-width: 48ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

/* Kopfbereich Unterseiten */
.pagehead {
  background: var(--surface-2);
  border-bottom: 1px solid var(--divider);
  padding-block: clamp(var(--space-10), 7vw, var(--space-16));
}
.pagehead h1 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

/* ---------- Grids ---------- */
.grid {
  display: grid;
  gap: clamp(var(--space-5), 3vw, var(--space-8));
}
.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
}
.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.split {
  display: grid;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .split--reverse > *:first-child {
    order: 2;
  }
}
.section-head {
  max-width: 62ch;
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-12));
}
.section-head h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

/* ---------- Karten ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-5), 2.5vw, var(--space-8));
  box-shadow: var(--shadow-sm);
}
.card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}
.card p:last-child {
  margin-bottom: 0;
}
.card__icon {
  color: var(--primary);
  margin-bottom: var(--space-5);
}
a.card {
  display: block;
  text-decoration: none;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
a.card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.figure img {
  width: 100%;
}
.figure figcaption {
  font-size: var(--text-xs);
  color: var(--text-faint);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--divider);
}

/* ---------- Zitat ---------- */
.pullquote {
  border-left: 3px solid var(--accent);
  padding-left: clamp(var(--space-4), 3vw, var(--space-8));
  margin: 0;
}
.pullquote p {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.4;
  color: var(--text);
}
.pullquote footer {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- Kennzahlen ---------- */
.facts {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.fact__value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--primary);
  line-height: 1;
}
.fact__label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-2);
}

/* ---------- Timeline (Aktivitäten) ---------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--border);
}
.timeline > li {
  position: relative;
  padding: 0 0 var(--space-10) clamp(var(--space-5), 3vw, var(--space-8));
  margin: 0;
}
.timeline > li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
}
.timeline h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.timeline .meta {
  display: block;
  margin-bottom: var(--space-3);
}

/* ---------- Galerie ---------- */
.gallery {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.gallery__item {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--space-6);
}
.gallery__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery__label {
  position: relative;
  z-index: 1;
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.placeholder {
  background-image: repeating-linear-gradient(
    45deg,
    var(--surface-2) 0 12px,
    var(--surface) 12px 24px
  );
}

/* ---------- Slideshow ---------- */
.section--slideshow {
  padding-block: var(--space-6) var(--space-12);
}
.section--slideshow .eyebrow {
  margin-bottom: var(--space-4);
}
.slideshow__hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-5);
}
.slideshow__hint p {
  color: var(--ink-soft);
  font-size: var(--text-sm);
  max-width: 46ch;
  margin: 0;
}

.slideshow {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #1d2a20;
  box-shadow: var(--shadow-md);
}
.slideshow__track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  width: 100%;
  aspect-ratio: 2 / 1;
  align-items: stretch;
}
.slideshow__track::-webkit-scrollbar {
  display: none;
}
.slideshow__track:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}
.slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: center;
}
.slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-12) var(--space-6) var(--space-6);
  background: linear-gradient(
    to top,
    rgba(14, 22, 16, 0.9) 0%,
    rgba(14, 22, 16, 0.6) 55%,
    rgba(14, 22, 16, 0) 100%
  );
  color: #f6f3ea;
}
.slide__meta {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e0cfa4;
  margin: 0 0 0.35rem;
}
.slide__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.85rem);
  line-height: 1.15;
  color: #fff;
  margin: 0 0 0.6rem;
}
.slide__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #fff;
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 2px;
}
.slide__link:hover,
.slide__link:focus-visible {
  border-bottom-color: #fff;
}
.slideshow__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #22331f;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.slideshow__btn svg {
  width: 1.25rem;
  height: 1.25rem;
}
.slideshow__btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.06);
}
.slideshow__btn--prev {
  left: var(--space-4);
}
.slideshow__btn--next {
  right: var(--space-4);
}
.slideshow__bar {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.slideshow__count {
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(14, 22, 16, 0.65);
  color: #f6f3ea;
}
.slideshow__btn--play {
  position: static;
  transform: none;
  width: 2.1rem;
  height: 2.1rem;
  background: rgba(14, 22, 16, 0.65);
  color: #f6f3ea;
}
.slideshow__btn--play:hover {
  background: rgba(14, 22, 16, 0.85);
  transform: none;
}
.slideshow__btn--play svg {
  width: 1rem;
  height: 1rem;
}
.slideshow__btn--play .icon-play {
  display: none;
}
.slideshow[data-paused="true"] .slideshow__btn--play .icon-pause {
  display: none;
}
.slideshow[data-paused="true"] .slideshow__btn--play .icon-play {
  display: block;
}
.slideshow__hint {
  margin-top: var(--space-6);
  text-align: left;
}
@media (max-width: 640px) {
  .slideshow__track {
    aspect-ratio: 4 / 3;
  }
  .slideshow__btn--prev,
  .slideshow__btn--next {
    width: 2.25rem;
    height: 2.25rem;
    top: 38%;
  }
  .slideshow__btn--prev:hover,
  .slideshow__btn--next:hover {
    transform: translateY(-50%);
  }
  .slide__body {
    padding: var(--space-8) var(--space-5) var(--space-5);
  }
  .slide__title {
    font-size: 1.3rem;
  }
}

/* ---------- Terminhinweis ---------- */
.termine-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-5);
  align-items: start;
  padding: var(--space-8);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.termine-panel h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin: 0 0 var(--space-3);
}
.termine-panel__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
}
.termine-panel__icon svg {
  width: 1.6rem;
  height: 1.6rem;
}
@media (max-width: 640px) {
  .termine-panel {
    grid-template-columns: 1fr;
    padding: var(--space-6);
  }
}

/* ---------- Zeitgerüst ---------- */
.timeline__albums {
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.timeline__albums li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}
.timeline__albums a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.timeline__albums a:hover,
.timeline__albums a:focus-visible {
  border-bottom-color: currentColor;
}
.timeline__albums .meta {
  margin: 0;
}

/* ---------- Partner-Logos ---------- */
.partners {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #ffffff;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.partner:hover,
.partner:focus-visible {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.partner img {
  width: 100%;
  max-width: 190px;
  height: 58px;
  object-fit: contain;
  display: block;
}
.partners--wide {
  grid-template-columns: repeat(auto-fit, minmax(190px, 240px));
  justify-content: center;
}
.partner__fb {
  display: grid;
  place-items: center;
  height: 58px;
  color: #2f5d3f;
}
.partner__fb svg {
  width: 2.4rem;
  height: 2.4rem;
}
.partner__label {
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4a5a4e;
  text-align: center;
}
.card--partner .card__logo {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-5);
  display: grid;
  place-items: center;
}
.card--partner .card__logo img {
  width: 100%;
  max-width: 200px;
  height: 56px;
  object-fit: contain;
}

/* ---------- Social ---------- */
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: var(--space-4);
  font-weight: 600;
  text-decoration: none;
}
.social-link svg {
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
}
.btn svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  margin-right: 0.15rem;
}
.btn {
  align-items: center;
}
.split--social {
  align-items: start;
}

/* ---------- Fotoalben ---------- */
.album-year {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin: clamp(var(--space-10), 4vw, var(--space-14)) 0 var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}
.album-year:first-child {
  margin-top: 0;
}
.albums {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.album {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.album:hover,
.album:focus-visible {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.album__media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--surface-2);
}
.album__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.album:hover .album__media img {
  transform: scale(1.03);
}
.album__count {
  position: absolute;
  left: var(--space-3);
  bottom: var(--space-3);
  z-index: 1;
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(18, 22, 19, 0.72);
  color: #fdfcf8;
  backdrop-filter: blur(4px);
}
.album__body {
  padding: var(--space-5) var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.album__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.25;
  margin: 0;
}
.album__meta {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0;
}
.album__cta {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
[data-theme="dark"] .album__cta {
  color: var(--primary-soft, #a9cbb2);
}
.album__cta svg {
  width: 1em;
  height: 1em;
  flex: none;
}

/* ---------- Tabellen ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
th,
td {
  text-align: left;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--divider);
  vertical-align: top;
}
th {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
  background: var(--surface-2);
}
tbody tr:last-child td {
  border-bottom: 0;
}

/* ---------- Hinweis / Callout ---------- */
.note {
  background: var(--accent-soft);
  border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-sm);
}
.note strong {
  color: var(--text);
}

/* ---------- Formular ---------- */
.form {
  display: grid;
  gap: var(--space-5);
}
.field {
  display: grid;
  gap: var(--space-2);
}
.field label {
  font-size: var(--text-sm);
  font-weight: 600;
}
.field input,
.field textarea {
  font: inherit;
  font-size: var(--text-sm);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.field textarea {
  min-height: 150px;
  resize: vertical;
}
.field__hint {
  font-size: var(--text-xs);
  color: var(--text-faint);
}
.form__row {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 640px) {
  .form__row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Kontaktliste ---------- */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-4);
}
.contact-list a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--divider);
  padding-block: clamp(var(--space-10), 5vw, var(--space-16))
    var(--space-8);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.footer-grid {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.site-footer h2 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
  margin-bottom: var(--space-4);
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li {
  margin-bottom: var(--space-2);
}
.site-footer a {
  text-decoration: none;
  color: var(--text-muted);
}
.site-footer a:hover {
  color: var(--primary);
  text-decoration: underline;
}
.footer-bottom {
  margin-top: var(--space-10);
  padding-top: var(--space-5);
  border-top: 1px solid var(--divider);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--text-faint);
}

/* ---------- Motion ---------- */
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal-ready .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
