/* Die Kontaktseite: Vorteile und Anfrage auf dem durchgehenden Seitengrund, keine eigene Fläche (Lenny, 09.11.2026). */
html{font-size:clamp(16px,1.8vh,26px)}
body[data-page] main.school-contact{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);
  grid-template-rows:auto auto auto;
  align-content:center;
  grid-template-areas:"intro request" "benefits request" "privacy privacy";
  gap:clamp(20px,3vh,44px) clamp(28px,4vw,104px);
  padding:clamp(24px,4vh,58px) var(--seitenrand);
  overflow:visible;
}
.school-intro{grid-area:intro;min-width:0}
.school-intro h1{font-size:clamp(42px,4vw,96px);line-height:1.04;letter-spacing:-.03em;text-wrap:balance}
.school-intro h1 span{color:var(--accent);white-space:nowrap}
.school-intro p{font-size:clamp(16px,1.9vh,28px);line-height:1.45;margin-top:clamp(12px,1.6vh,24px);color:var(--text-dim)}
.school-benefits{grid-area:benefits;min-height:0;display:flex;flex-direction:column;gap:clamp(22px,3.4vh,50px)}
.school-benefits h2{font-size:clamp(22px,2.6vh,38px);font-weight:550;line-height:1.16}
.school-benefits ul{list-style:none;margin:clamp(12px,1.8vh,26px) 0 0;padding:0;display:grid;gap:clamp(10px,1.4vh,20px)}
.school-benefits li{display:grid;grid-template-columns:1.15em minmax(0,1fr);align-items:start;gap:.65em;font-size:clamp(16px,2.05vh,30px);line-height:1.38}
.benefit-check{display:block;width:1.15em;height:1.15em;margin-top:.1em;fill:none;stroke:var(--accent);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.school-request{grid-area:request;align-self:start;min-width:0;padding:clamp(24px,2.5vw,64px);gap:clamp(18px,2.5vh,36px);border-color:var(--border-strong)}
.school-request h2{font-size:clamp(27px,2.4vw,52px);font-weight:550}
.school-request .fields{grid-template-columns:1fr 1fr;gap:clamp(8px,1.6vh,24px) 1rem}
.school-request .field:nth-child(n+3){grid-column:1/-1}
.school-request input{min-height:clamp(44px,5vh,72px)}
.school-request textarea{height:clamp(72px,8.5vh,122px);max-height:140px}
.school-request .hint{font-size:.85rem;line-height:1.4;margin-block:clamp(10px,1.6vh,24px)}
.school-request .primary{min-height:clamp(44px,5.2vh,76px)}
.school-response{font-size:.85rem;line-height:1.4;color:var(--text-dim)}
.site-footer a{min-width:44px}
/* Datenschutz für Schulen als Faktenzeile über die volle Breite (Lenny, 19.11.2026: „Ja, bauen“). Inhalte gekürzt aus Datenschutzerklärung und AV-Vertrag. */
.school-privacy{grid-area:privacy;display:grid;grid-template-columns:auto repeat(3,minmax(0,1fr));gap:clamp(14px,1.6vw,40px);border-top:1px solid var(--border);padding-top:clamp(12px,1.8vh,28px);min-width:0}
.privacy-head{display:flex;flex-direction:column;align-items:flex-start}
.school-privacy h2{font-size:clamp(18px,2.2vh,32px);font-weight:550;line-height:1.16;white-space:nowrap}
.privacy-links{display:flex;flex-wrap:wrap;gap:0 1.1em}
.privacy-links{margin-top:.35em}
/* Klickfläche 44 px, die Zeile selbst bleibt so hoch wie der Text. */
.privacy-links a{min-height:44px;min-width:44px;margin-block:calc((1.5em - 44px) / 2);display:inline-flex;align-items:center;font-size:clamp(14px,1.6vh,22px)}
.school-privacy dl{display:contents}
.school-privacy dl>div{font-size:clamp(14px,1.6vh,22px);line-height:1.38;color:var(--text-dim);text-wrap:pretty}
.school-privacy dt{display:inline;font-weight:600;color:var(--text)}
.school-privacy dd{display:inline;margin:0}
@media(min-width:700px) and (max-height:760px){
  body[data-page] main.school-contact{padding-block:22px;gap:20px 36px}
  .school-intro h1{font-size:46px}
  .school-intro p{font-size:16px;margin-top:12px}
  .school-benefits{gap:22px}
  .school-benefits h2{font-size:22px}
  .school-benefits ul{margin-top:12px;gap:9px}
  .school-benefits li{font-size:16px;line-height:1.35}
  .school-request{padding:24px;gap:18px}
  .school-request h2{font-size:28px}
  .school-request .fields{gap:8px 16px}
  .school-request .hint{margin-block:10px}
}
@media(min-width:700px) and (max-width:1100px){
  body[data-page] main.school-contact{column-gap:24px}
  .school-intro h1{font-size:clamp(30px,4vw,42px)}
  .school-benefits h2{font-size:20px}
  .school-benefits li{font-size:15px}
  .school-request{padding:18px;gap:14px}
  .school-request .fields{grid-template-columns:1fr}
  .school-privacy{grid-template-columns:repeat(3,minmax(0,1fr))}
  .privacy-head{grid-column:1/-1;flex-direction:row;flex-wrap:wrap;align-items:center;gap:0 1.5em}
}
@media(max-width:699px){
  body[data-page] main.school-contact{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto;grid-template-areas:"intro" "request" "benefits" "privacy";gap:28px;padding-block:28px}
  .school-privacy{grid-template-columns:minmax(0,1fr);gap:16px;padding-top:24px}
  .school-privacy h2{font-size:24px}
  .school-privacy h2{white-space:normal}
  .school-privacy dl>div,.privacy-links a{font-size:16px}
  .school-intro h1{font-size:38px}
  .school-intro p{font-size:17px;margin-top:16px}
  .school-request{padding:22px;gap:20px}
  .school-request h2{font-size:28px}
  .school-request .fields{grid-template-columns:1fr;gap:8px}
  .school-request .field{grid-column:1/-1}
  .school-request .error{min-height:1.2em}
  .school-benefits{gap:28px}
  .school-benefits h2{font-size:24px}
  .school-benefits li{font-size:17px;line-height:1.45}
  .school-benefits ul{gap:14px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* Die aktive Rückseite teilt die Fensterhöhe mit dem gemeinsamen Fuß. */
@media(min-width:1100px) and (max-height:950px){
  body[data-page='schule'][data-rueckseite] main.school-contact{padding-block:14px;gap:8px 32px;align-content:start;overflow:visible}
  body[data-page='schule'][data-rueckseite] .school-intro p{font-size:16px;margin-top:10px}
  body[data-page='schule'][data-rueckseite] .school-benefits{gap:14px}
  body[data-page='schule'][data-rueckseite] .school-benefits h2{font-size:20px}
  body[data-page='schule'][data-rueckseite] .school-benefits ul{margin-top:9px;gap:7px}
  body[data-page='schule'][data-rueckseite] .school-benefits li{font-size:15px;line-height:1.3}
  body[data-page='schule'][data-rueckseite] .school-request{padding:16px;gap:10px;font-size:16px}
  body[data-page='schule'][data-rueckseite] .school-request h2{font-size:24px}
  body[data-page='schule'][data-rueckseite] .school-request .fields{gap:2px 12px}
  body[data-page='schule'][data-rueckseite] .school-request .field:nth-child(n+3){grid-column:auto}
  body[data-page='schule'][data-rueckseite] .school-request input{min-height:44px}
  body[data-page='schule'][data-rueckseite] .school-request textarea{height:44px;min-height:44px}
  body[data-page='schule'][data-rueckseite] .school-request .hint{margin-block:5px}
  body[data-page='schule'][data-rueckseite] .school-request .primary{min-height:44px}
  body[data-page='schule'][data-rueckseite] .school-response{font-size:13px}
  body[data-page='schule'][data-rueckseite] .school-privacy{padding-top:4px;gap:10px 22px}
  body[data-page='schule'][data-rueckseite] .school-privacy h2{font-size:17px}
  body[data-page='schule'][data-rueckseite] .school-privacy dl>div,body[data-page='schule'][data-rueckseite] .privacy-links a{font-size:13.5px;line-height:1.32}
}
body[data-page='schule'][data-rueckseite] main.school-contact{padding-inline:0}
@media(min-width:1100px) and (min-height:951px) and (max-height:1150px){
  body[data-page='schule'][data-rueckseite] main.school-contact{padding-block:24px}
  body[data-page='schule'][data-rueckseite] .school-request{padding:32px;gap:20px}
  body[data-page='schule'][data-rueckseite] .school-request textarea{height:64px}
}

/* Tablets teilen sich die Fensterhöhe mit Kopf und Fuß. Die Eingaben bleiben
   mindestens 44 px hoch; verdichtet werden Textzeilen und Zwischenräume. */
@media(min-width:700px) and (max-width:1099px){
  body[data-page='schule'][data-rueckseite] main.school-contact{align-content:start;padding-block:clamp(10px,1.4vh,18px);gap:clamp(8px,1vh,14px) 24px;scrollbar-gutter:auto}
  body[data-page='schule'][data-rueckseite] .school-intro h1{font-size:clamp(28px,3.8vh,38px)}
  body[data-page='schule'][data-rueckseite] .school-intro p{font-size:16px;line-height:1.35;margin-top:10px}
  body[data-page='schule'][data-rueckseite] .school-benefits{gap:clamp(10px,1.5vh,16px)}
  body[data-page='schule'][data-rueckseite] .school-benefits h2{font-size:clamp(18px,2.4vh,20px);line-height:1.16}
  body[data-page='schule'][data-rueckseite] .school-benefits ul{margin-top:7px;gap:5px}
  body[data-page='schule'][data-rueckseite] .school-benefits li{font-size:15px;line-height:1.3}
  body[data-page='schule'][data-rueckseite] .school-request{padding:14px;gap:10px;font-size:16px}
  body[data-page='schule'][data-rueckseite] .school-request h2{font-size:24px}
  body[data-page='schule'][data-rueckseite] .school-request .fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 10px}
  body[data-page='schule'][data-rueckseite] .school-request .field:nth-child(n+3){grid-column:auto}
  body[data-page='schule'][data-rueckseite] .school-request input{min-height:44px}
  body[data-page='schule'][data-rueckseite] .school-request textarea{height:44px;min-height:44px;max-height:44px;resize:none}
  body[data-page='schule'][data-rueckseite] .school-request .hint{margin-block:5px}
  body[data-page='schule'][data-rueckseite] .school-request .primary{min-height:44px}
  body[data-page='schule'][data-rueckseite] .school-response{font-size:13px}
  body[data-page='schule'][data-rueckseite] .school-privacy{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding-top:6px}
  body[data-page='schule'][data-rueckseite] .privacy-head{grid-column:auto;flex-direction:column;align-items:flex-start;gap:0}
  body[data-page='schule'][data-rueckseite] .privacy-links{flex-direction:column}
  body[data-page='schule'][data-rueckseite] .privacy-links a{margin-block:0}
  body[data-page='schule'][data-rueckseite] .school-privacy h2{font-size:17px;white-space:normal}
  body[data-page='schule'][data-rueckseite] .school-privacy dl>div,body[data-page='schule'][data-rueckseite] .privacy-links a{font-size:13.5px;line-height:1.32}
}
/* Beschriftung, Eingabe und Fehlermeldung teilen sich je Reihe eine Rasterzeile (Unterraster).
   Bricht eine Beschriftung um (Hochformat: „Schule oder Einrichtung“) oder eine Fehlermeldung,
   bleiben die Eingaben einer Reihe trotzdem auf einer Linie. */
@media(min-width:700px) and (max-width:1099px){
  body[data-page='schule'][data-rueckseite] .school-request .field{grid-row:span 3;grid-template-rows:subgrid;row-gap:.3rem}
  body[data-page='schule'][data-rueckseite] .school-request .field>label{align-self:end}
}
/* Im Hochformat bleibt Höhe übrig; der Inhalt steht mittig, statt ein Band über dem Fuß zu lassen. */
@media(min-width:700px) and (max-width:1099px) and (orientation:portrait){
  body[data-page='schule'][data-rueckseite] main.school-contact{align-content:center}
}
@media(min-width:900px) and (max-width:1099px) and (max-height:850px){
  body[data-page='schule'][data-rueckseite] .school-benefits{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
}
@media(min-width:700px) and (max-width:900px){
  body[data-page='schule'] footer.rueckseiten-footer .fuss-spalten{grid-template-columns:1.05fr 1fr .9fr 2.35fr;gap:12px}
  body[data-page='schule'] footer.rueckseiten-footer .fuss-recht{grid-template-columns:repeat(3,minmax(0,1fr));column-gap:10px}
  body[data-page='schule'] footer.rueckseiten-footer nav{grid-template-rows:24px}
}
