:root {
  --bg: #f5f9f8;
  --bg-alt: #ffffff;
  --primary: #284c43;
  --primary-dark: #284c43;
  --secondary: #95AFA8;
  --text: #222;
  --muted: #777;
  --danger: #d64545;
  --border: #ddd;
  --herotext: #ffffff;
}



@font-face {
  font-family: "southern-barn";
  src: url("assets/fonts/Southern Barn.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}


.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  
  justify-content: flex-start;
  gap: 1.5rem;
  padding: 2rem 6vw;
  background: transparent;
  box-shadow: none;
  backdrop-filter: blur(0px);
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.header-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
}

.logo {
  flex: 0 0 auto;
  margin-right: 1.5rem;
}

.logo img {
  display: block;
  height: 90px;
  width: auto;
  transition: transform 0.45s cubic-bezier(.16, .84, .44, 1), filter 0.45s cubic-bezier(.16, .84, .44, 1);
  cursor: pointer;
}

.logo img:hover {
  transform: scale(1.04);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
  justify-content: flex-end;
}

.main-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;          
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  position: relative;
  text-decoration: none;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  transform: scale(1.045);
  color: var(--primary);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 999px;
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.main-nav a.nav-active::after {
  width: 100%;
}

.site-header:not(.header-scrolled) .main-nav a {
  color: #ffffff;
}

.site-header.header-scrolled .main-nav a {
  color: var(--text);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 14px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.nav-toggle__bars {
  width: 20px;
  height: 14px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after,
.nav-toggle__bars span {
  content: "";
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle__bars::before {
  transform: translateY(6px) rotate(45deg);
}

body.nav-open .nav-toggle__bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

body.nav-open .nav-toggle__bars span {
  opacity: 0;
}

.auth-controls {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 1.5rem;     
}

.lock-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.lock-icon img {
  width: 35px;
  height: 35px;
}

.lock-toggle:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.lock-icon { display: none; }
.logged-out .lock-icon--closed { display: inline-block; }
.logged-in  .lock-icon--open   { display: inline-block; }

.logout-label {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--text);
  cursor: pointer;
  display: none;
}

.logged-in .logout-label { display: inline-flex; }
.logout-label:hover { text-decoration: underline; }

.logged-out .requires-login { display: none !important; }
.logged-out #welcome-box,
.logged-out #logout-btn { display: none; }
.logged-in #login-form { display: none; }
.logged-in #welcome-box { display: block; }
.logged-in #logout-btn { display: inline-flex; }

.main-nav a.nav-active {
  color: var(--primary);
}


.btn {
  border-radius: 999px;
  border: none;
  padding: 0.45rem 1.1rem;
  font-size: 0.95rem;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); }
.btn.secondary { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn.secondary:hover { background: #eee; }
.btn:active { transform: translateY(1px); }


.hero {
  min-height: 68vh;
  padding: 7.5rem 5vw 8rem;
  background-image: url("assets/bilder/hero_slide_1.webp");
  background-size: cover;
  background-position: 50% 25%; 
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1.25rem;
  color: var(--herotext);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-next-image, url("assets/bilder/hero_slide_2.webp"));
  background-size: cover;
  background-position: 50% 25%; 
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.9s ease-out;
  will-change: opacity;
  z-index: 0;
}

.hero.hero-show-alt::after {
  opacity: 1;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 1.8rem;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  z-index: 2;
  margin-bottom: 47px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.85);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.hero-dot.is-active {
  background: #ffffff;
  border-color: #ffffff;
  transform: scale(1.05);
}

.hero-dot:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.15));
  z-index: 1;
}

.hero-copy {
  max-width: 42rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  z-index: 2;
  margin-left: 1rem;
  margin-top: 5rem;
}

.hero-copy h1 {
  font-size: clamp(3rem, 3.4vw, 2rem);
  margin: 0 0 0.35rem;
  color: var(--herotext);
  font-family: "southern-barn", serif;
  font-weight: 400;
  line-height: 1.1;
}

.hero-copy p {
  max-width: 34rem;
  margin: 0;
  color: var(--herotext);
  line-height: 1.6;
}

.hero-cta {
  margin-top: 0.8rem;
  padding: 0.65rem 1.3rem;
  width: 200px;
  background: var(--primary);
  border: 2px solid #ffffff08;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.hero-cta:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.hero-close {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.06);
  color: #333;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.hero-close:hover {
  background: rgba(0,0,0,0.1);
}

.hero-login:not(.is-open) .hero-close {
  display: none !important;
}

.logged-in .hero-close {
  display: none !important;
}

.logged-in #heroCta {
  display: none;
}


.hero-wave {
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  z-index: 2;
  pointer-events: none;
}

.hero-login {
  position: absolute;
  left: 50%;
  bottom: -4rem;
  transform: translateX(-50%);
  max-width: 420px;
  width: min(90%, 420px);
  z-index: 3;
}

.login-toggle {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.9rem;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  animation: pulse 2.4s ease-out infinite;
}

.login-toggle:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(40, 76, 67, .4); }
  70% { box-shadow: 0 0 0 18px rgba(40, 76, 67, 0); }
  100% { box-shadow: 0 0 0 0 rgba(40, 76, 67, 0); }
}

.login-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 0.4s ease, opacity 0.25s ease, transform 0.4s ease;
}

.hero-login.is-open .login-panel,
.hero-login:hover .login-panel {
  max-height: 400px;
  opacity: 1;
  transform: translateY(0);
  overflow: visible;
}

.hero-login.force-closed .login-panel,
.hero-login.force-closed:hover .login-panel {
  max-height: 0 !important;
  opacity: 0 !important;
  transform: translateY(-6px) !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.hero-login:hover .login-toggle {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .3s ease, transform .3s ease;
}

.login-form {
  position: relative;
  margin-top: 8rem;
  background: #ffffff;
  border-radius: 2.2rem;
  padding: 3.8rem 2.5rem 2.4rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  border: none;
  text-align: center;
}

.login-form h2 {
  margin: 0 0 1.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #111;
}

.login-icon-wrapper {
  position: absolute;
  left: 50%;
  top: -2.4rem;
  transform: translateX(-50%);
}

.login-icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.login-icon-circle img {
  width: 45px;
  height: 45px;
}

.login-form label {
  display: block;
  text-align: left;
  margin: 0.3rem 0 0.25rem;
  font-size: 0.85rem;
  color: #111;
}

.login-form input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  border: 2px solid #d5e1dd;
  background: #fdfefe;
  font-size: 0.95rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  margin-bottom: 0.85rem;
}

.login-form input:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(40, 76, 67, 0.12), inset 0 2px 4px rgba(0, 0, 0, 0.06);
  background: #ffffff;
}

.login-form .btn.primary {
  width: 100%;
  margin-top: 1.5rem;
  border-radius: 999px;
  padding: 0.8rem 1rem;
  font-weight: 600;
  background: var(--primary);
}

.login-form .btn.primary:hover {
  background: var(--primary-dark);
}

.error-msg {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  min-height: 1.2em;
  color: var(--danger);
}

.hero-welcome-card {
  margin-top: 2rem;
  max-width: 580px;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 35px rgba(0,0,0,0.22);
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
}

.hero-welcome-card .welcome-top {
  background-color: #4c6e65;
  color: #ffffff;
  text-align: center;
  padding: 1rem 0.2rem 0.2rem;
}

.hero-welcome-card .welcome-top h2 {
  font-size: 2rem;
  font-family: "kiln-sans", sans-serif;
  margin: 0;
  letter-spacing: 1px;
}

.hero-welcome-card .welcome-top .welcome-small {
  font-size: 1rem;
  margin-top: 6px;
  opacity: 0.9;
}

.hero-welcome-card .welcome-bottom {
  background: #ffffff;
  padding: 2.3rem 2rem;
  color: #333;
  text-align: center;
}

.hero-welcome-card .welcome-kicker {
  margin: 0 0 0.3rem;
  font-weight: 600;
  color: #284c43;
  font-size: 1.1rem;
}

.hero-welcome-card .welcome-bottom p {
  line-height: 1.2;
}

@keyframes heroWelcomeSlideUp {
  0% { opacity: 0; transform: translate(-50%, 30px); }
  100% { opacity: 1; transform: translate(-50%, 0); }
}

body.logged-in #welcome-box {
  animation: heroWelcomeSlideUp 0.6s ease-out 0.2s forwards;
}


.nasch-info {
  max-width: 1100px;
  margin: 6rem auto;
  padding: 0 2rem;
}

.nasch-info-wrapper {
  margin-top: 14rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.nasch-info-text h2 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-family: "kiln-sans", sans-serif;
  font-weight: 400;
  margin-bottom: 1rem;
  color: #2e4e47;
}

.nasch-info-text p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-top: 0.6rem;
  color: #333;
}

.nasch-info-image img {
  width: 100%;
  max-width: 440px;
  border-radius: 18px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}


.section {
  padding: 1rem 5vw;
}

.section.alt {
  background: var(--bg-alt);
}

.section-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

.section h2 {
  margin-top: 100px;
  font-size: 2rem;
}

.section-inner h2 {
  text-align: center;
}

.section p {
  line-height: 1.6;
}


#anmeldung {
  position: relative;
  overflow: visible;
}

#anmeldung::before {
  content: "";
  position: absolute;
  top: 190px;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: clamp(520px, 70vh, 820px);
  background: #EAEFEE;
  z-index: 0;
}

#anmeldung::after {
  content: "";
  position: absolute;
  top: 190px;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: clamp(520px, 70vh, 820px);
  background-repeat: no-repeat;
  border-radius: 16px;
  z-index: 0;
  pointer-events: none;
}

#anmeldung .anmeldung-title,
#anmeldung .anmeldung-sub,
#anmeldung .section-inner {
  position: relative;
  z-index: 1;
}

#download {
  position: relative;
  overflow: visible;
  margin-top: clamp(5rem, 8vh, 8rem);
}

#download::before {
  content: "";
  position: absolute;
  inset: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background: #EAEFEE;
  z-index: 0;
  top:70px;
  bottom: -60px;
}

#download::after {
  content: "";
  position: absolute;
  inset: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  top: 70px;
  bottom: -60px;
  background-image: url("assets/svg/gemuese.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 16px;
  z-index: 0;
  pointer-events: none;
}

#download h2,
#download .downloads-section {
  position: relative;
  z-index: 1;
}

#download h2 {
  font-family: "southern-barn", serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 3vw + 1rem, 3.6rem);
  line-height: 1.1;
  letter-spacing: 0.5px;
  color: var(--primary);
}


.section-inner.anmeldung-layout {
  display: flex;
  flex-wrap: nowrap;
  gap: 2rem;
  align-items: stretch;
  max-width: 1100px;
}

.section-inner.downloads-section {
  max-width: 1100px;
}

.anmeldung-title {
  text-align: center;
  margin-bottom: 1rem;
  margin-top: 15rem;
  font-size: clamp(2.6rem, 3vw + 1rem, 3.6rem);
  line-height: 1.1;
  font-family: "southern-barn", serif;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--primary);
}

.anmeldung-sub {
  text-align: center;
  margin-bottom: 6rem;
  line-height: 1.5;
  color: #555;
}

.anmeldung-text-form { flex: 1 1 50%; }

.anmeldung-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 2rem 2.5rem 2.2rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  max-width: 520px;
}

.anmeldung-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.5rem;
}

.anmeldung-card-header h3 { margin: 0; }

.anmeldung-step-indicator {
  font-size: 0.9rem;
  font-weight: 500;
  color: #777;
}

.form-grid label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  position: relative;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
  accent-color: #284c43;
}

.form-grid input[type="text"],
.form-grid input[type="email"] {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #ddd;
  font-size: 1rem;
}

.visually-hidden-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.input-icon {
  padding-left: 3.4rem;
  background-repeat: no-repeat;
  background-position: 0.8rem center;
  background-size: 1.2rem;
}

.input-icon--mail {
  padding-left: 3.2rem;
  background-image: url(assets/svg/email.svg);
}


.input-icon--phone {
  padding-left: 3.2rem;
  background-image: url(assets/svg/telefon.svg);
}

input.input-icon.input-icon--mail {
    padding-left: 2.7rem;
}

input.input-icon.input-icon--phone {
    padding-left: 2.7rem;
}



.fieldset {
  position: relative;
  border: 1px solid #dcdcdc;
  border-radius: 16px;
  padding: 1.9rem 1.25rem 1.1rem;
  margin: 1rem 0;
  background: #ffffff;
}

.fieldset legend {
  position: absolute;
  top: 0.8rem;
  left: 1.25rem;
  color: rgba(85, 85, 85, 0.7);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0;
  margin: 0;
}

.fieldset label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.55rem 0;
  color: #555;
  font-size: 0.95rem;
  font-weight: 400;
}

.fieldset label:first-of-type {
  margin-top: 0.8rem; 
}

.fieldset input[type="checkbox"],
.fieldset input[type="radio"] {
  flex: 0 0 auto;
  margin: 0;
  width: 18px;
  height: 18px;
}

.anmeldung-card .btn.primary {
  width: 100%;
}

.form-step { display: none; }
.form-step.active { display: block; }

.step-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.2rem;
}

.step-actions .btn {
  flex: 1 1 0;
}

.anmeldung-card-logged-out { display: none; }
.anmeldung-card-logged-in  { display: none; }
body.logged-out .anmeldung-card-logged-out { display: block; }
body.logged-in  .anmeldung-card-logged-in  { display: block; }

.anmeldung-map {
  flex: 1 1 48%;
  min-width: 38%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.anmeldung-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.form-success {
  display: none;
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  text-align: center;
  max-width: 320px;
  margin: 2rem auto 0;
  font-size: 1rem;
}

.form-success.is-visible { display: block; }

.form-success-card {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border-radius: 24px;
  padding: 2rem 2.2rem;
  max-width: 360px;
  width: calc(100% - 3rem);
  text-align: center;
  box-shadow: 0 18px 45px rgba(0,0,0,.25);
  z-index: 9999;
  opacity: 0;
  transform-origin: center;
  animation: popIn .35s ease-out forwards;
}

.form-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: #284c43;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkmark { color: #fff; font-size: 2rem; }

.form-success-card h3 {
  margin: 0 0 .5rem;
  font-size: 1.4rem;
  color: #222;
}

.form-success-card p {
  margin: 0;
  font-size: .95rem;
  color: #555;
}

@keyframes popIn {
  from { opacity: 0; transform: translate(-50%, -40%) scale(.9); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}


.member-welcome {
  display: none;
  max-width: 1100px;
  margin: 2.5rem auto 0;
  padding: 0 5vw 2rem;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 2.5rem;
  text-align: left;
}

.logged-in .member-welcome {
  display: grid;
}

.member-welcome__text h2 {
  margin: 0 0 0.25rem;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 400;
  color: var(--primary);
}

.logged-in .member-welcome__text h2 {
  font-family: "southern-barn", serif;
}

.member-welcome__lead {
  margin: 0 0 0.4rem;
  font-weight: 500;
  color: #222;
}

.member-welcome__kicker {
  margin: 0.4rem 0 0.2rem;
  font-weight: 600;
  color: #284c43;
}

.member-welcome__text p {
  margin: 0 0 0.65rem;
  color: #222;
  line-height: 1.6;
  max-width: 46ch;
  font-size: 1.1rem;
}

.member-welcome__image img {
  width: 100%;
}


.downloads-section h2 {
  font-size: 2.1rem;
}

.download-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.download-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 1.8rem 3rem;
  display: flex;
  gap: 1.75rem;
  align-items: stretch;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.download-card__text {
  flex: 1 1 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.download-card__text h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.download-card__text p {
  margin: 0 0 1.4rem;
  color: #555;
  line-height: 1.5;
}

.download-card__image {
  flex: 0 0 260px;
  height: 150px;
  border-radius: 18px;
  overflow: hidden;
}

.download-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem;
  border-radius: 999px;
  border: 2px solid #284c43;
  background: #ffffff;
  color: #284c43;
  font-size: 0.9rem;
  width: 180px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.download-btn__icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background-color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.download-btn__icon img { width: 14px; }
.download-btn__label { white-space: nowrap; }

.download-btn:hover {
  background: #284c43;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  transform: translateY(-1px);
}



.timeline {
  position: relative;
  max-width: 900px;
  margin: 120px auto 0;
  padding-top: 20px;
  z-index: 1;
}

.timeline__line {
  position: absolute;
  top: 50px;
  bottom: 50px;
  left: 50%;
  width: 4px;
  transform: translateX(-50%);
  background: var(--primary-dark);
}

#mitgliederversammlung .timeline__line {
  top: 70px;
  bottom: 60px;
}

#mitgliederversammlung .timeline__line {
  background: #cfcfcf;
  overflow: hidden;
}

#mitgliederversammlung .timeline__line::after {
  content: "";
  position: absolute;
  inset: 0;
  height: var(--mv-progress, 0%);
  background: var(--primary-dark);
  transform-origin: top;
  transition: height 0.3s ease-out;
}

#tagung .timeline__line {
  top: 0;
  bottom: 200px;
}

#tagung .timeline__line {
  background: #cfcfcf;
  overflow: hidden;
}

#tagung .timeline__line::after {
  content: "";
  position: absolute;
  inset: 0;
  height: var(--tagung-progress, 0%);
  background: var(--primary-dark);
  transform-origin: top;
  transition: height 0.3s ease-out;
}

#tagung .timeline__item--start {
  margin-top: -40px;
}

#tagung .timeline__item--end {
  margin-top: 70px;
}

#tagung .timeline__item--end .timeline__content {
  margin-top: 70px;
}

.timeline__item {
  position: relative;
  margin: 40px 0;
  padding-top: 0.6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 70px;
}

.timeline__item--start {
  margin-top: 0;
}

.timeline__item--start .timeline__content,
.timeline__item--start .timeline__header {
  grid-column: 1 / 2;
  text-align: right;
  padding-bottom: 20px;
}

.timeline__header h1 {
  font-size: 2.4rem;
  margin: 0 0 4px;
  font-family: "southern-barn", serif;
  font-weight: 400;
  color: var(--primary);
}

.timeline__header p {
  margin: 0;
  font-weight: 400;
  font-size: 1rem;
}

.timeline__marker {
  position: absolute;
  left: 50%;
  top: 1em;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 0 6px rgba(218, 231, 228, 1);
}

.timeline__marker--big {
  width: 30px;
  height: 30px;
  box-shadow: 0 0 0 6px rgba(218, 231, 228, 1);
}

#tagung .timeline__item--end .timeline__marker {
  top: 5em;
}

.timeline__item--left .timeline__content {
  grid-column: 1 / 2;
  text-align: right;
}

.timeline__item--right .timeline__content {
  grid-column: 2 / 3;
  text-align: left;
}

.timeline__item--end { margin-bottom: 0; }

.time { font-size: 1.05rem; font-weight: 600; margin: 0 0 1px; }
.timeline__content h2 { font-size: 1.3rem; margin: 0 0 6px; font-weight: 700; }
.subtext { font-size: 1.05rem; margin: 2px 0; line-height: 1.45; }
.quote { font-size: 1.05rem; line-height: 1.5; margin: 6px 0 8px; }

.image-card {
  position: relative;
  margin-top: 14px;
  max-width: 340px;
}

.timeline__item--left .image-card {
  margin-left: auto;
}

.image-card img {
  width: 100%;
  display: block;
  border-radius: 18px;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.image-card__bg {
  position: absolute;
  inset: 20px -19px -20px 20px;
  background: #95AFA8;
  border-radius: 18px;
  z-index: 1;
}


footer.site-footer {
  position: relative;
  overflow: hidden;
  background: #1a1a1a !important;
  color: #f5f5f5;
  padding: 13rem 5vw 2.5rem;
  font-size: 0.95rem;
  margin-top: 380px;
}

footer.site-footer.section.alt {
  background: #1a1a1a !important;
}

footer.site-footer a {
  color: #e3f3ee;
  text-decoration: none;
}

footer.site-footer a:hover { text-decoration: underline; }

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.footer-brush {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%) scaleY(-1);
  width: 105%;
  max-width: none;
  z-index: 0;
  pointer-events: none;
}

.footer-brush img {
  width: 100%;
  display: block;
}

.footer-col h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.footer-col p { margin: 0; line-height: 1.6; }
.footer-col strong {
  font-weight: 600;
  color: #ffffff;
}

.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li + li { margin-top: 0.25rem; }

.footer-bottom {
  max-width: 900px;
  margin: 1.5rem auto 0;
  padding-top: 0.75rem;
  border-top: none;
  text-align: left;
  font-size: 0.85rem;
  color: #bbb;
}

.footer-divider {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 0.9rem;
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5 center/60% no-repeat;
  color: #1a1a1a;
}

.social-icon--ig {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='18' height='18' rx='5' ry='5' fill='none' stroke='%231a1a1a' stroke-width='2'/%3E%3Ccircle cx='12' cy='12' r='5' fill='none' stroke='%231a1a1a' stroke-width='2'/%3E%3Ccircle cx='17.5' cy='6.5' r='1.4' fill='%231a1a1a'/%3E%3C/svg%3E");
}

.social-icon--fb {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 8h2V5h-2c-2 0-3.5 1.5-3.5 3.6V11H8v3h2.5v6h3v-6H16l.5-3h-3v-1.4c0-.5.3-.6.5-.6z' fill='%231a1a1a'/%3E%3C/svg%3E");
}



#kontakt { scroll-margin-top: 140px; }


.back-to-top {
  position: fixed;
  right: 7rem;
  bottom: 1.75rem;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: #284c43;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, box-shadow .2s ease, background .2s ease;
  z-index: 999;
}

.back-to-top img { width: 22px; height: 22px; fill: #ffffff; }

.back-to-top--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: #1e3731;
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.back-to-top--visible img { animation: arrowBounce 1.4s ease-in-out infinite; }
@keyframes arrowBounce {
  0% { transform: translateY(0); }
  30% { transform: translateY(-3px); }
  60% { transform: translateY(0); }
  100% { transform: translateY(0); }
}

@media (min-width: 1122px) {
  .main-nav a {
    font-size: 1.05rem;
    padding: 0.35rem 0.7rem;
  }
}

@media (hover: hover) {
  .hero-login:hover .login-panel {
    max-height: 400px;
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .main-nav a::after {
    display: none;
  }

  .main-nav a.nav-active {
    color: var(--text);
  }
}


@media (max-width: 1100px) {
  .nasch-info { padding: 0 1.5rem; }
}


@media (max-width: 1121px) {
  .site-header {
    padding: 1rem 5vw;
    justify-content: flex-start;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    backdrop-filter: blur(10px);
    gap: 0.75rem;
  }

  .site-header:not(.header-scrolled) .main-nav a {
    color: var(--text);
  }

  body.nav-open .site-header {
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
  }

  .logo { margin-right: auto; }

  .nav-toggle {
    display: inline-flex;
    color: var(--text);
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(0,0,0,0.12);
  }

  .main-nav {
    flex: 0 0 auto;
    order: 2;
    justify-content: flex-end;
  }

  .main-nav ul {
    display: flex;
    position: fixed;
    top: 120px; 
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    background: #ffffff;
    backdrop-filter: blur(8px);
    padding: 1rem 6vw 1.25rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    z-index: 98;
    border: 1px solid #e6ece9;
    row-gap: 0.35rem;
    max-width: none;
    opacity: 0;
    transform: translateY(-12px);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.3s ease, visibility 0.25s ease;
  }

  body.nav-open .main-nav ul {
    gap: 0.5rem;
    opacity: 1;
    transform: translateY(0);
    max-height: 600px;
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav a::after { display: none; }
  .main-nav a.nav-active { color: var(--text); }
}

@media (max-width: 900px) {
  .site-header {
    padding: 1rem 5vw;
    justify-content: flex-start;          
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    backdrop-filter: blur(10px);
    gap: 0.75rem;
  }

  .site-header:not(.header-scrolled) .main-nav a {
    color: var(--text);
  }

  body.nav-open .site-header {
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
  }

  
  .logo {
    flex: 0 0 auto;
    margin-right: auto;
  }

  .logo img {
    height: 70px;
  }

  
  .auth-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    order: 1;               
    margin-left: 0;
  }

  
  .main-nav {
    position: relative;
    flex: 0 0 auto;
    order: 2;               
    justify-content: flex-end;
  }

  

  .nav-toggle {
    display: inline-flex;
    color: var(--text);
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(0,0,0,0.12);
  }

  .lock-toggle {
    width: 48px;
    height: 48px;
  }

  .main-nav ul {
    display: flex;
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    background: #ffffff;
    backdrop-filter: blur(8px);
    padding: 1rem 6vw 1.25rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    z-index: 98;
    border: 1px solid #e6ece9;
    row-gap: 0.35rem;
    max-width: none;
    opacity: 0;
    transform: translateY(-12px);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.3s ease, visibility 0.25s ease;
  }

  .main-nav ul li a {
    display: block;
    padding-right: 0;
    text-align: left;
  }

  body.nav-open .main-nav ul {
    gap: 0.5rem;
    opacity: 1;
    transform: translateY(0);
    max-height: 600px;
    visibility: visible;
    pointer-events: auto;
  }

  body.nav-open .main-nav a {
    color: var(--text);
    padding: 0.6rem 0.75rem;
    font-size: 1.05rem;
  }

  .auth-controls {
    margin-left: 0;
  }

  .hero {
    padding: 6rem 6vw 9rem;
    background-position: center;
  }

  .hero-login {
    bottom: -3rem;
    width: calc(100% - 10vw);
  }

  .section-inner.anmeldung-layout {
    flex-direction: column;
    align-items: center;
  }

  
  .anmeldung-card,
  .anmeldung-map {
    width: 100%;
    max-width: 520px; 
    min-height: 320px;
    margin: 0 auto;
  }
  .anmeldung-map iframe {
    min-height: 320px;
  }

  .download-card {
    flex-direction: column;
  }

  .download-card__image {
    flex: 0 0 auto;
    width: 100%;
    height: 190px;
  }

}

@media (max-width: 820px) {
  .nasch-info-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    margin-top: 6rem;
  }

  .member-welcome {
    grid-template-columns: 1fr;
    text-align: center;
    margin: 1rem 2rem;
    margin-top: 5rem;
  }

  .member-welcome__text p {
    max-width: none;
  }

  .member-welcome__image {
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .site-header { padding-inline: 4vw; }

  .hero {
    min-height: auto;
    padding-top: 7rem;
  }

  .hero::before {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.35));
  }

  .hero-copy {
    width: 80%;
    gap: 0.75rem;
  }

  .hero-copy h1 {
    font-size: clamp(1.7rem, 5vw, 2.1rem);
  }

  .hero-copy p {
    max-width: 100%;
    font-size: 1rem;
  }

  .hero-cta {
    text-align: center;
  }

  .hero-login {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    margin: 3.5rem auto 0;
  }

  .hero-close {
    display: inline-flex;
  }

  body.hero-login-open .hero-copy {
    display: none;
  }

  body.hero-login-open .hero-login {
    width: 100%;
    margin-top: 0;
  }

  .section { padding: 2.8rem 5vw; }
  .anmeldung-title { font-size: clamp(2.2rem, 6vw, 2.8rem); }
  .anmeldung-sub { margin-bottom: 4rem; }
  .download-card { padding: 1.4rem 1.6rem; }
  .download-btn { width: 100%; justify-content: center; }
  .back-to-top { right: 1.6rem; }

  
  #anmeldung {
    padding-left: 3vw;
    padding-right: 3vw;
  }

  .timeline__line {
    left: 32px;
    transform: none;
  }

  .timeline__item {
    grid-template-columns: 1fr;
    column-gap: 0;
    padding-left: 48px;
    padding-right: 32px;
    margin: 32px 0;
  }

  #mitgliederversammlung .timeline__item {
    padding-right: 32px;
  }

  .timeline__marker,
  .timeline__marker--big {
    left: 34px;
    top: 0.3em;
    transform: translateX(-50%);
  }

  
  #tagung .timeline__line {
    bottom: 230px;
  }

  .timeline__item--start {
    padding-left: 60px;
    text-align: left;
  }

  .timeline__item--start .timeline__header {
    text-align: left;
  }

  .timeline__item--left .timeline__content,
  .timeline__item--right .timeline__content {
    grid-column: 1 / -1;
    text-align: left;
    padding-left: 12px;
    margin-top: -6px;
  }

  #mitgliederversammlung .timeline__item--left .timeline__content,
  #mitgliederversammlung .timeline__item--right .timeline__content {
    padding-left: 12px;
    margin-top: -6px;
  }

  .image-card {
    width: 100%;
    margin-left: 0;
    margin-right: auto;
  }

  #mitgliederversammlung .image-card {
    max-width: 280px;
    margin-left: 0;
    margin-right: auto;
  }
  .image-card img {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 700px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .hero-login { width: calc(100% - 2.5rem); }
  .anmeldung-map { height: 260px; min-height: 260px; }
  .footer-inner { gap: 1.2rem; }
  .back-to-top { right: 1.2rem; bottom: 1.2rem; width: 46px; height: 46px; }
  .form-grid label { font-size: 0.85rem; }
  .fieldset legend { font-size: 0.9rem; }
}


#tagung .timeline {
  position: relative;
  z-index: 2;
  padding-bottom: 140px;
}

#tagung .timeline::before {
  content: "";
  position: absolute;
  top: 100px;
  bottom: 330px;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background: #EAEFEE;
  z-index: -1;
}

#tagung .timeline::after {
  content: "";
  position: absolute;
  top: 100px;
  bottom: 330px;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background-image: url("assets/svg/gemuese_2.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 14px;
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 768px) {
  #tagung .timeline::before {
    bottom: 340px;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
  }

  #tagung .timeline::after {
    top: 50px;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    border-radius: 12px;
  }
}


#mitgliederversammlung .timeline {
  position: relative;
  z-index: 2;
}

#mitgliederversammlung .timeline::before {
  content: "";
  position: absolute;
  top: 150px;
  bottom: 95px;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background: #EAEFEE;
  z-index: -1;
}

#mitgliederversammlung .timeline::after {
  content: "";
  position: absolute;
  top: 150px;
  bottom: 95px;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background-image: url("assets/svg/gemuese_2.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 14px;
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 768px) {
  #mitgliederversammlung .timeline::before {
    top: 200px;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
  }

  #mitgliederversammlung .timeline::after {
    top: 120px;
    bottom: 260px;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
  }
}







