/* Schriften lokal eingebunden (SIL Open Font License) – keine Verbindung zu Google */
@font-face{font-family:"Alegreya";src:url("fonts/alegreya-latin-400-normal.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Alegreya";src:url("fonts/alegreya-latin-500-normal.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Alegreya";src:url("fonts/alegreya-latin-700-normal.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Alegreya";src:url("fonts/alegreya-latin-400-italic.woff2") format("woff2");font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:"Alegreya Sans";src:url("fonts/alegreya-sans-latin-400-normal.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Alegreya Sans";src:url("fonts/alegreya-sans-latin-500-normal.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Alegreya Sans";src:url("fonts/alegreya-sans-latin-700-normal.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Caveat";src:url("fonts/caveat-latin-500-normal.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
/* Layout: ruhige, helle Leinwand; ein großer Bildmoment oben, ein ockergoldenes Band als Herzstück,
   Bilder fließen ineinander; Text schmal und gut lesbar, mobil zuerst. */
:root {
  --linen: #f8f3ea;        /* Grund */
  --paper: #fffdf8;        /* Karten, Kopfzeile */
  --umber: #2f2417;        /* Text */
  --umber-soft: #5d4d3a;   /* Nebentext */
  --ochre: #d7a03c;        /* Ockergold-Fläche */
  --ochre-deep: #a8731f;   /* Akzent auf hell */
  --ochre-ink: #3a2a10;    /* Text auf Ocker */
  --moss: #56633a;         /* Natur-Akzent */
  --night: #241c13;        /* dunkle Fläche */
  --line: #e6dccb;

  --f-display: "Alegreya", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-body: "Alegreya Sans", "Gill Sans", "Segoe UI", system-ui, sans-serif;
  --f-hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;

  --gutter: clamp(16px, 5vw, 48px);
  --measure: 36rem;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--linen);
  color: var(--umber);
  font-family: var(--f-body);
  font-size: 1.25rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ochre-deep); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.12; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.5rem; }
p { margin: 0; }
.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  font-size: clamp(1rem, 1.4vw, 1.15rem); letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  color: #f6e3b8;
}
.eyebrow-dark { color: var(--ochre-deep); }

/* Kopfzeile */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: .5rem; padding-inline: var(--gutter);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--umber-soft); }
.brand img { height: 46px; width: auto; }
.brand span { font-family: var(--f-display); font-style: italic; font-size: 1.05rem; padding-left: .6rem; border-left: 1px solid var(--line); }
.topbar nav { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.75rem); }
.topbar nav a { color: var(--umber); text-decoration: none; font-weight: 500; font-size: 1.15rem; }
.topbar nav a:hover { color: var(--ochre-deep); }
.topbar .nav-cta { background: var(--ochre); color: var(--ochre-ink); padding: .4rem .95rem; border-radius: 999px; font-weight: 700; }
@media (max-width: 720px) {
  .topbar nav a:not(.nav-cta) { display: none; }
  .brand span { display: none; }
  .brand img { height: 40px; }
}

/* Buttons */
.btn {
  font-family: inherit;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .7rem 1.4rem; border-radius: 999px;
  font-weight: 700; font-size: 1.15rem; text-decoration: none; transition: transform .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--ochre); color: var(--ochre-ink); }
.btn-gold:hover { background: #e2b04f; }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255,255,255,.8); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-block { width: 100%; }

/* 1 · Hero */
.hero { position: relative; isolation: isolate; min-height: min(84vh, 780px); display: grid; align-items: end; overflow: hidden; }
.hero::after { pointer-events: none; }
.hero-text { pointer-events: none; }
.hero-text > * { pointer-events: auto; }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--night); }
.slides, .slide { position: absolute; inset: 0; margin: 0; }
.slide { opacity: 0; transition: opacity 1.6s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 9s ease-out; }
.slide.is-active img { transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .slide, .slide img { transition: none; } .slide img { transform: none; } }
.slide-caption { position: absolute; left: var(--gutter); bottom: 1.4rem; z-index: 2; margin: 0;
  font-family: var(--f-hand); font-size: 1.55rem; line-height: 1.2; color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.75); max-width: 40%; }
.slide-controls { position: absolute; right: var(--gutter); bottom: 1.4rem; z-index: 3; display: flex; align-items: center; gap: .75rem; }
.dots { display: flex; gap: .2rem; }
.dot { width: 26px; height: 28px; border: 0; padding: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.75); box-shadow: 0 0 4px rgba(0,0,0,.4); transition: background .3s, transform .3s; }
.dot.is-active::before { background: var(--ochre); transform: scale(1.35); }
.slide-pause { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.8); background: rgba(36,28,19,.4); cursor: pointer; display: grid; place-items: center; padding: 0; }
.slide-pause span { width: 10px; height: 12px; border-left: 3px solid #fff; border-right: 3px solid #fff; }
.is-paused .slide-pause span { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #fff; margin-left: 3px; }
.dot:focus-visible, .slide-pause:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; border-radius: 50%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(36,28,19,.75) 0%, rgba(36,28,19,.45) 38%, rgba(36,28,19,0) 60%),
    linear-gradient(180deg, rgba(36,28,19,0) 40%, rgba(36,28,19,.55) 100%);
}
.hero-text {
  width: 100%; max-width: 72rem; margin-inline: auto;
  padding-inline: var(--gutter); padding-block: 8rem clamp(2.5rem, 7vw, 5rem);
  color: #fff; display: grid; gap: 1.1rem; justify-items: start;
}
@media (min-width: 900px) {
  .hero .hero-text { max-width: none; margin: 0; padding-left: max(var(--gutter), 5vw); padding-right: var(--gutter); padding-top: 4.5rem; padding-bottom: 3.5rem; gap: .9rem; }
  .hero .hero-text > * { max-width: min(34rem, 36vw); }
  .hero .hero-text .lead { font-size: 1.25rem; max-width: min(34rem, 36vw); }
  .slide-caption { max-width: 38%; left: auto; right: var(--gutter); text-align: right; bottom: 4.2rem; }
  .hero .hero-text h1 { font-size: clamp(2.3rem, 3.6vw, 3.3rem); }
}
@media (max-width: 899px) {
  .hero { display: block; min-height: 0; background: var(--night); }
  .hero::after { display: none; }
  .hero-media { position: relative; z-index: 0; aspect-ratio: 4 / 3; }
  .hero-media::after { content: ""; position: absolute; inset: 55% 0 0; z-index: 1; pointer-events: none;
    background: linear-gradient(180deg, rgba(36,28,19,0), rgba(36,28,19,.6)); }
  .slide-caption { font-size: 1.3rem; max-width: none; right: var(--gutter); bottom: .8rem; }
  .slide-controls { top: .6rem; bottom: auto; right: .5rem; gap: .2rem; }
  .dot { width: 20px; }
  .hero-text { padding-block: 1.75rem 2.75rem; }
}
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); max-width: 19ch; text-shadow: 0 2px 18px rgba(0,0,0,.35); font-weight: 500; }
.hero .lead { max-width: 36rem; font-size: clamp(1.25rem, 1.8vw, 1.45rem); color: #f6efe2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }

/* 2 · Das gemeinsame Zuhause (Ocker) */
.home { background: var(--ochre); color: var(--ochre-ink); padding-block: clamp(3.5rem, 8vw, 6rem) clamp(3rem, 7vw, 5rem); overflow: hidden; }
.home-head { display: grid; gap: .75rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.home-head p { max-width: var(--measure); font-size: 1.35rem; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 80rem; margin-inline: auto; }
.pillar { min-width: 0; display: grid; grid-template-rows: auto 1fr; }
.pillar img {
  width: 128%; max-width: none; margin-left: -14%;
  height: clamp(240px, 28vw, 420px); object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 78%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 78%, transparent 100%);
}
.pillar:first-child img { width: 114%; margin-left: 0;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 78%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 0, #000 78%, transparent 100%); }
.pillar:last-child img { width: 114%; margin-left: -14%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 100%); }
.pillar-future img { filter: sepia(.35) saturate(.85); }
.pillar-text { display: grid; align-content: start; gap: .5rem; padding: 1.75rem clamp(1rem, 2.5vw, 2rem) 0; }
.pillar-text p { max-width: 30rem; }
.count { font-size: 1rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #5a3f12; }
.tag { display: inline-block; font-family: var(--f-hand); font-size: 1.45rem; text-transform: none; letter-spacing: 0; line-height: 1;
  color: var(--paper); background: var(--moss); padding: .15rem .6rem .25rem; border-radius: 4px; transform: rotate(-2deg); }
.more { color: var(--ochre-ink); font-weight: 700; text-underline-offset: .25em; text-decoration-thickness: 1.5px; justify-self: start; margin-top: .25rem; }
.more::after { content: " →"; }
@media (max-width: 760px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar img, .pillar:first-child img, .pillar:last-child img {
    width: 100%; margin: 0; height: auto; aspect-ratio: 16 / 10;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 72%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 72%, transparent 100%);
  }
  .pillar:first-child img { -webkit-mask-image: linear-gradient(180deg, #000 0, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 72%, transparent 100%); }
  .pillar + .pillar { margin-top: -1.5rem; }
  .pillar-text { padding: 0 var(--gutter) 2.5rem; margin-top: -.75rem; position: relative; }
}

/* Vision Freie Schule */
.vision { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.vision-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.vision-copy { display: grid; gap: 1rem; }
.vision-copy p:last-child { color: var(--umber-soft); }
.vision-figure { margin: 0; min-width: 0; }
.vision-stack { position: relative; border-radius: 6px; overflow: hidden; box-shadow: 0 18px 40px -22px rgba(47,36,23,.55); }
.vision-stack img:first-child { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.82) sepia(.1); }
.vision-sketch { position: absolute; inset: 0; width: 100%; height: 100%; }
.vision-figure figcaption { font-family: var(--f-hand); font-size: 1.6rem; color: var(--umber-soft); margin-top: .5rem; text-align: right; }
@media (max-width: 760px) { .vision-grid { grid-template-columns: 1fr; } }

/* 3 · Was jetzt gebraucht wird */
.need { position: relative; isolation: isolate; background: var(--night); color: #f3ebdc; padding-block: clamp(4rem, 9vw, 7rem); overflow: hidden; }
.need-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; z-index: -1; }
.need-inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.need-copy { display: grid; gap: 1.1rem; }
.need-copy h2 { color: #fff; }
.need-lead { font-family: var(--f-display); font-size: clamp(1.35rem, 2.3vw, 1.7rem); line-height: 1.35; color: #fff; max-width: 32rem; }
.need-copy > p:not(.need-lead) { max-width: var(--measure); color: #e3d8c4; }
.facts { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 1.5rem 3rem; }
.facts li { display: grid; }
.facts strong { font-family: var(--f-display); font-size: 2.2rem; line-height: 1; color: var(--ochre); font-variant-numeric: tabular-nums; }
.facts span { font-size: 1.1rem; color: #cfc2aa; }
.invite { background: var(--paper); color: var(--umber); border-radius: 8px; padding: clamp(1.4rem, 3vw, 2rem); display: grid; gap: 1rem; min-width: 0; }
.invite h3 { font-size: 1.9rem; }
.invite > p { color: var(--umber-soft); }
.invite .invite-hint { font-size: 1rem; text-align: center; margin-top: -.4rem; }
.invite-people { display: flex; align-items: center; gap: .9rem; }
.invite-people img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid var(--paper); }
.invite-people img + img { margin-left: -1.4rem; }
.invite-people p { font-weight: 700; line-height: 1.3; font-size: 1.15rem; }
.contact-list { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .35rem 1rem; margin: 0; font-size: 1.15rem; }
.contact-list dt { color: var(--umber-soft); }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }
.contact-list a { color: var(--umber); font-weight: 700; }
@media (max-width: 860px) { .need-inner { grid-template-columns: 1fr; } }

/* 4 · Team */
.team { padding-block: clamp(3.5rem, 8vw, 6rem); }
.team h2 { margin-bottom: 2rem; }
.team-lead { display: grid; grid-template-columns: repeat(2, minmax(0, 15rem)); gap: clamp(1.25rem, 4vw, 3rem); }
.team-lead figure { margin: 0; display: grid; gap: .75rem; align-content: start; }
.team-lead img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
.team-lead img[alt="Stephan Josef Dick"] { object-position: 62% 30%; }
.team-lead figcaption { display: grid; line-height: 1.3; gap: .2rem; }
.team-lead strong { font-family: var(--f-display); font-size: 1.4rem; }
.team-lead span, .team-list span { color: var(--umber-soft); font-size: 1.1rem; }
.team-list { list-style: none; margin: 2.75rem 0 0; padding: 2.25rem 0 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.5rem 2rem; }
.team-list li { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.team-list li > div { display: grid; line-height: 1.3; min-width: 0; }
.team-list img, .team-list .initials { width: 76px; height: 76px; border-radius: 50%; flex: none; }
.team-list img { object-fit: cover; }
.team-list .initials { display: grid; place-items: center; background: #ece2cf; color: var(--ochre-deep);
  font-family: var(--f-display); font-weight: 700; font-size: 1.4rem; }
@media (max-width: 480px) { .team-lead { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Abschlussbild */
.closing { margin: 0; }
.closing img { width: 100%; height: clamp(220px, 38vw, 520px); object-fit: cover; object-position: 50% 45%; }

/* Seite im Entstehen */
.soon { padding-block: clamp(3rem, 8vw, 6rem); }
.soon .wrap { max-width: 46rem; display: grid; gap: 1.25rem; }
.soon h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.soon img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; filter: sepia(.3) saturate(.85); }

/* Footer */
.footer { background: var(--night); color: #cfc2aa; font-size: 1.05rem; padding-block: 1.75rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; }
.footer nav { display: flex; gap: 1.5rem; }
.footer a { color: #f3ebdc; }

/* Rechtstexte */
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.legal .wrap { max-width: 46rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.45rem; margin: 2rem 0 .5rem; }
.legal h3 { font-size: 1.15rem; margin: 1.25rem 0 .35rem; }
.legal p { margin-bottom: .75rem; }
.legal, .soon { font-size: 1.15rem; }
.back { display: inline-block; margin-bottom: 1.5rem; font-weight: 700; }
