/* Formular-Standard: zentrale Styles fuer Eingabeformulare. */

main.formular-standard-seite{min-width:0;}

.formular-standard{min-width:0;}


/* Aus public/stoerung-add.php Block 1 zentralisiert */

.vh-feed-nav{margin:14px 0 0 0;padding:0 0 12px 0;border-bottom:1px solid #dbe4ef;}
#vh-pillbar{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end;margin:0 0 -13px 0;background:transparent;border:0;padding:0;}
#vh-pillbar .vh-pill-item{display:inline-flex!important;align-items:stretch!important;gap:0!important;border-radius:8px 8px 0 0!important;}
#vh-pillbar .vh-pill-btn{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border-radius:8px 8px 0 0;text-decoration:none;border:1px solid #e5e7eb;background:#ffffff;color:#0f172a;font-size:14px;line-height:1.1;cursor:pointer;transition:transform .04s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;}
#vh-pillbar .vh-pill-btn:hover,#vh-pillbar .vh-pill-plus:hover{box-shadow:0 1px 2px rgba(0,0,0,.06);transform:translateY(-1px);}
#vh-pillbar .vh-pill-plus{display:none;align-items:center;justify-content:center;padding:0 10px;min-width:28px;border-radius:0 8px 0 0;border:1px solid #e5e7eb;border-left:none;text-decoration:none;font-weight:700;user-select:none;cursor:pointer;background:#ffffff;color:#0f172a;transition:transform .04s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;margin-left:-1px;}
#vh-pillbar .vh-pill-item .vh-pill-btn.active,#vh-pillbar .vh-pill-item .vh-pill-btn[aria-pressed="true"]{border-top-right-radius:0!important;border-bottom-right-radius:0!important;background:#0ea5e9!important;color:#ffffff!important;border-color:#0284c7!important;box-shadow:0 0 0 2px rgba(2,132,199,.25) inset!important;font-weight:600!important;}
#vh-pillbar .vh-pill-item .vh-pill-btn.active + .vh-pill-plus,#vh-pillbar .vh-pill-item .vh-pill-btn[aria-pressed="true"] + .vh-pill-plus{display:inline-flex!important;background:#16a34a!important;color:#ffffff!important;border-color:#15803d!important;box-shadow:0 0 0 2px rgba(22,163,74,.22) inset!important;}
.vh-feed{margin:8px 0 0 0;}
.vh-feed-panel{display:none;}
.vh-feed-panel.is-active{display:block;}
.bild-upload-modal .dialog{width:min(1080px,calc(100vw - 32px));max-width:1080px;}
.bild-upload-modal .panel{padding:18px;}
.bild-upload-modal .modal-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;}
.bild-upload-modal .modal-title{margin:0;}
.bild-upload-grid{display:grid;grid-template-columns:1fr;gap:14px;align-items:start;}
.bild-dropzone{border:2px dashed #94a3b8;border-radius:14px;background:#f8fafc;padding:22px;text-align:center;transition:border-color .2s ease, background .2s ease;}
.bild-dropzone.is-dragover{border-color:#0284c7;background:#e0f2fe;}
.bild-dropzone__titel{font-weight:700;margin-bottom:6px;}
.bild-dropzone__text{font-size:13px;color:#64748b;margin-bottom:12px;}
.bild-dropzone input[type=file]{position:absolute;left:-9999px;width:1px;height:1px;opacity:0;}
.bild-upload-hinweis{font-size:12px;color:#64748b;margin-top:8px;line-height:1.35;}
.bild-upload-hinweisbox{border:1px dashed #cbd5e1;border-radius:12px;background:#f8fafc;color:#64748b;padding:14px;font-size:13px;}
.problem-leer-aktion{width:100%;display:flex;align-items:center;justify-content:center;gap:8px;border:1px dashed #cbd5e1;border-radius:12px;background:#f8fafc;color:#334155;padding:14px;cursor:pointer;font:inherit;font-weight:600;}
.problem-leer-aktion:hover{background:#eef2ff;border-color:#c7d2fe;color:#1d4ed8;}
.problem-leer-aktion:disabled{cursor:not-allowed;opacity:.65;color:#64748b;background:#f8fafc;}
.bild-upload-vorschau{min-height:82px;border:1px solid #e5e7eb;border-radius:12px;background:#fff;padding:12px;}
.bild-upload-kacheln{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
.bild-upload-kachel{border:1px solid #e5e7eb;border-radius:12px;background:#fff;padding:10px;min-width:0;}
.bild-upload-thumb{height:140px;border:1px solid #cbd5e1;border-radius:10px;background:#f8fafc;overflow:hidden;display:flex;align-items:center;justify-content:center;margin:0;color:#64748b;font-size:12px;position:relative;}
.bild-upload-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.bild-upload-dateiname{font-size:12px;color:#475569;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:6px;}
.bild-upload-kachel textarea{width:100%;min-height:68px;resize:vertical;}
.bild-upload-entfernen{width:100%;margin-top:8px;}
.bild-upload-modal .modal-footer{display:flex;justify-content:flex-end;gap:8px;margin-top:16px;}
.kpi-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;padding-bottom:2px;margin:12px 0 12px 0;}
.kpi-card{padding:12px;border-radius:10px;border:1px solid rgba(0,0,0,.08);background:#f8fafc;text-align:left;min-width:0;}
.kpi-label{font-size:12px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;margin-bottom:6px;}
.kpi-card select,.kpi-card input{width:100%;}
.stoerung-anlegen-beschreibung textarea{width:100%;min-height:120px;}
.formular-hinweis{border:1px solid #dbeafe;border-radius:12px;background:#eff6ff;color:#1e3a8a;padding:12px 14px;margin:0 0 12px 0;font-size:13px;line-height:1.4;}
.cr-pflichtfortschritt{display:grid;gap:8px;border:1px solid #dbe4ef;border-radius:12px;background:#ffffff;padding:10px 12px;margin:12px 0 0 0;box-shadow:0 1px 2px rgba(15,23,42,.04);}
.cr-pflichtfortschritt-kopf{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;color:#334155;font-weight:600;}
.cr-pflichtfortschritt-zahl{white-space:nowrap;color:#0f172a;}
.cr-pflichtfortschritt-spur{height:8px;border-radius:999px;background:#e5e7eb;overflow:hidden;}
.cr-pflichtfortschritt-balken{height:100%;width:0%;border-radius:inherit;background:#0ea5e9;transition:width .2s ease;}
.cr-pflichtfortschritt-hinweis{font-size:12px;color:#64748b;line-height:1.35;}
.cr-pflichtfortschritt.is-complete .cr-pflichtfortschritt-balken{background:#16a34a;}
.cr-pflichtfortschritt.is-complete .cr-pflichtfortschritt-hinweis{color:#166534;}
.cr-invalid{border-color:#c62828!important;box-shadow:inset 0 0 0 1px #c62828;}
.formular-textarea-voll{width:100%;box-sizing:border-box;min-height:220px;resize:vertical;}
.uebersicht-kpi-row{margin-top:12px;}
@media (max-width: 1100px){ .kpi-row{grid-template-columns:repeat(3,minmax(0,1fr));}.bild-upload-kacheln{grid-template-columns:repeat(2,minmax(0,1fr));} }
@media (max-width: 640px){ .kpi-row,.bild-upload-kacheln{grid-template-columns:1fr;} }


/* Aus public/problem-add.php Block 1 zentralisiert */

.status-pill{display:inline-block;padding:2px 8px;border-radius:999px;font-size:12px;line-height:18px;font-weight:600;}
.status-pill.green{background:#d1fae5;color:#065f46;}
.status-pill.yellow{background:#fef3c7;color:#92400e;}
.toolbar{display:flex;align-items:center;gap:8px;margin-bottom:8px;}
.toolbar label{font-weight:600;}

#vh-pillbar .vh-pill-plus[aria-disabled="true"]{opacity:.5;cursor:not-allowed;pointer-events:none;}


/* Aus public/problem-add.php Block 2 zentralisiert */

select option { color: #111 !important; background: #fff !important; }
select, .form-control { color: #111; }


/* Aus public/problem-add.php Block 3 zentralisiert */

.badge-time{display:inline-block;min-width:44px;padding:2px 8px;border-radius:9999px;text-align:center;font-weight:600;border:1px solid rgba(0,0,0,.2)}
.b-yellow{background:#fef9c3;border-color:#f59e0b;color:#92400e}
.b-orange{background:#ffedd5;border-color:#f97316;color:#9a3412}
.b-red{background:#fee2e2;border-color:#ef4444;color:#7f1d1d}
.b-gray{background:#e5e7eb;border-color:#9ca3af;color:#374151}


/* Aus public/problem-add.php Block 4 zentralisiert */

.vh-feed-nav{margin:14px 0 0 0;padding:0 0 12px 0;border-bottom:1px solid #dbe4ef;}
#vh-pillbar{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end;margin:0 0 -13px 0;background:transparent;border:0;padding:0;}
#vh-pillbar .vh-pill-item{display:inline-flex!important;align-items:stretch!important;gap:0!important;border-radius:8px 8px 0 0!important;}
#vh-pillbar .vh-pill-btn{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border-radius:8px 8px 0 0;text-decoration:none;border:1px solid #e5e7eb;background:#ffffff;color:#0f172a;font-size:14px;line-height:1.1;cursor:pointer;transition:transform .04s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;}
#vh-pillbar .vh-pill-btn:hover,#vh-pillbar .vh-pill-plus:hover{box-shadow:0 1px 2px rgba(0,0,0,.06);transform:translateY(-1px);}
#vh-pillbar .vh-pill-plus{display:none;align-items:center;justify-content:center;padding:0 10px;min-width:28px;border-radius:0 8px 0 0;border:1px solid #e5e7eb;border-left:none;text-decoration:none;font-weight:700;user-select:none;cursor:pointer;background:#ffffff;color:#0f172a;transition:transform .04s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;margin-left:-1px;}
#vh-pillbar .vh-pill-item .vh-pill-btn.active,#vh-pillbar .vh-pill-item .vh-pill-btn[aria-pressed="true"]{border-top-right-radius:0!important;border-bottom-right-radius:0!important;background:#0ea5e9!important;color:#ffffff!important;border-color:#0284c7!important;box-shadow:0 0 0 2px rgba(2,132,199,.25) inset!important;font-weight:600!important;}
#vh-pillbar .vh-pill-item .vh-pill-btn.active + .vh-pill-plus,#vh-pillbar .vh-pill-item .vh-pill-btn[aria-pressed="true"] + .vh-pill-plus{display:inline-flex!important;background:#16a34a!important;color:#ffffff!important;border-color:#15803d!important;box-shadow:0 0 0 2px rgba(22,163,74,.22) inset!important;}
#vh-pillbar .vh-pill-plus[aria-disabled="true"]{opacity:.5;cursor:not-allowed;pointer-events:none;}
.vh-feed{margin:8px 0 0 0;}
.vh-feed-panel{display:none;}
.vh-feed-panel.is-active{display:block;}
.kpi-row{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;padding-bottom:2px;margin:12px 0 12px 0}
.kpi-card{padding:12px;border-radius:10px;border:1px solid rgba(0,0,0,.08);background:#f8fafc;text-align:center;min-width:0}
.kpi-label{font-size:12px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kpi-wert{font-size:18px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bilder-tabelle td{vertical-align:top;}
.bild-vorschau{width:120px;height:90px;object-fit:cover;border:1px solid #ddd;border-radius:8px;padding:3px;background:#fff;cursor:zoom-in;}
.bild-beschreibung{white-space:pre-wrap;}
.bild-aktionen form{margin:0;}
.bild-upload-modal .dialog{width:min(1080px,calc(100vw - 32px));max-width:1080px;}
.bild-upload-modal .panel{padding:18px;}
.bild-upload-modal .modal-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;}
.bild-upload-modal .modal-title{margin:0;}
.bild-upload-grid{display:grid;grid-template-columns:1fr;gap:14px;align-items:start;}
.bild-dropzone{border:2px dashed #94a3b8;border-radius:14px;background:#f8fafc;padding:22px;text-align:center;transition:border-color .2s ease, background .2s ease;}
.bild-dropzone.is-dragover{border-color:#0284c7;background:#e0f2fe;}
.bild-dropzone__titel{font-weight:700;margin-bottom:6px;}
.bild-dropzone__text{font-size:13px;color:#64748b;margin-bottom:12px;}
.bild-dropzone input[type=file]{position:absolute;left:-9999px;width:1px;height:1px;opacity:0;}
.bild-upload-hinweis{font-size:12px;color:#64748b;margin-top:8px;line-height:1.35;}
.bild-upload-hinweisbox{border:1px dashed #cbd5e1;border-radius:12px;background:#f8fafc;color:#64748b;padding:14px;font-size:13px;}
.bild-upload-vorschau{min-height:82px;border:1px solid #e5e7eb;border-radius:12px;background:#fff;padding:12px;}
.bild-upload-kacheln{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
.bild-upload-kachel{border:1px solid #e5e7eb;border-radius:12px;background:#fff;padding:10px;min-width:0;}
.bild-upload-thumb{height:140px;border:1px solid #cbd5e1;border-radius:10px;background:#f8fafc;overflow:hidden;display:flex;align-items:center;justify-content:center;margin:0;color:#64748b;font-size:12px;position:relative;}
.bild-upload-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.bild-upload-dateiname{font-size:12px;color:#475569;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:6px;}
.bild-upload-kachel textarea{width:100%;min-height:68px;resize:vertical;}
.bild-upload-entfernen{width:100%;margin-top:8px;}
.bild-upload-modal .modal-footer{display:flex;justify-content:flex-end;gap:8px;margin-top:16px;}
.eingabe-kpi{grid-template-columns:repeat(4,minmax(0,1fr));}
.eingabe-kpi .kpi-card{text-align:left;}
.eingabe-kpi .kpi-label{display:block;margin-bottom:6px;}
.eingabe-kpi select,.eingabe-kpi input{width:100%;}
.problem-anlegen-beschreibung{margin-bottom:12px;}
.problem-anlegen-beschreibung textarea{width:100%;min-height:120px;}
.formular-hinweis{border:1px solid #dbeafe;border-radius:12px;background:#eff6ff;color:#1e3a8a;padding:12px 14px;margin:0 0 12px 0;font-size:13px;line-height:1.4;}
.cr-pflichtfortschritt{display:grid;gap:8px;border:1px solid #dbe4ef;border-radius:12px;background:#ffffff;padding:10px 12px;margin:12px 0 0 0;box-shadow:0 1px 2px rgba(15,23,42,.04);}
.cr-pflichtfortschritt-kopf{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;color:#334155;font-weight:600;}
.cr-pflichtfortschritt-zahl{white-space:nowrap;color:#0f172a;}
.cr-pflichtfortschritt-spur{height:8px;border-radius:999px;background:#e5e7eb;overflow:hidden;}
.cr-pflichtfortschritt-balken{height:100%;width:0%;border-radius:inherit;background:#0ea5e9;transition:width .2s ease;}
.cr-pflichtfortschritt-hinweis{font-size:12px;color:#64748b;line-height:1.35;}
.cr-pflichtfortschritt.is-complete .cr-pflichtfortschritt-balken{background:#16a34a;}
.cr-pflichtfortschritt.is-complete .cr-pflichtfortschritt-hinweis{color:#166534;}
.cr-invalid{border-color:#c62828!important;box-shadow:inset 0 0 0 1px #c62828;}
.formular-textarea-voll{width:100%;box-sizing:border-box;min-height:220px;resize:vertical;}
.uebersicht-kpi-row{margin-top:12px;}
 .problem-kalkulation-grid{display:grid;grid-template-columns:1fr;gap:12px;}
.problem-projekt-kalkulation{border:1px solid #dbe3ef;border-radius:14px;background:#fff;padding:12px;box-shadow:0 6px 18px rgba(15,23,42,.04);}
.problem-projekt-kalkulation.is-active{border-color:#93c5fd;box-shadow:0 8px 22px rgba(37,99,235,.10);}
.problem-projekt-kopf{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;}
.problem-projekt-check{display:flex;align-items:center;gap:8px;font-weight:700;margin:0;cursor:pointer;}
.problem-projekt-check input{width:18px;height:18px;}
.problem-projekt-kalkulation-body{display:grid;grid-template-columns:1fr;gap:14px;align-items:start;margin-top:12px;}
.problem-projekt-eingaben{border:1px solid #e5e7eb;border-radius:12px;background:#f8fafc;padding:12px;display:grid;gap:12px;}
.problem-subprojekt-tabelle{width:100%;border-collapse:collapse;font-size:13px;background:#fff;}
.problem-subprojekt-tabelle th,.problem-subprojekt-tabelle td{border-top:1px solid #e5e7eb;padding:8px;vertical-align:middle;}
.problem-subprojekt-tabelle thead th{background:#f8fafc;color:#334155;font-weight:700;text-align:left;}
.problem-subprojekt-tabelle td:nth-child(n+2),.problem-subprojekt-tabelle th:nth-child(n+2){text-align:right;}
.problem-subprojekt-eintrag.is-active{background:#eff6ff;}
.problem-subprojekt-check{display:flex;align-items:center;gap:8px;font-weight:700;margin:0;cursor:pointer;}
.problem-subprojekt-check input{width:18px;height:18px;}
.problem-subprojekt-eingabezelle input{width:100%;box-sizing:border-box;text-align:right;}
.problem-subprojekt-eingabezelle[data-calc-einheit-body]{visibility:hidden;pointer-events:none;}
.problem-subprojekt-eintrag.is-active .problem-subprojekt-eingabezelle[data-calc-einheit-body]{visibility:visible;pointer-events:auto;}
.problem-projekt-eingabetabelle{width:100%;border-collapse:collapse;font-size:13px;}
.problem-projekt-eingabetabelle th,.problem-projekt-eingabetabelle td{border-top:1px solid #e5e7eb;padding:9px 8px;vertical-align:middle;}
.problem-projekt-eingabetabelle tr:first-child th,.problem-projekt-eingabetabelle tr:first-child td{border-top:0;}
.problem-projekt-eingabetabelle th{width:75%;font-weight:600;text-align:left;color:#334155;}
.problem-projekt-eingabetabelle td{width:25%;text-align:right;}
.problem-projekt-eingabetabelle input{width:100%;box-sizing:border-box;text-align:right;}
.problem-projekt-eingabetabelle .readonly-wert{display:block;font-weight:700;color:#0f172a;white-space:nowrap;}
.problem-projekt-ergebnisse{min-width:0;}
.problem-projekt-jahre{width:100%;border-collapse:collapse;font-size:12px;}
.problem-projekt-jahre th,.problem-projekt-jahre td{border-top:1px solid #e5e7eb;padding:7px 8px;text-align:right;vertical-align:middle;}
.problem-projekt-jahre th:first-child,.problem-projekt-jahre td:first-child{text-align:left;}
.problem-projekt-jahre thead th{background:#f8fafc;color:#334155;font-weight:700;}
.problem-projekt-jahre tfoot th,.problem-projekt-jahre tfoot td{background:#eef2ff;font-weight:800;}
.problem-projekt-skala{min-width:160px;}
.problem-projekt-skala-track{height:16px;border-radius:999px;background:linear-gradient(90deg,#f1f5f9,#e2e8f0);overflow:hidden;border:1px solid #dbe3ef;box-shadow:inset 0 1px 2px rgba(15,23,42,.08);}
.problem-projekt-skala-track i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#38bdf8,#2563eb);transition:width .18s ease;}
.problem-kalkulation-zusammenfassung{border:1px solid #dbe3ef;border-radius:14px;background:#fff;margin-top:14px;padding:12px;box-shadow:0 6px 18px rgba(15,23,42,.04);}
.problem-kalkulation-zusammenfassung-kopf{font-weight:800;margin-bottom:8px;color:#0f172a;}
.problem-projekt-anteile{width:100%;border-collapse:collapse;font-size:12px;}
.problem-projekt-anteile th,.problem-projekt-anteile td{border-top:1px solid #e5e7eb;padding:8px;text-align:right;vertical-align:middle;}
.problem-projekt-anteile th:first-child,.problem-projekt-anteile td:first-child{text-align:left;}
.problem-projekt-anteile thead th{background:#f8fafc;color:#334155;font-weight:700;}
.problem-projekt-anteile tfoot th,.problem-projekt-anteile tfoot td{background:#eef2ff;font-weight:800;}
.problem-projekt-anteil{display:grid;grid-template-columns:70px minmax(120px,1fr);gap:8px;align-items:center;}
.problem-projekt-anteil-track{height:14px;border-radius:999px;background:#e2e8f0;overflow:hidden;border:1px solid #dbe3ef;}
.problem-projekt-anteil-track i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#38bdf8,#2563eb);transition:width .18s ease;}
.problem-analyse-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:14px;}
.problem-analyse-card{border:1px solid #dbe3ef;border-radius:14px;background:#fff;padding:12px;box-shadow:0 6px 18px rgba(15,23,42,.04);}
.problem-analyse-label{font-size:12px;color:#64748b;margin-bottom:4px;}
.problem-analyse-wert{font-size:20px;font-weight:800;color:#0f172a;}
.problem-analyse-bar{height:18px;border-radius:999px;overflow:hidden;background:#e2e8f0;border:1px solid #dbe3ef;display:flex;}
.problem-analyse-bar span{display:block;height:100%;}
.problem-analyse-bar .verlust{background:linear-gradient(90deg,#fb7185,#dc2626);}
.problem-analyse-bar .gewinn{background:linear-gradient(90deg,#34d399,#16a34a);}
.problem-analyse-table{width:100%;border-collapse:collapse;font-size:12px;}
.problem-analyse-table th,.problem-analyse-table td{border-top:1px solid #e5e7eb;padding:8px;text-align:right;vertical-align:middle;}
.problem-analyse-table th:first-child,.problem-analyse-table td:first-child{text-align:left;}
.problem-analyse-table thead th{background:#f8fafc;color:#334155;font-weight:700;}
.problem-analyse-skala{min-width:160px;}
.problem-analyse-skala-track{height:14px;border-radius:999px;background:#e2e8f0;overflow:hidden;border:1px solid #dbe3ef;}
.problem-analyse-skala-track i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#38bdf8,#2563eb);}
.bild-upload-leer-tabelle{width:100%;margin:0;}
.bild-upload-leer-tabelle td{text-align:center;color:#64748b;padding:14px;border:1px dashed #cbd5e1;background:#f8fafc;}
.problem-schliessen-zusammenfassung{width:100%;border-collapse:collapse;margin:12px 0;font-size:13px;}
.problem-schliessen-zusammenfassung th,.problem-schliessen-zusammenfassung td{border-top:1px solid #e5e7eb;padding:8px;text-align:left;}
.problem-schliessen-zusammenfassung th{width:45%;color:#334155;background:#f8fafc;}
.problem-abschluss-auswahl{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px;}
.problem-abschluss-option{border:1px solid #dbe3ef;border-radius:12px;padding:10px;background:#fff;display:flex;gap:8px;align-items:flex-start;cursor:pointer;}
.problem-abschluss-option strong{display:block;margin-bottom:2px;}
@media (max-width: 720px){ .problem-abschluss-auswahl{grid-template-columns:1fr;} .problem-projekt-anteil{grid-template-columns:1fr;} }
.problem-projekt-skala-track.is-summe{opacity:.72;}
.projekt-sub-badge{display:inline-flex;align-items:center;border-radius:999px;background:#eef2ff;color:#3730a3;border:1px solid #c7d2fe;font-size:11px;padding:1px 6px;}
.massnahmen-tabelle th.massnahmen-center,.massnahmen-tabelle td.massnahmen-center{text-align:center;vertical-align:middle;}
.stoerungen-verknuepfung-vorschlaege{max-height:52vh;overflow:auto;padding-right:0;}
.stoerungen-verknuepfung-tabelle{width:100%;border-collapse:collapse;}
.stoerungen-verknuepfung-tabelle th,.stoerungen-verknuepfung-tabelle td{vertical-align:middle;}
.stoerungen-verknuepfung-tabelle th:last-child,.stoerungen-verknuepfung-tabelle td:last-child{text-align:center;}
.stoerungen-verknuepfung-vorschlaege .stoerungen-verknuepfung-tabelle thead th{position:sticky;top:0;z-index:3;background:#f8fafc;box-shadow:0 1px 0 #e5e7eb;}
.stoerung-vorschlag-meta{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:3px;color:#64748b;font-size:12px;}
.problem-leer-aktion{width:100%;display:flex;align-items:center;justify-content:center;gap:8px;border:1px dashed #cbd5e1;border-radius:12px;background:#f8fafc;color:#334155;padding:14px;cursor:pointer;font:inherit;font-weight:600;}
.problem-leer-aktion:hover{background:#eef2ff;border-color:#c7d2fe;color:#1d4ed8;}
.problem-leer-aktion:disabled{cursor:not-allowed;opacity:.65;color:#64748b;background:#f8fafc;}

.problem-aenderung-suche{display:grid;gap:10px;}
.problem-aenderung-suche input{width:100%;box-sizing:border-box;}
.problem-aenderung-vorschlaege{max-height:52vh;overflow:auto;padding-right:0;}
.problem-aenderung-tabelle{width:100%;border-collapse:collapse;}
.problem-aenderung-tabelle th,.problem-aenderung-tabelle td{vertical-align:middle;}
.problem-aenderung-vorschlaege .problem-aenderung-tabelle thead th{position:sticky;top:0;z-index:3;background:#f8fafc;box-shadow:0 1px 0 #e5e7eb;}
.problem-aenderung-tabelle th:last-child,.problem-aenderung-tabelle td:last-child{text-align:center;}
.problem-aenderung-vorschlag.is-hidden{display:none;}
.problem-aenderung-leer{border:1px dashed #cbd5e1;border-radius:12px;background:#f8fafc;padding:14px;text-align:center;color:#64748b;}
@media (max-width: 1100px){ .problem-projekt-kalkulation-body{grid-template-columns:1fr;} }
@media (max-width: 900px){ .problem-projekt-kopf{align-items:flex-start;flex-direction:column;} .problem-projekt-jahre{min-width:820px;} .problem-subprojekt-eingaben{grid-template-columns:1fr;} }
@media (max-width: 1000px){ .bild-upload-kacheln{grid-template-columns:repeat(2,minmax(0,1fr));}.eingabe-kpi{grid-template-columns:repeat(2,minmax(0,1fr));} }
@media (max-width: 640px){ .bild-upload-kacheln,.eingabe-kpi{grid-template-columns:1fr;} }
@media (max-width: 1200px){ .kpi-row{grid-template-columns:repeat(3,minmax(0,1fr));} .kpi-row.eingabe-kpi{grid-template-columns:repeat(4,minmax(0,1fr));} }
@media (max-width: 1000px){ .kpi-row.eingabe-kpi{grid-template-columns:repeat(2,minmax(0,1fr));} }
@media (max-width: 720px){ .kpi-row{grid-template-columns:repeat(2,minmax(0,1fr));} .kpi-row.eingabe-kpi{grid-template-columns:1fr;} }


/* Aus public/aenderungsantrag-neu.php Block 1 zentralisiert */

.cr-invalid{border:1px solid #c62828 !important; box-shadow:inset 0 0 0 1px #c62828;}
.cr-plan-box{display:flex; align-items:center; gap:12px; flex-wrap:nowrap;}
.cr-plan-invalid .cr-plan-buttons{outline:1px solid #c62828; outline-offset:2px; border-radius:8px;}
.cr-plan-buttons{display:flex; gap:8px; flex-wrap:nowrap; align-items:center;}
.cr-plan-buttons .btn-task-plan{white-space:nowrap;}
.cr-plan-buttons .btn.is-active{background:#e8f5e9; border-color:#a5d6a7; color:#2e7d32;}
.cr-plan-date{max-width:220px; flex:0 0 auto;}
.cr-plan-date input[disabled]{background:#f5f5f5; color:#666; cursor:not-allowed;}
.cr-entwurf-sections{display:grid;gap:12px;margin:0 0 14px 0;}
.cr-entwurf-sections.is-collapsed{display:none;}
.cr-draft-hinweis{margin:0; background:#fff;}
.cr-draft-kpi-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 12px 0;}
.cr-draft-kpi-card{padding:12px;border-radius:10px;border:1px solid rgba(0,0,0,.08);background:#f8fafc;min-width:0;}
.cr-draft-kpi-label{font-size:12px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:5px;}
.cr-draft-kpi-wert{font-size:17px;font-weight:700;color:#0f172a;line-height:1.35;overflow-wrap:anywhere;}
.cr-draft-kpi-wert--text{font-size:14px;font-weight:600;white-space:pre-wrap;color:#334155;max-height:112px;overflow:auto;}
.cr-draft-info-text{white-space:pre-wrap;color:#334155;line-height:1.45;}
.cr-draft-list{display:grid; gap:10px; margin:14px 0;}
.cr-draft-link{display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 14px; border:1px solid #dbe4ef; border-radius:10px; background:#fff; color:inherit; text-decoration:none;}
.cr-draft-link:hover{background:#f8fafc;}
.cr-draft-link strong{display:block; margin-bottom:3px;}
.cr-draft-link small{color:#64748b;}
.cr-draft-meta{display:flex; flex-wrap:wrap; gap:8px 12px; margin-top:4px;}
.cr-draft-reminder{display:inline-flex; align-items:center; gap:6px; padding:3px 8px; border-radius:999px; background:#fff7ed; border:1px solid #fdba74; color:#c2410c; font-size:.8rem;}
.cr-draft-reminder--ok{background:#eff6ff; border-color:#bfdbfe; color:#1d4ed8;}
.cr-draft-actions{display:flex; justify-content:flex-end; gap:8px; margin-top:14px;}
.cr-draft-kind{display:inline-flex;align-items:center;gap:6px;padding:3px 8px;border-radius:999px;background:#eef2ff;border:1px solid #c7d2fe;color:#4338ca;font-size:.8rem;}
.cr-draft-kind--shared{background:#ecfeff;border-color:#a5f3fc;color:#0f766e;}
.cr-draft-dialog-text{margin:0; color:#475569;}
.cr-share-box{margin:0; background:#fff;border:1px solid #dbe4ef;border-radius:12px;padding:12px;}
.cr-share-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px;}
.cr-share-head h3{margin:0;font-size:16px;color:#0f172a;}
.cr-share-head p{margin:4px 0 0 0;color:#64748b;font-size:13px;line-height:1.4;}
.cr-share-table td,.cr-share-table th{vertical-align:top;}
.cr-share-picker{display:grid;grid-template-columns:minmax(180px,220px) minmax(220px,1fr);gap:10px;align-items:end;}
.cr-share-picker label{display:block;font-size:.88rem;color:#475569;margin-bottom:4px;}
.cr-share-table-wrap .table td,.cr-share-table-wrap .table th{vertical-align:middle;}
.cr-share-table-wrap .table{margin-bottom:0;}
.cr-share-avatar,.cr-share-avatar img{width:36px;height:36px;border-radius:12px;display:block;}
.cr-share-avatar{display:inline-flex;align-items:center;justify-content:center;background:#eef2ff;color:#4338ca;font-weight:700;font-size:12px;overflow:hidden;flex:0 0 auto;}
.cr-share-person{display:flex;align-items:center;gap:10px;min-width:0;}
.cr-share-person strong{display:block;color:#111827;}
.cr-share-person span{display:block;color:#64748b;font-size:.84rem;}
.cr-share-empty{display:grid;gap:10px;justify-items:start;padding:14px;border:1px dashed #cbd5e1;border-radius:12px;color:#64748b;background:#f8fafc;}
.cr-share-empty p{margin:0;}
.cr-draft-meta-stack{display:grid;gap:4px;margin-top:4px;color:#475569;font-size:.92rem;}
.cr-entwurf-save-body{display:grid;gap:12px;}
.cr-entwurf-save-field label{display:block;margin-bottom:6px;font-weight:600;color:#334155;}
.cr-entwurf-save-field input{width:100%;}
.cr-entwurf-save-preview{padding:10px 12px;border:1px solid #dbe4ef;border-radius:10px;background:#f8fafc;color:#334155;}
.vh-feed-nav{margin:14px 0 0 0;padding:0 0 12px 0;border-bottom:1px solid #dbe4ef;}
#vh-pillbar{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end;margin:0 0 -13px 0;background:transparent;border:0;padding:0;}
#vh-pillbar .vh-pill-item{display:inline-flex!important;align-items:stretch!important;gap:0!important;border-radius:8px 8px 0 0!important;}
#vh-pillbar .vh-pill-btn{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border-radius:8px 8px 0 0;text-decoration:none;border:1px solid #e5e7eb;background:#ffffff;color:#0f172a;font-size:14px;line-height:1.1;cursor:pointer;transition:transform .04s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;}
#vh-pillbar .vh-pill-btn:hover,#vh-pillbar .vh-pill-plus:hover{box-shadow:0 1px 2px rgba(0,0,0,.06);transform:translateY(-1px);}
#vh-pillbar .vh-pill-plus{display:none;align-items:center;justify-content:center;padding:0 10px;min-width:28px;border-radius:0 8px 0 0;border:1px solid #e5e7eb;border-left:none;text-decoration:none;font-weight:700;user-select:none;cursor:pointer;background:#ffffff;color:#0f172a;transition:transform .04s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;margin-left:-1px;font-size:18px;line-height:1;}
#vh-pillbar .vh-pill-plus[aria-disabled="true"]{opacity:.5;cursor:not-allowed;pointer-events:none;}
#vh-pillbar .vh-pill-item .vh-pill-btn.active,#vh-pillbar .vh-pill-item .vh-pill-btn[aria-pressed="true"]{background:#0ea5e9!important;color:#ffffff!important;border-color:#0284c7!important;box-shadow:0 0 0 2px rgba(2,132,199,.25) inset!important;font-weight:600!important;}
#vh-pillbar .vh-pill-item .vh-pill-btn.active + .vh-pill-plus,#vh-pillbar .vh-pill-item .vh-pill-btn[aria-pressed="true"] + .vh-pill-plus{display:inline-flex!important;background:#16a34a!important;color:#ffffff!important;border-color:#15803d!important;box-shadow:0 0 0 2px rgba(22,163,74,.22) inset!important;}
.problem-leer-aktion{width:100%;box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:8px;border:1px dashed #9ca3af;border-radius:12px;background:#f8fafc;color:#0f172a;font-weight:600;text-decoration:none;padding:12px 16px;min-height:44px;cursor:pointer;font:inherit;}
.problem-leer-aktion:hover{border-color:#2563eb;background:#eff6ff;color:#1d4ed8;}
.problem-leer-aktion:disabled{cursor:not-allowed;opacity:.65;color:#64748b;background:#f8fafc;}
.problem-leer-aktion svg{width:18px;height:18px;stroke:currentColor;fill:none;}
.cr-pflichtfortschritt{display:grid;gap:8px;border:1px solid #dbe4ef;border-radius:12px;background:#ffffff;padding:10px 12px;margin:12px 0 0 0;box-shadow:0 1px 2px rgba(15,23,42,.04);}
.cr-pflichtfortschritt-kopf{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;color:#334155;font-weight:600;}
.cr-pflichtfortschritt-zahl{white-space:nowrap;color:#0f172a;}
.cr-pflichtfortschritt-spur{height:8px;border-radius:999px;background:#e5e7eb;overflow:hidden;}
.cr-pflichtfortschritt-balken{height:100%;width:0%;border-radius:inherit;background:#0ea5e9;transition:width .2s ease;}
.cr-pflichtfortschritt-hinweis{font-size:12px;color:#64748b;line-height:1.35;}
.cr-pflichtfortschritt.is-complete .cr-pflichtfortschritt-balken{background:#16a34a;}
.cr-pflichtfortschritt.is-complete .cr-pflichtfortschritt-hinweis{color:#166534;}
.vh-feed{margin:8px 0 0 0;}
.vh-feed-panel{display:none;}
.vh-feed-panel.is-active{display:block;}
.projekt-hierarchie-scroll{overflow-x:auto;}
.projekt-hierarchie-auswahl{display:grid;grid-template-columns:repeat(var(--projekt-spalten,1),minmax(170px,1fr));gap:0;border:1px solid #dbe4ef;border-radius:12px;background:#fff;min-width:max-content;}
.projekt-hierarchie-spalte{min-width:170px;border-left:1px solid #e5e7eb;padding:8px;display:flex;flex-direction:column;gap:8px;}
.projekt-hierarchie-spalte:first-child{border-left:0;}
.projekt-hierarchie-zeile{display:flex;align-items:center;gap:6px;border:1px solid #ddd;padding:6px 8px;border-radius:8px;background:#fff;}
.projekt-hierarchie-haupt{justify-content:center;text-align:center;font-weight:700;background:#f8fafc;min-height:48px;}
.projekt-hierarchie-zeile.is-subprojekt{background:#f8fafc;border-style:dashed;align-items:flex-start;justify-content:flex-start;text-align:left;}
.projekt-subprojekt-bereich{display:grid;gap:6px;}
.projekt-sub-badge{display:inline-flex;align-items:center;border-radius:999px;background:#eef2ff;color:#3730a3;border:1px solid #c7d2fe;font-size:11px;padding:1px 6px;}
.projekt-hierarchie-auswahl.cr-invalid{border-color:#c62828!important;box-shadow:inset 0 0 0 1px #c62828;}
.projekt-pflicht-hinweis{font-size:12px;color:#64748b;margin-top:8px;line-height:1.35;}
.projekt-pflicht-hinweis.is-error{color:#b91c1c;font-weight:600;}
.bild-upload-hinweis{font-size:12px;color:#64748b;margin-top:8px;line-height:1.35;}
.formular-hinweis{border:1px solid #dbeafe;border-radius:12px;background:#eff6ff;color:#1e3a8a;padding:12px 14px;margin:0 0 12px 0;font-size:13px;line-height:1.4;}
@media (max-width: 760px){
  .cr-draft-kpi-row{grid-template-columns:1fr;}
  .cr-share-head{display:grid;}
  .cr-share-picker{grid-template-columns:1fr;}
  .projekt-hierarchie-auswahl{grid-template-columns:repeat(var(--projekt-spalten,1),minmax(145px,1fr));}
  .projekt-hierarchie-spalte{min-width:145px;}
}


/* Aus public/vorhaben-neu.php Block 1 zentralisiert */

.it-editor-form{display:grid;gap:16px;}
.it-panel-block{display:block;}
.it-form-table,.it-fragen-tabelle{table-layout:fixed;}
.it-form-table th,.it-fragen-tabelle th{vertical-align:middle;font-weight:700;}
.it-form-table td textarea,.it-form-table td input,.it-form-table td select{max-width:100%;}
.vn-check-item{display:flex;align-items:flex-start;gap:8px;padding:6px 0;line-height:1.35;}
.vn-check-item input{margin-top:2px;}
.vn-check-item.is-disabled{opacity:.75;}
.vn-check-item.is-static{font-weight:600;}
.vn-freigabe-raster{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(220px,1fr);gap:10px;align-items:end;width:100%;}
.vn-freigabe-raster .form-row,.vn-freigabe-raster .modal-aktionsfeld{min-width:0;margin:0;}
.vn-freigabe-raster select,.vn-freigabe-raster .btn{width:100%;}
.vn-inline-check{display:inline-flex;align-items:center;gap:8px;font-weight:600;}
.vn-summary-table td,.vn-summary-table th{vertical-align:middle;}
.vn-summary-actions{display:flex;gap:8px;justify-content:center;}
.vn-empty{color:#64748b;padding:4px 0;}
.it-modal-list-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #dbe4ef;border-radius:10px;background:#fff;}
.it-modal-list-item + .it-modal-list-item{margin-top:8px;}
.it-modal-list-item__meta{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;}
.it-modal-list-item__typ{font-weight:700;color:#0f172a;}
.it-modal-list-item__label{color:#334155;}
.it-action-icon{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border:1px solid #dbe4ef;border-radius:8px;background:#fff;cursor:pointer;}
.it-action-icon img{width:16px;height:16px;display:block;}
.it-action-icon--remove{background:#fff5f5;border-color:#fecaca;}
@media (max-width: 960px){
  .vn-freigabe-raster{grid-template-columns:1fr;}
}


/* Standardisierte Formularbausteine */
.formular-standard-seite .table col[style], .formular-standard col[style]{/* bestehende Colgroups bleiben sichtbar, aber Layout liegt zentral in CSS-Klassen */}
.formular-standard textarea,
.formular-standard input[type="text"],
.formular-standard input[type="date"],
.formular-standard input[type="number"],
.formular-standard input[type="email"],
.formular-standard select{max-width:100%;box-sizing:border-box;}
.formular-standard .formular-textarea-voll{width:100%;box-sizing:border-box;min-height:220px;resize:vertical;}
.formular-standard .formular-hidden{display:none!important;}
.formular-standard .formular-inline-hinweis{margin-top:6px;}
.formular-standard-modal .dialog{width:min(720px,calc(100vw - 32px));max-width:720px;}
.formular-standard-modal .panel{padding:18px;}
.formular-standard-modal .modal-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;}
.formular-standard-modal .modal-title{margin:0;}
.formular-standard-modal textarea{width:100%;box-sizing:border-box;min-height:92px;resize:vertical;}
.formular-standard-modal .modal-footer{display:flex;justify-content:flex-end;gap:8px;margin-top:16px;}
.formular-aktionen-inline{display:flex;flex-wrap:wrap;gap:8px;align-items:center;}
.formular-standard .standard-upload-button{display:inline-flex;align-items:center;gap:8px;}
.formular-standard .standard-upload-input{position:absolute;left:-9999px;width:1px;height:1px;opacity:0;}
.formular-standard-seite .view-head .actions [aria-disabled="true"],
.formular-standard-seite .view-head .actions .inaktiv{opacity:.55;cursor:not-allowed;}

/* Formular-Standard: zentrale Entwurfsauswahl und Entwurffreigaben. */
.formular-standard-modal[hidden]{display:none!important;}
.formular-standard-modal .dialog{width:min(760px,calc(100vw - 32px));max-width:760px;}
.formular-standard-modal .dialog--m{width:min(860px,calc(100vw - 32px));max-width:860px;}
.formular-standard-modal .panel{padding:18px;}
.formular-standard-modal .modal-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;}
.formular-standard-modal .modal-title{margin:0;}
.formular-standard-modal .modal-footer{display:flex;justify-content:flex-end;gap:8px;margin-top:16px;}
.formular-standard-auswahl{display:grid;gap:14px;}
.formular-standard-auswahl-start{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;}
.formular-standard-option{display:grid;grid-template-rows:auto 1fr;gap:8px;width:100%;min-height:150px;padding:16px;border:1px solid #dbe3ef;border-radius:14px;background:#fff;text-align:left;color:#0f172a;text-decoration:none;cursor:pointer;font:inherit;appearance:none;-webkit-appearance:none;transition:border-color .15s ease,background-color .15s ease,transform .08s ease;}
.formular-standard-option:hover,.formular-standard-option:focus{border-color:#0f172a;background:#f8fafc;transform:translateY(-1px);}
.formular-standard-option strong{display:block;font-size:1rem;line-height:1.4;color:#0f172a;}
.formular-standard-option span{display:block;color:#475569;line-height:1.55;font-size:.95rem;}
.formular-standard-tablewrap{overflow:auto;max-height:52vh;}
.formular-standard-entwurf-tabelle{width:100%;min-width:680px;}
.formular-standard-entwurf-tabelle th,.formular-standard-entwurf-tabelle td{vertical-align:middle;}
.formular-standard-meta{margin-top:4px;color:#64748b;font-size:12px;line-height:1.35;}
.formular-standard-empty{padding:14px 16px;border:1px dashed #cbd5e1;border-radius:14px;background:#f8fafc;color:#475569;line-height:1.45;}
.formular-standard-freigaben{margin-top:14px;border:1px solid #dbe3ef;border-radius:14px;background:#fff;padding:12px;}
.formular-standard-freigaben-kopf{display:grid;gap:4px;margin-bottom:10px;}
.formular-standard-freigaben-kopf span{color:#64748b;font-size:13px;line-height:1.4;}
.formular-standard-freigaben-liste{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:8px;max-height:240px;overflow:auto;padding-right:4px;}
.formular-standard-freigabe-user{display:flex;align-items:flex-start;gap:8px;border:1px solid #e5e7eb;border-radius:12px;background:#f8fafc;padding:9px 10px;cursor:pointer;}
.formular-standard-freigabe-user input{margin-top:3px;}
.formular-standard-freigabe-user span{display:grid;gap:2px;}
.formular-standard-freigabe-user small{color:#64748b;font-size:12px;}
.formular-standard .standard-form-hidden{display:none!important;}

/* Formular-Standard: gemeinsamer Start-/Entwurf-Auswahlmodal wie Änderungsantrag. */
.formular-standard-start-modal[hidden],
.formular-standard-start-modal [hidden],
#aenderungsantrag-auswahl-modal[hidden],
#aenderungsantrag-auswahl-modal [hidden]{display:none!important;}
.formular-standard-start-modal .dialog{width:min(860px,calc(100vw - 32px));max-width:860px;}
.formular-standard-start-modal .panel{padding:18px;}
.formular-standard-start-modal .modal-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;}
.formular-standard-start-modal .modal-title{margin:0;}
.formular-standard-start-modal .modal-body{display:block;}
.formular-standard-start-modal .modal-footer{display:flex;justify-content:flex-end;gap:8px;margin-top:16px;}
.aenderungsantrag-auswahl-box{display:grid;gap:14px;}
.aenderungsantrag-auswahl-hinweis{margin:0;color:#475569;line-height:1.55;}
.aenderungsantrag-auswahl-infobox{padding:12px 14px;border:1px solid #bfdbfe;border-radius:14px;background:#eff6ff;color:#1e3a8a;line-height:1.55;}
.aenderungsantrag-auswahl-infobox p{margin:0;}
.aenderungsantrag-auswahl-optionen{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;}
.aenderungsantrag-auswahl-option{display:grid;grid-template-rows:auto 1fr;align-items:start;gap:8px;width:100%;min-height:156px;padding:16px;border:1px solid #dbe3ef;border-radius:14px;background:#fff;text-align:left;color:#0f172a;text-decoration:none;cursor:pointer;transition:border-color .15s ease,background-color .15s ease;font:inherit;appearance:none;-webkit-appearance:none;}
.aenderungsantrag-auswahl-option:hover,.aenderungsantrag-auswahl-option:focus{border-color:#0f172a;background:#f8fafc;}
.aenderungsantrag-auswahl-option strong{display:block;min-height:48px;font-size:1rem;line-height:1.4;color:#0f172a;text-align:left;}
.aenderungsantrag-auswahl-option span{display:block;width:100%;margin:0;color:#475569;line-height:1.55;font-size:.95rem;text-align:left;}
.aenderungsantrag-auswahl-tabellenwrap{overflow:auto;max-height:52vh;}
.aenderungsantrag-auswahl-tabelle{width:100%;min-width:520px;}
.aenderungsantrag-auswahl-tabelle th,.aenderungsantrag-auswahl-tabelle td{vertical-align:middle;}
.aenderungsantrag-auswahl-tabelle th:nth-child(1),.aenderungsantrag-auswahl-tabelle td:nth-child(1),.aenderungsantrag-auswahl-tabelle th:nth-child(2),.aenderungsantrag-auswahl-tabelle td:nth-child(2){text-align:left!important;}
.aenderungsantrag-auswahl-tabelle th:nth-child(3),.aenderungsantrag-auswahl-tabelle td:nth-child(3){width:1%;white-space:nowrap;text-align:center;}
.aenderungsantrag-auswahl-titelzeile{font-weight:700;color:#0f172a;line-height:1.45;word-break:break-word;}
.aenderungsantrag-auswahl-beschreibung{text-align:left!important;color:#334155;line-height:1.5;}
.aenderungsantrag-auswahl-leer{padding:14px 16px;border:1px dashed #cbd5e1;border-radius:14px;background:#f8fafc;color:#475569;}
.haupttabelle-leer-aktion[data-standard-start-modal-open]{width:100%;box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:8px;border:1px dashed #9ca3af;border-radius:12px;background:#f8fafc;color:#0f172a;font-weight:600;text-decoration:none;padding:12px 16px;min-height:44px;cursor:pointer;}
.haupttabelle-leer-aktion[data-standard-start-modal-open]:hover{border-color:#2563eb;background:#eff6ff;color:#1d4ed8;}

/* Formular-Standard: einheitlicher X-Schließen-Button für alle Standard-Modale. */
.formular-standard-modal-x{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border:1px solid #cbd5e1;border-radius:999px;background:#fff;color:#0f172a;font-size:24px;line-height:1;text-decoration:none;cursor:pointer;transition:background .15s ease,border-color .15s ease,transform .05s ease;}
.formular-standard-modal-x:hover,.formular-standard-modal-x:focus{background:#f8fafc;border-color:#94a3b8;outline:none;}
.formular-standard-modal-x:active{transform:translateY(1px);}
.formular-standard-start-modal .modal-header .btn.secondary[data-modal-close],
.formular-standard-modal .modal-header .btn.secondary[data-modal-close]{display:none;}

/* Formularstandard Entwurf-Tabs: gemeinsame Maske fuer alle Eingabeformulare */
.formular-standard-entwurf-nav{margin-top:14px;}
.formular-standard-entwurf-panel{margin-top:0;}
.formular-standard-entwurf-karten{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-top:12px;}
.formular-standard-entwurf-karte{border:1px solid #e5e7eb;background:#fff;border-radius:12px;padding:14px;box-shadow:0 4px 14px rgba(15,23,42,.05);}
.formular-standard-entwurf-karte span{display:block;font-size:12px;color:#6b7280;margin-bottom:6px;text-transform:uppercase;letter-spacing:.03em;}
.formular-standard-entwurf-karte strong{display:block;color:#111827;font-size:14px;line-height:1.35;white-space:pre-wrap;}
.formular-standard-start-modal .modal-header,
.formular-standard-modal .modal-header,
#cr-entwurf-save-modal .modal-header,
#cr-entwurf-freigabe-modal .modal-header{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.formular-standard-modal-x{appearance:none;border:0;background:transparent;color:#111827;font-size:28px;line-height:1;cursor:pointer;padding:4px 8px;border-radius:8px;}
.formular-standard-modal-x:hover{background:#f3f4f6;}
.formular-standard-start-modal .dialog,.formular-standard-modal .dialog{max-width:min(860px,calc(100vw - 32px));}
.formular-standard-start-modal .dialog--m,.formular-standard-modal .dialog--m{max-width:min(720px,calc(100vw - 32px));}
.formular-standard-start-modal .panel,.formular-standard-modal .panel{border-radius:16px;overflow:hidden;}
.formular-standard-freigaben-liste{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px;margin-top:12px;}
.formular-standard-freigabe-user{display:flex;align-items:flex-start;gap:10px;border:1px solid #e5e7eb;border-radius:10px;background:#fff;padding:10px;}
.formular-standard-freigabe-user input{margin-top:3px;}
.formular-standard-freigabe-user span{display:flex;flex-direction:column;gap:2px;}
.formular-standard-freigabe-user small{color:#6b7280;}
.formular-standard-empty{border:1px dashed #d1d5db;background:#f9fafb;border-radius:10px;padding:14px;color:#6b7280;}

/* Formularstandard V3: reine Icon-Schaltflaeche in Entwurf-Listen */
.formular-standard-icon-btn{display:inline-flex!important;align-items:center;justify-content:center;min-width:34px;width:34px;height:34px;padding:0!important;line-height:1;text-decoration:none!important;font-weight:700;}
.formular-standard-icon-btn span{display:inline-flex;align-items:center;justify-content:center;font-size:18px;line-height:1;}
