/* =========================================================
   Schachburg Waidhofen/Ybbs — modern one-page styles
   Palette inspired by the club's heraldic logo:
   navy #0e1b3a, deep navy #1a2d5c, gold #c9a45d, cream #f7f3ec
   ========================================================= */

:root {
  --navy-900: #0a142b;
  --navy-800: #0e1b3a;
  --navy-700: #1a2d5c;
  --navy-600: #25407c;
  --gold-500: #c9a45d;
  --gold-400: #d9b878;
  --gold-300: #e8d2a2;
  --gold-700: #8a6a2a;
  --cream:    #f7f3ec;
  --cream-2:  #efe8d8;
  --ink:      #11172a;
  --muted:    #4b5366;
  --line:     rgba(14, 27, 58, 0.12);
  --line-light: rgba(255, 255, 255, 0.16);

  --container: 1145px;
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --shadow-sm: 0 4px 14px rgba(10, 20, 43, 0.08);
  --shadow:    0 18px 40px rgba(10, 20, 43, 0.14);
  --shadow-lg: 0 30px 70px rgba(10, 20, 43, 0.22);

  --font-sans: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Cormorant Garamond', 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--navy-700); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-500); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-800);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
}
.skip-link:focus { left: 10px; top: 10px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============= HEADER / NAV ============= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 14px 0;
  transition: background .35s ease, box-shadow .35s ease, padding .25s ease;
}
.site-header.scrolled {
  background: rgba(10, 20, 43, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 30px rgba(10, 20, 43, 0.25);
  padding: 8px 0;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.brand-mark {
  box-sizing: border-box;
  width: 70px;
  height: 60px;
  padding: 0px;
  object-fit: cover;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: #fff;
}
.brand-sub {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.primary-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  position: relative;
}
.primary-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.primary-nav a:not(.nav-cta):hover { color: #fff; }
.primary-nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.primary-nav a:not(.nav-cta).active { color: #fff; }
.primary-nav a:not(.nav-cta).active::after { transform: scaleX(1); }

.nav-cta {
  background: var(--gold-500);
  color: var(--navy-900) !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  transition: background .2s ease, transform .2s ease;
}
.nav-cta:hover { background: var(--gold-400); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============= HERO ============= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  background:
    radial-gradient(1100px 700px at 75% 20%, rgba(201, 164, 93, 0.22), transparent 60%),
    radial-gradient(900px 600px at 15% 80%, rgba(37, 64, 124, 0.55), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 45%, var(--navy-700) 100%);
}
.hero-bg::before {
  /* subtle chessboard pattern */
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    linear-gradient(45deg, #fff 25%, transparent 25%),
    linear-gradient(-45deg, #fff 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #fff 75%),
    linear-gradient(-45deg, transparent 75%, #fff 75%);
  background-size: 60px 60px;
  background-position: 0 0, 0 30px, 30px -30px, -30px 0;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.hero-inner {
  text-align: center;
  padding: 140px 0 80px;
  max-width: 920px;
}
.hero-logo {
  width: min(400px, 70vw);
  height: auto;
  object-fit: contain;
  margin: 0 auto 28px;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 22px;
  padding: 24px 28px;
  box-shadow: var(--shadow-lg);
}

.eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold-400);
  letter-spacing: 0.04em;
  margin: 0 0 14px;
}

.hero-title {
  font-family: var(--font-serif);
  margin: 0 0 22px;
  font-weight: 700;
  line-height: 1;
}
.hero-title .line-1 {
  display: block;
  font-size: clamp(1.5rem, 3.8vw, 2.6rem);
  letter-spacing: 0.08em;
}
.hero-title .line-2 {
  display: block;
  font-size: clamp(0.85rem, 1.9vw, 1.15rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-top: 6px;
  font-weight: 500;
}
.hero-title .slash { color: rgba(255,255,255,0.55); padding: 0 4px; }

.hero-lede {
  font-size: 1.12rem;
  max-width: 640px;
  margin: 0 auto 36px;
  color: rgba(255, 255, 255, 0.82);
}
.hero-lede strong { color: var(--gold-300); font-weight: 600; }

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============= BUTTONS ============= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--gold-500);
  color: var(--navy-900);
  box-shadow: 0 10px 28px rgba(201, 164, 93, 0.35);
}
.btn-primary:hover { background: var(--gold-400); color: var(--navy-900); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn-gold {
  background: var(--gold-500);
  color: var(--navy-900);
  box-shadow: 0 10px 28px rgba(201, 164, 93, 0.35);
}
.btn-gold:hover { background: var(--gold-400); color: var(--navy-900); }
.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--gold-400); color: var(--gold-300); }

/* ============= SECTIONS ============= */
.section {
  padding: clamp(70px, 9vw, 120px) 0;
}
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.78rem;
  color: var(--gold-500);
  margin: 0 0 12px;
  font-weight: 600;
}
.section-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.1;
  margin: 0 0 22px;
  color: var(--navy-800);
}
.section-title.light { color: #fff; }
.section-title .accent { color: var(--gold-500); }
.section-lede {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0;
}
.tournament .section-lede { color: rgba(255,255,255,0.78); }
.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head.center .section-lede { margin-inline: auto; }

.link-arrow {
  display: inline-block;
  margin-top: 10px;
  color: var(--navy-700);
  font-weight: 600;
  border-bottom: 2px solid var(--gold-500);
  padding-bottom: 2px;
}
.link-arrow:hover { color: var(--gold-500); }

/* Two-column layout */
.two-col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.two-col > * { min-width: 0; }

/* ============= VEREIN ============= */
.verein { background: var(--cream); }
.verein .col-text p { color: var(--muted); }
.verein .col-text strong { color: var(--navy-800); }

.col-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold-500);
}
.fact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.fact-list li {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.fact-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.fact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-700);
  font-weight: 600;
  margin-bottom: 2px;
}
.fact-value {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy-800);
  font-weight: 600;
}

/* ============= TRAININGSANKÜNDIGUNG ============= */
.training-carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
}
.training-carousel-viewport {
  overflow: hidden;
  flex: 1;
}
.training-carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}
.training-announce {
  min-width: 100%;
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.training-img-wrap {
  flex: 0 0 auto;
  width: 350px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold-500);
  padding: 16px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.training-img-wrap:hover,
.training-img-wrap:focus {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  outline: none;
}
.training-img-wrap:focus-visible {
  box-shadow: 0 12px 32px rgba(0,0,0,0.18), 0 0 0 3px rgba(185,142,57,.5);
}
.training-thumb {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius-lg) - 4px);
}
.training-text {
  flex: 1;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.training-text p { margin: 0; line-height: 1.6; }
.training-text strong { color: var(--navy-800); }
.training-text a { color: var(--gold-700); }
.training-club {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-800) !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Lightbox */
.training-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.training-lightbox.open { display: flex; }
.training-lightbox-img {
  max-width: 92vw;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.training-lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
}
.training-lightbox-close:hover { opacity: 1; }

@media (max-width: 600px) {
  .training-announce { flex-direction: column; }
  .training-img-wrap { width: 100%; }
}

/* ============= TURNIER ============= */
.tournament {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 60%, var(--navy-700) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.tournament::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(45deg, #fff 25%, transparent 25%),
    linear-gradient(-45deg, #fff 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #fff 75%),
    linear-gradient(-45deg, transparent 75%, #fff 75%);
  background-size: 80px 80px;
  background-position: 0 0, 0 40px, 40px -40px, -40px 0;
  pointer-events: none;
}
.tournament .container { position: relative; }

.tournament-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 44px;
}

.tournament-card {
  position: relative;
  background: linear-gradient(160deg, #fff 0%, var(--cream) 100%);
  border-radius: var(--radius-lg);
  padding: 40px 30px 30px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  border: 1px solid rgba(201, 164, 93, 0.4);
}
.tournament-logo {
  width: 100%;
  max-width: 260px;
  margin: 0 auto 20px;
}
.date-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  background: var(--navy-800);
  color: #fff;
  border-radius: 999px;
  padding: 10px 22px;
  box-shadow: var(--shadow);
}
.date-pill .day {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gold-400);
  line-height: 1;
}
.date-pill .mon {
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
}
.facts li {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.facts li:hover {
  background: rgba(201, 164, 93, 0.08);
  border-color: rgba(201, 164, 93, 0.5);
  transform: translateY(-2px);
}
.fact-key {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 6px;
  font-weight: 600;
}
.fact-val {
  font-size: 1.05rem;
  color: #fff;
  font-weight: 500;
}

.tournament-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 56px;
}

.tournament-video {
  margin: 0 auto;
  max-width: 760px;
  text-align: center;
}
.tournament-video video {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: #000;
}
.tournament-video figcaption {
  margin-top: 12px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============= NEWS ============= */
.news { background: var(--navy-900); }
.news .carousel-dot::after { background: rgba(255, 255, 255, 0.25); }
.news .carousel-dot.active::after { background: var(--gold); }

/* --- News Carousel --- */
.news-carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
}

.news-carousel-viewport {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.news-carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.4s ease;
  will-change: transform;
}

.carousel-btn {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(14,27,58,0.2);
  background: #fff;
  color: var(--navy);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s, opacity 0.2s;
  padding: 0;
}
.carousel-btn:hover { border-color: var(--gold); background: rgba(185,142,57,.08); }
.carousel-btn:focus-visible { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(185,142,57,.35); }
.carousel-btn:disabled { opacity: 0.3; cursor: default; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.carousel-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(14,27,58,0.2);
  transition: background 0.2s, transform 0.2s;
}
.carousel-dot.active::after {
  background: var(--gold);
  transform: scale(1.25);
}
.carousel-dot:focus-visible {
  box-shadow: 0 0 0 3px rgba(185,142,57,.45);
}

@media (max-width: 767px) {
  .news-carousel-wrapper { gap: 8px; }
  .carousel-btn { width: 36px; height: 36px; font-size: 1.3rem; }
}

.news-card {
  background: #fff;
  border: 1px solid rgba(14,27,58,0.1);
  border-radius: 10px;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 0 0 calc(33.333% - 16px);
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .news-card { flex: 0 0 calc(50% - 12px); }
}

@media (max-width: 600px) {
  .news-card { flex: 0 0 100%; }
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.news-source {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(185,142,57,.12);
  padding: 2px 8px;
  border-radius: 4px;
}

.news-date {
  font-size: .8rem;
  color: rgba(14,27,58,0.5);
}

.news-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy);
  line-height: 1.3;
  margin: 0;
}

.news-excerpt {
  font-size: .95rem;
  color: rgba(14,27,58,0.72);
  line-height: 1.65;
  margin: 0;
}

.news-card .link-arrow { margin-top: auto; }

/* ============= SPONSORS ============= */
.sponsors { background: var(--cream-2); }
.sponsor-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  align-items: center;
}
.sponsor-grid li {
  background: #fff;
  border-radius: var(--radius);
  padding: 0;
  height: 170px;
  flex: 0 0 calc((100% - 56px) / 3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.sponsor-grid li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.sponsor-grid img {
  max-width: calc(100% - 20px);
  max-height: calc(100% - 20px);
  width: auto;
  height: auto;
  object-fit: contain;
  filter: saturate(0.95);
}
.sponsor-grid li.sponsor-mobile-only { display: none; }

@media (max-width: 767px) {
  .sponsor-grid {
    gap: 12px;
  }
  .sponsor-grid li {
    height: 110px;
    padding: 0;
    overflow: hidden;
    flex: 0 0 calc((100% - 12px) / 2);
  }
  .sponsor-grid img {
    max-width: calc(100% - 20px);
    max-height: calc(100% - 20px);
    width: auto;
    height: auto;
    transform: none !important;
  }
  .sponsor-grid li.sponsor-mobile-only { display: flex; }
  .sponsor-grid li.sponsor-mobile-only img { max-height: calc(100% - 20px); }
}

/* ============= CONTACT ============= */
.contact { background: var(--cream); }
.contact .two-col { grid-template-columns: 1fr 1.15fr; }
.contact .col-text p { color: var(--muted); }
.contact-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.contact-actions .btn-primary {
  background: var(--navy-800);
  color: #fff;
  box-shadow: 0 10px 28px rgba(14, 27, 58, 0.25);
}
.contact-actions .btn-primary:hover { background: var(--navy-700); color: #fff; }
.contact-actions .btn-ghost {
  color: var(--navy-800);
  border-color: var(--navy-800);
}
.contact-actions .btn-ghost:hover {
  background: var(--navy-800);
  color: #fff;
}

.contact-card {
  background: var(--navy-800);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute;
  inset: -50% -20% auto auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(201, 164, 93, 0.18), transparent 60%);
  z-index: 0;
}
.contact-card > * { position: relative; z-index: 1; }
.contact-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 22px;
  color: var(--gold-400);
}
.contact-card address { font-style: normal; }
.contact-card dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 12px 22px;
  margin: 0;
}
.contact-card dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.6);
  align-self: center;
}
.contact-card dd {
  margin: 0;
  font-size: 1.02rem;
  color: #fff;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.contact-card dd a { color: var(--gold-300); }
.contact-card dd a:hover { color: var(--gold-500); }

/* ============= FOOTER ============= */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.7);
  padding: 36px 0;
  font-size: 0.92rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-brand img {
  box-sizing: border-box;
  width: 76px;
  height: 73px;
  padding: 0px;
  object-fit: cover;
  background: #fff;
  border-radius: 10px;
}
.footer-brand strong {
  display: block;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}
.footer-brand span {
  font-size: 0.85rem;
  color: var(--gold-400);
}
.footer-info {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-meta { margin: 0; line-height: 1.6; }
.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.btn-schachcloud {
  align-self: flex-start;
  width: fit-content;
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-schachcloud:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
@media (max-width: 640px) {
  .footer-info { text-align: left; }
}

/* ============= LEGAL DETAILS (Impressum & Datenschutz) ============= */
.legal-details {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 8px;
}
.legal-details summary {
  list-style: none;
  cursor: pointer;
  display: block;
  max-width: var(--container);
  margin-inline: auto;
  padding: 14px clamp(20px, 4vw, 40px);
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  transition: color .2s ease;
  user-select: none;
}
.legal-details summary::-webkit-details-marker { display: none; }
.legal-details summary::marker { display: none; }
.legal-details summary::after {
  content: ' ▾';
  font-size: 0.75em;
  vertical-align: middle;
}
.legal-details[open] summary::after { content: ' ▴'; }
.legal-details summary:hover { color: var(--gold-400); }

.legal-content {
  padding-bottom: 40px;
}
.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.legal-section h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-400);
  margin: 0 0 12px;
  letter-spacing: 0.04em;
}
.legal-section p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
  margin: 0 0 9px;
}
.legal-section strong { color: rgba(255, 255, 255, 0.75); }

/* ============= MODAL ============= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 20, 43, 0.78);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.modal-card {
  background: var(--navy-800);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 44px);
  width: 100%;
  max-width: 560px;
  max-height: 90dvh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(201, 164, 93, 0.15);
  transform: translateY(18px);
  transition: transform .25s ease;
}
.modal-overlay:not([hidden]) .modal-card { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 14px; right: 18px;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  opacity: .5;
  padding: 4px 8px;
  transition: opacity .2s;
}
.modal-close:hover { opacity: 1; }

#modalAnkuendigung > .modal-close {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: 18px;
  z-index: 210;
  width: 38px;
  height: 38px;
  background: rgba(10, 20, 43, 0.65);
  border-radius: 50%;
  opacity: 1;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--gold-400);
  margin: 0 0 4px;
}
.modal-sub {
  font-size: .83rem;
  color: var(--gold-300);
  opacity: .75;
  margin: 0 0 22px;
}

.hp-field { display: none !important; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}
.form-group label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gold-300);
}
.req { color: var(--gold-500); }
.opt { font-weight: 400; text-transform: none; letter-spacing: 0; opacity: .65; }

.form-group input {
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: .92rem;
  padding: 9px 13px;
  outline: none;
  transition: border-color .2s, background .2s;
  width: 100%;
}
.form-group input:focus {
  border-color: var(--gold-500);
  background: rgba(255, 255, 255, .11);
  box-shadow: 0 0 0 3px rgba(201, 164, 93, .35);
}
.form-group input::placeholder { color: rgba(247, 243, 236, .3); }

.input-char-wrap { position: relative; }
.input-char-wrap input { padding-right: 62px; }
.char-count {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: .7rem;
  color: rgba(247, 243, 236, .38);
  pointer-events: none;
  white-space: nowrap;
}

.form-msg {
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: .87rem;
  margin-bottom: 12px;
}
.form-msg.success { background: rgba(60, 180, 80, .15); color: #8ef0a0; border: 1px solid rgba(60, 180, 80, .3); }
.form-msg.error   { background: rgba(220, 60, 60, .15); color: #f0a0a0; border: 1px solid rgba(220, 60, 60, .3); }

.form-submit { width: 100%; justify-content: center; margin-top: 6px; }
.form-submit:disabled { opacity: .6; cursor: not-allowed; }

.form-consent { margin-top: 14px; }
.consent-label { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; color: var(--text-muted); line-height: 1.5; cursor: pointer; }
.consent-label input[type="checkbox"] { flex-shrink: 0; margin-top: 2px; accent-color: var(--gold); width: 16px; height: 16px; cursor: pointer; }
@media (min-width: 881px) {
  .mitfahrt-form-card .form-consent input[type="checkbox"] { width: 16px; }
}

.form-privacy-note { margin-top: 10px; font-size: .75rem; color: var(--text-muted); text-align: center; }
.form-privacy-note a { color: var(--gold); text-decoration: none; }
.form-privacy-note a:hover { text-decoration: underline; }

.radio-row { display: flex; gap: 24px; margin-top: 4px; }
.radio-label, .checkbox-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .92rem;
  color: var(--cream);
  cursor: pointer;
  margin-top: 6px;
}
.radio-label input, .checkbox-label input {
  width: 16px;
  height: 16px;
  accent-color: var(--gold-500);
  cursor: pointer;
  flex-shrink: 0;
}

.input-char-wrap textarea {
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: .92rem;
  padding: 9px 13px 28px;
  outline: none;
  resize: none;
  width: 100%;
  transition: border-color .2s, background .2s;
}
.input-char-wrap textarea:focus {
  border-color: var(--gold-500);
  background: rgba(255, 255, 255, .11);
  box-shadow: 0 0 0 3px rgba(201, 164, 93, .35);
}
.input-char-wrap textarea::placeholder { color: rgba(247, 243, 236, .3); }
.input-char-wrap .char-count { top: auto; bottom: 8px; transform: none; }

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
}
.legal-section a,
.legal-section a:visited { color: rgba(255, 255, 255, 0.8) !important; text-decoration: underline; text-underline-offset: 3px; }
.legal-section a:hover { color: var(--gold-400) !important; }

/* ============= RESPONSIVE ============= */
@media (max-width: 880px) {
  .two-col,
  .contact .two-col { grid-template-columns: 1fr; }
  .legal-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 600px) {
  .tournament-grid { grid-template-columns: 1fr; gap: 32px; }
  .facts { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-header {
    background-color: #0a1428 !important;
    z-index: 600;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .primary-nav {
    position: fixed;
    z-index: 49;
    inset: 64px 0 0 0;
    background-color: #0a1428 !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 36px 28px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform .3s ease;
    align-items: flex-start;
  }
  .primary-nav.open { transform: translateX(0); }
  .primary-nav a { font-size: 1.15rem; }
  .nav-cta { align-self: flex-start; }

  .hero-inner { padding: 130px 0 100px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }

  .hero-bg::before {
    mask-image: radial-gradient(ellipse at center, #000 55%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 55%, transparent 100%);
  }

  .modal-overlay { align-items: flex-start; padding-top: calc(84px + env(safe-area-inset-top)); }
  .modal-card { max-height: calc(100dvh - 84px - env(safe-area-inset-top) - 16px); border-radius: 12px; }

  .contact-card dl { grid-template-columns: 1fr; gap: 4px 0; }
  .contact-card dt { margin-top: 12px; }
  .contact-card dt:first-of-type { margin-top: 0; }
}

/* ============= GOOGLE REVIEW FAB ============= */
.google-fab {
  position: fixed;
  bottom: 98px;
  right: 28px;
  z-index: 900;
  display: block;
  width: 53px;
  height: 53px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: box-shadow .2s, transform .2s;
  line-height: 0;
}
.google-fab:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
  transform: translateY(-2px);
}
.google-fab img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 480px) {
  .google-fab { bottom: 91px; width: 60px; height: 60px; }
}

/* ============= WHATSAPP FAB ============= */
.wa-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  border-radius: 50px;
  padding: 6px 16px 6px 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  text-decoration: none;
  transition: box-shadow .2s, transform .2s;
  max-width: 220px;
}

.wa-fab:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
  transform: translateY(-2px);
}

.wa-fab img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.4);
}

.wa-fab-label {
  font-size: .82rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .wa-fab { padding: 6px; border-radius: 50%; }
  .wa-fab-label { display: none; }
}

/* ============= MITFAHRBÖRSE ============= */
.mitfahrt {
  background: var(--cream);
  padding: 0;
  transition: padding .2s ease;
}
.mitfahrt:has(.mitfahrt-details[open]) {
  padding: clamp(70px, 9vw, 120px) 0;
}

.mitfahrt-details {
  border-top: 1px solid rgba(14, 27, 58, 0.12);
  border-bottom: 1px solid rgba(14, 27, 58, 0.12);
}
.mitfahrt-summary {
  list-style: none;
  cursor: pointer;
  display: block;
  max-width: var(--container);
  margin-inline: auto;
  padding: 14px clamp(20px, 4vw, 40px);
  text-align: center;
  user-select: none;
}
.mitfahrt-summary::-webkit-details-marker { display: none; }
.mitfahrt-summary::marker { display: none; }
.mitfahrt-summary-title {
  display: inline;
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--navy-800);
  transition: color .2s ease;
}
@media (min-width: 768px) {
  .mitfahrt-summary-title { font-size: clamp(2rem, 4.5vw, 3.1rem); }
}
.mitfahrt-summary-sub {
  font-size: 0.4em;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.mitfahrt-summary-sep { color: var(--gold-500); }
.mitfahrt-summary-title::after {
  content: ' ▾';
  font-size: 0.7em;
  vertical-align: middle;
  color: var(--gold-500);
}
.mitfahrt-details[open] .mitfahrt-summary-title::after { content: ' ▴'; }
.mitfahrt-summary:hover .mitfahrt-summary-title { color: var(--gold-500); }

.mitfahrt-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 5px 14px;
  background: rgba(201, 164, 93, .14);
  border: 1px solid rgba(201, 164, 93, .35);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy-800);
  letter-spacing: .02em;
}

.mitfahrt-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.mitfahrt-form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold-500);
  position: sticky;
  top: 90px;
}

.mitfahrt-form-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy-800);
  margin: 0 0 22px;
}

.mitfahrt-toggle-group { margin-bottom: 6px; }

.mitfahrt-toggle-label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--navy-700);
  margin-bottom: 8px;
}

.mitfahrt-toggle {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 14px;
}

.mf-toggle-btn {
  flex: 1;
  padding: 9px 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 500;
  color: var(--muted);
  transition: background .2s ease, color .2s ease;
}
.mf-toggle-btn.active {
  background: var(--navy-800);
  color: #fff;
}
.mf-toggle-btn:hover:not(.active) {
  background: rgba(14, 27, 58, .06);
}

.mf-days-group {
  margin-bottom: 14px;
}

.mf-days-label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--navy-700);
  margin-bottom: 8px;
}

.mf-days {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}

.mf-day-label {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--navy-700);
  cursor: pointer;
  white-space: nowrap;
  text-transform: none;
  letter-spacing: 0;
}

.mf-day-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  accent-color: var(--gold-500);
  cursor: pointer;
  flex-shrink: 0;
  border: none;
  background: none;
}

/* Light-context overrides for form inputs inside the white card */
.mitfahrt-form-card .form-group label {
  color: var(--navy-700);
}
.mitfahrt-form-card .form-group input,
.mitfahrt-form-card .form-group select {
  background: #fff;
  border: 1px solid rgba(14, 27, 58, .22);
  border-radius: var(--radius-sm);
  color: #11172a;
  font-family: var(--font-sans);
  font-size: .92rem;
  padding: 9px 13px;
  outline: none;
  width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.mitfahrt-form-card .form-group input:focus,
.mitfahrt-form-card .form-group select:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 164, 93, .15);
}
.mitfahrt-form-card .form-group input::placeholder {
  color: rgba(75, 83, 102, .5);
}
.mitfahrt-form-card .form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234b5366' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-color: #fff;
  padding-right: 32px;
  cursor: pointer;
}

.mitfahrt-form-card .char-count {
  color: rgba(75, 83, 102, .45);
}

.form-hint {
  display: block;
  font-size: .73rem;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.5;
}

/* ── List ──────────────────────────────────────────────────────────────────── */
.mitfahrt-list-wrap { min-height: 160px; }

.mitfahrt-loading {
  color: var(--muted);
  text-align: center;
  padding: 32px 0;
}

.mitfahrt-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
  background: #fff;
  border-radius: var(--radius);
  border: 1px dashed rgba(14, 27, 58, .15);
  line-height: 1.7;
}

.mitfahrt-group { margin-bottom: 36px; }

.mitfahrt-group-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-800);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold-500);
}

.mitfahrt-entries {
  display: grid;
  gap: 12px;
}

.mitfahrt-entry {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}
.mitfahrt-entry:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.mitfahrt-entry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.mitfahrt-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.mitfahrt-badge.biete {
  background: rgba(201, 164, 93, .18);
  color: #7a5c1a;
}
.mitfahrt-badge.suche {
  background: rgba(37, 64, 124, .1);
  color: var(--navy-700);
}

.mitfahrt-name {
  font-weight: 600;
  font-size: .97rem;
  color: var(--navy-800);
}

.mitfahrt-entry-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px 36px;
  margin-bottom: 14px;
}

.mitfahrt-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.mitfahrt-meta-label {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--gold-500);
  font-weight: 700;
}
.mitfahrt-meta-value {
  font-size: .92rem;
  color: var(--ink);
}

.mitfahrt-notiz {
  font-size: .88rem;
  color: var(--muted);
  font-style: italic;
  margin: 0 0 12px;
  padding: 8px 12px;
  background: var(--cream);
  border-left: 3px solid var(--gold-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.mitfahrt-delete-btn {
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: .77rem;
  font-family: var(--font-sans);
  padding: 4px 10px;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.mitfahrt-delete-btn:hover {
  border-color: rgba(180, 40, 40, .4);
  color: #b42828;
}

.mitfahrt-pin-row {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.mitfahrt-pin-row.visible { display: flex; }

.mitfahrt-pin-input {
  width: 76px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: .87rem;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  outline: none;
  transition: border-color .2s ease;
}
.mitfahrt-pin-input:focus { border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(201, 164, 93, .35); }

.mitfahrt-pin-confirm {
  background: var(--navy-800);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 5px 13px;
  font-size: .8rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background .2s ease;
}
.mitfahrt-pin-confirm:hover { background: var(--navy-700); }
.mitfahrt-pin-confirm:disabled { opacity: .6; cursor: not-allowed; }

.mitfahrt-pin-cancel {
  background: none;
  border: none;
  color: var(--muted);
  font-size: .8rem;
  font-family: var(--font-sans);
  cursor: pointer;
  padding: 5px;
  transition: color .2s ease;
}
.mitfahrt-pin-cancel:hover { color: var(--ink); }

.mitfahrt-pin-msg {
  display: none;
  font-size: .77rem;
  color: #b42828;
  width: 100%;
}
.mitfahrt-pin-msg.visible { display: block; }

@media (max-width: 880px) {
  .mitfahrt-layout { grid-template-columns: 1fr; }
  .mitfahrt-form-card { position: static; }
}

/* ============= LIGHTBOX ============= */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(6, 16, 30, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
#lightbox.active { display: flex; }
#lightboxImg {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0,0,0,.7);
}

/* ============= REDUCED MOTION ============= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* Newsletter signup (Verein-Sektion) */
.card-divider { margin: 1.5rem 0; border: none; border-top: 1px solid rgba(0,0,0,0.1); }
.newsletter-benefits { margin: 0.5rem 0 1rem 1.2rem; padding: 0; }
.newsletter-benefits li { margin-bottom: 0.3rem; }
.newsletter-honeypot { position: absolute; left: -9999px; }
.newsletter-row { display: flex; gap: 0.5rem; margin: 0.5rem 0; }
.newsletter-row input[type=email] { flex: 1; min-width: 0; padding: 0.5rem; border: 1px solid #ccc; border-radius: 4px; }
.newsletter-msg { font-size: 0.9rem; min-height: 1.2em; }
.newsletter-privacy { font-size: 0.8rem; color: #666; }
.newsletter-privacy a { text-decoration: underline; }

/* Admin-Bereich (index/newsletter/subscribers) */
.admin-page { background: var(--cream); color: var(--ink); padding-top: 96px; }
.admin-page .site-header {
  background: rgba(10, 20, 43, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 30px rgba(10, 20, 43, 0.25);
}
.admin-nav {
  max-width: 900px;
  margin: 28px auto 0;
  padding: 0 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-nav-link {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--navy-700);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  background: #fff;
}
.admin-nav-link:hover { background: var(--cream-2); }
.admin-nav-link.active { background: var(--gold-500); border-color: var(--gold-500); color: #fff; }
.admin-nav-logout { margin-left: auto; }

.admin-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 18px 16px 40px;
}

@media (max-width: 600px) {
  .admin-content form[style*="inline-flex"] { flex-wrap: wrap; }
}
