:root {
  --sage: #d7e2bb;
  --sage-dark: #b9cc93;
  --sage-text: #a9c17f;
  --brown: #5c4a3a;
  --brown-dark: #4a3b2e;
  --coral: #e8746c;
  --coral-dark: #d95f57;
  --cream: #fdfdfb;
  --grey-text: #444;
  --max-width: 1100px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", sans-serif;
  color: var(--grey-text);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--brown);
  font-weight: 400;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  flex-wrap: wrap;
  gap: 16px;
}

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

.brand img { height: 64px; width: auto; }

.brand-name {
  font-family: "Georgia", serif;
  font-size: 2.2rem;
  color: var(--sage-text);
}

nav.main-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

nav.main-nav a {
  font-family: "Georgia", serif;
  font-size: 1.05rem;
  color: var(--brown);
}

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

/* Hero */
.hero {
  position: relative;
  min-height: 480px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  margin: 0 24px;
  border-radius: 4px;
  overflow: hidden;
}

.hero-panel {
  background: rgba(215, 226, 187, 0.9);
  padding: 48px 56px;
  max-width: 640px;
}

.hero-panel h1 {
  color: #fff;
  font-size: 2.8rem;
  margin: 0 0 24px;
}

.btn {
  display: inline-block;
  border: 1.5px solid currentColor;
  border-radius: 24px;
  padding: 12px 28px;
  font-family: "Georgia", serif;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover { background: rgba(255, 255, 255, 0.15); }

.btn-solid {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
  border-radius: 24px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: inherit;
  font-size: 0.85rem;
  padding: 14px 32px;
}

.btn-solid:hover { background: var(--coral-dark); }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  padding: 64px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.card {
  background: var(--sage);
  border-radius: 4px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  min-height: 260px;
}

.card h3 { margin-top: 0; font-size: 1.5rem; }

.card p { flex-grow: 1; color: var(--brown-dark); }

.card .btn {
  align-self: flex-start;
  color: var(--brown);
  border-color: var(--brown);
  margin-top: 16px;
}

.card .btn:hover { background: rgba(92, 74, 58, 0.08); }

/* Section image */
.section-image {
  display: block;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  border-radius: 4px;
}

.section-image-wrap {
  padding: 32px 24px 64px;
  text-align: center;
}

/* Generic content section */
.content-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 24px;
}

.content-section h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.content-section + .content-section {
  border-top: 1px solid #eee;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px;
}

.two-col img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 4px;
}

@media (max-width: 720px) {
  .two-col { grid-template-columns: 1fr; }
  .hero-panel { padding: 32px; }
  .hero-panel h1 { font-size: 2rem; }
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 24px 64px;
}

.team-card { text-align: center; }

.team-card img,
.team-card-spacer {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 16px;
}

.team-card h3 { margin-bottom: 4px; }

/* Bio rows (Das sind wir) */
.bio-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 460px;
}

.bio-media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.bio-media--sage { background: var(--sage); }

.bio-media--empty { min-height: 460px; }

.bio-media img {
  max-width: 100%;
  max-height: 420px;
  border-radius: 4px;
  display: block;
  margin: 0 auto;
}

.bio-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-family: "Georgia", serif;
  font-size: 0.85rem;
  color: var(--brown-dark);
}

.bio-text {
  background: #fff;
  padding: 56px 64px;
}

.bio-text h2 {
  font-size: 1.6rem;
  margin-top: 0;
}

.bio-text h4 {
  color: var(--brown);
  font-family: "Georgia", serif;
  font-weight: 400;
  margin: 20px 0 6px;
  font-size: 1rem;
}

.bio-text ul {
  margin: 0;
  padding-left: 20px;
  font-size: 0.92rem;
  color: var(--grey-text);
}

.bio-text li { margin-bottom: 3px; }

@media (max-width: 820px) {
  .bio-row { grid-template-columns: 1fr; min-height: auto; }
  .bio-media--empty { display: none; }
  .bio-text { padding: 32px 24px; }
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px;
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 4px;
}

/* Forms */
.form-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0 0 32px;
}

fieldset legend {
  font-family: "Georgia", serif;
  font-size: 1.3rem;
  color: var(--brown);
  margin-bottom: 12px;
  padding: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: var(--brown-dark);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

.field textarea { resize: vertical; min-height: 80px; }

.checkbox-row, .radio-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.checkbox-row label, .radio-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.inline-date {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.form-actions { margin-top: 32px; }

.info-box {
  background: var(--sage);
  border-radius: 4px;
  padding: 20px 24px;
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.flash {
  padding: 14px 18px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.flash.error { background: #fbe1df; color: #a13c34; }
.flash.success { background: var(--sage); color: var(--brown-dark); }

/* Download cards (Angebot) */
.download-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  padding: 24px 24px 64px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.download-card {
  background: var(--sage);
  border-radius: 4px;
  padding: 28px;
}

.download-card h3 { margin-top: 0; }

.download-card .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--brown);
  border-radius: 4px;
  margin-top: 16px;
  font-size: 1.2rem;
}

/* Footer */
footer.site-footer {
  background: var(--sage);
  padding: 48px 24px;
  text-align: center;
  margin-top: 48px;
}

footer.site-footer address {
  font-style: normal;
  font-family: "Georgia", serif;
  color: var(--brown-dark);
  margin-top: 20px;
  line-height: 1.8;
}

.social-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 20px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.social-links img { width: 20px; height: 20px; }

.copyright {
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
  color: #999;
}

.footer-spenden-label {
  font-family: "Georgia", serif;
  font-size: 1.6rem;
  color: var(--brown);
  margin: 0 0 16px;
}

/* Social rail (fixed, right edge) */
.social-rail {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 20;
}

.social-rail a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.social-rail img { width: 20px; height: 20px; }

@media (max-width: 900px) {
  .social-rail {
    position: static;
    transform: none;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    padding: 16px 0 0;
  }
}

/* Home hero variant */
.hero--home {
  min-height: 620px;
  align-items: flex-start;
  justify-content: center;
  margin: 0;
  border-radius: 0;
}

.hero-panel--center {
  margin-top: 48px;
  text-align: center;
  max-width: 560px;
}

.hero-panel--center h1 { font-size: 2.6rem; }

.hero-panel--center .btn { border-color: #fff; }

/* Eyebrow (small label above a heading) */
.eyebrow {
  font-family: "Georgia", serif;
  color: var(--brown-dark);
  font-size: 0.95rem;
  margin: 0 0 4px;
}

/* Über uns: intro text with sage image panel */
.ueber-intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: stretch;
}

.ueber-intro-text {
  padding: 8px 40px 40px 24px;
}

.ueber-intro-text h2 {
  font-size: 1.8rem;
  margin: 28px 0 12px;
}

.ueber-intro-text h2:first-child { margin-top: 0; }

.ueber-intro-media {
  background: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.ueber-intro-media img {
  width: 100%;
  border-radius: 4px;
  display: block;
}

@media (max-width: 820px) {
  .ueber-intro { grid-template-columns: 1fr; }
  .ueber-intro-text { padding: 8px 24px 32px; }
}

/* Über uns: Werte */
.wert-name {
  font-family: "Georgia", serif;
  font-weight: 400;
  color: var(--brown);
  font-size: 1.15rem;
  margin: 28px 0 6px;
}

/* Gallery band */
.gallery-band {
  background: var(--sage);
  padding: 40px 0 56px;
}

.gallery-band .gallery-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 700px) {
  .gallery-band .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Legal page (Impressum und Datenschutz) */
.legal {
  max-width: 820px;
  font-size: 0.95rem;
}

.legal h2 {
  font-size: 1.35rem;
  margin: 36px 0 10px;
}

.legal h3 {
  font-size: 1.05rem;
  margin: 24px 0 8px;
}

.legal p { margin: 0 0 12px; }

.legal ul { margin: 0 0 12px; padding-left: 22px; }

.legal li { margin-bottom: 6px; }
