/* Gasthof zur Krone · Feinschliff-Ebene über theme.css
   Ziel: ruhige Flächen, klare Hierarchie, Roboto Slab für Überschriften, Taupe nur als Akzent,
   Kontrast mindestens AA. Gilt für alle Arbeitsplatzseiten. */
body.theme-krone{--kr-muted:#66625c;--kr-label:#66625c;--kr-sand:#f1f1ea;--kr-sand-deep:#e6e4da;--kr-shadow:0 14px 34px rgba(40,32,37,.07);
  --muted:#66625c;--radius:10px;font-size:14px;line-height:1.6}
body.theme-krone .muted,body.theme-krone small,body.theme-krone .intro{color:var(--kr-muted)}

/* Kopfzeile */
body.theme-krone .app-header{padding:0 40px;min-height:74px;box-shadow:0 1px 0 var(--kr-line)}
body.theme-krone .app-header .brand img.brand-logo{height:46px}
body.theme-krone .main-nav a,body.theme-krone .main-nav summary{font-size:14px;font-weight:500;color:#393734;padding:26px 2px;letter-spacing:.1px}
body.theme-krone .main-nav a:hover,body.theme-krone .main-nav summary:hover{color:var(--kr-accent-dark)}
body.theme-krone .main-nav a.active,body.theme-krone .nav-current>summary{color:var(--kr-accent-dark);box-shadow:inset 0 -3px 0 var(--kr-accent)}
body.theme-krone .nav-menu>div{border:1px solid var(--kr-line);border-radius:10px;box-shadow:var(--kr-shadow);padding:8px}
body.theme-krone .nav-menu>div a{border-radius:6px;padding:9px 12px;font-size:13.5px}
body.theme-krone .nav-menu>div a:hover{background:var(--kr-sand)}
body.theme-krone .account-menu>summary{border:1px solid var(--kr-line);border-radius:999px;padding:6px 14px 6px 6px;background:#fff;box-shadow:none}
body.theme-krone .avatar{width:32px;height:32px;font-size:13px}
body.theme-krone .environment-line,body.theme-krone .environment-line span{background:var(--kr-sand);color:var(--kr-muted);font-size:11px;letter-spacing:.6px;text-transform:uppercase}
body.theme-krone .environment-line{border-bottom:1px solid var(--kr-line);padding:6px 40px}
body.theme-krone .environment-line i{background:var(--kr-accent)}

/* Seitenkopf */
body.theme-krone main{padding:40px 40px 80px}
body.theme-krone .page-heading{margin-bottom:28px}
body.theme-krone .page-heading h1,body.theme-krone .work-home-heading h1,body.theme-krone .home-heading h1{font-family:'Hind','Segoe UI',Arial,sans-serif;font-weight:500;font-size:38px;letter-spacing:-.4px;line-height:1.15}
body.theme-krone .page-heading .intro,body.theme-krone .work-home-heading p{font-size:14.5px;color:var(--kr-muted);max-width:62ch}
body.theme-krone .eyebrow{display:inline-block;font-family:var(--sans);font-size:11px;font-weight:600;letter-spacing:2px;text-transform:uppercase;color:var(--kr-label);padding-bottom:6px;border-bottom:2px solid var(--kr-accent);margin-bottom:12px}
body.theme-krone .intro{font-size:14.5px;margin:0 0 24px}

/* Schnellzugriffe auf dem Dashboard */
body.theme-krone .work-shortcuts{display:flex;gap:6px;flex-wrap:wrap;padding:8px 0 24px;border-bottom:1px solid var(--kr-line);margin-bottom:26px}
body.theme-krone .work-shortcuts a{text-decoration:none;font-size:13px;color:var(--kr-accent-dark);padding:8px 14px;border-radius:999px;border:1px solid var(--kr-line);background:#fff;transition:all .15s}
body.theme-krone .work-shortcuts a:hover{border-color:var(--kr-accent);background:var(--kr-sand)}

/* Karten und Listen */
body.theme-krone .card,body.theme-krone .work-content,body.theme-krone .customer-overview,body.theme-krone .work-summary,body.theme-krone .case-timeline,
body.theme-krone .rules-panel,body.theme-krone .event-list,body.theme-krone .flow-panel,body.theme-krone .inbox-card,body.theme-krone .lunch-day,
body.theme-krone .location-card,body.theme-krone .script-station,body.theme-krone .work-add{border-radius:12px;border:1px solid var(--kr-line);box-shadow:var(--kr-shadow);background:#fff}
body.theme-krone .card{padding:26px 28px}
body.theme-krone .card>h2:first-child,body.theme-krone .flow-panel h2,body.theme-krone .section-heading h2,body.theme-krone .inbox-card h3,body.theme-krone .location-card h2{font-family:'Hind','Segoe UI',Arial,sans-serif;font-weight:500;letter-spacing:-.2px}
body.theme-krone .section-heading h2{font-size:22px}
body.theme-krone .event-row{padding:22px 28px;transition:background .15s}
body.theme-krone .event-row:hover{background:#fafaf7}
body.theme-krone .event-row time{border-right:1px solid var(--kr-line);padding-right:20px}
body.theme-krone .event-row time strong{font-family:'Hind','Segoe UI',Arial,sans-serif;font-size:26px;color:var(--kr-accent-dark)}
body.theme-krone .event-row time span{color:var(--kr-label);font-size:10px;letter-spacing:.5px}
body.theme-krone .event-row h3{font-family:'Hind','Segoe UI',Arial,sans-serif;font-weight:500;font-size:16px}
body.theme-krone .event-row h3 a{color:var(--kr-ink);text-decoration:none}
body.theme-krone .event-row p{font-size:12.5px}
body.theme-krone .event-work-actions a{font-size:13px;font-weight:500;color:var(--kr-accent-dark);text-decoration:none}

/* Status */
body.theme-krone .status-pill,body.theme-krone .badge{font-size:11px;font-weight:600;letter-spacing:.3px;padding:5px 11px;border-radius:999px;background:var(--kr-sand);color:#575450;border:1px solid var(--kr-sand-deep)}
body.theme-krone .status-pill.success{background:#e9f1e6;color:#3f6142;border-color:#d3e2cf}
body.theme-krone .status-pill.warning{background:#fbeede;color:#8a5a22;border-color:#f0d9bd}
body.theme-krone .document-status{background:var(--kr-accent);color:#fff;border-color:var(--kr-accent)}

/* Segmente, Filter, Suche */
body.theme-krone .segmented{background:var(--kr-sand);border:1px solid var(--kr-sand-deep)}
body.theme-krone .segmented a{font-size:12.5px;padding:7px 16px}
body.theme-krone .segmented a.selected{background:#fff;color:var(--kr-ink);box-shadow:0 1px 3px rgba(0,0,0,.08)}
body.theme-krone .event-search input,body.theme-krone .inline-form input,body.theme-krone .inbox-tools input{background:#fff;border:1px solid var(--kr-line);border-radius:999px;padding:10px 18px;font-size:13px}
body.theme-krone .inbox-tabs a.selected{background:#fff;border-color:var(--kr-accent);box-shadow:0 1px 3px rgba(0,0,0,.06)}

/* Tabellen */
body.theme-krone table{border-collapse:separate;border-spacing:0;width:100%}
body.theme-krone th{font-size:11px;font-weight:600;letter-spacing:1.2px;text-transform:uppercase;color:var(--kr-label);background:transparent;border-bottom:1px solid var(--kr-line);padding:12px 14px}
body.theme-krone td{padding:14px;border-bottom:1px solid #eeede6;vertical-align:top;font-size:13.5px}
body.theme-krone tr:last-child td{border-bottom:0}
body.theme-krone td small{display:block;font-size:12px;color:var(--kr-muted);margin-top:3px}
body.theme-krone td.num,body.theme-krone .num{font-variant-numeric:tabular-nums}

/* Formulare */
body.theme-krone label{font-size:12.5px;color:var(--kr-muted)}
body.theme-krone input:not([type=checkbox]):not([type=radio]):not([type=file]),body.theme-krone select,body.theme-krone textarea{border:1px solid #7a7670;border-radius:8px;font-size:14px;padding:11px 13px;background:#fff;color:var(--kr-ink);transition:border-color .15s,box-shadow .15s}
body.theme-krone input:focus,body.theme-krone select:focus,body.theme-krone textarea:focus{box-shadow:0 0 0 3px rgba(102,67,90,.16)}
body.theme-krone details>summary{font-size:14px;font-weight:500;color:var(--kr-ink);cursor:pointer}
body.theme-krone main>details,body.theme-krone .card>details,body.theme-krone .inbox-demo{background:#fff;border:1px solid var(--kr-line);border-radius:12px;padding:6px 20px;margin-bottom:14px}
body.theme-krone main>details>summary{padding:12px 0;min-height:44px;display:flex;align-items:center}
/* display:flex nimmt der Zusammenfassung den Aufklapp-Pfeil des Browsers – eigener Pfeil, sonst wirkt die Karte leer (V3-12). */
body.theme-krone main>details:not(.import-run)>summary{list-style:none}
body.theme-krone main>details:not(.import-run)>summary::-webkit-details-marker{display:none}
body.theme-krone main>details:not(.import-run)>summary::before{content:'';flex:none;width:7px;height:7px;margin:0 14px 0 2px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);transition:transform .15s}
body.theme-krone main>details[open]:not(.import-run)>summary::before{transform:rotate(45deg)}
body.theme-krone main>details[open]>summary{border-bottom:1px solid var(--kr-line);margin-bottom:14px}
body.theme-krone textarea[name=value]{font-family:ui-monospace,'Cascadia Mono',Consolas,monospace;font-size:12.5px;line-height:1.55;background:#fbfbf8}

/* Schaltflächen */
body.theme-krone button:where(:not(.quiet):not(.text-button):not(.rule-apply):not(.danger-button):not(.mobile-nav-toggle):not([role="tab"]):not([data-add-kind]):not([data-work-tab]):not(.remove-line):not(.lang-btn):not(.chip):not(.tab):not([role="option"])),
body.theme-krone .button:not(.quiet),body.theme-krone .document-actions>.button,body.theme-krone .work-summary .work-save{background:var(--kr-accent-dark);border-color:var(--kr-accent-dark);color:#fff;border-radius:8px;min-height:42px;padding:10px 20px;font-size:13.5px;letter-spacing:.1px;transition:all .16s}
body.theme-krone button:where(:not(.quiet):not(.text-button):not(.rule-apply):not(.danger-button):not(.mobile-nav-toggle):not([role="tab"]):not([data-add-kind]):not([data-work-tab]):not(.remove-line):not(.lang-btn):not(.chip):not(.tab):not([role="option"])):hover,
body.theme-krone .button:not(.quiet):hover{background:#5c3d51;border-color:#5c3d51;color:#fff;transform:translateY(-1px);box-shadow:0 8px 18px rgba(82,53,72,.22)}
body.theme-krone button.quiet,body.theme-krone .button.quiet{border-radius:8px;min-height:42px;padding:10px 18px;font-size:13.5px;border-color:#cdcbc0;color:var(--kr-accent-dark)}
body.theme-krone button.quiet:hover,body.theme-krone .button.quiet:hover{border-color:var(--kr-accent);background:var(--kr-sand)}
body.theme-krone .rule-apply{background:#fff;border:1px solid var(--kr-accent);color:var(--kr-accent-dark);border-radius:6px;font-weight:600}
body.theme-krone .rule-apply:hover{background:var(--kr-sand)}
body.theme-krone .danger-button{background:#fff;border:1px solid #b9563f;color:#9a4530;border-radius:8px}

/* Hinweise */
body.theme-krone .notice{border-radius:10px;border:1px solid var(--kr-sand-deep);background:#fafaf6;padding:14px 18px;font-size:13.5px}
body.theme-krone .notice.error{background:#fdf3ef;border-color:#edc6b6;color:#8a4726}
body.theme-krone .notice.success{background:#eef4ec;border-color:#d3e2cf;color:#3f6142;border-left-width:1px}

/* Editor */
body.theme-krone .work-summary{background:#fff}
body.theme-krone .work-summary .eyebrow{border-bottom:0;margin-bottom:0}
body.theme-krone .work-summary .summary-gross{background:var(--kr-sand);margin:18px -22px 0;padding:18px 22px 20px;border-top:0}
body.theme-krone .work-summary .summary-gross dd{font-size:30px;color:var(--kr-ink)}
body.theme-krone .work-summary .work-save{margin-top:16px}
body.theme-krone .customer-overview h2,body.theme-krone .case-timeline h2,body.theme-krone .rules-panel h2{font-size:11px;letter-spacing:1.8px;color:var(--kr-label)}
body.theme-krone .work-block-heading{padding:14px 0 10px}
body.theme-krone .work-block-heading h2{font-size:21px}
body.theme-krone .work-line .line-title input{font-size:14.5px}
body.theme-krone .work-tabs button{font-size:13px;padding:14px 0}
body.theme-krone .work-add{background:#fafaf7}
body.theme-krone .add-kind button{border-radius:999px;padding:8px 16px}
body.theme-krone .add-kind .selected{background:var(--kr-accent-dark);color:#fff;border-color:var(--kr-accent-dark)}
body.theme-krone .rules-panel .rule strong{font-size:13px}
body.theme-krone .rules-panel .rule p{font-size:12.5px;color:var(--kr-muted)}
body.theme-krone .document-identity h2{font-size:28px}
body.theme-krone .document-number{color:var(--kr-label)}

/* Kennzahlen */
body.theme-krone .stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px;margin-bottom:26px}
body.theme-krone .stat{background:#fff;border:1px solid var(--kr-line);border-radius:12px;padding:18px 20px;box-shadow:var(--kr-shadow)}
body.theme-krone .stat span{font-size:11px;letter-spacing:1.2px;text-transform:uppercase;color:var(--kr-label)}
body.theme-krone .stat strong{font-family:'Hind','Segoe UI',Arial,sans-serif;font-weight:500;font-size:28px;color:var(--kr-ink);display:block;margin-top:6px}

/* Personal-Karten und Raster */
body.theme-krone .grid>.card{margin-bottom:0}
body.theme-krone .grid>.card>small:first-child{display:block;font-size:11px;letter-spacing:1.2px;text-transform:uppercase;color:var(--kr-label);margin-bottom:8px}
body.theme-krone .grid>.card h2{font-size:18px}

/* Mittagstisch */
body.theme-krone .lunch-tabs a{border-radius:999px}
body.theme-krone .lunch-day header h2{font-size:20px}
body.theme-krone .lunch-day header h2 span{color:var(--kr-label);font-family:var(--sans);font-size:13px;letter-spacing:.4px}

/* Standorte und Räume */
body.theme-krone .location-card h2{font-size:24px}
body.theme-krone .rooms-board{border-radius:12px;overflow-x:auto}

/* Regieplan */
body.theme-krone .script-station header h2{font-family:'Hind','Segoe UI',Arial,sans-serif;font-weight:500}

/* Fußbereich */
body.theme-krone .home-footer{font-size:11px;color:var(--kr-label);padding:32px 0 0}

/* Anmeldung: Bühne mit Bild */
body.theme-krone .login-story{background:linear-gradient(115deg,rgba(45,32,41,.9),rgba(82,53,72,.78)),url('hero-anfrage.jpg') center 35%/cover no-repeat}
body.theme-krone .login-story .eyebrow{color:rgba(255,255,255,.85);border-bottom-color:rgba(255,255,255,.55)}
body.theme-krone .login-story h1{font-family:'Hind','Segoe UI',Arial,sans-serif;font-weight:500}
body.theme-krone .login-form-side{background:var(--kr-canvas)}
body.theme-krone .login-form{border-radius:14px;border:1px solid var(--kr-line);box-shadow:var(--kr-shadow);background:#fff}

@media(max-width:650px){
  body.theme-krone .app-header{padding:0 16px;min-height:60px}
  body.theme-krone main{padding:22px 16px 60px}
  body.theme-krone .page-heading h1,body.theme-krone .work-home-heading h1{font-size:28px}
  body.theme-krone .event-row{padding:16px}
  body.theme-krone .card{padding:18px}
}
@media(prefers-reduced-motion:reduce){body.theme-krone *{transition:none!important}}

/* Kompakte Eingaben im Positionseditor und im Mittagstisch behalten ihre Maße */
body.theme-krone .editor-position label>input{border:1px solid transparent;border-bottom-color:#e9e7df;background:#fbfbf8;border-radius:3px;font-size:13px;margin-top:6px;padding:4px 5px;height:30px;min-height:30px}
body.theme-krone .editor-position input:hover{border-color:#cdcbc0;background:#faf9f3}
body.theme-krone .editor-position input:focus{box-shadow:none;outline:2px solid var(--ui-focus);outline-offset:2px;background:#fff;border-color:transparent}
body.theme-krone .work-line .line-title input{font:550 14.5px/1.5 var(--sans);height:31px;padding:3px 0;margin:0;border:1px solid transparent;background:transparent;border-radius:3px}
body.theme-krone .work-line .line-title input:hover{border-color:#cdcbc0}
body.theme-krone .work-line .line-title input:focus{padding-left:8px;border-color:transparent;outline:2px solid var(--ui-focus);outline-offset:2px;box-shadow:none}
body.theme-krone .lunch-counts input{height:30px;min-height:30px;padding:3px 7px;font-size:13px;border-radius:5px}
body.theme-krone .lunch-row input,body.theme-krone .lunch-row select{height:34px;min-height:34px;padding:4px 8px;font-size:13px;border-radius:6px}
body.theme-krone .work-heading h1{font-family:'Hind','Segoe UI',Arial,sans-serif;font-weight:500}
body.theme-krone .position-amount output{font-family:'Hind','Segoe UI',Arial,sans-serif;font-weight:500}
body.theme-krone .rooms-board tbody th,body.theme-krone .lunch-counts tbody th,body.theme-krone .lunch-day-row th{text-transform:none;letter-spacing:0;font-size:13.5px;color:var(--kr-ink);font-weight:600}
body.theme-krone .rooms-board tbody th small{text-transform:none;letter-spacing:0;font-size:11px;color:var(--kr-muted)}
/* Pipeline: alle sieben Stufen auf einen Blick, Karten kompakt */
body.theme-krone .pipeline-board{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px;overflow:visible}
body.theme-krone .pipeline-column{flex:none;padding:12px;border-radius:12px;background:var(--kr-sand);border-color:var(--kr-sand-deep)}
body.theme-krone .pipeline-column h2{font-size:13px}
body.theme-krone .pipeline-entry{padding:13px;border-radius:10px;box-shadow:0 4px 12px rgba(40,32,37,.05)}
body.theme-krone .pipeline-entry h3{font-family:'Hind','Segoe UI',Arial,sans-serif;font-weight:500;font-size:13.5px;line-height:1.35;margin:8px 0 6px}
body.theme-krone .pipeline-entry p{font-size:11.5px;margin-bottom:10px}
body.theme-krone .pipeline-entry footer{font-size:11px;padding-top:9px}
/* Kleine Pipeline-Texte mit mindestens 4,5:1 (DFE-21): #66625c ergibt 4,98 auf Sand, 5,71 auf Weiß */
body.theme-krone .pipeline-empty,body.theme-krone .pipeline-hint,body.theme-krone .pipeline-entry time{color:var(--kr-muted)}
/* Wirkungsvorschau einer Einstellung (GAP3-15): als „noch nicht gespeichert“ erkennbar, reine Informationen zurückgenommen */
body.theme-krone section.settings-impact.card{border-left:4px solid var(--kr-accent-dark)}
body.theme-krone .settings-impact .impact-effect{margin:4px 0 12px}
body.theme-krone .settings-impact .impact-effect.is-unchanged p{color:var(--kr-muted)}
@media(max-width:1100px){body.theme-krone .pipeline-board{display:flex;overflow-x:auto}body.theme-krone .pipeline-column{flex:0 0 240px}}

body.theme-krone .login-story .login-claim{font-family:'Hind','Segoe UI',Arial,sans-serif;font-weight:500;font-size:clamp(34px,4.5vw,54px);line-height:1.1;color:#fff;margin:22px 0 18px}
body.theme-krone .login-story .login-claim em{font-style:normal;opacity:.9}
body.theme-krone .login-form h1{font-family:'Hind','Segoe UI',Arial,sans-serif;font-weight:500;font-size:30px;margin:8px 0 6px}
body.theme-krone .location-card{overflow:hidden;padding-top:0}
body.theme-krone .location-photo{width:calc(100% + 2px);margin:-1px -1px 20px;display:block;height:168px;object-fit:cover}
body.theme-krone .location-card>header{padding-top:0}
/* Lesbarkeit: kleine Beschriftungen mindestens AA (4.5:1 auf Weiß) */
body.theme-krone .eyebrow,body.theme-krone .area-card-brand,body.theme-krone .event-row time span,
body.theme-krone .position-number,body.theme-krone .work-line label>span:not(.sr-only),
body.theme-krone .customer-overview h2,body.theme-krone .case-timeline h2,body.theme-krone .rules-panel h2,
body.theme-krone th,body.theme-krone .location-card .eyebrow,body.theme-krone .inbox-card .eyebrow,
body.theme-krone .document-number,body.theme-krone .stat span,body.theme-krone .lunch-row label>span{color:#5e5a55}
body.theme-krone .status-pill,body.theme-krone .badge{color:#4a4744}
body.theme-krone .avatar{background:var(--kr-accent-dark)}
body.theme-krone .account-name small{color:#5e5a55}
body.theme-krone .rules-facts dt,body.theme-krone .customer-overview dt,body.theme-krone .facts dt{color:#5e5a55}
body.theme-krone .document-status{background:var(--kr-accent-dark);color:#fff;border-color:var(--kr-accent-dark)}
/* Handy und Tablet (Abnahme 02.10.2026): Menü innerhalb der Bildschirmbreite mit 44-px-Einträgen statt 74 px,
   Eingabefelder 16 px (kein Zoom in iOS), Stand der Arbeitsblätter unter dem Knopf, lesbare Plaketten und Kundenangebot. */
@media(max-width:1000px){
body.theme-krone .main-nav{left:16px;right:16px;width:auto;max-width:calc(100% - 32px);box-sizing:border-box;max-height:calc(100dvh - 100px);overflow-y:auto}
body.theme-krone .main-nav>a,body.theme-krone .main-nav>.nav-menu>summary{padding:10px 12px;min-height:44px}
body.theme-krone .main-nav .nav-menu>div a{padding:10px 12px;min-height:44px;white-space:normal}
}
@media(max-width:600px){
body.theme-krone input:not([type=checkbox]):not([type=radio]):not([type=file]),body.theme-krone select,body.theme-krone textarea{font-size:16px}
body.theme-krone .production-options .sheet-state{grid-column:2;margin-top:8px}
body.theme-krone .status-pill{font-size:12px;white-space:nowrap}
body.theme-krone .time-tabs a{min-height:44px;display:inline-flex;align-items:center}
body.theme-krone .workspace-dialog .dialog-footer{position:sticky;bottom:0;background:#fff;padding-block:12px;z-index:1}
body.theme-krone .intake-mic-note{display:none}
body.customer-approval.theme-krone .paper-position p,body.customer-approval.theme-krone .paper-facts,body.customer-approval.theme-krone .paper-address,
body.customer-approval.theme-krone .paper-totals>div,body.customer-approval.theme-krone .paper-intro,body.customer-approval.theme-krone .paper-closing{font-size:14px}
body.customer-approval.theme-krone .paper-position>div:first-child>strong,body.customer-approval.theme-krone .paper-amount{font-size:14px}
body.customer-approval.theme-krone .paper-position small,body.customer-approval.theme-krone .paper-section h3>span,body.customer-approval.theme-krone .paper-type,
body.customer-approval.theme-krone .paper-footer,body.customer-approval.theme-krone .paper-brand>div>span{font-size:12px}
body.customer-approval.theme-krone .paper-type small,body.customer-approval.theme-krone .paper-footer span,body.customer-approval.theme-krone .paper-address>span:first-child{font-size:11px}
body.customer-approval.theme-krone .approval-variant .proposal-paper{margin:0;padding:16px}
body.customer-approval.theme-krone .customer-alternatives summary{min-height:44px;display:flex;align-items:center}
body.customer-approval.theme-krone .approval-contact a{display:inline-block;padding:10px 0}
}

/* Runde 2 · Schrift Hind (fonts.css) für Überschriften auf allen Seiten; Regeln mit eigener Schrift gehen vor (null Spezifität). */
:where(body.theme-krone) :where(h1,h2,h3){font-family:var(--serif)}

/* Kopfzeile bei Browser-Zoom (Fensterbreite bis 1260 px): Menü hinter „Menü“, Kontokasten nur als Bild – sonst läuft jede Seite
   seitlich über und „Abmelden“ ist abgeschnitten (luecken-7). Die Breiten bis 1000 px regelt der Block weiter oben mit. */
@media(max-width:1260px){
body.theme-krone .app-header{position:relative;flex-wrap:nowrap;gap:12px}
body.theme-krone .mobile-nav-toggle{display:inline-flex;margin-left:auto;font-size:13px;min-height:40px}
body.theme-krone .account-menu{margin-left:0!important}  /* „Menü“ rechts neben dem Konto statt in der Mitte */
body.theme-krone .account-name{display:none}
body.theme-krone .account-menu>summary{padding:4px}
body.theme-krone .main-nav{display:none;position:absolute;left:16px;right:16px;top:70px;z-index:120;flex-direction:column;align-items:stretch;gap:0;
  width:auto;max-width:calc(100% - 32px);box-sizing:border-box;max-height:calc(100dvh - 100px);overflow-y:auto;background:#fff;
  border:1px solid var(--kr-line);border-radius:10px;padding:12px;box-shadow:var(--kr-shadow)}
body.theme-krone .main-nav.is-open{display:flex}
body.theme-krone .main-nav>details{width:100%}
body.theme-krone .main-nav>a,body.theme-krone .main-nav>.nav-menu>summary{padding:10px 12px;min-height:44px;font-size:14px}
body.theme-krone .main-nav .nav-menu>div{position:static;box-shadow:none;border:0;min-width:0;padding:0 12px 8px}
body.theme-krone .main-nav .nav-menu>div a{padding:10px 12px;min-height:44px;white-space:normal}
body.theme-krone .main-nav a.active,body.theme-krone .main-nav .nav-current>summary{box-shadow:inset 3px 0 0 var(--kr-accent)}
body.theme-krone .main-nav>a.active::after,body.theme-krone .main-nav .nav-current>summary::before{display:none}
}

/* Fristen und offene Prüfpunkte in Aubergine statt Olivgrün: Grün wirkt wie „in Ordnung“, Kontrast 7,6:1 statt 3,45:1 (luecken-14). */
body.theme-krone .billing-checks li.is-open strong,body.theme-krone .inbox-urgency.level-urgent strong,
body.theme-krone .inbox-urgency.level-passed strong{color:var(--kr-accent)}

/* Auswahlknöpfe der Kundenseite (Varianten, Optionen, Zustimmung) in der Hausfarbe (kunde-18). */
body.customer-approval.theme-krone input[type=radio],body.customer-approval.theme-krone input[type=checkbox]{accent-color:var(--kr-accent)}

/* Kalender mit Uhrzeit, Raum und Gästen (rules.calendar_times), Rollen auf Schichtkarten (rules.shift_roles), Kundenakte. */
body.theme-krone .calendar-day a .calendar-info{display:block;font-size:11.5px;line-height:1.35;color:var(--kr-muted);margin-top:2px;font-variant-numeric:tabular-nums}
body.theme-krone .shift-roles{margin:6px 0 2px;font-size:13.5px;color:var(--kr-accent-dark)}
body.theme-krone .staff-add{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:0 0 16px}
body.theme-krone .customer-reach{margin:2px 0 14px;font-size:13.5px}
body.theme-krone .customer-reach a{color:var(--kr-accent-dark)}
body.theme-krone details.settings-technik{margin-top:18px}

/* Kalender: Gestrichelte Einträge (offene Angebote, Anfragen) sind nur über Rahmen und Fläche abgeschwächt, nicht über die
   Deckkraft. So bleiben Uhrzeit, Raum und Gäste mit mindestens 4,5:1 lesbar (vorher 3,48:1); der Rahmen hat 3,2:1 (neu-luecken-5).
   Tage ohne Eintrag zeigen ihr Datum an derselben Stelle wie belegte Tage, ohne den Innenabstand der Leerhinweise (neu-luecken-8). */
body.theme-krone .calendar-grid .calendar-day a.is-pipeline{opacity:1;background:transparent;border:1px dashed #9a8492}
body.theme-krone .calendar-grid .calendar-day.empty{padding:10px;line-height:inherit}
body.theme-krone .calendar-grid .calendar-day.empty:not(.outside){color:inherit}

/* Neuer Artikel: „Name des neuen Gangs“ erscheint erst bei „Neuer Gang …“ (live-13). Ohne :has() bleibt das Feld beschriftet sichtbar. */
body.theme-krone .course-field:not(:has(option[value="__neu__"]:checked)) .course-new{display:none}

/* Übersicht: Aktionsspalte breiter, damit „Küche & Service vorbereiten ↗“ einzeilig bleibt (neu-sprache-5); nur Desktop, die Handyregel aus workspace.css bleibt. */
@media(min-width:801px){body.theme-krone .work-event-row{grid-template-columns:54px minmax(0,1fr) auto 196px}}

/* Anfragen: Hinweis des Programms auf eine frühere Anfrage – getrennt vom Wortlaut des Kunden (neu-luecken-1). */
body.theme-krone .inbox-duplicate{margin:14px 0 0;font-size:13px;color:#7a4b16;background:#fdf6ea;border-left:3px solid #b17837;padding:8px 12px;border-radius:0 6px 6px 0}

/* ---------- Runde 3: Vorführung mit seinen Augen ---------- */
/* Erfolgsmeldungen bleiben im Bild, auch wenn die Seite nach dem Speichern zu einem Abschnitt springt (Paket, Wiedervorlage,
   Kontoauszug, Outlook-Link) – und blenden sich nach einigen Sekunden aus. Fehler bleiben wie sie sind. */
body.theme-krone main>.notice.success,body.theme-krone main>.notice.info{position:sticky;top:10px;z-index:40;box-shadow:0 10px 28px rgba(45,32,41,.16);animation:kr-notice-out .5s ease 9s forwards}
@keyframes kr-notice-out{to{opacity:0;visibility:hidden}}
/* Übersicht: die Marke steht schon im Logo – kein zusätzlicher Schriftzug über „Übersicht“. */
body.theme-krone .work-home-heading>div>.eyebrow{display:none}
body.theme-krone .event-row time strong{font-weight:500}
/* Angebots-Editor: Die Feier ist die Überschrift, die Nummer steht in der Unterzeile – nicht ein drittes Mal in der Karte. */
body.theme-krone .document-identity .document-number{display:none}
/* Gerichtszeilen: „Entfernen“ nicht rot, solange man nicht darauf zeigt – Preise und Gänge sollen auffallen. */
body.theme-krone .line-tools .remove-line{color:var(--kr-muted,#6f6a62)}
body.theme-krone .line-tools .remove-line:hover,body.theme-krone .line-tools .remove-line:focus-visible{color:#9a4530}
/* Neues Angebot: Schnellstart und Formular gleich breit; „15 Angaben übernommen“ als sichtbarer Moment. */
body.theme-krone .text-intake,body.theme-krone .direct-offer-form{max-width:940px}
body.theme-krone .intake-result h3{font-family:'Hind','Segoe UI',Arial,sans-serif;font-weight:600;font-size:20px;line-height:1.3;margin:4px 0 10px;color:var(--kr-ink,#2f2d2a)}
body.theme-krone .intake-facts li{font-size:13.5px}
body.theme-krone .intake-jump-line{margin:12px 0 0}
body.theme-krone .intake-jump{background:var(--kr-accent-dark,#66435a);color:#fff;border:0;border-radius:6px;min-height:42px;padding:8px 16px;font-weight:600;cursor:pointer}
body.theme-krone .intake-menu{scroll-margin-top:16px}
#menuvorschlag{scroll-margin-top:16px}
/* Kundenakte: Karten nur so hoch wie ihr Inhalt (keine leere Fläche neben den Stammdaten). */
body.theme-krone .customer-top{align-items:start}
/* Planung → Personal: Einteilen, Aufheben, Bearbeiten als schlichte Textlinks – nur „Besetzung bestätigen“ bleibt ein Knopf. */
body.theme-krone .grid>.card .dialog-launcher{border:0;background:transparent;min-height:32px;padding:4px 0;font-size:13px;color:var(--kr-accent-dark,#66435a);text-decoration:underline;text-underline-offset:3px;box-shadow:none}
body.theme-krone .grid>.card .dialog-launcher:hover{background:transparent;color:var(--kr-accent,#888d30)}
/* Raumbelegung und Kalender: Datumsauswahl in einer Zeile. */
body.theme-krone .rooms-nav form{display:flex;gap:8px;align-items:center;margin:0 0 0 auto}
body.theme-krone .rooms-nav form input[type=date]{width:170px;margin:0;min-height:42px}
body.theme-krone .rooms-nav form button{margin:0}
body.theme-krone .room-feed-done{margin:0 0 10px;padding:8px 12px;border-radius:6px;background:#eef3e3;color:#3c4a16;font-weight:600}
body.theme-krone .room-feed-single{margin:10px 0}
body.theme-krone .room-feed-single summary{cursor:pointer;font-size:13.5px}
body.theme-krone .room-feed-single label{display:block;margin:8px 0 0}
/* Anfragen: „Anderem Kunden zuordnen“ und „Datenschutz“ zurückhaltend – „Anfrage bearbeiten →“ ist die Hauptaktion. */
body.theme-krone .inbox-card .inbox-more{border:0;background:transparent;padding:0;margin:0;display:inline-block}
body.theme-krone .inbox-card .inbox-more>summary{min-height:42px;padding:0 14px;font-size:13.5px;color:var(--kr-accent-dark,#66435a);text-decoration:underline;text-underline-offset:3px;display:inline-flex;align-items:center}
body.theme-krone .inbox-privacy{border:0;border-top:1px solid var(--kr-line,#e2e1da);border-radius:0;background:transparent;margin-top:14px;padding:6px 0 0}
body.theme-krone .inbox-privacy>summary{font-size:12.5px;color:var(--kr-muted,#6f6a62)}
/* Kopfzeile: Kundenreaktionen lesbar statt in fünf Zeilen umbrochen. */
body.theme-krone .nav-reactions>div{min-width:420px}
body.theme-krone .nav-reactions>div a{white-space:normal;line-height:1.4}
/* Rechnungen & Zahlungen: Vorführknopf für den Beispiel-Kontoauszug und die Vorschau des Steuerberater-Pakets. */
body.theme-krone .sample-statement{margin-top:8px;align-items:center}
body.theme-krone .sample-statement small{flex:1 1 260px}
body.theme-krone .tax-package-preview{margin:4px 0 10px;padding:8px 12px;border-radius:6px;background:var(--kr-paper,#f6f5ef);font-size:13.5px}
body.theme-krone .invoice-existing{margin:8px 0 0;font-size:13.5px}
/* Vorführ-Leitfaden: Direktlinks je Block. */
body.theme-krone .script-links{display:flex;flex-wrap:wrap;gap:6px 14px;margin:6px 0 10px 52px}
body.theme-krone .script-links a{font-size:13.5px}
/* Feier im Gasthof: die Catering-Felder „Anlieferung / Aufbau“ und „Abbau / Abholung“ ausblenden – sie wirken sonst wie vergessene Pflichtangaben. */
body.theme-krone form:has(input[name=business_area][value=gasthof]:checked) label:has([name=delivery_time]),
body.theme-krone form:has(input[name=business_area][value=gasthof]:checked) label:has([name=pickup_time]),
body.theme-krone form:has(select[name=business_area] option[value=gasthof]:checked) label:has([name=delivery_time]),
body.theme-krone form:has(select[name=business_area] option[value=gasthof]:checked) label:has([name=pickup_time]){display:none}
/* Online-Freigabe: Preis pro Person unter dem Gesamtbetrag wie in seiner Übersicht. */
.paper-per-person{display:flex;justify-content:space-between;gap:12px;font-size:13.5px;margin-top:2px}
/* Editor: Der Titel steht schon als Seitenüberschrift – in der Karte nicht ein zweites Mal. */
body.theme-krone .document-identity h2[data-offer-title]{display:none}
/* ── Runde 4 (Bedienbarkeit) ─────────────────────────────────────────────────────────────────────────────────────────────
   Lesbarkeit: Grundschrift 15 px, keine Beschriftung unter 13 px (vorher stand auf Übersicht und Angebot gut die Hälfte der
   Wörter in 9–12,5 px). Hilfstexte bleiben grau, werden aber nicht mehr winzig. Präfix .operations-workspace, damit die Regeln
   auch gegen die später geladenen Editor- und Steuerelement-Stile gewinnen. */
body.theme-krone{font-size:15px}
body.theme-krone.operations-workspace main :is(small,.muted,.status-pill,.badge,.optional-badge,.eyebrow,.time-eyebrow,.journey-dot,.text-link,.text-button,.assign-hint,.staff-hint,.case-number){font-size:max(13px,.85em)}
body.theme-krone.operations-workspace main :is(th,dt){font-size:13px;letter-spacing:.01em;text-transform:none;font-weight:600}
body.theme-krone.operations-workspace .deadline-list li>strong,body.theme-krone.operations-workspace .deadline-list li>strong a{font-size:14.5px}
body.theme-krone.operations-workspace .deadline-list li>small{font-size:13.5px}
body.theme-krone.operations-workspace :is(.deadline-group h3 span,.attention-board small,.filter-row .muted,.home-footer span,.work-event-row time span){font-size:13px}
body.theme-krone.operations-workspace .work-event-row p{font-size:14px}
body.theme-krone.operations-workspace .segmented a,body.theme-krone.operations-workspace .segmented a span{font-size:14px}
/* Angebot: Beschreibung, „Mehr Angaben“, Feldbeschriftungen und Zeilenknöpfe */
body.theme-krone.operations-workspace .position-description p,body.theme-krone.operations-workspace .position-description .staff-hours{font-size:13.5px}
body.theme-krone.operations-workspace .work-line-more>summary,body.theme-krone.operations-workspace .work-line-more>summary>span,body.theme-krone.operations-workspace .work-line-more label{font-size:13px}
body.theme-krone.operations-workspace .work-line label>span:not(.sr-only),body.theme-krone.operations-workspace .position-amount small,body.theme-krone.operations-workspace .work-block-heading>span{font-size:13px}
body.theme-krone.operations-workspace .line-tools .text-button,body.theme-krone.operations-workspace .line-tools [data-remove-confirm]{font-size:13px}
body.theme-krone.operations-workspace :is(.position-number,.work-brief p,.work-brief summary em,.work-context a,.work-links a,.work-variants span,.work-variants a,.customer-reach a,.room-picker legend,.work-summary>span){font-size:13.5px}
body.theme-krone.operations-workspace .work-panel dd,body.theme-krone.operations-workspace main dl:not(.stat) dd{font-size:max(13.5px,1em)}
/* Anfragen und Ablauf */
body.theme-krone.operations-workspace :is(.inbox-note,.inbox-facts){font-size:14px}
body.theme-krone.operations-workspace :is(.inbox-state small,.inbox-urgency strong,.inbox-privacy>summary){font-size:13px}
body.theme-krone.operations-workspace :is(main aside p,.inquiry-said small,.capacity-note,.picker-chosen,.inquiry-contact,.inquiry-contact a,.inquiry-contact span){font-size:13.5px}
body.theme-krone.operations-workspace :is(.flow-footer,.flow-footer a,.flow-footer span,.journey a span,.case-context span){font-size:13px}
/* Übrige Seiten: Prüflisten, Kennzahlen, Personal-Karten, Raumlegende, Kalender (Zellen bleiben einzeilig lesbar). */
body.theme-krone.operations-workspace .billing-checks li>strong,body.theme-krone.operations-workspace .billing-checks li>strong a{font-size:14.5px}
body.theme-krone.operations-workspace :is(.stat span,a.stat span){font-size:13px;letter-spacing:.4px}
body.theme-krone.operations-workspace main .card small,body.theme-krone.operations-workspace .rooms-legend,body.theme-krone.operations-workspace .rooms-legend span{font-size:13px}
body.theme-krone.operations-workspace .calendar-head{font-size:13px}
body.theme-krone.operations-workspace :is(.calendar-day strong,.calendar-day>a,.calendar-day a .calendar-info){font-size:13px}
body.theme-krone.operations-workspace .calendar-day p{font-size:13px}
/* Seiteneinleitung: ein Satz unter der Überschrift, wofür die Seite da ist (Profil page_intros). */
body.theme-krone .page-heading .page-intro{margin:8px 0 0;font-size:15.5px;max-width:70ch}
/* Ungespeichert-Schutz (guard-unsaved.js): sichtbar am Bereich, Speichern-Knopf hervorgehoben. */
body.theme-krone .unsaved-note{display:inline-flex;align-items:center;gap:7px;margin:0 12px 0 0;font-size:13.5px;font-weight:600;color:#8a4b12}
body.theme-krone .unsaved-note::before{content:"";width:8px;height:8px;border-radius:50%;background:#d9822b;flex:none}
body.theme-krone .needs-save{box-shadow:0 0 0 3px rgba(217,130,43,.4)!important}
/* Übersicht: Die Knopfreihe „Anfragen · Standorte · Angebote …“ doppelt das Menü, leere Kacheln (0) lenken nur ab. */
body.theme-krone .work-shortcuts{display:none}
body.theme-krone .attention-board a.is-empty{display:none}
/* Hilfe: Link in der Kopfzeile, Hinweis „Erste Schritte“ auf der Übersicht, Seite mit Kurzanleitung (druckbar). */
body.theme-krone .help-link{display:inline-flex;align-items:center;min-height:40px;margin:0 14px 0 auto;padding:0 14px;border:1px solid var(--kr-line);border-radius:999px;color:var(--kr-accent-dark);font-weight:600;font-size:14px;text-decoration:none;background:#fff}
body.theme-krone .help-link:hover,body.theme-krone .help-link.active{background:var(--kr-sand);border-color:var(--kr-accent)}
body.theme-krone .help-banner{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin:0 0 22px;padding:14px 18px;border:1px solid var(--kr-line);border-left:4px solid var(--kr-accent);border-radius:10px;background:#fff;color:var(--kr-ink);text-decoration:none;font-size:15px}
body.theme-krone .help-banner span{color:var(--kr-muted)}
body.theme-krone .help-banner em{margin-left:auto;font-style:normal;font-weight:600;color:var(--kr-accent-dark)}
body.theme-krone .help-banner:hover{border-color:var(--kr-accent)}
body.theme-krone .help-actions{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 22px}
body.theme-krone .help-steps{margin:0 0 30px}
body.theme-krone .help-steps h2{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
body.theme-krone .help-step-list{list-style:none;counter-reset:step;margin:14px 0 0;padding:0}
body.theme-krone .help-step-list>li{counter-increment:step;display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;padding:14px 0 14px 48px;border-top:1px solid var(--kr-line);position:relative}
body.theme-krone .help-step-list>li::before{content:counter(step);position:absolute;left:0;top:16px;width:32px;height:32px;border-radius:50%;background:var(--kr-sand);color:var(--kr-accent-dark);font-weight:700;display:grid;place-items:center}
body.theme-krone .help-step-list>li.is-done::before{content:"✓";background:#e3ecd2;color:#3c4a16}
body.theme-krone .help-step-list>li.is-done .help-step-text strong{text-decoration:line-through;text-decoration-color:rgba(0,0,0,.35)}
body.theme-krone .help-step-text{flex:1 1 380px}
body.theme-krone .help-step-text p{margin:2px 0 0;color:var(--kr-muted)}
body.theme-krone .help-step-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
body.theme-krone .help-step-actions form{margin:0}
body.theme-krone .help-guide>h2{margin:0 0 6px}
body.theme-krone .help-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:18px;margin-top:16px}
body.theme-krone .help-card{margin:0;display:flex;flex-direction:column}
body.theme-krone .help-card h3{margin:0 0 4px;font-size:19px}
body.theme-krone .help-where{margin:0 0 10px;color:var(--kr-accent-dark);font-size:14px;font-weight:600}
body.theme-krone .help-card ol{margin:0 0 10px;padding-left:22px}
body.theme-krone .help-card li{margin:0 0 7px;line-height:1.55}
body.theme-krone .help-tip{margin:0 0 10px;padding:8px 12px;border-radius:6px;background:var(--kr-sand);font-size:14px}
body.theme-krone .help-go{margin-top:auto;font-weight:600;color:var(--kr-accent-dark)}
body.theme-krone .help-footer{margin-top:26px}
@media (max-width:720px){body.theme-krone .help-link{margin:0 8px 0 auto;padding:0 10px;min-height:36px}body.theme-krone .help-banner em{margin-left:0}body.theme-krone .help-step-list>li{padding-left:42px}}
@media print{
  body.theme-krone .workspace-header,body.theme-krone .skip-link,body.theme-krone .help-actions,body.theme-krone .help-steps,body.theme-krone .help-go,body.theme-krone .notice{display:none!important}
  body.theme-krone{background:#fff;font-size:12pt}
  body.theme-krone main{padding:0!important;max-width:none!important}
  body.theme-krone .help-grid{display:block}
  body.theme-krone .help-card{break-inside:avoid;box-shadow:none;border:1px solid #bbb;margin:0 0 10pt;padding:10pt 12pt}
}
/* Speisen & Preise: Lager, Lieferanten und freie Zusatzfelder nutzt die Krone nicht (keine Inventur) – ausgeblendet, die Werte
   bleiben im Formular und werden unverändert mitgespeichert. */
body.theme-krone .catalog label:has(select[name=bestand_modus]),body.theme-krone .catalog label:has(select[name=bestand_modus])+p.muted,
body.theme-krone .catalog label:has(select[name=default_lieferant_id]),body.theme-krone .catalog label:has(input[name=vorlauf_tage]),
body.theme-krone .catalog details.disclosure:has(.field-rows input[name^=extra_key_]){display:none}
