:root {
  --color-primary: #0b4f6c;
  --color-primary-dark: #073349;
  --color-accent: #4fb286;
  --color-accent-dark: #398f6a;
  --color-bg: #f5f8f9;
  --color-surface: #ffffff;
  --color-text: #1e2a30;
  --color-text-muted: #5b6b72;
  --color-border: #dbe4e7;
  --color-danger: #c0392b;
  --color-danger-bg: #fdecea;
  --color-success: #2e7d32;
  --color-success-bg: #eaf6ec;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(11, 79, 108, 0.08);
  --shadow-lg: 0 10px 30px rgba(11, 79, 108, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

h1, h2, h3, h4 { line-height: 1.25; margin-top: 0; color: var(--color-primary-dark); }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* Header / Nav */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 8px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-primary-dark);
}
.brand:hover { text-decoration: none; }
.brand__logo { height: 56px; width: auto; display: block; }

.main-nav { display: flex; align-items: center; gap: 1.5rem; }
.main-nav a { color: var(--color-text); font-weight: 500; padding: 0.35rem 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { text-decoration: none; border-color: var(--color-accent); }
.main-nav a.is-active { color: var(--color-primary); border-color: var(--color-primary); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 22px; background: var(--color-primary-dark); margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-dark); }
.btn--accent { background: var(--color-accent); color: #fff; }
.btn--accent:hover { background: var(--color-accent-dark); }
.btn--ghost { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn--ghost:hover { background: var(--color-primary); color: #fff; }
.btn--danger { background: var(--color-danger); color: #fff; }
.btn--small { padding: 0.35rem 0.8rem; font-size: 0.85rem; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 4.5rem 0;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,79,108,0.82) 0%, rgba(7,51,73,0.88) 100%);
  z-index: 1;
}
.hero__content { position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.75rem); margin-bottom: 0.75rem; }
.hero p { font-size: 1.1rem; max-width: 640px; color: rgba(255,255,255,0.9); }
.hero .btn-row { margin-top: 1.75rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* Sections */
.section { padding: 3.5rem 0; }
.section--alt { background: var(--color-surface); }
.section-heading { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-heading p { color: var(--color-text-muted); }

.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.5rem; }

/* News */
.news-item { border-bottom: 1px solid var(--color-border); padding: 1.75rem 0; }
.news-item:first-child { padding-top: 0; }
.news-item__meta { color: var(--color-text-muted); font-size: 0.875rem; margin-bottom: 0.35rem; }
.news-item__title { margin-bottom: 0.5rem; }

/* Forms */
.form-field { margin-bottom: 1.25rem; }
.form-field label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: var(--color-surface);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(11, 79, 108, 0.15);
}
.form-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.form-hint { font-size: 0.85rem; color: var(--color-text-muted); margin-top: 0.35rem; }

/* Alerts */
.alert { padding: 0.9rem 1.1rem; border-radius: var(--radius); margin-bottom: 1.25rem; font-size: 0.95rem; }
.alert--error { background: var(--color-danger-bg); color: var(--color-danger); }
.alert--success { background: var(--color-success-bg); color: var(--color-success); }

/* Tables (Mitgliederbereich) */
table { width: 100%; border-collapse: collapse; background: var(--color-surface); }
th, td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--color-border); }
th { color: var(--color-text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; }

/* Footer */
.site-footer { background: var(--color-primary-dark); color: rgba(255,255,255,0.85); margin-top: 3rem; }
.site-footer__inner {
  padding: 2.5rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
}
.site-footer a { color: #fff; }
.footer-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-nav--legal { font-size: 0.85rem; opacity: 0.75; gap: 1rem; }
.site-footer__copy { width: 100%; font-size: 0.85rem; opacity: 0.75; margin-top: 1rem; }

/* Responsive */
@media (max-width: 780px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.is-open { max-height: 400px; }
  .main-nav a, .main-nav .btn { width: 100%; padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--color-border); border-radius: 0; margin: 0; }
}

/* Rechtstexte */
.todo {
  background: #fff3b0;
  color: #6b5200;
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  font-weight: 600;
}
.legal-page h2 { margin-top: 2rem; }
.legal-page h2:first-child { margin-top: 0; }

/* Fisch des Jahres */
.catch-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.catch-card__meta { color: var(--color-text-muted); font-weight: 600; margin-top: -0.5rem; }

/* Galerie */
.gallery-grid {
  column-count: 3;
  column-gap: 1rem;
}
.gallery-item {
  display: block;
  width: 100%;
  margin: 0 0 1rem;
  break-inside: avoid;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--color-surface);
  box-shadow: var(--shadow);
  position: relative;
}
.gallery-item img,
.gallery-item video {
  width: 100%;
  display: block;
  transition: transform 0.25s ease;
}
.gallery-item:hover img,
.gallery-item:hover video { transform: scale(1.05); }

.gallery-item--video::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(7, 51, 73, 0.65);
  pointer-events: none;
}
.gallery-item--video::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 900px) {
  .gallery-grid { column-count: 2; }
}
@media (max-width: 560px) {
  .gallery-grid { column-count: 1; }
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(7, 51, 73, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 100;
}
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 100%; max-height: 90vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
}
