/* Ablage: Win98-Classic-Look. Farben und Bevel-Variablen aus referenz-finanzen-app.css.
   Kein Inline-Style (CSP: style-src 'self'); Balkenbreiten ueber .breite-N. */

:root {
  --grau: #c0c0c0;
  --grau-hell: #dfdfdf;
  --weiss: #ffffff;
  --grau-dunkel: #808080;
  --schwarz: #0a0a0a;
  --navy: #000080;
  --navy-hell: #1084d0;
  --desktop: #008080;
  --text: #000000;
  --text-leise: #404040;
  --link: #0000ee;
  --rot: #b00000;
  --amber: #8a5a00;
  --positiv: #004d00;
  --schrift: Tahoma, Verdana, "Segoe UI", sans-serif;
  --tap: 44px;
  --taskhoehe: 48px;
  --grundschrift: 14px;

  --bevel-erhoben: inset -1px -1px var(--schwarz), inset 1px 1px var(--weiss),
    inset -2px -2px var(--grau-dunkel), inset 2px 2px var(--grau-hell);
  --bevel-gedrueckt: inset -1px -1px var(--weiss), inset 1px 1px var(--schwarz),
    inset -2px -2px var(--grau-hell), inset 2px 2px var(--grau-dunkel);
  --bevel-feld: inset -1px -1px var(--weiss), inset 1px 1px var(--grau-dunkel),
    inset -2px -2px var(--grau-hell), inset 2px 2px var(--schwarz);
  --bevel-flach-hinein: inset -1px -1px var(--weiss), inset 1px 1px var(--grau-dunkel);
  --bevel-flach-heraus: inset -1px -1px var(--grau-dunkel), inset 1px 1px var(--weiss);
  --titel-verlauf: linear-gradient(90deg, var(--navy), var(--navy-hell));
  --titel-inaktiv: linear-gradient(90deg, var(--grau-dunkel), #b5b5b5);
  color-scheme: light;
}

/* Rechner mit Maus: kompakte Win98-Masse (11-12 px) statt Touch-Masse */
@media (hover: hover) and (pointer: fine) {
  :root { --tap: 23px; --taskhoehe: 30px; --grundschrift: 12px; }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--desktop);
  overscroll-behavior: none;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--desktop);
  color: var(--text);
  font: var(--grundschrift)/1.3 var(--schrift);
  -webkit-font-smoothing: none;
  font-smooth: never;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 16px; height: 16px; flex: none; shape-rendering: crispEdges; }
.ico.gross { width: 32px; height: 32px; }
.f-schwarz { fill: #0a0a0a; }
.f-weiss { fill: #ffffff; }
.f-grau { fill: #808080; }
.f-grau-hell { fill: #dfdfdf; }
.f-navy { fill: #000080; }
.f-hell { fill: #1084d0; }
.f-rot { fill: #c00000; }
.f-gruen { fill: #008000; }
.f-gelb { fill: #e0c000; }
.f-gelb-hell { fill: #ffff80; }
.f-gelb-dunkel { fill: #a08000; }
symbol circle { shape-rendering: auto; }

/* ---------- Schaltflaechen und Felder ---------- */

button {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--tap);
  min-width: var(--tap);
  padding: 3px 12px;
  border: 0;
  border-radius: 0;
  background: var(--grau);
  color: var(--text);
  box-shadow: var(--bevel-erhoben);
  font: var(--grundschrift)/1.2 var(--schrift);
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
}
button:active:not(:disabled) { box-shadow: var(--bevel-gedrueckt); padding: 4px 11px 2px 13px; }
button:focus-visible { outline: 1px dotted var(--schwarz); outline-offset: -4px; }
button:disabled { color: var(--grau-dunkel); text-shadow: 1px 1px 0 var(--weiss); }
button:disabled .ico { opacity: .45; filter: grayscale(1); }
.primary { font-weight: bold; box-shadow: 0 0 0 1px var(--schwarz), var(--bevel-erhoben); margin: 1px; }
.primary:active:not(:disabled) { box-shadow: 0 0 0 1px var(--schwarz), var(--bevel-gedrueckt); }

input[type="text"], input[type="password"] {
  -webkit-appearance: none;
  appearance: none;
  min-height: calc(var(--tap) - 1px);
  padding: 2px 4px;
  border: 0;
  border-radius: 0;
  background: var(--weiss);
  color: var(--text);
  box-shadow: var(--bevel-feld);
  font: var(--grundschrift)/1.3 var(--schrift);
  width: 100%;
}
@media (hover: none), (pointer: coarse) {
  input[type="text"], input[type="password"] { font-size: 16px; padding: 8px 10px; }   /* kein iOS-Zoom */
}
input:focus-visible { outline: 1px dotted var(--schwarz); outline-offset: -5px; }
label { color: var(--text); }

/* ---------- Fenster ---------- */

.fenster { background: var(--grau); box-shadow: var(--bevel-erhoben); padding: 3px; min-width: 0; }
.titelleiste {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 20px;
  padding: 2px 2px 2px 3px;
  background: var(--titel-verlauf);
  color: var(--weiss);
  font: bold var(--grundschrift)/1.2 var(--schrift);
  -webkit-user-select: none;
  user-select: none;
}
.fenster.inaktiv > .titelleiste { background: var(--titel-inaktiv); }
.titel { display: flex; align-items: center; gap: 4px; min-width: 0; }
.titel > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.titel-knoepfe { display: flex; gap: 2px; flex: none; }
.tk { min-width: 16px; min-height: 14px; width: 16px; height: 14px; padding: 0; }
.tk:active:not(:disabled) { padding: 1px 0 0 1px; }
.tk .ico { width: 14px; height: 12px; }
.tk-zu { margin-left: 2px; }
@media (hover: none), (pointer: coarse) {
  .tk { width: 28px; height: 24px; }
  .tk .ico { width: 18px; height: 16px; }
  .titelleiste { min-height: 30px; }
}

#desktop {
  position: fixed;
  inset: 0 0 var(--taskhoehe) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

/* ---------- Dialoge ---------- */

.dialog { width: 400px; max-width: 100%; }
.dialog-inhalt { padding: 12px 12px 10px; }
.dialog-kopf { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.dialog-kopf p { margin: 2px 0 0; }
.felder-gitter { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 10px; align-items: center; }
.knopfreihe { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.knopfreihe button { min-width: 75px; }
.fehlertext { margin: 10px 0 0; color: var(--rot); font-weight: bold; }
.modale { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.modal-ebene {
  position: absolute;
  inset: 0 0 var(--taskhoehe) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  pointer-events: auto;
}
.modal-ebene .fenster { width: 420px; max-width: 100%; }
.modal-ebene .fenster.breit { width: 440px; }
.nachricht { display: flex; gap: 14px; align-items: flex-start; padding: 14px 12px 4px; }
.nachricht p { margin: 4px 0 0; overflow-wrap: anywhere; white-space: pre-line; }
.fenster > .knopfreihe { padding: 0 12px 12px; margin-top: 14px; }
.nachricht .ico.gross { flex: none; }
.eingabe-zeile { padding: 4px 12px 0; display: flex; flex-direction: column; gap: 4px; }

/* ---------- Explorer ---------- */

.explorer {
  width: min(900px, 100%);
  height: min(620px, 100%);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.explorer.maximiert { width: 100%; height: 100%; }
.explorer.minimiert { display: none; }

.menueleiste { display: flex; padding: 1px 0; position: relative; }
.menue { position: relative; }
.menue-knopf {
  min-height: 0;
  min-width: 0;
  padding: 2px 8px;
  background: transparent;
  box-shadow: none;
}
.menue-knopf:hover, .menue-knopf[aria-expanded="true"] { box-shadow: var(--bevel-flach-heraus); }
.menue-knopf[aria-expanded="true"] { box-shadow: var(--bevel-flach-hinein); }
.menue-popup {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 60;
  min-width: 190px;
  padding: 2px;
  background: var(--grau);
  box-shadow: var(--bevel-erhoben);
  display: flex;
  flex-direction: column;
}
.menue-punkt {
  justify-content: flex-start;
  width: 100%;
  min-height: var(--tap);
  padding: 2px 20px 2px 24px;
  background: transparent;
  box-shadow: none;
  text-align: left;
}
.menue-punkt:active:not(:disabled) { padding: 2px 20px 2px 24px; box-shadow: none; }
.menue-punkt:hover:not(:disabled), .menue-punkt:focus-visible { background: var(--navy); color: var(--weiss); outline: 0; }
.menue-punkt .tastenkuerzel { margin-left: auto; padding-left: 24px; }
.menue-trenner { height: 0; margin: 3px 1px; border-top: 1px solid var(--grau-dunkel); border-bottom: 1px solid var(--weiss); }

.symbolleiste {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1px;
  padding: 2px;
  box-shadow: var(--bevel-flach-heraus);
}
.tool { background: transparent; box-shadow: none; padding: 2px 6px; min-width: 0; }
.tool:hover:not(:disabled) { box-shadow: var(--bevel-flach-heraus); }
.tool:active:not(:disabled) { box-shadow: var(--bevel-flach-hinein); padding: 3px 5px 1px 7px; }
.tool-abmelden { margin-left: auto; font-weight: bold; box-shadow: var(--bevel-erhoben); }
.tool-abmelden:hover:not(:disabled) { box-shadow: var(--bevel-erhoben); }
.tool-abmelden:active:not(:disabled) { box-shadow: var(--bevel-gedrueckt); }
.trenner-v { width: 2px; align-self: stretch; margin: 2px 3px; border-left: 1px solid var(--grau-dunkel); border-right: 1px solid var(--weiss); }

.adressleiste { display: flex; align-items: center; gap: 8px; padding: 2px 4px; }
.adress-label { color: var(--text-leise); }
.adresse {
  flex: 1;
  min-width: 0;
  min-height: calc(var(--tap) - 2px);
  padding: 2px 4px;
  display: flex;
  align-items: center;
  background: var(--weiss);
  box-shadow: var(--bevel-feld);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.liste-rahmen {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: var(--weiss);
  box-shadow: var(--bevel-feld);
  padding: 2px;
}
.liste-rahmen.ziehen { outline: 2px dashed var(--navy); outline-offset: -6px; }
table.detail { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.detail th { position: sticky; top: 0; z-index: 1; padding: 0; background: var(--grau); font-weight: normal; text-align: left; }
.kopf-knopf { width: 100%; justify-content: flex-start; min-height: 0; padding: 2px 6px; font-weight: normal; }
.kopf-knopf:active:not(:disabled) { padding: 3px 5px 1px 7px; }
th[aria-sort="ascending"] .kopf-knopf::after { content: "\25B2"; font-size: 8px; margin-left: auto; }
th[aria-sort="descending"] .kopf-knopf::after { content: "\25BC"; font-size: 8px; margin-left: auto; }
.sp-name { width: auto; }
.sp-groesse { width: 90px; }
.sp-typ { width: 130px; }
.sp-datum { width: 130px; }
.detail td { padding: 1px 6px; min-height: var(--tap); height: var(--tap); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.detail td.zahl { text-align: right; }
.detail td.name { display: flex; align-items: center; gap: 6px; height: auto; min-height: var(--tap); }
.detail td.name .t { overflow: hidden; text-overflow: ellipsis; padding: 1px 2px; }
.detail tbody tr { cursor: default; }
.detail tbody tr:focus { outline: 0; }
.detail tbody tr[aria-selected="true"] td.name .t { background: var(--navy); color: var(--weiss); }
.detail tbody tr[aria-selected="true"]:focus td.name .t { outline: 1px dotted var(--weiss); outline-offset: -2px; }
.detail tbody tr[aria-selected="true"] td:not(.name) { color: var(--text); }
.leer-hinweis { margin: 18px 12px; color: var(--text-leise); }
.ablegen-hinweis {
  position: absolute; inset: 8px; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .85); color: var(--navy); font-weight: bold; pointer-events: none;
}

.statusleiste { display: flex; gap: 2px; }
.statusleiste span { padding: 2px 6px; box-shadow: var(--bevel-flach-hinein); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.statusleiste span:first-child { flex: 0 0 120px; }
.statusleiste span:nth-child(2) { flex: 1; min-width: 0; }
.statusleiste span:last-child { flex: 0 1 auto; }

@media (max-width: 760px) {
  #desktop { padding: 0; }
  .explorer { width: 100%; height: 100%; }
  .sp-typ, #liste td:nth-child(3) { display: none; }
  .sp-groesse { width: 100px; }
  .tool span { display: none; }
  .tool-abmelden span { display: inline; }
  .statusleiste span:nth-child(2) { display: none; }
  .statusleiste span:first-child { flex: 1; }
  .adress-label { display: none; }
}
@media (max-width: 520px) {
  .sp-datum, #liste td:nth-child(4) { display: none; }
}

/* ---------- Fortschrittsbalken (Bloecke wie bei Win98) ---------- */

.balken-spur { height: 20px; padding: 2px; background: var(--weiss); box-shadow: var(--bevel-flach-hinein); overflow: hidden; }
.balken-fuellung { height: 100%; background: repeating-linear-gradient(90deg, var(--navy) 0 9px, transparent 9px 11px); }
.fortschritt-text { margin: 8px 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fortschritt-neben { margin: 6px 0 0; color: var(--text-leise); }
.breite-0 { width: 0%; }   .breite-5 { width: 5%; }   .breite-10 { width: 10%; }  .breite-15 { width: 15%; }
.breite-20 { width: 20%; } .breite-25 { width: 25%; } .breite-30 { width: 30%; }  .breite-35 { width: 35%; }
.breite-40 { width: 40%; } .breite-45 { width: 45%; } .breite-50 { width: 50%; }  .breite-55 { width: 55%; }
.breite-60 { width: 60%; } .breite-65 { width: 65%; } .breite-70 { width: 70%; }  .breite-75 { width: 75%; }
.breite-80 { width: 80%; } .breite-85 { width: 85%; } .breite-90 { width: 90%; }  .breite-95 { width: 95%; }
.breite-100 { width: 100%; }

/* ---------- Laufwerkseigenschaften ---------- */

.reiter { display: flex; gap: 2px; padding: 0 2px; margin: 8px 8px -1px; position: relative; z-index: 1; }
.reiter span { padding: 3px 12px; background: var(--grau); margin-top: -2px; min-height: 22px;
  box-shadow: inset 1px 1px 0 var(--weiss), inset -1px 0 0 var(--schwarz), inset -2px 0 0 var(--grau-dunkel); font-weight: normal; }
.reiter-inhalt { margin: 0 8px; padding: 12px; box-shadow: inset 1px 1px 0 var(--weiss), inset -1px -1px 0 var(--schwarz), inset -2px -2px 0 var(--grau-dunkel); }
.eig-kopf { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--grau-dunkel); box-shadow: 0 1px 0 var(--weiss); }
.kv { display: grid; grid-template-columns: max-content 1fr auto; gap: 4px 10px; align-items: center; margin: 4px 0; }
.kv .zahl { text-align: right; }
.farbe { display: inline-block; width: 12px; height: 12px; box-shadow: var(--bevel-flach-hinein); }
.farbe.belegt { background: #0000ff; }
.farbe.frei { background: #ff00ff; }
.kv .trenn { grid-column: 1 / -1; height: 0; border-top: 1px solid var(--grau-dunkel); border-bottom: 1px solid var(--weiss); margin: 2px 0; }
.kuchen-box { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 10px; }
.kuchen { width: 150px; height: 100px; }
.pie-frei { fill: #ff00ff; stroke: #0a0a0a; stroke-width: 1; }
.pie-frei-seite { fill: #800080; stroke: #0a0a0a; stroke-width: 1; }
.pie-belegt { fill: #0000ff; stroke: #0a0a0a; stroke-width: 1; }
.pie-belegt-seite { fill: #000080; stroke: #0a0a0a; stroke-width: 1; }

/* ---------- Startmenue und Taskleiste ---------- */

.taskleiste {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  height: var(--taskhoehe);
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px 3px;
  background: var(--grau);
  box-shadow: inset 0 1px 0 var(--grau-hell), inset 0 2px 0 var(--weiss);
}
.start-knopf { font-weight: bold; padding: 2px 8px; }
.task-knopf { flex: 0 1 190px; min-width: 0; justify-content: flex-start; padding: 2px 8px; }
.task-knopf span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-knopf.aktiv { box-shadow: var(--bevel-gedrueckt); font-weight: bold;
  background: repeating-conic-gradient(var(--grau) 0% 25%, var(--weiss) 0% 50%) 0 0 / 2px 2px; }
.task-knopf.aktiv span { background: var(--grau); padding: 0 2px; }
.abstand { flex: 1; }
.task-abmelden { font-weight: bold; }
.infobereich { display: flex; align-items: center; height: calc(var(--taskhoehe) - 6px); padding: 0 10px; box-shadow: var(--bevel-flach-hinein); }
.startmenue {
  position: fixed; left: 2px; bottom: var(--taskhoehe); z-index: 95; display: flex;
  background: var(--grau); box-shadow: var(--bevel-erhoben); padding: 3px; pointer-events: auto;
}
.startmenue-band {
  flex: none; width: 26px; display: flex; align-items: flex-end; justify-content: center; padding: 6px 0;
  background: linear-gradient(0deg, var(--navy), var(--navy-hell)); color: var(--weiss);
  font: bold 16px var(--schrift); writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .06em;
}
.startmenue-liste { display: flex; flex-direction: column; min-width: 190px; }
.startmenue .menue-punkt { padding-left: 12px; min-height: calc(var(--tap) + 8px); gap: 10px; }
.startmenue .menue-punkt .ico { width: 24px; height: 24px; }

.noscript { position: fixed; top: 10px; left: 10px; padding: 10px; background: var(--weiss); box-shadow: var(--bevel-feld); }

@media (hover: hover) and (pointer: fine) {
  ::-webkit-scrollbar { width: 16px; height: 16px; }
  ::-webkit-scrollbar-track { background: repeating-conic-gradient(var(--grau) 0% 25%, var(--weiss) 0% 50%) 0 0 / 2px 2px; }
  ::-webkit-scrollbar-thumb { background: var(--grau); box-shadow: var(--bevel-erhoben); }
  ::-webkit-scrollbar-corner { background: var(--grau); }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }

/* ---------- Besucherstatistik ---------- */
.modal-ebene .fenster.stat { width: 700px; }
.stat-fenster { padding: 6px 8px 0; }
.reiter-knopf { min-height: 22px; padding: 3px 12px; margin-top: -2px; background: var(--grau); box-shadow: inset 1px 1px 0 var(--weiss), inset -1px 0 0 var(--schwarz), inset -2px 0 0 var(--grau-dunkel); }
.reiter-knopf:active:not(:disabled) { padding: 3px 12px; box-shadow: inset 1px 1px 0 var(--weiss), inset -1px 0 0 var(--schwarz), inset -2px 0 0 var(--grau-dunkel); }
.reiter-knopf.aktiv { font-weight: bold; margin-top: -4px; padding-bottom: 5px; }
.stat-fenster .reiter { margin: 0 0 -1px; }
.stat-rumpf { margin: 0; min-height: 300px; max-height: 60vh; overflow: auto; background: var(--grau); }
.kennzahlen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.kennzahl { display: flex; flex-direction: column; gap: 2px; padding: 6px 8px; background: var(--weiss); box-shadow: var(--bevel-flach-hinein); }
.kz-label { color: var(--text-leise); }
.kz-wert { font-size: 1.5em; }
.chart-titel { margin: 4px 0; }
.chart { display: flex; align-items: flex-end; gap: 2px; height: 150px; padding: 6px 6px 0; margin-bottom: 18px; background: var(--weiss); box-shadow: var(--bevel-feld); }
.saeule-box { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; }
.saeule { width: 100%; min-height: 1px; background: var(--navy); }
.saeule-label { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); font-size: 9px; white-space: nowrap; margin-top: 2px; }
.stat-liste { min-height: 200px; }
.stat-tabelle th .kopf-knopf { display: flex; box-shadow: var(--bevel-erhoben); background: var(--grau); }
.stat-tabelle td { height: auto; min-height: 20px; }
.stat-tabelle .sp-seite { width: 30%; }
.stat-tabelle .sp-balken { width: 50%; }
.stat-tabelle .sp-zahl { width: 90px; }
.stat-tabelle .sp-datum2 { width: 140px; }
.balken-zelle { display: flex; align-items: center; gap: 8px; }
.balken-zelle .balken-spur { flex: 1; height: 14px; padding: 1px; }
/* ---------- Inhalte bearbeiten ---------- */
.modal-ebene .fenster.ed-gross { width: 980px; height: min(700px, 100%); display: flex; flex-direction: column; }
.ed-gross .ed { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 3px; padding: 0 4px; }
.ed-haupt { flex: 1; min-height: 0; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 4px; }
.ed-baum { margin: 0; padding: 2px; list-style: none; overflow: auto; background: var(--weiss); box-shadow: var(--bevel-feld); }
.ed-baum .baum-knoten { display: flex; justify-content: flex-start; width: 100%; min-height: var(--tap); padding: 1px 4px 1px 6px; background: transparent; box-shadow: none; text-align: left; }
.ed-baum .baum-knoten[data-tief="1"] { padding-left: 24px; }
.ed-baum .baum-knoten span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-baum .baum-knoten.aktiv { background: var(--navy); color: var(--weiss); }
.ed-baum .baum-knoten:active:not(:disabled) { padding: 1px 4px 1px 6px; }
.ed-baum .baum-knoten[data-tief="1"]:active:not(:disabled) { padding-left: 24px; }
.baum-ordner { display: flex; align-items: center; gap: 6px; padding: 4px 6px; min-height: var(--tap); font-weight: bold; }
.baum-hinweis { padding: 2px 24px; color: var(--text-leise); }
.ed-editor { display: flex; flex-direction: column; gap: 6px; min-height: 0; overflow: auto; padding: 2px; }
.ed-feld { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 4px 8px; align-items: center; }
.ed-hinweis { margin: 0; color: var(--text-leise); }
.ed-aktionen { display: flex; justify-content: flex-end; }
textarea.ed-text {
  -webkit-appearance: none; appearance: none; flex: 1; min-height: 180px; width: 100%; padding: 6px 8px; border: 0; border-radius: 0; resize: none;
  background: var(--weiss); color: var(--text); box-shadow: var(--bevel-feld); font: 13px/1.45 "Courier New", monospace;
}
textarea.ed-text.klartext { min-height: 100px; }
.ed-feld textarea.ed-text { flex: none; min-height: 110px; }
textarea.ed-text::placeholder, input::placeholder { color: var(--grau-dunkel); }
.md-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 2px; box-shadow: var(--bevel-flach-heraus); }
.md-knopf { min-width: 28px; padding: 2px 8px; }
.md-knopf.f { font-weight: bold; }
.md-knopf.k { font-style: italic; }
.ed-reiter { margin: 4px 0 -4px; padding-left: 0; }
.ed-vorschau { flex: 1; min-height: 180px; overflow: auto; padding: 10px 14px; background: var(--weiss); box-shadow: var(--bevel-feld); font: 14px/1.5 "Times New Roman", Georgia, serif; }
.ed-vorschau h1 { font-size: 1.5em; margin: .6em 0 .3em; }
.ed-vorschau h2 { font-size: 1.2em; margin: .6em 0 .3em; }
.ed-vorschau p { margin: .5em 0; }
.ed-vorschau ul { margin: .4em 0; padding-left: 1.5em; }
.statusleiste.ed-statusleiste span:first-child { flex: 1; }
.fassungen { max-height: 50vh; overflow: auto; }
@media (hover: none), (pointer: coarse) { textarea.ed-text { font-size: 16px; } }
@media (max-width: 760px) {
  .modal-ebene .fenster.ed-gross { width: 100%; height: 100%; }
  .modal-ebene:has(.ed-gross) { padding: 0; }
  .ed-haupt { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(90px, 30%) minmax(0, 1fr); }
  .ed-feld { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) { .kennzahlen { grid-template-columns: 1fr 1fr; } .modal-ebene .fenster.stat { width: 100%; } }

/* Turnstile im Login-Dialog */
.botcheck { margin: 12px 0 0; padding: 4px; min-height: 73px; display: flex; align-items: center; justify-content: center; background: var(--grau-hell); box-shadow: var(--bevel-feld); overflow: hidden; }
.datenschutz-hinweis { margin: 10px 0 0; font-size: 10px; color: var(--text-leise); }
.datenschutz-hinweis a { color: var(--link); }

/* Darstellung wie md.js auf dptrs.de */
.md-vorschau .md-unter { font-style: italic; margin-top: 0; }
.md-vorschau .md-kopf { margin-top: .9em; }
.md-vorschau .md-linie { border: 0; border-top: 1px solid var(--grau-dunkel); margin: .6em 0; }
