.pinGate {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px;
  background:
    radial-gradient(120% 90% at 15% -10%, #ffffff 0%, rgba(255,255,255,0) 45%),
    radial-gradient(90% 70% at 100% 0%, rgba(47,107,255,.10) 0%, rgba(47,107,255,0) 40%),
    #eef1f6;
}
.pinKarte {
  width: 100%; max-width: 340px; text-align: center;
  background: rgba(255,255,255,.72); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(18,20,26,.09); border-radius: 22px; padding: 34px 26px;
  box-shadow: 0 1px 2px rgba(18,20,26,.05), 0 20px 50px -18px rgba(18,20,26,.28);
}
.pinKarte .logo { width: 46px; height: 46px; color: #2f6bff; }
.pinKarte h2 { font-size: 24px; letter-spacing: -.02em; margin-top: 8px; }
.pinKarte p { color: #5c6470; font-size: 14.5px; margin: 4px 0 20px; }
.pinKarte form { display: flex; gap: 8px; }
.pinKarte input {
  flex: 1; min-width: 0; font-size: 18px; text-align: center; letter-spacing: .3em; font-family: inherit;
  border: 1px solid rgba(18,20,26,.12); border-radius: 14px; padding: 13px; outline: none; background: #fff;
}
.pinKarte button { flex: none; }
.pinKarte input:focus { border-color: #2f6bff; box-shadow: 0 0 0 4px rgba(47,107,255,.12); }
.pinKarte button {
  font-family: inherit; font-size: 16px; font-weight: 600; color: #fff; cursor: pointer;
  background: linear-gradient(180deg, #4f83ff, #2f6bff); border: none; border-radius: 14px; padding: 0 20px;
}
.pinFehler { color: #e0483b; font-size: 13.5px; margin-top: 12px; }

:root {
  --bg: #eef1f6;
  --tinte: #12141a;
  --grau: #5c6470;
  --leise: #8b93a0;
  --karte: rgba(255,255,255,.72);
  --rand: rgba(18,20,26,.09);
  --akzent: #2f6bff;
  --akzent-weich: rgba(47,107,255,.12);
  --gut: #17a06a;
  --warn: #d98a12;
  --rot: #e0483b;
  --schatten: 0 1px 2px rgba(18,20,26,.05), 0 12px 34px -14px rgba(18,20,26,.22);
  --radius: 20px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

body {
  font-family: var(--font);
  color: var(--tinte);
  background:
    radial-gradient(120% 90% at 15% -10%, #ffffff 0%, rgba(255,255,255,0) 45%),
    radial-gradient(90% 70% at 100% 0%, rgba(47,107,255,.10) 0%, rgba(47,107,255,0) 40%),
    var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.huelle { max-width: 860px; margin: 0 auto; padding: 34px 20px 60px; }

.kopf { margin-bottom: 26px; }
.marke { display: flex; align-items: center; gap: 14px; }
.logo { width: 42px; height: 42px; color: var(--akzent); flex: none; }
.kopf h1 { font-size: 27px; letter-spacing: -.02em; font-weight: 700; }
.kopf p { color: var(--grau); font-size: 15px; margin-top: 1px; }

.suche { display: flex; gap: 10px; }
.suche input {
  flex: 1; font-family: var(--font); font-size: 17px; color: var(--tinte);
  background: var(--karte); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--rand); border-radius: 16px; padding: 15px 18px; outline: none;
  box-shadow: var(--schatten); transition: border-color .18s, box-shadow .18s;
}
.suche input:focus { border-color: var(--akzent); box-shadow: 0 0 0 4px var(--akzent-weich), var(--schatten); }
.suche input::placeholder { color: var(--leise); }
.suche button {
  font-family: var(--font); font-size: 16px; font-weight: 600; color: #fff; cursor: pointer;
  background: linear-gradient(180deg, #4f83ff, var(--akzent)); border: none; border-radius: 16px;
  padding: 0 24px; box-shadow: 0 6px 18px -6px rgba(47,107,255,.7); transition: transform .12s, filter .18s;
}
.suche button:hover { filter: brightness(1.05); }
.suche button:active { transform: scale(.97); }
.suche button:disabled { opacity: .5; cursor: default; filter: none; }

.verlauf { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.verlauf button {
  font-family: var(--font); font-size: 13px; color: var(--grau); cursor: pointer;
  background: rgba(255,255,255,.6); border: 1px solid var(--rand); border-radius: 999px;
  padding: 6px 13px; transition: color .15s, border-color .15s;
}
.verlauf button:hover { color: var(--akzent); border-color: var(--akzent); }

.laden { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 60px 0; }
.scanner {
  width: 54px; height: 54px; border-radius: 50%;
  border: 3px solid var(--akzent-weich); border-top-color: var(--akzent);
  animation: dreh .9s linear infinite;
}
@keyframes dreh { to { transform: rotate(360deg); } }
.laden p { color: var(--grau); font-size: 15px; }

.fehlerBox {
  margin-top: 22px; background: rgba(224,72,59,.08); border: 1px solid rgba(224,72,59,.25);
  color: #a5271c; border-radius: 16px; padding: 16px 18px; font-size: 15px;
}

main { margin-top: 26px; display: flex; flex-direction: column; gap: 18px; animation: auf .4s ease; }
@keyframes auf { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.karte {
  background: var(--karte); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--rand); border-radius: var(--radius); box-shadow: var(--schatten); padding: 22px;
}

.uebersicht { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.ring { position: relative; width: 92px; height: 92px; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring .zahl { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.uebersicht .kopfinfo { flex: 1; min-width: 200px; }
.uebersicht .ziel { font-size: 13px; color: var(--leise); word-break: break-all; }
.uebersicht .ziel a { color: var(--akzent); text-decoration: none; }
.uebersicht h2 { font-size: 20px; letter-spacing: -.01em; margin: 3px 0 8px; }
.chance { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.chance.heiss { background: rgba(23,160,106,.13); color: var(--gut); }
.chance.lauwarm { background: rgba(217,138,18,.14); color: var(--warn); }
.chance.schwer, .chance.unklar { background: rgba(92,100,112,.13); color: var(--grau); }
.chance .punkt { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; width: 100%; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; padding: 7px 12px; border-radius: 11px; background: rgba(255,255,255,.65); border: 1px solid var(--rand); color: var(--grau); }
.chip b { color: var(--tinte); font-weight: 600; }
.chip.ja { color: var(--gut); } .chip.ja b { color: var(--gut); }
.chip.nein { color: var(--rot); } .chip.nein b { color: var(--rot); }

.block-titel { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--leise); margin-bottom: 14px; }

.gespraech { border-color: rgba(47,107,255,.28); box-shadow: 0 1px 2px rgba(18,20,26,.05), 0 18px 44px -18px rgba(47,107,255,.4); }
.gespraech .haupt { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.gespraech .haupt h2 { font-size: 19px; letter-spacing: -.01em; }
.gespraech .unter { color: var(--grau); font-size: 14px; margin-bottom: 20px; }

.abschnitt { margin-top: 22px; }
.abschnitt:first-of-type { margin-top: 4px; }
.abschnitt h3 { font-size: 14.5px; font-weight: 700; margin-bottom: 11px; display: flex; align-items: center; gap: 8px; }
.abschnitt h3 .marker { width: 6px; height: 18px; border-radius: 3px; background: var(--akzent); }
.abschnitt.stark h3 .marker { background: var(--gut); }
.abschnitt.nein h3 .marker { background: var(--rot); }
.abschnitt.sensibel h3 .marker { background: var(--warn); }

.satz {
  position: relative; background: rgba(255,255,255,.6); border: 1px solid var(--rand);
  border-radius: 14px; padding: 14px 46px 14px 16px; font-size: 15px; color: #23262e; margin-bottom: 9px;
}
.satz .kopieren {
  position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--rand); background: #fff; color: var(--grau); display: flex; align-items: center; justify-content: center;
  transition: color .15s, border-color .15s;
}
.satz .kopieren:hover { color: var(--akzent); border-color: var(--akzent); }
.satz .satz-titel { font-size: 12.5px; font-weight: 700; color: var(--akzent); margin-bottom: 5px; }
.abschnitt.sensibel .satz-titel { color: var(--warn); }

ul.merkliste { list-style: none; display: flex; flex-direction: column; gap: 9px; }
ul.merkliste li { position: relative; padding-left: 24px; font-size: 14.5px; color: #33373f; }
ul.merkliste li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--rot); opacity: .55; }
.abschnitt.stark ul.merkliste li::before { background: var(--gut); }

.gross-kopieren {
  margin-top: 24px; width: 100%; font-family: var(--font); font-size: 15px; font-weight: 600; cursor: pointer;
  color: var(--akzent); background: var(--akzent-weich); border: 1px solid rgba(47,107,255,.3); border-radius: 14px; padding: 14px;
  transition: background .15s;
}
.gross-kopieren:hover { background: rgba(47,107,255,.18); }

details.gruppe { border-top: 1px solid var(--rand); }
details.gruppe:first-of-type { border-top: none; }
details.gruppe > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 15px 2px; font-size: 15px; font-weight: 600;
}
details.gruppe > summary::-webkit-details-marker { display: none; }
details.gruppe > summary .pfeil { margin-left: auto; color: var(--leise); transition: transform .2s; }
details.gruppe[open] > summary .pfeil { transform: rotate(90deg); }
.zaehler { font-size: 12px; font-weight: 700; color: #fff; background: var(--grau); border-radius: 999px; min-width: 20px; height: 20px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; }
.zaehler.kritisch { background: var(--rot); }
.zaehler.wichtig { background: var(--warn); }
.zaehler.kleinigkeit { background: var(--leise); }
.zaehler.stark { background: var(--gut); }

.befund { padding: 4px 2px 18px 12px; border-left: 2px solid var(--rand); margin-left: 8px; }
.befund .b-titel { font-size: 15px; font-weight: 600; }
.befund .b-fakt { font-size: 13.5px; color: var(--grau); margin: 3px 0 8px; }
.befund .b-satz { font-size: 14.5px; color: #2b2f37; background: rgba(255,255,255,.5); border: 1px solid var(--rand); border-radius: 11px; padding: 10px 12px; }

table.technik { width: 100%; border-collapse: collapse; font-size: 14px; }
table.technik td { padding: 9px 4px; border-bottom: 1px solid var(--rand); vertical-align: top; }
table.technik td:first-child { color: var(--grau); width: 42%; }
table.technik td:last-child { color: var(--tinte); font-weight: 500; }

.fuss { margin-top: 34px; text-align: center; color: var(--leise); font-size: 12.5px; }

.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(10px);
  background: var(--tinte); color: #fff; font-size: 14px; font-weight: 500; padding: 11px 20px; border-radius: 12px;
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.4); opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none;
}
.toast.zeigen { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 560px) {
  .suche { flex-direction: column; }
  .suche button { padding: 14px; }
  .kopf h1 { font-size: 24px; }
}
