/* Webseite - Gestaltung.
   Farben, Schrift, Radien, Schatten und Hell/Dunkel kommen aus design.css (mit ankauf und
   ebay-inv-sync geteilt). Hier nur die Bauteile der Webseite. */
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.6; font-size: 16px; display: flex; flex-direction: column; min-height: 100vh; }
#inhalt { flex: 1; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.wrap.schmal { max-width: 860px; }
.sprung { position: absolute; left: -9999px; }
.sprung:focus { left: 12px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: var(--radius-sm); }
.hinweis { color: var(--muted); font-size: var(--text-sm); }

/* Kopf */
.top { background: var(--header-bg); color: var(--header-ink); position: sticky; top: 0; z-index: 30; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { font-weight: 700; letter-spacing: .02em; color: var(--header-ink); text-decoration: none; font-size: 1.1rem; display: flex; align-items: center; }
.brand:hover { color: var(--header-ink); }
.brand { gap: 10px; }
/* Logo ist dunkel auf transparent - auf der (immer dunklen) Kopfleiste weiss zeigen */
.brand .logo { height: 44px; width: 44px; object-fit: contain; filter: brightness(0) invert(1); transform: scale(1.35); }
.top nav { display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; }
.top nav a { color: var(--header-muted); text-decoration: none; font-size: .95rem; }
.top nav a:hover, .top nav a.aktiv { color: var(--header-ink); }
.top nav a.aktiv { box-shadow: 0 2px 0 var(--accent); }
.top nav .nav-knopf { background: var(--accent); color: var(--accent-ink); padding: 7px 14px; border-radius: var(--radius-pill); font-weight: 600; }
.top nav .nav-knopf:hover { color: var(--accent-ink); filter: brightness(1.08); }
.menue-knopf { display: none; background: none; border: 1px solid color-mix(in srgb, var(--header-muted) 40%, transparent); color: var(--header-ink); border-radius: var(--radius-sm); padding: 6px 12px; font: inherit; cursor: pointer; }

/* Knoepfe, Felder, Meldungen (wie ankauf) */
.knopf { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; border-radius: var(--radius-sm); padding: 11px 18px; border: 1px solid transparent; cursor: pointer; text-decoration: none; line-height: 1.2; }
.knopf.haupt { background: var(--accent); color: var(--accent-ink); }
.knopf.haupt:hover { filter: brightness(1.08); color: var(--accent-ink); }
.knopf.zweit { background: var(--surface); color: var(--ink); border-color: var(--line); }
.knopf.zweit:hover { border-color: var(--line-strong); background: var(--surface-hover); }
.knopf.hell { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(4px); }
.knopf.hell:hover { background: rgba(255,255,255,.22); color: #fff; }
.knopf.gefahr { background: var(--surface); color: var(--error); border-color: var(--error-line); }
.knopf.klein { padding: 6px 10px; font-size: .85rem; }
.knopf:disabled { opacity: .5; cursor: default; }
.linkknopf { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
label.feld { display: block; font-weight: 600; font-size: .88rem; margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=search], input[type=password], input[type=number], input[type=url], input[type=datetime-local], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 12px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
textarea { resize: vertical; }
.zustimmung { display: flex; gap: 8px; font-size: .85rem; color: var(--ink-2); margin: 16px 0; align-items: flex-start; }
.zustimmung input { margin-top: 3px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.meldung { border-radius: var(--radius-sm); padding: 10px 12px; font-size: .9rem; margin: 10px 0; }
.meldung.fehler { background: var(--error-soft); color: var(--error); }
.meldung.ok { background: var(--ok-soft); color: var(--ok); }
.meldung.info, .meldung.warn { background: var(--warn-soft); color: var(--warn); }
.badge { display: inline-block; border-radius: var(--radius-pill); padding: 2px 10px; font-size: .76rem; font-weight: 600; background: var(--accent-soft); color: var(--accent); }
.badge.entwurf { background: var(--warn-soft); color: var(--warn); }
.badge.grau { background: var(--surface-2); color: var(--ink-2); }
.karte { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.zwei-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* Hero (Startseite) */
.hero { position: relative; background: linear-gradient(180deg, var(--header-bg) 0, color-mix(in srgb, var(--header-bg) 85%, #4b5363) 100%); color: #fff; padding: 72px 0 96px; overflow: hidden; }
.hero.mit-bild { min-height: min(82vh, 820px); display: flex; align-items: flex-end; padding: 0 0 72px; background: #0c0f14; }
.hero-bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero.mit-bild::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,15,20,.15) 30%, rgba(12,15,20,.78) 100%); }
.hero-innen { position: relative; z-index: 1; width: 100%; }
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); max-width: 820px; font-weight: 750; text-wrap: balance; margin-bottom: .35em; }
.hero p { color: rgba(255,255,255,.82); max-width: 620px; font-size: 1.1rem; margin: 0 0 8px; }
.hero-knoepfe { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

/* Band unter dem Kopf (Unterseiten) - wie der Hero der Ankauf-Seite */
.kopf-band { background: linear-gradient(180deg, var(--header-bg) 0, color-mix(in srgb, var(--header-bg) 85%, #4b5363) 100%); color: var(--header-ink); padding: 44px 0 84px; }
.kopf-band h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); text-wrap: balance; }
.kopf-band p { color: var(--header-muted); max-width: 680px; font-size: 1.05rem; margin: 0; }
.kopf-band .meta a { color: var(--header-muted); text-decoration: none; }
.kopf-band .meta a:hover { color: var(--header-ink); }
.kopf-band + main { margin-top: -48px; }
.kopf-band + main.abschnitt { padding-top: 0; }
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; font-size: .88rem; color: var(--muted); margin: 0 0 10px; }
.kopf-band .meta { color: var(--header-muted); }

/* Abschnitte */
.abschnitt { padding-top: 56px; padding-bottom: 8px; }
.abschnitt:last-child { padding-bottom: 64px; }
#inhalt > main:last-child { padding-bottom: 64px; }
.abschnitt-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.abschnitt-kopf h2 { font-size: var(--text-xl); margin: 0; }
.abschnitt-kopf a { text-decoration: none; font-weight: 600; }
.abschnitt-kopf.weitere { margin-top: 56px; }
.oberzeile { text-transform: uppercase; letter-spacing: .08em; font-size: var(--text-xs); font-weight: 700; color: var(--accent); margin: 0 0 8px; }

/* Projekt-Kacheln */
.kacheln { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.kachel { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); color: #fff; text-decoration: none; }
.kachel img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.kachel:hover img { transform: scale(1.04); }
.kachel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(12,15,20,.72)); }
.kachel-titel { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; font-size: 1.35rem; font-weight: 700; display: flex; flex-direction: column; }
.kachel-titel small { font-size: .82rem; font-weight: 500; opacity: .8; }
.kachel:hover { color: #fff; }
.kacheln.klein { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.kacheln.klein .kachel { aspect-ratio: 3 / 2; }
.kacheln.klein .kachel-titel { font-size: 1.05rem; left: 14px; bottom: 12px; }

/* Beitragskarten */
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.beitrag-karte { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.beitrag-bild { display: block; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.beitrag-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.beitrag-karte:hover .beitrag-bild img { transform: scale(1.03); }
.beitrag-text { padding: 18px 20px 22px; }
.beitrag-text h3 { font-size: 1.2rem; margin-bottom: 6px; }
.beitrag-text h3 a { color: var(--ink); text-decoration: none; }
.beitrag-text h3 a:hover { color: var(--accent); }
.beitrag-text p:last-child { color: var(--ink-2); font-size: .95rem; margin: 0; }

/* Artikel */
.artikel { padding: 36px 44px 40px; }
.titelbild { margin: -36px -44px 32px; }
.titelbild img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.prosa { font-size: 1.06rem; color: var(--ink); overflow-wrap: break-word; }
.prosa > :first-child { margin-top: 0; }
.prosa p, .prosa ul, .prosa ol, .prosa blockquote, .prosa pre { margin: 0 0 1.1em; }
.prosa h2 { font-size: 1.5rem; margin: 1.6em 0 .5em; }
.prosa h3 { font-size: 1.22rem; margin: 1.5em 0 .45em; }
.prosa li { margin: .25em 0; }
.prosa blockquote { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; color: var(--ink-2); }
.prosa code { font-family: var(--font-mono); font-size: .9em; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }
.prosa pre { background: var(--surface-2); padding: 14px 16px; border-radius: var(--radius-sm); overflow-x: auto; }
.prosa pre code { background: none; padding: 0; }
.prosa hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prosa figure { margin: 1.4em 0; }
.prosa figure img { border-radius: var(--radius-sm); width: 100%; }
.prosa figcaption { font-size: .86rem; color: var(--muted); margin-top: 8px; text-align: center; }
.bildreihe { display: flex; gap: 10px; margin: 1.4em 0; align-items: flex-start; }
.bildreihe figure { flex: var(--r, 1) 1 0; margin: 0; min-width: 0; }
.tabelle-huelle { overflow-x: auto; margin: 0 0 1.1em; }
.prosa table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.prosa th, .prosa td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
/* About: erstes Bild neben dem Text */
.seite-about .prosa > figure.bild:first-child { float: right; width: min(42%, 320px); margin: 4px 0 20px 28px; }
.seite-about .prosa::after { content: ""; display: block; clear: both; }
.blaettern { display: flex; justify-content: space-between; gap: 16px; margin: 28px 0 0; }
.blaettern a { display: flex; flex-direction: column; text-decoration: none; font-weight: 600; max-width: 48%; }
.blaettern a small { color: var(--muted); font-weight: 500; }
.blaettern .rechts { text-align: right; margin-left: auto; }

/* Bildraster (Projekte, Galerie): Reihen gleicher Hoehe, Seitenverhaeltnis bleibt */
.raster-bilder { display: flex; flex-wrap: wrap; gap: 10px; }
.raster-bilder > a { flex-grow: var(--r); flex-basis: calc(var(--r) * 280px); aspect-ratio: var(--r); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.raster-bilder img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, opacity .2s; }
.raster-bilder > a:hover img { transform: scale(1.02); }
.raster-ende { flex-grow: 1000; flex-basis: 0; }

/* Startseite: About */
.ueber { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 36px; align-items: center; padding: 28px; }
.ueber img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-sm); }
.ueber-text { font-size: 1.12rem; color: var(--ink-2); margin: 0; }

/* Kontakt */
.kontakt-raster { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; }
.hinweis-karte h2 { font-size: 1.1rem; }
.hinweis-karte p { color: var(--ink-2); font-size: .95rem; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(8,10,14,.94); display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100vh - 96px); width: auto; height: auto; object-fit: contain; border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255,255,255,.2); }
.lightbox .zu { top: 16px; right: 16px; }
.lightbox .zurueck { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .vor { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .zaehler { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-size: .85rem; }
.lupe-link { cursor: zoom-in; display: block; }

/* Fuss */
.foot { background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; padding: 32px 0 28px; margin-top: 24px; }
.foot-innen { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-name { font-weight: 700; color: var(--ink); }
.foot-text { max-width: 420px; }
.foot nav { display: flex; gap: 6px 18px; flex-wrap: wrap; align-items: flex-start; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--accent); }
.foot-copy { margin-top: 18px; font-size: .8rem; }
.admin-schnell { position: fixed; right: 16px; bottom: 16px; z-index: 40; background: var(--ink); color: var(--surface); padding: 8px 14px; border-radius: var(--radius-pill); text-decoration: none; font-size: .85rem; font-weight: 600; box-shadow: var(--shadow-lg); }
.admin-schnell:hover { color: var(--surface); }

@media (max-width: 900px) {
  .kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ueber { grid-template-columns: minmax(0, 1fr); }
  .ueber img { max-width: 280px; }
  .kontakt-raster { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .menue-knopf { display: block; }
  .top .wrap { flex-wrap: wrap; }
  .top nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 0 14px; }
  .top nav.offen { display: flex; }
  .top nav a { padding: 10px 0; font-size: 1rem; border-top: 1px solid rgba(255,255,255,.08); }
  .top nav a.aktiv { box-shadow: none; color: var(--accent); }
  .top nav .nav-knopf { text-align: center; margin-top: 8px; border-top: 0; }
  .artikel { padding: 24px 18px 28px; }
  .titelbild { margin: -24px -18px 24px; }
  .seite-about .prosa > figure.bild:first-child { float: none; width: 100%; margin: 0 0 20px; }
  .raster-bilder > a { flex-basis: calc(var(--r) * 160px); }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .kacheln { grid-template-columns: minmax(0, 1fr); }
  .kachel { aspect-ratio: 4 / 3; }
  .karte { padding: 18px; }
  .zwei-spalten { grid-template-columns: minmax(0, 1fr); }
  .bildreihe { flex-direction: column; }
  .bildreihe figure { width: 100%; }
  .hero.mit-bild { min-height: 70vh; padding-bottom: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .kachel img, .beitrag-bild img, .raster-bilder img { transition: none; }
}

/* ------------------------------------------------------------ Admin */
.admin .top { position: static; }
.admin main { padding-top: 24px; padding-bottom: 60px; }
.admin h1 { font-size: 1.45rem; }
.admin .karte { margin-bottom: 18px; }
.admin-top nav a { font-size: .9rem; }
.kopfzeile { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.kopfzeile h1 { margin: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 12px; text-decoration: none; color: var(--ink); font-size: .88rem; }
.chip.aktiv { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.tabelle { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tabelle th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border-bottom: 1px solid var(--line); padding: 8px 10px; }
.tabelle td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle .r { text-align: right; white-space: nowrap; }
.tabelle .mini { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; background: var(--surface-2); }
.scroll { overflow-x: auto; }
.zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 18px; }
.zahl { display: block; text-decoration: none; color: var(--ink); }
.zahl b { display: block; font-size: 2rem; line-height: 1.1; }
.zahl span { color: var(--muted); font-size: .9rem; }
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 18px; }
.editor-raster { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.editor-raster > aside { position: sticky; top: 16px; }
.schalter { display: flex; gap: 8px; align-items: center; margin: 12px 0; font-size: .95rem; }
.editor-leiste { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 14px 0 6px; }
.editor-leiste .rechts { margin-left: auto; }
.editor-leiste .tab { background: none; border: 0; padding: 6px 10px; border-radius: var(--radius-sm); font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.editor-leiste .tab.aktiv { background: var(--surface-2); color: var(--ink); }
textarea.markdown { font-family: var(--font-mono); font-size: .9rem; line-height: 1.55; min-height: 520px; }
.vorschau-feld { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 24px; min-height: 520px; background: var(--surface); }
.markdown-hilfe { font-size: .84rem; color: var(--ink-2); }
.markdown-hilfe code { font-family: var(--font-mono); font-size: .82rem; background: var(--surface-2); padding: 1px 4px; border-radius: 4px; }
.bildfeld { display: flex; gap: 12px; align-items: center; }
.bildfeld img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; background: var(--surface-2); }
.bildfeld .leer { width: 96px; height: 72px; border-radius: 6px; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); font-size: .8rem; }
.mediathek { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.medium { background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; }
.medium img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface-2); }
.medium .unten { padding: 8px 10px 10px; font-size: .8rem; display: flex; flex-direction: column; gap: 6px; }
.medium .unten input { padding: 6px 8px; font-size: .82rem; }
.medium .name { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.medium .knoepfe { display: flex; gap: 6px; flex-wrap: wrap; }
.projekt-bilder { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.projekt-bild { background: var(--surface-2); border-radius: var(--radius-sm); overflow: hidden; cursor: grab; border: 2px solid transparent; }
.projekt-bild.ziehen { opacity: .4; }
.projekt-bild.ueber { border-color: var(--accent); }
.projekt-bild img { width: 100%; aspect-ratio: 1; object-fit: cover; pointer-events: none; }
.projekt-bild .unten { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; font-size: .8rem; gap: 6px; }
.projekt-bild input[type=number] { width: 64px; padding: 4px 6px; font-size: .8rem; }
.projekt-bild.weg { opacity: .35; }
dialog.bildwahl { border: 0; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 0; width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 48px); background: var(--surface); color: var(--ink); }
dialog.bildwahl::backdrop { background: rgba(12,15,20,.6); }
.bildwahl-kopf { display: flex; gap: 10px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; flex-wrap: wrap; }
.bildwahl-kopf h2 { font-size: 1.1rem; margin: 0 auto 0 0; }
.bildwahl-kopf input[type=search] { width: 200px; padding: 7px 10px; }
.bildwahl-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; padding: 16px 18px 20px; }
.bildwahl-raster button { border: 2px solid transparent; padding: 0; background: var(--surface-2); border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; position: relative; }
.bildwahl-raster button img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.bildwahl-raster button.gewaehlt { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.bildwahl-raster button.gewaehlt::after { content: "✓"; position: absolute; top: 6px; right: 6px; background: var(--accent); color: var(--accent-ink); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; }
.ablage { border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--ink-2); }
.ablage.drueber { border-color: var(--accent); background: var(--accent-soft); }
.knopfzeile { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.knopfzeile .rechts { margin-left: auto; }
.seiten-nav { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.nachricht-text { white-space: pre-wrap; background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px 14px; margin: 10px 0; }
@media (max-width: 900px) {
  .editor-raster { grid-template-columns: minmax(0, 1fr); }
  .editor-raster > aside { position: static; }
}
