/* Gemeinsame, kompakte Gestaltung fuer Desktop und Handy. */
:root { --klar-navy: #142b46; }
.main-shell #main { max-width: 1600px; margin-inline: auto; padding: 28px 32px; }
.main-shell .view { min-width: 0; }
.main-shell .page-head { margin-bottom: 22px; align-items: center; gap: 16px; }
.main-shell .page-head h1 { font-size: clamp(25px,2.4vw,34px); letter-spacing: -1px; line-height: 1.15; }
.main-shell .page-head p { max-width: 640px; font-size: 13px; line-height: 1.55; }
.main-shell .eyebrow { font-size: 10px; letter-spacing: 1.7px; }
.sidebar .nav-link { min-height: 34px; padding-block: 7px; font-size: 12px; }
.sidebar .nav-group { margin-bottom: 17px; }
.sidebar .brand { padding-block: 19px; }
.main-shell .panel { border-radius: 18px; box-shadow: 0 4px 20px #00000005; }
.main-shell button, .main-shell a { -webkit-tap-highlight-color: transparent; }
.main-shell .of2-reiter { padding: 4px; gap: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin: 0 0 22px; width: fit-content; max-width: 100%; min-height: 44px; overflow-x: auto; scrollbar-width: none; }
.main-shell .of2-reiter button { min-height: 36px; padding: 8px 14px; border: 0; border-radius: 8px; font-size: 12px; white-space: nowrap; gap: 7px; }
.main-shell .of2-reiter button[aria-selected=true] { background: var(--accent-soft); color: var(--text); box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--accent) 18%,transparent); }
.main-shell .of2-reiter__linie { display: none; }
.of2-reiter .of2-sym { width: 16px; height: 16px; }
html[data-route=home] .view > .page-head { display: none; }
html[data-route=home] .heute { grid-template-columns: minmax(0,1.3fr) minmax(280px,.8fr); grid-template-areas: "kopf schnell" "zahlen zahlen" "handlung handlung" "verlauf verlauf" "dran dran"; gap: 22px; }
.heute__kopf { align-self: start; padding: 8px 0; }
.heute h1 { font-size: clamp(28px,2.6vw,38px); line-height: 1.15; letter-spacing: -1.1px; max-width: 440px; }
.heute__kicker { font-size: 10px; letter-spacing: 1.6px; margin-bottom: 12px; }
.heute__gruss { font-size: 13px; margin-top: 10px; }
.heute__lage { gap: 8px; margin-top: 19px; }
.heute__lage a { font-size: 12px; max-width: 580px; }
.heute__idee { min-height: 200px; padding: 24px; border-radius: 20px; background: radial-gradient(ellipse at 95% 20%,#254763,#132940 70%); box-shadow: 0 8px 28px #0b213b14; }
.heute__idee small { font-size: 9px; letter-spacing: 1.8px; }
.heute__idee strong { font-size: 25px; }
.heute__idee-los { font-size: 11px; }
.heute__kugel { width: 135px; height: 135px; right: -24px; opacity: .9; }
.heute__zahlen { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.heute__zahl { min-height: 90px; border-radius: 15px; padding: 18px 20px; position: relative; overflow: hidden; }
.heute__zahl::after { content: ''; position: absolute; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; right: -12px; top: -12px; box-shadow: 0 0 0 9px color-mix(in srgb,var(--accent) 3%,transparent); }
.heute__zahl b { font-size: 29px; font-weight: 600; }
.heute__zahl span { font-size: 11px; }
.heute__schnell { display: flex; flex-direction: column; gap: 8px; align-self: end; padding: 0 0 8px; }
.heute__schnell a { display: flex; justify-content: flex-start; gap: 12px; padding: 13px 16px; border-radius: 12px; font-size: 12px; min-height: 45px; }
.heute__schnell a::after { content: '↗'; margin-left: auto; color: var(--muted); }
.heute__schnell a .heute-sym { width: 17px; height: 17px; }
.heute__dran-kopf h2 { font-size: 16px; }
.heute__liste { border-radius: 15px; }
.heute__liste li { padding: 15px 17px; }
.heute__liste strong { font-size: 13px; }
sistenta-wochenziel .panel { padding: 20px; }
sistenta-wochenziel .panel > p { font-size: 12px; max-width: 620px; }
sistenta-wochenziel select { max-width: 220px; }
.main-shell .bu { grid-template-columns: 210px minmax(0,1fr); gap: 26px; padding: 24px; border-radius: 20px; box-shadow: none; }
.bu__modell { min-height: 185px; }
.bu h2 { font-size: 25px; }
.bu__satz { font-size: 12px; max-width: 610px; }
.bu-orb, .bu-radar { width: 190px; height: 190px; }
.bu-kacheln { margin-top: 16px; gap: 8px; }
.bu-kachel { padding: 10px 12px; border-radius: 11px; }
.bu-kachel .bu-zahl { font-size: 23px; }
.bu-kachel span { font-size: 11px; }
.bu-dienste { grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 8px; }
.bu-dienst { padding: 10px 12px; border-radius: 11px; }
.bu-dienst--rot, .bu-dienst--gelb { grid-column: 1 / -1; }
.bu-dienst__satz { font-size: 11px; }
.bu-radar__sweep { animation-name: klar-radar; will-change: transform; }
@keyframes klar-radar { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.main-shell .ws { border-radius: 18px; }
.main-shell .ws__kopf h2 { font-size: 25px; }
.main-shell .ws__kopf p { font-size: 12px; max-width: 680px; }
.main-shell .view > [role=tabpanel] { min-width: 0; }
.main-shell .content-section-tabs { margin-block: 0 18px; }
.main-shell .bu-details { display: block; }
.main-shell .bu-details .panel { padding: 20px; }
.main-shell details.klar-details { border: 0; padding: 0; margin: 0; background: transparent; box-shadow: none; }
.main-shell details.klar-details > summary { padding: 4px 0; min-height: 36px; cursor: pointer; font-size: 13px; font-weight: 550; }
.main-shell details.klar-details > summary h2 { display: inline; font-size: 15px; margin: 0; }
.main-shell details.klar-details[open] > summary { margin-bottom: 16px; }
/* Die alten Demo-Diagnosen bleiben wie zuvor ausgeblendet. */
html[data-route=health] .view > .diagnostics-layout,
html[data-route=health] .view > .section-head,
html[data-route=health] .view > section.panel { display: none !important; }
@media(min-width:1100px) { .main-shell .bu--health { grid-template-columns: 230px minmax(0,1fr); } }
@media(max-width:1000px) and (min-width:761px) {
  .main-shell #main { padding: 22px; }
  html[data-route=home] .heute { grid-template-columns: minmax(0,1fr) minmax(230px,.8fr); }
  .heute__idee { padding: 20px; }
  .heute__kugel { width: 115px; height: 115px; right: -40px; }
}
@media(max-width:760px) {
  .main-shell #main { padding: 18px 16px calc(100px + env(safe-area-inset-bottom)); }
  .main-shell .page-head { margin-bottom: 17px; align-items: flex-start; }
  .main-shell .page-head h1 { font-size: 26px; }
  .main-shell .page-head p { font-size: 12px; }
  .main-shell .of2-reiter { width: 100%; margin-bottom: 20px; }
  .main-shell .of2-reiter button { padding: 8px 11px; min-height: 40px; font-size: 11px; }
  html[data-route=home] .heute { grid-template-columns: minmax(0,1fr); grid-template-areas: "kopf" "zahlen" "handlung" "verlauf" "dran" "schnell"; gap: 18px; }
  .heute h1 { font-size: 30px; max-width: 320px; }
  .heute__lage { margin-top: 16px; }
  .heute__zahlen { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .heute__zahl { min-height: 83px; padding: 16px; }
  .heute__idee { min-height: 145px; padding: 21px; border-radius: 18px; }
  .heute__idee strong { font-size: 23px; }
  .heute__kugel { right: 1px; width: 116px; height: 116px; }
  .heute__schnell { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 0; gap: 8px; }
  .heute__schnell a { flex-direction: column; justify-content: center; padding: 13px 5px; gap: 8px; font-size: 10px; }
  .heute__schnell a::after { display: none; }
  .main-shell .bu { grid-template-columns: minmax(0,1fr); padding: 20px; gap: 12px; }
  .bu__modell { min-height: 140px; }
  .bu-orb, .bu-radar { width: 145px; height: 145px; }
  .bu h2 { font-size: 23px; }
  .bu-kacheln { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .bu-kachel { padding: 10px 8px; }
  .bu-dienste { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .of2-leiste { padding-bottom: env(safe-area-inset-bottom); }
  .main-shell input,.main-shell select,.main-shell textarea { max-width: 100%; }
}
@media(prefers-reduced-motion:reduce) {
  html:not([data-motion=on]) .main-shell *, html:not([data-motion=on]) .main-shell *::before, html:not([data-motion=on]) .main-shell *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
