/* Ratgeber auf backstage-software.com. Gleiche Sprache wie die Startseite
   (Liquid Glass, Systemblau, Vorhang-Logo), aber als eigene Datei, weil
   alle Ratgeber-Seiten sie teilen. Werte aus public/website/index.html. */
:root {
  --text: #1d1d1f;
  --text-2: #5e5e63;
  --text-3: #7c7c82;
  --blau: #007aff;
  --linie: rgba(0, 0, 0, 0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 700px at 0% 0%, rgba(110, 140, 255, 0.75), transparent 70%),
    radial-gradient(800px 700px at 100% 4%, rgba(190, 125, 255, 0.65), transparent 70%),
    radial-gradient(900px 800px at 30% 14%, rgba(110, 205, 255, 0.5), transparent 70%),
    radial-gradient(900px 800px at 100% 22%, rgba(255, 150, 195, 0.55), transparent 70%),
    radial-gradient(900px 800px at 0% 31%, rgba(120, 150, 255, 0.6), transparent 70%),
    radial-gradient(900px 800px at 70% 40%, rgba(110, 205, 255, 0.5), transparent 70%),
    radial-gradient(900px 800px at 0% 50%, rgba(255, 150, 195, 0.5), transparent 70%),
    radial-gradient(900px 800px at 100% 58%, rgba(190, 125, 255, 0.6), transparent 70%),
    radial-gradient(900px 800px at 20% 67%, rgba(110, 140, 255, 0.6), transparent 70%),
    radial-gradient(900px 800px at 100% 76%, rgba(110, 205, 255, 0.5), transparent 70%),
    radial-gradient(900px 800px at 0% 85%, rgba(190, 125, 255, 0.6), transparent 70%),
    radial-gradient(900px 700px at 90% 100%, rgba(255, 150, 195, 0.6), transparent 70%),
    #e4e8f6;
}
a { color: inherit; text-decoration: none; }
.breite { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Glas */
.karte, .knopf-hell {
  background: transparent;
  -webkit-backdrop-filter: blur(1px) saturate(150%);
  backdrop-filter: blur(1px) saturate(150%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.4),
    inset 2px 2px 1px -1px rgba(255,255,255,0.95),
    inset -2px -2px 1px -1px rgba(255,255,255,0.55),
    0 8px 24px -14px rgba(30,40,90,0.22);
}
.karte { border-radius: 30px; }
/* Lesefläche: heller als die Glaskarten, damit langer Text ruhig steht.
   Bekommt bewusst keinen Brechungsfilter (glas.js), der wäre bei langen
   Artikeln eine riesige Verzerrungskarte. */
.lesekarte {
  background: rgba(255,255,255,0.62);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-radius: 30px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.5),
    inset 2px 2px 1px -1px rgba(255,255,255,0.95),
    0 12px 32px -14px rgba(30,40,90,0.22);
}

/* Kopf: schwebende Glas-Kapsel wie auf der Startseite */
header {
  position: sticky; top: 0; z-index: 10;
  padding: calc(env(safe-area-inset-top) + 10px) 12px 0;
}
header .breite {
  display: flex; align-items: center; gap: 24px;
  height: 58px; max-width: 1080px; border-radius: 999px; padding: 0 7px 0 22px;
  background: rgba(255,255,255,0.12);
  -webkit-backdrop-filter: blur(6px) saturate(180%);
  backdrop-filter: blur(6px) saturate(180%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.5),
    inset 2.5px 2.5px 1px -1px rgba(255,255,255,1),
    inset -2px -2px 1px -1px rgba(255,255,255,0.75),
    inset 0 0 8px rgba(255,255,255,0.3),
    0 12px 34px -12px rgba(30,40,90,0.3);
}
.marke { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; white-space: nowrap; }
.marke svg { width: 22px; height: 22px; }
nav { display: flex; gap: 26px; margin-left: auto; font-size: 14px; color: var(--text-2); }
nav a:hover, nav a[aria-current] { color: var(--text); }
nav a[aria-current] { font-weight: 600; }

.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px; border-radius: 999px;
  font-size: 16px; font-weight: 500; white-space: nowrap; cursor: pointer; border: 0; font-family: inherit;
  transition: transform 0.25s cubic-bezier(.3,1.7,.5,1), background 0.2s;
}
.knopf:hover { transform: scale(1.03); }
.knopf:active { transform: scale(0.95); }
.knopf-hell { color: var(--text); }
.knopf-hell:hover { background: rgba(255,255,255,0.18); }
.knopf-haupt {
  color: #fff;
  background: rgba(10,122,255,0.85);
  -webkit-backdrop-filter: blur(2px) saturate(180%);
  backdrop-filter: blur(2px) saturate(180%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.35),
    inset 2.5px 2.5px 1px -1px rgba(255,255,255,0.85),
    inset -2px -2px 1px -1px rgba(255,255,255,0.45),
    inset 0 0 16px rgba(160,210,255,0.55),
    0 10px 26px -10px rgba(0,100,230,0.55);
}
.knopf-haupt:hover { background: rgba(10,122,255,0.95); }
.nur-klein { display: none; }

/* Übersicht */
.kopf { padding: 72px 0 32px; max-width: 760px; }
.kicker { font-size: 15px; font-weight: 600; color: var(--blau); margin: 0 0 10px; }
h1 { font-size: 52px; line-height: 1.08; letter-spacing: -0.035em; font-weight: 700; margin: 0; padding-bottom: 0.06em; }
.kopf p.unterzeile { font-size: 20px; line-height: 1.5; color: var(--text-2); margin: 20px 0 0; }
.liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-bottom: 24px; }
.liste a.karte { display: flex; flex-direction: column; padding: 28px; min-height: 220px; transition: transform 0.25s cubic-bezier(.3,1.7,.5,1); }
.liste a.karte:hover { transform: translateY(-2px); }
.liste .thema { font-size: 13px; font-weight: 600; color: var(--blau); letter-spacing: 0.02em; }
.liste h2 { font-size: 23px; line-height: 1.25; letter-spacing: -0.015em; margin: 10px 0 10px; }
.liste p { margin: 0; color: var(--text-2); font-size: 16px; }
.liste .mehr { margin-top: auto; padding-top: 18px; font-size: 15px; font-weight: 600; color: var(--blau); }
.liste .werkzeug { grid-column: 1 / -1; min-height: 0 !important; background: rgba(10,122,255,0.08); }

/* Artikel */
.artikel { max-width: 800px; margin: 0 auto; padding: 40px 0 24px; }
.pfad { font-size: 14px; color: var(--text-2); margin: 0 0 18px; }
.pfad a { color: var(--blau); }
.artikel .lesekarte { padding: 48px 56px; }
.artikel h1 { font-size: 44px; }
.meta { font-size: 14px; color: var(--text-3); margin: 14px 0 0; }
.vorspann { font-size: 20px; line-height: 1.55; color: var(--text-2); margin: 22px 0 8px; }
.artikel h2 { font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; margin: 44px 0 12px; }
.artikel h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; margin: 28px 0 8px; }
.artikel p, .artikel li { font-size: 18px; line-height: 1.65; }
.artikel p { margin: 0 0 16px; }
.artikel ul, .artikel ol { margin: 0 0 18px; padding-left: 24px; }
.artikel li { margin: 0 0 8px; }
.artikel li::marker { color: var(--blau); }
.artikel a:not(.knopf) { color: var(--blau); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.artikel strong { font-weight: 650; }
.artikel .quelle { font-size: 14px; color: var(--text-3); }

.kasten { border-radius: 22px; padding: 22px 24px; margin: 24px 0; background: rgba(10,122,255,0.07); box-shadow: inset 0 0 0 1px rgba(10,122,255,0.12); }
.kasten p:last-child, .kasten ul:last-child { margin-bottom: 0; }
.kasten .titel { display: block; font-size: 14px; font-weight: 700; color: var(--blau); margin-bottom: 6px; letter-spacing: 0.01em; }
.zahlen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
.zahlen div { border-radius: 20px; padding: 18px; background: rgba(255,255,255,0.6); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05); }
.zahlen b { display: block; font-size: 30px; letter-spacing: -0.03em; line-height: 1.15; }
.zahlen span { font-size: 14px; color: var(--text-2); }

.tabelle { width: 100%; overflow-x: auto; margin: 20px 0 24px; }
.tabelle table { width: 100%; border-collapse: collapse; font-size: 16px; }
.tabelle th, .tabelle td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle th { font-size: 14px; color: var(--text-2); font-weight: 600; }

.abschluss { margin-top: 40px; padding: 28px; border-radius: 26px; background: rgba(255,255,255,0.55); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7), 0 10px 30px -16px rgba(30,40,90,0.25); }
.abschluss h2 { margin-top: 0 !important; font-size: 24px !important; }
.abschluss .knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.abschluss .knopf { text-decoration: none !important; }

.weiter { max-width: 800px; margin: 8px auto 0; padding-bottom: 24px; }
.weiter h2 { font-size: 22px; letter-spacing: -0.015em; margin: 24px 0 14px; }
.weiter .liste { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.weiter .liste a.karte { min-height: 0; padding: 22px; }
.weiter .liste h2 { font-size: 18px; margin: 8px 0 0; }

/* Rechner */
.rechner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin: 28px 0 8px; }
.eingaben, .ergebnis { padding: 26px; border-radius: 24px; }
.eingaben { background: rgba(255,255,255,0.6); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05); }
.ergebnis { background: rgba(10,122,255,0.08); box-shadow: inset 0 0 0 1px rgba(10,122,255,0.14); }
.feld { margin-bottom: 16px; }
.feld label, .feld .label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.feld .eingabe { display: flex; align-items: center; min-width: 0; height: 46px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12); padding: 0 14px; }
.feld .eingabe:focus-within { box-shadow: inset 0 0 0 2px var(--blau); }
.feld input { flex: 1; min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 17px; color: var(--text); }
.feld .einheit { color: var(--text-3); font-size: 15px; margin-left: 8px; }
.feld .zwei { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.feld small { display: block; font-size: 13px; color: var(--text-3); margin-top: 6px; line-height: 1.4; }
.wahl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 14px; background: rgba(0,0,0,0.06); }
.wahl button { height: 38px; border: 0; border-radius: 11px; background: transparent; font: inherit; font-size: 15px; color: var(--text-2); cursor: pointer; }
.wahl button[aria-pressed="true"] { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,0.12); }
.ergebnis .gross { font-size: 44px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; margin: 4px 0 2px; overflow-wrap: anywhere; }
.ergebnis .klein { font-size: 14px; color: var(--text-2); }
.ergebnis dl { margin: 18px 0 0; }
.ergebnis dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(10,122,255,0.14); font-size: 16px; }
.ergebnis dt { color: var(--text-2); }
.ergebnis dd { margin: 0; font-weight: 600; text-align: right; white-space: nowrap; }
.ergebnis .knopf { margin-top: 18px; width: 100%; }
.status { min-height: 20px; font-size: 14px; color: var(--text-2); margin-top: 8px; text-align: center; }

footer { padding: 40px 0 calc(56px + env(safe-area-inset-bottom)); font-size: 13px; color: var(--text-3); }
footer .breite { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a:hover { color: var(--text); }

@media (max-width: 900px) {
  nav { display: none; }
  header .knopf.anmelden { margin-left: auto; }
  .liste, .weiter .liste { grid-template-columns: minmax(0, 1fr); }
  .rechner { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: 40px; }
  .artikel h1 { font-size: 34px; }
}
@media (max-width: 560px) {
  header .breite { height: 56px; padding: 0 6px 0 16px; gap: 8px; }
  .marke { font-size: 15px; gap: 7px; }
  .marke svg { width: 20px; height: 20px; }
  header .knopf { padding: 0 14px; font-size: 14px; height: 40px; }
  .nur-gross { display: none; }
  .nur-klein { display: inline; }
  .breite { padding: 0 16px; }
  .kopf { padding-top: 48px; }
  h1 { font-size: 34px; }
  .artikel { padding-top: 24px; }
  .artikel .lesekarte { padding: 28px 20px; border-radius: 24px; }
  .artikel h1 { font-size: 30px; }
  .vorspann { font-size: 18px; }
  .artikel h2 { font-size: 23px; margin-top: 36px; }
  .artikel p, .artikel li { font-size: 17px; }
  .zahlen { grid-template-columns: minmax(0, 1fr); }
  .zahlen b { font-size: 26px; }
  .eingaben, .ergebnis { padding: 20px; }
  .ergebnis .gross { font-size: 36px; }
  .abschluss { padding: 22px; }
  .abschluss .knopf { width: 100%; }
}
@media (max-width: 380px) {
  header .breite { padding-left: 12px; gap: 6px; }
  .marke { font-size: 14px; gap: 6px; }
  header .knopf { padding: 0 11px; font-size: 13px; }
}
