/* =========================================================
   St. Franziskus Kindertagesstätte – bereinigtes Haupt-CSS
   Stand: konsolidiert nach V7, ohne alte Override-Schichten
   ========================================================= */

/* -----------------------------
   1. Design Tokens / Reset
   ----------------------------- */
:root {
  --blue: #0d8097;
  --blue-dark: #0a5670;
  --blue-soft: #b6ddf4;
  --violet: #6f2c91;
  --violet-dark: #54206f;
  --green: #86bf44;
  --green-dark: #4f8b36;
  --orange: #e27625;
  --yellow: #f5bd25;
  --cream: #fff9ef;
  --paper: #fffdf9;
  --ink: #1e2f3d;
  --muted: #66737c;
  --line: rgba(31, 47, 61, .12);
  --shadow: 0 18px 44px rgba(31, 47, 61, .13);

  --v4-purple: #6f2c91;
  --v4-purple-dark: #4f146d;
  --v4-blue: #063967;
  --v4-turquoise: #1699a3;
  --v4-green: #86bf44;
  --v4-soft-green: #eef8de;
  --v4-yellow: #f7bd20;
  --v4-orange: #ef7b22;
  --v4-paper: #fffdf8;
  --v4-cream: #fff8ee;
  --v4-shadow: 0 18px 45px rgba(35, 31, 32, .12);
  --v4-radius: 26px;

  --max: 1500px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #162636;
  background: linear-gradient(180deg, #fffdf8 0, #fffaf2 52%, #f7fbeb 100%);
  font-family: "Trebuchet MS", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
}

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

.container {
  width: min(var(--max), calc(100% - 72px));
  margin-inline: auto;
}

/* -----------------------------
   2. Header / Navigation
   ----------------------------- */
.site-header {
  position: relative;
  top: auto;
  z-index: 80;
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
  border-bottom: 0;
}

.header-shell {
  width: min(1500px, calc(100% - 48px));
  min-height: 132px;
  display: grid;
  grid-template-columns: 330px 1fr;
  align-items: start;
  gap: 28px;
  padding: 22px 0 10px;
  margin: auto;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  align-self: start;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 82px;
  height: 82px;
  /*border-radius: 999px;*/
  object-fit: contain;
}

.brand strong {
  display: block;
  font-family: "Segoe Print", "Comic Sans MS", "Trebuchet MS", cursive;
  font-size: 1.75rem;
  line-height: 1.02;
  color: var(--v4-purple);
  letter-spacing: .01em;
  font-weight: 900;
}

.brand small {
  display: block;
  margin-top: 5px;
  color: #141414;
  font-size: 1rem;
  line-height: 1.1;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(16, 65, 80, .17);
  cursor: pointer;
  padding: 12px;
}

.nav-toggle span {
  display: block;
  height: 4px;
  margin: 6px 0;
  background: var(--blue-dark);
  border-radius: 99px;
}

.main-nav {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  align-content: start;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding-top: 14px;
}

.main-nav > a,
.nav-item > a,
.nav-parent {
  color: #111;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  text-decoration: none;
  white-space: nowrap;
  font-size: .92rem;
  font-weight: 900;
  padding: 8px 0 10px;
}

.main-nav > a:hover,
.main-nav > a.active,
.nav-item > a:hover,
.nav-item > a.active {
  color: var(--v4-purple);
  box-shadow: inset 0 -4px 0 var(--v4-purple);
}

.nav-parent {
  appearance: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.nav-parent::after,
.nav-item > a::after {
  content: "▾";
  margin-left: 7px;
  color: var(--v4-purple);
  font-size: .75em;
}

.nav-parent:hover {
  color: var(--v4-purple);
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-item.has-subnav {
  padding-bottom: 18px;
  margin-bottom: -18px;
}

.subnav {
  position: absolute;
  top: calc(100% - 2px);
  left: 50%;
  min-width: 220px;
  padding: 4px;
  background: #fff7ed;
  border: 1px solid rgba(111, 44, 145, .14);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(18, 41, 74, .18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition: .16s ease;
  z-index: 999;
}

.subnav::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
}

.subnav a {
  display: block !important;
  padding: 10px 18px !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, .72) !important;
  color: #12294a !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  white-space: nowrap;
}

.subnav a::before {
  content: none !important;
}

.subnav a + a {
  margin-top: 6px;
}

.subnav a:hover,
.subnav a.active {
  background: #efe2f5 !important;
  color: var(--v4-purple) !important;
}

.has-subnav:hover .subnav,
.has-subnav:focus-within .subnav {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* -----------------------------
   3. Buttons / Basics
   ----------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  padding: 15px 30px;
  color: inherit;
  text-decoration: none;
  font-weight: 950;
  font-size: 1rem;
  box-shadow: 0 16px 32px rgba(29, 44, 56, .15);
}

.btn.primary {
  background: linear-gradient(135deg, var(--v4-purple), #8e33b6);
  color: #fff;
}

.btn.secondary {
  background: linear-gradient(135deg, var(--v4-turquoise), #1baeb1);
  color: #fff;
}

.btn.ghost {
  background: #fff;
  color: var(--blue-dark);
}

.btn.danger {
  background: #d84237;
  color: #fff;
}

.eyebrow {
  color: var(--v4-purple);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 950;
  font-size: .94rem;
}

.eyebrow.small {
  color: var(--orange);
  font-size: .72rem;
}

/* -----------------------------
   4. Startseite Hero
   ----------------------------- */
.home-stage {
  position: relative;
  min-height: 690px;
  margin-top: 0;
  background: var(--hero-image) center right 38% / cover no-repeat;
  overflow: hidden;
  isolation: isolate;
}

.home-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 35% 44%, rgba(255, 255, 255, .8) 0 13%, rgba(255, 255, 255, 0) 28%),
    linear-gradient(90deg, rgba(255, 253, 248, 1) 0%, rgba(255, 253, 248, .97) 21%, rgba(255, 253, 248, .75) 36%, rgba(255, 253, 248, .20) 55%, rgba(255, 253, 248, .02) 100%);
}

.home-stage::after {
  content: "";
  position: absolute;
  left: -4vw;
  right: -4vw;
  bottom: -1px;
  height: 115px;
  z-index: 1;
  background: #fffdf8;
  border-radius: 50% 50% 0 0 / 54% 46% 0 0;
  transform: translateY(64px);
}

.sky-wave {
  display: none;
}

.home-hero-wrap {
  position: relative;
  z-index: 3;
  width: min(1680px, calc(100% - 100px));
  min-height: 660px;
  margin: auto;
  display: flex;
  align-items: center;
}

.home-copy {
  width: min(560px, 44vw);
  padding: 34px 0 92px;
}

.home-copy h1 {
  margin: 18px 0 22px;
  color: var(--v4-blue);
  font-family: "Segoe Print", "Comic Sans MS", "Trebuchet MS", cursive;
  font-size: clamp(4.2rem, 6.2vw, 7.4rem);
  line-height: .93;
  letter-spacing: -.035em;
  font-weight: 900;
}

.home-copy p {
  max-width: 470px;
  margin: 0 0 28px;
  color: #202020;
  font-size: 1.5rem;
  line-height: 1.35;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.btn.primary::before {
  content: "⚚";
  margin-right: 9px;
  font-size: 1.15rem;
}

.btn.secondary::before {
  content: "☎";
  margin-right: 9px;
  font-size: 1.05rem;
}

/* -----------------------------
   5. Quicklinks
   ----------------------------- */
.quicklinks-row {
  position: relative;
  z-index: 10;
  margin-top: -96px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
}

.quick-card {
  position: relative;
  min-height: 158px;
  display: grid;
  grid-template-columns: 74px 1fr 170px;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0 18px;
  background: #fff;
  border-radius: var(--v4-radius);
  padding: 24px 22px;
  color: #12294a;
  text-decoration: none;
  box-shadow: var(--v4-shadow);
  border: 1px solid rgba(10, 42, 65, .08);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.quick-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(35, 31, 32, .16);
}

.quick-card img {
  grid-column: 3;
  grid-row: 1 / 3;
  width: 170px;
  height: 82px;
  object-fit: cover;
  border-radius: 14px;
}

.quick-card strong {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  color: #0c3260;
  font-size: 1.2rem;
  line-height: 1.05;
  font-weight: 950;
}

.quick-card small {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  margin-top: 8px;
  color: #333;
  font-size: 1rem;
}

.quick-card i,
.quick-icon {
  display: none !important;
}

/* -----------------------------
   6. Welcome / Gruppen
   ----------------------------- */
.welcome-scene {
  position: relative;
  padding: 92px 0 32px;
  background: #fffdf8;
  overflow: visible;
}

.welcome-grid {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: 380px minmax(420px, 1fr) 360px;
  gap: 58px;
  align-items: center;
}

.organic-photo {
  position: relative;
  overflow: hidden;
  /*border-radius: 50%;*/
  border-radius: 15%;
  box-shadow: 0 20px 50px rgba(35, 31, 32, .14);
  background: #fff;
  /*transform: rotate(-2deg);*/
}

.organic-photo img {
  width: 100%;
  /*height: 370px;*/
  object-fit: cover;
  /*transform: rotate(2deg) scale(1.05);*/
}

.welcome-text h2 {
  position: relative;
  margin: 0 0 15px;
  color: var(--v4-purple);
  font-family: "Segoe Print", "Comic Sans MS", "Trebuchet MS", cursive;
  font-size: clamp(2.7rem, 3.6vw, 4rem);
  line-height: .95;
  letter-spacing: -.035em;
}

.welcome-text h2::after {
  content: "♡";
  position: absolute;
  right: 0;
  top: 6px;
  color: #f3749d;
  font-family: "Segoe Print", cursive;
  font-size: 3rem;
  transform: rotate(18deg);
}

.welcome-text h2 span {
  font-size: .68em;
}

.welcome-text p {
  margin: .52rem 0;
  font-size: 1.05rem;
  line-height: 1.55;
}

.welcome-text strong {
  color: var(--v4-purple);
  font-weight: 950;
}

.franz-quote {
  position: relative;
  background: linear-gradient(135deg, #f3fbe9, #fffdf8);
  border-radius: 30px;
  box-shadow: 0 18px 44px rgba(35, 31, 32, .09);
  padding: 42px 36px;
  text-align: center;
  border: 1px solid rgba(134, 191, 68, .16);
}

.franz-quote::after {
  content: "";
  position: absolute;
  right: 56px;
  bottom: -20px;
  border: 20px solid transparent;
  border-top-color: #fffdf8;
}

.franz-quote span {
  display: block;
  color: #9ac528;
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 16px;
}

.franz-quote p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 0 0 10px;
  color: #222;
}

.franz-quote small {
  font-size: 1rem;
  color: #333;
}

.groups-band {
  position: relative;
  z-index: 4;
  padding: 30px 0 64px;
  background: #fffdf8;
}

.groups-band::before {
  content: "";
  display: block;
  width: min(1120px, calc(100% - 72px));
  height: 1px;
  margin: 0 auto 36px;
  background: linear-gradient(90deg, transparent, rgba(134, 191, 68, .42), transparent);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 32px;
}

.section-heading h2 {
  margin: 0;
  color: #312d2c;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 3.1vw, 3rem);
}

.section-heading span {
  width: min(150px, 20vw);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
}

.section-heading.playful h2 {
  color: var(--v4-purple);
  font-family: "Segoe Print", "Comic Sans MS", "Trebuchet MS", cursive;
  font-size: 2.55rem;
  letter-spacing: -.025em;
}

.group-logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.wide-groups {
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  max-width: 1120px;
  margin-inline: auto;
}

.group-logo-card {
  min-height: 118px;
  background: #fff;
  border: 1px solid rgba(15, 40, 62, .08);
  border-radius: 20px;
  box-shadow: 0 15px 36px rgba(35, 31, 32, .08);
  padding: 18px 16px 14px;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease;
}

.group-logo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 42px rgba(35, 31, 32, .12);
}

.group-logo-card img {
  width: 62px;
  height: 62px;
  margin: 0 auto 8px;
  object-fit: contain;
  border-radius: 0;
  /*filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .08));*/
}

.group-logo-card strong {
  color: var(--v4-purple);
  font-size: .96rem;
  line-height: 1.15;
}

/* -----------------------------
   7. Content / Subpages
   ----------------------------- */
.content-section {
  padding: 70px 0;
}

.compact-section {
  padding-top: 18px;
}

.subpage-hero {
  position: relative;
  background: linear-gradient(135deg, #fff 0, #fff 44%, rgba(182, 221, 244, .55) 100%);
  padding: 80px 0 110px;
  overflow: hidden;
}

.subpage-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70px;
  background: var(--blue-soft);
  clip-path: polygon(0 44%, 12% 58%, 29% 43%, 48% 60%, 67% 42%, 84% 56%, 100% 41%, 100% 100%, 0 100%);
}

.subpage-hero::after {
  content: "";
  position: absolute;
  right: 8vw;
  top: 48px;
  width: 76px;
  /*height: 76px;*/
  height: 90px;
  /*background: url('/assets/img/groups/schmetterling.jpg') center / contain no-repeat;*/
  background: url('/assets/img/logo.jpg') center / contain no-repeat;
  /*border-radius: 50%;*/
  border-radius: 10%;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .14));
  /*transform: rotate(10deg);*/
}

.subpage-hero h1 {
  margin: 12px 0;
  color: #102f55;
  font-family: Georgia, serif;
  font-size: clamp(2.4rem, 4.5vw, 4.7rem);
  line-height: 1.02;
}

.subpage-hero p {
  max-width: 780px;
  margin: 0;
  color: #333;
  font-size: 1.18rem;
}

.subpage-hero .eyebrow {
  color: var(--violet);
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.two-column-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding-top: 42px;
}

.content-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 18px 44px rgba(35, 31, 32, .10);
  padding: 32px;
  overflow: hidden;
}

.content-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--violet), var(--blue), var(--green), var(--orange));
}

.content-card::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 16px;
  width: 90px;
  height: 90px;
  opacity: .12;
  background:
    radial-gradient(circle at 30% 30%, var(--yellow) 0 22%, transparent 23%),
    radial-gradient(circle at 70% 38%, var(--violet) 0 18%, transparent 19%),
    radial-gradient(circle at 44% 70%, var(--green) 0 24%, transparent 25%);
}

.content-card.orange-top::before {
  background: linear-gradient(90deg, var(--orange), var(--yellow));
}

.content-card.wide {
  grid-column: 1 / -1;
}

.content-card > img {
  width: calc(100% + 64px);
  height: 285px;
  object-fit: cover;
  margin: -32px -32px 26px;
}

.content-card h2 {
  margin: .2rem 0 1rem;
  color: #302d29;
  font-family: Georgia, serif;
  font-size: clamp(1.55rem, 2.2vw, 2.3rem);
  line-height: 1.12;
}

.richtext p {
  margin: 0 0 1.05rem;
}

.richtext h3 {
  margin: 1.6rem 0 .8rem;
  color: var(--v4-purple);
  font-family: Georgia, serif;
  font-size: 1.55rem;
}

.richtext ul {
  display: grid;
  gap: .75rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.richtext li {
  position: relative;
  padding: .9rem 1rem .9rem 2.6rem;
  border-radius: 16px;
  background: #fff8ef;
  border: 1px solid rgba(31, 47, 61, .08);
}

.richtext li::before {
  content: "•";
  position: absolute;
  left: 1rem;
  top: .9rem;
  color: var(--v4-green);
  font-weight: 950;
}

.richtext li strong {
  color: var(--v4-purple);
}

.richtext table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  overflow: hidden;
  border-radius: 16px;
}

.richtext th,
.richtext td {
  padding: 12px 14px;
  border: 1px solid rgba(31, 47, 61, .12);
  text-align: left;
}

.richtext th {
  background: #f3eadc;
  color: #102f55;
}

.richtext tr:nth-child(even) td {
  background: #fff8ef;
}

.link-list {
  display: grid;
  gap: 12px;
}

.link-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f6efe4;
  text-decoration: none;
  font-weight: 950;
}

.link-list a::after {
  content: "›";
  color: var(--orange);
  font-size: 1.6rem;
}

/* -----------------------------
   8. Galerie / Lightbox
   ----------------------------- */
.gallery-landing-hero,
.gallery-detail-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 24%, rgba(182, 221, 244, .58), transparent 28%),
    linear-gradient(105deg, #fffdf8 0%, #fffdf8 45%, #eef8ff 100%);
}

.gallery-landing-hero::before,
.gallery-detail-hero::before {
  content: "";
  position: absolute;
  left: -4vw;
  right: -4vw;
  top: -1px;
  height: 92px;
  background: #fff;
  border-bottom-left-radius: 50% 72px;
  border-bottom-right-radius: 50% 72px;
  z-index: 1;
}

.gallery-landing-hero::after,
.gallery-detail-hero::after {
  content: "";
  position: absolute;
  left: -3vw;
  right: -3vw;
  bottom: -42px;
  height: 96px;
  background: #b6ddf4;
  border-top-left-radius: 50% 58px;
  border-top-right-radius: 50% 58px;
  opacity: .95;
}

.gallery-landing-shell,
.gallery-detail-shell {
  position: relative;
  z-index: 2;
  width: min(1500px, calc(100% - 72px));
  min-height: 520px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(390px, 520px) 1fr;
  align-items: center;
  gap: 64px;
  padding: 96px 0 116px;
}

.gallery-landing-copy h1,
.gallery-detail-copy h1 {
  max-width: 720px;
  margin: 12px 0 16px;
  color: #102f55;
  font-family: Georgia, serif;
  font-size: clamp(3.6rem, 6vw, 6.2rem);
  line-height: .96;
}

.gallery-detail-copy h1 {
  font-size: clamp(3rem, 5vw, 5.2rem);
}

.gallery-landing-copy p,
.gallery-detail-copy p {
  max-width: 560px;
  margin: 0 0 28px;
  color: #1d2630;
  font-size: 1.32rem;
}

.gallery-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.gallery-landing-visual {
  position: relative;
  min-height: 390px;
  align-self: stretch;
}

.gallery-hero-main {
  position: absolute;
  inset: 20px 0 0 auto;
  width: min(820px, 100%);
  height: 390px;
  object-fit: cover;
  border-radius: 42px 42px 42px 120px;
  box-shadow: 0 28px 70px rgba(31, 47, 61, .18);
}

.gallery-overview-section,
.gallery-photo-section {
  padding: 72px 0 92px;
}

.gallery-section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 0 0 36px;
}

.gallery-section-title h2 {
  margin: 0;
  color: var(--v4-purple);
  font-family: Georgia, serif;
  font-size: clamp(2.1rem, 3vw, 3.2rem);
  line-height: 1;
}

.gallery-section-title span {
  width: min(160px, 18vw);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--v4-green), transparent);
}

.gallery-grid,
.gallery-grid-featured {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.gallery-card,
.gallery-card-modern {
  position: relative;
  display: block;
  background: #fff;
  border: 1px solid rgba(31, 47, 61, .08);
  border-radius: 30px;
  box-shadow: 0 22px 56px rgba(31, 47, 61, .13);
  overflow: hidden;
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease;
}

.gallery-card-modern {
  min-height: 460px;
}

.gallery-card:hover,
.gallery-card-modern:hover {
  transform: translateY(-7px);
  box-shadow: 0 30px 70px rgba(31, 47, 61, .18);
}

.gallery-card-modern::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 9px;
  background: linear-gradient(90deg, var(--v4-purple), var(--v4-turquoise), var(--v4-green), var(--v4-orange));
  z-index: 2;
}

.gallery-card img,
.gallery-card-modern img {
  width: 100%;
  height: 270px;
  object-fit: cover;
}

.gallery-card div,
.gallery-card-body {
  padding: 28px 30px 32px !important;
}

.gallery-card h2,
.gallery-card-body h2 {
  margin: .35rem 0 .65rem;
  color: #252729;
  font-family: Georgia, serif;
  font-size: clamp(1.55rem, 2vw, 2.2rem);
  line-height: 1.08;
}

.gallery-card p,
.gallery-card-body p {
  min-height: 3.2em;
  margin: 0 0 18px;
  color: #4b555c;
}

.gallery-card span,
.gallery-card-body strong {
  color: var(--v4-purple);
  font-weight: 950;
}

.gallery-count {
  position: absolute;
  right: 18px;
  top: 22px;
  z-index: 3;
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255, 255, 255, .93);
  box-shadow: 0 12px 24px rgba(31, 47, 61, .14);
  color: var(--v4-purple);
  font-weight: 950;
}

.gallery-card-modern.is-featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  min-height: 360px;
}

.gallery-card-modern.is-featured img {
  height: 100%;
  min-height: 360px;
}

.gallery-detail-shell {
  grid-template-columns: minmax(390px, 610px) 1fr;
  min-height: 500px;
}

.gallery-detail-cover {
  position: relative;
  align-self: center;
}

.gallery-detail-cover::before {
  content: "";
  position: absolute;
  inset: 24px -20px -20px 28px;
  background: linear-gradient(135deg, rgba(111, 44, 145, .18), rgba(22, 153, 163, .18));
  border-radius: 44px;
}

.gallery-detail-cover img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 390px;
  object-fit: cover;
  border-radius: 42px;
  box-shadow: 0 28px 70px rgba(31, 47, 61, .18);
}

.modern-back,
.back-link {
  display: inline-block;
  margin: 0 0 16px;
  color: var(--v4-purple) !important;
  text-decoration: none;
  font-weight: 950;
}

.gallery-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.gallery-detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(31, 47, 61, .1);
  color: #14375d;
  font-weight: 950;
}

.photo-grid,
.photo-grid-modern {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.photo-button,
.photo-button-modern {
  position: relative;
  min-height: 260px;
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(31, 47, 61, .13);
  overflow: hidden;
  cursor: pointer;
}

.photo-button-modern:nth-child(6n + 1),
.photo-button-modern:nth-child(6n + 5) {
  grid-row: span 2;
  min-height: 540px;
}

.photo-button img,
.photo-button-modern img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  aspect-ratio: auto;
  object-fit: cover;
}

.photo-button-modern span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 10px 13px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .9);
  color: #173656;
  font-weight: 900;
  text-align: left;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 48px;
  background: rgba(7, 22, 31, .88);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-height: 82vh;
  max-width: 88vw;
  border-radius: 16px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, .45);
}

.lightbox p {
  position: fixed;
  bottom: 16px;
  color: #fff;
}

.lightbox button {
  position: fixed;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #193a4c;
  font-size: 2rem;
  cursor: pointer;
}

.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.gallery-empty-card {
  max-width: 760px;
  margin: auto;
  text-align: center;
}

/* -----------------------------
   9. Footer
   ----------------------------- */
.site-footer {
  position: relative;
  margin-top: 18px;
  background: linear-gradient(180deg, #eef8dc 0%, #e2f1c9 100%);
  color: #2f6826;
  overflow: hidden;
}

.footer-illustration {
  height: 150px;
  background-image: url('/assets/img/decor/footer-landscape.svg');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center bottom;
}

.footer-inner {
  width: min(1500px, calc(100% - 72px));
  min-height: 98px;
  margin: auto;
  padding: 8px 0 34px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 30px;
  color: #2f6826;
}

.footer-contact {
  color: #2f6826;
  font-size: 1.04rem;
  line-height: 1.45;
}

.footer-contact strong {
  font-weight: 950;
}

.footer-center {
  text-align: center;
  color: #2f6826;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  color: #2f6826;
}

.site-footer a {
  color: #2f6826;
  font-weight: 950;
}

/* -----------------------------
   10. Admin
   ----------------------------- */
.admin-body {
  background: #f5f9fb;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 32px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, .06);
}

.admin-header nav {
  display: flex;
  gap: 14px;
}

.admin-main {
  width: min(1100px, calc(100% - 36px));
  margin: 34px auto;
}

.login-panel,
.admin-form {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 32px;
}

.login-panel {
  width: min(440px, calc(100% - 40px));
  margin: 8vh auto;
}

.login-panel img {
  width: 110px;
  margin: auto;
}

.admin-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.admin-titlebar h1 {
  margin: 0;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.admin-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
}

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

.admin-card div {
  padding: 18px;
}

.admin-card strong,
.admin-card small {
  display: block;
}

.admin-form {
  margin-bottom: 20px;
}

.admin-form label {
  display: block;
  margin-bottom: 14px;
  font-weight: 900;
}

.admin-form input,
.admin-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  font: inherit;
}

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

.alert.success {
  background: #e7f7dd;
  color: #285f1d;
  border-radius: 14px;
  padding: 12px 16px;
  margin: 0 0 18px;
  font-weight: 900;
}

.alert.error {
  background: #ffe4e1;
  color: #8f1d14;
  border-radius: 14px;
  padding: 12px;
}

.muted {
  color: var(--muted);
}

.admin-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.admin-photo {
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
}

.admin-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
}

.admin-photo-actions {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.admin-photo-actions button {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 8px;
  cursor: pointer;
}

.cover-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--orange);
  color: #fff;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: .8rem;
  font-weight: 900;
}

.editor-label {
  display: block;
  margin: 8px 0;
  font-weight: 900;
}

.rich-editor-source,
textarea.rich-editor-source,
.admin-form textarea.rich-editor-source {
  display: none !important;
}

.contribution-lines {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.contribution-line {
  display: grid;
  grid-template-columns: 1fr auto 44px;
  gap: 10px;
  align-items: center;
}

.contribution-line input[type="text"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
}

.check-label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  white-space: nowrap;
  font-weight: 900;
}

.line-remove {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #ffe4e1;
  color: #8f1d14;
  font-size: 1.5rem;
  font-weight: 900;
  cursor: pointer;
}

/* -----------------------------
   11. Responsive
   ----------------------------- */
@media (max-width: 1420px) {
  .header-shell {
    width: calc(100% - 52px);
    grid-template-columns: 320px 1fr;
  }

  .main-nav {
    gap: 6px 16px;
  }

  .main-nav > a,
  .nav-item > a,
  .nav-parent {
    font-size: .88rem;
  }

  .quick-card {
    grid-template-columns: 58px 1fr 120px;
    min-height: 142px;
  }

  .quick-card img {
    width: 120px;
    height: 70px;
  }

  .quick-card strong {
    font-size: 1.06rem;
  }

  .quick-card small {
    font-size: .92rem;
  }

  .welcome-grid {
    grid-template-columns: 330px 1fr 300px;
    gap: 38px;
  }

  .organic-photo img {
    /*height: 320px;*/
  }
}

@media (max-width: 1180px) {
  .site-header {
    position: sticky;
    top: 0;
    box-shadow: 0 8px 28px rgba(19, 48, 65, .08);
  }

  .header-shell {
    display: flex;
    width: calc(100% - 32px);
    min-height: 86px;
    padding: 10px 0;
    align-items: center;
  }

  .brand {
    flex: 1;
  }

  .brand img {
    width: 66px;
    height: 66px;
  }

  .brand strong {
    font-size: 1.35rem;
  }

  .brand small {
    font-size: .9rem;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .main-nav {
    display: none;
    position: absolute;
    right: 0;
    top: 82px;
    width: min(460px, calc(100vw - 28px));
    padding: 16px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .16);
    z-index: 100;
  }

  .main-nav.open {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .main-nav.open > a,
  .main-nav.open > .nav-item > a,
  .main-nav.open > .nav-item > .nav-parent,
  .main-nav.open a,
  .main-nav.open .nav-parent {
    background: #fff !important;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 16px !important;
    box-shadow: none !important;
    color: #111;
    padding: 14px 16px !important;
    font-size: .95rem !important;
    text-align: left;
  }

  .main-nav.open > a:hover,
  .main-nav.open > a.active,
  .main-nav.open > .nav-item > a:hover,
  .main-nav.open > .nav-item > a.active,
  .main-nav.open > .nav-item > .nav-parent:hover {
    background: #fff !important;
    color: var(--v4-purple) !important;
  }

  .nav-item {
    display: block;
  }

  .nav-item.has-subnav {
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .subnav {
    position: static;
    display: grid;
    gap: 8px;
    min-width: 0 !important;
    margin-top: 8px;
    padding: 8px;
    background: #fff !important;
    border: 1px solid rgba(111, 44, 145, .10);
    border-radius: 18px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .subnav::before {
    display: none;
  }

  .subnav a {
    margin: 0 !important;
    background: #fff !important;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 14px !important;
    padding: 12px 14px !important;
    white-space: normal;
  }

  .home-stage,
  .home-hero-wrap {
    min-height: 620px;
  }

  .home-copy {
    width: min(540px, 58vw);
  }

  .quicklinks-row {
    grid-template-columns: 1fr 1fr;
  }

  .welcome-grid {
    grid-template-columns: 1fr;
    max-width: 760px;
    margin-inline: auto;
  }

  .organic-photo {
    max-width: 420px;
    margin: auto;
  }

  .franz-quote {
    max-width: 420px;
    margin-inline: auto;
  }

  .wide-groups,
  .group-logo-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-landing-shell,
  .gallery-detail-shell {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: auto;
    padding: 76px 0 104px;
  }

  .gallery-landing-visual {
    min-height: 330px;
  }

  .gallery-hero-main {
    left: 0;
    width: 100%;
    height: 330px;
    border-radius: 36px;
  }

  .gallery-grid,
  .gallery-grid-featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-card-modern.is-featured {
    grid-column: 1 / -1;
  }

  .footer-inner {
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .gallery-landing-shell,
  .gallery-detail-shell {
    width: calc(100% - 28px);
    padding: 54px 0 86px;
  }

  .gallery-landing-copy h1,
  .gallery-detail-copy h1 {
    font-size: 3.2rem;
  }

  .gallery-landing-copy p,
  .gallery-detail-copy p {
    font-size: 1.08rem;
  }

  .gallery-hero-actions .btn {
    width: 100%;
  }

  .gallery-landing-visual {
    min-height: 260px;
  }

  .gallery-hero-main,
  .gallery-detail-cover img {
    height: 260px;
    border-radius: 26px;
  }

  .gallery-grid,
  .gallery-grid-featured {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .gallery-card-modern,
  .gallery-card-modern.is-featured {
    display: block;
    min-height: 0;
    grid-column: auto;
  }

  .gallery-card-modern img,
  .gallery-card-modern.is-featured img {
    height: 230px;
    min-height: 0;
  }

  .photo-grid,
  .photo-grid-modern {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .photo-button,
  .photo-button-modern,
  .photo-button-modern:nth-child(6n + 1),
  .photo-button-modern:nth-child(6n + 5) {
    min-height: 260px;
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .container {
    width: calc(100% - 26px);
  }

  .header-shell {
    min-height: 76px;
  }

  .brand img {
    width: 56px;
    height: 56px;
  }

  .brand strong {
    font-size: 1.08rem;
  }

  .brand small {
    font-size: .76rem;
  }

  .nav-toggle {
    width: 48px;
    height: 48px;
  }

  .main-nav {
    left: 0;
    right: 0;
    top: 72px;
    width: 100%;
  }

  .main-nav.open {
    grid-template-columns: 1fr;
  }

  .home-stage {
    min-height: 650px;
    background-position: center right 32%;
  }

  .home-stage::before {
    background: linear-gradient(180deg, rgba(255, 253, 248, .08) 0, rgba(255, 253, 248, .94) 58%, #fffdf8 100%);
  }

  .home-hero-wrap {
    width: calc(100% - 28px);
    min-height: 650px;
    align-items: end;
  }

  .home-copy {
    width: 100%;
    padding-bottom: 96px;
  }

  .home-copy h1 {
    font-size: 3.15rem;
  }

  .home-copy p {
    font-size: 1.15rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .quicklinks-row {
    grid-template-columns: 1fr;
    margin-top: -64px;
    gap: 16px;
  }

  .quick-card {
    grid-template-columns: 54px 1fr 96px;
    min-height: 122px;
    padding: 18px;
  }

  .quick-card img {
    width: 96px;
    height: 58px;
  }

  .quick-card strong {
    font-size: 1rem;
  }

  .quick-card small {
    font-size: .88rem;
  }

  .welcome-scene {
    padding-top: 46px;
  }

  .welcome-text h2 {
    font-size: 2.2rem;
  }

  .welcome-text h2::after {
    right: 0;
    font-size: 2.2rem;
  }

  .organic-photo img {
    height: 270px;
  }

  .franz-quote {
    padding: 30px 24px;
  }

  .franz-quote p {
    font-size: 1rem;
  }

  .wide-groups,
  .group-logo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .section-heading.playful h2 {
    font-size: 2rem;
  }

  .section-grid,
  .two-column-section {
    grid-template-columns: 1fr;
  }

  .content-section {
    padding: 48px 0;
  }

  .content-card {
    padding: 24px;
    border-radius: 20px;
  }

  .content-card > img {
    width: calc(100% + 48px);
    height: 220px;
    margin: -24px -24px 20px;
  }

  .subpage-hero {
    padding: 58px 0 84px;
  }

  .section-heading span {
    width: 48px;
  }

  .footer-illustration {
    height: 92px;
  }

  .footer-inner {
    width: calc(100% - 28px);
  }
}

@media (max-width: 620px) {
  .container {
    width: calc(100% - 24px);
  }

  .admin-form-row,
  .contribution-line,
  .admin-grid,
  .admin-photo-grid {
    grid-template-columns: 1fr;
  }

  .line-remove {
    width: 100%;
  }

  .lightbox {
    padding: 14px;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .groups-band::before {
    width: calc(100% - 24px);
  }
}

/* -----------------------------
   12. Legacy-Deko abschalten
   ----------------------------- */
.decor,
.scene-decor,
.decor-ladybug,
.decor-owl-branch,
.scene-butterfly,
.scene-flowers-left,
.scene-meadow-right,
.scene-frog,
.grass-line,
.footer-animal,
.footer-frog,
.footer-mouse,
.footer-hills,
.footer-water,
.flower {
  display: none !important;
}

/* =========================================================
   MOBILE NAV FINAL FIX
   - Untermenüs mobil eingeklappt
   - keine verschachtelten Riesenboxen
   - neutrale weiße Optik
   - scrollbares Menü
   ========================================================= */
@media (max-width: 1180px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 8px 28px rgba(19, 48, 65, .08);
  }

  .header-shell {
    display: flex !important;
    align-items: center !important;
    width: calc(100% - 32px) !important;
    min-height: 86px !important;
    padding: 10px 0 !important;
  }

  .brand {
    flex: 1;
    min-width: 0;
  }

  .brand img {
    width: 66px !important;
    height: 66px !important;
  }

  .brand strong {
    font-size: 1.35rem !important;
  }

  .brand small {
    font-size: .9rem !important;
  }

  .nav-toggle {
    display: block !important;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .main-nav {
    display: none !important;
    position: absolute !important;
    left: 16px !important;
    right: 16px !important;
    top: calc(100% + 8px) !important;
    width: auto !important;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    padding: 14px !important;
    background: rgba(255, 255, 255, .98) !important;
    border: 1px solid rgba(18, 41, 74, .08) !important;
    border-radius: 24px !important;
    box-shadow: 0 22px 60px rgba(18, 41, 74, .18) !important;
    z-index: 1001;
  }

  .main-nav.open {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .main-nav > a,
  .main-nav > .nav-item,
  .main-nav > .nav-item > a,
  .main-nav > .nav-item > .nav-parent {
    width: 100% !important;
  }

  .main-nav > a,
  .main-nav > .nav-item > a,
  .main-nav > .nav-item > .nav-parent {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 54px !important;
    padding: 14px 16px !important;
    background: #fff !important;
    border: 1px solid rgba(18, 41, 74, .08) !important;
    border-radius: 18px !important;
    box-shadow: none !important;
    color: #111 !important;
    font-size: 1rem !important;
    font-weight: 900 !important;
    text-align: left !important;
    text-decoration: none !important;
  }

  .main-nav > a:hover,
  .main-nav > a.active,
  .main-nav > .nav-item > a:hover,
  .main-nav > .nav-item > a.active,
  .main-nav > .nav-item > .nav-parent:hover {
    background: #fff !important;
    color: var(--v4-purple) !important;
    box-shadow: none !important;
  }

  .nav-item {
    display: block !important;
    position: relative !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .nav-item.has-subnav {
    padding: 0 !important;
    margin: 0 !important;
  }

  .nav-parent::after,
  .nav-item > a::after {
    content: "▾";
    margin-left: 10px;
    color: var(--v4-purple);
    font-size: .75em;
  }

  .has-subnav.open > .nav-parent::after,
  .has-subnav.open > a::after {
    transform: rotate(180deg);
  }

  .subnav {
    position: static !important;
    display: none !important;
    min-width: 0 !important;
    margin: 8px 0 0 !important;
    padding: 0 0 0 12px !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  .has-subnav.open > .subnav {
    display: grid !important;
    gap: 8px !important;
  }

  .subnav::before {
    display: none !important;
  }

  .subnav a {
    display: block !important;
    margin: 0 !important;
    padding: 13px 15px !important;
    background: #fff !important;
    border: 1px solid rgba(18, 41, 74, .07) !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    color: #12294a !important;
    font-size: .96rem !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    white-space: normal !important;
  }

  .subnav a:hover,
  .subnav a.active {
    background: #fff !important;
    color: var(--v4-purple) !important;
  }
}

@media (max-width: 720px) {
  .header-shell {
    width: calc(100% - 24px) !important;
    min-height: 78px !important;
  }

  .brand img {
    width: 56px !important;
    height: 56px !important;
  }

  .brand strong {
    font-size: 1.08rem !important;
  }

  .brand small {
    font-size: .76rem !important;
  }

  .nav-toggle {
    width: 48px !important;
    height: 48px !important;
  }

  .main-nav {
    left: 10px !important;
    right: 10px !important;
    top: calc(100% + 6px) !important;
    max-height: calc(100vh - 105px);
    padding: 12px !important;
    border-radius: 22px !important;
  }
}

.content-card.has-section-image {
  padding: 0;
}

.content-card.has-section-image::after {
  display: none;
}

.content-card.has-section-image .section-body {
  padding: 32px;
}

.section-image {
  margin: 0;
  overflow: hidden;
  background: #f6efe4;
}

.section-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Standard: Bild oben */
.content-card.image-top .section-image {
  height: 320px;
  border-radius: 26px 26px 0 0;
}

.content-card.image-top .section-image img {
  object-fit: cover;
  object-position: center;
}

/* Bild links/rechts */
.content-card.image-left,
.content-card.image-right {
  display: grid;
  grid-template-columns: minmax(280px, 38%) 1fr;
  align-items: stretch;
}

.content-card.image-right {
  grid-template-columns: 1fr minmax(280px, 38%);
}

.content-card.image-left .section-image {
  grid-column: 1;
  grid-row: 1;
}

.content-card.image-left .section-body {
  grid-column: 2;
  grid-row: 1;
}

.content-card.image-right .section-image {
  grid-column: 2;
  grid-row: 1;
}

.content-card.image-right .section-body {
  grid-column: 1;
  grid-row: 1;
}

.content-card.image-left .section-image,
.content-card.image-right .section-image {
  min-height: 520px;
}

.content-card.image-left .section-image img,
.content-card.image-right .section-image img {
  object-fit: cover;
  object-position: center;
}

/* Für Hochformat-Bilder: nicht oben abschneiden */
.content-card.image-left .section-image img,
.content-card.image-right .section-image img {
  object-fit: cover;
}

/* Optional: wenn du das komplette Hochformatbild sehen willst */
.content-card.image-contain .section-image img {
  object-fit: contain;
  background: #f6efe4;
}

/* Mobile immer Bild oben */
@media (max-width: 820px) {
  .content-card.image-left,
  .content-card.image-right {
    display: block;
  }

  .content-card.image-left .section-image,
  .content-card.image-right .section-image {
    min-height: 0;
    height: auto;
    max-height: none;
  }

  .content-card.image-left .section-image img,
  .content-card.image-right .section-image img {
    height: auto;
    object-fit: contain;
  }
}