/* =====================================================================
   JP Studio – Apple-Look (heller Modus, Glas-Effekt)
   Gestaltungsschicht über editor.css / home.css / portal-studio.css.
   Nur Optik, keine Funktionen. Wird in home.html, index.html, email.html,
   video.html und webseite.html als letztes Stylesheet geladen.
   Apple-Regeln (siehe dist/apple-look.css, Kopf): Glas nur für Leisten, Seitenfenster,
   Werkzeugleisten, Menüs und Fenster – Karten und Kacheln bleiben deckend.
   ===================================================================== */

:root{
  --ink:#1d1d1f; --ink-2:#2c2c30; --muted:#6e6e73; --icon-col:#515158;
  --line:#e4e4e9; --bg:#f4f5f8; --nav-active-bg:rgba(27,45,91,.10);
  --ap-glass:rgba(255,255,255,.62);
  --ap-glass-2:rgba(255,255,255,.80);
  --ap-blur:blur(26px) saturate(190%);
  --ap-hair:rgba(0,0,0,.065);
  --ap-shadow:0 1px 2px rgba(16,24,40,.04),0 10px 30px rgba(16,24,40,.07);
  --ap-shadow-lg:0 2px 6px rgba(16,24,40,.05),0 24px 60px rgba(16,24,40,.14);
  /* Glas-Werte des Editors angleichen */
  --glass-bg:rgba(255,255,255,.64);
  --glass-border:rgba(255,255,255,.78);
  --glass-shadow:0 1px 2px rgba(16,24,40,.04),0 12px 34px rgba(16,24,40,.09),inset 0 1px 0 rgba(255,255,255,.92);
  --glass-blur:blur(26px) saturate(190%);
}
html,body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
*{scrollbar-width:thin;scrollbar-color:rgba(0,0,0,.22) transparent}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(27,45,91,.38);outline-offset:3px}

/* =================== Startseite (home.html) =================== */
html,body{background:#f4f5f8}
.hm-side{background:rgba(255,255,255,.78)!important;-webkit-backdrop-filter:var(--ap-blur);backdrop-filter:var(--ap-blur);
  border-right:1px solid var(--ap-hair)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}
.hm-nav button{border-radius:12px;color:#3a3a3c;font-weight:500}
.hm-nav button:hover{background:rgba(0,0,0,.05);color:var(--ink)}
.hm-nav button.active{background:rgba(27,45,91,.10);color:var(--primary);font-weight:600}
.hm-nav .badge{border-radius:999px}
.hm-customer select,.hm-customer .fixed{border-radius:12px;background:rgba(255,255,255,.8);border-color:rgba(0,0,0,.1)}
.hm-role{border-radius:999px;border-color:rgba(0,0,0,.1)}

/* Kopf oben: schwebendes Glas (auf Unterseiten) */
.hm-top{background:rgba(255,255,255,.66)!important;-webkit-backdrop-filter:var(--ap-blur)!important;backdrop-filter:var(--ap-blur)!important;border-bottom:0}
.hm-top::after{content:"";position:absolute;left:0;right:0;top:100%;height:22px;pointer-events:none;
  background:linear-gradient(180deg,rgba(244,245,248,.92),rgba(244,245,248,0))}
html.ps-startkopf .hm-top::after{display:none}
.hm-crumb{color:var(--muted)}
.hm-crumb b{color:var(--ink);font-weight:600}
.hm-search{border-radius:999px;background:rgba(255,255,255,.86);border:1px solid rgba(0,0,0,.1);box-shadow:none}
.hm-search:focus-within{border-color:var(--primary);box-shadow:0 0 0 4px rgba(27,45,91,.14)}
.hm-head h1{color:var(--ink);letter-spacing:-.035em}
.hm-eyebrow{color:var(--gold)}
.hm h2{color:var(--ink);letter-spacing:-.02em}

/* Start-Kopf: der Farbverlauf Dunkelblau → Gold bleibt (Johannes' Wunsch vom 18.10.). Nur die Bedienelemente darauf
   werden Glas: Suche als Kapsel, Knöpfe als Kapseln (Apple: „clear“-Glas über farbigen Flächen, Text bleibt weiß). */
html.ps-startkopf .hm-top{background:transparent!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;border-bottom:0}
html.ps-startkopf .hm-head .hm-search{background:rgba(255,255,255,.82);-webkit-backdrop-filter:var(--ap-blur);backdrop-filter:var(--ap-blur);
  border:1px solid rgba(255,255,255,.85);box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 8px 24px rgba(11,20,48,.22);border-radius:999px;padding:0 18px}
html.ps-startkopf .hm-head .hm-search:focus-within{background:#fff;box-shadow:0 0 0 4px rgba(255,255,255,.35),0 8px 24px rgba(11,20,48,.2)}
html.ps-startkopf .hm-top #newBtn{background:rgba(255,255,255,.92);color:#16264d;border:0;border-radius:999px;font-weight:600;
  box-shadow:inset 0 1px 0 #fff,0 6px 18px rgba(11,20,48,.22)}
html.ps-startkopf .hm-top #newBtn:hover{background:#fff}
html.ps-startkopf .hm-top .st-helpbtn,html.ps-startkopf .hm-top .hm-newbtn:not(#newBtn){background:rgba(255,255,255,.18)!important;color:#fff!important;
  border:1px solid rgba(255,255,255,.35);border-radius:999px;-webkit-backdrop-filter:blur(14px) saturate(160%);backdrop-filter:blur(14px) saturate(160%)}
html.ps-startkopf .hm-top .st-helpbtn:hover,html.ps-startkopf .hm-top .hm-newbtn:not(#newBtn):hover{background:rgba(255,255,255,.3)!important}
.hm-newbtn,#newBtn{border-radius:999px}

/* Karten und Kacheln */
.hm-card{border-radius:20px;border-color:var(--ap-hair);background:#fff;box-shadow:var(--ap-shadow)}
.hm-card:hover{border-color:var(--ap-hair);box-shadow:0 2px 6px rgba(16,24,40,.05),0 18px 40px rgba(16,24,40,.11);transform:translateY(-2px)}
.hm-thumb{background:rgba(0,0,0,.03)}
.hm-boxcard,.hm-box,.hm-formats-card{border-radius:22px;border-color:var(--ap-hair);background:#fff;box-shadow:var(--ap-shadow)}
/* Kacheln in der Karte: Rundung konzentrisch zur Karte (22 px − 6 px Abstand) */
.hm-formats.light .hm-format{border-radius:16px;background:#f6f7fa;border-color:var(--ap-hair)}
.hm-formats.light .hm-format:hover{background:#fff;border-color:rgba(27,45,91,.2);box-shadow:var(--ap-shadow);transform:translateY(-2px)}
.hm-format{transition:transform .2s cubic-bezier(.2,.8,.2,1),box-shadow .2s,background .2s}
.hm-hero{border-radius:24px;box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 20px 50px rgba(22,38,77,.26)}
.hm-bottomnav{left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom,0px));border-radius:26px;border:1px solid rgba(255,255,255,.75);
  background:var(--ap-glass-2);-webkit-backdrop-filter:var(--ap-blur);backdrop-filter:var(--ap-blur);box-shadow:var(--ap-shadow-lg)}

/* =================== Editor (index.html) =================== */
.ed-main{background:
  radial-gradient(900px 620px at 6% -8%,rgba(27,45,91,.10),transparent 62%),
  radial-gradient(820px 560px at 102% -2%,rgba(176,127,60,.12),transparent 60%),
  linear-gradient(135deg,#f6f7fa 0%,#eef1f6 100%)}

/* Kopfleiste: hell und gläsern statt Dunkelblau → Gold */
.ed-top,.ed-top:has(#docTitle),.ed-top.vd-top,.ed-top.wb-top,.ed-top.eb-top{
  background:var(--ap-glass-2)!important;color:var(--ink)!important;
  -webkit-backdrop-filter:var(--ap-blur);backdrop-filter:var(--ap-blur);
  border-bottom:1px solid var(--ap-hair)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.9)!important;position:relative;z-index:40}
.ed-top .ed-brand img,.ed-top:has(#docTitle) .ed-brand img{background:transparent;box-shadow:none;padding:0}
.ed-top .ed-brand span,.ed-top:has(#docTitle) .ed-brand span{color:var(--muted);border-left-color:rgba(0,0,0,.15)}
.ed-top .ed-topbtn,.ed-top .ed-iconbtn,.ed-top #btnMore,.ed-top .ed-homebtn,
.ed-top:has(#docTitle) .ed-topbtn,.ed-top:has(#docTitle) .ed-iconbtn,.ed-top:has(#docTitle) #btnMore,.ed-top:has(#docTitle) .ed-homebtn,
.vd-top .ed-iconbtn,.wb-top .ed-iconbtn{color:var(--ink);border-radius:10px}
.ed-top .ed-topbtn:hover,.ed-top .ed-iconbtn:hover,.ed-top .ed-homebtn:hover,
.ed-top:has(#docTitle) .ed-topbtn:hover,.ed-top:has(#docTitle) .ed-iconbtn:hover,.ed-top:has(#docTitle) .ed-homebtn:hover,
.vd-top .ed-iconbtn:hover,.wb-top .ed-iconbtn:hover{background:rgba(0,0,0,.06)}
.ed-top .ed-iconbtn:disabled,.ed-top:has(#docTitle) .ed-iconbtn:disabled,.vd-top .ed-iconbtn:disabled{color:rgba(0,0,0,.28)}
.ed-top .ed-sep,.ed-top:has(#docTitle) .ed-sep{background:rgba(0,0,0,.12)}
.ed-top .ed-save,.ed-top:has(#docTitle) .ed-save{color:var(--muted)}
.ed-top .ed-title,.ed-top:has(#docTitle) .ed-title,.vd-top .ed-title.vd-title{color:var(--ink);font-weight:600;border-radius:10px}
.ed-top .ed-title:hover,.ed-top:has(#docTitle) .ed-title:hover,.vd-top .ed-title.vd-title:hover{border-color:rgba(0,0,0,.14)}
.ed-top .ed-title:focus,.ed-top:has(#docTitle) .ed-title:focus,.vd-top .ed-title.vd-title:focus{background:rgba(255,255,255,.9);border-color:var(--primary);color:var(--ink);box-shadow:0 0 0 4px rgba(27,45,91,.14)}
.ed-top .ed-chip,.ed-top:has(#docTitle) .ed-chip{color:var(--ink);background:rgba(0,0,0,.06);border-color:transparent;border-radius:999px;font-weight:600}
.ed-top .ed-sendbtn,.ed-top:has(#docTitle) .ed-sendbtn{background:rgba(120,120,128,.14);color:var(--ink);border:0;border-radius:999px;font-weight:600}
.ed-top .ed-sendbtn:hover,.ed-top:has(#docTitle) .ed-sendbtn:hover{background:rgba(120,120,128,.22)}
.wb-top .ed-ghost,.eb-topbtn{background:rgba(120,120,128,.14);border:0;color:var(--ink);border-radius:999px}
.wb-top .ed-ghost:hover,.eb-topbtn:hover{background:rgba(120,120,128,.22)}
.ps-railav{box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 2px 6px rgba(22,38,77,.2)}

/* Hauptknöpfe als Kapseln */
.ed-primary,.wb-top .ed-primary{border-radius:999px;background:linear-gradient(180deg,#24407a,#16264d);color:#fff;font-weight:600;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 1px 2px rgba(16,24,40,.12),0 8px 20px rgba(22,38,77,.22);transition:filter .18s,transform .18s}
.ed-primary:hover,.wb-top .ed-primary:hover{background:linear-gradient(180deg,#24407a,#16264d);filter:brightness(1.08)}
.ed-primary:active{transform:scale(.985)}
.ed-primary.vd-danger{background:linear-gradient(180deg,#c4512a,#a83f1c)}
.ed-ghost{border-radius:999px;background:rgba(120,120,128,.12);border:0;color:var(--ink)}
.ed-ghost:hover{background:rgba(120,120,128,.2)}

/* Linke Leiste, Seitenfenster, Kontext- und Fußleiste: Glas-Kapseln (Werte oben in --glass-*) */
.ed-rail{border-radius:22px}
.ed-railbtn{border-radius:14px;color:#3a3a3c}
.ed-railbtn:hover{background:rgba(0,0,0,.05)}
.ed-railbtn.active{background:rgba(27,45,91,.10);color:var(--primary);box-shadow:none}
.ed-railbtn .soon{border-radius:999px}
.ed-panel{border-radius:22px;background:rgba(255,255,255,.84)}
.ed-panel-toggle{border-radius:0 10px 10px 0;background:rgba(255,255,255,.9)}
.ed-ctx{border-radius:16px;background:var(--ap-glass-2);-webkit-backdrop-filter:var(--ap-blur);backdrop-filter:var(--ap-blur);
  border:1px solid rgba(255,255,255,.8);box-shadow:var(--ap-shadow-lg)}
.ed-ctx button{border-radius:10px}
.ed-pagestrip{border-radius:22px}
.ed-foot{border-radius:999px}
.ed-pthumb{border-radius:8px}

/* Schwebende Werkzeugleiste am Element: helles Glas statt Dunkelblau */
.ed-float{background:var(--ap-glass-2);-webkit-backdrop-filter:var(--ap-blur);backdrop-filter:var(--ap-blur);
  border:1px solid rgba(255,255,255,.8);border-radius:14px;box-shadow:var(--ap-shadow-lg)}
.ed-float button{color:var(--ink);border-radius:9px}
.ed-float button:hover{background:rgba(0,0,0,.06)}

button:not(:disabled):active{transform:scale(.985)}

/* Fenster, Menüs, Hinweise */
.ed-modal{background:rgba(20,24,40,.32);-webkit-backdrop-filter:blur(12px) saturate(120%);backdrop-filter:blur(12px) saturate(120%)}
.ed-dialog{border-radius:24px;background:rgba(255,255,255,.9);border:1px solid rgba(255,255,255,.75);
  -webkit-backdrop-filter:blur(30px) saturate(180%);backdrop-filter:blur(30px) saturate(180%);box-shadow:var(--ap-shadow-lg)}
.ed-pop{border-radius:16px;background:rgba(255,255,255,.88);border:1px solid rgba(255,255,255,.75);
  -webkit-backdrop-filter:var(--ap-blur);backdrop-filter:var(--ap-blur);box-shadow:var(--ap-shadow-lg)}
.ed-toast{background:rgba(29,29,31,.84);-webkit-backdrop-filter:blur(22px) saturate(160%);backdrop-filter:blur(22px) saturate(160%);
  border:1px solid rgba(255,255,255,.12);border-radius:16px;box-shadow:0 20px 50px rgba(0,0,0,.28)}
.ps-busy,.ps-openbadge{background:rgba(29,29,31,.84);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border:1px solid rgba(255,255,255,.12)}
.ps-notice,.ps-error{border-radius:18px;background:rgba(255,255,255,.9);-webkit-backdrop-filter:var(--ap-blur);backdrop-filter:var(--ap-blur)}
.ps-notice button,.ps-error button{border-radius:999px}
.ps-viewbusy{border-radius:18px;background:rgba(255,255,255,.7);border-color:var(--ap-hair)}

/* Eingabefelder im Studio */
.ed-panel input[type=text],.ed-panel input[type=search],.ed-panel input[type=number],.ed-panel select,.ed-panel textarea,
.ed-dialog input[type=text],.ed-dialog input[type=search],.ed-dialog input[type=number],.ed-dialog select,.ed-dialog textarea{
  border-radius:12px;border:1px solid rgba(0,0,0,.11);background:rgba(255,255,255,.86)}
.ed-panel input:focus,.ed-panel select:focus,.ed-panel textarea:focus,.ed-dialog input:focus,.ed-dialog select:focus,.ed-dialog textarea:focus{
  border-color:var(--primary);box-shadow:0 0 0 4px rgba(27,45,91,.14);outline:none}

/* JP-Assistent */
.jpa-bubble{background:rgba(29,29,31,.84);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border:1px solid rgba(255,255,255,.12);border-radius:20px}
.jpa-panel{border-radius:26px;border:1px solid rgba(255,255,255,.12)}

/* ---------- Unterseiten und Editor-Details (Runde 2, 18.10.) ---------- */
/* Filter-Kapseln, Auswahlfelder, Ansicht-Schalter, Reiter als Segment-Schalter */
.hm-chip{border-radius:999px;border-color:var(--ap-hair);background:#fff}
.hm-chip.on{background:var(--ink);border-color:var(--ink)}
.hm-select{border-radius:12px;border-color:rgba(0,0,0,.11);padding:9px 12px}
.hm-viewtoggle{border:0;background:rgba(120,120,128,.13);border-radius:12px;padding:3px;gap:2px}
.hm-viewtoggle button{border-radius:9px;height:30px;width:36px}
.hm-viewtoggle button.on{background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.12),0 3px 8px rgba(0,0,0,.06)}
.hm-tabs,.ed-tabs{background:rgba(120,120,128,.13);border-radius:12px;padding:3px}
.hm-tabs button,.ed-tabs button{border-radius:9px}
.hm-tabs button.on,.ed-tabs button.active{background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.12),0 3px 8px rgba(0,0,0,.06)}
.hm-btn{border-radius:999px;border:0;background:rgba(120,120,128,.13);color:var(--ink)}
.hm-btn:hover{background:rgba(120,120,128,.21);border:0}
.hm-drop,.hm-empty{border-radius:18px;border-color:rgba(0,0,0,.12)}
.hm-row{border-top-color:var(--ap-hair)}
.hm-folderchip{border-radius:999px}
/* Editor: Suche als Kapsel, Kacheln und Felder runder */
.ed-search{border-radius:999px;border-color:rgba(0,0,0,.11);background:rgba(255,255,255,.86);padding:10px 16px}
.ed-search:focus{border-color:var(--primary);box-shadow:0 0 0 4px rgba(27,45,91,.14);background:#fff}
.ed-up,.ed-tile{border-radius:12px;border-color:var(--ap-hair)}
.ed-up:hover,.ed-tile:hover{border-color:rgba(27,45,91,.35)}
.ed-field input{border-radius:10px;border-color:rgba(0,0,0,.11)}
.ed-field input:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(27,45,91,.14)}
.ed-size{border-radius:999px;border-color:rgba(0,0,0,.11)}
.ed-size button{border-radius:999px}
/* Fenster und Menüs öffnen mit leichtem Aufzoomen */
.ed-dialog{animation:ap-sheet .28s cubic-bezier(.2,.9,.3,1.1)}
.ed-pop{animation:ap-pop .16s cubic-bezier(.2,.9,.3,1.1)}
@keyframes ap-sheet{from{opacity:0;transform:translateY(10px) scale(.97)}to{opacity:1;transform:none}}
@keyframes ap-pop{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:none}}

/* Ohne Glas-Unterstützung oder bei „Transparenz reduzieren“ */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .hm-side,.hm-top,.ed-top,.ed-top:has(#docTitle),.ed-ctx,.ed-float,.ed-pop,.ed-dialog{background:rgba(255,255,255,.97)!important}
}
@media(prefers-reduced-transparency:reduce){
  .hm-side,.hm-top,.ed-top,.ed-top:has(#docTitle),.ed-ctx,.ed-float,.ed-pop,.ed-dialog{background:rgba(255,255,255,.98)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
  .ed-toast,.ps-busy,.jpa-bubble{background:#1d1d1f!important}
}
@media(prefers-reduced-motion:reduce){
  .hm-card,.hm-format,.ed-primary{transition:none!important;transform:none!important}
  .ed-dialog,.ed-pop{animation:none!important}
}

/* Webseiten-Editor, obere Leiste (21.10.2026, Wunsch Johannes): Die Farben aus webseite.css waren für eine dunkelblaue
   Leiste gedacht (helle Schrift). Auf der hellen Apple-Leiste wurden Speicherstand, Pfeile, „Vorschau“ und der
   ausgegraute Speichern-Knopf fast unsichtbar – hier bekommen sie dunkle, lesbare Farben. */
.wb-top .wb-back{color:var(--ink);font-weight:600}
.wb-top .wb-back:hover{background:rgba(0,0,0,.06)}
.wb-top .wb-logo span{color:var(--muted);border-left-color:rgba(0,0,0,.15)}
.wb-top .wb-chip{color:var(--ink);background:rgba(0,0,0,.06);border-color:transparent;font-weight:600}
.wb-top .wb-name{color:var(--ink);font-weight:600;font-size:1rem}
.wb-top .wb-state{color:var(--muted);font-weight:500}
.wb-top .wb-state.dirty{color:#9c6f32;font-weight:600}
.wb-top .ed-iconbtn:disabled{opacity:1;color:rgba(0,0,0,.38)}
.wb-top .wb-seg{background:rgba(120,120,128,.14);border:0;border-radius:999px;padding:3px}
.wb-top .wb-seg button{color:var(--ink);border-radius:999px;font-weight:500}
.wb-top .wb-seg button:hover{background:rgba(255,255,255,.55)}
.wb-top .wb-seg button.on{background:#fff;color:var(--ink);font-weight:600;box-shadow:0 1px 3px rgba(0,0,0,.14)}
.wb-top .ed-primary:disabled{opacity:1;background:rgba(120,120,128,.18);color:rgba(0,0,0,.45);filter:none;box-shadow:none;cursor:default}

/* Kontrast-Durchsicht 21.10.2026 (Wunsch Johannes): Reste der früheren dunklen Leisten und Karten. Die Schrift war hell
   geblieben, der Hintergrund ist im Apple-Look hell – dadurch fast unsichtbar. Gemessen mit einem Kontrast-Prüflauf
   über alle Seiten von Kundenportal und JP Studio. */
/* E-Mail-Editor: obere Leiste (wie die Webseiten-Leiste) */
.eb-top .eb-back{color:var(--ink);font-weight:600}
.eb-top .eb-back:hover{background:rgba(0,0,0,.06)}
.eb-top .eb-logo{color:var(--ink)}
.eb-top .eb-logo span{color:var(--muted);font-weight:600}
.eb-top .eb-chip{background:rgba(0,0,0,.06);color:var(--ink);font-weight:600}
.eb-top .eb-name{color:var(--ink);font-weight:600}
.eb-top .eb-state{color:var(--muted);font-weight:500}
.eb-top .eb-state.bad{color:#b42318;font-weight:600}
.eb-top .eb-seg{background:rgba(120,120,128,.14);border-radius:999px;padding:3px}
.eb-top .eb-seg button{color:var(--ink);border-radius:999px}
.eb-top .eb-seg button:hover{background:rgba(255,255,255,.55)}
.eb-top .eb-seg button.on{background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.14)}
.eb-top .ed-iconbtn{color:var(--ink)}
.eb-top .ed-iconbtn:hover{background:rgba(0,0,0,.06)}
/* Ausgegraute Rückgängig/Wiederholen in allen Editor-Leisten: blass, aber erkennbar (vorher Farbe UND Deckkraft gedimmt) */
.ed-top .ed-iconbtn:disabled,.ed-top:has(#docTitle) .ed-iconbtn:disabled,.vd-top .ed-iconbtn:disabled,.eb-top .ed-iconbtn:disabled{opacity:1!important;color:rgba(0,0,0,.38)!important;background:none}
/* Webseiten-Editor: ausgegraute Pfeile in der Abschnittsliste */
.wb-secbtns button:disabled{opacity:.55}
/* Vorlagen: aktiver Filter („Alle“) war schwarz auf schwarz */
.hm-chip.on{color:#fff}
.hm-chip.on small{opacity:.8}
/* „Neu“-Kennzeichen: weiße Schrift auf kräftigerem Gold */
.jp-new{background:linear-gradient(135deg,#b07f3c,#8a5f27)}
/* Webseiten-Editor: Seitenauswahl oben (bei mehreren Seiten) war weiß auf hell */
.wb-top .wb-pagesel select{background:rgba(120,120,128,.14);border:0;color:var(--ink);border-radius:999px}

/* 08.11.2026: kompakte Portal-Leisten. Gruppen dürfen umbrechen, statt links Dateimenü oder Namen abzuschneiden.
   Nur der Portal-Look wird angepasst; die eigenständigen Editor-Dateien bleiben unverändert. */
body:not(.app-ed) .ed:has(#docTitle){grid-template-rows:auto minmax(0,1fr)}
body:not(.app-ed) .ed-top:has(#docTitle){min-height:52px;padding:6px 12px;gap:4px 12px;flex-wrap:wrap;overflow:visible}
body:not(.app-ed) .ed-top:has(#docTitle) .ed-top-left{flex:1 1 340px;flex-wrap:wrap;gap:4px;overflow:visible}
body:not(.app-ed) .ed-top:has(#docTitle) .ed-top-right{flex:1 1 auto;max-width:100%;flex-wrap:wrap;justify-content:flex-end;gap:4px}
body:not(.app-ed) .ed-top:has(#docTitle) .ed-top-left>:not(.ed-save):not(.ps-topbusy):not(.ed-live){flex-shrink:0}
body:not(.app-ed) .ed-top:has(#docTitle) .ed-topbtn{font-size:.84rem;padding:7px 9px}
body:not(.app-ed) .ed-top:has(#docTitle) .ed-statusarea{flex-wrap:wrap;max-width:100%}
body:not(.app-ed) .ed-top:has(#docTitle) .ed-save{white-space:normal;overflow-wrap:anywhere;max-width:220px}
@media(min-width:901px){
  body:not(.app-ed) .ed-top:has(#docTitle) .ed-primary,
  body:not(.app-ed) .ed-top:has(#docTitle) .ed-sendbtn{padding:8px 11px;font-size:.84rem}
  body:not(.app-ed) .ed-top:has(#docTitle) .ed-title{flex:1 1 190px;min-width:140px;max-width:300px}
  body:not(.app-ed) .ed:has(#docTitle) .ed-pagestrip{padding:6px 10px}
  body:not(.app-ed) .ed:has(#docTitle) .ed-ctx{padding:5px 8px;top:10px}
}
@media(max-width:900px){
  body:not(.app-ed) .ed-top:has(#docTitle) .ed-top-left{flex:1 1 auto}
  body:not(.app-ed) .ed-top:has(#docTitle) .ed-top-right{flex:0 1 auto}
}

/* Webseiten: Metaangaben und Werkzeuge bekommen bei Platzmangel eigene Zeilen; nichts wird abgeschnitten. */
.wb{grid-template-rows:auto minmax(0,1fr)}
.ed-top.wb-top{min-height:52px;padding:6px 12px;gap:4px 12px;flex-wrap:wrap;overflow:visible}
.wb-top .wb-top-left{flex:1 1 640px;flex-wrap:wrap;gap:4px 8px}
.wb-top .wb-top-right{flex:1 1 auto;max-width:100%;flex-wrap:wrap;justify-content:flex-end;gap:4px}
.wb-top .wb-top-right>*{flex-shrink:0}
.wb-top .wb-back,.wb-top .wb-logo{flex-shrink:0}
.wb-top .wb-back{padding:6px;font-size:.84rem}
.wb-top .wb-chip{flex:0 0 auto;max-width:100%;white-space:normal;overflow-wrap:anywhere;overflow:visible;text-overflow:clip;padding:4px 9px}
.wb-top .wb-name{flex:1 1 180px;min-width:140px;max-width:100%;white-space:normal;overflow-wrap:anywhere;overflow:visible;text-overflow:clip;font-size:.9rem}
.wb-top .wb-state{flex:0 1 auto;max-width:100%;white-space:normal;overflow-wrap:anywhere;overflow:visible;margin-left:0}
.wb-top .wb-auto{display:flex;flex-shrink:0;color:var(--muted);margin-left:0;font-size:.74rem}
.wb-top .wb-job{max-width:100%;white-space:normal;overflow-wrap:anywhere;margin-left:0}
.wb-top .wb-seg button{padding:5px 8px;min-height:30px;font-size:.78rem}
.wb-top .ed-iconbtn{width:32px;height:32px}
.wb-top .ed-primary,.wb-top .ed-ghost{padding:7px 11px;font-size:.8rem;min-height:34px;white-space:nowrap}
@media(min-width:1101px) and (max-width:1600px){.wb-side,.wb-insp{width:264px}}
@media(max-width:620px){
  .ed-top.wb-top{padding:5px 8px}
  .wb-top .wb-top-left{flex-basis:100%}
  .wb-top .wb-name{min-width:100px}
  .wb-top .wb-top-right{justify-content:flex-start}
}

/* 26.11.2026: Kopfzeile des Design-Editors springt beim Laden nicht mehr.
   Lade-/Upload-Anzeige (portal-studio.js, pillShow) schwebt im freien Platz rechts neben dem Speicherstatus:
   Ein- und Ausblenden ändert die Höhe der Kopfzeile nicht, nur die Deckkraft. */
.ed-top .ps-busy.ps-topbusy.ps-topfloat{position:absolute;left:0;top:0;margin:0;z-index:3;flex:none;max-width:360px;
  opacity:1;visibility:visible;transition:opacity .2s ease,visibility 0s linear 0s}
.ed-top .ps-busy.ps-topbusy.ps-topfloat[hidden]{display:flex;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s ease,visibility 0s linear .2s}
.ed-top .ps-busy.ps-topfloat span{max-width:none;min-width:0}
.ed-top .ps-busy.ps-topfloat.ps-tight{padding:6px}
.ed-top .ps-busy.ps-topfloat.ps-tight span{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
/* Handy/Tablet: portal-studio.css blendet den Text bis 860 px mit display:none aus – nur optisch verstecken,
   damit Vorleseprogramme den Upload-Fortschritt weiter ansagen (Codex, 26.11.2026) */
@media (max-width:860px){
  .ed-top .ps-busy.ps-topbusy span{display:block;position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
}
/* Kein Platz neben dem Status: unsichtbar, aber nicht versteckt – Vorleseprogramme sagen den Fortschritt weiter an */
.ed-top .ps-busy.ps-topbusy.ps-topfloat.ps-noroom{opacity:0;transition:none}
@media (prefers-reduced-motion:reduce){.ed-top .ps-busy.ps-topfloat,.ed-top .ps-busy.ps-topfloat[hidden]{transition:none}}
/* Speicherstatus mit fester Breite für den längsten Text („Offline – Abgleich steht aus“, „Online gesichert 14:03“),
   damit Titel und Knöpfe beim Wechsel „Online gesichert“ ↔ „Wird gespeichert …“ nicht wandern. Zu lange Texte enden mit „…“. */
@media (min-width:901px){
  body:not(.app-ed) .ed-top:has(#docTitle) .ed-save{width:14em;flex:0 0 14em;max-width:none;padding-right:2px;white-space:nowrap;overflow:hidden}
  body:not(.app-ed) .ed-top:has(#docTitle) .ed-save>svg{flex:none}
  body:not(.app-ed) .ed-top:has(#docTitle) .ed-save>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  /* Langer Hinweis (portal-studio.js, saveFit): kleiner und zweizeilig statt mit „…“ abgeschnitten, gleiche Zeilenhöhe */
  body:not(.app-ed) .ed-top:has(#docTitle) .ed-save.ps-long>span{white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;
    -webkit-line-clamp:2;line-clamp:2;font-size:10.5px;line-height:1.1;text-overflow:clip;overflow-wrap:anywhere}
  body:not(.app-ed) .ed-top:has(#docTitle) .ed-save.ps-long{height:26px;padding-top:1px;padding-bottom:1px}   /* = normale Höhe (4 + 18 + 4 px) */
}
/* Beim gemeinsamen Arbeiten („… · gemeinsam mit Melanie Bauer“) etwas breiter, aber ebenfalls fest – ps-live hängt nur
   davon ab, ob jemand mitarbeitet, nicht vom Speicherzustand (studio-sync-merge.js, statusText) */
@media (min-width:1301px){
  body:not(.app-ed) .ed-top:has(#docTitle) .ed-save.ps-live{width:22em;flex:0 0 22em}
}
