/* Stiftung Waldorfpädagogik – statische Seite
   Neuaufbau in HTML/CSS, Werte aus dem bisherigen Layout übernommen. */

/* ---------- Schriften (lokal) ---------- */
@font-face {
  font-family: "Indie Flower";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/indie-flower-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Indie Flower";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/indie-flower-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/open-sans-latin-ext-300.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/open-sans-latin-300.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Grundwerte ---------- */
:root {
  --text: #3b3d40;
  --link: #95c1eb;
  --bg: #fff;
  --hdr: 70px;        /* Höhe der Kopfzeile */
  --offset: 70px;     /* Abstand des Inhalts nach oben */
  --sec-m: 64px;      /* Abschnitt „mittel“ */
  --sec-s: 32px;      /* Abschnitt „klein“ */
  --sec-x: 40px;      /* seitlicher Abstand */
  --gap: 48px;        /* Spaltenabstand */
  --flow: 1.5rem;     /* Abstand zwischen Absätzen im Textblock */
}
@media (max-width: 1024px) {
  :root { --hdr: 80px; --offset: 170px; --sec-m: 40px; }
}
@media (max-width: 600px) {
  :root { --offset: 170px; --sec-m: 24px; --sec-s: 24px; --sec-x: 24px; --flow: 1rem; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/28px Georgia, serif;
}
img { max-width: 100%; height: auto; }
/* lange Wörter und Adressen umbrechen, statt die Seite zu verbreitern */
.main, .site-footer { overflow-wrap: break-word; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

h1, h2, h3, h4, h5, h6 { font-weight: 400; line-height: 1.2; margin: 0 0 1.5rem; }
h1 { font-size: 3rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.7rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.4rem; }
h6 { font-size: 1.3rem; }
/* Überschriften mitten im Textfluss bekommen oben Luft (wie bisher) */
.tb { margin-bottom: 1.5rem; }
.tb:last-child { margin-bottom: 0; }
.tb > :last-child { margin-bottom: 0; }
.tb > :is(h1, h2, h3, h4, h5, h6):not(:first-child) { padding-top: var(--flow); }
/* direkt auf eine übergeordnete Überschrift folgend: kein zusätzlicher Abstand */
.tb.tb > h1 + :is(h2, h3, h4, h5, h6),
.tb.tb > h2 + :is(h3, h4, h5, h6),
.tb.tb > h3 + :is(h4, h5, h6),
.tb.tb > h4 + :is(h5, h6),
.tb.tb > h5 + h6 { padding-top: 0; }
p { margin: 0 0 var(--flow); }
ul, ol { margin: 0 0 1.5rem 40px; padding: 0; }
li { margin: 0 0 8px; }
li:last-child { margin-bottom: 0; }
strong, b { font-weight: 700; }
.tc { text-align: center; }
.blue { color: #2ea3f2; }

.skip {
  position: absolute; left: 8px; top: -100px; z-index: 300;
  background: #fff; color: var(--text); padding: 8px 16px;
}
.skip:focus { top: 8px; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--hdr);
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
}
.hdr-in {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
  padding: 0 40px;
}
.logo { display: block; line-height: 0; }
.logo img { width: 156px; height: 30px; }

.main-nav { height: 100%; }
.main-nav ul { display: flex; height: 100%; margin: 0; padding: 0; list-style: none; }
.main-nav li { display: flex; margin: 0; }
.main-nav a {
  display: flex; align-items: center;
  padding: 0 20px;
  color: var(--text);
  font: 600 1.2rem/1 "Indie Flower", "Comic Sans MS", cursive;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--link); }

.nav-toggle { position: absolute; width: 1px; height: 1px; margin: -1px; opacity: 0; overflow: hidden; }
.nav-btn { display: none; cursor: pointer; }
.nav-toggle:focus-visible + .nav-btn { outline: 2px solid var(--text); outline-offset: 2px; }

@media (max-width: 1100px) {
  .main-nav a { padding: 0 12px; }
}
@media (max-width: 1024px) {
  .hdr-in { padding: 0 16px; }
}
@media (min-width: 900px) and (max-width: 1024px) {
  .main-nav a { padding: 0 9px; font-size: 1.1rem; }
}

/* Hamburger-Menü unter 900 px (nur CSS, Checkbox-Technik) */
@media (max-width: 899px) {
  .nav-btn {
    display: flex; align-items: center; justify-content: center;
    width: 46px; height: 100%;
    margin-right: -13px;
  }
  .bars, .bars::before, .bars::after {
    display: block; width: 20px; height: 3px; background: var(--text);
    border-radius: 0;
  }
  .bars { position: relative; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -7px; }
  .bars::after { top: 7px; }
  .nav-toggle:checked + .nav-btn .bars { background: transparent; }
  .nav-toggle:checked + .nav-btn .bars::before { top: 0; transform: rotate(45deg); }
  .nav-toggle:checked + .nav-btn .bars::after { top: 0; transform: rotate(-45deg); }

  .main-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    height: auto;
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
  }
  .nav-toggle:checked ~ .main-nav { display: block; }
  .main-nav ul { display: block; height: auto; }
  .main-nav li { display: block; }
  .main-nav a {
    display: block;
    padding: 11.2px 16px;
    font-size: 1.1rem; line-height: 26.4px;
  }
}
/* Kopfzeile in der Smartphone-/Hamburger-Ansicht: 40 px Luft oben, 80 px Leiste, 50 px unten */
@media (max-width: 899px) {
  .site-header { height: 170px; }
  .hdr-in { height: 80px; margin-top: 40px; }
}
@media (max-width: 600px) {
  .logo img { width: 104px; height: 20px; }
}
/* Kopfzeile schrumpft beim Scrollen (Tablet), wo der Browser es kann */
@keyframes hdr-shrink { to { height: 60px; } }
@media (min-width: 900px) and (max-width: 1024px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .site-header { animation: hdr-shrink linear both; animation-timeline: scroll(root); animation-range: 0 60px; }
  }
}

/* ---------- Inhalt: Abschnitte und Spalten ---------- */
.main { padding-top: var(--offset); }
.sec { padding: var(--sec-m) var(--sec-x); }
.sec--s { padding-top: var(--sec-s); padding-bottom: var(--sec-s); }
.sec.sec--auto { padding: 0; }
.sec.pb-60 { padding-bottom: 60px; }
.sec.pb-50 { padding-bottom: 50px; }
.sec.pb-10 { padding-bottom: 10px; }
.sec.pb-80 { padding-bottom: 80px; }
.sec.pt-80 { padding-top: 80px; }
.sec.cards { padding-left: 60px; padding-right: 60px; padding-bottom: 60px; }
.wrap { max-width: 1024px; margin: 0 auto; }
.sec--full > .wrap { max-width: none; }

.cols { display: flex; flex-wrap: wrap; gap: 24px var(--gap); }
.col { min-width: 0; flex: 0 0 100%; }
.col-12 { flex-basis: 100%; }
.col-8 { flex-basis: calc((100% + var(--gap)) * 8 / 12 - var(--gap)); }
.col-6 { flex-basis: calc((100% + var(--gap)) * 6 / 12 - var(--gap)); }
.col-4 { flex-basis: calc((100% + var(--gap)) * 4 / 12 - var(--gap)); }
.col-3 { flex-basis: calc((100% + var(--gap)) * 3 / 12 - var(--gap)); }
.col-2 { flex-basis: calc((100% + var(--gap)) * 2 / 12 - var(--gap)); }
.col > :last-child,
.col > .tb:last-child > :last-child { margin-bottom: 0; }
@media (max-width: 768px) {
  .col, .col-8, .col-6, .col-4, .col-3, .col-2 { flex-basis: 100%; }
}

/* Auf großen Bildschirmen wie bisher: Überschrift in der Kartenspalte nicht umbrechen */
@media (min-width: 1025px) {
  .cards h5 { overflow-wrap: normal; hyphens: none; }
}
.pt-20 { padding-top: 20px; }
.pt-28 { padding-top: 28px; }

/* Bilder */
.img { margin: 0; }
.img img { display: block; }
.img.center { text-align: center; margin-bottom: 41px; }
.img.center:last-child { margin-bottom: 0; }
@media (max-width: 600px) { .img.center { margin-bottom: 26px; } }
.img.center img { display: inline-block; }
.img a { display: block; }

/* Schaltfläche */
.btn-row { margin: 0 0 24px; padding: 4px 0 5px; }
.col > .btn-row:last-child { margin-bottom: 0; }
.btn {
  display: inline-block;
  padding: .8em 1.8em;
  background: #e8e8e8; color: #333;
  border-radius: .3rem;
  font-size: 1rem; font-weight: 700; line-height: 1.2; text-align: center;
  transition: background-color .2s;
}
.btn:hover { background: #d6d6d6; color: #333; }

/* Parallax-Bildabschnitt */
.sec--bg {
  padding-left: 0; padding-right: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  background-attachment: fixed;
}
.spacer { padding: 150px 0; }
@media (hover: none), (prefers-reduced-motion: reduce) {
  .sec--bg { background-attachment: scroll; }
}

/* ---------- Slider (nur CSS) ---------- */
.hero {
  position: relative; overflow: hidden;
  container-type: inline-size;
  width: 100%; aspect-ratio: 16 / 6; max-height: 600px;
  background: #e9e9e9;
}
.slide { position: absolute; inset: 0; margin: 0; }
.slide img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.slide figcaption {
  position: absolute;
  padding: 0 1.29vw;
  background: rgba(103, 139, 174, .82); color: #fff;
  font: 300 2.08vw/3.47vw "Open Sans", sans-serif;
}
@supports (width: 1cqw) {
  .slide figcaption { padding: 0 1.29cqw; font-size: min(2.08cqw, 34px); line-height: min(3.47cqw, 56px); }
}
.slide-1 { z-index: 1; }
.slide-1 figcaption { left: 58%; top: 28.6%; width: 28.6%; }
.slide-2 { z-index: 2; opacity: 0; animation: fade-in-out 16s infinite; }
.slide-2 figcaption { left: 57%; top: 69.8%; width: 33.6%; }
@keyframes fade-in-out {
  0%, 40% { opacity: 0; }
  46%, 90% { opacity: 1; }
  96%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .slide-2 { display: none; animation: none; }
}
@media (max-width: 600px) {
  .slide figcaption {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}

/* ---------- Fußbereich ---------- */
.site-footer { color: #bfbfbf; }
.ft-main { background: #27262c; padding: var(--sec-m) var(--sec-x); }
.ft-main h4 { color: #bfbfbf; }
.ft-main a { color: var(--link); }
.ft-main .links { margin: 0 0 24px 40px; }
.ft-main .links li { color: var(--link); }
.ft-main .m0 { margin: 0; }
.ft-main .link-direct { margin: 0 0 24px; }
.ft-main img { display: block; }
.ft-menu { background: #323137; padding: 12px var(--sec-x); }
.ft-menu ul { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin: 0; padding: 0; list-style: none; }
.ft-menu li { margin: 0; }
.ft-menu a { color: #e8e8e8; }
.ft-menu a:hover { color: #999; }
.ft-copy { background: #1b1a1e; padding: 12px var(--sec-x); }
.ft-copy p { margin: 0; }
@media (max-width: 600px) {
  .ft-menu ul { display: block; }
  .ft-menu li { margin: 0 0 1.5rem; }
  .ft-menu li:last-child { margin-bottom: 0; }
}

/* ---------- Cookie-Hinweis ---------- */
.cookie-notice {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: #000; color: #fff; text-align: center;
  font: 400 13px/20px -apple-system, BlinkMacSystemFont, Arial, Roboto, "Helvetica Neue", sans-serif;
}
.cookie-notice[hidden] { display: none; }
.cn-in {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  padding: 15px 30px;
}
.cn-text { margin-right: 4px; }
.cn-buttons { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; }
.cn-btn {
  display: inline-block; margin-left: 10px; padding: 8.5px 10px;
  border: 0; border-radius: 32px;
  background: #00a99d; color: #fff;
  font: inherit; font-size: 13px; line-height: 13px; letter-spacing: .25px;
  text-decoration: none; cursor: pointer;
}
.cn-btn:hover { background: #008a80; color: #fff; }
.cn-close {
  position: absolute; right: 12px; top: 50%; width: 20px; height: 20px; margin-top: -10px;
  padding: 0; border: 0; background: none; cursor: pointer; opacity: .4;
}
.cn-close:hover { opacity: .8; }
.cn-close::before, .cn-close::after {
  content: ""; position: absolute; left: 9px; top: 2px; width: 2px; height: 16px; background: #fff;
}
.cn-close::before { transform: rotate(45deg); }
.cn-close::after { transform: rotate(-45deg); }
.cn-btn:focus-visible, .cn-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 600px) {
  .cn-in { padding: 15px 25px; }
  .cn-text { display: block; margin: 0 0 10px; }
  .cn-close { top: 10px; margin-top: 0; right: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .site-header, .cookie-notice, .hero { display: none; }
  .main { padding-top: 0; }
}
