@font-face {
  font-family: Roboto; font-style: normal; font-weight: 300;
  font-display: swap; src: url("fonts/roboto-300.woff2") format("woff2");
}
@font-face {
  font-family: Roboto; font-style: normal; font-weight: 400;
  font-display: swap; src: url("fonts/roboto-400.woff2") format("woff2");
}
@font-face {
  font-family: Roboto; font-style: normal; font-weight: 500;
  font-display: swap; src: url("fonts/roboto-500.woff2") format("woff2");
}
:root {
  color-scheme: light;
  --schrift: #222;
  --ruhig: #5a5a5a;
  --akzent: #ea6d0d;
  --link: #984006;
  --linie: #dedede;
  --hell: #f5f5f5;
  --weiss: #fff;
  --fuss-text: #271c14;
  --breite: 1600px;
  font-family: Roboto, Arial, sans-serif;
  color: var(--schrift);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--weiss); line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible { outline: 3px solid var(--link); outline-offset: 5px; }
.rahmen { width: min(var(--breite), calc(100% - 64px)); margin-inline: auto; }
section[id] { scroll-margin-top: 24px; }
.sprunglink {
  position: absolute; z-index: 5; top: 12px; left: 12px;
  padding: 10px 16px; background: var(--weiss); color: var(--schrift);
  transform: translateY(-180%);
}
.sprunglink:focus { transform: none; }

.schulkopf { background: var(--weiss); box-shadow: 0 3px 28px #0000000d; position: relative; z-index: 1; }
.kopfzeile {
  display: flex; align-items: center; justify-content: space-between;
  position: relative; gap: 18px 36px; width: 100%; min-height: 88px;
  padding: 16px 80px 16px 32px;
}
.kopfzeile::after {
  content: ""; position: absolute; right: 0; bottom: 0;
  width: 44px; height: 44px; background: var(--akzent);
  clip-path: polygon(100% 0, 100% 100%, 0 100%); pointer-events: none;
}
.schule { display: flex; align-items: center; gap: 24px; min-width: 0; }
.schullogo-link { display: block; flex: none; }
.schullogo { width: 104px; height: 55px; object-fit: contain; }
.fachbezeichnung { border-left: 1px solid var(--linie); padding-left: 24px; }
.fachbezeichnung strong, .fachbezeichnung span { display: block; }
.fachbezeichnung strong { font-size: .95rem; font-weight: 500; }
.fachbezeichnung span { font-size: .78rem; color: var(--ruhig); margin-top: 2px; }
.kopfzeile nav { display: flex; gap: 30px; flex: none; }
.kopfzeile nav a {
  padding-block: 12px; font-size: .94rem; font-weight: 400;
  text-decoration: none; border-bottom: 2px solid transparent;
}
.kopfzeile nav a:hover { border-color: var(--akzent); }

.einstieg { background: var(--hell); padding-block: 48px 54px; }
.einstieg-inhalt { min-height: 250px; display: flex; align-items: center; }
.einstieg-text { min-width: 0; border-left: 4px solid var(--akzent); padding: 8px 0 8px 28px; }
.schulweg { display: flex; flex-wrap: wrap; gap: 5px 12px; margin: 0 0 28px; color: var(--ruhig); font-size: .78rem; }
.schulweg a { text-decoration: none; }
.schulweg a:hover { text-decoration: underline; }
.schulweg span { color: #888; }
.fach { margin: 0 0 14px; font-size: .78rem; letter-spacing: .035em; color: var(--ruhig); }
h1 { margin: 0; font-size: clamp(2.8rem, 5.2vw, 4rem); font-weight: 300; line-height: 1.15; letter-spacing: -.025em; }
.einstieg-link {
  display: inline-flex; gap: 24px; align-items: center; min-height: 44px;
  margin-top: 20px; color: var(--link); text-decoration: none; font-size: .95rem; font-weight: 500;
}
.einstieg-link span { font-size: 1.4rem; line-height: 1; }
.einstieg-link:hover { text-decoration: underline; }

.projektbereich { padding-block: 56px 64px; }
.abschnittskopf { margin-bottom: 28px; }
.rubrik { margin: 0 0 8px; color: var(--ruhig); font-size: .76rem; letter-spacing: .035em; }
h2 { margin: 0; font-size: clamp(1.8rem, 2.6vw, 2.25rem); font-weight: 300; line-height: 1.25; }
.projektliste { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--linie); }
.projektliste li { border-bottom: 1px solid var(--linie); }
.projektliste a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: 24px; padding: 24px 20px;
  color: var(--schrift); text-decoration: none; transition: background-color .15s ease;
}
.projektliste a:hover { background: var(--hell); }
.projektliste strong { display: block; color: var(--link); font-size: 1.4rem; font-weight: 400; line-height: 1.3; overflow-wrap: anywhere; }
.projektliste a:hover strong { text-decoration: underline; }
.projektpfeil { color: var(--link); font-size: 1.5rem; line-height: 1; }
.projektangaben { min-width: 0; }
.projektname { display: block; margin-top: 5px; color: var(--ruhig); font-size: .94rem; line-height: 1.5; overflow-wrap: anywhere; }

.lernabschnitt { background: var(--hell); padding-block: 48px 52px; }
.lernraster { display: grid; grid-template-columns: minmax(200px, .7fr) minmax(0, 1.3fr); gap: 48px; }
.lernraster .abschnittskopf { margin-bottom: 0; }
.lernliste { list-style: none; margin: 0; padding: 0; }
.lernliste li + li { border-top: 1px solid var(--linie); }
.lernliste a { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 48px; padding-block: 11px; color: var(--link); font-size: .94rem; text-decoration: none; }
.lernliste a span { font-size: 1.05rem; flex: none; }
.lernliste a:hover { text-decoration: underline; }

.fusszeile { background: var(--akzent); color: var(--fuss-text); padding: 42px 32px 46px; }
.fussinhalt { display: flex; align-items: center; justify-content: space-between; gap: 28px 48px; width: 100%; max-width: var(--breite); margin-inline: auto; }
.fussinhalt > div { min-width: 0; flex: 1; }
.schulwortmarke { display: block; width: 100%; max-width: 420px; }
.schulwortmarke img { width: 100%; height: auto; }
.fussinhalt p { margin: 18px 0 6px; font-size: .88rem; }
.fusslink { display: inline-flex; align-items: center; min-height: 44px; font-size: .88rem; font-weight: 500; }
.fusszeile a:focus-visible { outline-color: var(--fuss-text); }
.fachlogo { width: 140px; height: 72px; padding: 10px; object-fit: contain; background: var(--weiss); flex: none; }

@media (max-width: 900px) {
  .rahmen { width: calc(100% - 48px); }
  .fachbezeichnung span { display: none; }
  .lernraster { grid-template-columns: .65fr 1.35fr; gap: 30px; }
}
@media (max-width: 640px) {
  .rahmen { width: calc(100% - 32px); }
  .kopfzeile { min-height: 84px; gap: 16px; padding: 14px 16px; }
  .kopfzeile::after { display: none; }
  .schullogo { width: 98px; height: 52px; }
  .fachbezeichnung { display: none; }
  .kopfzeile nav { gap: 20px; }
  .kopfzeile nav a { font-size: .88rem; }
  .einstieg { padding-block: 32px 36px; }
  .einstieg-inhalt { min-height: 240px; }
  .einstieg-text { padding-left: 18px; }
  .schulweg { display: none; }
  .fach { max-width: 32ch; font-size: .75rem; }
  h1 { font-size: clamp(2.35rem, 9vw, 3.2rem); }
  .projektbereich { padding-block: 38px 44px; }
  .abschnittskopf { margin-bottom: 23px; }
  .projektliste a { gap: 16px; padding: 22px 8px; }
  .projektliste strong { font-size: 1.25rem; }
  .lernabschnitt { padding-block: 36px; }
  .lernraster { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .fusszeile { padding: 32px 20px 36px; }
  .fussinhalt { flex-direction: column; align-items: flex-start; gap: 24px; }
  .fussinhalt > div { width: 100%; flex: none; }
  .schulwortmarke { max-width: 340px; }
  .fachlogo { width: 126px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
