/* webhaus Redaktion – Optik angelehnt an wp-admin (Leiste links #1d2327, Inhalt #f0f0f1, Kästen weiß, Primär #2271b1) */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #f0f0f1; color: #1d2327;
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
a { color: #2271b1; }
a:hover { color: #135e96; }
h1, h2, h3 { color: #1d2327; }
.boot { padding: 40px; text-align: center; color: #50575e; }
.hidden { display: none !important; }
.muted { color: #646970; }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
svg.ic { width: 20px; height: 20px; fill: currentColor; vertical-align: middle; flex: none; }

/* ---- Rahmen ---- */
#adminbar {
  position: fixed; top: 0; left: 0; right: 0; height: 32px; z-index: 50; display: flex; align-items: center; gap: 4px;
  background: #1d2327; color: #f0f0f1; font-size: 13px; padding: 0 8px 0 0;
}
#adminbar a, #adminbar button { color: #f0f0f1; text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; }
#adminbar a:hover, #adminbar button:hover { background: #2c3338; color: #72aee6; }
#adminbar .grow { flex: 1; }
#adminbar .site-name { font-weight: 600; }
#adminbar .menu-toggle { display: none; }
#adminbar .jobstate { font-size: 12px; opacity: .9; }
#adminbar .jobstate.warn { color: #f0c33c; }
#adminbar .jobstate.err { color: #ff8085; }
#adminbar .user { color: #c3c4c7; padding: 0 6px; }

#adminmenu {
  position: fixed; top: 32px; bottom: 0; left: 0; width: 160px; z-index: 40; background: #1d2327; overflow-y: auto; padding: 12px 0;
}
#adminmenu a { display: flex; align-items: center; gap: 8px; color: #f0f0f1; text-decoration: none; padding: 8px 12px; font-size: 14px; line-height: 18px; }
#adminmenu a:hover { background: #2271b1; color: #fff; }
#adminmenu a.current { background: #2271b1; color: #fff; font-weight: 600; position: relative; }
#adminmenu a.current::after { content: ""; position: absolute; right: 0; top: 50%; margin-top: -8px; border: 8px solid transparent; border-right-color: #f0f0f1; }
#adminmenu .sep { height: 1px; background: #3c434a; margin: 10px 0; }
#adminmenu svg.ic { opacity: .75; }
#adminmenu a.current svg.ic, #adminmenu a:hover svg.ic { opacity: 1; }

#content { margin: 32px 0 0 160px; padding: 10px 20px 60px; min-height: calc(100vh - 32px); }
.wrap { max-width: 1280px; }
.wrap > h1, .page-title { font-size: 23px; font-weight: 400; margin: 12px 0 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.subtitle { margin: -8px 0 14px; color: #50575e; }

/* ---- Bedienelemente ---- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; padding: 0 12px; margin: 0;
  border: 1px solid #2271b1; border-radius: 3px; background: #f6f7f7; color: #2271b1; font: inherit; font-size: 13px; line-height: 1.2;
  cursor: pointer; text-decoration: none; white-space: nowrap; -webkit-appearance: none; appearance: none;
}
.button:hover { background: #f0f0f1; border-color: #0a4b78; color: #0a4b78; }
.button:focus-visible { outline: 2px solid #2271b1; outline-offset: 1px; }
.button-primary { background: #2271b1; border-color: #2271b1; color: #fff; }
.button-primary:hover { background: #135e96; border-color: #135e96; color: #fff; }
.button-large { min-height: 38px; padding: 0 16px; font-size: 14px; }
.button[disabled], .button.disabled { opacity: .55; cursor: default; pointer-events: none; }
.button-small { min-height: 26px; padding: 0 8px; font-size: 12px; }
.button-link { background: none; border: 0; color: #2271b1; text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.button-link:hover { color: #135e96; }
.button-link-delete, .delete-link { color: #b32d2e !important; }
.button-link-delete:hover { color: #8a2424 !important; }
.icon-btn { background: none; border: 1px solid transparent; border-radius: 3px; color: #50575e; cursor: pointer; min-width: 32px; min-height: 32px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 16px; padding: 0 6px; }
.icon-btn:hover { border-color: #c3c4c7; background: #f6f7f7; color: #1d2327; }
.icon-btn.danger:hover { color: #b32d2e; border-color: #b32d2e; }
.icon-btn[disabled] { opacity: .35; pointer-events: none; }
.page-title-action { font-size: 13px; }

input[type=text], input[type=search], input[type=password], input[type=number], input[type=date], input[type=datetime-local], select, textarea {
  font: inherit; font-size: 14px; color: #2c3338; background: #fff; border: 1px solid #8c8f94; border-radius: 4px;
  min-height: 34px; padding: 3px 8px; max-width: 100%;
}
textarea { min-height: 80px; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: #2271b1; box-shadow: 0 0 0 1px #2271b1; outline: 2px solid transparent; }
input.wide, select.wide { width: 100%; }
label.field { display: block; font-weight: 600; margin: 10px 0 4px; }
.field-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; }
.field-row > div { display: flex; flex-direction: column; gap: 4px; }
.field-row label { font-weight: 600; font-size: 13px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; min-height: 32px; }
.check input { width: 18px; height: 18px; margin: 0; }
.hint { font-size: 12px; color: #646970; margin: 4px 0 0; }

/* ---- Kästen ---- */
.postbox, .card { background: #fff; border: 1px solid #c3c4c7; box-shadow: 0 1px 1px rgba(0, 0, 0, .04); margin: 0 0 20px; }
.postbox > h2, .card-head { font-size: 14px; font-weight: 600; margin: 0; padding: 10px 12px; border-bottom: 1px solid #c3c4c7;
  display: flex; align-items: center; gap: 8px; }
.postbox .inside, .card-body { padding: 12px; }
.card-head .grow { flex: 1; min-width: 0; }
.card-head .title-preview { font-weight: 400; color: #50575e; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-head .grow .title-preview { display: block; }
.main, .side, .card, .postbox { min-width: 0; }

.notice { background: #fff; border: 1px solid #c3c4c7; border-left: 4px solid #72aee6; box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
  margin: 6px 0 16px; padding: 8px 12px; }
.notice p { margin: 4px 0; }
.notice ul { margin: 4px 0; padding-left: 20px; }
.notice-error { border-left-color: #d63638; }
.notice-success { border-left-color: #00a32a; }
.notice-warning { border-left-color: #dba617; }
.notice-info { border-left-color: #72aee6; }

/* ---- Editor-Spalten ---- */
.columns { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 20px; align-items: start; }
.side { position: sticky; top: 52px; }
.titlewrap input { width: 100%; font-size: 1.6em; padding: 6px 10px; min-height: 46px; }
.permalink { margin: 8px 0 14px; font-size: 13px; color: #50575e; word-break: break-all; }

/* Veröffentlichen-Kasten */
.pubbox .misc { padding: 10px 12px; border-bottom: 1px solid #dcdcde; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.pubbox .misc b { font-weight: 600; }
.pubbox .minor { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; padding: 10px 12px; }
.pubbox .major { background: #f6f7f7; border-top: 1px solid #dcdcde; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pubbox .progress { padding: 10px 12px; border-top: 1px solid #dcdcde; font-size: 13px; }
.vd-laden { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 12px 0; }
.vd-laden p { margin: 4px 0; }
.vd-spinner { width: 44px; height: 44px; border-width: 4px; margin-bottom: 10px; }
.vd-text { font-size: 16px; font-weight: 600; }
.vd-link { text-align: center; margin: 18px 0; }
/* geführter Dialog Vorschau → Kontrollieren → Live (Live-Seiten, 02.11.2026) */
.vd-schritte { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 14px; padding: 0 0 10px; border-bottom: 1px solid #dcdcde; font-size: 13px; color: #646970; }
.vd-schritte li { display: flex; align-items: center; gap: 6px; }
.vd-schritte .nr { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #dcdcde; color: #1d2327; font-weight: 600; font-size: 12px; }
.vd-schritte .fertig .nr { background: #00a32a; color: #fff; }
.vd-schritte .aktiv { color: #1d2327; font-weight: 600; }
.vd-schritte .aktiv .nr { background: #2271b1; color: #fff; }
.vd-live { margin: 16px 0 8px; padding: 12px; border-top: 3px solid #d63638; background: #fcf9e8; text-align: center; }
.vd-live p { margin: 0 0 10px; }
.vd-hinweis { margin: 14px 0; }
.live-check { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 10px; background: #f6f7f7; border: 1px solid #dcdcde; border-radius: 4px; font-weight: 600; cursor: pointer; }
.live-check input { width: 20px; height: 20px; margin: 0; flex: none; }
.modal .live-btn:not(:disabled), .mobilebar .live-btn:not(:disabled) { background: #d63638; border-color: #b32d2e; color: #fff; }
.modal .live-btn:not(:disabled):hover, .mobilebar .live-btn:not(:disabled):hover { background: #b32d2e; }
.modal .vd-live .live-btn { white-space: normal; height: auto; min-height: 40px; line-height: 1.3; padding: 8px 16px; }
.pubbox .livebox { padding: 10px 12px; border-top: 3px solid #d63638; background: #fcf9e8; font-size: 13px; }
.pubbox .livebox h3 { margin: 0 0 6px; font-size: 14px; }
.pubbox .livebox p { margin: 6px 0; }
.pubbox .livebox .live-offen { color: #8a2424; font-weight: 600; }
.pubbox .live-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; margin-top: 8px; }
.pubbox .live-btn:not(:disabled) { background: #d63638; border-color: #b32d2e; }
.pubbox .live-btn:not(:disabled):hover { background: #b32d2e; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.steps li { display: flex; gap: 8px; align-items: flex-start; }
.steps .dot { width: 18px; height: 18px; border-radius: 50%; flex: none; margin-top: 1px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; color: #fff; background: #c3c4c7; }
.steps .ok .dot { background: #00a32a; }
.steps .run .dot { background: #2271b1; animation: pulse 1.2s infinite; }
.steps .wait .dot { background: #dba617; }
.steps .err .dot { background: #d63638; }
@keyframes pulse { 50% { opacity: .45; } }
.saving { color: #646970; font-size: 12px; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid #c3c4c7; border-top-color: #2271b1; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Versionen */
.versions { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.versions li { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid #f0f0f1; }
.versions li:last-child { border-bottom: 0; }
.versions .cur { color: #00a32a; font-weight: 600; font-size: 12px; }

/* ---- Tagesmenüs ---- */
.weekhead { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.weekhead .range { font-size: 15px; font-weight: 600; }
.day.ruhetag .card-head { background: #f6f7f7; }
.day .chip, .chip { font-size: 12px; font-weight: 400; border-radius: 10px; padding: 1px 8px; background: #f0f6fc; color: #135e96; border: 1px solid #c5d9ed; white-space: nowrap; }
.chip.grey { background: #f6f7f7; color: #50575e; border-color: #dcdcde; }
.chip.orange { background: #fcf9e8; color: #8a6d00; border-color: #f0d983; }
.chip.red { background: #fcf0f1; color: #8a2424; border-color: #f0b8b9; }
.chip.green { background: #edfaef; color: #00701a; border-color: #b8e6bf; }
.lines { display: flex; flex-direction: column; gap: 6px; margin: 6px 0; }
.lines .line { display: flex; gap: 6px; align-items: center; }
.lines .line input { flex: 1; min-width: 0; }
.addrow { margin-top: 4px; }
.daygrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 20px; }
@media (min-width: 1300px) { .daygrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- Reiter ---- */
.tabcard .card-head { cursor: pointer; }
.tabcard .card-head .tw { transition: transform .15s; display: inline-block; color: #646970; }
.tabcard.open .card-head .tw { transform: rotate(90deg); }

/* ---- Liste (Beiträge) ---- */
.subsubsub { list-style: none; margin: 4px 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 13px; color: #646970; }
.subsubsub a { text-decoration: none; }
.subsubsub a.current { color: #000; font-weight: 600; }
.subsubsub li + li::before { content: "|"; margin-right: 4px; color: #a7aaad; }
.tablenav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin: 6px 0; }
.wp-list-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #c3c4c7; box-shadow: 0 1px 1px rgba(0, 0, 0, .04); }
.wp-list-table th, .wp-list-table td { text-align: left; padding: 9px 10px; vertical-align: top; font-size: 13px; }
.wp-list-table thead th { border-bottom: 1px solid #c3c4c7; font-weight: 400; color: #2c3338; }
.wp-list-table tbody tr:nth-child(odd) { background: #f6f7f7; }
.wp-list-table .row-title { font-weight: 600; font-size: 14px; text-decoration: none; }
.wp-list-table .post-state { font-weight: 600; color: #50575e; }
.row-actions { font-size: 12px; color: #a7aaad; margin-top: 4px; visibility: hidden; display: flex; gap: 6px; flex-wrap: wrap; }
.row-actions a, .row-actions button { font-size: 12px; }
tr:hover .row-actions, tr:focus-within .row-actions { visibility: visible; }
.pagination { display: flex; gap: 4px; align-items: center; font-size: 13px; }
.empty { padding: 20px; text-align: center; color: #646970; }

/* Beitragsbild */
.featured img { max-width: 100%; height: auto; display: block; border: 1px solid #dcdcde; background: #f6f7f7; }
.featured .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* ---- Seitenwahl ---- */
.sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.sites a.card { display: block; padding: 18px; text-decoration: none; color: #1d2327; }
.sites a.card:hover { border-color: #2271b1; }
.sites .name { font-size: 18px; font-weight: 600; margin-bottom: 4px; }

/* ---- Login ---- */
.login { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px 40px; }
.login .box { width: 100%; max-width: 340px; }
.login h1 { text-align: center; font-size: 22px; font-weight: 600; margin: 0 0 20px; }
.login h1 span { color: #2271b1; }
.login form { background: #fff; border: 1px solid #c3c4c7; box-shadow: 0 1px 3px rgba(0, 0, 0, .04); padding: 24px; }
.login label { display: block; margin-bottom: 4px; }
.login input[type=password], .login input[type=text] { width: 100%; font-size: 20px; min-height: 42px; margin-bottom: 16px; }
.login input[type=text] { margin-bottom: 2px; }
.login .login-hint { margin: 0 0 14px; }
.login .submit { display: flex; justify-content: flex-end; }
.login .foot { text-align: center; color: #50575e; font-size: 13px; margin-top: 16px; }

/* ---- Dialoge ---- */
.modal-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .7); z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: #fff; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 5px 15px rgba(0, 0, 0, .7); }
.modal.wide { max-width: 1000px; height: calc(100vh - 32px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 0 0 0 16px; border-bottom: 1px solid #dcdcde; min-height: 50px; }
.modal-head h2 { font-size: 20px; font-weight: 600; margin: 0; }
.modal-body { padding: 16px; overflow: auto; flex: 1; }
.modal-foot { padding: 12px 16px; border-top: 1px solid #dcdcde; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; align-items: center; }
.modal-foot .grow { flex: 1; }

/* Mediathek (Seite + Dialog) */
.dropzone { border: 2px dashed #c3c4c7; background: #fff; padding: 12px 16px; text-align: center; margin-bottom: 12px; color: #50575e; }
.modal .dropzone { background: none; }
.dropzone.over { border-color: #2271b1; background: #f0f6fc; }
.dropzone .dz-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.dropzone .hint { margin-top: 6px; }
.upload-status:not(:empty) { margin-top: 8px; color: #1d2327; }
.media-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
.media-toolbar input[type=search] { flex: 1 1 200px; max-width: 320px; margin-left: auto; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.media-grid > .empty, .media-grid > .notice, .media-grid > p { grid-column: 1 / -1; }
.media-cell { position: relative; min-width: 0; }
.media-item { position: relative; width: 100%; border: 1px solid #dcdcde; background: #f6f7f7; aspect-ratio: 1; cursor: pointer; padding: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font: inherit; color: #1d2327; }
.media-item:focus-visible { outline: 2px solid #2271b1; outline-offset: 1px; }
.media-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-item .file { padding: 8px; font-size: 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.media-item .file svg.ic { width: 40px; height: 40px; color: #8c8f94; }
.media-item .fname { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; word-break: break-word; }
.media-item .badge { position: absolute; left: 4px; top: 4px; background: rgba(255, 255, 255, .9); font-size: 11px; padding: 0 4px; border-radius: 2px; }
.media-cell.sel .media-item { outline: 3px solid #2271b1; outline-offset: -3px; }
.media-check { position: absolute; top: 0; right: 0; width: 36px; height: 36px; padding: 0; border: 0; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; }
.media-check span { width: 22px; height: 22px; border-radius: 3px; border: 2px solid #fff; background: rgba(0, 0, 0, .3); box-shadow: 0 0 0 1px rgba(0, 0, 0, .35);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; line-height: 1; }
.media-cell.sel .media-check span { background: #2271b1; }
.media-cell.sel .media-check span::after { content: "✓"; }
.media-check:focus-visible { outline: 2px solid #2271b1; outline-offset: -2px; }
@media (hover: hover) {
  .media-cell:not(.sel) .media-check { opacity: 0; }
  .media-cell:hover .media-check, .media-check:focus-visible { opacity: 1; }
}
.media-more { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 16px 0 4px; }
.modal-foot .media-info { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.media-details .preview { background: #f6f7f7; border: 1px solid #dcdcde; display: flex; align-items: center; justify-content: center; min-height: 120px; margin-bottom: 12px; }
.media-details .preview img { max-width: 100%; max-height: 50vh; display: block; }
.media-details .file-big { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px; word-break: break-all; text-align: center; }
.media-details .file-big svg.ic { width: 64px; height: 64px; color: #8c8f94; }
.media-meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; margin: 0; font-size: 13px; }
.media-meta dt { color: #646970; }
.media-meta dd { margin: 0; word-break: break-word; }
.copyrow { display: flex; gap: 6px; }
.copyrow input { flex: 1; min-width: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }
.used-in { margin: 4px 0 8px; padding-left: 20px; }

/* Meldungen */
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 200000; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.toast { background: #1d2327; color: #fff; padding: 10px 14px; border-radius: 3px; box-shadow: 0 3px 8px rgba(0, 0, 0, .3); font-size: 13px; }
.toast.err { background: #8a2424; }
.toast.ok { background: #00701a; }

/* TinyMCE-Rahmen */
.tox-tinymce { border-radius: 0 !important; border-color: #dcdcde !important; }
.editor-wrap { margin: 6px 0 4px; }
.editor-wrap textarea { min-height: 200px; }

/* ---- Handy ---- */
.mobilebar { display: none; }
@media (max-width: 850px) {
  .columns { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .mobilebar { display: flex; align-items: center; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; background: #fff;
    border-top: 1px solid #dcdcde; box-shadow: 0 -2px 8px rgba(0, 0, 0, .08); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
  .mobilebar .mb-status { flex: 1; min-width: 0; font-size: 13px; color: #646970; line-height: 1.3; }
  .mobilebar .mb-status.pending { color: #b26200; font-weight: 600; }
  .mobilebar .button { white-space: nowrap; }
  #content { padding-bottom: 96px; }
  #toasts { bottom: 76px; }
}
@media (max-width: 782px) {
  #adminbar { height: 46px; font-size: 14px; }
  #adminbar a, #adminbar button { height: 46px; }
  #adminbar .menu-toggle { display: inline-flex; }
  #adminbar .hide-mobile { display: none; }
  #adminmenu { top: 46px; width: 100%; max-width: 300px; display: none; box-shadow: 4px 0 12px rgba(0, 0, 0, .3); }
  body.menu-open #adminmenu { display: block; }
  #adminmenu a { padding: 12px 16px; font-size: 16px; }
  #content { margin: 46px 0 0; padding: 8px 10px 96px; }
  .wrap > h1, .page-title { font-size: 20px; }
  .button { min-height: 40px; font-size: 14px; }
  .icon-btn { min-width: 40px; min-height: 40px; }
  input[type=text], input[type=search], input[type=password], input[type=number], input[type=date], input[type=datetime-local], select { min-height: 40px; font-size: 16px; }
  .row-actions { visibility: visible; }
  .card-head .title-preview { white-space: normal; }
  .wp-list-table .col-date { display: none; }
  .wp-list-table .mobile-date { display: block !important; }
  .modal.wide { height: calc(100vh - 16px); height: calc(100dvh - 16px); }
  .modal { max-height: calc(100dvh - 16px); }
  .modal-bg { padding: 8px; }
  .modal-body { padding: 12px; }
  .media-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
  .media-toolbar select { flex: 1 1 40%; }
  .media-toolbar input[type=search] { flex-basis: 100%; max-width: none; margin-left: 0; }
  .modal-foot .media-info { flex-basis: 100%; }
}
@media (hover: none) { .dropzone .dz-text { display: none; } }
.wp-list-table .mobile-date { display: none; font-size: 12px; color: #646970; margin-top: 2px; }

/* FAQ (champs, Modultyp faq) */
.faq-liste { margin: 0 0 28px; }
.faq-liste-titel { font-size: 17px; font-weight: 600; margin: 18px 0 8px; }
.faq-liste-titel .muted { font-weight: 400; }
.faq-twin { margin: 10px 0 12px; }
.faq-twin p { margin: 4px 0; }
/* langer Knopftext („Frage und Antwort auch bei … übernehmen“): .button ist nowrap → Text ragte bei 390 px über den Rand (scrollWidth 420) */
.faq-twin .button { white-space: normal; max-width: 100%; padding-top: 6px; padding-bottom: 6px; text-align: center; }

/* Preise (champs, Modultyp preise) */
.preis-seite { margin: 0 0 28px; }
.preis-spalten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.preis-spalte { margin-bottom: 12px; }
.phase-row { display: flex; gap: 6px; }
.phase-row input { flex: 1; min-width: 0; }
.phase-row select { flex: none; width: 104px; }
.preis-row { display: flex; flex-wrap: wrap; gap: 0 24px; align-items: flex-start; }
.preis-feld { white-space: nowrap; }
.preis-input { width: 104px; text-align: right; }
input.invalid { border-color: #d63638; box-shadow: 0 0 0 1px #d63638; }
@media (max-width: 1100px) { .preis-spalten { grid-template-columns: minmax(0, 1fr); } }

/* Termine (champs, Modultyp termine) */
.termin-seite { margin: 0 0 28px; }
.termin-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 8px; }
.termin-label { flex: none; width: 112px; font-weight: 600; }
.termin-row input[type=date], .termin-row input[type=time] { min-width: 0; }
.termine-form textarea.wide { width: 100%; }
/* Handy: Bezeichnung über der Zeile, damit „von – bis“ nebeneinander passt (390 px) */
@media (max-width: 600px) { .termin-label { width: 100%; } }

/* Workshops + Trainer (champs, Modultypen workshops/trainer): Liste mit Suche → Formular */
.karten-suche { margin: 0 0 12px; max-width: 520px; }
.karten-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.karten-gruppe { grid-column: 1 / -1; font-size: 15px; font-weight: 600; margin: 14px 0 2px; }
.karten-liste > .hint { grid-column: 1 / -1; }
.karte-zeile { display: flex; align-items: center; gap: 10px; min-width: 0; width: 100%; padding: 6px; text-align: left; cursor: pointer;
  background: #fff; border: 1px solid #c3c4c7; border-radius: 2px; font: inherit; color: #1d2327; }
.karte-zeile:hover, .karte-zeile:focus-visible { border-color: #2271b1; }
.karte-zeile img, .karte-ohne { flex: 0 0 64px; width: 64px; height: 48px; object-fit: cover; background: #f0f0f1; border-radius: 2px; }
.karte-ohne { display: flex; align-items: center; justify-content: center; font-size: 11px; color: #646970; text-align: center; }
.karte-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.karte-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.karte-unter { font-size: 12px; color: #646970; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.karte-badge { flex: 0 0 auto; font-size: 11px; padding: 2px 6px; border-radius: 9px; background: #fcf0f1; color: #8a2424; white-space: nowrap; }
.karten-kopf { margin: 0 0 8px; }
.karten-titel { font-size: 20px; font-weight: 600; margin: 8px 0 2px; overflow-wrap: anywhere; }
.karten-felder { max-width: 820px; }
.karten-bild img { max-width: 360px; max-height: 270px; width: auto; }
.karten-check { display: flex; align-items: center; gap: 6px; margin: 16px 0 0; font-weight: 600; }
.karten-abw { margin: 8px 0; }
.karten-abw ul { margin: 4px 0 4px 18px; }
.karten-abw .button { white-space: normal; max-width: 100%; }
@media (max-width: 782px) {
  .karten-liste { grid-template-columns: minmax(0, 1fr); }
  .karten-bild img { max-width: 100%; }
}

/* Workshops/Trainer (29.10.2026): Anlegen, Loeschen, Wochenplan, Zuordnung */
.karten-neu { margin: 0 0 12px; }
.karten-neu .button { margin-bottom: 4px; }
.karten-plan { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 2px; }
.karten-plan .field { margin: 0; }
.karten-plan select, .karten-plan input[type=number] { min-width: 120px; }
.karten-plan input[type=number] { width: 90px; }
.karten-plan .hint { flex-basis: 100%; margin: 2px 0 0; }
.karten-zuordnung { max-height: 320px; overflow: auto; border: 1px solid #dcdcde; border-radius: 4px; padding: 8px 10px; margin: 4px 0 10px; background: #fff; }
.karten-zuordnung .karten-check { display: block; margin: 2px 0; }
.karten-loeschen { margin: 24px 0 8px; }
.karten-loeschen .button-link-delete { color: #b32d2e; }
@media (max-width: 640px) {
  .karten-plan select, .karten-plan input[type=number] { width: 100%; }
}

/* CAMPS FOR CHAMPS (champs, Modultyp sommercamp, 29.10.2026): ganze Seite + Wochenplan mit Kacheln */
.sc-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.sc-nav a { font-size: 13px; padding: 4px 10px; border: 1px solid #c3c4c7; border-radius: 14px; background: #fff; color: #2271b1; text-decoration: none; }
.sc-nav a:hover { border-color: #2271b1; }
.sc-abschnitt { scroll-margin-top: 56px; }
.sc-felder { max-width: 900px; }
.sc-teil { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.sc-teil-nr { flex: 0 0 auto; font-size: 12px; color: #646970; min-width: 56px; }
.sc-rich-vorschau { display: block; width: 100%; text-align: left; font: inherit; color: #1d2327; background: #f6f7f7; border: 1px dashed #c3c4c7;
  border-radius: 4px; padding: 8px 10px; cursor: text; margin: 0 0 6px; white-space: normal; line-height: 1.45; }
.sc-rich-vorschau:hover { border-color: #2271b1; background: #fff; }
.sc-reiter { border-left: 3px solid #dcdcde; padding: 2px 0 6px 10px; margin: 0 0 12px; }
.sc-extern { margin: 18px 0 0; padding: 12px; background: #f6f7f7; border: 1px solid #dcdcde; border-radius: 4px; }
.sc-extern h3 { font-size: 14px; margin: 0 0 4px; }
.sc-preise { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sc-preis h4 { margin: 0; font-size: 13px; }
.sc-beschriftung { margin: 0 0 14px; }
.sc-beschriftung summary { cursor: pointer; font-weight: 600; }
.sc-woche { border: 1px solid #c3c4c7; border-radius: 6px; padding: 10px; margin: 0 0 14px; background: #fffdf5; }
.sc-woche-kopf { font-size: 15px; margin: 0 0 8px; }
.sc-woche-datum { color: #646970; font-weight: 400; }
.sc-woche-raster { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; }
.sc-zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sc-block-kopf { font-weight: 600; text-align: center; border: 2px solid #3c434a; border-radius: 6px; padding: 4px 6px; margin: 0 0 6px; background: #fff; }
.sc-spalte { display: flex; flex-direction: column; gap: 6px; margin: 0 0 8px; }
.sc-spalte-kopf { font-weight: 600; text-align: center; border: 2px solid #3c434a; border-radius: 6px; padding: 3px 6px; background: #fff; font-size: 13px; }
.sc-kachel { display: flex; align-items: center; gap: 2px; background: var(--farbe, #f0f0f1); border-radius: 6px; min-height: 40px; }
.sc-kachel.aus { background: repeating-linear-gradient(45deg, #d5d5d5, #d5d5d5 5px, #e6e6e6 5px, #e6e6e6 10px); }
.sc-kachel.aus .sc-kachel-titel { color: #646970; }
.sc-kachel-titel { flex: 1; min-width: 0; background: none; border: 0; font: inherit; font-weight: 600; color: #3c434a; padding: 8px 6px; cursor: pointer; text-align: center; overflow-wrap: anywhere; }
.sc-kachel-titel:hover { text-decoration: underline; }
.sc-kachel-knoepfe { display: flex; flex-direction: column; }
.sc-kachel-knoepfe .icon-btn { min-height: 20px; min-width: 26px; font-size: 12px; padding: 0 4px; }
.sc-kachel-neu { background: none; border: 1px dashed #8c8f94; border-radius: 6px; color: #2271b1; padding: 6px; cursor: pointer; font: inherit; font-size: 13px; }
.sc-kachel-neu:hover { border-color: #2271b1; background: #fff; }
.sc-nachmittag { background: #fdf3dc; border-radius: 6px; padding: 8px; }
.sc-adventure { margin-top: 4px; }
.sc-farben { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-farbe { background: var(--farbe); border: 2px solid transparent; border-radius: 6px; padding: 6px 10px; font: inherit; font-weight: 600; color: #3c434a; cursor: pointer; }
.sc-farbe.an { border-color: #1d2327; box-shadow: 0 0 0 2px #fff inset; }
.sc-dialog { min-width: min(520px, 80vw); }
@media (max-width: 782px) {
  .sc-woche-raster, .sc-preise { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .sc-zwei { grid-template-columns: minmax(0, 1fr); }
}

/* Seiten-Formular: Bilderlisten (Galerie, Karussell, Logo-Leiste), mitbearbeitete Seite (29.10.2026) */
.sc-liste-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 4px 0 8px; }
.sc-liste-item { display: flex; flex-direction: column; gap: 4px; background: #f6f7f7; border: 1px solid #dcdcde; border-radius: 4px; padding: 6px; min-width: 0; }
.sc-liste-item img { width: 100%; height: 100px; object-fit: contain; background: #fff; border-radius: 2px; }
.sc-liste-item input { width: 100%; min-height: 28px; font-size: 12px; }
.sc-liste-knoepfe { display: flex; justify-content: space-between; }
.sc-liste-knoepfe .icon-btn { min-height: 26px; min-width: 30px; }
.sc-liste-fuss { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sc-mitseite { font-size: 17px; margin: 30px 0 10px; padding-top: 14px; border-top: 3px solid #c3c4c7; scroll-margin-top: 56px; }
/* Personen-Karten (champs Core-Team) */
.sc-person { background: #f6f7f7; border: 1px solid #dcdcde; border-radius: 4px; padding: 8px 10px 10px; margin: 0 0 12px; }
.sc-person-kopf { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; }
.sc-person-kopf .sc-person-name { flex: 1 1 auto; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-person-kopf .sc-liste-knoepfe { gap: 4px; }
.sc-person-body { display: flex; gap: 12px; align-items: flex-start; }
.sc-person-foto { flex: 0 0 140px; display: flex; flex-direction: column; gap: 6px; }
.sc-person-foto img { width: 140px; height: 140px; object-fit: cover; background: #fff; border-radius: 4px; }
.sc-person-felder { flex: 1 1 auto; min-width: 0; }
@media (max-width: 600px) { .sc-person-body { flex-direction: column; } .sc-person-foto { flex-basis: auto; flex-direction: row; align-items: center; } .sc-person-foto img { width: 96px; height: 96px; } }
@media (max-width: 480px) { .sc-liste-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Menü: Reiter mit Untermenü (modules[].gruppe, champs „Webseiten“, 29.10.2026) */
#adminmenu .menu-gruppe { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; color: #f0f0f1; cursor: pointer;
  padding: 8px 12px; font: inherit; font-size: 14px; line-height: 18px; text-align: left; }
#adminmenu .menu-gruppe:hover { background: #2271b1; color: #fff; }
#adminmenu .menu-gruppe .grow { flex: 1; }
#adminmenu .menu-gruppe .caret { font-size: 11px; transition: transform .15s; }
#adminmenu .menu-gruppe-wrap.open .menu-gruppe .caret { transform: rotate(90deg); }
#adminmenu .menu-gruppe-wrap.aktiv > .menu-gruppe { color: #fff; font-weight: 600; }
#adminmenu .submenu { display: none; background: #2c3338; padding: 4px 0; }
#adminmenu .menu-gruppe-wrap.open .submenu { display: block; }
#adminmenu .submenu a { padding: 6px 12px 6px 38px; font-size: 13px; }
#adminmenu .submenu a svg.ic { display: none; }
#adminmenu .menu-gruppe svg.ic { opacity: .75; }
@media (max-width: 782px) { #adminmenu .menu-gruppe { padding: 12px 16px; font-size: 16px; } #adminmenu .submenu a { padding: 10px 16px 10px 44px; font-size: 15px; } }
/* Download-Kacheln (ms-stainz Downloads, mod-sommercamp.js downloadsFeld) */
.sc-dl { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 8px; }
.sc-dl-item { background: #f6f7f7; border: 1px solid #dcdcde; border-radius: 4px; padding: 8px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sc-dl-kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sc-dl-kopf .sc-liste-knoepfe { gap: 4px; }
.sc-dl-fuss { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sc-dl-datei { overflow-wrap: anywhere; font-size: 12px; }

/* ---- Nachvollziehbarkeit (30.10.2026): Versionen vergleichen, Protokoll, Bearbeitungssperre ---- */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.diff-link { align-self: flex-start; font-size: 13px; }
.versions li { flex-wrap: wrap; }
.versions .v-text { flex: 1 1 140px; }
.versions .v-knoepfe { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.versions-mehr:not(:empty) { margin-top: 8px; font-size: 13px; }
.diff-fassungen { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; margin-bottom: 4px; }
.diff-fassung { flex: 1 1 220px; border: 1px solid #dcdcde; background: #f6f7f7; padding: 8px 10px; font-size: 13px; }
.diff-pfeil { align-self: center; color: #50575e; font-size: 18px; }
.diff-list { list-style: none; margin: 0; padding: 0; }
.diff-item { border: 1px solid #dcdcde; border-left: 4px solid #72aee6; background: #fff; padding: 8px 12px; margin: 0 0 10px; }
.diff-item.op-neu { border-left-color: #00a32a; }
.diff-item.op-entfernt { border-left-color: #d63638; }
.diff-item.op-verschoben { border-left-color: #dba617; }
.diff-kopf { display: flex; gap: 8px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; font-size: 13px; margin-bottom: 4px; }
.diff-op { font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: #50575e; }
.diff-op.op-neu { color: #007017; } .diff-op.op-entfernt { color: #b32d2e; }
.diff-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.6; }
.diff-text del, .diff-list del { background: #ffe9e9; color: #8a2424; text-decoration: line-through; }
.diff-text ins, .diff-list ins { background: #e6f6e6; color: #00450c; text-decoration: none; }
.diff-gap { color: #8c8f94; }
.diff-hinweis { margin-top: 4px; }
.diff-fmt { margin: 6px 0 0; font-size: 13px; color: #50575e; }
.diff-fmt summary { cursor: pointer; }
.diff-fmt ul { margin: 6px 0 0 18px; padding: 0; }
.diff-bilder { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.diff-bild { margin: 0; max-width: 220px; }
.diff-bild img { display: block; max-width: 100%; max-height: 160px; object-fit: contain; background: #f0f0f1; border: 3px solid transparent; }
.diff-bild.vorher img { border-color: #f2b8b8; opacity: .8; }
.diff-bild.nachher img { border-color: #9fd99f; }
.diff-bild.leer { padding: 20px; border: 1px dashed #c3c4c7; }
.protokoll .proto-boxen { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 20px; }
.proto-liste { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.proto-liste > li { padding: 6px 0; border-bottom: 1px solid #f0f0f1; }
.proto-liste > li:last-child { border-bottom: 0; }
.proto-live { border-top: 3px solid #d63638; }
.proto-changes { margin: 4px 0 2px 18px; padding: 0; font-size: 12px; color: #3c434a; }
.proto-changes li { margin: 1px 0; }
.proto-table .col-zeit { width: 140px; white-space: nowrap; }
.proto-table .col-wer { width: 180px; }
.proto-table .proto-system td { color: #646970; }
.proto-table .proto-live-row td { background: #fcf0f1; }
.proto-table .proto-zeit-mobil { display: none; }
.row-actions.visible { visibility: visible; }
.proto-mehr { margin: 12px 0; }
.protokoll .tablenav { justify-content: flex-start; }
.protokoll .tablenav .button { margin-left: auto; }
.post-lock { font-size: 12px; color: #8a2424; display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.post-lock .ic { width: 14px; height: 14px; fill: currentColor; }
.live-liste ul { margin: 2px 0 4px 18px; padding: 0; }
.modal .live-liste ul { max-height: 40vh; overflow: auto; }
.wrap.gesperrt .main, .wrap.gesperrt .side { opacity: .55; }
@media (max-width: 782px) {
  .proto-table .col-zeit, .proto-table .col-wer { display: none; }
  .proto-table .proto-zeit-mobil { display: block; }
  .protokoll .proto-boxen { grid-template-columns: minmax(0, 1fr); }
  .diff-pfeil { display: none; }
}

.page-title .grow { flex: 1; }

/* ---- KI-Chat (js/mod-ki.js, KI-Seiten): Vollbild wie claude.ai, eigener Rahmen ohne wp-admin-Leisten ---- */
body.kc-mode { background: #fff; overflow: hidden; }
.kc {
  --kc-bg: #fff; --kc-side: #f7f6f3; --kc-line: #e8e6e1; --kc-text: #1f1e1c; --kc-muted: #6f6d68; --kc-soft: #f1efea;
  --kc-accent: #d4622a; --kc-link: #2457c5; --kc-radius: 18px;
  position: fixed; inset: 0; display: grid; grid-template-columns: 268px minmax(0, 1fr); color: var(--kc-text); background: var(--kc-bg);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
.kc button { font: inherit; color: inherit; }
.kc a { color: var(--kc-link); }
.kc .kc-grow { flex: 1; }
.kc-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.kc-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; cursor: pointer; color: var(--kc-muted); flex: none; }
.kc-icon-btn:hover { background: var(--kc-soft); color: var(--kc-text); }
.kc-icon-btn:disabled { opacity: .4; cursor: default; background: none; }

/* Seitenleiste */
.kc-side { display: flex; flex-direction: column; background: var(--kc-side); border-right: 1px solid var(--kc-line); padding: 14px 10px 10px; min-height: 0; overflow-y: auto; }
.kc-brand { display: flex; align-items: center; gap: 9px; padding: 4px 8px 16px; font-size: 15px; letter-spacing: -.01em; }
.kc-brand b { font-weight: 600; }
.kc-brand-mark { display: inline-flex; width: 28px; height: 28px; border-radius: 8px; background: var(--kc-text); align-items: center; justify-content: center; }
.kc-brand-mark svg { width: 17px; height: 17px; fill: #fff; }
.kc-side-close { display: none; margin-left: auto; }
.kc-side-label { font-size: 12px; font-weight: 600; color: var(--kc-muted); padding: 6px 10px; text-transform: uppercase; letter-spacing: .04em; }
.kc-sites { display: flex; flex-direction: column; gap: 2px; }
.kc-site { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--kc-text) !important; }
.kc-site:hover { background: #eceae4; }
.kc-site.current { background: #e7e4dc; }
.kc-site-av { width: 30px; height: 30px; border-radius: 8px; background: #fff; border: 1px solid var(--kc-line); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; flex: none; }
.kc-site.current .kc-site-av { background: var(--kc-text); color: #fff; border-color: var(--kc-text); }
.kc-site-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.kc-site-name { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kc-site-dom { font-size: 12px; color: var(--kc-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kc-side-foot { border-top: 1px solid var(--kc-line); padding-top: 8px; margin-top: 12px; display: flex; flex-direction: column; gap: 1px; }
.kc-side-link { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; color: var(--kc-muted) !important; text-decoration: none; font-size: 14px; }
.kc-side-link:hover { background: #eceae4; color: var(--kc-text) !important; }
.kc-user { display: flex; align-items: center; gap: 10px; padding: 8px 4px 2px 10px; margin-top: 4px; }
.kc-user-av { width: 28px; height: 28px; border-radius: 50%; background: var(--kc-accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex: none; }
.kc-user-name { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kc-backdrop { display: none; }

/* Hauptbereich */
.kc-main { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.kc-head { display: flex; align-items: center; gap: 8px; padding: 10px 16px; min-height: 58px; border-bottom: 1px solid transparent; }
.kc-burger { display: none; }
.kc-title { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.kc-title-name { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kc-title-sub { font-size: 12px; color: var(--kc-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kc-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border: 1px solid var(--kc-line); border-radius: 10px; background: #fff; cursor: pointer; font-size: 14px; }
.kc-btn:hover { background: var(--kc-soft); }
/* Live stellen (02.11.2026): Knopf im Kopf – hervorgehoben, wenn die Vorschau Änderungen hat, die noch nicht live sind */
.kc-golive { white-space: nowrap; flex: none; }
.kc-golive .kc-golive-kurz { display: none; }
.kc-golive.pending { background: #1e6b37; border-color: #1e6b37; color: #fff; }
.kc-golive.pending:hover { background: #17552b; }
.kc-golive.running { color: var(--kc-muted); }
.kc-golive.running .kc-ico { animation: kc-blink 1s ease-in-out infinite; }
.kc-golive-dlg p { margin: 0 0 10px; }
.kc-golive-dlg .kc-warn { margin: 4px 0 12px; }
.kc-golive-dlg .kc-warn p { margin: 4px 0 0; }
.kc-golive-steps { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 10px; }
.kc-golive-steps .kc-pill { margin-left: 4px; vertical-align: middle; }
.kc-golive-label { display: inline-flex; gap: 8px; align-items: flex-start; font-weight: 600; cursor: pointer; }
.kc-golive-label input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.kc-golive-ok { padding: 12px 16px; border-radius: 12px; background: #e6f4ea; border: 1px solid #bfe3c9; }
.kc-golive-ok .kc-md p:last-child { margin-bottom: 8px; }
.kc-row.event.golive .kc-event .kc-ico { color: #1e6b37; }
.kv-badge.golive { background: #1e6b37; color: #fff; font-weight: 600; }
.kc-menu-wrap { position: relative; }
.kc-menu { position: absolute; right: 0; top: 42px; z-index: 20; min-width: 270px; background: #fff; border: 1px solid var(--kc-line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); padding: 6px; }
.kc-menu button { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; border: 0; background: none; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.kc-menu button:hover { background: var(--kc-soft); }
.kc-menu button .kc-ico { margin-top: 2px; }
.kc-menu small { display: block; color: var(--kc-muted); font-size: 12px; line-height: 1.4; margin-top: 2px; }
.kc-scroll { flex: 1; overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
.kc-col { width: 100%; max-width: 780px; margin: 0 auto; padding: 0 20px; }
.kc-thread { padding: 18px 0 4px; display: flex; flex-direction: column; gap: 22px; }
.kc-status:not(:empty) { padding: 0 0 8px; }
.kc-loading { display: flex; justify-content: center; padding: 60px 0; }

/* Nachrichten */
.kc-row { display: flex; gap: 14px; animation: kc-in .18s ease-out; }
@keyframes kc-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.kc-row.user { flex-direction: column; align-items: flex-end; gap: 4px; }
.kc-bubble { max-width: min(85%, 620px); background: var(--kc-soft); border-radius: var(--kc-radius); padding: 10px 16px; overflow-wrap: anywhere; }
.kc-row.user.pending .kc-bubble { opacity: .7; }
.kc-row .kc-meta { font-size: 12px; color: var(--kc-muted); opacity: 0; transition: opacity .15s; }
.kc-row:hover .kc-meta, .kc-row.pending .kc-meta { opacity: 1; }
@media (hover: none) { .kc-row .kc-meta { opacity: 1; } }
.kc-av { width: 30px; height: 30px; border-radius: 50%; background: #fbeee6; display: inline-flex; align-items: center; justify-content: center; flex: none; margin-top: 1px; }
.kc-av svg { width: 17px; height: 17px; fill: var(--kc-accent); }
.kc-av.err { background: #fde8e8; color: #b42318; }
.kc-av.err svg { fill: none; }
.kc-av.err .kc-ico { width: 16px; height: 16px; }
.kc-av.pulse svg { animation: kc-spin 2.4s linear infinite; }
@keyframes kc-spin { to { transform: rotate(360deg); } }
.kc-body { flex: 1; min-width: 0; padding-top: 3px; }
.kc-row.bot.undone .kc-md { opacity: .55; }
.kc-row.bot .kc-meta { margin-top: 6px; }

/* Markdown */
.kc-md { overflow-wrap: anywhere; }
.kc-md > :first-child { margin-top: 0; }
.kc-md > :last-child { margin-bottom: 0; }
.kc-md p { margin: 0 0 12px; }
.kc-md h3, .kc-md h4, .kc-md h5, .kc-md h6 { margin: 18px 0 8px; line-height: 1.35; color: var(--kc-text); }
.kc-md h3 { font-size: 18px; } .kc-md h4 { font-size: 16px; } .kc-md h5, .kc-md h6 { font-size: 15px; }
.kc-md ul, .kc-md ol { margin: 0 0 12px; padding-left: 24px; }
.kc-md li { margin: 3px 0; }
.kc-md code { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--kc-soft); border-radius: 5px; padding: 1px 5px; }
.kc-md pre { background: #f6f5f1; border: 1px solid var(--kc-line); border-radius: 10px; padding: 12px 14px; overflow-x: auto; margin: 0 0 12px; }
.kc-md pre code { background: none; padding: 0; }
.kc-md blockquote { margin: 0 0 12px; padding: 2px 0 2px 14px; border-left: 3px solid var(--kc-line); color: #4a4844; }
.kc-md hr { border: 0; border-top: 1px solid var(--kc-line); margin: 16px 0; }
.kc-plain { white-space: normal; }

/* Anhänge in Nachrichten */
.kc-att { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 8px; justify-content: flex-end; }
.kc-att-img img { display: block; width: 120px; height: 90px; object-fit: cover; border-radius: 10px; border: 1px solid var(--kc-line); }
.kc-att-file { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--kc-line); font-size: 13px; }

/* Dateien, Hinweise, Knöpfe unter der Antwort */
.kc-files { margin-top: 10px; font-size: 13px; color: var(--kc-muted); }
.kc-files summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; padding: 3px 8px 3px 6px; border-radius: 8px; }
.kc-files summary::-webkit-details-marker { display: none; }
.kc-files summary:hover { background: var(--kc-soft); color: var(--kc-text); }
.kc-files summary .kc-ico { width: 15px; height: 15px; }
.kc-files ul { margin: 6px 0 0; padding-left: 26px; max-height: 180px; overflow: auto; font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
.kc-warn { display: flex; gap: 10px; margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: #fff8e6; border: 1px solid #f3dfa6; font-size: 14px; }
.kc-warn .kc-ico { color: #b5850b; margin-top: 3px; }
.kc-warn ul { margin: 4px 0 0; padding-left: 18px; }
.kc-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.kc-pill { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border: 1px solid var(--kc-line); border-radius: 999px; background: #fff; cursor: pointer; font-size: 13.5px; }
.kc-pill:hover { background: var(--kc-soft); border-color: #dcd9d1; }
.kc-pill .kc-ico { width: 15px; height: 15px; }
.kc-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--kc-muted); }
.kc-tag .kc-ico { width: 14px; height: 14px; }

/* KI arbeitet */
.kc-now { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-height: 26px; }
.kc-shimmer { font-weight: 500; background: linear-gradient(90deg, #8a8781 0%, #8a8781 35%, #1f1e1c 50%, #8a8781 65%, #8a8781 100%); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: kc-shimmer 2.2s linear infinite; }
@keyframes kc-shimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.kc-elapsed { font-size: 12px; color: var(--kc-muted); font-variant-numeric: tabular-nums; }
.kc-steps { margin-top: 6px; font-size: 13.5px; }
.kc-steps summary { cursor: pointer; color: var(--kc-muted); display: inline-block; padding: 2px 8px 2px 4px; border-radius: 8px; }
.kc-steps summary:hover { background: var(--kc-soft); color: var(--kc-text); }
.kc-steps ol { list-style: none; margin: 6px 0 0; padding: 0 0 0 4px; border-left: 2px solid var(--kc-line); }
.kc-steps li { display: flex; align-items: center; gap: 8px; padding: 3px 0 3px 12px; color: var(--kc-muted); }
.kc-steps li .kc-ico { width: 14px; height: 14px; color: #3a9a5b; }
.kc-steps li.cur { color: var(--kc-text); }
.kc-step-dot { width: 8px; height: 8px; margin: 0 3px; border-radius: 50%; background: var(--kc-accent); animation: kc-blink 1s ease-in-out infinite; flex: none; }
@keyframes kc-blink { 50% { opacity: .3; } }
.kc-note { margin: 6px 0 0; font-size: 13px; color: var(--kc-muted); }
.kc-error { padding: 12px 16px; border-radius: 12px; background: #fef3f2; border: 1px solid #fecdca; }
.kc-error p { margin: 4px 0 0; }
.kc-error-small { font-size: 13px; color: #7a3b36; }
/* Etappe 2: Live-Ansicht (Text Wort für Wort, Schritte sofort), Abbruch */
.kc-live > .kc-md { margin-bottom: 4px; }
.kc-live > .kc-steps, .kc-live > .kc-step1 { margin: 2px 0 8px; }
.kc-live > .kc-now { margin-top: 2px; }
.kc-typing > :last-child::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 4px; border-radius: 50%; background: var(--kc-accent); vertical-align: middle; animation: kc-blink 1s ease-in-out infinite; }
.kc-typing > :last-child:is(ul, ol)::after { display: none; }
.kc-typing > :last-child:is(ul, ol) > li:last-child::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 4px; border-radius: 50%; background: var(--kc-accent); vertical-align: middle; animation: kc-blink 1s ease-in-out infinite; }
.kc-step1 { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--kc-muted); padding: 2px 4px; }
.kc-step1 .kc-ico { width: 14px; height: 14px; color: #3a9a5b; flex: none; }
.kc-step1.cur { color: var(--kc-text); }
.kc-steps-last { color: var(--kc-muted); overflow-wrap: anywhere; }
.kc-steps summary { max-width: 100%; }
.kc-steps li.note { align-items: flex-start; color: #4a4844; }
.kc-steps li.note .kc-step-dot { animation: none; background: #c9c6bf; margin-top: 8px; }
.kc-steps li.note .kc-md { font-size: 13.5px; }
.kc-steps li.note .kc-md p { margin: 0; }
.kc-body > .kc-steps:first-child { margin: 0 0 8px; }
.kc-stopped { display: inline-flex; align-items: flex-start; gap: 8px; padding: 9px 14px; border-radius: 12px; background: var(--kc-soft); color: #4a4844; font-size: 14.5px; }
.kc-stopped .kc-ico { width: 14px; height: 14px; margin-top: 4px; fill: currentColor; stroke: none; flex: none; }
.kc-stop { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--kc-text); color: #fff !important; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; transition: background .15s, opacity .15s; }
.kc-stop:hover { background: #000; }
.kc-stop:disabled { background: #d9d6cf; cursor: default; }
.kc-stop[hidden], .kc-send[hidden] { display: none; }
.kc-stop .kc-ico { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.kc-dots { display: inline-flex; gap: 5px; }
.kc-dots i { width: 7px; height: 7px; border-radius: 50%; background: #c9c6bf; animation: kc-blink 1.2s infinite; }
.kc-dots i:nth-child(2) { animation-delay: .2s; } .kc-dots i:nth-child(3) { animation-delay: .4s; }

/* Leerer Verlauf */
.kc-empty { text-align: center; padding: 8vh 0 12px; max-width: 680px; margin: 0 auto; }
.kc-empty-mark { display: inline-flex; width: 52px; height: 52px; border-radius: 16px; background: #fbeee6; align-items: center; justify-content: center; margin-bottom: 14px; }
.kc-empty-mark svg { width: 28px; height: 28px; fill: var(--kc-accent); }
.kc-empty h1 { font-size: 27px; font-weight: 500; letter-spacing: -.02em; margin: 0 0 12px; line-height: 1.25; font-family: ui-serif, Georgia, "Times New Roman", serif; }
.kc-empty p { margin: 0 0 8px; color: #4a4844; }
.kc-empty-small { font-size: 13.5px; color: var(--kc-muted) !important; }
.kc-sugg { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.kc-sugg-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border: 1px solid var(--kc-line); border-radius: 999px; background: #fff; cursor: pointer; font-size: 14px; color: #3d3b37; }
.kc-sugg-btn:hover { background: var(--kc-soft); }
.kc-sugg-btn .kc-ico { width: 16px; height: 16px; color: var(--kc-muted); }

/* Eingabe */
.kc-foot { padding: 6px 0 14px; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 18px); }
.kc-composer { border: 1px solid #dedbd4; border-radius: 22px; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .05); padding: 10px 10px 8px 16px; transition: border-color .15s, box-shadow .15s; }
.kc-composer:focus-within { border-color: #c9c5bc; box-shadow: 0 3px 16px rgba(0, 0, 0, .08); }
.kc .kc-input { display: block; width: 100%; border: 0; border-radius: 0; outline: 0; box-shadow: none; resize: none; background: none; font: inherit; font-size: 15.5px; line-height: 1.5; padding: 4px 0; min-height: 28px; max-height: 40vh; color: var(--kc-text); }
.kc .kc-input:focus { border: 0; box-shadow: none; outline: 0; }
.kc-input::placeholder { color: #9b9890; }
.kc-tools { display: flex; align-items: center; gap: 6px; margin-top: 4px; margin-left: -6px; }
.kc-count { font-size: 12px; color: var(--kc-muted); }
.kc-send { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--kc-text); color: #fff !important; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; transition: background .15s, opacity .15s; }
.kc-send:hover { background: #000; }
.kc-send:disabled { background: #d9d6cf; cursor: default; }
.kc-send .kc-ico { width: 18px; height: 18px; stroke-width: 2.4; }
.kc-hint { font-size: 12px; color: var(--kc-muted); text-align: center; margin: 8px 0 0; }
.kc-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 8px; }
.kc-chips[hidden] { display: none; }
.kc-chip { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 56px; border-radius: 12px; border: 1px solid var(--kc-line); background: var(--kc-soft); overflow: hidden; }
.kc-chip img { width: 56px; height: 56px; object-fit: cover; display: block; }
.kc-chip-file { display: inline-flex; padding-left: 12px; color: var(--kc-muted); }
.kc-chip-name { max-width: 160px; padding-right: 30px; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kc-chip.up img { opacity: .5; }
.kc-chip-spin { position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border: 2px solid rgba(255, 255, 255, .7); border-top-color: var(--kc-text); border-radius: 50%; animation: kc-spin .8s linear infinite; }
.kc-chip:not(:has(img)) .kc-chip-spin { left: auto; right: 34px; margin: -10px 0 0; border-color: #ddd; border-top-color: var(--kc-text); }
.kc-chip-x { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(31, 30, 28, .75); color: #fff !important; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.kc-chip-x .kc-ico { width: 12px; height: 12px; stroke-width: 2.6; }

/* Ablegen */
.kc-drop { position: absolute; inset: 8px; z-index: 30; border: 2px dashed var(--kc-accent); border-radius: 18px; background: rgba(255, 250, 246, .94); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--kc-accent); pointer-events: none; }
.kc-drop[hidden] { display: none; }
.kc-drop .kc-ico { width: 40px; height: 40px; stroke-width: 1.6; }
.kc-drop p { margin: 8px 0 0; font-weight: 600; }

/* Dialoge + Meldungen im Chat-Modus etwas runder */
body.kc-mode .modal { border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
body.kc-mode .modal-bg { background: rgba(20, 20, 18, .45); }
body.kc-mode .modal .button { border-radius: 10px; }
body.kc-mode .toast { border-radius: 12px; padding: 11px 16px; font-size: 14px; }
body.kc-mode #toasts { bottom: 110px; right: 50%; transform: translateX(50%); align-items: center; }

/* Handy */
@media (max-width: 860px) {
  .kc { grid-template-columns: minmax(0, 1fr); }
  .kc-side { position: fixed; top: 0; bottom: 0; left: 0; width: min(300px, 86vw); z-index: 40; transform: translateX(-102%); transition: transform .2s ease; box-shadow: 0 0 40px rgba(0, 0, 0, .18); }
  .kc.side-open .kc-side { transform: none; }
  .kc.side-open .kc-backdrop { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(20, 20, 18, .35); }
  .kc-side-close { display: inline-flex; }
  .kc-burger { display: inline-flex; margin-left: -6px; }
  .kc-head { padding: 8px 10px; min-height: 52px; border-bottom-color: var(--kc-line); }
  .kc-btn span { display: none; }
  .kc-golive.pending .kc-golive-kurz { display: inline; } /* am Handy nur der hervorgehobene Knopf mit (kurzem) Text */
  .kc-btn { padding: 0 10px; }
  .kc-col { padding: 0 14px; }
  .kc-bubble { max-width: 92%; }
  .kc-row { gap: 10px; }
  .kc-av { width: 26px; height: 26px; }
  .kc-empty { padding-top: 4vh; }
  .kc-empty h1 { font-size: 23px; }
  .kc .kc-input { font-size: 16px; } /* iOS zoomt sonst beim Antippen */
  .kc-foot { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .kc-row, .kc-shimmer, .kc-av.pulse svg, .kc-step-dot, .kc-dots i { animation: none !important; }
  .kc-shimmer { color: var(--kc-text); background: none; }
}

/* ---- Versionen im KI-Chat (js/ki-versions.js, Mike 01.11.2026): Leiste rechts, am Handy Vollbild ---- */
.kv-wrap { display: contents; }
.kv-backdrop { position: fixed; inset: 0; z-index: 45; background: rgba(20, 20, 18, .28); }
.kv-backdrop[hidden], .kv[hidden] { display: none; }
.kv { position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; width: min(520px, 100vw); background: #fff; border-left: 1px solid var(--kc-line);
  box-shadow: -18px 0 50px rgba(0, 0, 0, .14); display: flex; flex-direction: column; transform: translateX(104%); transition: transform .2s ease; }
.kv.in { transform: none; }
.kv-head { display: flex; align-items: flex-start; gap: 8px; padding: 14px 12px 4px 20px; }
.kv-title { flex: 1; min-width: 0; }
.kv-title h2 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.kv-sub { font-size: 12.5px; color: var(--kc-muted); margin-top: 2px; }
.kv-intro { margin: 4px 20px 10px; font-size: 13px; color: #4a4844; line-height: 1.5; }
.kv-tabs { display: flex; gap: 6px; padding: 0 20px 10px; border-bottom: 1px solid var(--kc-line); }
.kv-tab { height: 30px; padding: 0 12px; border: 1px solid var(--kc-line); border-radius: 999px; background: #fff; cursor: pointer; font-size: 13px; color: #4a4844; }
.kv-tab.on { background: var(--kc-text); border-color: var(--kc-text); color: #fff !important; }
.kv-busy { display: flex; align-items: center; gap: 8px; margin: 10px 20px 0; padding: 8px 12px; border-radius: 10px; background: #fff8e6; border: 1px solid #f3dfa6; font-size: 13px; }
.kv-busy[hidden] { display: none; }
.kv-list { flex: 1; overflow-y: auto; padding: 0 14px 24px; overscroll-behavior: contain; }
.kv-day { position: sticky; top: 0; z-index: 3; background: #fff; font-size: 12px; font-weight: 600; color: var(--kc-muted); text-transform: uppercase;
  letter-spacing: .04em; padding: 12px 22px 6px; margin: 0 -14px; }
.kv-empty { text-align: center; padding: 40px 20px; color: #4a4844; }
.kv-muted { color: var(--kc-muted); }
.kv-small { font-size: 12.5px; margin: 4px 0 0; }
.kv-more { margin: 14px auto 0; display: flex; }

.kv-card { position: relative; border: 1px solid transparent; border-radius: 14px; margin: 2px 0; transition: background .15s, border-color .15s; }
.kv-card::before { content: ""; position: absolute; left: 23px; top: -4px; bottom: -4px; width: 2px; background: var(--kc-line); z-index: 0; }
.kv-card:hover { background: #faf9f6; }
.kv-card.open { background: #fff; border-color: var(--kc-line); box-shadow: 0 4px 18px rgba(0, 0, 0, .06); }
.kv-card.open::before { display: none; }
.kv-card.flash { animation: kv-flash 1.6s ease-out; }
@keyframes kv-flash { 0%, 40% { background: #fdf1e8; border-color: #f2c9ad; } 100% { background: #fff; } }
.kv-card-head { position: relative; z-index: 1; display: flex; gap: 12px; width: 100%; text-align: left; border: 0; background: none; padding: 10px 10px 10px 8px; cursor: pointer; border-radius: 14px; }
.kv-av { width: 32px; height: 32px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600;
  background: #fbeee6; color: var(--kc-accent); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--kc-line); }
.kv-av.mike { background: #e7edf8; color: #2457c5; }
.kv-av.act { background: var(--kc-soft); color: #4a4844; }
.kv-av.start { background: var(--kc-soft); color: var(--kc-muted); }
.kv-av .kc-ico { width: 15px; height: 15px; }
.kv-card-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.kv-line1 { font-size: 12.5px; color: var(--kc-muted); }
.kv-n { color: var(--kc-text); font-weight: 600; }
.kv-card-title { font-size: 14.5px; line-height: 1.4; color: var(--kc-text); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.kv-card.open .kv-card-title { -webkit-line-clamp: unset; }
.kv-line3 { font-size: 12.5px; color: var(--kc-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kv-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.kv-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; line-height: 1; padding: 4px 8px; border-radius: 999px; background: var(--kc-soft); color: #4a4844; }
.kv-badge.live { background: #e6f4ea; color: #1e6b37; font-weight: 600; }
.kv-badge.star { background: #fff4d6; color: #7a5b00; }
.kv-badge.star .kc-ico { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.kv-badge.muted { background: #f3f2ef; color: var(--kc-muted); }
.kv-card.undone .kv-card-title { text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .3); color: var(--kc-muted); }
.kv-card.current .kv-av { box-shadow: 0 0 0 2px #3a9a5b; }
.kv-chev { color: var(--kc-muted); padding-top: 6px; }
.kv-chev .kc-ico { width: 16px; height: 16px; transition: transform .15s; }
.kv-card.open .kv-chev .kc-ico { transform: rotate(180deg); }

.kv-body { padding: 0 14px 14px 52px; font-size: 14px; }
.kv-label { display: block; font-size: 11.5px; font-weight: 600; color: var(--kc-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.kv-wish { margin: 0 0 12px; padding: 8px 12px; border-left: 3px solid #f2c9ad; background: #fdf8f4; border-radius: 0 10px 10px 0; color: #4a4844; font-size: 13.5px; overflow-wrap: anywhere; }
.kv-wish .kv-label { margin-bottom: 2px; }
.kv-sec { margin: 0 0 12px; }
.kv-detail { margin: 0; padding-left: 18px; font-size: 13.5px; color: #4a4844; }
.kv-page { border: 1px solid var(--kc-line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; background: #fcfcfb; }
.kv-page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; margin-bottom: 4px; }
.kv-page-name { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13.5px; }
.kv-page-name .kc-ico { width: 14px; height: 14px; color: var(--kc-muted); }
.kv-page-name em { font-weight: 400; color: var(--kc-muted); }
.kv-link { border: 0; background: none; padding: 2px 0; color: var(--kc-link) !important; cursor: pointer; font-size: 12.5px; text-decoration: underline; text-underline-offset: 2px; }
.kv-hunk { padding: 8px 0 4px; border-top: 1px dashed #ebe9e4; }
.kv-hunk:first-of-type { border-top: 0; }
.kv-hunk-head { font-size: 13px; color: #4a4844; margin-bottom: 4px; }
.kv-hunk-head.rem b { color: #9f2a1f; }
.kv-hunk-head.add b { color: #1e6b37; }
.kv-lines { list-style: none; margin: 0 0 4px; padding: 0; font-size: 13px; }
.kv-lines li { display: flex; gap: 8px; padding: 3px 8px; border-radius: 6px; margin: 2px 0; overflow-wrap: anywhere; }
.kv-lines.rem li { background: #fdf0ef; color: #7a2a22; }
.kv-lines.rem li > span:last-child { text-decoration: line-through; text-decoration-color: rgba(122, 42, 34, .35); }
.kv-lines.add li { background: #edf7ef; color: #1d5a31; }
.kv-lines li.kv-rest { background: none; color: var(--kc-muted); font-size: 12.5px; text-decoration: none; padding-left: 24px; }
.kv-sign { flex: none; width: 10px; font-weight: 700; opacity: .7; }
.kv-img { display: inline-flex; align-items: center; gap: 5px; }
.kv-img .kc-ico { width: 13px; height: 13px; }
.kv-recover { height: 30px; font-size: 12.5px; margin: 4px 0 2px; }
.kv-acts { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 4px; }
.kv-acts .kc-pill { height: 32px; font-size: 13px; }
.kv-primary { background: var(--kc-text) !important; border-color: var(--kc-text) !important; color: #fff !important; }
.kv-primary:hover { background: #000 !important; }

/* Rückfragen */
.kv-dlg p { margin: 0 0 10px; }
.kv-dlg-h { font-weight: 600; font-size: 13.5px; margin: 12px 0 4px !important; }
.kv-dlg-list { margin: 0 0 6px; padding-left: 18px; font-size: 13.5px; max-height: 220px; overflow: auto; }
.kv-dlg-list li { margin: 2px 0; }
.kv-dlg-list.keep { color: #2457c5; }
.kv-check { display: flex; gap: 8px; align-items: center; margin: 10px 0; font-size: 14px; }
.kv-note { display: flex; gap: 8px; align-items: flex-start; padding: 9px 12px; border-radius: 10px; background: #edf7ef; color: #1d5a31; font-size: 13px; margin-top: 12px !important; }
.kv-note .kc-ico { width: 15px; height: 15px; margin-top: 2px; }
.kv-input { width: 100%; font-size: 15px; padding: 8px 10px; border-radius: 10px; border: 1px solid #cfccc4; }

/* Im Verlauf: Aktionen aus der Versionsliste, Versionsnummer, Bezug */
.kc-row.event { flex-direction: column; align-items: center; gap: 2px; }
.kc-event { display: inline-flex; align-items: center; gap: 8px; max-width: 92%; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--kc-line); background: #fff; color: #4a4844 !important;
  font-size: 13.5px; cursor: pointer; text-align: left; }
.kc-event:hover { background: var(--kc-soft); }
.kc-event .kc-ico { width: 15px; height: 15px; color: var(--kc-accent); }
.kc-vtag, .kc-reftag { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; color: var(--kc-muted) !important; font-size: 12.5px; cursor: pointer; padding: 4px 6px; border-radius: 8px; }
.kc-vtag:hover, .kc-reftag:hover { background: var(--kc-soft); color: var(--kc-text) !important; }
.kc-vtag .kc-ico, .kc-reftag .kc-ico { width: 13px; height: 13px; }
.kc-reftag { margin: 6px 0 -4px -6px; }
.kc-ref { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 6px 8px 6px 10px; border-radius: 10px; background: #fdf3ec; color: #8a3f17; font-size: 13px; }
.kc-ref[hidden] { display: none; }
.kc-ref span { flex: 1; }
.kc-ref .kc-ico { width: 15px; height: 15px; }
.kc-ref .kc-chip-x { position: static; }

@media (max-width: 860px) {
  .kv { width: 100vw; border-left: 0; }
  .kv-body { padding: 0 10px 12px 12px; }
  .kv-card::before { left: 23px; }
}
@media (prefers-reduced-motion: reduce) { .kv { transition: none; } .kv-card.flash { animation: none; } }

/* ---- Marketing-Studio (ki-studio.js, Mike 06.11.2026) ---- */
.kc-site.studio .kc-site-av svg { width: 15px; height: 15px; fill: var(--kc-accent); }
.kc-site.studio.current .kc-site-av svg { fill: #fff; }
.kc-pre { position: relative; margin: 0 0 12px; }
.kc-pre pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; padding-right: 110px; }
.kc-pre pre code { background: none; padding: 0; font: 14px/1.55 inherit; font-family: inherit; }
.kc-copy { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border: 1px solid var(--kc-line); border-radius: 8px; background: #fff; cursor: pointer; font-size: 13px; color: var(--kc-text); }
.kc-copy:hover { background: var(--kc-soft); }
.kc-copy .kc-ico { width: 14px; height: 14px; }
.ks-empty h1 { margin-bottom: 8px; }
.ks-kacheln { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0 14px; text-align: left; }
.ks-kachel { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--kc-line); border-radius: 14px; background: #fff; cursor: pointer; text-align: left; color: var(--kc-text); transition: border-color .15s, box-shadow .15s, transform .15s; }
.ks-kachel:hover { border-color: #cfcac0; box-shadow: 0 4px 14px rgba(0, 0, 0, .06); transform: translateY(-1px); }
.ks-kachel-ico { flex: none; width: 36px; height: 36px; border-radius: 10px; background: #fdf3ec; display: inline-flex; align-items: center; justify-content: center; }
.ks-kachel-ico .kc-ico { width: 19px; height: 19px; color: var(--kc-accent); }
.ks-kachel-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ks-kachel-txt b { font-size: 14.5px; font-weight: 600; }
.ks-kachel-txt small { font-size: 12.5px; color: var(--kc-muted); line-height: 1.35; }
.ks-leiste { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
.ks-leiste::-webkit-scrollbar { display: none; }
.kc.is-empty .ks-leiste { display: none; }
.ks-mini { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--kc-line); border-radius: 999px; background: #fff; cursor: pointer; font-size: 13px; color: #3d3b37; white-space: nowrap; }
.ks-mini:hover { background: var(--kc-soft); }
.ks-mini .kc-ico { width: 15px; height: 15px; color: var(--kc-accent); }
.ks-art { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 8px; padding: 5px 6px 5px 10px; border-radius: 10px; background: #fdf3ec; color: #8a3f17; font-size: 13px; font-weight: 500; }
.ks-art[hidden] { display: none; }
.ks-art .kc-ico { width: 15px; height: 15px; }
.ks-art .kc-chip-x { position: static; }
.ks-marken { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.ks-marken::-webkit-scrollbar { display: none; }
.ks-marken-label { font-size: 12px; color: var(--kc-muted); margin-right: 2px; }
.ks-marke { flex: none; height: 28px; padding: 0 10px; border: 1px solid var(--kc-line); border-radius: 999px; background: #fff; cursor: pointer; font-size: 12.5px; color: var(--kc-muted); }
.ks-marke:hover { color: var(--kc-text); }
.ks-marke.on { background: var(--kc-text); border-color: var(--kc-text); color: #fff; }
.ks-tag { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--kc-muted); }
.ks-out { margin: 12px 0 4px; display: flex; flex-direction: column; gap: 12px; }
.ks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; align-items: start; }
.ks-grid.one { grid-template-columns: minmax(0, 340px); }
.ks-thumb { position: relative; padding: 0; line-height: 0; border: 1px solid var(--kc-line); border-radius: 10px; overflow: hidden; background: var(--kc-soft); cursor: zoom-in; display: block; }
.ks-thumb img { display: block; width: 100%; height: auto; object-fit: cover; }
.ks-thumb:hover { border-color: #bdb8ad; }
.ks-num { position: absolute; left: 6px; top: 6px; min-width: 22px; height: 22px; border-radius: 11px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.ks-video { margin: 0; max-width: 280px; }
.ks-video video { max-height: 70vh; }
.ks-video video { display: block; width: 100%; border-radius: 12px; background: #000; border: 1px solid var(--kc-line); }
.ks-video figcaption { font-size: 12px; color: var(--kc-muted); margin-top: 4px; }
.ks-dl { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.ks-zip { font-weight: 600; }
.ks-files { font-size: 13px; }
.ks-files summary { cursor: pointer; color: var(--kc-muted); padding: 6px 2px; }
.ks-files ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ks-files li { display: flex; align-items: center; gap: 8px; }
.ks-files a { display: inline-flex; align-items: center; gap: 5px; }
.ks-files .kc-ico { width: 14px; height: 14px; }
.ks-meta { color: var(--kc-muted); font-size: 12px; }
.ks-lb { position: fixed; inset: 0; z-index: 1000; background: rgba(20, 19, 17, .92); display: flex; align-items: center; justify-content: center; padding: 20px 64px; }
.ks-lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 100%; max-height: 100%; }
.ks-lb-img { max-width: 100%; max-height: calc(100vh - 110px); border-radius: 8px; box-shadow: 0 10px 40px rgba(0, 0, 0, .4); background: #fff; }
.ks-lb-fig figcaption { display: flex; align-items: center; gap: 12px; color: #eee; font-size: 13px; }
.ks-lb .kc-icon-btn { position: absolute; color: #fff; background: rgba(255, 255, 255, .1); width: 44px; height: 44px; border-radius: 22px; }
.ks-lb .kc-icon-btn:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.ks-lb-x { top: 14px; right: 14px; }
.ks-lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.ks-lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.ks-lb-dl { background: #fff; color: #1f1e1c !important; text-decoration: none !important; border-color: #fff; font-weight: 600; }
.ks-lb .kc-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ks-kurz { display: none; }
@media (max-width: 860px) {
  .ks-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ks-marken-label { display: none; }
  .ks-lb { padding: 12px 8px 60px; }
  .ks-lb-prev, .ks-lb-next { top: auto; bottom: 10px; transform: none; }
}
@media (max-width: 600px) {
  .ks-voll { display: none; }
  .ks-kurz { display: inline; }
  .ks-video { max-width: 220px; }
}
@media (max-width: 480px) {
  .ks-kacheln { grid-template-columns: minmax(0, 1fr); }
  .ks-kachel { padding: 11px 12px; }
  .ks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Chats im Marketing-Studio (Seitenleiste, Kopf) */
.kc-newchat { display: flex; align-items: center; gap: 8px; margin: 6px 4px 4px; padding: 8px 10px; border: 1px dashed #cfcac0; border-radius: 10px; color: var(--kc-text) !important; text-decoration: none; font-size: 14px; font-weight: 500; }
.kc-newchat:hover { background: #fff; border-style: solid; }
.kc-newchat .kc-ico { width: 16px; height: 16px; color: var(--kc-accent); }
.kc-chats { display: flex; flex-direction: column; gap: 1px; margin: 4px 0 0; padding-left: 4px; overflow-y: auto; min-height: 40px; }
.kc-chat { display: flex; flex-direction: column; gap: 1px; padding: 7px 10px; border-radius: 9px; text-decoration: none; color: var(--kc-text) !important; }
.kc-chat:hover { background: #eceae4; }
.kc-chat.current { background: #e6e3dc; }
.kc-chat-name { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kc-chat-meta { font-size: 11.5px; color: var(--kc-muted); }
.kc-chat-busy { color: var(--kc-accent); font-weight: 600; }
.kc-chat-busy::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 3px; background: var(--kc-accent); margin-right: 5px; vertical-align: 1px; animation: kc-blink 1s ease-in-out infinite; }
.kc-chats-leer { font-size: 12.5px; color: var(--kc-muted); padding: 6px 10px; margin: 0; }
.kc-rename { width: 100%; box-sizing: border-box; height: 40px; padding: 0 12px; border: 1px solid #dedbd4; border-radius: 10px; font: inherit; font-size: 15px; }
@media (max-width: 600px) { .kc-hide-s { display: none; } }
.kc-head a.kc-btn { color: var(--kc-text) !important; text-decoration: none; }
.kc-head a.kc-btn .kc-ico { width: 16px; height: 16px; color: var(--kc-accent); }
.kc-site.studio.parent { background: none; }
.kc-site.studio.parent .kc-site-av { background: var(--kc-text); border-color: var(--kc-text); }
.kc-site.studio.parent .kc-site-av svg { fill: #fff; }
/* Feedback-PDFs im Studio (Mike 06.11.2026) */
.ks-kachel:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
.ks-pdf { display: flex; gap: 14px; align-items: stretch; max-width: 460px; padding: 10px; border: 1px solid var(--kc-line); border-radius: 12px; background: #fff; text-decoration: none; color: var(--kc-text) !important; }
.ks-pdf:hover { border-color: #bdb8ad; box-shadow: 0 4px 14px rgba(0, 0, 0, .06); }
.ks-pdf-cover { width: 92px; height: auto; aspect-ratio: 210 / 297; object-fit: cover; object-position: top; border-radius: 4px; border: 1px solid var(--kc-line); flex: none; background: var(--kc-soft); }
.ks-pdf-ico { width: 92px; aspect-ratio: 210 / 297; flex: none; border-radius: 4px; background: #fdf3ec; display: flex; align-items: center; justify-content: center; }
.ks-pdf-ico .kc-ico { width: 30px; height: 30px; color: var(--kc-accent); }
.ks-pdf-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; justify-content: center; }
.ks-pdf-txt b { font-size: 14.5px; overflow-wrap: anywhere; }
.ks-pdf-txt small { font-size: 12.5px; color: var(--kc-muted); }
.ks-pdf-dl { align-self: flex-start; margin-top: 6px; font-weight: 600; }
@media (max-width: 860px) { .ks-kachel:last-child:nth-child(3n+1) { grid-column: auto; } .ks-kachel:last-child:nth-child(2n+1) { grid-column: 1 / -1; } }
@media (max-width: 480px) { .ks-kachel:last-child:nth-child(2n+1) { grid-column: auto; } }

/* Reiter „Statistik“ (webhaus-stats im iframe, Höhe per Skript) */
.statistik-wrap { max-width: 1240px; }
.statistik-hinweis { margin: 0 0 12px; }
.statistik-frame { display: block; width: 100%; height: 900px; border: 1px solid #c3c4c7; border-radius: 4px; background: #f5f5f3; }

/* Rubrik „Statistik“ im KI-Chat (js/mod-ki.js mountKiStatistik): webhaus-stats im iframe, füllt den Hauptbereich und scrollt selbst */
.kc-stat { flex: 1; min-height: 0; display: flex; border-top: 1px solid var(--kc-line); background: #f5f5f3; }
.kc-stat-frame { flex: 1; display: block; width: 100%; height: 100%; border: 0; background: #f5f5f3; }

/* ---- Builder (bagger-wien, js/mod-builder.js): Container → Spalten → Elemente wie der Avada-Builder ---- */
.tox-tinymce-aux { z-index: 100010 !important; } /* Dialoge des Text-Editors über unseren Dialogen */
.bld { background: #fff; border: 1px solid #c3c4c7; margin: 0 0 20px; }
.bld-kopf { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #1d2327; color: #fff; padding: 8px 12px; }
.bld-logo { font-weight: 700; letter-spacing: .02em; font-size: 14px; }
.bld-logo::before { content: ""; display: inline-block; width: 10px; height: 10px; background: #50b848; border-radius: 2px; margin-right: 8px; }
.bld-kopf-hinweis { font-size: 12px; color: #c3c4c7; }
.bld-leer { padding: 16px 12px; margin: 0; }
.bld-container { margin: 12px; border: 1px solid #c3c4c7; background: #f6f7f7; }
.bld-container-kopf { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 8px; background: #e5e7eb; border-bottom: 1px solid #c3c4c7; }
.bld-container-name { font-weight: 600; font-size: 13px; min-width: 88px; }
.bld-layout-sel { min-height: 28px; font-size: 13px; max-width: 220px; }
.bld-container-kopf .bld-mini { margin-left: auto; }
.bld-mini { display: inline-flex; gap: 4px; flex-wrap: nowrap; }
.bld-mini .button-small { min-width: 28px; padding: 0 6px; }
.bld-zeile { display: flex; gap: 10px; padding: 10px; align-items: stretch; }
.bld-spalte { min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px dashed #8c8f94; background: #fff; }
.bld-spalte-kopf { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #646970; }
.bld-el { display: flex; align-items: stretch; gap: 4px; border: 1px solid #dcdcde; border-left: 4px solid #286140; background: #fff; }
.bld-el-leer { border-left-color: #dba617; background: #fcf9e8; }
.bld-el-haupt { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 8px; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.bld-el-haupt:hover, .bld-el-haupt:focus-visible { background: #f0f6fc; outline: none; }
.bld-el-info { min-width: 0; display: flex; flex-direction: column; }
.bld-el-info strong { font-size: 12px; color: #286140; }
.bld-el-info span { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bld-el .bld-mini { align-items: center; padding: 4px; }
.bld-zeichen { flex: 0 0 34px; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; background: #f0f0f1; border-radius: 3px; font-weight: 700; color: #286140; font-size: 16px; }
.bld-thumb { flex: 0 0 34px; width: 34px; height: 34px; object-fit: cover; border-radius: 3px; background: #f0f0f1; }
.bld-plus { border: 1px dashed #2271b1; background: #f0f6fc; color: #2271b1; padding: 8px; cursor: pointer; font: inherit; font-weight: 600; }
.bld-plus:hover { background: #e5f0fa; }
.bld-fuss { padding: 0 12px 12px; display: flex; gap: 8px; }
.bld-wahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.bld-wahl-k { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 10px; border: 1px solid #c3c4c7; background: #fff; cursor: pointer; font: inherit; color: inherit; min-height: 64px; }
.bld-wahl-k:hover, .bld-wahl-k:focus-visible { border-color: #2271b1; background: #f0f6fc; outline: none; }
.bld-wahl-k .bld-zeichen { margin-bottom: 2px; }
.bld-wahl-layout { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.bld-layout { display: flex; gap: 4px; width: 100%; height: 26px; }
.bld-layout i { background: #286140; opacity: .75; border-radius: 2px; }
.bld-h3 { font-size: 14px; margin: 4px 0 8px; }
.bld-h3 + .bld-wahl { margin-bottom: 16px; }
.bld-dialog .bld-rich { margin-top: 4px; }
.bld-bildwahl img { max-height: 260px; width: auto; }
.bld-galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-bottom: 10px; }
.bld-gal-item { display: flex; flex-direction: column; gap: 4px; border: 1px solid #dcdcde; padding: 6px; }
.bld-gal-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #f0f0f1; }
.bld-punkte { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.bld-punkt { display: flex; gap: 8px; align-items: flex-start; }
.bld-nr { flex: 0 0 28px; height: 28px; border-radius: 50%; background: #286140; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; margin-top: 4px; }
.bld-punkt-felder { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bld-punkt-felder input, .bld-punkt-felder textarea { width: 100%; }
.bld-punkt-felder input { font-weight: 600; }
.bld-tabelle-scroll { overflow-x: auto; }
.bld-tabelle table { border-collapse: collapse; min-width: 100%; }
.bld-tabelle th, .bld-tabelle td { border: 1px solid #dcdcde; padding: 4px; vertical-align: top; }
.bld-tabelle thead th { background: #286140; }
.bld-tabelle thead th input { font-weight: 600; }
.bld-tabelle input { width: 100%; min-width: 120px; }
.bld-tabelle .bld-tz { width: 36px; background: #f6f7f7; text-align: center; }
.bld-tabelle .bld-x { display: block; margin-top: 2px; font-size: 11px; color: #fff !important; }
.bld-tabelle-knoepfe { display: flex; gap: 8px; }
.bld-snippet { border: 1px solid #dcdcde; padding: 10px; margin-bottom: 6px; font-family: Arial, sans-serif; background: #fff; }
.bld-sn-url { font-size: 12px; color: #202124; }
.bld-sn-titel { font-size: 18px; color: #1a0dab; line-height: 1.3; margin: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bld-sn-text { font-size: 13px; color: #4d5156; line-height: 1.45; }
.bld-kats .check { min-height: 28px; }
@media (max-width: 782px) {
  .bld-zeile { flex-direction: column; }
  .bld-container { margin: 8px; }
  .bld-container-kopf .bld-mini { margin-left: 0; }
  .bld-el { flex-wrap: wrap; }
  .bld-el .bld-mini { width: 100%; justify-content: flex-end; padding: 0 6px 6px; }
  .bld-kopf-hinweis { display: none; }
}
