/* Schülernest – Stylesheet */

/* Schriften liegen lokal auf dem Server (keine Verbindung zu Google) – SIL Open Font License */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url(../fonts/nunito-latin-wght-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: italic;
  font-weight: 200 1000;
  font-display: swap;
  src: url(../fonts/nunito-latin-wght-italic.woff2) format("woff2");
}
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/baloo-2-latin-wght-normal.woff2) format("woff2");
}

:root {
  --blau: #1f6fe5;          /* Kopfzeile, Akzente */
  --blau-dunkel: #144fa8;   /* Fußzeile, Links */
  --hellblau: #dbe8ff;      /* Kontaktleiste */
  --flaeche: #f1f6ff;       /* Kacheln, Kästen */
  --text: #1d2433;
  --text-leise: #5a6478;
  --gelb: #ffd43b;
  --rot: #d62828;
  --gruen: #2b8a3e;
  --lila: #6b3fa0;
  --pink: #c2255c;
  --breite: 1024px;
  --radius: 14px;
  --schatten: 0 4px 16px rgba(20, 50, 110, 0.12);
  --schrift: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --schrift-titel: "Baloo 2", "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  font: 17px/1.65 var(--schrift);
  background: #eef3fb url(../images/background3.png) 0 0 repeat;
}

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

a { color: var(--blau-dunkel); text-underline-offset: 2px; }
a:hover { color: var(--rot); }

h1, h2, h3, h4 {
  font-family: var(--schrift-titel);
  line-height: 1.2;
  font-weight: 700;
}

/* Boxed-Layout */
.page {
  max-width: var(--breite);
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 30px rgba(20, 50, 110, 0.10);
}

/* Kontaktleiste */
.topbar {
  background: var(--hellblau);
  font-size: 14px;
  padding: 7px 28px;
}
.contact-info {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 22px;
}
.contact-info li { display: flex; align-items: center; gap: 6px; }
.contact-info svg { width: 15px; height: 15px; color: var(--blau-dunkel); flex: none; }
.contact-info a { color: var(--text); text-decoration: none; }
.contact-info a:hover { color: var(--rot); }

/* Kopf mit Logo und Menü */
.site-header {
  background: var(--blau);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 0;
  position: relative;
}
.logo { display: block; line-height: 0; flex: 0 1 330px; min-width: 0; }
.logo img { width: 100%; height: auto; max-height: 124px; object-fit: contain; object-position: left; }

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}
.main-nav a {
  display: block;
  padding: 6px 11px;
  border-radius: 999px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.main-nav a:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.main-nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.22); }

/* Anmeldung als Knopf hervorheben */
.main-nav .cta a {
  background: var(--gelb);
  color: var(--text);
  margin-left: 8px;
  padding: 7px 16px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
}
.main-nav .cta a:hover,
.main-nav .cta a[aria-current="page"] { background: #fff; color: var(--blau-dunkel); }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  margin-right: 4px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: #fff;
  border-radius: 2px;
}

/* Inhaltsbereich */
.main-body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  gap: 36px;
  padding: 44px 36px 56px;
}
.main-body.ohne-sidebar { grid-template-columns: minmax(0, 1fr); }
.main-body.ohne-sidebar .content { max-width: 760px; }

.content h1 { font-size: 2.4rem; margin: 0 0 1rem; }
.content h1.seitentitel { font-size: 2.2rem; color: var(--blau-dunkel); }
.content h2 { font-size: 1.6rem; color: var(--blau-dunkel); margin: 2rem 0 0.6rem; }
.content h3 { font-size: 1.25rem; margin: 1.6rem 0 0.4rem; }
.content h4 { font-size: 1.05rem; margin: 1.2rem 0 0.3rem; }
.content hr { border: 0; border-top: 2px dashed var(--hellblau); margin: 2.2rem 0; }
.content li { margin: 0.2rem 0; }
.center { text-align: center; }

/* Bilder */
.foto {
  display: block;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--schatten);
}
.bildunterschrift { text-align: center; color: var(--text-leise); margin: 0.8rem 0 2.2rem; }

/* Seitenleiste */
.sidebar iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
  margin: 0 0 24px;
  border-radius: var(--radius);
}
.hinweis-box {
  background: var(--flaeche);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  position: sticky;
  top: 20px;
}
.hinweis-box .herz { font-size: 34px; line-height: 1; color: var(--rot); }
.hinweis-box h2 { font-size: 1.3rem; margin: 8px 0 6px; color: var(--blau-dunkel); }
.hinweis-box p { font-size: 0.95rem; margin: 0 0 14px; }

/* Knöpfe */
.knopf {
  display: inline-block;
  background: var(--blau);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 10px 22px;
  font: 700 1rem var(--schrift);
  text-decoration: none;
  cursor: pointer;
}
.knopf:hover { background: var(--blau-dunkel); color: #fff; }
.knopf.zweit { background: #e3e7ee; color: var(--text); }
.knopf.zweit:hover { background: #cfd5df; color: var(--text); }
.knopf.gelb { background: var(--gelb); color: var(--text); }
.knopf.gelb:hover { background: #fcc419; color: var(--text); }

/* Startseite */
.begruessung { text-align: center; margin-bottom: 2rem; }
.begruessung .klein {
  display: block;
  font-size: 1.5rem;
  color: var(--text-leise);
  font-weight: 600;
}
.begruessung .gross { display: block; font-size: 2.6rem; line-height: 1.15; }
.f-rot   { color: var(--rot); }
.f-blau  { color: var(--blau); }
.f-gruen { color: var(--gruen); }
.f-lila  { color: var(--lila); }
.f-pink  { color: var(--pink); }

.kacheln {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 2.5rem;
}
.kachel {
  display: flex;
  flex-direction: column;
  background: var(--flaeche);
  border-radius: var(--radius);
  padding: 20px 18px;
  text-decoration: none;
  color: var(--text);
  border-top: 5px solid var(--farbe, var(--blau));
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.kachel:hover { transform: translateY(-3px); box-shadow: var(--schatten); color: var(--text); }
.kachel .symbol { font-size: 28px; line-height: 1; color: var(--farbe, var(--blau)); }
.kachel .symbol svg { width: 30px; height: 30px; }
.kachel h2 { font-size: 1.25rem; margin: 10px 0 4px; color: var(--text); }
.kachel p { margin: 0; font-size: 0.95rem; color: var(--text-leise); flex: 1; }
.kachel .mehr { margin-top: 10px; font-weight: 700; color: var(--farbe, var(--blau)); }

.willkommen-reihe {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  align-items: center;
}
.willkommen-reihe .foto { width: 260px; }

.zitat {
  margin: 0;
  padding: 26px 28px;
  background: var(--flaeche);
  border-radius: var(--radius);
  border-left: 6px solid var(--gelb);
}
.zitat figcaption {
  font-family: var(--schrift-titel);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.zitat p {
  margin: 0;
  font-family: var(--schrift-titel);
  font-size: 1.3rem;
  line-height: 1.55;
  font-weight: 600;
}

/* Flummis-Akrostichon */
.akrostichon {
  list-style: none;
  margin: 2rem auto;
  padding: 22px 28px;
  max-width: 360px;
  background: var(--flaeche);
  border-radius: var(--radius);
}
.akrostichon li {
  font: 700 1.35rem/1.5 var(--schrift-titel);
  letter-spacing: 0.08em;
  color: var(--text-leise);
}
.akrostichon b {
  display: inline-block;
  width: 1.4em;
  font-size: 1.9rem;
  color: var(--c);
  letter-spacing: 0;
}

/* Fußzeile */
footer { background: var(--blau-dunkel); color: #fff; }
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 32px 36px 20px;
}
.footer-links h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: #fff;
}
.footer-links ul { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.footer-links li { margin: 4px 0; }
.footer-links a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.footer-links a:hover { color: var(--gelb); text-decoration: underline; }

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 0 36px;
  text-align: center;
  font-size: 14px;
  padding: 14px 0 18px;
  color: rgba(255, 255, 255, 0.75);
}

/* Formular */
.formular fieldset {
  border: 0;
  background: var(--flaeche);
  border-radius: var(--radius);
  margin: 0 0 22px;
  padding: 16px 22px 18px;
}
.formular legend {
  font: 700 1.2rem var(--schrift-titel);
  color: var(--blau-dunkel);
  padding: 0;
  float: left;
  width: 100%;
  margin-bottom: 6px;
}
.formular legend + * { clear: both; }
.feld { margin: 10px 0; }
.feld > label { display: block; font-size: 0.92em; font-weight: 600; margin-bottom: 3px; }
.feld input[type="text"],
.feld input[type="email"],
.feld input[type="date"],
.feld input[type="tel"] {
  width: 100%;
  max-width: 420px;
  padding: 8px 10px;
  border: 1px solid #b8c3d6;
  border-radius: 8px;
  background: #fff;
  font: inherit;
}
.feld input:focus { outline: 3px solid rgba(31, 111, 229, 0.3); border-color: var(--blau); }
.feld.check label,
.feld .option { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95em; font-weight: 400; margin: 6px 0; }
.feld.check input, .feld .option input { margin-top: 5px; flex: none; }
.pflicht { color: var(--rot); }
.honig { position: absolute; left: -9999px; }
.knopfleiste { display: flex; gap: 12px; flex-wrap: wrap; }
.meldung { padding: 14px 18px; border-radius: var(--radius); margin: 0 0 22px; }
.meldung.fehler { background: #fde2e2; border: 1px solid #e99; }
.meldung.ok { background: #e2f5e2; border: 1px solid #8c8; }
.meldung ul { margin: 6px 0 0; }

/* Tablet / Handy */
@media (max-width: 991px) {
  .topbar { display: none; }
  .site-header { flex-wrap: wrap; }
  .logo { flex-basis: auto; }
  .logo img { width: auto; height: 100px; }
  .menu-toggle { display: block; }
  .main-nav { display: none; width: 100%; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 0 12px 14px; }
  .main-nav a { padding: 10px 16px; font-size: 17px; }
  .main-nav .cta a { margin: 8px 0 0; text-align: center; }
  .main-body { grid-template-columns: minmax(0, 1fr); padding: 30px 18px 44px; }
  .sidebar { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
  .sidebar iframe { margin: 0; }
  .hinweis-box { position: static; }
  .kacheln { grid-template-columns: 1fr; }
  .willkommen-reihe { grid-template-columns: 1fr; justify-items: center; }
  .footer-links { grid-template-columns: 1fr; padding: 28px 20px 12px; }
  .copyright { margin: 0 20px; }
}
@media (max-width: 576px) {
  body { font-size: 16px; }
  .logo img { height: 81px; max-width: 70vw; }
  .begruessung .klein { font-size: 1.2rem; }
  .begruessung .gross { font-size: 1.9rem; }
  .content h1.seitentitel { font-size: 1.8rem; }
}
