/* Gemeinsames Styling für die statischen SEO-/Tool-Seiten von SemBan.
   Bewusst schlank & eigenständig (kein Build, voll crawlbar). */
:root {
  --navy: #2a2a6e;
  --brand: #f5c645;
  --brand-strong: #e0ad1f;
  --ink: #1c1917;
  --muted: #57534e;
  /* Genau EINE Sekundärfarbe – dieselbe Entscheidung wie in der App.
     `--faint` war stone-400 (#a8a29e) und misst auf dem cremefarbenen Verlauf
     dieser Seiten 2,46 : 1; AA verlangt bei 12–13 px 4,5. Betroffen war
     ausgerechnet alles, was einordnet: die Brotkrume, die „Stand:"-Zeile, der
     ganze Fuß, die Spaltenköpfe des Notenrechners und die Zeile unter dem
     Ergebnis („20 ECTS · gewichteter Durchschnitt"). Eine dritte Graustufe zu
     suchen, die auf diesem Verlauf trägt, geht nicht: stone-500 reicht nur auf
     Weiß, und der Verlauf läuft nach #f6eed6. Die Abstufung tragen deshalb
     GRÖSSE und GEWICHT, nicht die Farbe – der Name bleibt, damit die Stellen
     erkennbar bleiben, an denen kleiner Text steht. */
  --faint: #57534e;
  --cream: #fdfcf7;
  --line: #efe9da;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(120% 120% at 85% 8%, #f7ecc9 0%, rgba(247, 236, 201, 0) 55%),
    linear-gradient(135deg, #fdfcf7 0%, #faf6ec 55%, #f6eed6 100%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
a { color: var(--navy); }
header.site {
  position: sticky; top: 0; z-index: 10;
  background: #fdfcf7;
  border-bottom: 1px solid var(--line);
}
header.site .row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--navy); text-decoration: none; font-size: 18px; }
.brand svg { display: block; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand); color: var(--ink); font-weight: 700;
  text-decoration: none; padding: 11px 20px; border-radius: 999px;
  border: none; cursor: pointer; font-size: 15px; transition: background .15s;
}
.btn:hover { background: var(--brand-strong); }
.btn.small { padding: 8px 16px; font-size: 14px; }
main { padding: 40px 0 24px; }
h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); line-height: 1.1; letter-spacing: -0.02em; color: var(--navy); margin: 0 0 14px; }
h2 { font-size: 1.5rem; letter-spacing: -0.01em; color: var(--navy); margin: 36px 0 12px; }
h3 { font-size: 1.1rem; color: var(--navy); margin: 20px 0 8px; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 24px; }
p { color: var(--muted); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 18px 40px -22px rgba(42, 42, 110, 0.25); }
.calc-row { display: grid; grid-template-columns: 1fr 110px 36px; gap: 8px; margin-bottom: 8px; align-items: center; }
.calc-row input, .calc-head span { width: 100%; }
.calc-head { display: grid; grid-template-columns: 1fr 110px 36px; gap: 8px; font-size: 12px; color: var(--faint); font-weight: 600; margin-bottom: 6px; }
input, select {
  font: inherit; padding: 9px 11px; border: 1px solid #d6d3d1; border-radius: 10px;
  background: #fff; color: var(--ink); width: 100%;
}
input:focus, select:focus { outline: none; border-color: var(--brand-strong); box-shadow: 0 0 0 3px rgba(245, 198, 69, 0.3); }
.iconbtn { background: none; border: none; color: var(--faint); cursor: pointer; font-size: 18px; line-height: 1; padding: 6px; border-radius: 8px; }
.iconbtn:hover { background: #faf0d8; color: #b91c1c; }
.linkbtn { background: none; border: none; color: var(--navy); font-weight: 600; cursor: pointer; padding: 6px 0; font-size: 14px; }
.result { margin-top: 16px; padding: 16px 18px; border-radius: 14px; background: #faf7ee; border: 1px solid var(--line); }
.result .big { font-size: 2.2rem; font-weight: 800; color: var(--navy); line-height: 1; }
.result .sub { font-size: 13px; color: var(--faint); margin-top: 4px; }
.bar { height: 10px; border-radius: 999px; background: #ece7d8; overflow: hidden; margin-top: 10px; }
.bar > span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.cta { margin: 32px 0; padding: 24px; border-radius: 20px; background: var(--navy); color: #fff; text-align: center; }
.cta h2 { color: #fff; margin: 0 0 8px; }
.cta p { color: #c7c7e6; margin: 0 0 16px; }
details { border-top: 1px solid var(--line); padding: 14px 2px; }
details summary { cursor: pointer; font-weight: 600; color: var(--ink); }
details p { margin: 10px 0 0; }
.muted { color: var(--faint); font-size: 13px; }
ul.checks { list-style: none; padding: 0; }
ul.checks li { padding-left: 26px; position: relative; margin-bottom: 8px; color: var(--muted); }
ul.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-strong); font-weight: 800; }
table.cmp { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
table.cmp th, table.cmp td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.cmp th { color: var(--faint); font-weight: 600; }
table.cmp td.semban { color: var(--navy); font-weight: 600; }
footer.site { border-top: 1px solid var(--line); margin-top: 40px; padding: 24px 0 40px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 12px; }
footer.site a { color: var(--muted); text-decoration: none; font-size: 14px; }
footer.site a:hover { color: var(--navy); }
.crumbs { font-size: 13px; color: var(--faint); margin-bottom: 18px; }
.crumbs a { color: var(--faint); }

/* Der Hinweis unter einem Rechner-Ergebnis: sichtbar, aber nicht laut.
   `--faint` ist seit Runde 89 dieselbe Farbe wie `--muted`; die Abstufung
   trägt die Größe. */
.calc-hinweis { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.calc-hinweis[hidden] { display: none; }

/* --- Trefferflächen am Handy -------------------------------------------
   Diese zehn Seiten sind Einstiegspunkte aus der Google-Suche, also fast
   immer ein Telefon. Gemessen auf 390 px lagen je Seite 8 bis 17 Ziele unter
   44 px, mehrere sogar unter dem WCAG-Pflichtmaß von 24: die Brotkrume mit
   27 x 15, die FAQ-Aufklapper mit 346 x 26, der Entfernen-Knopf im
   Notenrechner mit 36 x 30 und jeder Fußzeilen-Link mit 22 px Höhe.

   Nur unter 640 px, wie `.tapp` in der App: Am Rechner zeigt eine Maus
   genauer, und der Entwurf bleibt dort, wie er ist. */
@media (max-width: 639.98px) {
  .brand { min-height: 44px; }
  .btn { min-height: 44px; }
  /* `inline-block` statt `inline`: Ein reines `padding` an einem Inline-Kasten
     vergrößert zwar die Trefferfläche, aber die Brotkrume und der Fuß sind
     kurze, eigenständige Links – dort ist der Blockkasten die ehrlichere Form
     und die gemessene Höhe stimmt dann mit dem überein, was man sieht. */
  .crumbs a { display: inline-block; padding: 6px 0; }
  /* `min-width` zusätzlich: „Start" ist mit 30 px das kürzeste Wort im Fuß und
     bliebe sonst unter dem Ziel – die Breite gibt hier das Wort vor, nicht der
     Entwurf, und ein etwas breiterer Kasten kostet in einer umbrechenden Reihe
     nichts. */
  footer.site a { display: inline-block; min-width: 44px; padding: 11px 0; }
  /* KEIN `display: flex` am summary – das entfernt in manchen Browsern das
     Aufklapp-Dreieck. Polsterung tut dasselbe und lässt die Marke stehen. */
  details summary { padding: 10px 0; }
  .iconbtn { min-height: 44px; min-width: 44px; }
  /* Links MITTEN im Fließtext nimmt WCAG 2.5.8 ausdrücklich aus („Inline") –
     gefordert bleibt das Pflichtmaß von 24. Bei 17 px Schrift ist der
     Inline-Kasten 17 px hoch; die Polsterung bringt ihn auf 25, ohne den
     Zeilenfluss zu ändern (Polsterung an einem Inline-Kasten wirkt nicht auf
     die Zeilenhöhe). */
  main p a, main li a, main td a, main dd a { padding-block: 4px; }
}

  /* Eine lange Adresse oder E-Mail in den Rechtsseiten ist EIN Wort und schiebt
     die Seite auf: gemessen 6 bis 18 px waagerechter Überlauf auf 320 px.
     `break-word` bricht nur, wenn es sonst nicht passt. */
  body { overflow-wrap: break-word; }
  /* Die Vergleichstabelle brauchte 372 px auf einem 320-px-Schirm. Sie
     seitwärts scrollen zu lassen wäre der falsche Weg (am Handy swipt dort
     niemand); enger gesetzt passt sie. */
  table.cmp { font-size: 13px; }
  table.cmp th, table.cmp td { padding: 8px 6px; overflow-wrap: anywhere; }
}
