/* Developed by Enjyn Gruppe — https://enjyn.de */
:root {
  --bg: #0a0a0d; --panel: #121217; --raise: #1a1a21; --tx: #eeeef2; --mut: #a4a5b0; --dim: #6d6e7a;
  --line: rgba(255, 255, 255, .07); --line2: rgba(255, 255, 255, .13);
  --ac: #a895ff; --ac-rgb: 168, 149, 255; --gut: #7fd6a4; --warn: #e2b86b; --bad: #f2837b;
  --ton: var(--ac-rgb);
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--tx);
  background: radial-gradient(900px 480px at 50% -180px, rgba(var(--ac-rgb), .16), transparent 70%) no-repeat, var(--bg);
  font: 400 16px/1.6 'Geist', system-ui, sans-serif; letter-spacing: -.005em; -webkit-font-smoothing: antialiased;
}
header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 28px; border-bottom: 1px solid var(--line); }
.marke { display: inline-flex; align-items: center; gap: 10px; color: var(--tx); text-decoration: none; font-weight: 500; letter-spacing: -.02em; }
.marke i { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(140deg, #c9bcff, #7a5cf0); box-shadow: 0 0 22px rgba(var(--ac-rgb), .45); }
header form { margin: 0; }
nav { display: flex; gap: 4px; margin: 0 auto 0 20px; }
nav a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 9px; color: var(--mut); text-decoration: none; font-size: .9rem; transition: background .15s, color .15s; }
nav a:hover { color: var(--tx); background: rgba(255, 255, 255, .05); }
nav a.da { color: var(--tx); background: rgba(255, 255, 255, .08); }
main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 56px 28px 80px; }
footer { padding: 22px 28px; border-top: 1px solid var(--line); color: var(--dim); font-size: .84rem; text-align: center; }

h1 { margin: 0; font-size: clamp(2.3rem, 5vw, 3.3rem); font-weight: 470; letter-spacing: -.04em; line-height: 1.04; }
h2 { margin: 0; font-size: 1.12rem; font-weight: 500; letter-spacing: -.015em; line-height: 1.25; }
h3 { display: flex; align-items: center; gap: 10px; margin: 52px 0 14px; font-size: .8rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
h3 i { font-style: normal; letter-spacing: 0; padding: 0 8px; border-radius: 99px; background: rgba(255, 255, 255, .07); color: var(--mut); }
.unter { margin: 14px 0 0; color: var(--mut); max-width: 44ch; }
.schmal { max-width: 440px; margin: 8vh auto 0; }
.ic { width: 1em; height: 1em; flex: none; }

.kopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.zahlen { display: flex; gap: 12px; margin: 0; }
.zahlen div { min-width: 124px; padding: 14px 18px 12px; border: 1px solid var(--line2); border-radius: 14px; background: var(--panel); }
.zahlen dt { font-size: .78rem; color: var(--dim); }
.zahlen dd { margin: 2px 0 0; font-size: 2rem; font-weight: 470; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }

.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; margin-top: 36px; align-items: start; }
.karte {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 22px; min-width: 0;
  border: 1px solid var(--line2); border-radius: 18px;
  background: linear-gradient(180deg, rgba(var(--ton), .07), transparent 130px), var(--panel);
  animation: auf .5s cubic-bezier(.2, .7, .2, 1) backwards;
}
.karte:nth-child(2) { animation-delay: .06s; }
.karte:nth-child(3) { animation-delay: .12s; }
.karte:nth-child(4) { animation-delay: .18s; }
.n-instagram { --ton: 240, 110, 160; }
.n-threads { --ton: 225, 225, 235; }
.n-bluesky { --ton: 90, 170, 255; }
.n-x { --ton: 215, 215, 225; }
.n-mastodon { --ton: 150, 150, 255; }
.n-linkedin, .n-linkedin_seiten { --ton: 80, 150, 230; }
.n-facebook { --ton: 70, 130, 255; }
.n-linkedin { --ton: 100, 160, 235; }
@keyframes auf { from { opacity: 0; transform: translateY(10px); } }

.karte-kopf { display: flex; align-items: center; gap: 13px; }
.karte-kopf p { margin: 0; font-size: .84rem; color: var(--dim); line-height: 1.3; }
.logo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 24px; color: rgb(var(--ton)); background: rgba(var(--ton), .12); border: 1px solid rgba(var(--ton), .22); }
.status { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px 3px 9px; border-radius: 99px; border: 1px solid var(--line2); font-size: .76rem; color: var(--mut); white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.ok { color: var(--gut); border-color: rgba(127, 214, 164, .35); }
.status.ok::before { box-shadow: 0 0 10px currentColor; }
.status.bereit { color: var(--ac); border-color: rgba(var(--ac-rgb), .4); }
.status.offen { color: var(--warn); border-color: rgba(226, 184, 107, .4); }

.konten { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, .22); }
.konten li { display: flex; align-items: center; gap: 11px; padding: 10px 12px; min-height: 52px; }
.konten li + li { border-top: 1px solid var(--line); }
.wer { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.wer span { font-weight: 450; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wer small { color: var(--dim); font-size: .76rem; }
.konten form { margin: 0; }
.bild { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .82rem; font-weight: 500; color: rgb(var(--ton)); background: rgba(var(--ton), .14); }
.leer { margin: 0; padding: 14px; border: 1px dashed var(--line2); border-radius: 12px; color: var(--dim); font-size: .9rem; text-align: center; }
.zugang { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.zugang p { flex: 1 1 100%; margin: 0; font-size: .82rem; color: var(--dim); line-height: 1.45; }
.zugang b { font-weight: 450; color: var(--mut); }
.zugang form { margin: 0; }

details { border-top: 1px solid var(--line); padding-top: 14px; }
summary { display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--mut); list-style: none; font-size: .9rem; border-radius: 6px; }
summary::-webkit-details-marker { display: none; }
summary > .ic:last-child { margin-left: auto; transition: transform .2s; }
details[open] > summary > .ic:last-child { transform: rotate(180deg); }
summary:hover { color: var(--tx); }
.hinweis { margin: 12px 0 0; color: var(--dim); font-size: .84rem; line-height: 1.5; }
code { font: .78rem 'Geist Mono', ui-monospace, monospace; color: var(--mut); word-break: break-all; }
.felder { display: grid; gap: 14px; margin-top: 18px; }
label { display: grid; gap: 6px; font-size: .86rem; color: var(--mut); }
input[type=text], input[type=password] { width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg); color: var(--tx); font: inherit; transition: border-color .15s; }
input::placeholder { color: var(--dim); }
input[type=text]:hover, input[type=password]:hover { border-color: rgba(255, 255, 255, .24); }
input:focus-visible, .knopf:focus-visible, summary:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }

.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--tx); background: var(--tx); color: var(--bg); font: inherit; font-weight: 500; font-size: .9rem; text-decoration: none; cursor: pointer; transition: transform .16s, background .16s, border-color .16s; }
.knopf:hover { background: #fff; }
.knopf:active { transform: scale(.975); }
.knopf.leise { background: transparent; color: var(--tx); border-color: var(--line2); font-weight: 450; }
.knopf.leise:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .24); }
.knopf.klein { padding: 5px 10px; font-size: .78rem; border-radius: 8px; gap: 6px; }

.meldung { display: flex; align-items: center; gap: 10px; margin: 28px 0 0; padding: 12px 15px; border-radius: 12px; border: 1px solid rgba(127, 214, 164, .3); background: rgba(127, 214, 164, .07); animation: auf .35s cubic-bezier(.2, .7, .2, 1) backwards; }
.meldung .ic { font-size: 1.2rem; color: var(--gut); }
.meldung.fehler { border-color: rgba(242, 131, 123, .4); background: rgba(242, 131, 123, .07); }
.meldung.fehler .ic { color: var(--bad); }
.schmal .meldung { margin-top: 22px; }

.sicht { display: inline-flex; flex-wrap: wrap; gap: 4px; margin: 32px 0 22px; padding: 4px; border: 1px solid var(--line2); border-radius: 14px; background: var(--panel); }
.sicht a { display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px 9px 10px; border-radius: 10px; color: var(--mut); text-decoration: none; font-size: .92rem; transition: background .15s, color .15s; }
.sicht a:hover { color: var(--tx); background: rgba(255, 255, 255, .05); }
.sicht a.da { color: var(--tx); background: rgba(255, 255, 255, .1); }
.sicht b { min-width: 26px; padding: 1px 7px; border-radius: 8px; background: rgba(255, 255, 255, .08); color: var(--tx); font-weight: 500; font-size: .84rem; text-align: center; font-variant-numeric: tabular-nums; }
.sicht a.da b { background: var(--ac); color: #14102a; }
.sicht + h3 { margin-top: 8px; }
.strom + .strom { margin-top: 18px; }
h4 { margin: 26px 0 10px; font-size: .86rem; font-weight: 450; color: var(--mut); }
.sicht + h4 { margin-top: 4px; }

/* Kompakte Zeile, die zur vollen Karte aufklappt */
.zeile { margin: 0 0 8px; padding: 0; border: 1px solid var(--line2); border-radius: 16px; background: var(--panel); overflow: hidden; }
.zeile > summary { display: flex; align-items: center; gap: 14px; padding: 10px 16px 10px 10px; color: var(--tx); font-size: 1rem; border-radius: 0; }
a.zeile { display: flex; align-items: center; gap: 14px; padding: 10px 16px 10px 10px; color: var(--tx); text-decoration: none; }
a.zeile:hover { background: #17171d; border-color: rgba(255, 255, 255, .22); }
a.zeile > .ic:last-child { color: var(--dim); }
.zeile > summary:hover { background: rgba(255, 255, 255, .03); }
.zeile > summary > .ic:last-child { margin-left: 0; color: var(--dim); }
.z-bild { flex: none; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: #060608; border: 1px solid var(--line); display: grid; place-items: center; }
.z-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.z-bild span { font-size: 22px; color: var(--dim); display: grid; }
.z-text { flex: 1; min-width: 0; display: grid; gap: 2px; line-height: 1.3; }
.z-text b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.z-text small { display: flex; align-items: center; gap: 6px; color: var(--dim); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.z-text small .ic, details[open] .z-text small .ic { flex: none; margin-left: 0; transform: none; }
.z-netze { display: flex; gap: 6px; }
.z-netze span { position: relative; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 16px; color: rgb(var(--ton)); background: rgba(var(--ton), .12); }
.z-netze .gut::after, .z-netze .schlecht::after { content: ""; position: absolute; right: -2px; top: -2px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--panel); background: var(--gut); }
.z-netze .schlecht::after { background: var(--bad); }
.zeile .status { margin-left: 0; }
.zeile > .beitrag { border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; animation: none; }
.zeile > .beitrag .b-kopf .status { display: none; }
.zeile.l-wartet[open] { border-color: rgba(var(--ac-rgb), .42); }

/* Staffel: die wartenden Teile einer Serie mit einer gemeinsamen Freigabe */
.strom + .staffel, .staffel + .staffel { margin-top: 22px; }
.staffel { margin: 0 0 22px; padding: 14px; border: 1px solid rgba(var(--ac-rgb), .34); border-radius: 22px; background: linear-gradient(180deg, rgba(var(--ac-rgb), .07), transparent 160px); }
.st-kopf { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding: 6px 6px 16px; }
.st-kopf > div { flex: 1; min-width: 200px; }
.st-kopf h2 { font-size: 1.25rem; letter-spacing: -.02em; }
.st-kopf p { margin: 2px 0 0; color: var(--mut); font-size: .88rem; }
.st-kopf form { margin: 0; }
.st-kopf .logo { --ton: var(--ac-rgb); }
.staffel .zeile:last-child { margin-bottom: 0; }
.serie .b-aktionen .hinweis { flex: 1 1 100%; margin: 0; color: var(--warn); }
.strom { display: grid; gap: 18px; }
.beitrag { display: grid; grid-template-columns: 372px minmax(0, 1fr); border: 1px solid var(--line2); border-radius: 20px; background: var(--panel); overflow: hidden; animation: auf .45s cubic-bezier(.2, .7, .2, 1) backwards; }
.beitrag.l-wartet { border-color: rgba(var(--ac-rgb), .42); box-shadow: 0 0 0 1px rgba(var(--ac-rgb), .08), 0 24px 60px -30px rgba(var(--ac-rgb), .35); }
.beitrag.l-fehler { border-color: rgba(242, 131, 123, .42); }
.beitrag.l-abgelehnt { opacity: .6; }

.anzahl { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; background: rgba(8, 8, 11, .72); border: 1px solid rgba(255, 255, 255, .14); color: var(--tx); font-size: .74rem; pointer-events: none; }

/* Linke Spalte: der Beitrag so, wie er im gewählten Netzwerk erscheint. */
.schau { display: grid; align-content: start; justify-items: center; gap: 12px; padding: 18px 16px; background: #060608; border-right: 1px solid var(--line); }
.schau .muster { display: none; width: 100%; max-width: 340px; }
.schau .muster { cursor: zoom-in; transition: border-color .15s, transform .15s; }
.schau .muster:hover { border-color: rgba(255, 255, 255, .3); transform: translateY(-1px); }
.schau .pf { display: none; }
.schau .bahn { overflow: hidden; }
.schau video { pointer-events: none; }
.beitrag:not([data-wahl]) .muster[data-n="0"], .beitrag[data-wahl="0"] .muster[data-n="0"], .beitrag[data-wahl="1"] .muster[data-n="1"],
.beitrag[data-wahl="2"] .muster[data-n="2"], .beitrag[data-wahl="3"] .muster[data-n="3"], .beitrag[data-wahl="4"] .muster[data-n="4"],
.beitrag[data-wahl="5"] .muster[data-n="5"] { display: block; }

/* Die Ansichten nutzen bewusst die Systemschrift und die Farben der Netzwerke, nicht die des Werkzeugs. */
.muster { --m-tx: #f5f5f5; --m-mut: #a8a8a8; --m-bl: #e0f1ff; --m-line: #262626; overflow: hidden; border: 1px solid var(--m-line); border-radius: 14px; background: #000; color: var(--m-tx); font: 400 13.5px/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; letter-spacing: 0; text-align: left; }
.muster b { font-weight: 600; }
.muster .bl { font-weight: 400; color: var(--m-bl); }
.muster small { color: var(--m-mut); font-size: 12px; }
.m-bild { flex: none; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #2b2b33; color: #fff; font-size: 13px; font-weight: 600; }
.m-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-kopf { display: flex; align-items: center; gap: 9px; }
.m-mehr, .m-rechts { margin-left: auto; display: inline-flex; }
.m-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.m-leiste { display: flex; align-items: center; gap: 15px; font-size: 23px; }
.m-fuss { display: block; }

.kar { position: relative; }
.bahn { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.bahn::-webkit-scrollbar { display: none; }
.bahn > * { flex: none; width: 100%; scroll-snap-align: start; display: block; object-fit: cover; background: #0c0c0e; aspect-ratio: 4 / 5; }
.kar.quadrat .bahn > * { aspect-ratio: 1; }
.kar.quer .bahn > * { aspect-ratio: 16 / 9; }
.kar.story .bahn > * { aspect-ratio: 9 / 16; }
.pf { position: absolute; top: 50%; translate: 0 -50%; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .88); color: #111; font-size: 15px; cursor: pointer; box-shadow: 0 1px 6px rgba(0, 0, 0, .4); transition: background .15s, scale .15s; }
.pf[hidden] { display: none; }
.pf:hover { background: #fff; scale: 1.06; }
.pf:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
.pf.zur { left: 8px; }
.pf.vor { right: 8px; }
.zaehler { position: absolute; right: 10px; top: 10px; padding: 3px 9px; border-radius: 99px; background: rgba(18, 18, 18, .78); color: #fff; font-size: 12px; font-variant-numeric: tabular-nums; }
.punkte { position: absolute; left: 50%; translate: -50% 0; display: flex; gap: 4px; }
.punkte i { width: 6px; height: 6px; border-radius: 50%; background: #5a5a5a; transition: background .15s; }
.punkte i.an { background: #0095f6; }

.m-instagram > .m-kopf { padding: 10px 12px; font-size: 13.5px; }
.m-instagram > .m-kopf .m-bild { box-shadow: 0 0 0 2px #000, 0 0 0 3.5px #d6249f; }
.m-instagram .m-mehr { font-size: 20px; }
.m-instagram .m-leiste { position: relative; padding: 10px 12px 6px; }
.m-instagram .m-text { padding: 2px 12px 6px; }
.m-instagram .m-fuss { padding: 0 12px 4px; font-size: 11.5px; }
.m-instagram .m-fuss:last-child { padding-bottom: 12px; }
.m-story { position: relative; }
.m-story .m-ueber { position: absolute; inset: 0 0 auto; padding: 10px 12px 26px; background: linear-gradient(180deg, rgba(0, 0, 0, .5), transparent); pointer-events: none; }
.m-story .balken { display: block; height: 2px; margin-bottom: 9px; border-radius: 2px; background: linear-gradient(90deg, #fff 35%, rgba(255, 255, 255, .35) 35%); }
.m-story small { color: rgba(255, 255, 255, .8); }

.m-threads { --m-mut: #777; --m-bl: #0095f6; --m-line: #2d2d2d; background: #101010; font-size: 14.5px; }
.m-x { --m-mut: #71767b; --m-bl: #1d9bf0; --m-line: #2f3336; background: #000; font-size: 14.5px; }
.m-x .m-leiste { margin-top: 4px; font-size: 19px; gap: 26px; color: var(--m-mut); }
.m-bluesky { --m-tx: #f1f3f5; --m-mut: #8c9eb2; --m-bl: #208bfe; --m-line: #2e4052; background: #161e27; font-size: 14.5px; }
.m-mastodon { --m-tx: #fff; --m-mut: #9baec8; --m-bl: #8c8dff; --m-line: #393f4f; background: #191b22; font-size: 14.5px; }
.m-facebook { --m-tx: #e4e6eb; --m-mut: #b0b3b8; --m-bl: #4599ff; --m-line: #3e4042; background: #242526; font-size: 14.5px; }
.m-linkedin, .m-linkedin_seiten { --m-tx: #e9e9ea; --m-mut: #a5a9ad; --m-bl: #71b7fb; --m-line: #38434f; background: #1b1f23; font-size: 14.5px; }
.m-reihe { display: flex; gap: 10px; padding: 14px 14px 12px; }
.m-reihe .m-bild { width: 36px; height: 36px; }
.m-spalte { flex: 1; min-width: 0; display: grid; gap: 6px; }
.m-reihe .m-kopf { gap: 6px; flex-wrap: wrap; }
.m-reihe .m-mehr { font-size: 18px; color: var(--m-mut); }
.m-threads .m-leiste, .m-bluesky .m-leiste, .m-mastodon .m-leiste, .m-linkedin .m-leiste, .m-linkedin_seiten .m-leiste, .m-facebook .m-leiste { margin-top: 4px; font-size: 19px; gap: 20px; color: var(--m-mut); }
.m-threads .m-leiste { color: var(--m-tx); }
.m-threads .kar { margin-top: 2px; }
.m-threads .bahn { gap: 6px; scroll-snap-type: x proximity; }
.m-threads .bahn > * { width: 72%; border-radius: 10px; border: 1px solid var(--m-line); }
.m-threads .bahn > :only-child { width: 100%; }
.m-raster { display: grid; gap: 3px; margin-top: 2px; border-radius: 12px; overflow: hidden; border: 1px solid var(--m-line); }
.m-raster > * { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; background: #0c0c0e; }
.m-raster.r1 > * { aspect-ratio: 4 / 5; }
.m-raster.r1.quadrat > * { aspect-ratio: 1; }
.m-raster.r1.quer > * { aspect-ratio: 16 / 9; }
.m-raster.r1.story > * { aspect-ratio: 9 / 16; }
.m-raster.r2, .m-raster.r4 { grid-template-columns: 1fr 1fr; }
.m-raster.r3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.m-raster.r3 > :first-child { grid-row: span 2; aspect-ratio: auto; }
.m-raster.r3 > :not(:first-child) { aspect-ratio: 2 / 1.5; }
.m-reihe.folge { border-top: 1px solid var(--m-line); }

.knopf.gross { justify-self: center; }
dialog#vorschau { width: min(430px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 1px solid var(--line2); border-radius: 22px; background: var(--panel); color: var(--tx); overflow: hidden; }
dialog#vorschau[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); animation: auf .25s cubic-bezier(.2, .7, .2, 1); }
dialog#vorschau::backdrop { background: rgba(4, 4, 6, .72); backdrop-filter: blur(6px); }
.v-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.v-kopf h2 { font-size: 1rem; }
.geraet { overflow-y: auto; padding: 16px; background: #060608; }
.geraet .muster { font-size: 15px; }
.geraet .m-instagram { font-size: 14.5px; }

.b-inhalt { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 16px; padding: 24px; }
.b-kopf { display: flex; align-items: flex-start; gap: 12px; }
.b-kopf h2 { font-size: 1.3rem; letter-spacing: -.025em; }
.b-zeit { display: flex; align-items: center; gap: 8px; margin: -8px 0 0; color: var(--mut); font-size: .92rem; }
.b-zeit .ic { color: var(--dim); font-size: 1.05rem; }

/* Reiter ohne Skript: je Netzwerk ein verstecktes Auswahlfeld, das seine Tafel einblendet. */
.ansicht > input { position: absolute; opacity: 0; pointer-events: none; }
.reiter { display: flex; flex-wrap: wrap; gap: 6px; }
.reiter label { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; padding: 7px 12px 7px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--mut); font-size: .88rem; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.reiter label .ic { font-size: 1.1rem; color: rgb(var(--ton)); }
.reiter label:hover { color: var(--tx); border-color: var(--line2); }
.reiter i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.reiter i.gut { background: var(--gut); }
.reiter i.schlecht { background: var(--bad); }
.tafeln { margin-top: 10px; }
.tafeln > section { display: none; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(0, 0, 0, .24); }
.tafeln > section > small { display: block; margin-bottom: 10px; color: var(--dim); font-size: .78rem; }
.ansicht > input:nth-of-type(1):checked ~ .tafeln > section:nth-of-type(1),
.ansicht > input:nth-of-type(2):checked ~ .tafeln > section:nth-of-type(2),
.ansicht > input:nth-of-type(3):checked ~ .tafeln > section:nth-of-type(3),
.ansicht > input:nth-of-type(4):checked ~ .tafeln > section:nth-of-type(4),
.ansicht > input:nth-of-type(5):checked ~ .tafeln > section:nth-of-type(5),
.ansicht > input:nth-of-type(6):checked ~ .tafeln > section:nth-of-type(6) { display: block; }
.ansicht > input:nth-of-type(1):checked ~ .reiter label:nth-of-type(1),
.ansicht > input:nth-of-type(2):checked ~ .reiter label:nth-of-type(2),
.ansicht > input:nth-of-type(3):checked ~ .reiter label:nth-of-type(3),
.ansicht > input:nth-of-type(4):checked ~ .reiter label:nth-of-type(4),
.ansicht > input:nth-of-type(5):checked ~ .reiter label:nth-of-type(5),
.ansicht > input:nth-of-type(6):checked ~ .reiter label:nth-of-type(6) { color: var(--tx); border-color: rgba(var(--ton), .5); background: rgba(var(--ton), .1); }
.ansicht > input:focus-visible ~ .reiter { outline: 2px solid var(--ac); outline-offset: 3px; border-radius: 10px; }

.b-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--tx); font-size: .92rem; line-height: 1.6; }
.b-text.leise { color: var(--dim); }
.textform { display: grid; gap: 10px; margin: 0; }
textarea { width: 100%; min-height: 76px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg); color: var(--tx); font: inherit; font-size: .92rem; line-height: 1.6; resize: vertical; }
textarea:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
.textform > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.textform small { color: var(--dim); font-size: .78rem; }
.erg { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 12px 0 0; font-size: .86rem; color: var(--mut); }
.erg .ic { font-size: 1.05rem; }
.erg.gut .ic { color: var(--gut); }
.erg.warn { color: var(--warn); }
.erg.schlecht { color: var(--bad); align-items: flex-start; }
.erg a, .f-fuss a { display: inline-flex; align-items: center; gap: 4px; color: var(--ac); text-decoration: none; }
.erg a:hover, .f-fuss a:hover { text-decoration: underline; }
.tafeln form:not(.textform) { margin: 8px 0 0; }
.b-aktionen { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.b-aktionen form { margin: 0; }
.frei { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; flex: 1; }
.frei label { flex: 0 1 240px; }
input[type=datetime-local] { width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg); color: var(--tx); font: inherit; color-scheme: dark; }
.b-inhalt > .hinweis { margin: 0; color: var(--warn); }
.leer.gross { margin-top: 40px; padding: 44px 20px; }

.tags { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.tags > .ic { color: var(--dim); font-size: 1rem; }
.tags small { color: var(--dim); font-size: .78rem; margin-right: 4px; }
.tags b { padding: 2px 9px; border-radius: 99px; background: rgba(var(--ac-rgb), .12); border: 1px solid rgba(var(--ac-rgb), .25); color: var(--ac); font-weight: 450; font-size: .78rem; }
.tags .warn { flex: 1 1 100%; color: var(--warn); margin: 2px 0 0; }
.b-serie { justify-self: start; display: inline-flex; align-items: center; gap: 7px; margin-bottom: -6px; padding: 3px 10px 3px 8px; border-radius: 99px; border: 1px solid var(--line2); color: var(--mut); font-size: .8rem; text-decoration: none; }
.b-serie:hover { color: var(--tx); border-color: rgba(255, 255, 255, .24); }
.beitrag:target { border-color: var(--ac); box-shadow: 0 0 0 3px rgba(var(--ac-rgb), .25); scroll-margin-top: 24px; }

/* Serien */
.serien { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; margin-top: 36px; align-items: start; }
.serie { border: 1px solid var(--line2); border-radius: 20px; background: var(--panel); animation: auf .45s cubic-bezier(.2, .7, .2, 1) backwards; transition: border-color .15s, transform .15s; }
.serie:hover { border-color: rgba(var(--ac-rgb), .5); transform: translateY(-2px); }
.s-auf { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; width: 100%; padding: 22px 24px; border: 0; border-radius: 20px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.s-auf:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
.s-zeile { display: flex; align-items: center; gap: 12px; min-width: 0; }
/* Passt der Status nicht neben den Namen, rutscht er darunter, statt aus der Kachel zu laufen. */
.s-auf .s-zeile { flex-wrap: wrap; justify-content: space-between; row-gap: 10px; }
.s-auf .status { margin-left: 0; }
.s-name { font-size: 1.2rem; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
.s-kurz { display: flex; align-items: center; gap: 8px; color: var(--mut); font-size: .9rem; }
.s-kurz .ic { color: var(--dim); font-size: 1.05rem; }
.s-mehr { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--ac); font-size: .86rem; white-space: nowrap; }
.s-auf .s-konten span { padding: 3px; border: 0; font-size: 0; gap: 0; }
dialog.s-fenster { width: min(680px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 1px solid var(--line2); border-radius: 22px; background: var(--panel); color: var(--tx); overflow: hidden; }
dialog.s-fenster[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); animation: auf .25s cubic-bezier(.2, .7, .2, 1); }
dialog.s-fenster::backdrop { background: rgba(4, 4, 6, .72); backdrop-filter: blur(6px); }
dialog.s-fenster .v-kopf h2 { font-size: 1.15rem; letter-spacing: -.02em; }
dialog.s-fenster .v-kopf .status { margin-left: 0; margin-right: auto; }
.s-inhalt { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 22px 24px 26px; overflow-y: auto; }
.s-titel { margin: 6px 0 -8px; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.s-stand { display: grid; gap: 8px; }
.s-stand span { font-size: .86rem; color: var(--mut); }
progress { appearance: none; -webkit-appearance: none; width: 100%; height: 8px; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
progress::-webkit-progress-bar { background: rgba(255, 255, 255, .08); border-radius: 99px; }
progress::-webkit-progress-value { background: linear-gradient(90deg, #7a5cf0, var(--ac)); border-radius: 99px; }
progress::-moz-progress-bar { background: linear-gradient(90deg, #7a5cf0, var(--ac)); border-radius: 99px; }
.s-werte { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.s-werte div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, .22); }
.s-werte dt { font-size: .76rem; color: var(--dim); }
.s-werte dd { margin: 3px 0 0; font-size: .92rem; font-weight: 450; line-height: 1.35; }
.s-konten { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.s-konten span { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 9px; border: 1px solid var(--line); border-radius: 99px; font-size: .84rem; color: var(--mut); }
.s-konten .ic { color: rgb(var(--ton)); font-size: 1.05rem; }
.s-teile { list-style: none; margin: 0; padding: 0; display: grid; }
.s-teile a { position: relative; display: grid; gap: 1px; padding: 9px 10px 9px 30px; border-radius: 10px; color: var(--tx); text-decoration: none; }
.s-teile a:hover { background: rgba(255, 255, 255, .05); }
.s-teile b { font-weight: 450; font-size: .92rem; }
.s-teile small { color: var(--dim); font-size: .78rem; }
.s-teile i { position: absolute; left: 9px; top: 15px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--dim); background: var(--panel); }
.s-teile li + li a::before { content: ""; position: absolute; left: 13px; top: -12px; height: 26px; width: 1px; background: var(--line2); }
.s-teile .l-fertig i { border-color: var(--gut); background: var(--gut); }
.s-teile .l-geplant i { border-color: var(--gut); }
.s-teile .l-wartet i { border-color: var(--ac); }
.s-teile .l-fehler i { border-color: var(--bad); background: var(--bad); }

/* Konten und ihr Bestand */
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
h3 > .ic { font-size: 1.1rem; color: rgb(var(--ton)); }
.kopf + h3 { margin-top: 40px; }
.kachel { display: flex; align-items: center; gap: 13px; padding: 16px 18px; border: 1px solid var(--line2); border-radius: 16px; background: linear-gradient(180deg, rgba(var(--ton), .07), transparent 90px), var(--panel); color: var(--tx); text-decoration: none; transition: border-color .15s, transform .15s; }
.logo.foto { padding: 0; overflow: hidden; border-radius: 50%; }
.logo.foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kachel:hover { border-color: rgba(var(--ton), .5); transform: translateY(-1px); }
.kachel div { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.kachel b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kachel small { color: var(--dim); font-size: .8rem; }
.kachel > .ic:last-child { color: var(--dim); }
.zurueck { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 22px; color: var(--mut); text-decoration: none; font-size: .9rem; }
.zurueck:hover { color: var(--tx); }
.kopf.konto { justify-content: flex-start; align-items: center; gap: 18px; }
.kopf.konto .logo { width: 60px; height: 60px; border-radius: 16px; font-size: 32px; }
.kopf.konto h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.kopf.konto .unter { margin-top: 6px; }
.funde { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 32px; align-items: start; }
.fund { display: grid; border: 1px solid var(--line2); border-radius: 16px; background: var(--panel); overflow: hidden; }
.f-bild { position: relative; aspect-ratio: 1; background: #050507; border-bottom: 1px solid var(--line); }
.f-bild img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ohne-bild { display: grid; place-items: center; width: 100%; height: 100%; font-size: 44px; color: rgba(255, 255, 255, .16); }
.f-text { display: grid; gap: 6px; padding: 14px 16px 4px; }
.f-text small { color: var(--dim); font-size: .78rem; }
.f-text p { margin: 0; font-size: .88rem; line-height: 1.5; color: var(--mut); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.f-fuss { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px 14px; padding: 10px 16px 14px; font-size: .86rem; }
.weg { margin-left: auto; border: 0; padding: 0; }
.weg summary { color: var(--mut); font-size: .86rem; gap: 6px; }
.weg summary:hover { color: var(--bad); }
.weg[open] { flex: 1 1 100%; margin: 4px 0 0; padding: 12px; border: 1px solid rgba(242, 131, 123, .35); border-radius: 12px; background: rgba(242, 131, 123, .06); }
.weg p { margin: 8px 0 10px; font-size: .82rem; line-height: 1.45; color: var(--mut); }
.weg form { margin: 0; }
.knopf.gefahr { background: var(--bad); border-color: var(--bad); color: #1a0806; }
.knopf.gefahr:hover { background: #ff9a92; }
.mehr { margin: 28px 0 0; text-align: center; }
.zahlen.kosten { margin-top: 26px; flex-wrap: wrap; }
.zahlen.kosten div { flex: 1; min-width: 200px; }
.zahlen.kosten small { color: var(--dim); font-size: .8rem; }
.preise { width: 100%; border-collapse: collapse; border: 1px solid var(--line2); border-radius: 14px; overflow: hidden; background: var(--panel); font-size: .92rem; }
.preise th { text-align: left; padding: 11px 16px; font-size: .76rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); border-bottom: 1px solid var(--line2); }
.preise td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.preise tbody tr:first-child td { border-top: 0; }
.preise td:nth-child(2) { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 450; }
.preise td:nth-child(3) { color: var(--mut); }
.preise + .hinweis { margin-top: 18px; max-width: 80ch; }

@media (max-width: 820px) {
  .beitrag { grid-template-columns: minmax(0, 1fr); }
  .schau { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  header { padding: 14px 16px; }
  main { padding: 36px 16px 60px; }
  .raster { grid-template-columns: 1fr; }
  .preise th:nth-child(3), .preise td:nth-child(3) { display: none; }
  .z-netze { display: none; }
  .zeile .status { display: none; }
  .zeile > summary, a.zeile { gap: 10px; padding-right: 12px; }
  .sicht { display: flex; }
  .sicht a { flex: 1; justify-content: center; padding: 9px 8px; font-size: .84rem; }
  .b-inhalt { padding: 18px; }
  .funde { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  nav { margin-left: 2px; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .serien { grid-template-columns: 1fr; }
  .s-werte { grid-template-columns: 1fr; }
  nav a { padding: 7px 9px; }
  nav a .ic { display: none; }
  .marke { font-size: 0; gap: 0; }
  header .knopf { font-size: 0; gap: 0; padding: 9px; }
  header .knopf .ic { font-size: 18px; }
  .zahlen { width: 100%; }
  .zahlen div { flex: 1; min-width: 0; }
  .karte { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .karte, .meldung, .beitrag, .serie, dialog#vorschau[open], dialog.s-fenster[open] { animation: none; }
  .serie { transition: none; }
  .serie:hover { transform: none; }
  .pf, .punkte i, .schau .muster { transition: none; }
  .kachel { transition: none; }
  .knopf, summary > .ic:last-child { transition: none; }
}
