:root {
  --cream: #d9c7ad;
  --cream-soft: #eadcc8;
  --paper: #f3eadc;
  --paper-deep: #e1cfb6;
  --green: #2f4b37;
  --green-soft: #49684d;
  --moss: #71815e;
  --earth: #8f6844;
  --ink: #231f19;
  --muted: #6f6253;
  --line: rgba(61, 48, 35, 0.14);
  --shadow: 0 18px 48px rgba(52, 39, 24, 0.14);
  --soft-shadow: 0 10px 24px rgba(52, 39, 24, 0.1);
  --radius: 8px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 247, 230, 0.48), transparent 30rem),
    linear-gradient(180deg, var(--cream-soft), var(--paper) 26rem, var(--cream) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin-top: 0; }
h1, h2, h3, .brand span { font-family: Georgia, "Times New Roman", serif; letter-spacing: 0; }
h1 { font-size: clamp(2.35rem, 5vw, 5.4rem); line-height: 0.98; margin-bottom: 1.1rem; }
h2 { font-size: clamp(1.8rem, 3.3vw, 3.3rem); line-height: 1.08; margin-bottom: 1rem; }
h3 { font-size: 1.45rem; line-height: 1.15; margin-bottom: 0.65rem; }
img, video { max-width: 100%; }

:focus-visible {
  outline: 3px solid rgba(143, 104, 68, 0.7);
  outline-offset: 4px;
  border-radius: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
  background: linear-gradient(180deg, rgba(47, 75, 55, 0.97), rgba(61, 88, 62, 0.94));
  color: #fff8eb;
  box-shadow: 0 8px 22px rgba(34, 42, 27, 0.14);
  backdrop-filter: blur(14px);
}

.topline {
  padding: 0.22rem 1.2rem;
  text-align: center;
  font-size: 0.68rem;
  color: rgba(255, 248, 235, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.header-inner {
  width: min(var(--max), calc(100% - 2rem));
  min-height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  padding: 0.35rem 0 0.55rem;
}

.brand {
  grid-column: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.brand span { font-size: clamp(1.85rem, 2.6vw, 2.75rem); }
.brand small {
  margin-top: 0.22rem;
  font-size: 0.68rem;
  color: rgba(255, 248, 235, 0.78);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.main-nav {
  grid-column: 2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.22rem;
  padding-bottom: 0;
}

.main-nav a {
  padding: 0.52rem 0.72rem;
  border-radius: 999px;
  color: rgba(255, 248, 235, 0.84);
  font-size: 0.88rem;
}

.main-nav a:hover,
.main-nav .active {
  color: #fff;
  background: rgba(255, 248, 235, 0.12);
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.nav-button { display: none; }

.nav-toggle:focus-visible + .nav-button {
  outline: 3px solid rgba(255, 248, 236, 0.7);
  outline-offset: 4px;
}

.hero,
.page-hero {
  position: relative;
  min-height: calc(100svh - 92px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
}

.page-hero { min-height: 54svh; }

.video-hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(20, 24, 18, 0.24), rgba(20, 24, 18, 0.62)),
    linear-gradient(90deg, rgba(20, 24, 18, 0.54), transparent 65%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 6.5rem 0 4.4rem;
  color: #fff8ec;
}

.hero-inner h1 { max-width: 780px; text-wrap: balance; }
.hero-copy {
  max-width: 660px;
  color: rgba(255, 248, 236, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.eyebrow,
.kicker {
  margin-bottom: 0.7rem;
  color: var(--earth);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow { color: rgba(255, 248, 236, 0.8); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 760;
  line-height: 1.1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--green); color: #fff8ec; box-shadow: 0 14px 30px rgba(47, 75, 55, 0.24); }
.btn.secondary { color: var(--green); background: rgba(47, 75, 55, 0.09); border-color: rgba(47, 75, 55, 0.14); }
.btn.ghost { color: #fff8ec; background: rgba(255, 248, 236, 0.13); border-color: rgba(255, 248, 236, 0.28); }
.btn.full { width: 100%; }

.hero-panel {
  position: absolute;
  right: max(1rem, calc((100% - var(--max)) / 2));
  bottom: 1.2rem;
  z-index: 3;
  display: flex;
  gap: 0.4rem;
  padding: 0.45rem;
  border: 1px solid rgba(255, 248, 236, 0.2);
  border-radius: 999px;
  color: rgba(255, 248, 236, 0.9);
  background: rgba(33, 39, 29, 0.38);
  backdrop-filter: blur(16px);
}

.hero-panel span {
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 248, 236, 0.1);
  font-size: 0.8rem;
}

.section {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.6rem, 5vw, 5rem) 0;
}

.narrow { max-width: 850px; }
.compact-title {
  padding-top: clamp(2.2rem, 5vw, 4.2rem);
  padding-bottom: clamp(1.8rem, 3vw, 3rem);
  text-align: center;
}

.page-title h1 { color: var(--green); font-size: clamp(2.25rem, 4vw, 4rem); }
.lead, .section-head > p, .page-title p, .mail-panel p {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.intro-grid,
.story,
.feature-split,
.support-section,
.contact-hero,
.nature-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
  gap: clamp(1.4rem, 4vw, 4rem);
  align-items: center;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.section-head h2,
.intro-grid h2,
.nature-band h2 { color: var(--green); }

.text-link {
  color: var(--green);
  font-weight: 760;
  border-bottom: 1px solid rgba(47, 75, 55, 0.35);
}

.media-bg {
  position: relative;
  min-height: 180px;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: #c6b28f;
  background-image: linear-gradient(135deg, rgba(47, 75, 55, 0.16), rgba(143, 104, 68, 0.18));
  background-size: cover;
  background-position: center 42%;
  box-shadow: 0 8px 20px rgba(52, 39, 24, 0.09);
}

.media-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: inherit;
  pointer-events: none;
}

.pos-top { background-position: center 22%; }
.pos-center { background-position: center; }

.animal-showcase {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.animal-showcase figure {
  margin: 0;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: rgba(255, 248, 236, 0.4);
  box-shadow: 0 8px 20px rgba(52, 39, 24, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.animal-showcase figure:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(52, 39, 24, 0.11);
}

.animal-showcase .media-bg {
  aspect-ratio: 4 / 3;
  min-height: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #d2bd9d;
  box-shadow: none;
}

figcaption { padding: 0.55rem 0.2rem 0; color: var(--green); font-weight: 760; }

.cta {
  width: min(var(--max), calc(100% - 2rem));
  margin: 1.5rem auto 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: clamp(1.4rem, 3.4vw, 2.6rem);
  border-radius: calc(var(--radius) + 8px);
  color: #fff8ec;
  background:
    linear-gradient(135deg, rgba(47, 75, 55, 0.96), rgba(82, 99, 63, 0.94)),
    url('../Über uns/Home_1.jpeg') center/cover;
  box-shadow: var(--shadow);
}

.cta .kicker,
.cta p { color: rgba(255, 248, 236, 0.82); }
.cta .btn.primary { background: #fff8ec; color: var(--green); }

.story figure { margin: 0; }
.story .media-bg,
.contact-hero > .media-bg { aspect-ratio: 4 / 5; }

.reverse { grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1fr); }
.reverse > div { grid-column: 2; }
.reverse > figure { grid-column: 1; grid-row: 1; }

.value-grid,
.news-grid,
.animal-grid,
.team-grid,
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.value-grid article,
.feature-card,
.support-box,
.contact-card,
.mail-panel,
.news-card,
.animal-card,
.team-grid article,
.instagram-card,
.feed-status,
.nature-band {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: rgba(255, 248, 236, 0.46);
  box-shadow: var(--soft-shadow);
}

.value-grid article,
.team-grid article,
.nature-band { padding: clamp(1.35rem, 3vw, 2.2rem); }

.nature-band p {
  color: var(--muted);
  font-size: 1.08rem;
}

.signature { color: var(--green); font-weight: 760; }
.team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.team-grid article p { color: var(--muted); }

.animal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.animal-card { display: flex; flex-direction: column; overflow: hidden; }
.animal-card > div:last-child { padding: 1.1rem; }
.animal-card p { color: var(--muted); }
.card-gallery .media-bg { min-height: 240px; border-radius: 0; box-shadow: none; }

.mini-row,
.thumb-grid { display: grid; gap: 0.45rem; }
.mini-row {
  grid-template-columns: repeat(3, 1fr);
  padding: 0.45rem;
  background: rgba(47, 75, 55, 0.08);
}

.mini-row span {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  background-color: #c6b28f;
  background-size: cover;
  background-position: center 38%;
}

.support-section { align-items: stretch; }
.support-box { padding: 1.35rem; display: grid; align-content: center; gap: 1rem; }

.gallery-static { display: grid; gap: 0.65rem; }
.gallery-main { aspect-ratio: 16 / 10; min-height: 420px; }
.thumb-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.thumb-grid .media-bg { min-height: 0; aspect-ratio: 1 / 1; box-shadow: none; }

.feature-card { padding: clamp(1.25rem, 3vw, 2.2rem); }
.feature-card p { color: var(--muted); }
.clean-list { margin: 1.4rem 0; padding: 0; list-style: none; }
.clean-list li { padding: 0.72rem 0; border-top: 1px solid var(--line); color: var(--muted); }

.news-feed-section { padding-top: 2rem; }
.instagram-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feed-status {
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
  color: var(--muted);
}

.feed-status[hidden] { display: none; }
.instagram-card { overflow: hidden; }
.instagram-card .feed-media {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #c6b28f;
}

.instagram-card .feed-media-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  padding: 1rem;
  color: var(--green);
  background: linear-gradient(135deg, rgba(47, 75, 55, 0.12), rgba(143, 104, 68, 0.16));
}

.instagram-content { padding: 1.05rem; }
.instagram-content time {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--earth);
  font-size: 0.82rem;
  font-weight: 760;
}

.instagram-content h3 { font-size: 1.28rem; }
.instagram-content p { color: var(--muted); }

.contact-hero {
  grid-template-columns: 0.95fr 1fr;
  padding-top: clamp(2.2rem, 5vw, 4.5rem);
}

.contact-card { padding: clamp(1.4rem, 3.5vw, 2.6rem); }
address { margin-top: 1.4rem; font-style: normal; color: var(--muted); }
address a,
.site-footer a { color: inherit; border-bottom: 1px solid currentColor; }

.mail-panel { padding: clamp(1.4rem, 3vw, 2.2rem); text-align: center; }

.site-footer {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto 1rem;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  color: rgba(255, 248, 236, 0.88);
  background: var(--green);
  border-radius: calc(var(--radius) + 8px);
}

.site-footer p { margin: 0.6rem 0; color: rgba(255, 248, 236, 0.72); }
.site-footer > div:last-child {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  justify-content: flex-end;
  gap: 0.75rem 1rem;
}

.site-footer > div:last-child a { border-bottom-color: rgba(255, 248, 236, 0.35); }

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    min-height: 66px;
    gap: 1rem;
    padding: 0.35rem 0 0.45rem;
  }

  .brand {
    grid-column: 1;
    align-items: flex-start;
  }

  .nav-button {
    grid-column: 2;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 42px;
    padding: 0.5rem 0.72rem;
    border: 1px solid rgba(255, 248, 235, 0.2);
    border-radius: 999px;
    color: #fff8eb;
    cursor: pointer;
  }

  .nav-icon { display: grid; gap: 4px; }
  .nav-icon i { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 999px; }
  .nav-label { font-size: 0.9rem; font-weight: 760; }

  .main-nav {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0 0 1rem;
  }

  .nav-toggle:checked ~ .main-nav { display: flex; }
  .main-nav a {
    width: 100%;
    padding: 0.78rem 0.9rem;
    border-radius: var(--radius);
    background: rgba(255, 248, 235, 0.08);
    font-size: 0.96rem;
  }

  .hero,
  .page-hero { min-height: 72svh; }
  .hero-panel { display: none; }
  .intro-grid,
  .story,
  .reverse,
  .feature-split,
  .support-section,
  .contact-hero,
  .nature-band { grid-template-columns: 1fr; }
  .reverse > div,
  .reverse > figure { grid-column: auto; grid-row: auto; }
  .animal-showcase,
  .animal-grid,
  .value-grid,
  .news-grid,
  .team-grid,
  .instagram-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .animal-showcase figure:first-child { grid-row: auto; }
  .animal-showcase figure:first-child .media-bg { min-height: 0; aspect-ratio: 4 / 3; }
  .gallery-main { min-height: 320px; }
  .section-head,
  .cta,
  .site-footer { align-items: stretch; flex-direction: column; }
  .site-footer > div:last-child { justify-content: flex-start; }
}

@media (max-width: 640px) {
  body { line-height: 1.6; }
  .topline { font-size: 0.7rem; }
  .header-inner,
  .section,
  .hero-inner,
  .site-footer,
  .cta { width: min(100% - 1rem, var(--max)); }
  .brand span { font-size: 1.45rem; }
  .brand small { font-size: 0.56rem; }
  .nav-label { display: none; }
  .hero-inner { padding: 5rem 0 3rem; }
  .hero-actions,
  .btn { width: 100%; }
  .btn { padding-inline: 0.9rem; }
  .animal-showcase,
  .animal-grid,
  .value-grid,
  .news-grid,
  .team-grid,
  .instagram-grid { grid-template-columns: 1fr; }
  .thumb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-main { min-height: 240px; }
  .card-gallery .media-bg,
  .instagram-card .feed-media,
  .instagram-card .feed-media-placeholder { min-height: 220px; }
  .site-footer { padding: 1.35rem; }
}


/* Kleine Inhalts-Ergänzungen für aktuelle Üsi-Oase-Version */
.family-photo {
  margin-top: 1rem;
}
.family-photo .media-bg {
  aspect-ratio: 16 / 7;
  min-height: 280px;
  background-size: cover;
  background-position: center;
}
.placeholder-note {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.animal-card .temporary-text {
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
}
.patenschaft-hero {
  min-height: 42svh;
  margin-bottom: 0;
}
.patenschaft-hero .hero-inner {
  padding-top: 4.2rem;
  padding-bottom: 3.2rem;
}
.contact-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}
@media (max-width: 640px) {
  .family-photo .media-bg { min-height: 200px; }
  .patenschaft-hero { min-height: 38svh; }
}
