@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/dm_sans/DMSans-VariableFont_opsz,wght.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/dm_sans/DMSans-Italic-VariableFont_opsz,wght.ttf') format('truetype');
  font-style: italic;
  font-weight: 100 1000;
  font-display: swap;
}

@font-face {
  font-family: 'DM Serif Display';
  src: url('../fonts/dm_serif_display/DMSerifDisplay-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'DM Serif Display';
  src: url('../fonts/dm_serif_display/DMSerifDisplay-Italic.ttf') format('truetype');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #1B5FAA;
  --blue-light: #E8F0FA;
  --blue-dark: #0D3D72;
  --green: #2E9B6E;
  --green-light: #E6F5EE;
  --green-dark: #1A6647;
  --gold: #D4A828;
  --gold-light: #FDF5DC;
  --gold-dark: #8A6C0F;
  --gray-100: #F7F7F5;
  --gray-200: #EBEBEA;
  --gray-600: #6B6B68;
  --gray-900: #1A1A18;
  --white: #FFFFFF;
  --radius: 8px;
  --radius-lg: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--gray-900);
  background: var(--white);
  font-size: 17px;
  line-height: 1.65;
}

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-badge {
  display: flex;
  align-items: baseline;
  gap: 0;
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

.logo-badge .w { color: var(--blue); }
.logo-badge .i { color: var(--gold); }
.logo-badge .n { color: var(--green); }

.nav-tagline {
  font-size: 11px;
  color: var(--gray-600);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  background: var(--white);
  color: var(--gray-900);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 10px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray-600);
  font-size: 15px;
  font-weight: 400;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--blue); }

.nav-links a.btn-primary,
.nav-links a.btn-primary:hover {
  color: var(--white);
}

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover { background: var(--blue-dark); }

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}

.btn-outline:hover {
  background: var(--blue-light);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
}

.btn-gold:hover { background: var(--gold-dark); }

/* HERO */
.hero {
  background: var(--gray-100);
  padding: 80px 2rem 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -100px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: var(--blue-light);
  opacity: 0.6;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: 100px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: var(--green-light);
  opacity: 0.5;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  background: var(--blue-light);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--gray-900);
  margin-bottom: 24px;
  max-width: 700px;
}

.hero h1 em {
  font-style: italic;
  color: var(--blue);
}

.hero-sub {
  font-size: 19px;
  color: var(--gray-600);
  max-width: 540px;
  margin-bottom: 40px;
  font-weight: 300;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--gray-200);
  flex-wrap: wrap;
}

.stat-item {}
.stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 36px;
  color: var(--gray-900);
  line-height: 1;
}
.stat-num span { color: var(--blue); }
.stat-label {
  font-size: 14px;
  color: var(--gray-600);
  margin-top: 4px;
  font-weight: 400;
}

/* SECTIONS */
section { padding: 80px 2rem; }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--gray-900);
}

.section-sub {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 520px;
  font-weight: 300;
}

.section-header {
  margin-bottom: 56px;
}

/* VORTEILE */
.vorteile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.vorteil-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
}

.vorteil-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.vorteil-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
}

.icon-blue { background: var(--blue-light); }
.icon-green { background: var(--green-light); }
.icon-gold { background: var(--gold-light); }

.vorteil-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--gray-900);
}

.vorteil-card p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* MITGLIEDER WERDEN */
.join-section {
  background: var(--blue-dark);
  color: var(--white);
}

.join-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.join-content .section-label { color: var(--gold-light); }
.join-content .section-title { color: var(--white); }
.join-content .section-sub { color: rgba(255,255,255,0.7); }

.steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-text h4 {
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 4px;
}

.step-text p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

.join-form-side {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: var(--gray-900);
}

.join-form-side h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 6px;
}

.join-form-side p {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus { border-color: var(--blue); }

.form-feedback {
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.5;
}

.form-feedback.is-success {
  background: var(--green-light);
  color: var(--green-dark);
  border: 1px solid rgba(46, 155, 110, 0.35);
}

.form-feedback.is-error {
  background: #FEEFEF;
  color: #8E1F1F;
  border: 1px solid rgba(164, 28, 28, 0.3);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: 12px;
  color: var(--gray-600);
  margin-top: 12px;
  line-height: 1.5;
}

/* UBER UNS */
.ueber-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.ueber-visual {
  position: relative;
}

.ueber-visual-box {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
}

.quote-mark {
  font-family: 'DM Serif Display', serif;
  font-size: 80px;
  color: var(--blue-light);
  line-height: 0.7;
  position: absolute;
  top: 24px;
  left: 28px;
}

.quote-text {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--gray-900);
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

.quote-author {
  margin-top: 20px;
  font-size: 14px;
  color: var(--gray-600);
  font-weight: 500;
}

.accent-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--gold);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  box-shadow: 0 4px 20px rgba(212, 168, 40, 0.25);
}

.accent-badge .big { font-size: 28px; font-family: 'DM Serif Display', serif; display: block; }

.ueber-text p {
  font-size: 17px;
  color: var(--gray-600);
  margin-bottom: 20px;
  font-weight: 300;
}

.ueber-text p strong {
  color: var(--gray-900);
  font-weight: 500;
}

/* MITGLIEDER */
.mitglieder-section { background: var(--gray-100); }

.mitglieder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 0;
}

.mitglied-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: block;
  text-align: center;
  border: 1px solid var(--gray-200);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.mitglied-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.mitglied-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  margin: 0 auto 14px;
  color: var(--white);
}

.mitglied-logo {
  width: 140px;
  height: 46px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mitglied-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.mitglied-card h4 {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-900);
  margin-bottom: 4px;
  text-decoration: none;
}

.mitglied-card p {
  font-size: 13px;
  color: var(--gray-600);
}

/* EVENTS */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.events-grid > .event-card:only-child {
  grid-column: span 2;
}

.event-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.event-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

.event-date-bar {
  background: var(--green);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.event-date-num {
  font-family: 'DM Serif Display', serif;
  font-size: 36px;
  color: var(--white);
  line-height: 1;
}

.event-date-info {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
}

.event-date-info strong {
  display: block;
  color: var(--white);
  font-size: 15px;
}

.event-body {
  padding: 24px;
}

.event-body h3 {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--gray-900);
}

.event-body p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.55;
  margin-bottom: 20px;
}

.event-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--green-light);
  color: var(--green-dark);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
}

.event-location {
  margin-bottom: 18px;
}

.event-location-title {
  font-size: 14px;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.event-map-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: var(--white);
  border: 1px solid var(--green-dark);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.event-map-badge::after {
  content: '\2197';
  font-size: 11px;
  line-height: 1;
}

.event-map-badge:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-1px);
}

.event-map-badge:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.event-external-note {
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 12px;
  color: var(--gray-600);
}

/* CTA BANNER */
.cta-banner {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  padding: 80px 2rem;
  text-align: center;
  color: var(--white);
}

.cta-banner h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400;
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  max-width: 500px;
  margin: 0 auto 36px;
  font-weight: 300;
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-white {
  background: var(--white);
  color: var(--blue);
}

.btn-white:hover { background: var(--blue-light); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
}

.btn-ghost:hover { border-color: var(--white); }

/* FOOTER */
footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.7);
  padding: 48px 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  color: var(--white);
}

.footer-logo .w { color: var(--blue); }
.footer-logo .i { color: var(--gold); }
.footer-logo .n { color: var(--green); }

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--white); }

.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  width: 100%;
}

/* THREE COLOR STRIP */
.color-strip {
  height: 4px;
  display: flex;
}
.color-strip div { flex: 1; }
.cs-blue { background: var(--blue); }
.cs-gold { background: var(--gold); }
.cs-green { background: var(--green); }

/* SCROLL TO TOP */
.scroll-top-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(13, 61, 114, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, background 0.2s, visibility 0.2s;
  z-index: 200;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--blue-dark);
}

.scroll-top-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* LEGAL PAGES */
.legal-hero {
  background: var(--gray-100);
  padding: 64px 2rem 56px;
  border-bottom: 1px solid var(--gray-200);
}

.legal-hero .section-inner {
  max-width: 900px;
}

.legal-content {
  padding: 56px 2rem 80px;
}

.legal-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.legal-card h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 400;
  color: var(--gray-900);
  margin: 28px 0 12px;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 20px 0 8px;
}

.legal-card p,
.legal-card li {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.7;
}

.legal-card ul {
  margin: 10px 0 14px 18px;
}

.legal-card a {
  color: var(--blue);
  text-decoration: none;
}

.legal-card a:hover {
  text-decoration: underline;
}

.legal-meta {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--gray-600);
  background: var(--blue-light);
  padding: 6px 12px;
  border-radius: 999px;
}

@media (max-width: 768px) {
  nav {
    padding: 0 1rem;
    position: sticky;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 1rem;
    right: 1rem;
    z-index: 120;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  nav.is-open .nav-links {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
  }

  .nav-links a.btn {
    text-align: center;
    margin-top: 6px;
  }

  nav.is-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  nav.is-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  nav.is-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero { padding: 52px 1rem 60px; }
  section { padding: 60px 1rem; }
  .events-grid { grid-template-columns: 1fr; }
  .events-grid > .event-card:only-child { grid-column: span 1; }
  .join-inner { grid-template-columns: 1fr; }
  .ueber-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .scroll-top-btn {
    right: 12px;
    bottom: 12px;
  }
  .legal-hero {
    padding: 46px 1rem 42px;
  }
  .legal-content {
    padding: 42px 1rem 60px;
  }
  .legal-card {
    padding: 24px;
  }
}
