/* LernPanda – Dachseite für PortPanda, CodePanda und WisoPanda.
   Farben und Schriften wie die PortPanda-Startseite (Design „Blau“). Schriften liegen selbst
   auf dem Server (kein Nachladen von Google), Bilder als WebP. Kein JavaScript. */

@font-face {
  font-family: "Fraunces";
  src: url("schriften/fraunces-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("schriften/figtree-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --blau: #0069b4;
  --blau-dunkel: #00589a;
  --tuerkis: #21c3d0;
  --grund: #f7f9fc;
  --grund-blau: #edf1f7;
  --flaeche: #ffffff;
  --text: #0f172a;
  --text-ruhig: #475569;
  --text-leise: #64748b;
  --linie: #e2e8f0;
  --schatten: 0 1px 2px rgb(15 23 42 / 0.04), 0 8px 24px rgb(15 23 42 / 0.06);
  --rund: 1.5rem;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  font-family: "Fraunces", ui-serif, Georgia, serif;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

a {
  color: var(--blau);
}

:focus-visible {
  outline: 2px solid var(--blau);
  outline-offset: 4px;
  border-radius: 0.5rem;
}

.sprung {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--flaeche);
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  box-shadow: var(--schatten);
}
.sprung:focus {
  top: 1rem;
}

.breite {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.schmal {
  max-width: 48rem;
}

/* ---------- Kopf ---------- */
.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(247 249 252 / 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linie);
}
.kopf-innen {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 4rem;
}
.marke {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-weight: 650;
  font-size: 1.35rem;
}
.marke img {
  width: auto;
  height: 2.6rem;
}
.kopf-nav {
  display: none;
  gap: 1.5rem;
  margin-left: auto;
}
.kopf-nav a {
  color: var(--text-ruhig);
  text-decoration: none;
  font-size: 0.95rem;
}
.kopf-nav a:hover {
  color: var(--text);
}
.kopf > .kopf-innen > .knopf-klein {
  margin-left: auto;
}
@media (min-width: 52rem) {
  .kopf-nav {
    display: flex;
  }
  .kopf > .kopf-innen > .knopf-klein {
    margin-left: 0;
  }
}

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0 1.25rem;
  border-radius: 0.85rem;
  background: var(--blau);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 10px 24px -12px rgb(0 105 180 / 0.6);
  transition: background-color 0.2s ease;
}
.knopf:hover {
  background: var(--blau-dunkel);
}
.knopf svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.knopf-ruhig {
  background: var(--flaeche);
  color: var(--blau);
  border: 1px solid rgb(0 105 180 / 0.3);
  box-shadow: none;
}
.knopf-ruhig:hover {
  background: var(--flaeche);
  border-color: rgb(0 105 180 / 0.6);
}
.knopf-klein {
  min-height: 2.5rem;
  padding: 0 1rem;
  font-size: 0.9rem;
  box-shadow: none;
}
.knopf-voll {
  width: 100%;
  margin-top: auto;
}

/* ---------- Held ---------- */
.held {
  background:
    radial-gradient(60rem 30rem at 85% 20%, rgb(33 195 208 / 0.12), transparent 60%),
    radial-gradient(50rem 30rem at 10% 0%, rgb(0 105 180 / 0.1), transparent 60%),
    var(--grund);
  border-bottom: 1px solid var(--linie);
  overflow: hidden;
}
.held-innen {
  display: grid;
  gap: 1.5rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  align-items: center;
}
@media (min-width: 60rem) {
  .held-innen {
    grid-template-columns: 1fr 1.05fr;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}
.kicker {
  margin: 0 0 0.75rem;
  color: var(--blau);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.held h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 650;
}
.akzent {
  color: var(--blau);
}
.einleitung {
  margin: 1.25rem 0 0;
  max-width: 34rem;
  color: var(--text-ruhig);
  font-size: 1.1rem;
}
.knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.vorteile {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-leise);
  font-size: 0.85rem;
}
.vorteile li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.vorteile svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: var(--blau);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Bühne: drei Figuren auf einer gemeinsamen Grundlinie, die mittlere vorne. */
.buehne {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 1rem;
}
@media (min-width: 60rem) {
  .buehne {
    min-height: 24rem;
  }
}
.buehne::before {
  content: "";
  position: absolute;
  inset: auto 6% 0.4rem 6%;
  height: 72%;
  border-radius: 999px 999px 2rem 2rem;
  background: linear-gradient(180deg, rgb(0 105 180 / 0.1), rgb(33 195 208 / 0.14));
}
.buehne::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(15 23 42 / 0.16), transparent);
}
.figur {
  position: relative;
  width: 36%;
  max-width: 15rem;
  z-index: 1;
}
.figur-port {
  margin-right: -4%;
}
.figur-code {
  z-index: 2;
  width: 33%;
  margin-bottom: 0.4rem;
}
.figur-wiso {
  margin-left: -4%;
}

/* ---------- Abschnitte ---------- */
.abschnitt {
  padding: 4.5rem 0;
}
.abschnitt-hell {
  background: var(--grund-blau);
  border-top: 1px solid var(--linie);
  border-bottom: 1px solid var(--linie);
}
.abschnitt-kopf {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}
.abschnitt-kopf h2,
.schulen h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 650;
}
.abschnitt-kopf > p:last-child {
  margin: 0.75rem 0 0;
  color: var(--text-ruhig);
  font-size: 1.05rem;
}

/* ---------- Karten der Pandas ---------- */
.karten {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 52rem) {
  .karten {
    grid-template-columns: repeat(3, 1fr);
  }
}
.karte {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--linie);
  border-radius: var(--rund);
  background: var(--flaeche);
  box-shadow: var(--schatten);
}
.karte-bild {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 15rem;
  padding-top: 1.25rem;
  border-bottom: 1px solid var(--linie);
}
.karte-bild img {
  height: 100%;
  width: auto;
}
.bild-port {
  background: linear-gradient(180deg, #e8f2fb, #d6e8f7);
}
.bild-code {
  background: linear-gradient(180deg, #e8f7f8, #d3eef1);
}
.bild-wiso {
  background: linear-gradient(180deg, #eef1f6, #dfe5ee);
}
.karte-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem;
}
.karte h3 {
  font-size: 1.6rem;
  font-weight: 650;
}
.fach {
  margin: 0.15rem 0 0;
  color: var(--blau);
  font-weight: 600;
}
.karte ul {
  margin: 1rem 0 1.5rem;
  padding-left: 1.1rem;
  color: var(--text-ruhig);
  font-size: 0.95rem;
}
.karte li + li {
  margin-top: 0.35rem;
}
/* Status als Legende: Farbpunkt + grauer Text (kein getönter Chip). */
.status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.6rem;
  color: var(--text-leise);
  font-size: 0.8rem;
  font-weight: 600;
}
.punkt {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}
.punkt-gruen {
  background: #10b981;
}
.punkt-gelb {
  background: #f59e0b;
}
.punkt-grau {
  background: #94a3b8;
}
.hinweis {
  margin: auto 0 0;
  color: var(--text-leise);
  font-size: 0.85rem;
}

/* ---------- Merkmale ---------- */
.merkmale {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 40rem) {
  .merkmale {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 64rem) {
  .merkmale {
    grid-template-columns: repeat(4, 1fr);
  }
}
.merkmal {
  padding: 1.5rem;
  border: 1px solid var(--linie);
  border-radius: 1.25rem;
  background: var(--flaeche);
}
.merkmal svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: var(--blau);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.merkmal h3 {
  margin-top: 0.9rem;
  font-size: 1.2rem;
  font-weight: 650;
}
.merkmal p {
  margin: 0.5rem 0 0;
  color: var(--text-ruhig);
  font-size: 0.95rem;
}

/* ---------- Schulen ---------- */
.schulen {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 52rem) {
  .schulen {
    grid-template-columns: 1.4fr 1fr;
  }
}
.schulen p:not(.kicker) {
  color: var(--text-ruhig);
  font-size: 1.05rem;
}
.schulen .hinweis {
  font-size: 0.9rem;
}
.schulen-knoepfe {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem;
  border: 1px solid var(--linie);
  border-radius: var(--rund);
  background: var(--flaeche);
  box-shadow: var(--schatten);
}

/* ---------- Fragen ---------- */
details {
  border-bottom: 1px solid var(--linie);
  padding: 1.1rem 0;
}
details:first-of-type {
  border-top: 1px solid var(--linie);
}
summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  color: var(--blau);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1;
}
details[open] summary::after {
  content: "–";
}
details p {
  margin: 0.75rem 0 0;
  color: var(--text-ruhig);
}

/* ---------- Fuß ---------- */
.fuss {
  padding: 2rem 0;
  color: var(--text-leise);
  font-size: 0.85rem;
}
.fuss-innen {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}
.fuss p {
  margin: 0;
}
.fuss nav {
  display: flex;
  gap: 1.25rem;
}
.fuss a {
  color: var(--text-leise);
  text-decoration: none;
}
.fuss a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ---------- Rechtstexte ---------- */
.rechtstext {
  padding: 3.5rem 0 4rem;
}
.rechtstext h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 650;
  margin-bottom: 1.5rem;
}
.rechtstext h2 {
  font-family: "Figtree", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.75rem 0 0.4rem;
}
.rechtstext p:not(.kicker) {
  margin: 0.4rem 0 0;
  color: var(--text-ruhig);
}
.rechtstext .stand {
  color: var(--text-leise);
  font-size: 0.85rem;
}
