@font-face {
  font-family: "Baloo 2";
  src: url("../fonts/Baloo2-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Baloo 2";
  src: url("../fonts/Baloo2-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --orange: #fa6000;
  --gold: #ecad00;
  --ink: #202020;
  --muted: #625f5a;
  --cream: #fffaf0;
  --paper: #ffffff;
  --line: rgba(32, 32, 32, 0.12);
  --footer: #2d2723;
  --shadow: 0 24px 70px rgba(74, 48, 22, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Open Sans", Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.skip-link {
  position: fixed;
  left: 14px;
  top: -80px;
  z-index: 999;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  text-decoration: none;
}
.skip-link:focus { top: 14px; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding: 24px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  width: 230px;
  max-width: 56vw;
  filter: drop-shadow(0 5px 12px rgba(255,255,255,.42));
}
.header-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  transition: transform .2s ease, background .2s ease;
}
.header-contact:hover { transform: translateY(-2px); background: #fff; }
.header-contact svg { color: var(--orange); }

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,250,240,.98) 0%, rgba(255,250,240,.9) 42%, rgba(255,250,240,.18) 72%),
    url("../img/schule.jpg") center / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -5% -60px -5%;
  height: 130px;
  background: var(--cream);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 160px 0 105px;
}
.hero-card {
  position: relative;
  width: min(670px, 66%);
  padding: 56px 58px 54px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 54px 24px 54px 24px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.hero-card::before {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  left: -24px;
  top: -26px;
  border-radius: 48% 52% 60% 40%;
  background: var(--gold);
  z-index: -1;
  opacity: .95;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--orange);
  font-family: "Baloo 2", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.eyebrow-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 18px 0 0 var(--orange), 36px 0 0 #6cbf68;
  margin-right: 38px;
}
h1, h2, h3 {
  margin: 0;
  font-family: "Baloo 2", sans-serif;
  line-height: 1.06;
}
h1 {
  max-width: 560px;
  font-size: clamp(3rem, 6vw, 5.4rem);
  letter-spacing: -.035em;
}
h1 span { color: var(--orange); }
.hero-copy {
  max-width: 580px;
  margin: 24px 0 30px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  color: white;
  background: var(--orange);
  box-shadow: 0 14px 28px rgba(250,96,0,.26);
}
.button-secondary { background: var(--cream); border: 1px solid var(--line); }
.decor {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  animation: float 5s ease-in-out infinite;
}
.decor-pencil { width: 70px; right: 7%; top: 21%; transform: rotate(13deg); }
.decor-book { display: none; }
.decor-butterfly { width: 55px; left: 3%; bottom: 13%; animation-delay: -3s; }
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -11px; } }
@media (prefers-reduced-motion: reduce) { .decor { animation: none; } }

.contact-section { position: relative; padding: 86px 0 100px; }
.section-heading { text-align: center; max-width: 730px; margin: 0 auto 38px; }
.section-heading .eyebrow { justify-content: center; }
.section-heading h2 { font-size: clamp(2.3rem, 4vw, 3.7rem); }
.section-heading p { margin: 16px auto 0; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-card {
  min-height: 245px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 16px 42px rgba(74,48,22,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.contact-card:hover { transform: translateY(-5px); box-shadow: 0 22px 48px rgba(74,48,22,.12); }
.contact-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 18px;
  background: rgba(236,173,0,.16);
  color: var(--orange);
}
.contact-card:nth-child(2) .contact-icon { background: rgba(250,96,0,.12); }
.contact-card:nth-child(3) .contact-icon { background: rgba(108,191,104,.15); }
.contact-card h3 { font-size: 1.6rem; }
.contact-card p { color: var(--muted); margin: 10px 0 0; }
.contact-card a { color: var(--ink); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.contact-card address { font-style: normal; }

.site-footer { position: relative; overflow: hidden; color: white; background: var(--footer); }
.site-footer::before {
  content: "";
  display: block;
  height: 55px;
  background: var(--cream);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  transform: translateY(-1px);
}
.footer-main { padding: 64px 0 50px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 60px; align-items: start; }
.footer-logo { width: 235px; margin-bottom: 18px; }
.footer-text { max-width: 430px; color: rgba(255,255,255,.72); margin: 0; }
.footer-title { margin-bottom: 18px; font-size: 1.3rem; color: var(--gold); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li + li { margin-top: 10px; }
.footer-links a { color: rgba(255,255,255,.82); text-decoration: none; }
.footer-links a:hover { color: white; text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; color: rgba(255,255,255,.62); font-size: .9rem; }
.footer-bottom a { color: inherit; }

/* Legal pages */
.legal-body { background: var(--cream); }
.legal-header {
  position: static;
  padding: 22px 0;
  background: white;
  border-bottom: 1px solid var(--line);
}
.legal-header .logo { filter: none; }
.back-link { color: var(--orange); font-weight: 600; text-decoration: none; }
.back-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.legal-hero { padding: 70px 0 30px; text-align: center; }
.legal-hero h1 { max-width: none; font-size: clamp(2.8rem, 5vw, 4.7rem); }
.legal-content { padding: 20px 0 90px; }
.legal-card {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: white;
  box-shadow: 0 20px 55px rgba(74,48,22,.09);
}
.legal-card h2 { margin: 38px 0 12px; font-size: 1.75rem; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card h3 { margin: 26px 0 8px; font-size: 1.3rem; }
.legal-card p, .legal-card ul { color: #44413e; }
.legal-card address { font-style: normal; }
.legal-card a { color: #b94700; text-underline-offset: 3px; }
.note-box {
  padding: 18px 20px;
  border-left: 5px solid var(--gold);
  border-radius: 12px;
  background: #fff8dd;
}

@media (max-width: 960px) {
  .hero { min-height: 720px; background-position: 58% center; }
  .hero-card { width: min(690px, 82%); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-card:last-child { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1160px); }
  .site-header { padding-top: 16px; }
  .header-contact span { display: none; }
  .header-contact { width: 48px; height: 48px; padding: 0; justify-content: center; }
  .hero { min-height: 780px; align-items: end; background-position: 66% center; }
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,250,240,.2) 0%, rgba(255,250,240,.72) 45%, rgba(255,250,240,.98) 72%);
  }
  .hero-inner { padding: 150px 0 80px; }
  .hero-card { width: 100%; padding: 34px 26px 36px; border-radius: 34px 18px; }
  h1 { font-size: clamp(2.75rem, 14vw, 4rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .decor-pencil, .decor-book { display: none; }
  .contact-section { padding: 64px 0 80px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card:last-child { grid-column: auto; }
  .contact-card { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-about { grid-column: auto; }
  .footer-bottom-inner { display: block; text-align: center; }
  .footer-bottom-inner > span { display: block; margin: 5px 0; }
  .legal-hero { padding-top: 48px; }
}
