/* Gemeindeplan – Grundstil im Bistumsblau der Website (lokale Schriften, keine externen Quellen) */

@font-face { font-family: 'Bricolage Grotesque'; font-weight: 500 800; font-display: swap;
  src: url(fonts/bricolage-grotesque-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 500 800; font-display: swap;
  src: url(fonts/bricolage-grotesque-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Sans 3'; font-weight: 400 600; font-display: swap;
  src: url(fonts/source-sans-3-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Sans 3'; font-weight: 400 600; font-display: swap;
  src: url(fonts/source-sans-3-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --blau: #0081C2; --blau-dunkel: #00669A; --hellblau: #009FE3;
  --schiefer: #1F2A33; --text-2: #4E5056; --gedaempft: #5A6B7C;
  --linie: #DFE4EA; --grund: #F4F6F9; --weiss: #FFFFFF;
  --fehler: #B5121B; --fehler-grund: #FDECEC; --hinweis-grund: #E6F3FA;
  --display: 'Bricolage Grotesque', 'Segoe UI', Helvetica, Arial, sans-serif;
  --text: 'Source Sans 3', 'Segoe UI', Helvetica, Arial, sans-serif;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grund); color: var(--schiefer); font: 17px/1.55 var(--text);
  -webkit-font-smoothing: antialiased; }
a { color: var(--blau); text-underline-offset: .15em; }
a:hover { color: var(--blau-dunkel); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 4vw, 40px); font-weight: 800; }
h2 { font-size: 24px; font-weight: 700; }
p { margin: 0 0 1em; }

/* Kopf */
.kopf { background: var(--weiss); border-bottom: 1px solid var(--linie); }
.kopf__innen { max-width: 1100px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.marke { font-family: var(--display); font-size: 21px; color: var(--schiefer); text-decoration: none; letter-spacing: -0.02em; }
.marke b { color: var(--blau); font-weight: 800; }
.marke small { display: block; font-family: var(--text); font-size: 13px; color: var(--gedaempft); letter-spacing: 0; }
.nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--schiefer); font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--grund); color: var(--blau); }
.nav form { margin: 0; }

/* Inhalt */
main { max-width: 1100px; margin: 0 auto; padding: 32px 20px 64px; }
.schmal { max-width: 560px; margin: 0 auto; }
.karte { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 28px; }
.karte + .karte { margin-top: 20px; }
.einleitung { font-size: 19px; color: var(--text-2); }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.kachel { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 22px; }
.kachel h2 { font-size: 20px; margin-bottom: .3em; }
.kachel p { color: var(--text-2); margin: 0; font-size: 15px; }
.kachel--bald { opacity: .65; }
.marker { display: inline-block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  color: var(--blau); margin-bottom: 6px; }

/* Formulare */
fieldset { border: 0; padding: 0; margin: 0 0 24px; }
legend { font-family: var(--display); font-weight: 700; font-size: 20px; margin-bottom: 10px; padding: 0; }
label { display: block; font-weight: 600; margin: 14px 0 6px; }
.hilfe { display: block; font-weight: 400; color: var(--gedaempft); font-size: 14px; margin-top: 2px; }
input[type=text], input[type=email], input[type=url], input[type=password], input[type=number], select {
  width: 100%; font: inherit; padding: 11px 14px; border: 1.5px solid #C5CCD6; border-radius: 10px; background: var(--weiss);
  color: var(--schiefer); }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--hellblau); outline-offset: 2px; }
input.code { font-family: var(--display); font-size: 30px; letter-spacing: .3em; text-align: center; }
.zeile { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.knopf { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 13px 24px;
  font: 600 17px var(--text); background: var(--blau); color: #fff; cursor: pointer; text-decoration: none; }
.knopf:hover { background: var(--blau-dunkel); color: #fff; }
.knopf--leise { background: transparent; color: var(--schiefer); border: 1.5px solid #C5CCD6; }
.knopf--leise:hover { background: var(--grund); color: var(--schiefer); }
.knopf--klein { padding: 7px 14px; font-size: 15px; }
.aktionen { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; align-items: center; }

/* Meldungen */
.meldung { border-radius: 10px; padding: 12px 16px; margin: 0 0 20px; }
.meldung--fehler { background: var(--fehler-grund); color: var(--fehler); }
.meldung--hinweis { background: var(--hinweis-grund); color: var(--schiefer); }
.meldung ul { margin: 0; padding-left: 20px; }

/* Tabellen */
.tabelle { width: 100%; border-collapse: collapse; background: var(--weiss); border-radius: var(--radius); overflow: hidden; }
.tabelle th, .tabelle td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--gedaempft); background: #FAFBFC; }
.tabelle tr:last-child td { border-bottom: 0; }
.pille { display: inline-block; font-size: 13px; padding: 2px 10px; border-radius: 999px; background: var(--hinweis-grund); color: var(--blau-dunkel); font-weight: 600; }

.qr { display: flex; justify-content: center; margin: 12px 0; }
.qr svg { width: 240px; max-width: 100%; height: auto; display: block; }
.geheim { font-family: ui-monospace, monospace; word-break: break-all; background: var(--grund); padding: 8px 12px; border-radius: 8px; }
.fuss { text-align: center; color: var(--gedaempft); font-size: 14px; padding: 0 20px 32px; }

[hidden] { display: none !important; }

@media (max-width: 640px) {
  main { padding: 20px 16px 48px; }
  .karte { padding: 20px; }
  .zeile { grid-template-columns: 1fr; }
  .tabelle th:nth-child(n+3), .tabelle td:nth-child(n+3) { display: none; }
}

.abstand-oben { margin-top: 16px; }
.kachel--link { text-decoration: none; color: inherit; transition: border-color .15s; }
.kachel--link:hover { border-color: var(--blau); color: inherit; }
.karte--tabelle { padding: 0; overflow: hidden; }

/* ===================== Einrichtungs-Assistent ===================== */

.assi-body { background: var(--grund); }
.assi { min-height: 100vh; display: grid; grid-template-columns: minmax(280px, 360px) 1fr; }

.assi__seite { background: var(--schiefer); color: #E8EEF3; padding: 44px 36px; display: flex; flex-direction: column; gap: 28px;
  position: relative; overflow: hidden; }
.assi__seite::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,159,227,.35), rgba(0,159,227,0) 70%); pointer-events: none; }
.assi__marke { font-family: var(--display); font-size: 26px; letter-spacing: -0.02em; color: #fff; }
.assi__marke b { color: var(--hellblau); font-weight: 800; }
.assi__claim { margin: 0; color: #A9B8C6; font-size: 16px; }
.assi__schritte { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.assi__punkt { display: flex; align-items: center; gap: 14px; padding: 9px 10px; border-radius: 12px; color: #8EA0B1; font-weight: 600; }
.assi__nr { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 14px;
  border: 1.5px solid #3D4D5B; color: #8EA0B1; }
.assi__nr .icon { width: 16px; height: 16px; stroke-width: 2.6; }
.assi__punkt--fertig { color: #CFE3F0; }
.assi__punkt--fertig .assi__nr { background: var(--blau); border-color: var(--blau); color: #fff; }
.assi__punkt--aktiv { background: rgba(255,255,255,.07); color: #fff; }
.assi__punkt--aktiv .assi__nr { border-color: var(--hellblau); color: #fff; box-shadow: 0 0 0 4px rgba(0,159,227,.22); }
.assi__zitat { margin-top: auto; font-family: var(--display); font-size: 20px; color: #CFE3F0; letter-spacing: -0.01em; }

.assi__haupt { padding: 40px clamp(20px, 6vw, 88px) 64px; display: flex; flex-direction: column; }
.assi__kopf { display: flex; align-items: center; gap: 16px; max-width: 640px; width: 100%; margin-bottom: 40px; }
.assi__zaehler { font-size: 14px; font-weight: 600; color: var(--gedaempft); white-space: nowrap; }
.assi__balken { flex: 1; height: 6px; background: var(--linie); border-radius: 999px; overflow: hidden; }
.assi__fuellung { display: block; height: 100%; background: linear-gradient(90deg, var(--blau), var(--hellblau)); border-radius: inherit;
  transition: width .6s ease; }
.assi__fuellung--1 { width: 6%; } .assi__fuellung--2 { width: 20%; } .assi__fuellung--3 { width: 36%; }
.assi__fuellung--4 { width: 52%; } .assi__fuellung--5 { width: 68%; } .assi__fuellung--6 { width: 84%; } .assi__fuellung--7 { width: 100%; }

.assi__inhalt { max-width: 640px; width: 100%; animation: einblenden .45s ease both; }
@keyframes einblenden { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .assi__inhalt { animation: none; } .assi__fuellung { transition: none; } }

.assi__marker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--blau); font-weight: 600;
  font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.assi__marker .icon { width: 18px; height: 18px; }
.assi__titel { font-size: clamp(34px, 5vw, 52px); font-weight: 800; line-height: 1.02; margin-bottom: 14px; }
.assi__lead { font-size: 19px; color: var(--text-2); margin-bottom: 28px; max-width: 34em; }
.assi__karte { background: var(--weiss); border: 1px solid var(--linie); border-radius: 20px; padding: 28px;
  box-shadow: 0 18px 40px -24px rgba(31,42,51,.25); }
.assi__karte label:first-of-type { margin-top: 0; }
.assi__karte label .icon { width: 18px; height: 18px; vertical-align: -3px; color: var(--blau); }

.knopf--gross { padding: 15px 28px; font-size: 18px; }
.aktionen--rechts { justify-content: flex-end; }
.aktionen--zwischen { justify-content: space-between; }
.zurueck { color: var(--gedaempft); text-decoration: none; font-weight: 600; }
.zurueck:hover { color: var(--schiefer); }
.code--breit { letter-spacing: .18em; }

.vorteile { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.vorteile li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-2); }
.vorteile .icon { width: 26px; height: 26px; flex: none; color: var(--blau); margin-top: 1px; }
.vorteile b { color: var(--schiefer); }

/* Auswahlkacheln (Radio) */
.wahl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 8px; }
.wahl__input { position: absolute; opacity: 0; pointer-events: none; }
.wahl__kachel { margin: 0; display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1.5px solid var(--linie);
  border-radius: 14px; cursor: pointer; font-weight: 400; transition: border-color .15s, box-shadow .15s, background .15s; }
.wahl__kachel .icon { width: 28px; height: 28px; color: var(--blau); margin-bottom: 4px; }
.wahl__kachel b { font-family: var(--display); font-size: 17px; letter-spacing: -0.01em; }
.wahl__kachel span { font-size: 14px; color: var(--gedaempft); line-height: 1.35; }
.wahl__kachel:hover { border-color: #9FC9E4; }
.wahl__input:checked + .wahl__kachel { border-color: var(--blau); background: #F2F9FD; box-shadow: 0 0 0 3px rgba(0,129,194,.15); }
.wahl__input:focus-visible + .wahl__kachel { outline: 3px solid var(--hellblau); outline-offset: 2px; }

/* Nur die Felder des gewählten Versandwegs zeigen (CSS-only; ohne :has bleibt alles sichtbar) */
@supports selector(:has(*)) {
  .mailform .nur { display: none; }
  .mailform:has(#p-smtp:checked) .nur--smtp,
  .mailform:has(#p-lettermint:checked) .nur--lettermint,
  .mailform:has(#p-console:checked) .nur--console { display: block; animation: einblenden .3s ease both; }
}

.visuell-versteckt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Zweiter Faktor */
.zweifaktor { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.zweifaktor h2 { font-size: 19px; }
.zweifaktor .qr { justify-content: flex-start; }

/* Fertig */
.fertig__haken { width: 72px; height: 72px; border-radius: 50%; background: var(--blau); color: #fff; display: grid; place-items: center;
  margin-bottom: 20px; animation: aufploppen .5s cubic-bezier(.2,1.4,.4,1) both; }
.fertig__haken .icon { width: 38px; height: 38px; stroke-width: 2.6; }
@keyframes aufploppen { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.naechste { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.naechste__kachel { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--weiss); border: 1px solid var(--linie);
  border-radius: 14px; color: var(--schiefer); text-decoration: none; }
.naechste__kachel .icon { width: 26px; height: 26px; color: var(--blau); margin-bottom: 4px; }
.naechste__kachel b { font-family: var(--display); font-size: 17px; }
.naechste__kachel span { font-size: 14px; color: var(--gedaempft); }
a.naechste__kachel:hover { border-color: var(--blau); color: var(--schiefer); }
.naechste__kachel--bald { opacity: .6; }

@media (max-width: 900px) {
  .assi { grid-template-columns: 1fr; }
  .assi__seite { padding: 20px; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
  .assi__seite::after, .assi__claim, .assi__schritte, .assi__zitat { display: none; }
  .assi__haupt { padding: 24px 16px 48px; }
  .assi__kopf { margin-bottom: 24px; }
  .wahl, .zweifaktor, .naechste { grid-template-columns: 1fr; }
  .assi__karte { padding: 20px; }
  .aktionen--zwischen { flex-direction: column-reverse; align-items: stretch; }
  .aktionen--zwischen .knopf { justify-content: center; }
}

/* ===================== Orte & Räume ===================== */
.seitenkopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.seitenkopf h1 { margin-bottom: .2em; }
.brotkrume { font-size: 14px; color: var(--gedaempft); margin-bottom: 8px; }
.brotkrume a { color: var(--gedaempft); }
.stadtteil { margin-top: 28px; }
.stadtteil__titel { display: flex; align-items: center; gap: 10px; font-size: 22px; }
.zaehler { font-family: var(--text); font-size: 13px; font-weight: 600; background: var(--linie); color: var(--text-2);
  border-radius: 999px; padding: 2px 9px; letter-spacing: 0; }
.ortkarte h3 { font-family: var(--display); font-size: 20px; margin: 2px 0 6px; }
.ortkarte p { margin-bottom: 6px; }
.ortkarte__fuss { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 14px; color: var(--gedaempft); }
.pille--grau { background: var(--grund); color: var(--gedaempft); }
.leer { text-align: center; background: var(--weiss); border: 1.5px dashed #C5CCD6; border-radius: var(--radius); padding: 48px 24px; }
.leer p { color: var(--text-2); }
.zweispaltig { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; align-items: start; margin-top: 20px; }
.zweispaltig .karte + .karte { margin-top: 0; }
.steckbrief { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.steckbrief dt { color: var(--gedaempft); font-size: 15px; }
.steckbrief dd { margin: 0; }
.umbruch { white-space: pre-line; }
.raumzeile { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--linie); }
.raumzeile--archiv { opacity: .55; }
.raumneu { margin-top: 20px; padding-top: 4px; }
.raumneu h3 { font-family: var(--display); font-size: 18px; }
label.haken { display: flex; gap: 10px; align-items: center; font-weight: 400; }
label.haken input { width: 20px; height: 20px; accent-color: var(--blau); }
textarea { width: 100%; font: inherit; padding: 11px 14px; border: 1.5px solid #C5CCD6; border-radius: 10px; background: var(--weiss); color: var(--schiefer); resize: vertical; }
textarea:focus-visible { outline: 3px solid var(--hellblau); outline-offset: 2px; }
.zeile--halb { grid-template-columns: 1fr 1fr; }
.zeile--plz { grid-template-columns: 1fr 3fr; }
@media (max-width: 760px) {
  .zweispaltig { grid-template-columns: 1fr; }
  .zeile--halb, .zeile--plz { grid-template-columns: 1fr; }
}

/* Website-Verwaltung */
.reiter { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--linie); margin: 0 0 24px; }
.reiter a { padding: 10px 14px; text-decoration: none; color: var(--text-2); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.reiter a:hover { color: var(--schiefer); }
.reiter a[aria-current="page"] { color: var(--blau); border-bottom-color: var(--blau); }
.reiter__extern { margin-left: auto; }
.mittel { max-width: 860px; margin: 0 auto; }
.text--lang { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 15px; line-height: 1.55; }
.feldtitel { font-weight: 600; margin: 18px 0 6px; }
.tabelle code { background: var(--grund); padding: 1px 6px; border-radius: 6px; font-size: 14px; }
.bildwahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.bildwahl__punkt { position: relative; margin: 0; cursor: pointer; }
.bildwahl__punkt input { position: absolute; opacity: 0; }
.bildwahl__punkt img, .bildwahl__leer { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 3px solid transparent; background: var(--grund); color: var(--gedaempft); font-size: 14px; }
.bildwahl__punkt input:checked + img, .bildwahl__punkt input:checked + .bildwahl__leer { border-color: var(--blau); }
.bildwahl__punkt input:focus-visible + * { outline: 3px solid var(--hellblau); outline-offset: 2px; }
.bilderraster { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.bildkachel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; }
.bildkachel .aktionen { margin-top: 12px; }
.einzug--1 { padding-left: 22px; } .einzug--2 { padding-left: 44px; } .einzug--3 { padding-left: 66px; }
.einzug--1::before, .einzug--2::before, .einzug--3::before { content: "↳ "; color: var(--gedaempft); }
.rechts { text-align: right; white-space: nowrap; }
.zeile--drei { grid-template-columns: 1.2fr .8fr 2fr; }
.loeschen { margin-top: 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
@media (max-width: 640px) { .zeile--drei { grid-template-columns: 1fr 1fr; } }

/* Schreibtisch: Inhalt links so, wie er auf der Website aussieht – Einstellungen rechts */
.schreibtisch { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.schreibtisch__blatt { background: var(--weiss); border: 1px solid var(--linie); border-radius: 16px; padding: 40px clamp(20px, 5vw, 56px) 48px; min-height: 70vh; }
.schreibtisch__seite { display: grid; gap: 12px; position: sticky; top: 16px; }
.schreibtisch__seite .karte { margin: 0; padding: 18px; }
.schreibtisch__seite label:first-child { margin-top: 0; }
.seitenfach summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.seitenfach summary::-webkit-details-marker { display: none; }
.seitenfach summary::after { content: "+"; color: var(--blau); font-size: 20px; line-height: 1; }
.seitenfach[open] summary::after { content: "–"; }
.seitenfach[open] summary { margin-bottom: 8px; }
.seitenfach .bildwahl { grid-template-columns: repeat(3, 1fr); }
.schreibtisch__seite .haken .hilfe { display: block; margin-top: 2px; }
.knopf--breit { width: 100%; justify-content: center; }
.unsichtbar { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.schreibtisch__blatt .blatt__titel, .schreibtisch__blatt .blatt__einleitung { width: 100%; border: 0; border-radius: 8px; padding: 4px 6px; margin: 0 0 8px -6px; background: transparent; color: var(--schiefer); resize: vertical; }
.schreibtisch__blatt .blatt__titel { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.02em; line-height: 1.1; }
.schreibtisch__blatt .blatt__einleitung { font: 21px/1.45 var(--text); color: var(--text-2); min-height: 2.9em; }
.schreibtisch__blatt .blatt__titel:hover, .schreibtisch__blatt .blatt__einleitung:hover { background: var(--grund); }
.schreibtisch__blatt .blatt__titel:focus, .schreibtisch__blatt .blatt__einleitung:focus { outline: 2px solid var(--hellblau); outline-offset: 0; background: var(--weiss); }

/* Editor */
.editor { margin-top: 16px; border-top: 1px solid var(--linie); }
.editor__leiste { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0; background: var(--weiss); border-bottom: 1px solid var(--linie); }
.editor__gruppe { display: flex; gap: 2px; padding-right: 6px; border-right: 1px solid var(--linie); }
.editor__gruppe:last-child { border-right: 0; }
.editor__knopf { display: inline-flex; align-items: center; gap: 6px; min-width: 36px; height: 36px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--schiefer); font: 600 14px var(--text); cursor: pointer; }
.editor__knopf svg { width: 20px; height: 20px; flex: none; }
.editor__knopf:hover { background: var(--grund); }
.editor__knopf[aria-pressed="true"] { background: #E3F1FA; color: var(--blau); }
.editor__knopf:disabled { opacity: .35; cursor: default; background: transparent; }
.editor__format { height: 36px; width: auto; padding: 0 10px; margin: 0; font-weight: 600; }
.editor__linkfeld { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; padding: 12px; margin-top: 8px; background: var(--grund); border-radius: 10px; }
.editor__linkfeld label { flex: 1 1 280px; margin: 0; }
.editor__linkfeld input { margin-top: 4px; }
.editor__fehler { color: var(--fehler); flex-basis: 100%; font-size: 14px; }
.editor__fehler:empty { display: none; }
.editor__flaeche .tiptap { min-height: 320px; padding: 16px 0 8px; outline: none; }
.editor__flaeche .tiptap p.is-editor-empty:first-child::before { content: attr(data-placeholder); color: var(--gedaempft); float: left; height: 0; pointer-events: none; }
.editor__flaeche .ProseMirror-selectednode { outline: 2px solid var(--hellblau); }
.editor__flaeche .ProseMirror-gapcursor { display: none; pointer-events: none; position: absolute; }
.editor__flaeche .ProseMirror-gapcursor::after { content: ""; display: block; position: absolute; top: -2px; width: 20px; border-top: 1px solid var(--schiefer); animation: gapcursor 1.1s steps(2, start) infinite; }
.editor__flaeche .ProseMirror-focused .ProseMirror-gapcursor { display: block; }
@keyframes gapcursor { to { visibility: hidden; } }
textarea[data-editor] { font-family: ui-monospace, Menlo, monospace; font-size: 14px; }

/* Website-Typografie im Editor (wie .w-fliesstext auf der Website) */
.w-fliesstext { color: var(--text-2); font-size: 18px; line-height: 1.6; }
.w-fliesstext h2 { font-size: 30px; color: var(--schiefer); margin: 40px 0 12px; }
.w-fliesstext h3 { font-size: 22px; color: var(--schiefer); margin: 28px 0 8px; }
.w-fliesstext p, .w-fliesstext ul, .w-fliesstext ol { margin: 0 0 1em; }
.w-fliesstext li p { margin: 0 0 .3em; }
.w-fliesstext strong { color: var(--schiefer); }
.w-fliesstext a { color: var(--blau); }
.w-fliesstext .w-kasten { background: var(--weiss); border: 1px solid var(--linie); border-left: 4px solid var(--blau); border-radius: 14px; padding: 20px 24px; margin: 24px 0; }
.w-fliesstext .w-kasten p { margin: 0; }
.w-fliesstext .w-kasten__titel { font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--schiefer); margin-bottom: 6px !important; }
.w-fliesstext .w-hinweis { font-size: 15px; color: var(--gedaempft); background: #EEF0F4; border-radius: 10px; padding: 10px 14px; }
.w-fliesstext .w-klapp { background: var(--weiss); border: 1px solid var(--linie); border-left: 4px solid var(--blau); border-radius: 12px; margin-top: 10px; }
.w-fliesstext .w-klapp__titel { padding: 16px 20px 8px; font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--blau); }
.w-fliesstext .w-klapp--editor .w-klapp__titel::after { content: "  ▾ klappt auf der Website auf"; font: 400 13px var(--text); color: var(--gedaempft); }
.w-fliesstext .w-klapp__inhalt { padding: 0 24px 16px; }

@media (max-width: 960px) {
  .schreibtisch { grid-template-columns: 1fr; }
  .schreibtisch__seite { position: static; }
  .schreibtisch__blatt { padding: 24px 16px; }
}
