:root {
  --shadow3d: 0 16px 38px -12px rgba(0,0,0,0.56), 0 4px 25px 0 rgba(0,0,0,0.12), 0 8px 10px -5px rgba(0,0,0,0.2);
  /* Tag */
  --bg: #eef3f5; --card: #ffffff; --ink: #1b2a33; --muted: #55666f;
  --line: #cfd9de; --weser: #1f6f78; --weser-dark: #17565d; --rot: #c8102e; --ok: #2c7a4b; --warn: #b7791f;
  --orange: #f28c28; --orange-hi: #ffa64d; --orange-line: #b85f0a; --orange-ink: #1b1b1b;
  --shadow-c: darkgray;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: var(--font);   /* alle Texte serifenlos */
  color-scheme: light;
}
/* Nacht: automatisch nach Systemeinstellung, solange kein Schalter gesetzt ist */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11191f; --card: #1b2a34; --ink: #e8eef1; --muted: #a3b3bc;
    --line: #34495a; --weser: #5fb4bd; --weser-dark: #86cbd2; --rot: #ff5c73; --ok: #5fcf8c; --warn: #e0a630;
    --shadow-c: #6b7780; color-scheme: dark;
  }
}
/* Nacht: per Schalter */
:root[data-theme="dark"] {
  --bg: #11191f; --card: #1b2a34; --ink: #e8eef1; --muted: #a3b3bc;
  --line: #34495a; --weser: #5fb4bd; --weser-dark: #86cbd2; --rot: #ff5c73; --ok: #5fcf8c; --warn: #e0a630;
  --shadow-c: #6b7780; color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.55 var(--font); background: var(--bg); color: var(--ink); }
a { color: var(--weser); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--rot); outline-offset: 2px; }
.top { display: flex; flex-wrap: wrap; gap: .5rem 2rem; align-items: center; justify-content: space-between;
  padding: .9rem 1.5rem; background: var(--card); border-bottom: 4px solid var(--rot); }
.brand { font: 700 1.35rem var(--serif); color: var(--ink); text-decoration: none; }
.top nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: center; }
.top nav a { text-decoration: none; }
main { max-width: 62rem; margin: 0 auto; padding: 1.5rem; }
footer { text-align: center; color: var(--muted); padding: 2rem 1rem; font-size: .9rem; }
h1, h2 { font-family: var(--serif); line-height: 1.25; }
h1 { font-size: 1.9rem; margin: .2rem 0 1rem; }
h2 { font-size: 1.2rem; margin: 1.4rem 0 .5rem; }
.flash { padding: .7rem 1rem; border-left: 4px solid var(--ok); background: var(--card); }
.flash.err { border-color: var(--rot); } .flash.warn { border-color: #b7791f; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.filters input[type=search] { flex: 1 1 14rem; }
input, select, textarea, button { font: inherit; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 4px; background: var(--card); color: var(--ink); }
button { background: var(--weser); border-color: var(--weser); color: #fff; cursor: pointer; }
button:hover { background: var(--weser-dark); }
button.danger { background: var(--rot); border-color: var(--rot); }
button.linkish { background: none; border: 0; color: var(--weser); padding: 0; text-decoration: underline; }
.inline { display: inline; }
label { display: block; margin: .6rem 0; font-weight: 600; }
label input, label select, label textarea { display: block; width: 100%; margin-top: .25rem; font-weight: 400; }
label.check { display: flex; gap: .5rem; align-items: center; font-weight: 400; }
label.check input { width: auto; margin: 0; }
fieldset { border: 0; padding: 0; margin: 0 0 .5rem; }
.card { background: var(--card); border: 1px solid var(--line); padding: 1rem 1.2rem; margin: 1rem 0; }
.card.narrow { max-width: 30rem; }
.card.row { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: end; }
.card.row .grow { flex: 1 1 16rem; }
/* Klassen heißen bewusst nicht "ad…": Werbeblocker blenden solche Elemente aus (display: none !important). */
.listings, .plain { list-style: none; padding: 0; margin: 0; }
.listing { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--weser); padding: .8rem 1.1rem; margin-bottom: .8rem; }
.listing.request { border-left-color: var(--rot); }
.listing { position: relative; }
.listing:hover { box-shadow: var(--shadow3d); }
.listing h2 a { color: inherit; text-decoration: none; }
.listing h2 a::after { content: ''; position: absolute; inset: 0; }   /* ganze Anzeige ist der Link */
.listing:hover h2 a { text-decoration: underline; }
.listing h2 { margin: .2rem 0; } .listing p { margin: .2rem 0 .4rem; }
.meta { display: flex; gap: .7rem; align-items: center; color: var(--muted); font-size: .9rem; }
.tag { padding: .05rem .5rem; border-radius: 3px; font-size: .85rem; background: var(--weser); color: #fff; }
.tag.request { background: var(--rot); } .tag.ki { background: #6b4fa0; } .tag.closed { background: var(--muted); }
.listing-detail h1 { font-size: 1.8rem; }
.listing-detail .body { background: var(--card); border: 1px solid var(--line); padding: 1rem 1.2rem; max-width: 46rem; }
.contact { color: var(--muted); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.5rem; }
.balance { font: 700 3rem var(--serif); margin: 0; color: var(--ok); } .balance.neg { color: var(--rot); }
table { width: 100%; border-collapse: collapse; background: var(--card); }
th, td { text-align: left; padding: .5rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.num { text-align: right; font-variant-numeric: tabular-nums; } .pos { color: var(--ok); } .neg { color: var(--rot); }
.tabs { display: flex; gap: .3rem; border-bottom: 2px solid var(--line); margin-bottom: 1rem; }
.tabs a { padding: .5rem 1rem; text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs a.on { border-color: var(--rot); font-weight: 700; }
.actions form { margin-right: .3rem; }
.unread { font-weight: 700; } .empty, small { color: var(--muted); }
.plain li { padding: .35rem 0; border-bottom: 1px solid var(--line); }
@media (max-width: 40rem) { main { padding: 1rem; } table { display: block; overflow-x: auto; } }
.bar { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: start; justify-content: space-between; }
a.btn { display: inline-block; padding: .5rem .9rem; background: var(--weser); color: #fff; text-decoration: none; border-radius: 4px; }
a.btn:hover { background: var(--weser-dark); }
.facts { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; margin: 0 0 1rem; }
.facts dt { color: var(--muted); font-size: .9rem; } .facts dd { margin: 0; font: 700 1.5rem var(--serif); }
.danger-zone { border-color: var(--rot); }

/* Nachrichten */
.badge { display: inline-block; padding: 0 .5rem; border-radius: 999px; background: var(--rot); color: #fff; font-size: .8rem; font-weight: 700; line-height: 1.5; }
.thread { display: flex; flex-direction: column; gap: .6rem; margin: 1rem 0; }
.msg { max-width: 38rem; align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--rot); padding: .6rem .9rem; overflow-wrap: anywhere; }
.msg.mine { align-self: flex-end; border-left-color: var(--line); border-right: 4px solid var(--weser); }
.convs li { padding: .6rem 0; }

/* Fotos, Seitenleiste, Verwaltung der Anzeige */
.listing.has-pic { display: flex; flex-direction: row-reverse; gap: 1rem; align-items: flex-start; }   /* Bild rechts */
.listing-pic { flex: 0 0 16rem; }
.listing-pic img, .listing-pic video { display: block; width: 16rem; height: 12rem; object-fit: cover; border: 1px solid var(--line); background: #000; }
.listing-text { flex: 1 1 auto; min-width: 0; }
@media (max-width: 30rem) { .listing.has-pic { flex-direction: column; } .listing-pic, .listing-pic img, .listing-pic video { width: 100%; flex-basis: auto; height: 14rem; } }
.gallery { display: flex; flex-wrap: wrap; gap: .6rem; margin: .5rem 0 1rem; }
.gallery img { display: block; max-width: 100%; height: 11rem; width: auto; border: 1px solid var(--line); }
.pics { display: flex; flex-wrap: wrap; gap: 1rem; }
.pics li { border: 0; text-align: center; }
.pics img { display: block; margin-bottom: .2rem; height: auto; }
.row-form { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: end; }
.manage h3 { font-family: var(--serif); font-size: 1.05rem; margin: 1.2rem 0 .4rem; }
.manage form + form, .manage .pics + form { margin-top: 1rem; }
.pager { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; margin: 1.2rem 0; }
.pager a, .pager .cur { min-width: 2.2rem; text-align: center; padding: .3rem .6rem; border: 1px solid var(--line); background: var(--card); text-decoration: none; }
.pager a.step { padding: .3rem .8rem; }
.pager .cur { background: var(--weser); border-color: var(--weser); color: #fff; font-weight: 700; }
.pager .gap { color: var(--muted); padding: 0 .2rem; }

/* Hinweis auf abgelaufener Anzeige */
.card.notice { border-left: 5px solid #b7791f; }
.listing form.inline select, .plain form.inline select { width: auto; display: inline-block; padding: .2rem .4rem; }

.tag.stock { background: #2e7d4f; } .tag.stock.out { background: var(--muted); }

/* Bewertungen */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rating { color: #b7791f; white-space: nowrap; } .rating small, .rating .sr-only { color: var(--muted); }
.rating-line { margin: 0 0 .6rem; }
.stars { border: 0; padding: 0; margin: 0 0 .6rem; }
.stars legend { padding: 0; margin-bottom: .2rem; }
.star-row { display: inline-flex; flex-direction: row-reverse; }
.star-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-row label { font-size: 2rem; line-height: 1; padding: 0 .1rem; color: var(--line); cursor: pointer; }
.star-row label:hover, .star-row label:hover ~ label, .star-row input:checked ~ label { color: #e0a100; }
.star-row input:focus-visible + label { outline: 3px solid var(--rot); outline-offset: 2px; }
.rate-form { margin: .5rem 0 0; }
.reviews li { padding: .5rem 0; }


/* ===================== Design: Rahmen, 3D-Schatten, Icons, Tag/Nacht ===================== */
.ico { display: inline-block; margin-right: .35em; font-style: normal; line-height: 1; }

/* Karten, Anzeigen, Tabellen und Hinweise: 2px farbiger Rahmen, 3D-Schatten in darkgray, abgeschrägte Ecken */
.card, .listing, .detail-box, .card.news, .flash, .msg, table, .pager a, .pager .cur {
  border: 2px solid var(--weser);
  border-radius: 14px;
  corner-shape: bevel;
  box-shadow: var(--shadow3d);
}
.listing { border-left-width: 2px; margin-bottom: 1.4rem; }
.listing.request { border-color: var(--rot); }
.listing:hover { transform: translateY(-2px); }
.card.notice { border-color: var(--warn); }
.card.manage { border-color: var(--rot); }
.danger-zone { border-color: var(--rot); }
.flash { border-color: var(--ok); margin: .8rem 0; }
.flash.err { border-color: var(--rot); } .flash.warn { border-color: var(--warn); }
.msg { border-color: var(--rot); } .msg.mine { border-color: var(--weser); }
.pager a, .pager .cur { border-radius: 999px; corner-shape: round; box-shadow: var(--shadow3d); }
.pager .cur { border-color: var(--weser); }
.detail-box { padding: 1rem 1.2rem; margin: 0 0 1rem; background: var(--card); border-color: var(--weser); }
.detail-box .body { margin: 1rem 0 0; padding: 0; border: 0; background: none; box-shadow: none; max-width: none; }

/* Tabellen */
table { border-collapse: separate; border-spacing: 0; overflow: hidden; margin: 1rem 0 1.4rem; }
th { background: color-mix(in srgb, var(--weser) 14%, var(--card)); }
tbody tr:last-child td, tfoot td { border-bottom: 0; }
tfoot td { border-top: 2px solid var(--weser); font-weight: 700; }
@media (max-width: 40rem) { table { display: block; overflow-x: auto; } }

/* Angebotstitel im Marktplatz: 1.8rem, mit Abstand oben und unten */
.listing h2 { font-size: 1.8rem; margin: 1rem 0; line-height: 1.2; }
.listing-detail h1 { font-size: 1.8rem; margin: 1rem 0; }

/* Eingabefelder */
input, select, textarea { border: 2px solid var(--line); border-radius: 8px; corner-shape: bevel; background: var(--card); }
input:focus, select:focus, textarea:focus { border-color: var(--weser); }

/* Buttons: orange mit 3D-Schatten in darkgray */
button:not(.linkish):not(.theme-toggle), a.btn {
  display: inline-block;
  background: var(--orange); color: var(--orange-ink); font-weight: 700; text-decoration: none;
  border: 2px solid var(--orange-line); border-radius: 999px; corner-shape: round;
  padding: .5rem 1rem;
  box-shadow: var(--shadow3d);
  transition: transform .06s, box-shadow .06s, background .1s;
}
button:not(.linkish):not(.theme-toggle):hover, a.btn:hover { background: var(--orange-hi); }
button:not(.linkish):not(.theme-toggle):active, a.btn:active { transform: translateY(2px); }
button:not(.linkish):not(.theme-toggle).danger { background: var(--rot); border-color: var(--rot); color: #fff; }
:root[data-theme="dark"] button:not(.linkish):not(.theme-toggle).danger { color: #11191f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) button:not(.linkish):not(.theme-toggle).danger { color: #11191f; } }
button:not(.linkish):not(.theme-toggle).danger:hover { background: var(--rot); filter: brightness(1.1); }
button.linkish { color: var(--weser); }
.actions button { padding: .25rem .6rem; box-shadow: var(--shadow3d); }

/* Tag/Nacht-Schalter */
.theme-toggle { background: var(--card); color: var(--ink); border: 2px solid var(--weser); border-radius: 999px; corner-shape: round;
  padding: .15rem .5rem; cursor: pointer; box-shadow: var(--shadow3d); font-size: 1.1rem; }
.theme-toggle .ico { margin: 0; }
.theme-toggle:active { transform: translateY(2px); }

/* Kopf, Tags, Sonstiges */
.top { border-bottom: 4px solid var(--rot); box-shadow: var(--shadow3d); }
.top nav a .ico, .top nav button .ico { margin-right: .3em; }
.tag { border-radius: 8px; corner-shape: bevel; padding: .1rem .6rem; font-weight: 600; }
.tag .ico { margin-right: .25em; }
.listing-pic img, .gallery img { border: 2px solid var(--weser); border-radius: 10px; corner-shape: bevel; }
.tabs a.on { color: var(--weser); }
.rating { color: var(--warn); }
.star-row label { color: var(--line); }
body { transition: background .2s, color .2s; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
button.linkish:hover, button.linkish:active { background: none; transform: none; box-shadow: none; }
.theme-toggle:hover { background: var(--card); filter: brightness(1.08); }

/* Nacht: helle Flächen (Teal, Rot, Lila) bekommen dunkle Schrift, damit der Kontrast stimmt */
:root[data-theme="dark"] .tag, :root[data-theme="dark"] .pager .cur, :root[data-theme="dark"] .badge { color: #11191f; }
:root[data-theme="dark"] .tag.ki { background: #b79cf0; }
:root[data-theme="dark"] .tag.stock { background: #5fcf8c; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tag, :root:not([data-theme="light"]) .pager .cur, :root:not([data-theme="light"]) .badge { color: #11191f; }
  :root:not([data-theme="light"]) .tag.ki { background: #b79cf0; }
  :root:not([data-theme="light"]) .tag.stock { background: #5fcf8c; }
}

/* Buttons: runde Ecken statt Fasen */
button, a.btn, .pager a, .pager .cur, .theme-toggle, input[type=file]::file-selector-button { corner-shape: round; }
button:not(.linkish), a.btn { border-radius: 999px; }
input[type=file]::file-selector-button { border-radius: 999px; }

/* SVG-Symbole: einfarbig, wie die Schrift */
.ico { display: inline-flex; align-items: center; vertical-align: -0.15em; }
.ico svg.svg { border-radius: 50%; width: 1.8em; height: 1.8em; border: 1px solid var(--icon-line); padding: .2em; background: #2e7d4f; color: #ffffff; }
:root { --icon-line: black; }
:root[data-theme="dark"] { --icon-line: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --icon-line: var(--ink); } }
.ico { vertical-align: middle; margin-top: -.5em; margin-bottom: -.5em; }
h1 .ico { margin-right: .4em; color: var(--weser); }
h2 .ico, h3 .ico { color: var(--weser); }
.brand { display: inline-flex; align-items: center; }
.brand .ico { margin-right: .4em; color: var(--orange); }
.brand .ico svg.svg { stroke-width: 2.2; }
footer .ico { margin-right: .4em; }
.theme-toggle .t-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .t-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .t-sun { display: inline-flex; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .t-moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .t-sun { display: inline-flex; }
}
button .ico, a.btn .ico { margin-right: .4em; }

/* Kontostand und Konversationen im Boxrahmen */
.balance { display: inline-block; padding: .4rem 1.4rem; margin: .4rem 0 1rem; background: var(--card);
  border: 2px solid var(--ok); border-radius: 14px; corner-shape: bevel; box-shadow: var(--shadow3d); }
.balance.neg { border-color: var(--rot); }
.convs { background: var(--card); border: 2px solid var(--weser); border-radius: 14px; corner-shape: bevel;
  box-shadow: var(--shadow3d); padding: 1rem 1.2rem; margin: 1rem 0 1.4rem; list-style: none; }
.convs li { padding: .7rem 0; }
.convs li:last-child { border-bottom: 0; }
.theme-toggle .ico svg.svg { width: 1.5em; height: 1.5em; padding: .15em; }
.top nav { gap: .4rem 1rem; }

/* Meine Anzeigen im Boxrahmen, Zurück/Weiter beim Bearbeiten, Impressum */
.card.myads, .card.legal { margin-top: .6rem; }
.myads ul { margin: 0; }
.myads a.small { font-size: .85rem; margin-left: .4rem; }
.pn { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: .8rem 0 .4rem; }
button:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.4); }
.card.legal h2 { margin-top: 1.4rem; } .card.legal h2:first-child { margin-top: 0; }

.ratings { margin-top: .6rem; }
.card.setting .btn { margin-top: .2rem; }

.btn.small, a.btn.small { padding: .15rem .7rem; font-size: .9rem; }
.card.notice:target { outline: 3px solid var(--orange); outline-offset: 3px; }
.card.rate-now { border-color: var(--orange); }
#bewerten { scroll-margin-top: 1rem; }

/* Akkordeon (Mein Zeitkonto) */
details.acc { background: var(--card); border: 2px solid var(--weser); border-radius: 14px; corner-shape: bevel; box-shadow: var(--shadow3d); margin: 1rem 0; }
details.acc > summary { cursor: pointer; list-style: none; padding: .7rem 1.1rem; font: 700 1.25rem/1.25 var(--serif); display: flex; align-items: center; }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary::after { content: ""; margin-left: auto; width: .6rem; height: .6rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
details.acc[open] > summary::after { transform: rotate(-135deg); }
details.acc[open] > summary { border-bottom: 2px solid var(--weser); }
details.acc > summary:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
details.acc > :not(summary) { margin-left: 1.1rem; margin-right: 1.1rem; }
details.acc > :not(summary):nth-child(2) { margin-top: 1rem; }
details.acc > :last-child { margin-bottom: 1.1rem; }
details.acc .card, details.acc table { box-shadow: none; }
details.acc .card.notice { border-color: var(--warn); }
.news ul.plain, .news .empty { margin: 0; }
details.acc > table { width: calc(100% - 2.2rem); }

details.acc > h3 { font-size: 1.1rem; margin-top: 1rem; }
details.acc .cols { margin-top: 1rem; }
details.acc > summary .badge { margin-left: .6rem; }
details.acc > .cols { margin-left: 1.1rem; margin-right: 1.1rem; }

details.acc.manage { border-color: var(--rot); }
details.acc.manage[open] > summary { border-bottom-color: var(--rot); }
details.acc > ul.convs { padding: 1rem 1.2rem; }
footer .theme-toggle { vertical-align: middle; margin-left: .3rem; }

/* Mobile Ansicht: gesamter Text und Menü größer (Wurzelschrift 20 px statt 16 px). Überschriften werden
   zurückgerechnet (Faktor 0,8) und behalten so ihre bisherige Größe. */
@media (max-width: 40rem) {
  html { font-size: 20px; }
  body { font-size: 1rem; }
  .top nav a, .top nav button { padding-top: .35rem; padding-bottom: .35rem; }
  .brand { font-size: 1.08rem; }
  h1, .listing-detail h1 { font-size: 1.52rem; }
  h2 { font-size: .96rem; }
  .listing h2 { font-size: 1.44rem; }
  .listing-detail h1 { font-size: 1.44rem; }
  details.acc > summary { font-size: 1rem; }
  details.acc > h3 { font-size: .88rem; }
  .manage h3 { font-size: .84rem; }
  .balance { font-size: 2.4rem; }
  .facts dd { font-size: 1.2rem; }
  .listing .m-cat, .listing .m-rate { display: none; }
}
label.check { align-items: flex-start; } label.check input { flex: 0 0 auto; margin-top: .35em; } label.check > span { min-width: 0; overflow-wrap: anywhere; }
.count { text-align: center; color: var(--muted); }

/* Hamburger-Menü oben, ausführliches Menü unten (nur mobile Ansicht) */
button#burger, .foot-nav { display: none; }
@media (max-width: 40rem) {
  .top { position: relative; flex-wrap: nowrap; gap: .5rem; padding: .6rem 1rem; }
  button#burger { display: flex; align-items: center; justify-content: center; width: 2.56rem; height: 2.56rem; padding: 0; box-sizing: border-box;
    margin-left: auto; flex: 0 0 auto; background: var(--card); color: var(--ink); border: 2px solid var(--weser);
    border-radius: 999px; corner-shape: round; cursor: pointer; text-align: center; box-shadow: var(--shadow3d); }
  button#burger:hover { background: var(--card); filter: brightness(1.08); }
  button#burger svg { display: block; flex: 0 0 auto; margin: 0 auto; width: 1.6rem; height: 1.6rem; fill: var(--ink); }
  .top nav#main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 20; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--card); border-bottom: 4px solid var(--rot); box-shadow: var(--shadow3d); }
  .top nav#main-nav.open { display: flex; }
  .top nav#main-nav a, .top nav#main-nav button { font-size: 1.5rem; padding: .7rem 1.2rem; border-top: 1px solid var(--line); text-align: left; }
  .foot-nav { display: flex; flex-direction: column; margin: 2rem 1rem 0; background: var(--card); border: 2px solid var(--weser);
    border-radius: 14px; corner-shape: bevel; box-shadow: var(--shadow3d); overflow: hidden; }
  .foot-nav a, .foot-nav button { padding: .8rem 1.2rem; border-top: 1px solid var(--line); text-decoration: none; text-align: left; }
  .foot-nav > :first-child { border-top: 0; }
  .foot-nav form.inline { display: block; margin: 0; }
  .foot-nav form.inline button { width: 100%; }
}
.myads .runtime { display: flex; flex-wrap: wrap; gap: .4rem .8rem; margin: .3rem 0 .8rem; } .myads .runtime form { margin: 0; } .myads .runtime input[type=date] { width: auto; padding: .2rem .4rem; }

/* PDF zur Anzeige: Vorschau (erste Seite) und Platzhalter */
.pdfbox { margin: .5rem 0 1rem; }
.pdfbox img { display: block; max-width: 100%; max-height: 22rem; width: auto; border: 2px solid var(--weser); border-radius: 10px; corner-shape: bevel; }
.pdf-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; color: var(--muted); text-decoration: none;
  border: 2px dashed var(--weser); border-radius: 10px; corner-shape: bevel; font-weight: 700; min-height: 8rem; }
.pdfbox .pdf-ph { width: 12rem; min-height: 9rem; }
.listing-pic.pdf-ph { width: 16rem; height: 12rem; box-sizing: border-box; flex: 0 0 16rem; }
.listing-pic img[src*="pdf="] { object-position: top center; }

/* FAQ in Konto: Fragen als kleine, verschachtelte Akkordeons */
.faq { margin-top: 1rem; }
details.faq-item { border-bottom: 1px solid var(--line); padding: .2rem 0; }
details.faq-item:last-child { border-bottom: 0; }
details.faq-item > summary { cursor: pointer; font-weight: 700; padding: .5rem 0; list-style: none; display: flex; align-items: center; gap: .6rem; }
details.faq-item > summary::-webkit-details-marker { display: none; }
details.faq-item > summary::before { content: ""; flex: 0 0 auto; width: .5rem; height: .5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
details.faq-item[open] > summary::before { transform: rotate(45deg); }
details.faq-item > p { margin: .2rem 0 .8rem 1.1rem; }

/* Anfragen (Tickets) */
.st { display: inline-block; padding: 0 .5rem; border: 1px solid var(--line); font-size: .8rem; font-weight: 700; line-height: 1.5; margin-left: .3rem; }
.st-open { border-color: var(--rot); color: var(--rot); }
.st-answered { border-color: var(--weser); color: var(--weser); }
.st-closed { opacity: .65; }
.st-todo { background: var(--rot); border-color: var(--rot); color: #fff; }
:root[data-theme="dark"] .st-todo { color: #11191f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .st-todo { color: #11191f; } }

/* Banner auf der Startseite */
body { overflow-x: clip; }
.banner { width: 100vw; position: relative; left: 50%; margin: -1.5rem 0 1.2rem -50vw; overflow-x: auto; border-bottom: 1px solid var(--line); background: #fbf8f2; }
.banner img { display: block; width: 100%; height: auto; }
@media (max-width: 40rem) { .banner { margin-top: -1rem; } }
@media (max-width: 40rem) { .banner img { min-width: 44rem; } }
.banner-archive { display: grid; gap: 1rem; }
.banner-archive img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.rowbtns { display: flex; flex-wrap: wrap; gap: .5rem; }
.rowbtns form { margin: 0; }

/* Teilen */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; margin: .3rem 0 1rem; }
.share a, .share button.linkish { font-size: .9rem; }
a[rel="next"] .ico { margin: 0 0 0 .45em; }

/* Video */
.manage .msec, details.acc.manage > .msec { border: 2px solid var(--weser); border-radius: 12px; corner-shape: bevel; background: var(--bg); padding: 0 1rem 1rem; margin: 2rem 1rem; overflow: hidden; box-shadow: 0 4px 10px -4px rgba(0,0,0,.35); }
details.acc.manage .msec > h3 { margin: 0 -1rem .9rem; padding: .55rem 1rem; background: var(--weser); color: #fff; font-size: 1.1rem; }
details.acc.manage .msec > h3 .ico { color: #fff; }
.manage .msec > :last-child { margin-bottom: 0; }
.manage .msec input[type=file], .manage .msec input:not([type]), .manage .msec select, .manage .msec input[type=number], .manage .msec input[type=date] { background: var(--card); }
.videobox { margin: .5rem 0 1rem; }
.videobox video { display: block; max-width: 100%; max-height: 26rem; background: #000; border: 2px solid var(--weser); border-radius: 10px; corner-shape: bevel; }

/* Systemtest */
.systest td:nth-child(2) { white-space: nowrap; font-weight: 700; }
.systest td.st-ok { color: var(--ok); }
.systest td.st-warn { color: var(--warn); }
.systest td.st-fail { color: var(--rot); }
.systest td.st-info { color: var(--muted); font-weight: 400; }
