/* Redaktionsbereich und Prüfansicht – nutzt die Farben und Schriften aus style.css */
.red-app { padding-top: clamp(24px, 4vw, 48px); padding-bottom: var(--space); font-family: var(--font-head); color: #000; --t: var(--petrol); --t-ink: #fff; --t-tint: #CFE4E4; }
.red-app h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin: 0 0 10px; }
.red-app h3 { font-size: 1.25rem; margin: 0 0 10px; }
.red-app h4 { font-size: 1.05rem; margin: 0 0 8px; }
.red-app p { margin: 0 0 10px; line-height: 1.5; }
.red-card { background: var(--surface); border-radius: var(--r-l); padding: clamp(18px, 2.4vw, 28px); }
.red-card--stark { background: var(--t-tint); }
.red-k { font: 600 .82rem/1.2 var(--font-cond); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 4px !important; }
.red-sub { font-size: .95rem; color: #333; }
.red-lab { display: block; font-weight: 600; font-size: .98rem; margin: 10px 0 4px !important; }
.red-in { width: 100%; border: 2px solid #000; border-radius: 12px; background: #fff; padding: 9px 12px 7px; font: 400 1rem/1.4 var(--font-head); color: #000; }
.red-in--kurz { width: auto; max-width: 9.5em; }
.red-in--link { font-size: .85rem; min-width: 0; flex: 1 1 180px; }
textarea.red-in { resize: vertical; }
.red-btn { display: inline-flex; align-items: center; gap: 8px; border: 2px solid #000; border-radius: 999px; background: #000; color: #fff; padding: 9px 18px 7px; font: 600 1rem/1.2 var(--font-head); cursor: pointer; margin-top: 10px; }
.red-btn--ghost { background: transparent; color: #000; }
.red-btn--gruen { background: var(--rasengruen); border-color: var(--rasengruen); color: #000; }
.red-btn:disabled { opacity: .55; cursor: default; }
.red-mini { display: inline-flex; align-items: center; border: 1.5px solid #000; border-radius: 999px; background: #000; color: #fff; padding: 5px 12px 3px; font: 600 .88rem/1.3 var(--font-head); cursor: pointer; text-decoration: none; }
.red-mini--ghost { background: transparent; color: #000; }
.red-link { border: 0; background: none; padding: 0; font: inherit; color: #000; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.red-link--stark { font-weight: 600; font-size: 1.05rem; }
.red-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.red-row .red-btn { margin-top: 0; }
.red-spacer { flex: 1; }
.red-badge { display: inline-block; border-radius: 999px; padding: 3px 10px 1px; font: 600 .8rem/1.4 var(--font-head); background: #fff; color: #000; box-shadow: inset 0 0 0 1.5px #000; white-space: nowrap; }
.red-badge--ok { background: #DDE5B4; box-shadow: none; }
.red-badge--warn { background: #FDC999; box-shadow: none; }
.red-badge--fremd { background: var(--sonne); box-shadow: none; }
.red-badge--knopf { border: 0; cursor: pointer; }
.red-chips { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.red-status { display: inline-block; border-radius: 6px; padding: 3px 9px 1px; font: 600 .82rem/1.4 var(--font-cond); letter-spacing: .06em; text-transform: uppercase; background: var(--surface-2); color: #000; }
.red-status--in_pruefung { background: var(--sonne); } .red-status--freigegeben { background: #DDE5B4; } .red-status--veroeffentlicht { background: #000; color: #fff; }
.red-meld { position: sticky; top: 84px; z-index: 30; margin: 0 0 12px !important; border-radius: 12px; padding: 0; max-height: 0; overflow: hidden; font-weight: 600; }
.red-meld.is-da { max-height: none; padding: 11px 16px 9px; background: #000; color: #fff; }
.red-meld--fehler.is-da { background: #B8233A; }
.red-hinw { border-radius: 12px; background: var(--sonne); padding: 9px 14px 7px; font-size: .95rem; }
.red-hinw--ok { background: #DDE5B4; } .red-hinw--warn { background: #FDC999; }
.red-kisim { margin: 22px 0 0 !important; border: 2px dashed #000; border-radius: var(--r-m); padding: 12px 16px 10px; font-size: .95rem; }

/* Start */
.red-start { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }

/* Leiste */
.red-leiste { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 3px solid #000; }
.red-tabs, .red-ptabs { display: flex; flex-wrap: wrap; gap: 6px; }
.red-tab, .red-ptab { border: 2px solid #000; border-radius: 999px; background: #fff; color: #000; padding: 7px 15px 5px; font: 600 .98rem/1.2 var(--font-head); cursor: pointer; }
.red-tab[aria-selected="true"], .red-ptab[aria-selected="true"] { background: #000; color: #fff; }
.red-ptab { padding: 5px 11px 3px; font-size: .88rem; border-width: 1.5px; }
.red-zahl { display: inline-block; margin-left: 6px; min-width: 1.5em; border-radius: 999px; background: var(--sonne); color: #000; text-align: center; font-size: .8rem; padding: 1px 5px 0; }
.red-wer { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: .95rem; }

/* Übersicht */
.red-sicht { display: grid; gap: 16px; }
.red-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.red-kachel { text-align: left; border: 0; border-radius: var(--r-m); background: var(--t-tint); padding: 18px 18px 14px; display: grid; gap: 4px; cursor: pointer; font-family: var(--font-head); color: #000; }
.red-kachel:first-child { background: #000; color: #fff; }
.red-kachel strong { font: 700 clamp(1.8rem, 1.4rem + 1.4vw, 2.5rem)/1 var(--font-head); }
.red-kachel span { font: 600 .98rem/1.3 var(--font-head); }
.red-zwei { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.red-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.red-zeile { width: 100%; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; border: 0; border-radius: 12px; background: #fff; padding: 11px 14px 9px; font: inherit; color: #000; cursor: pointer; text-align: left; }
.red-gross { font: 700 1.9rem/1.1 var(--font-head); margin-bottom: 8px !important; }
.red-gross small { font: 400 1rem var(--font-head); }
.red-balken { height: 14px; border-radius: 7px; background: #fff; overflow: hidden; margin-bottom: 12px; }
.red-balken i { display: block; height: 100%; background: var(--t); border-radius: 7px; }
.red-balken i.is-voll { background: var(--orange); }
.red-log { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; font-size: .95rem; }
.red-log li { display: grid; grid-template-columns: 7.2em 1fr; gap: 12px; padding: 8px 0 6px; border-top: 1px solid var(--surface-2); line-height: 1.45; }
.red-log time { color: #333; font-variant-numeric: tabular-nums; }
.red-tabelle { overflow-x: auto; }
.red-tabelle table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .95rem; }
.red-tabelle th, .red-tabelle td { text-align: left; padding: 10px 12px 8px; border-top: 1px solid var(--surface-2); vertical-align: middle; }
.red-tabelle thead th { border-top: 0; font: 600 .82rem/1.2 var(--font-cond); letter-spacing: .08em; text-transform: uppercase; }
.red-feld { border: 0; padding: 0; margin: 0 0 10px; display: grid; gap: 4px; }
.red-feld legend { font-weight: 600; padding: 0; margin-bottom: 4px; }
.red-check { display: flex; gap: 8px; align-items: baseline; font-size: .98rem; cursor: pointer; }
.red-check input { width: 18px; height: 18px; accent-color: #000; flex: none; transform: translateY(3px); }
.red-job { background: #fff; border-radius: 12px; padding: 11px 14px 8px; }

/* Editor */
.red-edkopf { display: grid; gap: 10px; margin-bottom: 14px; }
.red-titel { width: 100%; border: 0; border-bottom: 3px solid #000; background: transparent; padding: 4px 0 2px; font: 700 clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem)/1.2 var(--font-head); color: #000; }
.red-row--kopf { gap: 8px 12px; }
.red-anwesend { display: inline-flex; gap: 6px; align-items: center; }
.red-avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sonne); color: #000; font: 700 .78rem/1 var(--font-head); padding-top: 2px; }
.red-edgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 18px; align-items: start; }
.red-canvas { background: var(--surface); border-radius: var(--r-l); padding: clamp(14px, 2vw, 22px); display: grid; gap: 10px; min-width: 0; }
.red-panel { background: var(--surface); border-radius: var(--r-l); padding: 16px; position: sticky; top: 96px; max-height: calc(100vh - 112px); overflow-y: auto; min-width: 0; }
.red-pinhalt { margin-top: 14px; display: grid; gap: 12px; }
.red-form { display: grid; gap: 6px; margin-bottom: 14px; }
.red-form .red-btn { justify-self: start; }
.red-kom { background: #fff; border-radius: 12px; padding: 11px 13px 9px; display: grid; gap: 4px; font-size: .95rem; }
.red-kom p { margin: 0; }
.red-kom.is-sel { box-shadow: 0 0 0 3px var(--t); }
.red-kom--uebernommen, .red-kom--abgelehnt, .red-kom--erledigt { background: transparent; box-shadow: inset 0 0 0 1.5px var(--surface-2); }
.red-kom__kopf { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .9rem; }
.red-diff del { color: #444; text-decoration-thickness: 2px; }
.red-diff ins { text-decoration: none; background: #DDE5B4; border-radius: 4px; padding: 0 3px; }
.red-bef { background: #fff; border-radius: 12px; padding: 10px 13px 8px; font-size: .95rem; }
.red-bef p { margin: 4px 0 0; }
.red-agent { display: grid; gap: 4px; justify-items: start; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--surface-2); }
.red-agent .red-btn { text-align: left; border-radius: 14px; font-size: .92rem; }

/* Bausteine im Editor */
.rb { background: #fff; border: 2px solid var(--surface-2); border-radius: 14px; padding: 8px 12px 12px; display: grid; gap: 8px; min-width: 0; }
.rb.is-sel { border-color: #000; box-shadow: 0 0 0 3px var(--t-tint); }
.rb.is-fremd { border-color: var(--sonne); border-style: dashed; }
.rb__bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 28px; }
.rb__typ { font: 600 .78rem/1.2 var(--font-cond); letter-spacing: .1em; text-transform: uppercase; color: #333; }
.rb__knopf { width: 28px; height: 28px; border: 1.5px solid #000; border-radius: 8px; background: #fff; color: #000; font: 600 .9rem/1 var(--font-head); cursor: pointer; }
.rb__knopf:disabled { opacity: .3; cursor: default; }
.rb-in { width: 100%; border: 1.5px solid transparent; border-radius: 8px; background: var(--surface); padding: 7px 10px 5px; font: 400 1.02rem/1.5 var(--font-body); color: #000; resize: none; overflow: hidden; min-width: 0; }
textarea.rb-in { min-height: 2.6em; height: 2.6em; display: block; }
.rb-in:hover { border-color: var(--hellgrau); }
.rb-in:focus { background: #fff; border-color: #000; outline: 0; }
.rb-in--gross { font: 600 1.2rem/1.3 var(--font-head); }
.rb-sel { width: auto; flex: none; border: 1.5px solid #000; border-radius: 8px; background: #fff; padding: 6px 8px 4px; font: 500 .9rem var(--font-head); color: #000; }
.rb__zeile { display: flex; gap: 8px; align-items: start; }
.rb__zeile .rb-in { flex: 1 1 160px; width: auto; }
.rb__raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.rb__kinder { display: grid; gap: 8px; padding: 10px; border-radius: 10px; background: var(--surface); }
.rb--akkordeon { border-left-width: 2px; }
.rb__spalten { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 8px; }
.rb__spalte { display: grid; gap: 8px; align-content: start; padding: 8px; border-radius: 10px; background: var(--surface); border: 1.5px dashed var(--hellgrau); min-width: 0; }
.rb--hinweis { background: #FFF5CC; }
.red-add { width: auto; justify-self: start; border: 1.5px dashed #000; border-radius: 999px; background: transparent; padding: 6px 12px 4px; font: 600 .9rem var(--font-head); color: #000; cursor: pointer; max-width: 100%; }

/* Lesedarstellung */
.red-lesen { background: #fff; border-radius: var(--r-m); padding: clamp(16px, 2.4vw, 28px); font: 400 1.05rem/1.65 var(--font-body); color: var(--text); }
.red-lesen > * + * { margin-top: 12px; }
.rl-titel { font: 700 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.2 var(--font-head); color: #000; margin: 0 0 6px; }
.rl-h { font-family: var(--font-head); color: #000; margin: 6px 0 0; } .rl-h2 { font-size: 1.35rem; } .rl-h3 { font-size: 1.12rem; }
.rl-p { margin: 0; }
.rl-hinweis { margin: 0; border-radius: 12px; padding: 10px 14px 8px; background: var(--t-tint); font-family: var(--font-head); }
.rl-hinweis--wichtig { background: var(--sonne); }
.rl-btn { display: inline-block; border-radius: 999px; background: #000; color: #fff; padding: 8px 16px 6px; font: 600 1rem var(--font-head); }
.rl-kontakt { display: grid; gap: 2px; border-radius: 12px; background: var(--surface); padding: 12px 14px 10px; font: 400 .98rem/1.4 var(--font-head); }
.rl-bild { margin: 0; }
.rl-bild__flaeche { display: block; height: 130px; border-radius: 12px; background: linear-gradient(160deg, #4678A0 0 55%, #96A532 55% 100%); }
.rl-bild--park .rl-bild__flaeche, .rl-bild__flaeche.rl-bild--park { background: linear-gradient(160deg, #B5C9D9 0 40%, #96A532 40% 100%); }
.rl-bild--buero .rl-bild__flaeche, .rl-bild__flaeche.rl-bild--buero { background: linear-gradient(160deg, #B4B4A0 0 50%, #737D78 50% 100%); }
.rl-bild__flaeche--klein { width: 64px; height: 44px; flex: none; border-radius: 8px; }
.rl-bild figcaption { margin-top: 4px; font: 400 .88rem/1.4 var(--font-head); color: #333; }
.rl-acc { border: 2px solid #000; border-radius: 12px; overflow: hidden; }
.rl-acc summary { cursor: pointer; padding: 10px 14px 8px; font: 600 1.05rem var(--font-head); color: #000; background: var(--surface); }
.rl-acc__body { padding: 12px 14px; display: grid; gap: 10px; }
.rl-spalten { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 12px; }
.rl-spalte { display: grid; gap: 8px; align-content: start; }

/* Prüfansicht */
.red-pruefkopf { margin-bottom: 16px; background: var(--t-tint); }
.pf-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.pf-grid > div:last-child { display: grid; gap: 16px; }
.pf-block { border-radius: 12px; padding: 8px 10px; margin: 0 -10px; border: 2px solid transparent; }
.pf-block:hover, .pf-block:focus-within, .pf-block.is-offen { border-color: var(--surface-2); background: var(--surface); }
.pf-block.is-offen { border-color: #000; }
.pf-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; font-family: var(--font-head); }
.pf-form { display: grid; gap: 6px; margin-top: 10px; font-family: var(--font-head); }
.pf-form p { margin: 0; }
.red-entscheid { background: var(--t-tint); }

@media (max-width: 900px) {
  .red-edgrid, .pf-grid { grid-template-columns: minmax(0, 1fr); }
  .red-panel { position: static; max-height: none; }
  .rb__spalten, .rl-spalten { grid-template-columns: minmax(0, 1fr); }
  .rb__zeile { flex-wrap: wrap; }
}
@media (max-width: 520px) { .red-log li { grid-template-columns: 1fr; gap: 0; } }
