/* FRONTELIER V086.738 – Studio: schmale Fenster, Tablet, Browser-Zoom.
   Reine Darstellung. Alle bestehenden Muster-, Preis- und Bestellwege bleiben erhalten.
   Die Entscheidung, ob ein alternativer Musterknopf sichtbar sein darf, trifft
   studio-sample-combo-v086736.js anhand der wirklichen CTA-Sichtbarkeit. */

/* 2-Spalten-Karte benötigt viel Platz. Schon bei mittelbreiten Displays
   eine klare Zweizeilenanordnung statt drei gequetschter Spalten. */
@media (min-width:761px) and (max-width:1360px){
 body.studio-page .fsc-pick{grid-template-columns:140px minmax(0,1fr);gap:12px 20px;align-items:center}
 body.studio-page .fsc-chips{width:140px;height:132px}
 body.studio-page .fsc-chip{width:84px;height:112px}
 body.studio-page .fsc-chip-b{left:58px}
 body.studio-page .fsc-actions{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr);gap:4px;justify-items:stretch}
 body.studio-page .fsc-actions .fsc-primary{min-width:0;width:100%;white-space:normal;font-size:14.5px;min-height:48px;padding:9px 14px}
 body.studio-page .fsc-micro{margin-top:2px}
 body.studio-page .fsc-links{justify-content:center;gap:2px 16px}
 body.studio-page .fsc-card{padding:18px 20px}
}

/* 761–1100 px: Der eigentliche Fehler im Screenshot. Das alte zweispaltige
   Studio lässt dem Küchenbild samt Musterkarte nur noch ~300–600 px.
   Zwischen iPhone-Layout und großem Desktop braucht es einen Tabletmodus. */
@media (min-width:761px) and (max-width:1100px){
 :root[data-studio-v674-view="editor"] body.studio-page .studio-layout{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;
 }
 :root[data-studio-v674-view="editor"] body.studio-page .studio-visual{
  position:relative!important;top:auto!important;z-index:2!important;
  align-self:stretch!important;min-width:0!important;
 }
 :root[data-studio-v674-view="editor"] body.studio-page .studio-controls{
  position:relative!important;top:auto!important;max-height:none!important;
  height:auto!important;overflow:visible!important;margin-top:0!important;
  min-width:0!important;align-self:stretch!important;
 }
 :root[data-studio-v674-view="editor"] body.studio-page .studio-shell{
  width:calc(100% - 30px)!important;max-width:960px!important;
 }
 body.studio-page .fsc-card{margin:12px 0;padding:20px 22px}
 body.studio-page .fsc-pick{grid-template-columns:154px minmax(0,1fr);gap:12px 22px}
 body.studio-page .fsc-chips{width:154px;height:136px}
 body.studio-page .fsc-chip-b{left:68px}
 body.studio-page .fsc-box .fsc-slots{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
 body.studio-page .fsc-box .fsc-box-foot{align-items:stretch}
 body.studio-page .fsc-order{max-width:100%}
 /* Der Muster-Dock steht unter dem Editor; Trustpilot und Fronti schweben darüber. */
 body.studio-page .fsf-dock{box-sizing:border-box;max-width:min(550px,calc(100vw - 32px));gap:10px}
 body.studio-page .fsf-dock-text small{white-space:normal}
 body.studio-page.fsf-dock-visible:not(.fsc-card-in-view) .customer-service-fab,
 body.studio-page.fsf-dock-visible:not(.fsc-card-in-view) .trustpilot-review-fab{
  bottom:calc(106px + env(safe-area-inset-bottom))!important;
 }
}

/* Enge Tablets und kleine Desktopfenster: lange Bestelltexte müssen umbrechen,
   nicht in die Service-Elemente laufen. */
@media (min-width:761px) and (max-width:900px){
 body.studio-page .fsf-dock{max-width:calc(100vw - 30px);padding:8px 10px;gap:9px}
 body.studio-page .fsf-dock-text small{display:none}
 body.studio-page .fsf-dock-cta{min-height:44px;padding:0 13px;font-size:12px}
 body.studio-page .fsc-box .fsc-slots{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* Kleine Smartphones: Textkarten bleiben untereinander und Buttons haben
   keine erzwungene Mindestbreite. Keine Berührung von Trustpilot/Fronti/Bar. */
@media (max-width:760px){
 body.studio-page .fsc-card{max-width:100%;min-width:0}
 body.studio-page .fsc-pick{grid-template-columns:48px minmax(0,1fr);gap:9px}
 body.studio-page .fsc-chips{width:48px;height:48px}
 body.studio-page .fsc-chip-b{left:20px}
 body.studio-page .fsc-mobile-names{white-space:normal;overflow-wrap:anywhere}
 body.studio-page .studio-h35-bar.fsc-bar-on{min-width:0}
 body.studio-page .studio-h35-bar.fsc-bar-on .studio-h35-bar-samples{
  min-width:0;width:100%;white-space:normal;overflow-wrap:break-word;
  padding:8px 12px;line-height:1.25;
 }
 body.studio-page .fsc-sheet{min-width:0}
 body.studio-page .fsc-sheet .fsc-slot{min-width:0}
 body.studio-page .fsc-sheet .fsc-add-suggest{min-width:0;white-space:normal;text-align:center}
}
@media(max-width:359px){
 body.studio-page .fsc-card{padding:9px 10px}
 body.studio-page .fsc-sheet{padding-left:10px;padding-right:10px}
 body.studio-page .fsc-sheet .fsc-slot{column-gap:6px;padding:8px 7px}
 body.studio-page .fsc-sheet .fsc-add-suggest{padding:0 7px;font-size:11px}
}
/* Die Kundenübersicht ist kein offener Editor: kein schwebender Editor-Dock. */
:root[data-studio-v674-view="overview"] body.studio-page .fsf-dock{display:none!important}
