/* tmssimulation.de – Basis-Stylesheet (Fallback-Ebene).
   Die Live-Optik kommt aus https://img.tmssimulation.de/a/site.css;
   diese Datei haelt Farben, Typografie und Grundbausteine bereit, damit die
   Seite auch ohne die externe Datei lesbar und ruhig bleibt. */
:root{
  --ink:#1d1d1f;--muted:#6e6e73;--accent:#0071e3;--accent-d:#0062c4;
  --pale:#f5f5f7;--line:#e5e5ea;--paper:#fff;--ground:#fbfbfd;
  --ok:#1d7a46;--bad:#b3261e;--r:18px;
  --space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;
  --space-5:24px;--space-6:32px;--space-7:48px;--space-8:64px;
  --fs-sm:.9375rem;--fs-base:1.0625rem;--fs-h3:1.25rem;
  --fs-h2:1.5rem;--fs-h1:2.125rem;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:72px;-webkit-text-size-adjust:100%}
html,body{overflow-x:clip}
body{
  margin:0;background:var(--ground);color:var(--ink);
  font:400 var(--fs-base)/1.65 -apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue","Segoe UI",system-ui,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  display:flex;flex-direction:column;min-height:100vh;
}
main{flex:1;width:100%;min-width:0}
.container,.page-shell,.wrap{max-width:1040px;margin-inline:auto;padding-inline:1.5rem}
h1,h2,h3{line-height:1.15;letter-spacing:-.015em;text-wrap:balance;margin:0 0 var(--space-3)}
h1{font-size:var(--fs-h1);font-weight:650}
h2{font-size:var(--fs-h2);font-weight:650;margin-top:var(--space-7)}
h3{font-size:var(--fs-h3);font-weight:600;margin-top:var(--space-5)}
p{margin:0 0 var(--space-4);max-width:72ch;text-wrap:pretty}
.lead{font-size:1.1875rem;max-width:66ch}
ul,ol{margin:0 0 var(--space-4);padding-left:1.25rem}
li{margin:0 0 var(--space-2)}
small,.small{font-size:var(--fs-sm);color:var(--muted)}
strong{font-weight:650}
hr{border:0;border-top:1px solid var(--line);margin:var(--space-6) 0}
img{max-width:100%;height:auto}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:.18em}
a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible,select:focus-visible{outline:3px solid rgba(0,113,227,.45);outline-offset:3px;border-radius:8px}
::selection{background:rgba(0,113,227,.15)}

/* Kopf und Fuss */
.site-header{background:rgba(251,251,253,.86);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:100}
.site-header-inner{max-width:1040px;margin:auto;padding:0 1.5rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;height:52px}
.site-header .brand-name{display:inline-flex;align-items:center;gap:.6rem;color:var(--ink);font-weight:600;text-decoration:none}
.site-header nav{display:flex;flex-wrap:wrap;gap:.25rem 1rem;font-size:var(--fs-sm)}
.site-header nav a{color:var(--muted)}
.site-header nav a[aria-current="page"],.site-header nav a:hover{color:var(--ink);text-decoration:none}
.site-footer{border-top:1px solid var(--line);margin-top:var(--space-8);padding:var(--space-6) 1.5rem;background:var(--paper)}
.footer-nav{list-style:none;margin:0 auto var(--space-4);padding:0;max-width:1040px;display:flex;flex-wrap:wrap;gap:.4rem 1.25rem;font-size:var(--fs-sm)}
.footer-nav a{color:var(--muted)}
.footer-nav a:hover{color:var(--accent)}
.footer-meta{max-width:1040px;margin:0 auto;font-size:var(--fs-sm);color:var(--muted)}
/* Bausteine */
.card{background:var(--paper);border:1px solid var(--line);border-radius:var(--r);padding:var(--space-5) var(--space-5) var(--space-4);margin:0 0 var(--space-5);box-shadow:0 1px 2px rgba(0,0,0,.04)}
.card h2.first,.card h2:first-child{margin-top:0}
.notice{background:var(--pale);border:1px solid var(--line);border-radius:var(--r);padding:var(--space-4) var(--space-5);margin:0 0 var(--space-5);font-size:var(--fs-sm);color:var(--muted)}
.notice strong{color:var(--ink)}
.btn,button,.button{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-height:46px;padding:0 1.35rem;border:1px solid transparent;border-radius:999px;background:var(--accent);color:#fff;font:inherit;font-weight:600;cursor:pointer;transition:background .18s ease,transform .18s ease}
.btn:hover,button:hover,.button:hover{background:var(--accent-d);text-decoration:none}
.btn:active,button:active{transform:translateY(1px)}
.btn.secondary{background:var(--paper);color:var(--ink);border-color:var(--line)}
.inp,input[type="number"],input[type="text"],select{font:inherit;min-height:44px;padding:.5rem .75rem;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink)}
.breadcrumb{font-size:var(--fs-sm);color:var(--muted);margin:var(--space-4) 0 var(--space-3)}
.breadcrumb a{color:var(--muted)}
.breadcrumb span{padding:0 .35rem}
table{width:100%;border-collapse:collapse;margin:0 0 var(--space-5);font-size:var(--fs-sm)}
th,td{text-align:left;padding:.6rem .75rem;border-bottom:1px solid var(--line);vertical-align:top}
th{font-weight:650;background:var(--pale)}
td,th{font-variant-numeric:tabular-nums}
details{border-bottom:1px solid var(--line);padding:var(--space-3) 0}
details summary{cursor:pointer;font-weight:600;list-style:none}
details summary::-webkit-details-marker{display:none}
details summary::after{content:"+";float:right;color:var(--muted);font-weight:400}
details[open] summary::after{content:"–"}
details p{margin:var(--space-3) 0 0;color:var(--ink)}
figure{margin:0 0 var(--space-5)}
figcaption{font-size:var(--fs-sm);color:var(--muted);margin-top:var(--space-2)}
blockquote{margin:0 0 var(--space-5);padding:var(--space-2) 0 var(--space-2) var(--space-5);border-left:3px solid var(--line);color:var(--muted)}
@media (max-width:720px){
  :root{--fs-h1:1.75rem;--fs-h2:1.3125rem;--fs-base:1rem}
  h1,h2{margin-top:var(--space-5)}
  .site-header-inner{height:auto;padding-block:.6rem;flex-wrap:wrap}
  .site-header nav{gap:.15rem .8rem}
  table{display:block;overflow-x:auto;white-space:nowrap}
  .card{padding:var(--space-4)}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none!important;animation:none!important}
}
@media print{
  .site-header,.site-footer,.btn,button,form{display:none!important}
  body{background:#fff;color:#000;font-size:11pt;display:block}
  main{max-width:none}
  a{color:#000;text-decoration:underline}
  h1,h2,h3{break-after:avoid}
  table,figure{break-inside:avoid}
  details{display:block}
  details > *{display:block!important}
}

/* Schrift explizit auf html-Ebene setzen */
:root{--font-sans:-apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue","Segoe UI",system-ui,Roboto,Arial,sans-serif}
html{font-family:var(--font-sans)}

/* ——— Overrides (hoehere Spezifitaet als site.css) ——— */
html body{font-family:"Inter",-apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue","Segoe UI",system-ui,Roboto,Arial,sans-serif}
html body main h1{font-size:clamp(1.9rem,3.2vw,2.5rem);line-height:1.12;letter-spacing:-.02em}
html body .lead,html body main p{color:var(--ink)}
html body main p{line-height:1.62}
/* Cookie-Hinweis: schmale Leiste unten statt grossem Block */
html body #consentBanner{position:fixed!important;left:16px;right:16px;bottom:16px;top:auto;margin:0;max-height:220px;overflow:auto;padding:16px 20px;background:var(--paper);border:1px solid var(--line);border-radius:16px;box-shadow:0 10px 30px rgba(0,0,0,.12);z-index:200;text-align:left;display:block}
html body #consentBanner .consent-text{margin:0 0 12px;max-width:none;font-size:.9375rem;line-height:1.5;color:var(--ink)}
html body #consentBanner .consent-row{display:flex;gap:12px;flex-wrap:wrap;margin:0}
html body #consentBanner .consent-btn{flex:1 1 160px;min-height:44px;font-size:.9375rem;border-radius:999px}
@media (max-width:720px){
  html body main h1{font-size:1.85rem}
  html body #consentBanner{left:10px;right:10px;bottom:10px;padding:14px 16px;max-height:46vh}
  html body main p{font-size:1rem}
}

/* ——— Runde 2: Mobil-Layout, Navigation, Untertitel, Buttons ——— */
html body .lead{max-width:700px}
html body .btn,html body button.button{box-shadow:0 1px 2px rgba(0,0,0,.08)}
html body .btn:not(.secondary){box-shadow:0 4px 14px rgba(0,113,227,.18)}
@media (max-width:720px){
  /* Platz fuer die Hinweisleiste reservieren, damit keine CTA verdeckt wird */
  html body{padding-bottom:196px}
  html body main h1{font-size:1.8rem!important;line-height:1.2;letter-spacing:-.01em}
  html body .site-header nav{flex-wrap:nowrap!important;overflow-x:auto;white-space:nowrap;-webkit-overflow-scrolling:touch;gap:.9rem;padding-bottom:2px}
  html body .site-header nav::-webkit-scrollbar{height:0}
  html body #consentBanner{max-height:none;padding:14px 16px 16px}
  html body #consentBanner .consent-row{flex-direction:column;gap:10px}
  html body #consentBanner .consent-btn{width:100%;flex:0 0 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  html body #consentBanner .consent-text{font-size:.9rem}
}



/* 11-27 impeccable refine */
/* Abschnittsleiste: Segmente 4/6 dunkler (wei\00DF \2265 4.5:1), 8 klemmt nicht mehr, Legende */
html body .timeline .seg.mem{background:var(--accent-d)}
html body .timeline .seg{overflow:hidden}
html body .timeline .w25{flex:25 1 1.5rem}
html body .tl-legend{display:flex;align-items:center;gap:.5rem;margin:.1rem 0 var(--space-4);font-size:var(--fs-sm);color:var(--muted)}
html body .tl-legend i{flex:none;width:1rem;height:1rem;border-radius:4px;background:var(--accent-d)}
@media (max-width:560px){
  html body .timeline{gap:2px}
  html body .timeline .seg{font-size:.75rem}
  html body .timeline .seg.pause{font-size:.7rem}
}
/* Start-Buttons: gleiche Hoehe wie Hero-Primary, mobil volle Breite */
html body #fullStartBtn,html body #startBtn{min-height:48px}
@media (max-width:720px){
  html body #fullStartBtn,html body #startBtn{width:100%}
}
/* Navigation: Touch-Ziele, mobil eine scrollbare Zeile */
html body .site-header nav a{display:inline-flex;align-items:center;min-height:44px}
html body .footer-nav a,html body .breadcrumb a{display:inline-flex;align-items:center;min-height:44px}
@media (max-width:720px){
  html body .site-header-inner{row-gap:0}
  html body .site-header nav{flex:1 1 100%;min-width:0;max-width:100%;flex-wrap:nowrap;overflow-x:auto;white-space:nowrap;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  html body .site-header nav a{flex:none}
}
/* Seitenstreifen -> volle Haarlinie + Tint */
html body .expl.why{border:1px solid rgba(180,83,9,.35);background:#fffbeb}
html body .tutor-out{border:1px solid rgba(0,113,227,.3);border-radius:12px;background:#e8f1fd}
/* Kicker ohne Uppercase/Sperrung */
html body .q .qno,html body .instr .instr-no{text-transform:none;letter-spacing:0}
/* Links auf hellgrauem Grund dunkler */
html body .facts a,html body .notice a,html body .expl a,html body .facts-list a{color:var(--accent-d)}
html body .btn.secondary:hover{color:var(--accent-d)}
/* Radios/Checkboxen 20px */
html body .row input[type=checkbox],html body .cards label.choice input,html body .opt input,html body .fb-reason input{width:20px;height:20px}
html body .row input[type=checkbox]{vertical-align:-.3rem}
