/* =========================================================
   Wimmelland – gemeinsames Stylesheet
   Farben abgeleitet aus dem Logo (Terrakotta + Wiesengrün)
   ========================================================= */

:root {
  /* Logo-Farben */
  --terra:        #c4472b;
  --terra-dark:   #9c3620;
  --terra-soft:   #f8e6df;
  --green:        #6a9f3a;
  --green-dark:   #3d6527;
  --green-deep:   #2c4a1d;
  --green-soft:   #eef4e6;

  /* Neutrale, warme Töne */
  --cream:        #fbf7f1;
  --white:        #ffffff;
  --ink:          #33261f;
  --muted:        #6e5d53;
  --line:         #ebe1d6;

  --font-head: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius:    14px;
  --radius-lg: 22px;
  --shadow:    0 1px 2px rgba(51, 38, 31, .06), 0 8px 24px rgba(51, 38, 31, .08);
  --container: 1120px;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--terra-dark); text-underline-offset: .18em; }
a:hover { color: var(--terra); }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.narrow    { max-width: 720px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: .9rem;
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 84px;
}
.brand img { width: 150px; height: auto; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .35rem; }
.site-nav a {
  display: block;
  padding: .55rem 1rem;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.site-nav a:hover { background: var(--terra-soft); color: var(--terra-dark); }
.site-nav a[aria-current="page"] { background: var(--terra); color: #fff; }

.nav-toggle {
  display: none;
  align-items: center; gap: .5rem;
  font: inherit; font-weight: 600; font-size: .95rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .5rem 1rem;
  cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after  { top: 6px; }

@media (max-width: 760px) {
  .header-inner { min-height: 72px; }
  .brand img { width: 120px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(51, 38, 31, .08);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: .75rem 1.25rem 1.25rem; gap: .25rem; }
  .site-nav a { padding: .8rem 1rem; border-radius: 10px; }
}

/* ---------- Abschnitte ---------- */
.section       { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-white { background: var(--white); }
.section-green { background: var(--green-soft); }
.section-head  { max-width: 680px; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }

/* Seitenkopf (Unterseiten) */
.page-hero {
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(120% 140% at 100% 0%, var(--green-soft) 0%, transparent 55%),
    radial-gradient(90% 120% at 0% 100%, var(--terra-soft) 0%, transparent 60%),
    var(--cream);
}
.page-hero .lead { max-width: 640px; }

.lead { font-size: 1.2rem; color: var(--muted); }

/* ---------- Startseite: Intro ---------- */
.home-intro {
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
}
.home-intro h1 { margin-bottom: 1.25rem; }

/* ---------- Zitate ---------- */
.quote {
  margin: 0 auto;
  max-width: 760px;
  text-align: center;
}
.quote p {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.25rem, 2.3vw, 1.6rem);
  line-height: 1.5;
  color: var(--terra-dark);
  margin-bottom: .75rem;
}
.quote cite {
  font-style: normal;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.quote cite::before { content: "— "; }

.quote-band {
  position: relative;
  background: var(--terra);
  color: #fff;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  overflow: hidden;
}
.quote-band::before {
  content: "\201C";
  position: absolute; left: 50%; top: -2.2rem; transform: translateX(-50%);
  font-family: var(--font-head);
  font-size: 12rem; line-height: 1;
  color: rgba(255, 255, 255, .12);
  pointer-events: none;
}
.quote-band .quote p    { color: #fff; }
.quote-band .quote cite { color: rgba(255, 255, 255, .85); }

/* ---------- Slideshow ---------- */
.slideshow {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 960 / 450;
  background: var(--green-soft);
}
.slideshow img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transition: opacity .8s ease;
}
.slideshow img.is-active { opacity: 1; }
.slide-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.slide-btn:hover { background: var(--terra); color: #fff; }
.slide-btn svg { width: 20px; height: 20px; }
.slide-prev { left: 1rem; }
.slide-next { right: 1rem; }
.slide-dots {
  position: absolute; left: 0; right: 0; bottom: 1rem;
  display: flex; justify-content: center; gap: .5rem;
}
.slide-dots button {
  width: 10px; height: 10px; padding: 0;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .6);
  cursor: pointer;
}
.slide-dots button[aria-current="true"] { background: #fff; transform: scale(1.25); }

/* ---------- Bild-Karten ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 960px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) {
  .card-grid { gap: 1rem; }
  .photo-card figcaption { padding: .75rem .9rem .85rem; font-size: 1rem; }
  .slide-btn { width: 36px; height: 36px; }
  .slide-btn svg { width: 16px; height: 16px; }
  .slide-prev { left: .6rem; }
  .slide-next { right: .6rem; }
  .slide-dots { bottom: .6rem; }
}

.photo-card {
  margin: 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.photo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-card figcaption {
  padding: 1rem 1.25rem 1.15rem;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  border-top: 4px solid var(--green);
}
.photo-card:nth-child(even) figcaption { border-top-color: var(--terra); }

/* ---------- Text + Bild ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.portrait {
  margin: 0;
  position: relative;
}
.portrait img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.portrait::before {
  content: "";
  position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--green-soft);
  z-index: -1;
}
.portrait figcaption { margin-top: .9rem; font-size: .9rem; color: var(--muted); text-align: center; }
@media (max-width: 860px) { .portrait { max-width: 420px; } }

.prose h2 { margin-top: 2.2rem; }
.prose h2:first-child { margin-top: 0; }

/* ---------- Konzept ---------- */
.goal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 760px) { .goal-grid { grid-template-columns: 1fr; } }

.goal-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.9rem 1.9rem 1.75rem;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--green);
}
.goal-card:nth-child(2), .goal-card:nth-child(3) { border-top-color: var(--terra); }
.goal-num {
  display: inline-grid; place-items: center;
  width: 2.2rem; height: 2.2rem;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: .9rem;
}
.goal-card:nth-child(2) .goal-num, .goal-card:nth-child(3) .goal-num { background: var(--terra-soft); color: var(--terra-dark); }

.topic-list { display: grid; gap: 1.5rem; }
.topic {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}
.topic:first-child { border-top: 0; padding-top: 0; }
.topic h3 { font-size: 1.35rem; color: var(--green-dark); }
@media (max-width: 760px) { .topic { grid-template-columns: 1fr; gap: .5rem; } }

.inline-quote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--terra);
  background: var(--terra-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.inline-quote p { font-family: var(--font-head); font-style: italic; font-size: 1.08rem; color: var(--ink); margin-bottom: .5rem; }
.inline-quote cite { font-style: normal; font-size: .9rem; font-weight: 600; color: var(--terra-dark); }
.inline-quote cite::before { content: "— "; }

.motto {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--terra-dark);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.gallery img:first-child { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery img:first-child { aspect-ratio: 16 / 9; }
}

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}

.contact-list { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list .icon {
  flex: none;
  width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--terra-soft);
  color: var(--terra-dark);
}
.contact-list .icon svg { width: 18px; height: 18px; }
.contact-list strong { display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact-list a { text-decoration: none; font-weight: 500; }
.contact-list a:hover { text-decoration: underline; }

.map {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--green-soft);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Formular */
.form { display: grid; gap: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.field .req { color: var(--terra); }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .8rem 1rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(106, 159, 58, .18);
}
.form-status { margin: 0; padding: .85rem 1rem; border-radius: 10px; font-weight: 500; }
.form-status[hidden] { display: none; }
.form-status.is-success { background: var(--green-soft); color: var(--green-deep); }
.form-status.is-error   { background: var(--terra-soft); color: var(--terra-dark); }
.form-note { font-size: .875rem; color: var(--muted); margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid var(--terra);
  background: var(--terra);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--terra-dark); border-color: var(--terra-dark); color: #fff; transform: translateY(-1px); }
.btn:disabled { opacity: .65; cursor: progress; transform: none; }
.btn-light { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--green-deep); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-deep);
  color: rgba(255, 255, 255, .86);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  font-size: .975rem;
}
.site-footer h2 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 1rem;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: #f3c9bd; }
.site-footer address { font-style: normal; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  padding-bottom: 3rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  padding: 1.25rem 0 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .15);
  font-size: .875rem;
  color: rgba(255, 255, 255, .7);
}
.footer-bottom p { margin: 0; }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
