/* lernportale.css — Website lernportale.ch (24.10.2026).
   Farben wie im Online Schulhaus: Dunkelblau #16324F, Gold #E0A82E;
   Hellblau #2290CF als Akzent. Schriften Manrope (Titel) und Source Sans 3
   (Text) liegen selbst gehostet in fonts/ (SIL OFL), nicht bei Google. */

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/manrope-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }

:root {
  --lp-dunkel: #16324F;
  --lp-gold: #E0A82E;
  --lp-blau: #2290CF;
  --lp-blau-dunkel: #1A72A6;
  --lp-orange: #F98012;
  --lp-text: #1B2733;
  --lp-text-2: #3A4B5C;
  --lp-text-3: #4A5A6A;
  --lp-hell: #F4F7FA;
  --lp-linie: #DCE5EE;
  --lp-linie-2: #B9C8D6;
  --lp-auf-dunkel: #DCE6F0;
  --lp-schrift: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --lp-schrift-titel: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --lp-breite: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--lp-schrift); font-size: 18px; line-height: 1.55; color: var(--lp-text); background: #ffffff; }
img, video { max-width: 100%; }
a { color: var(--lp-dunkel); }
a:hover { color: var(--lp-blau); }
h1, h2, h3 { font-family: var(--lp-schrift-titel); line-height: 1.15; letter-spacing: -0.01em; }
.lp-produkt-name, .lp-tabelle thead th, .lp-eckdaten strong { font-family: var(--lp-schrift-titel); }

.lp-breite { max-width: var(--lp-breite); margin: 0 auto; padding: 0 24px; }
.lp-sprung { position: absolute; left: -9999px; top: 0; }
.lp-sprung:focus { left: 16px; top: 12px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 6px; }
.lp-unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lp-falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Kopf */
.lp-kopf { position: sticky; top: 0; z-index: 50; background: #ffffff; border-bottom: 1px solid #E3EAF1; }
.lp-kopf-innen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.lp-logo { display: flex; align-items: center; gap: 8px; }
.lp-logo img { display: block; width: auto; }
.lp-logo-zeichen { height: 44px; }
.lp-logo-wort { height: 32px; }
.lp-menue { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-weight: 600; font-size: 16px; }
.lp-menue a { text-decoration: none; color: var(--lp-text); }
.lp-menue a:hover { color: var(--lp-blau); }
.lp-menue a.lp-knopf { color: #ffffff; }

/* Knöpfe */
.lp-knopf { display: inline-block; font: inherit; font-size: 17px; font-weight: 700; line-height: 1.2; padding: 13px 22px; border-radius: 8px; border: 1px solid transparent; text-decoration: none; cursor: pointer; }
.lp-knopf--dunkel { background: var(--lp-dunkel); color: #ffffff; }
.lp-knopf--dunkel:hover { background: #0F2439; color: #ffffff; }
.lp-knopf--gold { background: var(--lp-gold); color: var(--lp-dunkel); }
.lp-knopf--gold:hover { background: #EDB843; color: var(--lp-dunkel); }
.lp-knopf--blau { background: var(--lp-blau-dunkel); color: #ffffff; }
.lp-knopf--blau:hover { background: #155E89; color: #ffffff; }
.lp-knopf--rand { color: var(--lp-dunkel); border-color: var(--lp-linie-2); font-weight: 600; }
.lp-knopf--rand:hover { border-color: var(--lp-dunkel); color: var(--lp-dunkel); }
.lp-knopf--rand-hell { color: #ffffff; border-color: #6E87A3; font-weight: 600; }
.lp-knopf--rand-hell:hover { border-color: #ffffff; color: #ffffff; }
.lp-extern { margin-left: 8px; vertical-align: -2px; }
.lp-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.lp-knoepfe--unten { margin-top: auto; padding-top: 8px; }

/* Bänder */
.lp-band { padding: 72px 0; background: #ffffff; }
.lp-band--hell { background: var(--lp-hell); }
.lp-band--dunkel { background: var(--lp-dunkel); color: #ffffff; }
.lp-titel { margin: 0 0 32px; font-size: 32px; font-weight: 800; color: var(--lp-dunkel); }
.lp-titel--eng { margin-bottom: 8px; }
.lp-untertitel { margin: 0 0 28px; color: var(--lp-text-3); }
.lp-oberzeile { margin: 0 0 12px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lp-blau-dunkel); }
.lp-oberzeile--gold { color: var(--lp-gold); }
.lp-klein { margin: 12px 0 0; font-size: 14px; color: var(--lp-text-3); }
.lp-band--dunkel .lp-klein { color: #B9C9D9; }
.lp-band--dunkel .lp-klein a { color: #ffffff; }

/* Start */
.lp-start { padding-top: 0; }
.lp-start h1 { margin: 0; max-width: 820px; font-size: clamp(34px, 5vw, 56px); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; color: var(--lp-dunkel); }
.lp-lead { margin: 20px 0 0; max-width: 760px; font-size: 21px; color: var(--lp-text-2); }

/* Zwei Produkte untereinander, je Text links und Bild/Liste rechts */
.lp-produkte { margin-top: 48px; display: flex; flex-direction: column; gap: 32px; }
.lp-produkt { position: relative; border-radius: 18px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: stretch; }
.lp-produkt--osh { background: var(--lp-dunkel); color: #ffffff; }
.lp-produkt--moodle { background: #f9f5de; border: 6px solid var(--lp-orange); color: var(--lp-dunkel); grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.lp-produkt-text { padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.lp-produkt-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.lp-produkt-name { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 700; }
.lp-produkt-name img { width: 40px; height: 40px; display: block; }
.lp-produkt--moodle .lp-produkt-name { color: var(--lp-dunkel); }
.lp-hut { width: 40px; height: 40px; border-radius: 10px; background: var(--lp-dunkel); display: flex; align-items: center; justify-content: center; }
.lp-produkt .lp-marke { position: absolute; top: 40px; right: 40px; }
.lp-marke { font-size: 14px; font-weight: 700; color: var(--lp-dunkel); background: var(--lp-gold); padding: 5px 12px; border-radius: 999px; }
.lp-produkt h2 { margin: 4px 0 0; font-size: 32px; font-weight: 800; }
.lp-produkt--moodle h2 { color: var(--lp-dunkel); }
.lp-produkt ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.lp-produkt--osh ul { color: var(--lp-auf-dunkel); }
.lp-produkt--moodle ul { color: var(--lp-text-2); }
.lp-produkt-text > p { margin: 0; color: var(--lp-text-2); }
.lp-produkt--moodle .lp-produkt-text > p { color: var(--lp-text-2); }
.lp-produkt-liste { padding: 40px 40px 40px 0; display: flex; align-items: center; }
.lp-produkt-liste ul { background: var(--lp-hell); border-radius: 14px; padding: 28px 28px 28px 48px; width: 100%; }
.lp-produkt-bild { padding: 96px 40px 40px 0; display: flex; align-items: center; position: relative; }
.lp-produkt-bild img { display: block; width: 100%; height: auto; aspect-ratio: 1120 / 668; object-fit: cover; object-position: top left; border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,.35); background: #0F2439; }
.lp-film-knopf { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 10px; }
.lp-film-start { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px 14px 20px; border-radius: 999px; background: var(--lp-gold); color: var(--lp-dunkel); font: inherit; font-size: 18px; font-weight: 700; box-shadow: 0 6px 20px rgba(0,0,0,.35); transition: transform .15s; }
.lp-film-knopf:hover .lp-film-start, .lp-film-knopf:focus-visible .lp-film-start { transform: translate(-50%, -50%) scale(1.06); }
.lp-film-knopf:focus-visible { outline: 3px solid var(--lp-gold); outline-offset: 4px; }

/* Film im Modal */
.lp-modal { width: min(1120px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 14px; background: #0F2439; color: #ffffff; overflow: hidden; }
.lp-modal::backdrop { background: rgba(10, 22, 36, .78); }
.lp-modal-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 20px; font-family: var(--lp-schrift-titel); font-weight: 700; }
.lp-modal-zu { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 8px; background: transparent; color: #ffffff; cursor: pointer; }
.lp-modal-zu:hover { background: rgba(255,255,255,.12); }
.lp-modal-film { display: block; width: 100%; height: auto; max-height: calc(100vh - 100px); background: #000; }

/* Pfeil nach oben */
.lp-nach-oben { position: fixed; right: 24px; bottom: 84px; z-index: 60; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--lp-dunkel); color: #ffffff; box-shadow: 0 6px 18px rgba(0,0,0,.25); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .2s, transform .2s, visibility .2s; }
.lp-nach-oben.sichtbar { opacity: 1; visibility: visible; transform: none; }
.lp-nach-oben:hover { background: var(--lp-gold); color: var(--lp-dunkel); }

/* Kacheln */
.lp-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.lp-kachel { background: var(--lp-hell); border-radius: 14px; padding: 24px; }
.lp-kachel h3 { margin: 12px 0 6px; font-size: 19px; color: var(--lp-dunkel); }
.lp-kachel p { margin: 0; font-size: 16px; color: var(--lp-text-3); }

/* Tabelle */
.lp-tabelle-halter { overflow-x: auto; background: #ffffff; border-radius: 14px; border: 1px solid var(--lp-linie); }
.lp-tabelle { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 17px; }
.lp-tabelle th, .lp-tabelle td { text-align: left; vertical-align: top; padding: 16px 22px; border-bottom: 1px solid #EEF2F6; }
.lp-tabelle thead th { color: var(--lp-dunkel); font-size: 18px; border-bottom-color: var(--lp-linie); }
.lp-tabelle tbody th { width: 22%; color: var(--lp-text-3); font-weight: 600; }
.lp-tabelle tbody tr:last-child > * { border-bottom: 0; }

/* Zweispalter (Text + Bild) */
.lp-zweier { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.lp-zweier-text { flex: 1 1 420px; min-width: 0; }
.lp-zweier-text h2 { margin: 0; font-size: 34px; font-weight: 800; }
.lp-zweier-text > p { margin: 16px 0 0; }
.lp-band--dunkel .lp-zweier-text > p { color: var(--lp-auf-dunkel); }
.lp-zweier-bild { flex: 1 1 480px; min-width: 0; }
.lp-zweier-bild img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.lp-zweier--moodle h2 { color: var(--lp-dunkel); }
.lp-zweier--moodle .lp-zweier-text > p { color: var(--lp-text-2); }
.lp-zweier--moodle .lp-zweier-text .lp-knoepfe { margin-top: 24px; }
.lp-wolke { flex: 0 1 380px; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.lp-wolke img { width: 100%; max-width: 220px; height: auto; box-shadow: none; border-radius: 0; }
.lp-wolke figcaption { font-family: var(--lp-schrift-titel); font-weight: 700; font-size: 19px; line-height: 1.3; color: var(--lp-dunkel); max-width: 300px; }

/* Beta-Anmeldung */
.lp-beta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.lp-beta input { flex: 1 1 200px; min-width: 0; font: inherit; font-size: 17px; padding: 12px 16px; border-radius: 8px; border: 1px solid #6E87A3; background: #ffffff; color: var(--lp-text); }

/* Über uns */
.lp-ueber { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.lp-ueber-karte { flex: 2 1 520px; min-width: 0; background: #ffffff; border-radius: 14px; padding: 28px; }
.lp-ueber-karte h3 { margin: 0; font-size: 21px; color: var(--lp-dunkel); }
.lp-ueber-karte p { margin: 12px 0 0; color: var(--lp-text-2); }
.lp-ueber-karte--dunkel { flex: 1 1 320px; background: var(--lp-dunkel); }
.lp-ueber-karte--dunkel h3 { color: #ffffff; }
.lp-ueber-karte--dunkel p { color: var(--lp-auf-dunkel); }
.lp-eckdaten { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.lp-eckdaten > div { background: #ffffff; border-radius: 14px; padding: 16px 20px; display: flex; flex-direction: column; gap: 2px; }
.lp-eckdaten span { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lp-text-3); }
.lp-eckdaten strong { font-size: 22px; color: var(--lp-dunkel); }

/* Kontakt */
.lp-kontakt { display: flex; flex-wrap: wrap; gap: 48px; }
.lp-kontakt-text { flex: 1 1 300px; min-width: 0; }
.lp-kontakt-text p { margin: 14px 0 0; color: var(--lp-text-2); }
.lp-adresse { line-height: 1.7; }
.lp-formular { flex: 2 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-content: start; }
.lp-feld { display: flex; flex-direction: column; gap: 6px; }
.lp-feld--breit { grid-column: 1 / -1; }
.lp-feld label { font-weight: 600; font-size: 15px; }
.lp-feld input, .lp-feld select, .lp-feld textarea { font: inherit; font-size: 17px; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--lp-linie-2); background: #ffffff; color: var(--lp-text); width: 100%; }
.lp-feld textarea { resize: vertical; }
.lp-formular .lp-meldung { grid-column: 1 / -1; }
.lp-meldung { margin: 16px 0 0; padding: 12px 16px; border-radius: 8px; font-weight: 600; }
.lp-meldung--ok, .lp-band--dunkel .lp-zweier-text > p.lp-meldung--ok { background: #E3F4E8; color: #1D5B33; }
.lp-meldung--fehler, .lp-band--dunkel .lp-zweier-text > p.lp-meldung--fehler { background: #FBE7E3; color: #8A2A1A; }
.lp-formular .lp-meldung { margin: 0; }

input:focus-visible, select:focus-visible, textarea:focus-visible, .lp-knopf:focus-visible, a:focus-visible { outline: 3px solid var(--lp-gold); outline-offset: 2px; }

/* Rechtsseiten */
.lp-recht { max-width: 820px; }
.lp-recht h1 { margin: 0 0 8px; font-size: 38px; font-weight: 800; color: var(--lp-dunkel); }
.lp-recht h2 { margin: 36px 0 10px; font-size: 22px; color: var(--lp-dunkel); }
.lp-recht h3 { margin: 24px 0 8px; font-size: 18px; color: var(--lp-dunkel); }
.lp-recht p, .lp-recht li { color: var(--lp-text-2); }
.lp-recht dl { display: grid; grid-template-columns: 140px 1fr; gap: 6px 16px; margin: 0; }
.lp-recht dt { font-weight: 600; color: var(--lp-text-3); }
.lp-recht dd { margin: 0; }
.lp-stand { color: var(--lp-text-3); font-size: 15px; }
mark.lp-offen { background: #FFF1C9; color: #6B4E00; padding: 0 4px; border-radius: 3px; }

/* Fuss */
.lp-fuss { background: var(--lp-dunkel); color: #B9C9D9; font-size: 15px; width: 100%; }
.lp-fuss-innen { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.lp-fuss nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.lp-fuss a { color: #ffffff; text-decoration: none; }
.lp-fuss a:hover { color: var(--lp-gold); }

@media (max-width: 900px) {
  .lp-produkt, .lp-produkt--moodle { grid-template-columns: 1fr; }
  .lp-produkt .lp-marke { position: static; }
  .lp-produkt-bild { padding: 0 40px 40px; }
  .lp-produkt-liste { padding: 0 40px 40px; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .lp-band { padding: 52px 0; }
  .lp-breite { padding: 0 16px; }
  /* Kopf und Fuss: .lp-breite oben setzt sonst auch das Polster oben/unten auf 0. */
  .lp-kopf-innen { padding-top: 12px; padding-bottom: 14px; gap: 10px; }
  .lp-menue { gap: 8px 20px; }
  .lp-menue a.lp-knopf { padding: 10px 18px; }
  .lp-fuss-innen { padding-top: 24px; padding-bottom: 24px; }
  .lp-kopf { position: static; }
  .lp-produkt-text { padding: 24px; }
  .lp-produkt-bild { padding: 0 24px 24px; }
  .lp-produkt-liste { padding: 0 24px 24px; }
  .lp-produkt-liste ul { padding: 20px 20px 20px 40px; }
  .lp-produkt h2 { font-size: 26px; }
  .lp-film-start { font-size: 16px; padding: 10px 18px 10px 14px; }
  .lp-nach-oben { right: 16px; bottom: 16px; }
  .lp-formular { grid-template-columns: 1fr; }
  .lp-recht dl { grid-template-columns: 1fr; }
  .lp-recht dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
