/* Mahadevi Yoga – Verwaltung
   Design 1d aus «Software-Design-Varianten.dc.html»: Seitenleiste links, Schriften wie auf der Webseite,
   Statusbalken, Violett beim Klicken, Salbei als Akzent. Kein Darkmode. */

/* Schriften lokal – dieselben Dateien wie www.mahadeviyoga.ch (SIL Open Font License 1.1) */
@font-face {
  font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("schriften/newsreader-variabel-normal-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: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("schriften/newsreader-variabel-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 400 600; font-stretch: 100%; font-display: swap;
  src: url("schriften/archivo-variabel-normal-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: "Archivo"; font-style: normal; font-weight: 400 600; font-stretch: 100%; font-display: swap;
  src: url("schriften/archivo-variabel-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --tinte: #241F1B;
  --grund: #F2ECE2;
  --papier: #FBF7F0;
  --sand: #EAE1D3;
  --markiert: #F6F0E6;
  --salbei: #A9D8C4;
  --wald: #1B2E26;
  --violett: #B01A66;
  --gold: #B7892C;
  --hell: #F7F2EA;
  --linie: rgba(36, 31, 27, .16);
  --rahmen: rgba(36, 31, 27, .24);
  --leise: rgba(36, 31, 27, .58);
  --serif: "Newsreader", Georgia, serif;
  --sans: "Archivo", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.45; color: var(--tinte); background: var(--grund); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: underline; text-decoration-color: rgba(36, 31, 27, .3); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--violett); text-decoration-color: currentColor; }
h1 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: 44px; line-height: 1; letter-spacing: -.022em; }
h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.2; letter-spacing: -.01em; }
small { font-size: 12.5px; color: var(--leise); }
strong { font-weight: 500; }
[hidden] { display: none !important; }

/* Rahmen: Seitenleiste und Inhalt */
.rahmen { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.seitenleiste { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 34px; padding: 26px 22px; background: var(--tinte); color: var(--grund); }
.logo { display: block; text-decoration: none; }
.logo img { display: block; width: 180px; height: auto; }
.untertitel { margin: 10px 0 0; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; opacity: .55; }
.module { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.module a { display: flex; align-items: center; min-height: 46px; padding: 0 14px; color: inherit; text-decoration: none; opacity: .7; transition: background .3s ease; }
.module a:hover { color: inherit; background: rgba(242, 236, 226, .1); opacity: 1; }
.module a[aria-current] { background: var(--salbei); color: var(--wald); font-weight: 500; opacity: 1; }
.module a:active { background: var(--violett); color: var(--hell); opacity: 1; }
.aktionen { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.aktionen a { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 10px; text-align: center; border: 1px solid rgba(242, 236, 226, .4); color: var(--grund); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; transition: border-color .25s ease, background .25s ease; }
.aktionen a:hover { border-color: var(--salbei); color: var(--salbei); }
.aktionen a.haupt { background: var(--grund); border-color: var(--grund); color: var(--tinte); }
.aktionen a.haupt:hover { background: var(--salbei); border-color: var(--salbei); color: var(--tinte); }
.aktionen a:active, .aktionen a.haupt:active { background: var(--violett); border-color: var(--violett); color: var(--hell); }
.fuss { margin: 14px 0 0; font-size: 11.5px; line-height: 1.6; opacity: .5; }
.aktionen form { margin: 6px 0 0; }
.aktionen form button.link { color: var(--grund); opacity: .5; font-size: 11.5px; text-decoration: underline; text-underline-offset: 3px; }
.aktionen form button.link:hover, .aktionen form button.link:active { background: none; opacity: 1; color: var(--salbei); }

main { display: flex; flex-direction: column; gap: 22px; min-width: 0; padding: 30px 32px 48px; }
main > * { margin: 0; }
main > h2, main > .abschnitt, main > .spalten { margin-top: 14px; }
.kopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.abschnitt { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.flash { padding: 14px 20px; background: var(--salbei); color: var(--wald); font-size: 14px; white-space: pre-line; }

/* Bedienelemente */
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--tinte); border-radius: 0; background: var(--tinte); color: var(--grund); font: inherit; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .25s ease, border-color .25s ease; }
button:hover, .button:hover { background: var(--wald); border-color: var(--wald); color: var(--grund); }
button.zweit { background: transparent; border-color: var(--rahmen); color: var(--tinte); }
button.zweit:hover { background: transparent; border-color: var(--tinte); color: var(--tinte); }
button:active, .button:active, button.zweit:active { background: var(--violett); border-color: var(--violett); color: var(--hell); }
button.link { min-height: 0; padding: 0; border: 0; background: none; color: var(--leise); font-size: 13px; letter-spacing: 0; text-transform: none; text-decoration: underline; text-underline-offset: 3px; }
button.link:hover, button.link:active { background: none; color: var(--violett); }
input:not([type=checkbox]):not([type=file]), select { min-height: 44px; padding: 0 12px; border: 1px solid var(--rahmen); border-radius: 0; background: var(--papier); color: var(--tinte); font: inherit; font-size: 14px; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--violett); outline-offset: 1px; }
input[type=checkbox] { width: 16px; height: 16px; margin: 0; accent-color: var(--tinte); vertical-align: middle; }
.suche { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.suche input[type=search] { width: 240px; }
.box { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 16px 20px; background: var(--papier); border: 1px solid var(--linie); }

/* Tabellen */
table { width: 100%; border-collapse: collapse; background: var(--papier); border: 1px solid var(--linie); }
th { padding: 14px 10px; border-bottom: 1px solid var(--linie); text-align: left; font-weight: 400; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(36, 31, 27, .5); white-space: nowrap; }
td { padding: 15px 10px; border-bottom: 1px solid rgba(36, 31, 27, .1); vertical-align: middle; }
th:first-child, td:first-child { padding-left: 20px; }
th:last-child, td:last-child { padding-right: 20px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .3s ease; }
tbody tr:hover { background: var(--sand); }
tr:has(input[name=rechnung]:checked), tr:has(input[name=kunde]:checked) { background: var(--markiert); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
td.betrag { font-family: var(--serif); font-size: 20px; white-space: nowrap; }
td .name { font-size: 16px; }
tr.inaktiv { color: rgba(36, 31, 27, .45); }
td form { margin: 0; }

/* Icon-Knöpfe (Rechnung/Beleg ansehen, Herunterladen, E-Mail, Löschen …) */
.symbol { width: 18px; height: 18px; display: block; }
.knopfleiste { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.knopf-symbol { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--rahmen); border-radius: 0; background: var(--papier); color: var(--tinte); text-decoration: none; font: inherit; cursor: pointer; transition: background .25s ease, border-color .25s ease, color .25s ease; }
.knopf-symbol:hover { border-color: var(--tinte); background: var(--sand); color: var(--tinte); }
.knopf-symbol:active { background: var(--violett); border-color: var(--violett); color: var(--hell); }
.knopf-symbol:focus-visible { outline: 2px solid var(--violett); outline-offset: 1px; }

/* Kacheln mit Statusbalken */
.kacheln { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kachel { display: block; padding: 18px 20px 20px; background: var(--papier); border: 1px solid var(--linie); color: inherit; text-decoration: none; transition: border-color .25s ease; }
a.kachel:hover { color: inherit; border-color: var(--tinte); }
a.kachel:active { border-color: var(--violett); }
.kachel.aktiv { border-color: var(--tinte); }
.kachel.gesamt { background: var(--sand); }
.kachel .titel { display: flex; align-items: center; gap: 8px; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(36, 31, 27, .62); }
.kachel .wert { display: block; margin-top: 10px; font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.2vw, 30px); line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kachel .wert.leer { color: rgba(36, 31, 27, .5); }
.kachel small { display: block; margin: 6px 0 12px; }
.spur { display: block; height: 5px; background: rgba(36, 31, 27, .12); }
.spur span { display: block; height: 5px; }
.punkt { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; }
.offen, .ausgaben { background: var(--gold); }
.gemahnt, .warnung { background: var(--violett); }
.bezahlt, .einnahmen { background: var(--wald); }
.alle { background: var(--salbei); }

/* Status */
.pille { display: inline-flex; align-items: center; padding: 4px 10px; font-size: 12.5px; letter-spacing: .06em; white-space: nowrap; }
.pille.offen { background: #F3E6CA; color: #6E5010; }
.pille.gemahnt, .pille.warnung { background: #F2D9E5; color: #8C1552; }
.pille.bezahlt { background: #D6ECE2; color: var(--wald); }
td.status small { display: block; margin-top: 4px; }
.ueberfaellig, .hinweis { color: var(--violett); }
small.gesendet { color: var(--wald); }
small.nicht-gesendet { color: var(--gold); }

/* Rechnungsliste */
.filter { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filter a { display: flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--rahmen); color: rgba(36, 31, 27, .7); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; transition: border-color .25s ease; }
.filter a:hover { border-color: var(--tinte); color: var(--tinte); }
.filter a[aria-current] { background: var(--tinte); border-color: var(--tinte); color: var(--grund); }
.filter a:active { background: var(--violett); border-color: var(--violett); color: var(--hell); }
.filter a.zuruecksetzen { min-height: 0; padding: 0 4px; border: 0; font-size: 13px; letter-spacing: 0; text-transform: none; text-decoration: underline; text-underline-offset: 3px; }
.filter .angezeigt { margin-left: auto; font-size: 12.5px; color: rgba(36, 31, 27, .55); }
.liste { background: var(--papier); border: 1px solid var(--linie); }
.liste table { border: 0; }
.sammel { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0; padding: 14px 20px; background: var(--salbei); color: var(--wald); font-size: 13.5px; }
.sammel label { display: flex; align-items: center; gap: 10px; }
.sammel input[type=date] { min-height: 38px; border-color: transparent; background: var(--grund); }
.sammel button { min-height: 38px; padding: 0 18px; border-color: var(--wald); background: var(--wald); color: #EAF6F0; font-size: 11.5px; }
.sammel button.zweit { border-color: rgba(27, 46, 38, .45); background: transparent; color: var(--wald); }
.sammel button.zweit:hover { border-color: var(--wald); }
.sammel button:active, .sammel button.zweit:active { background: var(--violett); border-color: var(--violett); color: var(--hell); }
form.zahlung { display: flex; gap: 8px; align-items: center; }
form.zahlung input { min-height: 38px; padding: 0 10px; background: var(--grund); font-size: 13px; }
form.zahlung button { min-height: 38px; padding: 0 14px; font-size: 11.5px; }

/* Formulare */
.form { max-width: 640px; padding: 24px 28px; background: var(--papier); border: 1px solid var(--linie); }
.form.breit { max-width: 900px; }
.form label { display: block; margin-bottom: 14px; font-size: 13px; color: rgba(36, 31, 27, .7); }
.form label:has(> input[type=checkbox]) { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--tinte); }
.form input:not([type=checkbox]), .form select { display: block; width: 100%; margin-top: 5px; font-size: 15px; }
.form h2 { margin: 28px 0 14px; }
.form p { margin: 0 0 14px; }
.form .row { display: flex; gap: 14px; }
.form .row label { flex: 1; }
.form .row .plz { flex: 0 0 120px; }
.form .actions { display: flex; gap: 18px; align-items: center; margin-top: 22px; }

/* Weitere Rechnungen */
.positionen { background: none; border: 0; }
.positionen th, .positionen td { padding: 4px 6px; border: 0; }
.positionen tbody tr:hover { background: none; }
.form .positionen input, .form .positionen select { margin: 0; }
.form .positionen input.num { text-align: right; }
.positionen td:nth-child(1) { width: 22%; }
.positionen td:nth-child(3) { width: 9%; }
.positionen td:nth-child(4) { width: 12%; }
.positionen td:nth-child(5) { width: 22%; }

/* Abo-Rechnungen erstellen */
.schritt .nr { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tinte); color: var(--grund); font-size: 13px; }
.schritt label { display: flex; align-items: center; gap: 8px; }
.schritt input[type=search] { flex: 1; }
.schritt strong { font-family: var(--serif); font-weight: 400; font-size: 22px; font-variant-numeric: tabular-nums; }

/* Dokumentenablage */
.ablage-form { flex-direction: column; align-items: stretch; }
.ablage { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 32px; border: 1px dashed rgba(36, 31, 27, .35); background: var(--grund); color: var(--leise); cursor: pointer; transition: background .3s ease, border-color .3s ease; }
.ablage strong { font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--tinte); }
.ablage:hover .button { background: var(--wald); border-color: var(--wald); }
.ablage.aktiv { border-color: var(--wald); background: #E3F1EA; }
.ablage input[type=file] { display: none; }
#namen label { display: block; margin: 8px 0; font-size: 13px; color: rgba(36, 31, 27, .7); }
#namen input { display: block; width: 100%; margin-top: 5px; }
#ablegen { align-self: flex-start; }

/* E-Mail-Versand */
.email-logo-vorschau { margin: -6px 0 18px; }
.email-logo-vorschau img { display: block; margin-top: 6px; }
.email-vorschau { display: flex; gap: 14px; flex-wrap: wrap; margin: 4px 0 18px; }
.email-vorschau-datei { flex: 1 1 320px; display: flex; flex-direction: column; gap: 6px; }
.email-vorschau-datei > a:first-child { font-size: 13px; }
.email-vorschau-datei embed { display: block; width: 100%; height: 420px; border: 1px solid var(--linie); background: var(--papier); pointer-events: none; }
.email-vorschau-datei a:has(embed) { cursor: pointer; }

/* Aktuelles: Liste */
.neuer-artikel { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; padding: 20px 24px; background: var(--papier); border: 1px solid var(--linie); scroll-margin-top: 20px; }
.neuer-artikel:target { border-color: var(--wald); box-shadow: inset 4px 0 0 var(--salbei); }
.neuer-artikel h2 { flex-basis: 100%; font-size: 22px; }
.neuer-artikel label { flex: 1 1 320px; font-size: 13px; color: rgba(36, 31, 27, .7); }
.neuer-artikel input { display: block; width: 100%; margin-top: 5px; font-size: 15px; }
.neuer-artikel small { flex-basis: 100%; }
.miniatur { display: block; width: 76px; height: 57px; object-fit: cover; background: var(--sand); }
.artikel-titel { font-family: var(--serif); font-size: 19px; }
.artikel-teaser { display: block; max-width: 60ch; margin-top: 4px; }
.artikel-aktionen { display: flex; gap: 14px; align-items: center; justify-content: flex-end; }
.artikel-aktionen form { margin: 0; }

/* Aktuelles: Artikel bearbeiten */
.form textarea { display: block; width: 100%; margin-top: 5px; padding: 10px 12px; border: 1px solid var(--rahmen); border-radius: 0; background: var(--papier); color: var(--tinte); font: inherit; font-size: 15px; resize: vertical; }
.form textarea:focus-visible { outline: 2px solid var(--violett); outline-offset: 1px; }
.titelbild { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 20px; align-items: start; }
.titelbild-vorschau, .titelbild-leer { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--sand); }
.titelbild-leer { display: flex; align-items: center; justify-content: center; color: var(--leise); font-size: 13px; }
.editor-werkzeuge { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px; background: var(--sand); border: 1px solid var(--rahmen); border-bottom: 0; }
.editor-werkzeuge button { min-height: 36px; padding: 0 12px; border-color: var(--rahmen); background: var(--papier); color: var(--tinte); font-size: 11px; }
.editor-werkzeuge button b, .editor-werkzeuge button i { font-family: var(--serif); font-size: 16px; letter-spacing: 0; text-transform: none; }
.editor-werkzeuge button:hover { background: var(--grund); border-color: var(--tinte); color: var(--tinte); }
.editor-werkzeuge button.bild-knopf { background: var(--tinte); border-color: var(--tinte); color: var(--grund); }
.editor-werkzeuge button.bild-knopf:hover { background: var(--wald); border-color: var(--wald); color: var(--grund); }
.editor-werkzeuge button:active { background: var(--violett); border-color: var(--violett); color: var(--hell); }
.editor-werkzeuge .trenner { align-self: stretch; width: 1px; margin: 0 4px; background: var(--rahmen); }
.editor-rahmen { position: relative; }
.editor-flaeche { min-height: 420px; padding: 30px 36px; border: 1px solid var(--rahmen); background: var(--papier); font-family: var(--serif); font-size: 18px; line-height: 1.65; overflow-wrap: break-word; }
.editor-flaeche::after { content: ""; display: block; clear: both; }
.editor-flaeche:focus-visible { outline: 2px solid var(--violett); outline-offset: -2px; }
.editor-rahmen.ziehen .editor-flaeche { outline: 2px dashed var(--wald); outline-offset: -10px; background: #E3F1EA; }
.editor-flaeche > :first-child { margin-top: 0; }
.editor-flaeche h2 { clear: both; margin: 32px 0 12px; font-size: 28px; font-weight: 300; }
.editor-flaeche h3 { clear: both; margin: 26px 0 8px; font-size: 21px; }
.editor-flaeche p { margin: 0 0 16px; }
.editor-flaeche ul, .editor-flaeche ol { display: flow-root; margin: 0 0 16px; padding-left: 24px; }
.editor-flaeche li { margin-bottom: 4px; }
.editor-flaeche blockquote { clear: both; margin: 28px 0; padding-left: 18px; border-left: 3px solid var(--salbei); color: var(--leise); font-style: italic; }
.editor-flaeche figure { margin: 28px 0; cursor: pointer; }
.editor-flaeche figure img { display: block; width: 100%; height: auto; }
.editor-flaeche figure.bild-links { float: left; width: 45%; margin: 6px 28px 16px 0; }
.editor-flaeche figure.bild-rechts { float: right; width: 45%; margin: 6px 0 16px 28px; }
.editor-flaeche figure.ausgewaehlt { outline: 3px solid var(--violett); outline-offset: 3px; }
.editor-flaeche figcaption { min-height: 1.5em; margin-top: 8px; font-family: var(--sans); font-size: 13px; line-height: 1.5; color: var(--leise); cursor: text; }
.editor-flaeche figcaption:empty::before { content: attr(data-platzhalter); color: rgba(36, 31, 27, .38); }
.editor-flaeche figcaption:focus-visible { outline: 1px dashed var(--rahmen); outline-offset: 2px; }
.bild-werkzeuge { position: absolute; z-index: 3; display: flex; flex-wrap: wrap; gap: 4px; max-width: calc(100% - 16px); padding: 6px; background: var(--tinte); }
.bild-werkzeuge button { min-height: 34px; padding: 0 10px; border-color: rgba(242, 236, 226, .35); background: transparent; color: var(--grund); font-size: 11px; }
.bild-werkzeuge button:hover { background: rgba(242, 236, 226, .12); border-color: var(--grund); color: var(--grund); }
.bild-werkzeuge button[aria-pressed="true"] { background: var(--salbei); border-color: var(--salbei); color: var(--wald); }
.bild-werkzeuge button:active { background: var(--violett); border-color: var(--violett); color: var(--hell); }
.editor-hinweis { margin: 8px 0 0 !important; font-size: 12.5px; color: var(--leise); }

/* Buchhaltung */
.bereiche { padding: 6px 20px; background: var(--papier); border: 1px solid var(--linie); }
.bereiche p { margin: 12px 0; }
.bereich { display: grid; grid-template-columns: minmax(120px, 240px) minmax(60px, 1fr) 130px 100px; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(36, 31, 27, .1); }
.bereich:last-child { border-bottom: 0; }
.spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.spalten section { display: flex; flex-direction: column; gap: 14px; }
.spalten p { margin: 0; }

/* Schmale Bildschirme: Seitenleiste wird Leiste oben */
@media (max-width: 900px) {
  .rahmen { grid-template-columns: 1fr; }
  .seitenleiste { position: static; height: auto; gap: 14px; padding: 14px 18px 16px; }
  .logo img { width: 138px; }
  .module { flex-direction: row; overflow-x: auto; font-size: 13px; }
  .module a { flex: 1; justify-content: center; padding: 0 10px; }
  .aktionen { flex-direction: row; flex-wrap: wrap; margin-top: 0; }
  .aktionen a { flex: 1 1 140px; }
  .fuss { display: none; }
  main { padding: 22px 18px 40px; }
  h1 { font-size: 36px; }
  .kacheln { grid-template-columns: repeat(2, 1fr); }
  .spalten { grid-template-columns: 1fr; }
  table { display: block; overflow-x: auto; }
  .form .row { flex-direction: column; gap: 0; }
  .form .row .plz { flex: auto; }
  .bereich { grid-template-columns: 1fr 1fr; }
  .filter .angezeigt { margin-left: 0; }
  .form.artikel-form { padding: 18px 16px; }
  .titelbild { grid-template-columns: 1fr; gap: 12px; }
  .editor-flaeche { padding: 20px 18px; font-size: 17px; }
}

/* Smartphone: Bilder im Editor wie auf der Webseite immer in ganzer Breite */
@media (max-width: 640px) {
  .editor-flaeche figure.bild-links, .editor-flaeche figure.bild-rechts { float: none; width: auto; margin: 28px 0; }
  .editor-werkzeuge .trenner { display: none; }
  .neuer-artikel button { width: 100%; }
}
