/* BRAHIMI V3.5.0: ruhige Hauptfenster, lesbare Hero-Suche und iOS-Filter. */

/* Die Ergebnisfläche muss unabhängig von der frei gewählten Hero-Farbe deckend
   und kontrastreich bleiben. Die hohe Spezifität ist absichtlich gewählt. */
body.bfz-v350-theme .bfz-v240-hero .bfz-v240-live-results[data-bfz-global-results]{
  z-index:80!important;
  isolation:isolate;
  opacity:1!important;
  color:#16233a!important;
  border:1px solid #d7e0eb!important;
  background:#fff!important;
  background-image:none!important;
  box-shadow:0 26px 64px rgba(18,39,68,.24)!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
body.bfz-v350-theme .bfz-v240-hero .bfz-v240-live-results[data-bfz-global-results] :is(h2,p,b,strong,small,span,i){
  opacity:1!important;
  color:#17243a!important;
  text-shadow:none!important;
}
body.bfz-v350-theme .bfz-v240-hero .bfz-v240-live-results[data-bfz-global-results] .bfz-v321-result-section h2{
  color:#66758b!important;
}
body.bfz-v350-theme .bfz-v240-hero .bfz-v240-live-results[data-bfz-global-results] .bfz-v321-result-row{
  color:#17243a!important;
  background:#fff!important;
}
body.bfz-v350-theme .bfz-v240-hero .bfz-v240-live-results[data-bfz-global-results] .bfz-v321-result-row small{
  color:#63738a!important;
}
body.bfz-v350-theme .bfz-v240-hero .bfz-v240-live-results[data-bfz-global-results] .bfz-v321-result-row>i{
  color:#7b899b!important;
}
body.bfz-v350-theme .bfz-v240-hero .bfz-v240-live-results[data-bfz-global-results] .bfz-v321-result-row:hover,
body.bfz-v350-theme .bfz-v240-hero .bfz-v240-live-results[data-bfz-global-results] .bfz-v321-result-row:focus-visible{
  background:#eef5fb!important;
}

/* Hauptfenster zeigen unter dem globalen Hero nur die tatsächlich benötigten
   Aktionen. Der alte zweite Titelcontainer entfällt. */
.bfz-v350-app-actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  min-height:42px;
  margin:0 0 16px;
}
.bfz-v350-main-header{
  justify-content:flex-end!important;
  min-height:42px;
  margin-bottom:16px!important;
}
.bfz-v350-main-header>div:only-child{margin-left:auto}
.module-reorder-mode .bfz-v230-app{will-change:transform,rotate}
body.bfz-v350-has-app-hero .bfz-v350-main-actions-only{
  display:flex!important;
  justify-content:flex-end!important;
  align-items:center!important;
  min-height:42px!important;
  margin:0 0 16px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
}

/* Der Speichern-Button der Darstellung braucht keine zusätzliche weiße
   schwebende Fläche. */
body.bfz-v350-theme .bfz-v240-settings-actions,
body.bfz-v350-theme .bfz-v250-settings-actions{
  position:static!important;
  margin-top:4px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}

/* Einsatzplanung: aktive Segmente bleiben lesbar und die Zeilen dürfen
   umbrechen, damit rechts kein Steuerelement abgeschnitten wird. */
body.bfz-v350-theme .dp-toolbar,
body.bfz-v350-theme .dp-filterbar{flex-wrap:wrap;overflow:visible}
body.bfz-v350-theme .dp-toolbar .dp-segment a.active,
body.bfz-v350-theme .dp-toolbar .dp-segment a.active :is(span,i){
  color:#fff!important;
  text-shadow:none!important;
}
body.bfz-v350-theme .dp-filterbar{gap:9px}
body.bfz-v350-theme .dp-search{min-width:min(300px,100%)}
body.bfz-v350-theme .dp-unplanned{white-space:nowrap}
body.bfz-v350-theme .bfz-v0313-overtime-link{max-width:100%;white-space:nowrap}

/* Die Darstellungsseite zeigt keinen verkleinerten Fantasieaufbau mehr. Der
   eigentliche App-Hero ist zugleich die Live-Vorschau und übernimmt daher
   Raster, Abstände, Suche, Schnellzugriffe, Muster und Rundungen unverändert. */
.bfz-v350-preview-stage{
  gap:10px;
  padding:16px;
}
.bfz-v350-hero-live-preview.bfz-v321-app-hero{
  margin:0;
}
.bfz-v350-hero-live-preview h2{
  margin:0;
  color:#fff;
  font-size:clamp(34px,4vw,55px);
  line-height:1.02;
  letter-spacing:-.045em;
  font-weight:780;
}
.bfz-v350-preview-search>span{
  color:rgba(255,255,255,.68);
  font-size:18px;
}
.bfz-v350-hero-live-preview .bfz-v240-shortcut{
  cursor:default;
  pointer-events:none;
}
.bfz-v350-hero-live-preview.bfz-v350-preview-shortcuts-off{
  grid-template-columns:1fr;
}

@media(max-width:1050px){
  .bfz-v350-hero-live-preview.bfz-v240-hero{grid-template-columns:1fr;min-height:0}
}

.bfz-v350-filter-switch{
  appearance:none;
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:31px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:#285a78;
  font:inherit;
  font-size:11px;
  font-weight:800;
  text-decoration:none;
  white-space:nowrap;
  cursor:pointer;
  box-shadow:none;
}
.bfz-v350-filter-switch>i{
  position:relative;
  width:51px;
  height:31px;
  flex:0 0 51px;
  border-radius:999px;
  background:var(--bfz-v270-switch-off,#e5e7eb);
  border:1px solid rgba(0,0,0,.04);
  box-shadow:inset 0 1px 2px rgba(0,0,0,.08);
  transition:background .2s ease;
}
.bfz-v350-filter-switch>i::after{
  content:"";
  position:absolute;
  top:2px;
  left:2px;
  width:27px;
  height:27px;
  border-radius:50%;
  background:var(--bfz-v270-switch-knob,#fff);
  box-shadow:0 2px 7px rgba(0,0,0,.24),0 1px 2px rgba(0,0,0,.1);
  transition:transform .2s cubic-bezier(.25,.1,.25,1);
}
.bfz-v350-filter-switch.is-active,
.bfz-v350-filter-switch[aria-checked="true"]{color:#285a78}
.bfz-v350-filter-switch.is-active>i,
.bfz-v350-filter-switch[aria-checked="true"]>i{background:var(--bfz-v270-green,#34c759)}
.bfz-v350-filter-switch.is-active>i::after,
.bfz-v350-filter-switch[aria-checked="true"]>i::after{transform:translateX(20px)}
.bfz-v350-filter-switch:focus-visible{outline:0}
.bfz-v350-filter-switch:focus-visible>i{
  outline:3px solid color-mix(in srgb,var(--bfz-v270-green,#34c759) 30%,transparent);
  outline-offset:3px;
}
.bfz-v350-filter-all{min-height:34px;border-radius:999px!important;padding-inline:14px!important}

/* Automatische Preisaktualisierung im Dialog. */
.bfz-v350-price-schedule{
  display:flex;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin:0 0 14px;
  padding:12px 14px;
  border:1px solid #cfe0eb;
  border-radius:13px;
  background:#f5fafe;
  color:#31566e;
}
.bfz-v350-price-schedule strong,.bfz-v350-price-schedule span{display:block}
.bfz-v350-price-schedule span{margin-top:3px;font-size:12px;color:#667e8e}

@media(max-width:820px){
  .bfz-v350-app-actions,.bfz-v350-main-header{justify-content:flex-start!important}
  .bfz-v350-filter-switch{flex:0 1 auto;justify-content:flex-start}
}
@media(prefers-reduced-motion:reduce){
  .bfz-v350-filter-switch>i,.bfz-v350-filter-switch>i::after{transition:none!important}
}
