:root {
  --muted: #7a5b4a;
  --panel: #f7efe3;
  --paper: #fdf8f3;
  --paper-dark: #f1e2c9;
  --accent: #8a5633;
  --max-width: 1100px;
  --gap: 1.25rem;
  --radius: 14px;
}

/* Grundlayout & Hintergrund ---------------------------------------- */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  min-height: 100vh;
  margin: 0;
  font-family: "Merriweather", serif;
  color: #2e221b;
  background:
    linear-gradient(180deg, var(--paper), var(--paper-dark)),
    url("../assets/pergamentbg.png") center center / cover fixed no-repeat;
  background-attachment: fixed;
}

/* Textur-Overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(0, 0, 0, 0.03) 0, transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(0, 0, 0, 0.02) 0, transparent 25%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.02));
  mix-blend-mode: multiply;
  opacity: 0.9;
}

/* Container --------------------------------------------------------- */
.wrap {
  max-width: var(--max-width);
  margin: 32px auto;
  padding: 28px;
}

/* Header ------------------------------------------------------------ */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 8px;
  border-bottom: 3px solid rgba(0, 0, 0, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--accent), #402219);
  display: grid;
  place-items: center;
  color: var(--paper);
  font-weight: 700;
  font-family: "Cinzel", serif;
  font-size: 22px;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

h1.site-title {
  font-family: "Cinzel", serif;
  margin: 0;
  font-size: 28px;
  letter-spacing: 2px;
  color: var(--accent);
}

nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

nav a {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
}

nav a:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--accent);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 18px;
}

/* Dropdown-Menü -------------------------------------------- */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  background: none;
  border: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}

.dropdown-toggle:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--accent);
}

/* Menü selbst */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 120%;
  left: 0;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  flex-direction: column;
  min-width: 180px;
  z-index: 10;
  animation: fadeIn 0.25s ease both;
}

.dropdown-menu a {
  text-decoration: none;
  color: #3a2b26;
  padding: 10px 14px;
  display: block;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background: rgba(0,0,0,0.05);
  color: var(--accent);
}

/* Zeige das Menü beim Hover (Desktop) */
.nav-dropdown:hover .dropdown-menu {
  display: flex;
  animation: fadeIn 0.25s ease both;
}

/* Für Mobile: Dropdown klappt auf Klick */
.nav-dropdown.open .dropdown-menu {
  display: flex;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown .dropdown-toggle,
.nav-dropdown .dropdown-menu {
  pointer-events: auto;
}

.nav-dropdown .dropdown-menu {
  margin-top: 2px; /* verringert den Abstand */
}

/* Kleines Padding zwischen Button & Menü verhindert "Lücke" */
.nav-dropdown:hover .dropdown-menu {
  margin-top: 0;
}

.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 10px; /* unsichtbare Hover-Zone */
}


/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero-Bereich ------------------------------------------------------ */
.hero {
  margin-top: 22px;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 24px;
  align-items: stretch;
  position: relative;
  z-index: 0;
}

.hero-left {
  position: relative;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(2px);
  border-right: 6px solid rgba(0, 0, 0, 0.03);
  z-index: 2;
}

.hero-illustration {
  position: absolute;
  inset: 0;
  background: url('../assets/hero-sketch.png') center/cover no-repeat;
  filter: grayscale(20%) contrast(0.9) saturate(0.7);
  opacity: 0.25;
  z-index: 1;
}

.hero-title {
  font-family: "Cinzel", serif;
  font-size: 36px;
  margin: 18px 0 6px;
  color: #2e221b;
  text-shadow: 0 1px 2px rgba(255,255,255,0.7);
  z-index: 3;
}

.hero-text {
  line-height: 1.6;
  color: #3a2b26;
  font-size: 1rem;
  z-index: 3;
}

.hero-right {
  padding: 26px;
  background: linear-gradient(180deg, var(--panel), rgba(255, 255, 255, 0.92));
  border-radius: 8px;
}

/* Kodex ------------------------------------------------------------- */
.kodex {
  padding: 1.5rem;
  font-family: "Merriweather", serif;
}

.kodex h3 {
  font-family: "Merriweather", serif;
  font-size: 1.6rem;
  margin-bottom: 1rem;
  text-align: center;
}

.kodex ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1rem;
}

.kodex li {
  margin-bottom: 0.4rem;
  border-bottom: 1px solid rgba(60, 40, 20, 0.2);
  padding-bottom: 0.3rem;
}

/* Leistungen / Services --------------------------------------------- */
.services {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service {
  background: rgba(0, 0, 0, 0.03);
  padding: 18px;
  border-radius: 12px;
  text-align: center;
}

.service h3 {
  font-family: "Cinzel", serif;
  margin: 8px 0;
}

.service p {
  font-size: 14px;
  color: #4b3830;
}

/* Kontakt ----------------------------------------------------------- */
.kontakt {
  margin-top: 26px;
  background: transparent;
  padding: 18px;
  border-radius: 10px;
}

.kontakt form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 700px;
}

.kontakt input,
.kontakt textarea {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.kontakt textarea {
  grid-column: 1 / -1;
  min-height: 120px;
}

.kontakt button {
  grid-column: 1 / -1;
  padding: 12px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--paper);
  font-weight: 700;
}

/* Footer ------------------------------------------------------------ */
footer {
  margin-top: 26px;
  padding: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  text-align: center;
  color: #5b4440;
}

/* ÜBER-SEITE ------------------------------------------------------------ */

.about-page {
  background: linear-gradient(
      180deg,
      rgba(250, 243, 230, 0.9) 0%,
      rgba(241, 225, 198, 0.95) 100%
    ),
    url("../assets/pergamentbg.png") center/cover;
  padding: 3rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.1);
}

.about-intro {
  max-width: var(--max-width);
  margin: 0 auto 3rem auto;
  animation: fadeInUp 1s ease both;
}

.about-intro h2 {
  font-family: "Cinzel", serif;
  font-size: 2.2rem;
  color: var(--accent);
  text-align: center;
  margin-bottom: 1rem;
}

.about-intro p {
  max-width: 850px;
  margin: 0 auto 1rem auto;
  text-align: center;
  line-height: 1.7;
  color: #3a2b26;
}

.about-gallery-section {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: var(--max-width);
}

.about-image {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  animation: fadeUp 1s ease forwards;
  animation-delay: var(--delay);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-chronik {
  max-width: 850px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.7);
  padding: 2rem;
  border-radius: var(--radius);
  border: 2px solid rgba(90, 70, 50, 0.2);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.05);
  animation: fadeInUp 1.5s ease both;
}

.about-chronik h3 {
  font-family: "Cinzel", serif;
  text-align: center;
  color: var(--accent);
  margin-bottom: 1rem;
}

.about-chronik p {
  line-height: 1.7;
  color: #3a2b26;
  text-align: center;
}

/* Animationen */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === TERMINE === */
.termine-page h2 {
  text-align: center;
  color: var(--accent);
  font-family: "Cinzel", serif;
  margin: 2rem 0 3rem;
}

.termine-list {
  display: grid;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.termin-card {
  background: rgba(255,255,255,0.85);
  border: 2px solid rgba(120,90,60,0.2);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  animation: fadeUp 1s ease both;
}

.termin-card h3 {
  color: var(--accent);
  margin-bottom: .5rem;
}

.termin-buttons {
  display: flex;
  gap: .7rem;
  margin-top: 1rem;
}

/* === AKTIVITÄTEN === */
.aktivitaeten-page h2 {
  text-align: center;
  font-family: "Cinzel", serif;
  color: var(--accent);
  margin-bottom: 2rem;
}

.aktivitaeten-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  max-width: 1000px;
  margin: 0 auto;
}

.aktiv-card {
  background: rgba(255,255,255,0.9);
  border-radius: var(--radius);
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  animation: fadeUp 1s ease both;
}

.aktiv-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.aktiv-card h3 {
  font-family: "Cinzel", serif;
  color: var(--accent);
  padding: 1rem;
}

.aktiv-card p {
  padding: 0 1rem 1rem;
  color: #3a2b26;
}

/* === SPENDEN === */
.spenden-page {
  text-align: center;
}

.spenden-page h2 {
  color: var(--accent);
  font-family: "Cinzel", serif;
  margin-bottom: 1rem;
}

.spenden-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.spenden-card {
  background: rgba(255,255,255,0.9);
  border-radius: var(--radius);
  border: 1px solid rgba(120,90,60,0.3);
  padding: 1.5rem;
  width: 300px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* === KONTAKT === */
.kontakt-page form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.kontakt-page input,
.kontakt-page textarea {
  padding: 0.8rem;
  border-radius: var(--radius);
  border: 1px solid rgba(90,70,50,0.3);
  font-family: inherit;
}

.captcha {
  display: flex;
  align-items: center;
  gap: .5rem;
}

#captcha-text {
  font-family: monospace;
  background: #f4e9d8;
  padding: .4rem .8rem;
  border-radius: var(--radius);
  border: 1px solid rgba(90,70,50,0.4);
  letter-spacing: 3px;
}

/* === BUCKELTRUPP === */
.buckeltrupp-page {
  text-align: center;
}

.buckeltrupp-page h2 {
  font-family: "Cinzel", serif;
  color: var(--accent);
  margin-bottom: 1rem;
}

.buckeltrupp-page .intro-text {
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.6;
  color: #3a2b26;
}

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

.buckel-card {
  background: rgba(255,255,255,0.92);
  border: 2px solid rgba(90,60,30,0.2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeUp 1s ease both;
}

.buckel-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.buckel-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 2px solid rgba(90,60,30,0.2);
}

.buckel-info {
  padding: 1rem 1.2rem 1.5rem;
}

.buckel-info h3 {
  font-family: "Cinzel", serif;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.buckel-info p {
  font-size: 0.95rem;
  color: #3a2b26;
  margin-bottom: 1rem;
}

/* Responsive -------------------------------------------------------- */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-right {
    order: 2;
  }

  .menu-toggle {
    display: inline-block;
  }

  nav {
    display: none;
  }

  .nav-dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: rgba(255,255,255,0.95);
    margin-left: 20px;
    display: none;
  }

  .nav-dropdown.open .dropdown-menu {
    display: flex;
  }

  .dropdown-menu a {
    padding-left: 24px;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 12px;
    margin: 10px;
  }

  h1.site-title {
    font-size: 20px;
  }

  .hero-title {
    font-size: 26px;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .logo {
    width: 52px;
    height: 52px;
  }

  nav {
    display: none;
    flex-direction: column;
    background: var(--paper-dark);
    position: absolute;
    top: 60px;
    right: 10px;
    left: 10px;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    z-index: 999;
  }

  nav.active {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
  }

  @keyframes fadeIn {
    from {opacity: 0; transform: translateY(-5px);}
    to {opacity: 1; transform: translateY(0);}
  }

  .menu-toggle {
    display: block;
    background: none;
    border: 2px solid var(--ink);
    color: var(--ink);
    border-radius: 6px;
    padding: 6px 10px;
    font-weight: bold;
    cursor: pointer;
  }
}

/* Sonstiges --------------------------------------------------------- */
.muted {
  color: var(--muted);
}
