/* FEUERwetter.de 4.0 – klare Einsatzhierarchie und progressive Fachdetails */
:root{
  --fw-focus:#1d4ed8;
  --fw-ink:#0f172a;
  --fw-muted:#64748b;
  --fw-line:#dbe7f3;
  --fw-surface:#fff;
  --fw-soft:#f8fafc;
}

.fw-hidden{display:none!important}

.fw-start-panel{
  margin:12px 0;
  padding:clamp(20px,3vw,36px);
  border:1px solid #bfdbfe;
  border-radius:24px;
  background:
    radial-gradient(circle at 90% 12%,rgba(249,115,22,.18),transparent 27%),
    linear-gradient(135deg,#eff6ff 0%,#fff 52%,#fff7ed 100%);
  box-shadow:0 18px 44px rgba(15,23,42,.09);
}
.fw-start-copy{max-width:780px}
.fw-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.fw-start-copy h2{margin:5px 0 10px;color:var(--fw-ink);font-size:clamp(28px,4vw,48px);line-height:1.04;letter-spacing:-.035em}
.fw-start-copy p{max-width:720px;margin:0;color:#334155;font-size:clamp(16px,1.5vw,20px);font-weight:700;line-height:1.48}
.fw-start-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.fw-start-actions button{
  min-height:50px;padding:12px 18px;border:1px solid #cbd5e1;border-radius:14px;background:#fff;color:#1e3a8a;
  font:900 15px/1.2 system-ui;cursor:pointer;box-shadow:0 7px 20px rgba(15,23,42,.08)
}
.fw-start-actions .fw-start-primary{border-color:#1d4ed8;background:#1d4ed8;color:#fff}
.fw-start-actions button:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}
.fw-start-actions button:focus-visible,.fw-view-switch button:focus-visible,.fw-location-admin summary:focus-visible{
  outline:3px solid #f59e0b;outline-offset:3px
}
.fw-start-benefits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:22px}
.fw-start-benefits span{padding:13px 14px;border:1px solid rgba(148,163,184,.3);border-radius:14px;background:rgba(255,255,255,.72);color:#475569;font-size:13px;font-weight:700}
.fw-start-benefits strong{display:block;margin-bottom:3px;color:var(--fw-ink);font-size:14px}

.fw-location-admin{margin:10px 0;border:1px solid var(--fw-line);border-radius:16px;background:#fff;box-shadow:0 7px 20px rgba(15,23,42,.05)}
.fw-location-admin>summary{display:flex;align-items:center;gap:10px;min-height:50px;padding:10px 15px;color:#1e3a8a;font-weight:900;cursor:pointer;list-style:none}
.fw-location-admin>summary::-webkit-details-marker{display:none}
.fw-location-admin>summary::before{content:"›";font-size:24px;line-height:1;transition:transform .16s ease}
.fw-location-admin[open]>summary::before{transform:rotate(90deg)}
.fw-location-admin-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%}
.fw-location-admin-summary small{color:var(--fw-muted);font-weight:750}
.fw-location-admin-content{padding:0 10px 10px}
.fw-location-admin-content>.fw-watchlist-toolbar{margin-top:0}
.fw-persistent-risk-card{
  display:grid!important;
  gap:4px;
  width:100%;
  min-height:72px;
  margin:10px 0;
  padding:13px 15px!important;
  border-left:5px solid #f59e0b!important
}
.fw-persistent-risk-card>span{font-weight:850}
.fw-persistent-risk-card>strong{font-size:clamp(17px,2vw,22px)}

html.fw-has-location .fw-start-panel{display:none}
html.fw-no-location .fw-location-admin,
html.fw-no-location .fw-view-switch,
html.fw-no-location .fw-tab-nav,
html.fw-no-location .fw-tabbed-content,
html.fw-no-location .fw-mobile-bottom-nav{display:none!important}

.fw-view-switch{
  display:grid;grid-template-columns:minmax(220px,1fr) auto auto;align-items:center;gap:7px;
  margin:12px 0;padding:9px;border:1px solid #bfdbfe;border-radius:16px;
  background:linear-gradient(135deg,#f8fbff,#eff6ff);box-shadow:0 7px 20px rgba(15,23,42,.06)
}
.fw-view-switch>span{display:grid;gap:2px;min-width:0;padding:0 7px;color:var(--fw-muted)}
.fw-view-switch>span strong{color:#1e3a8a;font-size:13px;font-weight:950;text-transform:uppercase;letter-spacing:.055em}
.fw-view-switch>span small{font-size:12px;font-weight:700;line-height:1.25}
.fw-view-switch button{
  min-width:142px;min-height:44px;padding:9px 15px;border:1px solid #bfdbfe;border-radius:11px;
  background:#fff;color:#1e3a8a;font-weight:900;cursor:pointer
}
.fw-view-switch button.is-active{border-color:#1d4ed8;background:#1d4ed8;color:#fff;box-shadow:0 6px 16px rgba(29,78,216,.2)}
.fw-widget.fw-quick-view .fw-view-expert-only{display:none!important}
.fw-widget.fw-expert-view .fw-tab-panel-tools .fw-tool-card.fw-tool-collapsed{display:block!important}

.fw-tab-panel-lage.is-active{display:grid!important;gap:12px}
.fw-tab-panel-lage>.fw-operational-brief{order:1;margin:0}
.fw-tab-panel-lage>.fw-priority-row{order:2}
.fw-tab-panel-lage>.fw-status-grid{order:3}
.fw-tab-panel-lage>.fw-info-row:not(.fw-priority-row){order:4}
.fw-tab-panel-lage>.fw-region-panel{order:5}
.fw-tab-panel-lage>.fw-lage-intro{order:20}
.fw-tab-panel-lage>.fw-lage-export-row{order:21}
.fw-tab-panel-lage>*{min-width:0}

.fw-widget.fw-quick-view .fw-tab-panel-lage>.fw-status-grid,
.fw-widget.fw-quick-view .fw-tab-panel-lage>.fw-info-row:not(.fw-priority-row),
.fw-widget.fw-quick-view .fw-tab-panel-lage>.fw-region-panel{display:none!important}
.fw-dashboard-active.fw-quick-view .fw-tab-panel-lage>.fw-status-grid{display:grid!important}
.fw-dashboard-active .fw-tab-panel-lage.is-active{display:block!important}
.fw-widget.fw-quick-view .fw-mini[data-info-card]::after,
.fw-widget.fw-quick-view .fw-info-tile[data-info-card]::after,
.fw-widget.fw-quick-view .fw-value[data-info-card]::after{display:none!important}

.fw-fwwi-weight-table td:nth-child(3){font-weight:900;white-space:nowrap}
.fw-fwwi-weight-table td small{display:block;margin-top:4px;color:#64748b;font-size:11px;line-height:1.3}
.fw-fwwi-weight-table .is-missing td{color:#64748b;background:#f1f5f9!important}
.fw-formula-box{margin-top:20px;padding:16px;border:1px solid #c4b5fd;border-radius:16px;background:linear-gradient(145deg,#faf5ff,#f8fafc)}
.fw-formula-box h3{margin-top:0!important;color:#581c87!important}
.fw-formula-current{margin-top:10px}
.fw-formula-current>strong{display:block;margin-bottom:7px;color:#581c87;font-size:14px}
.fw-formula{overflow-wrap:anywhere;padding:12px;border:1px solid #ddd6fe;border-radius:12px;background:#fff;color:#3b0764;font:800 14px/1.65 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}
.fw-formula-box p{margin:9px 0 0!important;font-size:13px!important}
.fw-formula-note{color:#64748b!important}

.fw-connectivity-banner{min-height:38px!important;padding:5px 12px!important}
.fw-connectivity-actions{display:flex;gap:7px}
.fw-connectivity-banner button{min-height:30px!important;padding:5px 10px!important;border-width:1px!important}
#fw-app-update-dismiss{background:transparent!important;color:#fff!important}

.fw-header{overflow:visible}
.fw-logo-area{min-width:0}
.fw-subtitle{max-width:100%}
.fw-header-clock{font-variant-numeric:tabular-nums}

@media (min-width:761px){
  .fw-header{grid-template-columns:minmax(280px,1fr) auto minmax(350px,1fr)!important}
  .fw-logo-area{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;grid-template-areas:"logo subtitle" "logo date"!important;align-items:center!important;column-gap:14px!important}
  .fw-logo{grid-area:logo!important}
  .fw-subtitle{grid-area:subtitle!important;position:static!important;margin:0!important;white-space:normal!important}
  .fw-header-date{grid-area:date!important;position:static!important;text-align:left!important}
}

@media(max-width:760px){
  body{padding-bottom:82px}
  .fw-connectivity-banner{position:sticky!important;align-items:center!important;flex-direction:row!important;justify-content:space-between!important;text-align:left!important}
  .fw-connectivity-banner>span{font-size:11px}
  .fw-connectivity-actions{flex:0 0 auto}
  .fw-connectivity-banner button{width:auto!important;font-size:11px!important}
  #fw-app-update-dismiss{padding-inline:7px!important}

  .fw-header{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:"brand help" "clock clock" "risk risk" "menu menu" "actions actions"!important;
    gap:8px!important;padding:12px!important
  }
  .fw-logo-area{grid-area:brand!important;display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;grid-template-areas:"logo date"!important;align-items:center!important;gap:8px!important}
  .fw-logo{grid-area:logo!important;width:132px!important;max-width:132px!important}
  .fw-header-date{grid-area:date!important;position:static!important;font-size:12px!important;line-height:1.15!important;text-align:left!important}
  .fw-header-clock{grid-area:clock!important;position:static!important;justify-self:start!important;font-size:clamp(34px,11vw,48px)!important;line-height:1!important;text-align:left!important}
  .fw-help-compact{grid-area:help!important;position:static!important;justify-self:end!important;width:42px!important;height:42px!important}
  .fw-mobile-menu-toggle{grid-area:menu!important;justify-self:stretch!important;width:100%!important}
  .fw-header-primary-actions:not(.is-open){grid-area:risk!important;margin:0!important}
  .fw-header-primary-actions.is-open{grid-area:actions!important;margin:0!important}

  .fw-start-panel{margin:8px 0;padding:20px 16px;border-radius:20px}
  .fw-start-copy h2{font-size:31px}
  .fw-start-copy p{font-size:15px}
  .fw-start-actions{display:grid;grid-template-columns:1fr;margin-top:16px}
  .fw-start-actions button{width:100%;min-height:48px}
  .fw-start-benefits{grid-template-columns:1fr;gap:7px;margin-top:16px}

  .fw-location-admin-summary{display:grid;gap:2px}
  .fw-location-admin-summary small{font-size:11px}
  .fw-location-admin-content{padding:0 7px 7px}
  .fw-view-switch{grid-template-columns:1fr 1fr;margin-top:8px}
  .fw-view-switch>span{grid-column:1/-1;padding:2px 5px 5px}
  .fw-view-switch button{min-width:0;width:100%}
  .fw-tab-nav{position:sticky;top:0;z-index:150}
  .fw-operational-brief{padding:14px!important}
  .fw-formula-box{padding:13px}
  .fw-formula{font-size:12px;line-height:1.6}
}

@media(prefers-reduced-motion:reduce){
  .fw-location-admin>summary::before{transition:none}
  *,*::before,*::after{scroll-behavior:auto!important}
}

/* Version 4: Dashboard lesbar statt auf eine Bildschirmhöhe zusammengepresst */
.fw-command-dashboard{
  overflow:auto!important;
  line-height:1.4;
  scrollbar-gutter:stable
}
.fw-command-dashboard .fw-db-header{
  position:sticky!important;
  top:0!important;
  min-height:88px!important;
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
  grid-template-columns:minmax(280px,1fr) auto minmax(360px,1fr)!important;
  gap:18px!important;
  padding:12px clamp(16px,2vw,30px)!important
}
.fw-command-dashboard .fw-db-logo{width:64px!important;max-height:64px!important}
.fw-command-dashboard .fw-db-brand b{font-size:clamp(23px,2vw,34px)!important;line-height:1!important}
.fw-command-dashboard .fw-db-brand span{font-size:13px!important;line-height:1.3!important}
.fw-command-dashboard .fw-db-timegroup span{display:block!important;font-size:14px!important;line-height:1.2!important}
.fw-command-dashboard .fw-db-timegroup strong{font-size:clamp(34px,3.6vw,54px)!important;line-height:1!important}
.fw-command-dashboard .fw-db-timegroup small{display:block!important;font-size:12px!important;line-height:1.25!important}
.fw-command-dashboard .fw-db-actions{grid-template-columns:minmax(180px,1fr) auto auto auto!important;gap:8px!important}
.fw-command-dashboard .fw-db-refresh,
.fw-command-dashboard .fw-db-actions button{
  display:flex!important;align-items:center!important;justify-content:center!important;
  min-height:44px!important;padding:9px 12px!important;border-radius:11px!important;
  font-size:13px!important;line-height:1.2!important
}

.fw-command-dashboard .fw-db-main{
  width:min(1520px,100%)!important;
  height:auto!important;
  min-height:calc(100dvh - 88px)!important;
  padding:clamp(14px,2vw,28px)!important;
  gap:16px!important;
  overflow:visible!important;
  grid-template-rows:none!important
}
.fw-command-dashboard .fw-db-assessment,
.fw-command-dashboard .fw-db-command,
.fw-command-dashboard .fw-db-timeline-panel,
.fw-command-dashboard .fw-db-metrics,
.fw-command-dashboard .fw-db-additional,
.fw-command-dashboard .fw-db-rotation{min-height:0!important;overflow:visible!important}
.fw-command-dashboard .fw-db-assessment{grid-template-columns:minmax(0,1fr) minmax(300px,32%)!important;gap:12px!important}
.fw-command-dashboard .fw-db-assessment>div,
.fw-command-dashboard .fw-db-data-state{padding:18px 20px!important;border-radius:15px!important}
.fw-command-dashboard .fw-db-kicker,
.fw-command-dashboard .fw-db-data-state strong{display:block!important;font-size:11px!important}
.fw-command-dashboard .fw-db-assessment h1{margin:5px 0 7px!important;font-size:clamp(28px,3vw,46px)!important;line-height:1.04!important}
.fw-command-dashboard .fw-db-assessment p{
  display:block!important;margin:0!important;font-size:clamp(15px,1.15vw,18px)!important;
  line-height:1.45!important;overflow:visible!important
}
.fw-command-dashboard .fw-db-data-state span{font-size:clamp(19px,1.6vw,25px)!important;line-height:1.15!important}
.fw-command-dashboard .fw-db-data-state small{display:block!important;font-size:12px!important;line-height:1.4!important}

.fw-command-dashboard .fw-db-command{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
.fw-command-dashboard .fw-db-command-ampel{grid-column:auto!important}
.fw-command-dashboard .fw-db-command button{
  min-height:112px!important;height:auto!important;padding:14px 15px!important;
  border-radius:14px!important;overflow:visible!important
}
.fw-command-dashboard .fw-db-command button>span{display:block!important;font-size:10px!important}
.fw-command-dashboard .fw-db-command button>strong{
  display:block!important;margin-top:6px!important;font-size:clamp(15px,1.1vw,18px)!important;
  line-height:1.28!important;overflow:visible!important
}
.fw-command-dashboard .fw-db-command button>small{
  display:block!important;margin-top:6px!important;font-size:12px!important;line-height:1.35!important;overflow:visible!important
}
.fw-command-dashboard .fw-db-command-ampel strong i{display:grid!important;width:32px!important;height:32px!important;font-size:14px!important}

.fw-command-dashboard .fw-db-timeline-panel{padding:14px!important;border-radius:15px!important}
.fw-command-dashboard .fw-db-timeline-panel>.fw-db-section-head{display:flex!important;margin-bottom:10px!important}
.fw-command-dashboard .fw-db-section-head span{display:block!important;font-size:10px!important}
.fw-command-dashboard .fw-db-section-head strong{font-size:19px!important}
.fw-command-dashboard .fw-db-timeline{display:grid!important;grid-template-columns:repeat(9,minmax(118px,1fr))!important;gap:6px!important;overflow-x:auto!important;padding:2px 2px 7px!important}
.fw-command-dashboard .fw-db-timeline>button:nth-child(n){display:grid!important}
.fw-command-dashboard .fw-db-timeline>button{min-height:78px!important;padding:8px!important;border-radius:10px!important}
.fw-command-dashboard .fw-db-timeline>button span{display:block!important;font-size:10px!important}
.fw-command-dashboard .fw-db-timeline>button i,
.fw-command-dashboard .fw-db-timeline>button strong{font-size:12px!important}
.fw-command-dashboard .fw-db-timeline>button small{display:block!important;font-size:10px!important}
.fw-command-dashboard .fw-db-compare{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important;margin-top:8px!important}
.fw-command-dashboard .fw-db-compare button{min-height:62px!important;padding:8px 10px!important}
.fw-command-dashboard .fw-db-compare span{display:block!important;font-size:9px!important}
.fw-command-dashboard .fw-db-compare strong{font-size:12px!important;line-height:1.25!important}

.fw-command-dashboard .fw-db-metrics{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}
.fw-command-dashboard .fw-db-metric{
  min-height:244px!important;height:auto!important;padding:16px!important;gap:9px!important;
  border-radius:15px!important;overflow:visible!important
}
.fw-command-dashboard .fw-db-icon{width:42px!important;height:42px!important;font-size:20px!important;border-radius:10px!important}
.fw-command-dashboard .fw-db-metric h2{display:block!important;font-size:17px!important;line-height:1.2!important}
.fw-command-dashboard .fw-db-ampel{display:inline-flex!important;padding:5px 8px!important;font-size:10px!important}
.fw-command-dashboard .fw-db-value strong{font-size:clamp(40px,4vw,62px)!important;line-height:1!important}
.fw-command-dashboard .fw-db-value span{font-size:20px!important}
.fw-command-dashboard .fw-db-interpretation{display:block!important;font-size:14px!important;line-height:1.4!important;overflow:visible!important}
.fw-command-dashboard .fw-db-metric dl{display:grid!important;gap:6px!important;overflow:visible!important}
.fw-command-dashboard .fw-db-metric dl>div:nth-child(n){display:flex!important;padding-top:6px!important;font-size:12px!important;line-height:1.3!important}
.fw-command-dashboard .fw-db-trend{display:block!important;font-size:11px!important;white-space:normal!important;overflow:visible!important}

.fw-command-dashboard .fw-db-additional{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important}
.fw-command-dashboard .fw-db-info{min-height:112px!important;height:auto!important;padding:13px 14px!important;border-radius:13px!important;overflow:visible!important}
.fw-command-dashboard .fw-db-info span{display:block!important;font-size:10px!important}
.fw-command-dashboard .fw-db-info strong{font-size:15px!important;line-height:1.3!important;white-space:normal!important;overflow:visible!important}
.fw-command-dashboard .fw-db-info small{display:block!important;font-size:11px!important;line-height:1.35!important;white-space:normal!important;overflow:visible!important}

.fw-command-dashboard .fw-db-rotation{min-height:160px!important;padding:14px!important;border-radius:15px!important}
.fw-command-dashboard .fw-db-rotation .fw-db-section-head{display:flex!important;margin-bottom:10px!important}
.fw-command-dashboard .fw-db-tabs button{width:38px!important;height:38px!important;font-size:13px!important;border-radius:9px!important}
.fw-command-dashboard .fw-db-page{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important}
.fw-command-dashboard .fw-db-card{
  min-height:110px!important;height:auto!important;padding:12px 14px!important;
  border-radius:12px!important;overflow:visible!important
}
.fw-command-dashboard .fw-db-card>span{display:block!important;font-size:10px!important}
.fw-command-dashboard .fw-db-card>strong{
  display:block!important;margin-top:6px!important;font-size:17px!important;line-height:1.25!important;overflow:visible!important
}
.fw-command-dashboard .fw-db-card>small{
  display:block!important;margin-top:5px!important;font-size:11px!important;line-height:1.35!important;overflow:visible!important
}
.fw-command-dashboard .fw-db-progress{height:4px!important;margin-top:10px!important}

@media(max-width:1180px){
  .fw-command-dashboard .fw-db-header{grid-template-columns:1fr auto!important}
  .fw-command-dashboard .fw-db-timegroup{grid-column:1/-1;grid-row:2;text-align:left!important;padding:0!important}
  .fw-command-dashboard .fw-db-actions{grid-template-columns:minmax(160px,1fr) auto auto auto!important}
  .fw-command-dashboard .fw-db-command,
  .fw-command-dashboard .fw-db-metrics,
  .fw-command-dashboard .fw-db-additional,
  .fw-command-dashboard .fw-db-page{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:700px){
  .fw-command-dashboard .fw-db-header{position:relative!important;grid-template-columns:1fr!important}
  .fw-command-dashboard .fw-db-brand{grid-column:1}
  .fw-command-dashboard .fw-db-timegroup{grid-column:1;grid-row:auto}
  .fw-command-dashboard .fw-db-actions{grid-template-columns:1fr 1fr!important}
  .fw-command-dashboard .fw-db-refresh{grid-column:1/-1}
  .fw-command-dashboard .fw-db-actions button{width:100%!important}
  .fw-command-dashboard .fw-db-assessment,
  .fw-command-dashboard .fw-db-command,
  .fw-command-dashboard .fw-db-metrics,
  .fw-command-dashboard .fw-db-additional,
  .fw-command-dashboard .fw-db-page,
  .fw-command-dashboard .fw-db-compare{grid-template-columns:1fr!important}
  .fw-command-dashboard .fw-db-timeline{grid-auto-flow:column!important;grid-template-columns:none!important;grid-auto-columns:minmax(128px,44vw)!important}
  .fw-command-dashboard .fw-db-metric{min-height:220px!important}
  .fw-command-dashboard .fw-db-detail-table dl,
  .fw-command-dashboard .fw-db-detail-values{grid-template-columns:1fr!important}
}
