@import url("https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&family=Quattrocento+Sans:wght@400;700&family=Rubik:wght@400&display=swap");

:root {
  --pink: #f67992;
  --pink-light: #f49aac;
  --pink-dark: #f45575;
  --green: #a0ce4e;
  --blue: #1a80b6;
  --ink: #1f1f1f;
  --heading: #333333;
  --muted: #8c8989;
  --line: #e0dede;
  --paper: #ffffff;
  --soft: #f6f6f6;
  --content: 840px;
  --wide: 1170px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(246, 121, 146, 0.12), transparent 22rem),
    radial-gradient(circle at 92% 12%, rgba(160, 206, 78, 0.11), transparent 20rem),
    linear-gradient(180deg, #ffffff 0%, #fff9fb 36rem, #ffffff 72rem);
  color: var(--ink);
  font-family: "PT Serif", Georgia, serif;
  font-size: 15px;
  line-height: 1.5;
}

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

a {
  color: var(--heading);
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

a:hover,
a:focus {
  color: var(--blue);
}

p {
  margin: 0 0 1.45rem;
}

h1,
h2,
h3 {
  color: var(--heading);
  font-family: "Quattrocento Sans", Arial, sans-serif;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.4;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.1rem, 4vw, 3.3rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.45rem);
}

h3 {
  font-size: 1.3rem;
}

strong,
b {
  font-weight: 700;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 20;
  background: var(--paper);
  padding: 0.6rem 1rem;
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-top: 4px solid var(--pink);
  border-bottom: 1px solid rgba(246, 121, 146, 0.24);
  box-shadow: 0 8px 24px rgba(51, 51, 51, 0.06);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(var(--wide), calc(100% - 44px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo img {
  width: 165px;
  height: auto;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--pink);
  cursor: pointer;
  padding: 0;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: block;
  width: 22px;
  height: 3px;
  margin: 4px auto;
  background: currentColor;
  content: "";
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  font-family: Rubik, Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 1px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li {
  position: relative;
}

.site-nav a {
  display: block;
  position: relative;
  padding: 0.58rem 0.78rem;
  border-radius: 8px;
  color: var(--heading);
}

.site-nav li.active > a {
  color: var(--pink);
}

.site-nav li.active > a::after {
  position: absolute;
  left: 0.78rem;
  right: 0.78rem;
  bottom: 0.25rem;
  height: 2px;
  background: var(--pink);
  content: "";
}

.site-nav a:hover {
  color: var(--pink);
}

.subnav {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  display: none;
  padding: 0.35rem 0;
  border: 1px solid rgba(246, 121, 146, 0.24);
  border-top: 3px solid var(--pink);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 16px 34px rgba(51, 51, 51, 0.12);
}

.site-nav li:hover > .subnav,
.site-nav li:focus-within > .subnav {
  display: block;
}

.site-nav .subnav {
  display: none;
}

.subnav li {
  display: block;
}

.subnav a {
  display: block;
  padding: 0.6rem 1rem;
  color: #2f576f;
  white-space: nowrap;
}

.subnav a:hover,
.subnav a:focus {
  background: var(--soft);
  color: var(--blue);
}

.hero {
  min-height: 260px;
  display: grid;
  place-items: center;
  padding: 2rem 1.5rem;
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 -80px 80px rgba(0, 0, 0, 0.12);
  text-align: center;
}

.hero-person {
  min-height: 360px;
}

.hero-angebot {
  background-position: center 60%;
}

.hero-uber-uns {
  background-position: center 37%;
}

.hero-padagogik {
  background-position: center 18%;
}

.hero h1,
.hero p {
  color: var(--paper);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.hero h1 {
  margin-bottom: 0.25rem;
  line-height: 1.08;
}

.hero p {
  margin: 0;
  font-family: "Quattrocento Sans", Arial, sans-serif;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

.content {
  width: min(var(--content), calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(4rem, 7vw, 5.5rem);
}

.content-wide {
  width: min(1040px, calc(100% - 44px));
}

.section,
.text-block,
.news-card {
  border: 1px solid rgba(224, 222, 222, 0.9);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(51, 51, 51, 0.07);
}

.section,
.text-block {
  padding: clamp(1.35rem, 3vw, 2rem);
}

.section {
  margin-top: 1.6rem;
}

.section:first-child {
  margin-top: 0;
}

.section h2 {
  margin-bottom: 1.2rem;
}

.section p:last-child,
.section ul:last-child,
.text-block p:last-child,
.team-card p:last-child,
.team-card ul:last-child,
.material-card p:last-child,
.material-card ul:last-child,
.schedule-card p:last-child,
.schedule-card ul:last-child,
.fee-group p:last-child,
.fee-group ul:last-child,
.parent-offer-card p:last-child,
.parent-offer-card ul:last-child {
  margin-bottom: 0;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
}

.page-image {
  width: 100%;
  border: 1px solid rgba(224, 222, 222, 0.95);
}

.partner-logo {
  width: min(620px, 100%);
  margin: 2.5rem auto 0;
}

.carousel {
  position: relative;
  margin-top: 1.6rem;
  overflow: hidden;
  border: 1px solid rgba(224, 222, 222, 0.9);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(51, 51, 51, 0.08);
}

.carousel-track {
  display: flex;
  transition: transform 320ms ease;
}

.carousel-slide {
  min-width: 100%;
}

.carousel-slide img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  background: rgba(246, 121, 146, 0.9);
  color: var(--paper);
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
}

.carousel-button:hover {
  background: var(--pink-dark);
}

.carousel-button.prev {
  left: 0.6rem;
}

.carousel-button.next {
  right: 0.6rem;
}

.section-kontakt p {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.section-kontakt p br {
  display: none;
}

.section-kontakt p a,
.section-kontakt p {
  font-style: normal;
}

.section-kontakt p {
  padding: 0.75rem 0.9rem;
  border-left: 3px solid rgba(246, 121, 146, 0.5);
  background: rgba(246, 246, 246, 0.7);
}

.section-kontakt p a {
  display: block;
}

.team-card,
.material-card,
.schedule-card,
.fee-group,
.parent-offer-card {
  margin-top: 0.9rem;
  padding: 1rem;
  border: 1px solid rgba(224, 222, 222, 0.9);
  border-radius: 8px;
  background: #ffffff;
}

.team-card h3,
.material-card h3,
.schedule-card h3,
.fee-group h3,
.parent-offer-card h3 {
  margin-bottom: 0.45rem;
  font-family: "Quattrocento Sans", Arial, sans-serif;
  font-size: 1.05rem;
}

.fee-group ul {
  display: grid;
  gap: 0.45rem;
  margin: 0.8rem 0 1.1rem;
  padding-left: 1.2rem;
}

.team-card:nth-of-type(3n + 1),
.material-card:nth-of-type(3n + 1),
.schedule-card:nth-of-type(3n + 1),
.fee-group:nth-of-type(3n + 1),
.parent-offer-card:nth-of-type(3n + 1) {
  border-left: 4px solid var(--pink);
}

.team-card:nth-of-type(3n + 2),
.material-card:nth-of-type(3n + 2),
.schedule-card:nth-of-type(3n + 2),
.fee-group:nth-of-type(3n + 2),
.parent-offer-card:nth-of-type(3n + 2) {
  border-left: 4px solid var(--green);
}

.team-card:nth-of-type(3n),
.material-card:nth-of-type(3n),
.schedule-card:nth-of-type(3n),
.fee-group:nth-of-type(3n),
.parent-offer-card:nth-of-type(3n) {
  border-left: 4px solid var(--blue);
}

.maria-section,
.section-maria {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-top: 1.8rem;
}

.maria-section h3,
.section-maria h2 {
  grid-column: 1 / -1;
  margin-bottom: 0;
  font-size: 1.45rem;
}

.section-maria > p:has(img) {
  margin-bottom: 0;
}

.section-material,
.section-offnung,
.section-angebot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.section-material h2,
.section-material > p,
.section-offnung h2,
.section-offnung > p,
.section-angebot h2,
.section-angebot > p,
.section-angebot > p:has(img),
.section-offnung > p:has(img),
.section-material > p:has(img),
.schedule-card-wide,
.fee-group {
  grid-column: 1 / -1;
}

.section-material > p:has(img),
.section-offnung > p:has(img),
.section-angebot > p:has(img) {
  margin-bottom: 0;
}

.section-formulare ul {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.section-formulare li a {
  display: block;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(224, 222, 222, 0.95);
  border-left: 4px solid var(--pink);
  border-radius: 8px;
  background: #ffffff;
  color: var(--heading);
  font-family: "Quattrocento Sans", Arial, sans-serif;
}

.section-formulare li a:hover,
.section-formulare li a:focus {
  border-left-color: var(--blue);
  color: var(--blue);
}

.button-link {
  display: inline-block;
  margin: 0 0.75rem 0.75rem 0;
  padding: 0.75rem 1.2rem;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(to top, var(--pink-dark), var(--pink-light));
  color: var(--paper);
  font-family: "Quattrocento Sans", Arial, sans-serif;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.button-link:hover,
.button-link:focus {
  color: var(--paper);
  background: linear-gradient(to top, var(--pink-light), var(--pink-dark));
}

.news-list {
  display: grid;
  gap: 2rem;
}

.blog-index-header {
  margin: 0 0 1.6rem;
}

.blog-index-header h2 {
  max-width: 880px;
  margin: 0;
  color: var(--heading);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.25;
}

.news-card {
  padding: clamp(1.3rem, 3vw, 2rem);
}

.blog-image-preview {
  display: block;
  max-width: 100%;
  margin: 1rem 0 1.25rem;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

.blog-image-preview:focus {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}

.blog-image-preview img {
  display: block;
  width: 100%;
  background: var(--soft);
}

.blog-image-preview-single {
  display: grid;
  place-items: center;
  width: min(540px, 100%);
  min-height: 260px;
  padding: 0.55rem;
  border: 1px solid rgba(224, 222, 222, 0.9);
  background: #ffffff;
  overflow: hidden;
}

.blog-image-preview-single img {
  max-height: 420px;
  border-radius: 6px;
  object-fit: contain;
}

.blog-image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.55rem;
  width: min(760px, 100%);
  padding: 0.55rem;
  border: 1px solid rgba(224, 222, 222, 0.9);
  border-radius: 8px;
  background: #ffffff;
}

.blog-image-preview-grid > span {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  background: var(--soft);
}

.blog-image-preview-grid img {
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.blog-image-preview:hover img,
.blog-image-preview:focus img {
  transform: scale(1.025);
}

.blog-image-more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(31, 31, 31, 0.58);
  color: #ffffff;
  font-family: "Quattrocento Sans", Arial, sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
}

.news-card h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.news-card h2 a,
.blog-read-more {
  color: var(--pink-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.news-card h2 a:hover,
.news-card h2 a:focus,
.blog-read-more:hover,
.blog-read-more:focus {
  color: var(--blue);
}

.blog-read-more {
  display: inline-block;
  margin-top: 0.2rem;
  font-family: "Quattrocento Sans", Arial, sans-serif;
  font-size: 0.95rem;
}

.news-meta {
  color: var(--blue);
  font-family: "Quattrocento Sans", Arial, sans-serif;
  margin-bottom: 1rem;
}

.news-body img {
  display: inline-block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0.3rem 0.4rem 1rem 0;
  cursor: zoom-in;
}

.news-body > p:has(> img:only-child) {
  margin-bottom: 0;
}

.blog-post-header {
  margin-bottom: 1.6rem;
}

.blog-post-body {
  margin-top: 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  padding: 0;
}

.gallery figure,
.news-body figure {
  margin: 0;
}

.gallery img {
  display: block;
  width: 100%;
  margin: 0;
}

.lightbox-open {
  overflow: hidden;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  background: rgba(31, 31, 31, 0.9);
}

.image-lightbox-figure {
  display: grid;
  gap: 0.85rem;
  max-width: min(1120px, calc(100vw - 8rem));
  max-height: min(820px, calc(100vh - 7rem));
  margin: 0;
  place-items: center;
}

.image-lightbox-figure img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 10rem);
  border: 8px solid rgba(255, 255, 255, 0.94);
  background: #ffffff;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.image-lightbox-figure figcaption {
  max-width: min(720px, 100%);
  color: #ffffff;
  font-family: "Quattrocento Sans", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.35;
}

.image-lightbox button {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--heading);
  cursor: pointer;
  font-family: "Quattrocento Sans", Arial, sans-serif;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.image-lightbox button:hover,
.image-lightbox button:focus {
  background: #ffffff;
  color: var(--pink-dark);
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}

.image-lightbox-close {
  position: absolute;
  top: clamp(0.85rem, 2vw, 1.5rem);
  right: clamp(0.85rem, 2vw, 1.5rem);
  width: 44px;
  height: 44px;
  font-size: 2rem;
}

.image-lightbox-nav {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 64px;
  transform: translateY(-50%);
  font-size: 3rem;
}

.image-lightbox-prev {
  left: clamp(0.85rem, 2vw, 1.5rem);
}

.image-lightbox-next {
  right: clamp(0.85rem, 2vw, 1.5rem);
}

.image-lightbox-count {
  position: absolute;
  left: 50%;
  bottom: clamp(0.85rem, 2vw, 1.5rem);
  transform: translateX(-50%);
  color: #ffffff;
  font-family: "Quattrocento Sans", Arial, sans-serif;
  font-size: 0.95rem;
}

figcaption {
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

.site-footer {
  border-top: 1px solid var(--pink);
  background: #ffffff;
  color: var(--muted);
  text-align: center;
  padding: 1.2rem 1rem;
  line-height: 1.45;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  body.nav-open {
    overflow: hidden;
  }

  .header-inner {
    width: calc(100% - 32px);
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    height: calc(100vh - 80px);
    height: calc(100dvh - 80px);
    overflow-y: auto;
    padding: 1.25rem 28px 2.5rem;
    border-top: 1px solid rgba(246, 121, 146, 0.18);
    background: #ffffff;
    box-shadow: none;
    letter-spacing: 0;
    text-align: center;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    width: fit-content;
    max-width: 100%;
    border-radius: 0;
    padding: 0.85rem 0;
    font-size: 1.2rem;
    letter-spacing: 0;
    line-height: 1.2;
  }

  .site-nav li.active > a::after {
    left: 0;
    right: 0;
    bottom: 0.45rem;
  }

  .site-nav .subnav {
    position: static;
    display: grid;
    justify-items: center;
    gap: 0.1rem;
    padding: 0 0 0.75rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .subnav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.42rem 0;
    background: transparent;
    color: var(--heading);
    font-size: 1rem;
    line-height: 1.25;
    white-space: normal;
  }

  .subnav a:hover,
  .subnav a:focus {
    background: transparent;
    color: var(--pink);
  }
}

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }

  .logo img {
    width: 150px;
  }

  .hero {
    min-height: 220px;
  }

  .hero-person {
    min-height: 260px;
  }

  .content {
    width: min(100% - 30px, var(--content));
  }

  .two-column,
  .maria-section,
  .section-maria,
  .section-material,
  .section-offnung,
  .section-angebot {
    grid-template-columns: 1fr;
  }

  .maria-section h3,
  .section-maria h2,
  .section-material h2,
  .section-material > p,
  .section-offnung h2,
  .section-angebot h2,
  .section-angebot > p,
  .schedule-card-wide,
  .fee-group,
  .section-offnung > p:has(img) {
    grid-column: auto;
  }

  .image-lightbox {
    padding: 4.5rem 0.85rem 3.25rem;
  }

  .image-lightbox-figure {
    max-width: 100%;
    max-height: 100%;
  }

  .image-lightbox-figure img {
    max-height: calc(100vh - 11rem);
    border-width: 4px;
  }

  .image-lightbox-nav {
    top: auto;
    bottom: 0.85rem;
    width: 44px;
    height: 44px;
    transform: none;
    font-size: 2.3rem;
  }

  .image-lightbox-prev {
    left: 0.85rem;
  }

  .image-lightbox-next {
    right: 0.85rem;
  }
}
