:root {
  --bg: #f4f3ef; --panel: #fff; --side: #ecebe6; --input: #fff; --text: #1b1c1a; --muted: #6f6d66; --line: #dad8d0;
  --accent: #cf4a15; --accent-h: #b53f10; --accent-soft: rgba(207, 74, 21, .1); --accent-ink: #a83b0e;
  --ok: #1c7c46; --warn: #a86400; --bad: #c23a3a; --info: #2563b8;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121314; --panel: #1a1b1d; --side: #16171a; --input: #121314; --text: #e9e7e2; --muted: #8e8b83; --line: #2b2d30;
    --accent: #ef6a35; --accent-h: #ff7c4a; --accent-soft: rgba(239, 106, 53, .14); --accent-ink: #ff9a6e;
    --ok: #4cc27f; --warn: #e0a23a; --bad: #ef6a6a; --info: #5aa0f0; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121314; --panel: #1a1b1d; --side: #16171a; --input: #121314; --text: #e9e7e2; --muted: #8e8b83; --line: #2b2d30;
  --accent: #ef6a35; --accent-h: #ff7c4a; --accent-soft: rgba(239, 106, 53, .14); --accent-ink: #ff9a6e;
  --ok: #4cc27f; --warn: #e0a23a; --bad: #ef6a6a; --info: #5aa0f0; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
h1 { font-size: 1.35rem; margin: 0; font-weight: 650; letter-spacing: -.01em; }
h2 { font-size: 1.05rem; margin: 0 0 .9rem; font-weight: 600; }
h3 { margin: 0 0 .5rem; font-size: 1rem; font-weight: 600; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: .92em; background: rgba(127, 127, 127, .14); padding: .1em .35em; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--line); margin: .3rem 0; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small, small { font-size: .8rem; color: var(--muted); }
.fatal { padding: 2rem; color: var(--bad); text-align: center; }
.empty { color: var(--muted); padding: 1rem 0; }
.ico { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Shell: Seitenleiste + Inhalt */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--side); border-right: 1px solid var(--line); padding: 14px 12px; position: sticky; top: 0; height: 100vh;
  overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; gap: 2px; }
.side::-webkit-scrollbar { display: none; }
.side-brand { display: flex; align-items: center; justify-content: flex-start; gap: 12px; padding: 6px 8px 18px; min-height: 76px; font-weight: 700; font-size: 1.15rem; color: var(--text); letter-spacing: -.01em; }
.side-brand:hover { text-decoration: none; }
.side-brand img { width: auto; height: auto; max-height: 72px; max-width: 100%; object-fit: contain; object-position: left center; display: block; }
.side-group { margin: 16px 0 4px; padding: 0 10px; font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.nav:hover { background: rgba(127, 127, 127, .12); color: var(--text); text-decoration: none; }
.nav.on { background: var(--accent-soft); color: var(--accent-ink); }
.content { min-width: 0; display: flex; flex-direction: column; }
.top { height: 54px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 0 22px;
  border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.balance { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--text); padding: 5px 10px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--panel); white-space: nowrap; }
.balance:hover { text-decoration: none; border-color: var(--accent); }
.iconbtn { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line);
  border-radius: 6px; background: var(--panel); color: var(--text); cursor: pointer; padding: 0; }
.iconbtn:hover { border-color: var(--accent); color: var(--accent); }
.userwrap { position: relative; }
.usermenu { display: flex; align-items: center; gap: 9px; background: none; border: 0; cursor: pointer; color: var(--text);
  font: inherit; font-weight: 500; padding: 3px 6px; border-radius: 6px; }
.usermenu:hover { background: rgba(127, 127, 127, .12); }
.menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; box-shadow: 0 8px 28px rgba(0, 0, 0, .18); padding: 5px; display: flex; flex-direction: column; z-index: 30; }
.menu a, .linkbtn { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 5px; color: var(--text); background: none;
  border: 0; text-align: left; font: inherit; cursor: pointer; width: 100%; }
.menu a:hover, .linkbtn:hover { background: rgba(127, 127, 127, .14); text-decoration: none; }
.linkbtn.danger { color: var(--bad); }
.avatar { border-radius: 50%; object-fit: cover; display: inline-block; }
.avatar.ph { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: var(--on-accent, #fff); font-weight: 700; }
.wrap { max-width: 1760px; width: 100%; padding: 24px clamp(14px, 2.2vw, 36px) 56px; }
.pagehead { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 18px; flex-wrap: wrap; }
.back { font-size: .8rem; color: var(--muted); display: inline-block; margin-bottom: 4px; }
.crumbs { font-family: var(--mono); font-size: .88rem; word-break: break-all; }
/* Karten & Raster */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-bottom: 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.cards .card { margin: 0; display: flex; flex-direction: column; gap: 9px; }
.grid2, .grid3, .grid4, .grid5 { display: grid; gap: 14px; }
.grid2 { grid-template-columns: repeat(2, 1fr); } .grid3 { grid-template-columns: repeat(3, 1fr); }
.grid4 { grid-template-columns: repeat(4, 1fr); } .grid5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 800px) { .grid2, .grid3, .grid4, .grid5 { grid-template-columns: 1fr; } }
.emptybox { text-align: center; padding: 48px 16px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); }
.emptybox p { margin: 0 0 14px; }
.price { font-size: 1.1rem; margin-top: auto; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; margin: 0; }
.specs dt { color: var(--muted); } .specs dd { margin: 0; text-align: right; }
.accgrid { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr); gap: 14px; margin-bottom: 14px; align-items: stretch; }
.accgrid > .card { margin: 0; }
.bal { display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  background: linear-gradient(160deg, var(--accent-soft), transparent 65%), var(--panel); }
.balhead { display: flex; align-items: center; gap: 10px; }
.balico { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.balstats { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.balstat { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.balstat:last-child { border-bottom: 0; padding-bottom: 0; }
.topform { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 14px; }
.topform .field { margin: 0; }
.amtchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
@media (max-width: 800px) { .accgrid { grid-template-columns: 1fr; } }
.accgrid.full { grid-template-columns: minmax(0, 1fr); }
.bignum { font-size: 2.6rem; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.kv { display: flex; flex-direction: column; gap: 2px; }
.infobar { display: flex; gap: 32px; flex-wrap: wrap; align-items: center; }
.narrow { max-width: 900px; }
.center { text-align: center; justify-content: center; }
.srv.suspended { border-color: var(--bad); }
/* Buttons in Server-Kacheln: gleich breit und gleich hoch (auch bei „Verlängern & reaktivieren“) */
.srv .btnrow { align-items: stretch; }
.srv .btnrow > .btn { flex: 1 1 0; min-width: 0; text-align: center; }

/* Hinweise */
.notice { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 10px 12px; border-radius: 4px; margin: 0 0 12px; }
.notice.bad { border-left-color: var(--bad); background: rgba(194, 58, 58, .1); }
.notice.ok { border-left-color: var(--ok); background: rgba(28, 124, 70, .1); }
.banner { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--bad); background: rgba(194, 58, 58, .08);
  border-radius: 8px; padding: 14px 16px; margin-bottom: 16px; }
.banner .ico { color: var(--bad); width: 22px; height: 22px; margin-top: 1px; }
.banner strong { display: block; margin-bottom: 2px; }
.banner .row { margin-top: 10px; }
.error { color: var(--bad); font-size: .88rem; min-height: 0; }
.error:empty { display: none; }

/* Anmeldung */
.authwrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.authcard { width: 100%; max-width: 380px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 28px; }
.brandline { display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 20px; font-weight: 700; font-size: 1.25rem; letter-spacing: -.01em; }
.brandline img { max-height: 84px; max-width: 280px; width: auto; height: auto; object-fit: contain; display: block; }
.authcard h2 { text-align: center; margin-bottom: 16px; }
.authcard .btn { width: 100%; margin-top: 4px; }
.authlinks { display: flex; justify-content: space-between; gap: 1rem; font-size: .85rem; margin-top: 14px; }
.auththeme { position: fixed; top: 14px; right: 14px; }

/* Formulare */
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.lbl { font-weight: 600; font-size: .82rem; }
input, select, textarea { font: inherit; color: var(--text); background: var(--input); border: 1px solid var(--line); border-radius: 6px;
  padding: 7px 10px; width: 100%; min-width: 0; }
input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible, .iconbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--accent); }
input[type=file] { padding: 5px; }
fieldset { border: 1px solid var(--line); border-radius: 6px; margin: 0 0 12px; padding: 10px 12px; }
legend { font-weight: 600; font-size: .82rem; padding: 0 4px; }
.check { display: inline-flex; align-items: center; gap: 6px; margin: 2px 14px 2px 0; cursor: pointer; }
.checks { display: flex; flex-wrap: wrap; }
.editor { font-family: var(--mono); font-size: .84rem; min-height: 320px; resize: vertical; }
/* Editor mit Zeilennummern */
.ed-wrap { position: relative; display: flex; height: 62vh; min-height: 320px; border: 1px solid var(--line); border-radius: 6px; background: var(--input); overflow: hidden; }
.ed-wrap:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.ed-gutter, .ed-text { font-family: var(--mono) !important; font-size: 13px !important; line-height: 20px !important; margin: 0; padding-top: 8px; padding-bottom: 8px; tab-size: 2; }
.ed-gutter { flex: none; min-width: 3.2em; padding-left: 10px; padding-right: 10px; padding-bottom: 28px; text-align: right; color: var(--muted); background: rgba(127, 127, 127, .09);
  border-right: 1px solid var(--line); overflow: hidden; user-select: none; -webkit-user-select: none; }
.ed-text { flex: 1; min-width: 0; width: auto; border: 0; border-radius: 0; background: transparent; resize: none; white-space: pre; overflow: auto; padding-left: 10px; padding-right: 10px; outline: none !important; }
/* Editor-Suche: Trefferhinterlegung liegt als gleich gesetzter Text unter dem (durchsichtigen) Textfeld */
.ed-area { position: relative; flex: 1; min-width: 0; }
.ed-area .ed-text { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.ed-hl { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; color: transparent; white-space: pre; margin: 0;
  padding: 8px 30px 28px 10px; font-family: var(--mono) !important; font-size: 13px !important; line-height: 20px !important; tab-size: 2; }
.ed-hl mark { color: transparent; background: rgba(250, 190, 40, .38); border-radius: 2px; }
.ed-hl mark.cur { background: rgba(255, 140, 0, .62); outline: 1px solid rgba(255, 140, 0, .9); }
.ed-find { position: absolute; top: 6px; right: 18px; z-index: 3; display: flex; align-items: center; gap: 4px; max-width: calc(100% - 28px);
  padding: 5px 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
.ed-find[hidden] { display: none; }
.ed-find-in { width: 190px; min-width: 0; flex: 1; padding: 4px 8px !important; font-size: 13px !important; border-radius: 6px; }
.ed-find-in.none { outline: 2px solid var(--bad); }
.ed-find-cnt { flex: none; min-width: 4.5em; padding: 0 4px; font-size: .78rem; color: var(--muted); text-align: center; white-space: nowrap; }
.ed-find-cnt.none { color: var(--bad); }
.ed-find-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 5px; font: inherit; font-size: .78rem; font-weight: 600;
  color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 6px; cursor: pointer; }
.ed-find-btn:hover:not(:disabled) { color: inherit; background: rgba(127, 127, 127, .18); }
.ed-find-btn:disabled { opacity: .4; cursor: default; }
.ed-find-btn.on { color: var(--accent); border-color: var(--accent); }
@media (max-width: 720px) { .ed-gutter, .ed-text, .ed-hl { font-size: 16px !important; line-height: 24px !important; } .ed-find-in { font-size: 16px !important; } }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 8px; cursor: pointer; }
.choice.on { border-color: var(--accent); background: var(--accent-soft); }
.choice input { margin-top: 3px; }
.pwbox { font-family: var(--mono); font-size: 1.1rem; letter-spacing: .04em; background: var(--input); border: 1px dashed var(--line);
  padding: 12px; border-radius: 6px; word-break: break-all; user-select: all; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: inherit; font-weight: 600; cursor: pointer; line-height: 1.2;
  padding: 7px 13px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.btn .ico { width: 16px; height: 16px; }
.btn:hover { border-color: var(--muted); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); }
.btn.primary:hover { background: var(--accent-h); border-color: var(--accent-h); }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.danger:hover { filter: brightness(.92); }
.btn.ghost { background: transparent; }
.btn.small { padding: 4px 9px; font-size: .8rem; }
.btn.small .ico { width: 14px; height: 14px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Zeilen / Toolbar */
.row { display: flex; align-items: center; }
.gap { gap: 8px; } .row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.toolbar { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.toolbar input { max-width: 320px; }
.actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 2px 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tab { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; margin-bottom: -1px; }
.tab .ico { width: 16px; height: 16px; }
.tab:hover { color: var(--text); text-decoration: none; }
.tab.on { color: var(--accent-ink); border-bottom-color: var(--accent); font-weight: 600; }

/* Tabellen */
.tablewrap { overflow-x: auto; scrollbar-width: thin; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); white-space: nowrap; font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(127, 127, 127, .06); }

/* Tags */
.tag { display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: .75rem; font-weight: 600; background: rgba(127, 127, 127, .18); }
.tag.ok { background: rgba(28, 124, 70, .16); color: var(--ok); }
.tag.warn { background: rgba(168, 100, 0, .16); color: var(--warn); }
.tag.bad { background: rgba(194, 58, 58, .16); color: var(--bad); }
.tag.info { background: var(--accent-soft); color: var(--accent-ink); }

/* Design-Einstellungen */
.brandprev { display: flex; align-items: center; justify-content: center; min-height: 100px; padding: 14px; border: 1px solid var(--line); border-radius: 6px;
  background: repeating-conic-gradient(rgba(127, 127, 127, .13) 0% 25%, transparent 0% 50%) 50% / 16px 16px; margin-bottom: 10px; }
.brandprev img { max-width: 100%; max-height: 90px; object-fit: contain; }
.brandprev.fav img { width: 64px; height: 64px; image-rendering: auto; }

/* Konsole */
.console, .testout, .pre { font-family: var(--mono); font-size: .8rem; background: #0d0f12; color: #d5dbe8; border-radius: 6px; padding: 12px; margin: 0;
  white-space: pre-wrap; word-break: break-all; overflow: auto; border: 1px solid #23262b; }
.console { height: 420px; margin-top: 8px; }
.testout { max-height: 240px; margin-top: 8px; }
.cmd { font-family: var(--mono); margin-top: 8px; }
.consolebar { margin-bottom: 4px; }
.stats { display: flex; gap: 22px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin-top: 8px; }

/* Dialoge & Toasts */
.modal-open, .modal-open body { overflow: hidden; }
.modal-open body { padding-right: var(--sbw, 0px); }
.modal-back { overscroll-behavior: contain; }
.ed-text, .ed-gutter { overscroll-behavior: contain; }
.modal-back { position: fixed; inset: 0; background: rgba(6, 8, 12, .6); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto; z-index: 50; }
.modal { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 20px; width: 100%; max-width: 480px; box-shadow: 0 24px 60px rgba(0, 0, 0, .4); }
.modal.wide { max-width: 860px; }
.modal.buy { max-width: 700px; }
.buystep { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 16px 0 8px; }
.buystep:first-of-type { margin-top: 4px; }
.buyauto { margin-bottom: 4px; }
.buyauto .switch { display: flex; }
.buyprefer { margin: 4px 0 10px; }
.buyprefer .switch { display: flex; }
.switchrow { align-items: center; column-gap: 28px; }
.switchrow .switch { margin-bottom: 10px; }
.modal h3 { font-size: 1.05rem; margin-bottom: 12px; }
#toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast { white-space: pre-line; background: #2a2c30; color: #fff; padding: 10px 14px; border-radius: 6px; max-width: 360px; border-left: 3px solid var(--accent); }
.toast.ok { border-left-color: #4cc27f; } .toast.err { border-left-color: #ef6a6a; } .toast.warn { border-left-color: #e8b04a; }
.baledit { display: inline-flex; align-items: center; gap: 6px; }
.baledit input { width: 110px; }

/* Dropdown mit Suchfilter */
.combo { position: relative; }
.combo-input { padding-right: 30px; cursor: pointer; }
.combo > .ico { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); width: 16px; height: 16px; }
.combo-list { position: absolute; z-index: 45; left: 0; right: 0; top: calc(100% + 4px); max-height: 240px; overflow-y: auto; margin: 0; padding: 4px;
  list-style: none; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, .28); }
.combo-item { padding: 6px 9px; border-radius: 4px; cursor: pointer; }
.combo-item.act { background: rgba(127, 127, 127, .2); }
.combo-item.sel { color: var(--accent-ink); font-weight: 600; }
.combo-empty { padding: 8px 9px; color: var(--muted); }

/* ---------- Ergänzungen: Layout, Mobil, Server-Kopf, Schalter ---------- */
.burger, .top-brand, .scrim { display: none; }
.top { gap: 12px; }
.top-brand { align-items: center; gap: 8px; font-weight: 700; color: var(--text); min-width: 0; }
.top-brand:hover { text-decoration: none; }
.top-brand img { max-height: 36px; max-width: 150px; width: auto; height: auto; object-fit: contain; display: block; }
.top-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 14px; align-items: start; }
.cols > .card { margin: 0; }
/* Kacheln ohne Lücken: Spalten füllen sich von oben nach unten, fehlende Kacheln (z. B. Sprache) lassen keine Lücke */
.cols.masonry { display: block; column-width: 380px; column-gap: 14px; }
.cols.masonry > .card { display: block; width: 100%; margin: 0 0 14px; break-inside: avoid; page-break-inside: avoid; -webkit-column-break-inside: avoid; }
.grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }

/* Server verwalten – Kopfbereich */
.svhead { padding: 18px 20px; }
.svhead-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.svhead-title { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.svhead-title h1 { font-size: 1.6rem; overflow-wrap: anywhere; }
.svinfo { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.svitem { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.svitem .lbl { color: var(--muted); font-weight: 500; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.svval { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; min-width: 0; }
.svval code { font-size: .95rem; overflow-wrap: anywhere; }
.meter { flex-basis: 100%; height: 6px; border-radius: 99px; background: rgba(127, 127, 127, .2); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--ok); border-radius: inherit; }
.meter.warn span { background: var(--warn); } .meter.bad span { background: var(--bad); }

/* Tabs als Pillen (Server verwalten) */
.tabs.pills { border-bottom: 0; gap: 6px; margin-bottom: 16px; }
.tabs.pills .tab { border: 1px solid var(--line); border-radius: 999px; background: var(--panel); padding: 7px 14px; margin-bottom: 0; }
.tabs.pills .tab:hover { border-color: var(--muted); }
.tabs.pills .tab.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }

/* Zugangsdaten, Gefahrenbereich */
.cred { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.cred code { padding: 6px 9px; }
.danger-zone { border-color: rgba(194, 58, 58, .55); }
.danger-zone h3 { color: var(--bad); }

/* Schalter */
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; margin-bottom: 10px; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.slider { position: relative; width: 44px; height: 24px; border-radius: 99px; background: rgba(127, 127, 127, .4); transition: background .15s; flex: none; }
.slider::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider::after { transform: translateX(20px); }
.switch input:focus-visible + .slider { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch-label { font-weight: 600; }

/* Dialoge: Einblenden + "Plopp" bei Klick daneben */
.modal-back { animation: fadein .15s ease-out; }
.modal { animation: pop .18s ease-out; }
.modal.bump { animation: bump .32s cubic-bezier(.36, .07, .19, .97); }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bump { 0% { transform: scale(1); } 30% { transform: scale(1.045); } 55% { transform: scale(.985); } 80% { transform: scale(1.015); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .modal-back, .modal, .modal.bump { animation: none; } }

/* ---------- Mobil / Tablet ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .burger, .top-brand { display: inline-flex; }
  .side { position: fixed; z-index: 60; left: 0; top: 0; bottom: 0; width: min(290px, 84vw); height: 100%; transform: translateX(-102%); transition: transform .22s ease;
    border-right: 1px solid var(--line); box-shadow: none; }
  .nav-open .side { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .45); }
  .scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(6, 8, 12, .55); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .nav-open .scrim { opacity: 1; pointer-events: auto; }
  .nav-open { overflow: hidden; }
  .nav { padding: 11px 12px; }
  .top { padding: 0 12px; position: sticky; }
  .usermenu > span { display: none; }
  .wrap { padding: 16px 12px 40px; }
  .side-brand { min-height: 64px; }
}
@media (max-width: 720px) {
  h1 { font-size: 1.2rem; }
  input, select, textarea { font-size: 16px; }
  .btn { min-height: 40px; }
  .btn.small { min-height: 34px; }
  .balance { padding: 4px 8px; }
  .top-brand span { display: none; }
  .svhead { padding: 14px; }
  .svhead-title h1 { font-size: 1.3rem; }
  .svinfo { grid-template-columns: 1fr; }
  .tabs.pills { gap: 6px; }
  .tabs.pills .tab { padding: 7px 11px; }
  .console { height: 52vh; }
  .toolbar input { max-width: none; flex: 1 1 100%; }
  .pagehead { margin-bottom: 12px; }
  .modal-back { padding: 12px; }
  .modal { padding: 16px; }
  .actions .btn { flex: 1 1 auto; }
  .authcard { padding: 20px; }
  .infobar { gap: 16px; }
  #toasts { left: 12px; right: 12px; bottom: 12px; }
  .toast { max-width: none; }
  /* Tabellen als Karten */
  .tablewrap { border: 0; background: transparent; overflow: visible; }
  table, thead, tbody, tr, td { display: block; width: 100%; }
  thead { display: none; }
  tbody tr { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; margin-bottom: 10px; }
  tbody tr:hover { background: var(--panel); }
  td { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px dashed var(--line); padding: 8px 0; text-align: right; }
  td:last-child { border-bottom: 0; }
  td::before { content: attr(data-label); color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; text-align: left; flex: none; }
  td[data-label=""]::before { content: none; }
  td[data-label=""] { justify-content: flex-start; flex-wrap: wrap; }
}

/* ---------- Server verwalten: kompakter Kopf ---------- */
.svhead { padding: 10px 14px; margin-bottom: 12px; }
.svhead-top { margin-bottom: 8px; gap: 10px; align-items: center; }
.svhead-title { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.svhead-title h1 { font-size: 1.3rem; line-height: 1.2; }
.backbtn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 6px;
  color: var(--muted); font-size: 1.2rem; line-height: 1; flex: none; }
.backbtn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.svinfo { gap: 8px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.svitem { padding: 5px 10px; gap: 0; }
.svitem .lbl { font-size: .68rem; }
.svval { font-size: .92rem; gap: 6px; min-height: 26px; }
.svval .btn.small { padding: 2px 6px; }
.svhead .meter { height: 4px; }
.tabs.pills { margin-bottom: 12px; }
.tabs.pills .tab { padding: 5px 12px; }

/* ---------- Konsole: Kennzahlen ---------- */
.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 10px 0; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat-head { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.stat-head .ico { color: var(--accent); }
.stat-val { font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; overflow-wrap: anywhere; }
.stat-sub { font-size: .76rem; color: var(--muted); min-height: 1.1em; overflow-wrap: anywhere; }
.stat .meter { flex-basis: auto; height: 5px; margin-top: 6px; }

/* ---------- Rechte-Auswahl (Benutzer einladen) ---------- */
.permgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 10px; }
.permgroup { border: 1px solid var(--line); border-radius: 8px; background: var(--bg); overflow: hidden; }
.permhead { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: rgba(127, 127, 127, .1); border-bottom: 1px solid var(--line); cursor: pointer; }
.permhead .ico { color: var(--accent); }
.permitems { display: flex; flex-direction: column; padding: 6px 10px 8px; }
.permitem { margin: 2px 0; }

/* ---------- Sonstiges ---------- */
.section-title { font-size: 1.05rem; margin: 26px 0 6px; }
.owner-line { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.owner-line strong { color: var(--text); }
@media (max-width: 720px) {
  .svinfo { grid-template-columns: 1fr 1fr; }
  .statgrid { grid-template-columns: 1fr 1fr; }
  .permgrid { grid-template-columns: 1fr; }
}

/* ---------- Tickets ---------- */
.badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: var(--on-accent, #fff); font-size: .72rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; }
.nav .badge[hidden] { display: none; }
.unread { font-weight: 700; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-left: 8px; vertical-align: middle; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--panel); }
.seg button { font: inherit; font-weight: 600; padding: 6px 12px; border: 0; background: none; color: var(--muted); cursor: pointer; border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--accent-soft); color: var(--accent-ink); }

.ticketwrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.ticketmain { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ticketwrap .card { margin: 0; }
.ticketkv { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.chat { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 12px;
  height: clamp(320px, calc(100vh - 380px), 720px); overflow-y: auto; scrollbar-width: thin; }
.msg { display: flex; gap: 10px; align-items: flex-start; max-width: 86%; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.bubble { min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.msg.mine .bubble { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.msg.staff:not(.mine) .bubble { border-color: var(--accent); }
.msg.internal .bubble { background: rgba(168, 100, 0, .12); border: 1px dashed var(--warn); }
.msg-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-bottom: 3px; }
.msg-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-atts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.msg-atts img { display: block; max-width: 220px; max-height: 160px; border-radius: 6px; border: 1px solid var(--line); object-fit: cover; }
.chat-event { align-self: center; text-align: center; font-size: .8rem; color: var(--muted); padding: 2px 10px; border-radius: 99px; background: rgba(127, 127, 127, .12); max-width: 92%; }
.sys-secret { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; padding: 8px 10px; border: 1px dashed var(--line); border-radius: 8px; }
.sys-secret code { font-size: 1.05rem; letter-spacing: .04em; user-select: all; }
.chat-event.internal { background: rgba(168, 100, 0, .12); color: var(--warn); }
.composer { display: flex; flex-direction: column; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.composer[hidden] { display: none; }
.composer textarea { resize: vertical; min-height: 64px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumbs:empty { display: none; }
.thumb { position: relative; width: 84px; }
.thumb img { width: 84px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); display: block; }
.thumb-x { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.thumb-x:hover { border-color: var(--bad); color: var(--bad); }
.thumb-n { display: block; font-size: .68rem; color: var(--muted); text-align: center; }
@media (max-width: 900px) {
  .ticketwrap { grid-template-columns: 1fr; }
  .ticketwrap .card { order: -1; }
  .chat { height: clamp(300px, calc(100vh - 420px), 600px); }
}
@media (max-width: 720px) {
  .msg { max-width: 100%; }
  .msg-atts img { max-width: 100%; }
  .seg { width: 100%; }
  .seg button { flex: 1; padding: 8px 6px; }
}

/* Seitenleiste: App installieren (nur sichtbar, wenn die Installation möglich ist) */
.side-install { margin-top: auto; margin-bottom: 8px; width: 100%; background: none; border: 0; font: inherit; font-weight: 500; text-align: left; cursor: pointer; }
.side-install[hidden] { display: none; }
.side-install:not([hidden]) + .side-foot { margin-top: 0; }

/* Seitenleiste: Fußzeile */
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 9px; padding: 12px 10px 4px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.side-foot:hover { color: var(--text); text-decoration: none; }
.side-foot span { text-decoration: none; }
.ico.gh, .side-foot .ico { fill: currentColor; stroke: none; }

/* ---------- Kacheln mit Hintergrundbild (Shop / Meine Server) ---------- */
.card.hasbg { position: relative; overflow: hidden; isolation: isolate; border-color: color-mix(in srgb, var(--line) 70%, transparent); }
.card.hasbg::before { content: ""; position: absolute; inset: -4px; z-index: -2; background: var(--bg-img) center / cover no-repeat; filter: blur(2px); transform: scale(1.02); }
.card.hasbg::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 30%, transparent) 0%, color-mix(in srgb, var(--panel) 66%, transparent) 45%, color-mix(in srgb, var(--panel) 92%, transparent) 100%); }
.card.hasbg .muted, .card.hasbg .specs dt { color: color-mix(in srgb, var(--text) 68%, transparent); }
.card.hasbg h3 { text-shadow: 0 1px 8px color-mix(in srgb, var(--panel) 80%, transparent); }
/* Modal mit unscharfem Spielbild im Hintergrund */
.modal.hasimg { position: relative; overflow: hidden; isolation: isolate; }
.modal.hasimg::before { content: ""; position: absolute; inset: -20px; z-index: -2; background: var(--bg-img) center / cover no-repeat; filter: blur(12px); transform: scale(1.05); }
.modal.hasimg::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 35%, transparent) 0%, color-mix(in srgb, var(--panel) 70%, transparent) 50%, color-mix(in srgb, var(--panel) 90%, transparent) 100%); }
.modal.hasimg h3 { text-shadow: 0 1px 8px color-mix(in srgb, var(--panel) 80%, transparent); }
.shopgrid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card.offer { min-height: 300px; }

/* Modell-Auswahl */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: inherit; font-weight: 600; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--text); cursor: pointer; }
.chip:hover { border-color: var(--muted); }
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.card.hasbg .chip { background: color-mix(in srgb, var(--panel) 80%, transparent); }
.card.hasbg .chip.on { background: var(--accent-soft); }

/* Modellwechsel */
.modellist { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.modelopt { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.modelopt.upgrade { border-left: 3px solid var(--ok); }
.modelopt.downgrade { border-left: 3px solid var(--warn); }
.modelopt-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
@media (max-width: 720px) { .modelopt { flex-direction: column; align-items: stretch; } }

/* Modell-Editor (Admin) */
.varlist { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.varrow { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px 2px; background: var(--bg); }
.varrm { display: flex; align-items: flex-end; justify-content: flex-end; padding-bottom: 12px; }

/* Modell-Editor: Kopfzeile mit Sortierung */
.varhead { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.varno { overflow-wrap: anywhere; }

/* ---------- Gutscheine / Kaufdialog ---------- */
.couponpick { margin: 4px 0 12px; }
.couponpick .row { display: flex; gap: 8px; align-items: center; }
.couponpick .row input { flex: 1; min-width: 0; }
.couponchip { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding: 6px 6px 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(28, 124, 70, .12); }
.couponchip .btn.small { padding: 0 10px; font-size: 1.1rem; line-height: 1.6; }
.sumbox { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.sumrow { display: flex; justify-content: space-between; gap: 14px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.sumrow:last-of-type { border-bottom: 0; }
.row.end { align-items: flex-end; }

/* ---------- Zahlungsarten ---------- */
.paymethods { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.paymethod { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg);
  color: var(--text); font: inherit; cursor: pointer; text-align: center; }
.paymethod .ico { width: 28px; height: 28px; color: var(--muted); }
.paymethod:hover { border-color: var(--muted); }
.paymethod.on { border-color: var(--accent); background: var(--accent-soft); }
.paymethod.on .ico { color: var(--accent); }
.paymethod .small { color: var(--muted); }

.langsel { width: auto; min-width: 110px; padding: 6px 8px; margin-right: 8px; }
.auththeme { display: flex; align-items: center; }
.mailtpl { margin-bottom: 10px; }
.mailtpl summary { cursor: pointer; display: flex; gap: 10px; align-items: center; }
.monoarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.45; width: 100%; }
.ph { display: inline-block; margin: 2px 6px 2px 0; padding: 0 5px; border: 1px solid var(--line); border-radius: 4px; background: var(--input); }

/* Custom CSS: Hinweisliste */
.card ul.small { margin: 12px 0 0; padding-left: 18px; }
.card ul.small li { margin: 3px 0; }

/* Vorlage: änderbare Egg-Variablen */
.evlist { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.evrow { align-items: flex-start; }
.evrow input { margin-top: 3px; }

/* Rollen-Auswahl (Benutzerverwaltung) */
select.roleselect { width: auto; min-width: 140px; }
.modal select.roleselect, .field select.roleselect { width: 100%; }

/* ---------- Saison-Themen (siehe seasonal.js) ---------- */
#season { position: fixed; inset: 0; z-index: 40; pointer-events: none; overflow: hidden; }
#season .season-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#season .pumpkin { position: absolute; left: 0; top: 0; pointer-events: auto; cursor: pointer; user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; will-change: transform; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); }
#season .pumpkin svg, #season .egg svg { display: block; width: 100%; height: 100%; pointer-events: none; }
#season .egg { position: absolute; pointer-events: auto; cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
#season .egg-body { width: 100%; height: 100%; transform-origin: 50% 88%; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); }
#season .egg-grass { position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%); pointer-events: none; }
#season .egg.wiggle .egg-body { animation: eggwiggle .75s ease-in-out; }
@keyframes eggwiggle {
  0%   { transform: rotate(var(--rot, 0deg)); }
  15%  { transform: rotate(calc(var(--rot, 0deg) - 17deg)); }
  35%  { transform: rotate(calc(var(--rot, 0deg) + 14deg)); }
  55%  { transform: rotate(calc(var(--rot, 0deg) - 9deg)); }
  75%  { transform: rotate(calc(var(--rot, 0deg) + 5deg)); }
  100% { transform: rotate(var(--rot, 0deg)); }
}

/* ---------- Wartungsmodus ---------- */
.mnt { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.mnt-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, var(--accent-soft), transparent 60%), var(--bg); }
.mnt-bg i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; background: var(--accent); }
.mnt-bg .b1 { width: 420px; height: 420px; left: -110px; top: -90px; opacity: .28; animation: mnt-drift 22s ease-in-out infinite alternate; }
.mnt-bg .b2 { width: 360px; height: 360px; right: -90px; bottom: 8%; opacity: .2; animation: mnt-drift 27s ease-in-out infinite alternate-reverse; }
.mnt-bg .b3 { width: 260px; height: 260px; left: 42%; bottom: -120px; opacity: .16; animation: mnt-drift 19s ease-in-out infinite alternate; }
@keyframes mnt-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, 40px) scale(1.15); } }

.mnt-top { display: flex; align-items: center; gap: 10px; padding: 16px clamp(16px, 4vw, 40px); }
.mnt-top .brandline { margin: 0; }
.mnt-top .spacer { flex: 1; }
.mnt-top .btn { white-space: nowrap; }

.mnt-main { flex: 1; display: grid; place-items: center; padding: 8px 20px 56px; }
.mnt-card { width: 100%; max-width: 560px; text-align: center; padding: clamp(28px, 5vw, 48px) clamp(20px, 5vw, 44px);
  background: color-mix(in srgb, var(--panel) 82%, transparent); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: mnt-in .6s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes mnt-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.mnt-art { display: grid; place-items: center; margin: 0 auto 10px; }
.mnt-gears { width: min(220px, 60vw); height: auto; color: var(--accent); overflow: visible; }
.mnt-gears .g1 { animation: mnt-spin 14s linear infinite; }
.mnt-gears .g2 { animation: mnt-spin 8.4s linear infinite reverse; }
.mnt-gears .g3 { animation: mnt-spin 6.6s linear infinite; }
@keyframes mnt-spin { to { transform: rotate(360deg); } }

.mnt-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600;
  letter-spacing: .02em; color: var(--accent-ink); background: var(--accent-soft); }
.mnt-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: mnt-pulse 1.8s ease-out infinite; }
@keyframes mnt-pulse { 0% { box-shadow: 0 0 0 0 var(--accent); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
.mnt-card h1 { margin: 16px 0 8px; font-size: clamp(1.6rem, 4.6vw, 2.1rem); letter-spacing: -.02em; line-height: 1.15; }
.mnt-msg { margin: 0 auto; max-width: 44ch; color: var(--muted); font-size: 1rem; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.mnt-progress { height: 4px; border-radius: 4px; background: var(--line); margin: 26px auto 0; max-width: 260px; overflow: hidden; }
.mnt-progress i { display: block; height: 100%; width: 38%; border-radius: 4px; background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: mnt-slide 1.9s ease-in-out infinite; }
@keyframes mnt-slide { from { transform: translateX(-100%); } to { transform: translateX(270%); } }
.mnt-eta { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 8px; margin-top: 22px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font-size: .9rem; color: var(--muted); }
.mnt-eta .ico { color: var(--accent); }
.mnt-eta strong { color: var(--text); }

.mnt-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 8px clamp(14px, 3vw, 28px); font-size: .85rem;
  background: var(--accent-soft); color: var(--accent-ink); border-bottom: 1px solid var(--line); }
.mnt-banner .ico { flex: none; }
.mnt-banner span { flex: 1 1 260px; font-weight: 600; }
.mnt-banner a { font-weight: 600; text-decoration: underline; }

@media (max-width: 520px) {
  .mnt-top { padding: 12px 14px; gap: 8px; }
  .mnt-top .brandline span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mnt-bg i, .mnt-gears g, .mnt-chip .dot, .mnt-progress i, .mnt-card { animation: none !important; }
  .mnt-progress i { width: 100%; opacity: .5; }
}
.mnt-top .brandline { justify-content: flex-start; }
.mnt-top .brandline img { max-height: 40px; max-width: 200px; }

.colorpick { width: 52px; height: 36px; padding: 2px; border-radius: 6px; cursor: pointer; }

/* Info-Banner / Laufband */
.infobanner { --ib: var(--info); display: flex; align-items: center; gap: 10px; padding: 9px clamp(14px, 3vw, 28px); font-size: .88rem; font-weight: 600;
  color: var(--text); background: color-mix(in srgb, var(--ib) 13%, var(--panel)); border-bottom: 1px solid color-mix(in srgb, var(--ib) 40%, var(--line)); border-left: 4px solid var(--ib); }
.infobanner .ico { flex: none; color: var(--ib); }
.infobanner.ib-success { --ib: var(--ok); }
.infobanner.ib-warning { --ib: var(--warn); }
.infobanner.ib-danger { --ib: var(--bad); }
.ib-view { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; }
.ib-track { display: inline-block; will-change: transform; }
.ib-track.run { animation: ib-run var(--ib-dur, 20s) linear infinite; }
.infobanner:hover .ib-track.run { animation-play-state: paused; }
@keyframes ib-run { from { transform: translateX(var(--ib-from, 100%)); } to { transform: translateX(var(--ib-to, -100%)); } }
@media (prefers-reduced-motion: reduce) {
  .ib-track.run { animation: none; }
  .ib-view { white-space: normal; overflow-wrap: anywhere; }
}
.ib-preview { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; min-width: 0; max-width: 100%; contain: inline-size; }
.ib-preview .infobanner { border-bottom: 0; }

/* Verlängern: große Auswahl-Buttons */
.bigacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-bottom: 16px; }
.bigact { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 6px; min-height: 150px; padding: 22px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); font: inherit; text-align: left; cursor: pointer;
  transition: border-color .15s, transform .15s, box-shadow .15s; }
.bigact:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, .12); }
.bigact:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bigact .ico { width: 40px; height: 40px; color: var(--accent); margin-bottom: 4px; }
.bigact strong { font-size: 1.2rem; }
.bigact .tag { position: absolute; top: 16px; right: 16px; }
@media (prefers-reduced-motion: reduce) { .bigact { transition: none; } .bigact:hover { transform: none; } }

/* Schieberegler für die Anzahl der Laufzeiten */
.rangebox { width: 100%; }
.rangeval { margin-bottom: 4px; font-size: 1.05rem; }
.rangeinput { -webkit-appearance: auto; appearance: auto; width: 100%; height: 28px; padding: 0; border: 0; background: transparent; accent-color: var(--accent); cursor: pointer; }
.rangeinput:disabled { cursor: default; opacity: .6; }
.rangeticks { display: flex; justify-content: space-between; margin: 0 -2px; font-size: .75rem; color: var(--muted); user-select: none; -webkit-user-select: none; }
.rangeticks span { width: 20px; text-align: center; cursor: pointer; }
.rangeticks span:hover { color: var(--accent); }

/* Variable Preise: Schieberegler für RAM, Speicher, Datenbanken und Backups */
.cfgbox { display: flex; flex-direction: column; gap: 12px; margin: 10px 0; }
.cfgbox { container-type: inline-size; }
.cfgpair { display: grid; grid-template-columns: 1fr; gap: 12px; }
.cfgpair > .cfgrow { min-width: 0; }
@container (min-width: 420px) { .cfgpair { grid-template-columns: 1fr 1fr; gap: 12px 28px; } }
.cfgrow { display: flex; flex-direction: column; gap: 2px; }
.cfghead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cfgfoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cfgfoot .small { white-space: nowrap; }
.card.offer .cfgbox { margin: 6px 0 2px; }

/* ---------- Easter Egg „Server-Notdienst“ (eggs.js) ---------- */
.eg-back { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(10, 10, 12, .72); backdrop-filter: blur(3px); animation: fadein .18s ease-out; }
.eg-game { width: 100%; max-width: 980px; max-height: 100%; display: flex; flex-direction: column; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 24px 70px rgba(0, 0, 0, .45); overflow: hidden; animation: pop .2s ease-out; }
.eg-head { display: flex; align-items: center; gap: 18px; padding: 12px 16px; background: var(--panel); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.eg-title { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
.eg-title strong { font-size: 1.05rem; letter-spacing: -.01em; }
.eg-sub { color: var(--muted); font-size: .85rem; }
.eg-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.eg-stat { display: flex; flex-direction: column; align-items: flex-end; min-width: 92px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }
.eg-stat strong { font-family: var(--mono); font-size: 1rem; font-variant-numeric: tabular-nums; }
.eg-lbl { color: var(--muted); font-size: .75rem; }
.eg-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; padding: 14px; overflow: auto; min-height: 0; }
@media (max-width: 760px) {
  .eg-back { padding: 0; }
  .eg-game { max-width: none; height: 100%; border-radius: 0; border: 0; }
  .eg-body { grid-template-columns: 1fr; }
  .eg-stat { min-width: 0; }
}

/* Bühne */
.eg-stage { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; overflow: hidden; min-height: 460px; }
.eg-fhead { display: flex; align-items: center; gap: 10px; }
.eg-fname { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }
.eg-tag { padding: 1px 8px; border-radius: 999px; background: var(--bad); color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.eg-stage.boss { border-color: var(--bad); box-shadow: inset 0 0 0 1px var(--bad); }
.eg-bar { height: 14px; border-radius: 7px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.eg-bar.thin { height: 8px; border-radius: 4px; flex: 1; }
.eg-bar i { display: block; height: 100%; width: 0; background: var(--bad); border-radius: inherit; transition: width .12s linear; }
.eg-stage.ok .eg-bar i { background: var(--ok); }
.eg-hp { font-family: var(--mono); font-size: .85rem; color: var(--muted); text-align: right; margin-top: -4px; font-variant-numeric: tabular-nums; }
.eg-row { display: grid; grid-template-columns: 96px 1fr 64px; align-items: center; gap: 10px; }
.eg-val { font-family: var(--mono); font-size: .85rem; text-align: right; font-variant-numeric: tabular-nums; }
.eg-trow .eg-bar i { background: var(--ok); transition: none; }
.eg-trow.low .eg-bar i { background: var(--bad); }
.eg-trow.low .eg-val { color: var(--bad); font-weight: 700; }
.eg-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .85rem; }
.eg-meta b { color: var(--text); font-family: var(--mono); }

/* Server zum Anklicken */
.eg-hit { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 240px; padding: 6px; border: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; -webkit-user-select: none; border-radius: 8px; overflow: visible; }
.eg-hit:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.eg-hit:active .eg-srv { transform: scale(.97); }
.eg-srv { display: block; overflow: visible; height: 100%; max-height: 340px; width: auto; max-width: 100%; pointer-events: none; transform-origin: 50% 90%; }
.eg-shadow { fill: rgba(0, 0, 0, .18); }
.eg-rack { fill: var(--side); stroke: var(--line); stroke-width: 2; }
.eg-unit { fill: var(--panel); stroke: var(--line); stroke-width: 2; }
.eg-slit { fill: var(--line); }
.eg-led { fill: var(--muted); }
.eg-smoke { fill: var(--muted); opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; }
.eg-spark { fill: none; stroke: var(--warn); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.eg-stage.broken .eg-led { fill: var(--bad); animation: eg-blink .9s steps(2, jump-none) infinite; }
.eg-stage.broken .eg-led.l2 { animation-delay: .45s; }
.eg-stage.broken .eg-smoke { animation: eg-smoke 2.4s ease-out infinite; }
.eg-stage.broken .eg-smoke.s2 { animation-delay: .8s; }
.eg-stage.broken .eg-smoke.s3 { animation-delay: 1.6s; }
.eg-stage.broken .eg-spark { animation: eg-spark .7s steps(2, jump-none) infinite; }
.eg-stage.ok .eg-led { fill: var(--ok); }
.eg-stage.dead .eg-srv { filter: grayscale(1); opacity: .55; }
.eg-stage.fail { border-color: var(--bad); }
@keyframes eg-blink { 0% { opacity: 1; } 100% { opacity: .25; } }
@keyframes eg-smoke { 0% { opacity: 0; transform: translateY(0) scale(.7); } 25% { opacity: .5; } 100% { opacity: 0; transform: translateY(-30px) scale(1.6); } }
@keyframes eg-spark { 0% { opacity: 1; } 100% { opacity: 0; } }

/* Schwebende Zahlen */
.eg-float { position: absolute; z-index: 3; transform: translate(-50%, -50%); pointer-events: none; white-space: nowrap; font-family: var(--mono); font-weight: 700;
  color: var(--text); text-shadow: 0 1px 2px var(--panel), 0 0 6px var(--panel); }
.eg-float.crit { color: var(--warn); font-size: 1.1rem; }
.eg-float.done { color: var(--ok); font-size: 1.15rem; }
.eg-float.bad { color: var(--bad); font-size: 1.15rem; }

/* Vogel-Bonus */
.eg-bird { position: absolute; z-index: 4; right: -70px; width: 58px; height: 36px; padding: 0; border: 0; background: none; color: var(--accent); cursor: pointer;
  animation: eg-fly 8s linear forwards; touch-action: manipulation; }
.eg-bird svg { width: 100%; height: 100%; display: block; pointer-events: none; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .3)); }
.eg-bird:hover { color: var(--accent-h); }
.eg-bird:focus-visible { outline: 2px solid var(--accent); border-radius: 6px; }
.eg-bird.still { animation: none; right: 14px; }
.eg-wing { transform-box: fill-box; transform-origin: 0% 100%; animation: eg-flap .35s ease-in-out infinite alternate; }
.eg-bird.still .eg-wing { animation: none; }
@keyframes eg-fly { from { right: -70px; } to { right: calc(100% + 12px); } }
@keyframes eg-flap { from { transform: rotate(-14deg); } to { transform: rotate(16deg); } }

/* Spiel vorbei */
.eg-over { position: absolute; inset: 0; z-index: 6; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(10, 10, 12, .6); backdrop-filter: blur(2px); }
.eg-overin { width: 100%; max-width: 340px; padding: 20px; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 40px rgba(0, 0, 0, .4); }
.eg-overin h2 { margin-bottom: .2rem; }
.eg-overin p { margin: 0 0 12px; }
.eg-ovstats { display: grid; gap: 6px; margin-bottom: 16px; text-align: left; }
.eg-ovstats > div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.eg-ovstats span { color: var(--muted); }
.eg-ovstats b { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.eg-ovbtns { justify-content: center; }

/* Upgrades */
.eg-shop { display: flex; flex-direction: column; min-height: 0; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.eg-ups { display: flex; flex-direction: column; gap: 6px; overflow: auto; min-height: 0; }
.eg-up { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 8px 10px; font: inherit; text-align: left; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px; cursor: pointer; touch-action: manipulation; }
.eg-up:hover:not(.no) { border-color: var(--accent); background: var(--accent-soft); }
.eg-up:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.eg-up.no { opacity: .5; cursor: not-allowed; }
.eg-uinfo { display: flex; flex-direction: column; min-width: 0; }
.eg-uinfo small { color: var(--muted); }
.eg-uside { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.eg-cost { font-family: var(--mono); font-weight: 700; font-variant-numeric: tabular-nums; }
.eg-up:not(.no) .eg-cost { color: var(--accent-ink); }
.eg-own { color: var(--muted); font-size: .8rem; min-height: 1.2em; }
.eg-foot { margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
  .eg-back, .eg-game { animation: none; }
  .eg-stage .eg-led, .eg-stage .eg-smoke, .eg-stage .eg-spark { animation: none !important; }
  .eg-stage.broken .eg-spark { opacity: 1; }
}

/* Pflicht-Checkbox: Wegfall des Widerrufsrechts (bei jeder Zahlung mit Echtgeld) */
.waiver { margin: 14px 0 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; }
.waiver label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: .86rem; line-height: 1.45; }
.waiver input[type=checkbox] { flex: none; width: 17px; height: 17px; margin-top: 2px; }
.waiver.invalid { border-color: var(--bad); background: rgba(194, 58, 58, .1); }
.waiver.invalid label { color: var(--bad); }
.waiver.invalid input[type=checkbox] { outline: 2px solid var(--bad); outline-offset: 1px; }
.waiver-msg { color: var(--bad); font-size: .82rem; margin-top: 6px; }
.waiver.shake { animation: waivershake .35s; }
@keyframes waivershake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .waiver.shake { animation: none; } }

/* KI-Assistent (schwebend unten rechts) */
.aiw { position: fixed; right: 16px; bottom: 16px; z-index: 44; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.aiw > * { pointer-events: auto; }
.aiw-fab { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--accent); color: var(--aiw-on, var(--on-accent, #fff)); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .28); transition: transform .15s, background .15s; padding: 0; }
.aiw-fab:hover { background: var(--accent-h); transform: translateY(-1px); }
.aiw-fab:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.aiw-panel { width: 380px; max-width: calc(100vw - 32px); height: min(560px, calc(100vh - 110px)); background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .3); display: flex; flex-direction: column; overflow: hidden; animation: aiwpop .16s ease-out; }
@keyframes aiwpop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.aiw-head { display: flex; align-items: center; gap: 4px; padding: 10px 10px 10px 14px; border-bottom: 1px solid var(--line); background: var(--side); }
.aiw-title { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--accent-ink); }
.aiw-title strong { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aiw-spacer { flex: 1; }
.aiw-ibtn { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; padding: 0; }
.aiw-ibtn:hover { background: rgba(127, 127, 127, .15); color: var(--text); }
.aiw-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.aiw-msg { display: flex; }
.aiw-msg.me { justify-content: flex-end; }
.aiw-bubble { max-width: 88%; padding: 8px 12px; border-radius: 12px; line-height: 1.45; overflow-wrap: anywhere; font-size: .92rem; }
.aiw-msg.bot .aiw-bubble { background: var(--bg); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.aiw-msg.me .aiw-bubble { background: var(--accent); color: var(--aiw-on, var(--on-accent, #fff)); border-bottom-right-radius: 4px; white-space: pre-wrap; }
.aiw-bubble p { margin: 0 0 .5em; } .aiw-bubble p:last-child, .aiw-bubble ul:last-child, .aiw-bubble ol:last-child, .aiw-bubble pre:last-child { margin-bottom: 0; }
.aiw-bubble ul, .aiw-bubble ol { margin: 0 0 .5em; padding-left: 1.3em; }
.aiw-bubble pre { margin: 0 0 .5em; padding: 8px 10px; background: rgba(127, 127, 127, .14); border-radius: 6px; overflow-x: auto; font-size: .85em; }
.aiw-bubble pre code { background: none; padding: 0; }
.aiw-err { color: var(--bad); font-size: .85rem; }
.aiw-retry { margin-top: 6px; background: none; border: 1px solid var(--line); border-radius: 6px; color: var(--text); font: inherit; font-size: .8rem; padding: 3px 9px; cursor: pointer; }
.aiw-retry:hover { border-color: var(--accent); color: var(--accent); }
.aiw-dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.aiw-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: aiwdot 1.1s infinite ease-in-out; }
.aiw-dots i:nth-child(2) { animation-delay: .15s; } .aiw-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes aiwdot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.aiw-chips { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 0 14px 10px; }
.aiw-chip { background: var(--accent-soft); color: var(--accent-ink); border: 1px solid transparent; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .84rem; cursor: pointer; text-align: left; }
.aiw-chip:hover { border-color: var(--accent); }
.aiw-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.aiw-form textarea { flex: 1; resize: none; max-height: 110px; line-height: 1.4; padding: 8px 10px; }
.aiw-send { width: 38px; height: 38px; flex: none; border-radius: 8px; border: 0; background: var(--accent); color: var(--aiw-on, var(--on-accent, #fff)); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.aiw-send:hover { background: var(--accent-h); }
.aiw-note { display: block; padding: 0 14px 10px; font-size: .72rem; line-height: 1.35; }
body.has-ai #toasts { bottom: 80px; }
@media (max-width: 640px) {
  .aiw { right: 12px; bottom: 12px; }
  .aiw-panel { position: fixed; inset: 8px; width: auto; max-width: none; height: auto; }
  body.ai-open .aiw-fab { display: none; }
  body.has-ai #toasts { bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) { .aiw-panel { animation: none; } .aiw-dots i { animation: none; opacity: .6; } .aiw-fab { transition: none; } }

/* Rechnungsdaten: Name und Anschrift */
.addrgrid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
.addrgrid .span2 { grid-column: 1 / -1; }
.addrgrid input, .addrgrid select { width: 100%; }
.field input.invalid, .field select.invalid { border-color: var(--bad); outline: 1px solid var(--bad); }
@media (max-width: 520px) { .addrgrid { grid-template-columns: 1fr; } }

/* Datei-Upload: Dropdown und Fortschrittsbalken */
.upstat { min-width: 0; }
.upstat .row { align-items: baseline; margin-bottom: 8px; }
.upstat strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.meter.upbar { height: 10px; margin-bottom: 8px; }
.meter.upbar span { background: var(--accent); transition: width .15s linear; }
.upsub { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .meter.upbar span { transition: none; } }

/* ======================================================================================
   Design v2 – großzügiger: mehr Luft, größere Buttons und Eingabefelder, weichere Rundungen
   (liegt bewusst am Ende der Datei und überschreibt die kompakteren Grundwerte oben)
   ====================================================================================== */
:root { --r-sm: 10px; --r: 14px; --r-lg: 20px; --shadow: 0 1px 2px rgba(30, 28, 20, .05), 0 10px 28px rgba(30, 28, 20, .06); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --shadow: 0 10px 30px rgba(0, 0, 0, .35); } }
:root[data-theme="dark"] { --shadow: 0 10px 30px rgba(0, 0, 0, .35); }

body { font-size: 15px; line-height: 1.6; }
h1 { font-size: 1.7rem; letter-spacing: -.02em; }
h2 { font-size: 1.2rem; margin-bottom: 1.1rem; }
h3 { font-size: 1.08rem; margin-bottom: .65rem; }
code { border-radius: 6px; padding: .12em .45em; }

/* Karten, Raster */
.card { padding: 24px; border-radius: var(--r); margin-bottom: 20px; box-shadow: var(--shadow); }
.cards { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.cards .card { gap: 14px; }
.grid2, .grid3, .grid4, .grid5 { gap: 20px; }
.cols { gap: 20px; }
.cols.masonry { column-gap: 20px; }
.cols.masonry > .card { margin: 0 0 20px; }
.accgrid { gap: 20px; margin-bottom: 20px; }
.ticketwrap { gap: 20px; }
.tablewrap { border-radius: var(--r); box-shadow: var(--shadow); }
.emptybox { padding: 64px 20px; border-radius: var(--r); }
.price { font-size: 1.3rem; }
.specs { gap: 5px 20px; }
.balico { width: 44px; height: 44px; border-radius: 12px; }
.balstat { padding: 12px 0; }
.svitem, .stat { border-radius: 12px; }
.permgroup { border-radius: 12px; }
.banner { padding: 18px 20px; border-radius: var(--r); }
.notice { padding: 14px 18px; border-radius: 10px; }
.tag { padding: 3px 11px; border-radius: 999px; }
.badge { height: 22px; min-width: 22px; }
.seg { border-radius: 12px; }
.seg button { padding: 9px 18px; }
.chip { padding: 8px 16px; }
.chat, .composer { border-radius: var(--r); }
.bubble { border-radius: 12px; padding: 10px 14px; }

/* Formulare */
.field { gap: 7px; margin-bottom: 18px; }
.lbl { font-size: .88rem; }
input, select, textarea { padding: 11px 14px; border-radius: var(--r-sm); }
input[type=checkbox], input[type=radio] { padding: 0; }
input[type=range], .rangeinput { padding: 0; }
.baledit input { width: 120px; }
fieldset { border-radius: var(--r-sm); padding: 14px 16px; margin-bottom: 18px; }
.choice { padding: 14px 16px; border-radius: var(--r-sm); gap: 12px; margin-bottom: 10px; }
.check { gap: 9px; margin: 3px 18px 3px 0; }
.combo-list { border-radius: 12px; padding: 6px; }
.combo-item { padding: 9px 12px; border-radius: 8px; }
.pwbox { padding: 16px; border-radius: var(--r-sm); }
.toolbar { gap: 12px; margin-bottom: 20px; }
.toolbar input { max-width: 360px; }
.actions { gap: 12px; margin-top: 24px; }
.row.gap { gap: 12px; }
.srv .btnrow { gap: 12px; }

/* Buttons – groß und gut treffbar */
.btn { padding: 11px 22px; border-radius: 12px; gap: 9px; font-size: .96rem; }
.btn .ico { width: 18px; height: 18px; }
.btn.primary { box-shadow: 0 2px 10px color-mix(in srgb, var(--accent) 24%, transparent); }
.btn.primary:hover { box-shadow: 0 4px 16px color-mix(in srgb, var(--accent) 34%, transparent); }
.btn.small { padding: 7px 14px; font-size: .86rem; border-radius: 10px; min-height: 36px; }
.btn.small .ico { width: 15px; height: 15px; }
.btn.small.primary { box-shadow: none; }
.btn.lg { padding: 15px 32px; min-height: 56px; font-size: 1.05rem; border-radius: 14px; }
.btn.lg .ico { width: 20px; height: 20px; }
.iconbtn { width: 42px; height: 42px; border-radius: var(--r-sm); }
.bigact { border-radius: var(--r); padding: 26px; }

/* Tabs */
.tabs { gap: 4px 6px; margin-bottom: 26px; }
.tab { padding: 13px 18px; gap: 9px; font-size: .96rem; }
.tabs.pills { gap: 10px; margin-bottom: 20px; }
.tabs.pills .tab { padding: 10px 18px; }

/* Seitenleiste, Kopfzeile, Menü */
@media (min-width: 901px) { .shell { grid-template-columns: 272px minmax(0, 1fr); } }
.side { padding: 20px 16px; gap: 4px; }
.side-brand { padding: 8px 10px 22px; min-height: 84px; }
.side-group { margin: 24px 0 8px; padding: 0 14px; }
.nav { gap: 12px; padding: 11px 14px; border-radius: var(--r-sm); font-size: .96rem; }
.nav .ico { width: 19px; height: 19px; }
.balance { padding: 9px 16px; border-radius: var(--r-sm); }
.usermenu { padding: 5px 8px; border-radius: var(--r-sm); }
.menu { min-width: 240px; border-radius: var(--r); padding: 8px; }
.menu a, .linkbtn { padding: 11px 12px; gap: 12px; border-radius: 8px; }
.toast { padding: 14px 18px; border-radius: 12px; }
.authlinks { margin-top: 18px; }
.authlinks.center { justify-content: center; margin-top: 10px; }

/* Nur Desktop/Tablet-breit: Werte, die weiter oben für Mobilgeräte eigens kleiner gesetzt sind */
@media (min-width: 901px) {
  .top { height: 68px; padding: 0 32px; gap: 14px; }
  .wrap { padding: 36px clamp(16px, 3.2vw, 56px) 72px; }
}
@media (min-width: 721px) {
  .btn { min-height: 46px; }
  .btn.small { min-height: 36px; }
  .pagehead { margin-bottom: 28px; }
  th, td { padding: 15px 18px; }
  .svhead { padding: 18px 22px; margin-bottom: 20px; }
  .svitem { padding: 8px 14px; }
  .svval { min-height: 30px; }
  .modal { padding: 30px; border-radius: 18px; max-width: 520px; }
  .modal.wide { max-width: 860px; }
  .modal.buy { max-width: 720px; }
  .modal h3 { font-size: 1.15rem; margin-bottom: 16px; }
  .authcard { max-width: 440px; padding: 40px; border-radius: var(--r-lg); box-shadow: var(--shadow); }
  .authcard .btn { min-height: 52px; margin-top: 8px; }
  .tabs.pills .tab { padding: 10px 18px; }
}
@media (max-width: 720px) {
  .btn { min-height: 44px; padding: 10px 18px; }
  .btn.small { min-height: 36px; padding: 6px 12px; }
  .btn.lg { min-height: 54px; padding: 13px 24px; }
  .card { padding: 18px; }
  .tabs.pills .tab { padding: 8px 14px; }
  .wrap { padding-top: 20px; }
}

/* ======================================================================================
   Öffentliche Startseite
   ====================================================================================== */
.lp { min-height: 100vh; background: var(--bg); color: var(--text); overflow-x: clip; font-size: 16px; }
.lp-wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.lp-head { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.lp-head .lp-wrap { display: flex; align-items: center; gap: 16px; height: 80px; }
.lp-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); font-weight: 750; font-size: 1.3rem; letter-spacing: -.01em; min-width: 0; }
.lp-brand:hover { text-decoration: none; }
.lp-brand img { max-height: 48px; max-width: 210px; width: auto; height: auto; object-fit: contain; display: block; }
.lp-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-nav { display: flex; gap: 4px; margin-left: 24px; }
.lp-nav a { padding: 10px 16px; border-radius: 12px; color: var(--muted); font-weight: 600; }
.lp-nav a:hover { color: var(--text); background: rgba(127, 127, 127, .12); text-decoration: none; }
.lp-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lp-actions .langsel { width: auto; min-width: 110px; }

.lp-hero { position: relative; padding: 112px 0 72px; text-align: center; isolation: isolate; }
.lp-hero::before { content: ""; position: absolute; inset: -140px -10% auto; height: 760px; z-index: -1; pointer-events: none;
  background: radial-gradient(55% 60% at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 72%); }
.lp-chip { display: inline-flex; align-items: center; gap: 9px; padding: 9px 18px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 650; font-size: .9rem; margin-bottom: 28px; }
.lp-hero h1 { font-size: clamp(2.4rem, 6.4vw, 4.2rem); line-height: 1.07; letter-spacing: -.035em; font-weight: 800; max-width: 900px; margin: 0 auto; overflow-wrap: anywhere; }
.lp-hero p { margin: 24px auto 0; max-width: 640px; font-size: 1.22rem; color: var(--muted); line-height: 1.6; }
.lp-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 44px; }
.lp-cta .btn { min-width: 220px; }

.lp-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lp-feat { padding: 32px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.lp-feat .ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 22px; }
.lp-feat .ic .ico { width: 28px; height: 28px; }
.lp-feat h3 { font-size: 1.25rem; margin: 0 0 10px; }
.lp-feat p { margin: 0; color: var(--muted); }

.lp-sec { padding: 104px 0 0; scroll-margin-top: 80px; }
.lp-sec-head { text-align: center; max-width: 700px; margin: 0 auto 52px; }
.lp-sec-head h2 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); letter-spacing: -.03em; font-weight: 800; margin: 0 0 14px; line-height: 1.15; }
.lp-sec-head p { margin: 0; color: var(--muted); font-size: 1.12rem; }

.lp-offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 360px)); gap: 28px; justify-content: center; }
.lp-offers > .muted { grid-column: 1 / -1; text-align: center; }
.lp-offer { margin: 0; padding: 34px; display: flex; flex-direction: column; gap: 22px; border-radius: var(--r-lg); }
.lp-offer h3 { font-size: 1.5rem; margin: 0; letter-spacing: -.015em; }
.lp-offer-head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.lp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-offer .desc { margin: 0; color: var(--muted); white-space: pre-line; }
.lp-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; color: var(--muted); }
.lp-price strong { font-size: 2.6rem; letter-spacing: -.035em; line-height: 1; font-weight: 800; color: var(--text); }
.lp-list { list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.lp-list li { display: flex; align-items: center; gap: 14px; }
.lp-list .ico { color: var(--accent); width: 22px; height: 22px; }
.lp-offer > .btn { margin-top: auto; width: 100%; }

.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lp-step { padding: 32px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.lp-step .n { width: 48px; height: 48px; border-radius: 14px; background: var(--accent); color: var(--on-accent, #fff); display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; margin-bottom: 20px; }
.lp-step h3 { font-size: 1.2rem; margin: 0 0 8px; }
.lp-step p { margin: 0; color: var(--muted); }

.lp-faq { max-width: 840px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.lp-faq details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 0 26px; }
.lp-faq details[open] { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.lp-faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; font-weight: 650; font-size: 1.06rem; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; font-size: 1.7rem; line-height: 1; font-weight: 400; color: var(--accent); transition: transform .32s cubic-bezier(.4, 0, .2, 1); flex: none; }
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.lp-faq details .faq-body { overflow: hidden; }
.lp-faq details p { margin: 0 0 24px; color: var(--muted); }
.lp-faq details.closing summary::after { transform: none; }

.lp-band { margin-top: 104px; padding: 72px 32px; border-radius: 28px; text-align: center; color: var(--on-accent, #fff);
  background: linear-gradient(135deg, var(--accent), var(--accent-h)); box-shadow: var(--shadow); }
.lp-band h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); letter-spacing: -.03em; font-weight: 800; margin: 0 0 12px; color: inherit; }
.lp-band p { margin: 0 0 32px; font-size: 1.12rem; opacity: .92; }
.btn.lp-inv { background: #fff; border-color: #fff; color: #1b1c1a; min-width: 220px; }
.btn.lp-inv:hover { background: #f1f0ec; border-color: #f1f0ec; }

.lp-foot { margin-top: 104px; border-top: 1px solid var(--line); background: var(--side); padding: 60px 0 30px; }
.lp-foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 40px; }
.lp-foot-grid.four { grid-template-columns: 1.7fr 1fr 1fr 1fr; }
.lp-foot .lp-brand { font-size: 1.2rem; }
.lp-foot-text { margin: 14px 0 0; max-width: 340px; }
.lp-foot h4 { margin: 0 0 16px; font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.lp-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.lp-foot ul a { color: var(--text); font-weight: 500; }
.lp-foot ul a:hover { color: var(--accent); }
.lp-copy { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }

@media (max-width: 900px) {
  .lp-nav { display: none; }
  .lp-feats, .lp-steps { grid-template-columns: 1fr; }
  .lp-foot-grid, .lp-foot-grid.four { grid-template-columns: 1fr; gap: 32px; }
  .lp-hero { padding: 80px 0 56px; }
  .lp-sec { padding-top: 80px; }
  .lp-band { margin-top: 80px; padding: 56px 24px; }
  .lp-foot { margin-top: 80px; }
}
@media (max-width: 600px) {
  .lp-wrap { width: calc(100% - 32px); }
  .lp-head .lp-wrap { height: 68px; gap: 10px; }
  .lp-brand img { max-height: 38px; max-width: 150px; }
  .lp-reg, .lp-actions .langsel { display: none; }
  .lp-hero { padding: 56px 0 44px; }
  .lp-hero p { font-size: 1.08rem; }
  .lp-cta .btn { min-width: 0; width: 100%; }
  .lp-offers { grid-template-columns: 1fr; }
  .lp-offer, .lp-feat, .lp-step { padding: 26px; }
  .lp-faq details { padding: 0 20px; }
  .btn.lp-inv { width: 100%; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .lp-faq summary::after { transition: none; } }

/* Beschreibungstexte in Angebotskacheln: normaler Text statt Konsolen-Block */
.offer p.pre { background: none; color: var(--muted); border: 0; padding: 0; font-family: inherit; font-size: inherit; white-space: pre-line; word-break: normal; overflow: visible; }

/* Ausgegraut (z. B. Startseiten-Option bei deaktivierter Startseite) */
.field.dim { opacity: .55; }
.field.dim .check { cursor: not-allowed; }

/* Einstellungen nutzen die volle Breite: Felder laufen in Spalten, Hinweise/Überschriften/Textfelder gehen über die ganze Zeile */
.card.settings { max-width: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); column-gap: 32px; align-items: start; }
.card.settings > :not(.field) { grid-column: 1 / -1; }
.card.settings > .field.wide { grid-column: 1 / -1; }
.card.settings > .field.wide textarea { min-height: 120px; }
.card.settings > .row { margin-top: 6px; }
.mntgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; margin-bottom: 20px; }
.mntgrid > .card { margin: 0; }
.mntcard { display: flex; flex-direction: column; }
.mnthead h3 { margin: 0; font-size: 1.2rem; }
.mntcard textarea { min-height: 140px; }
@media (max-width: 1000px) { .mntgrid { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .card.settings { grid-template-columns: minmax(0, 1fr); } }
.mntcard .field > .btn { align-self: flex-start; }

/* Guthaben-Anzeige in der Kopfzeile: ruhiger, mit Icon-Kachel und kleinem Label */
.balance { gap: 12px; padding: 5px 16px 5px 6px; border-radius: 999px; font-weight: 400; box-shadow: none; }
.balance:hover { border-color: var(--accent); }
.bal-ico { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); flex: none; }
.bal-txt { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.bal-lbl { font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.bal-val { font-size: .95rem; font-weight: 500; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .balance { padding: 3px 12px 3px 4px; gap: 8px; } .bal-ico { width: 28px; height: 28px; } .bal-lbl { display: none; } }

/* Kontostand: ruhiger statt „extrem fett“ – leichtere Schrift, Währung klein daneben, kein großer Leerraum */
.bal { justify-content: flex-start; gap: 22px; }
.bignum { font-size: 2.7rem; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 8px; }
.bigcur { font-size: 1.15rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.balstats { margin-top: auto; }
.balstat strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.amtchips .btn { font-weight: 500; }
.bignum { font-size: 2.5rem; font-weight: 500; }
.balstat strong { font-weight: 500; }

/* ======================================================================================
   Server verwalten: kompakter – Pillen-Menü, Abstände und Dateien (die großen Abstände des
   allgemeinen Designs gelten hier bewusst nicht)
   ====================================================================================== */
.svtabs.tabs.pills { gap: 5px; margin-bottom: 10px; }
.svtabs.tabs.pills .tab { padding: 5px 12px; gap: 6px; font-size: .88rem; }
.svtabs.tabs.pills .tab .ico { width: 15px; height: 15px; }
.tabbody .row.gap { gap: 6px; }
.tabbody .btn { min-height: 38px; padding: 7px 15px; border-radius: 10px; font-size: .9rem; }
.tabbody .btn.small { min-height: 30px; padding: 4px 11px; border-radius: 8px; font-size: .82rem; gap: 6px; }
.tabbody .btn.small .ico { width: 14px; height: 14px; }
.tabbody .menu { padding: 4px; min-width: 190px; border-radius: 10px; }
.tabbody .menu a, .tabbody .linkbtn { padding: 7px 10px; gap: 9px; border-radius: 6px; font-size: .9rem; }
.tabbody .row.gap.wrap { margin-bottom: 10px; row-gap: 6px; }
.tabbody .tablewrap { border-radius: 10px; box-shadow: none; }
.tabbody th, .tabbody td { padding: 6px 12px; }
.tabbody th { padding-top: 8px; padding-bottom: 8px; }
.tabbody td .row.gap { gap: 5px; flex-wrap: wrap; }
.tabbody .card { padding: 16px; margin-bottom: 12px; }
@media (max-width: 720px) {
  .svtabs.tabs.pills { gap: 4px; }
  .svtabs.tabs.pills .tab { padding: 5px 10px; }
  .tabbody .btn.small { min-height: 32px; }
  .tabbody tbody tr { padding: 4px 12px; margin-bottom: 8px; }
  .tabbody td { padding: 6px 0; }
}

/* Fix: „.wrap“ ist die Seitenhülle (Innenabstand 36px/72px) – Zeilen mit den Klassen „row … wrap“ (Umbruch) bekamen
   dadurch riesige Abstände, z. B. über dem Datei-Explorer und in der Benutzer-Liste. */
.row.wrap { max-width: none; width: auto; padding: 0; }
.tabbody > .row.wrap { margin-bottom: 10px; }
.tabbody > .row.wrap:has(+ .tablewrap), .tabbody > .row.wrap:has(+ div > .tablewrap) { margin-bottom: 8px; }
.tabbody .crumbs { line-height: 1.3; }

/* Benutzer-Liste & Rechte: engere Zeilen für mehr Übersicht */
.tabbody th, .tabbody td { padding: 4px 12px; }
.tabbody th { padding-top: 6px; padding-bottom: 6px; }
.tabbody td .switch { transform: scale(.85); transform-origin: left center; }
.permgrid { gap: 8px; margin-top: 8px; }
.permhead { padding: 6px 10px; }
.permitems { padding: 4px 10px 6px; }
.permitem { margin: 0; }
.permitem .check, .permitems .check { margin: 1px 0; }

/* Einstellungen → Rechnungsdaten: breite Karte, Felder nebeneinander (statt schmaler, langer Spalte) */
.cols > .card.billcard { max-width: 960px; }
.billcard .addrgrid { grid-template-columns: repeat(12, 1fr); column-gap: 16px; }
.billcard .addrgrid > :nth-child(1), .billcard .addrgrid > :nth-child(2) { grid-column: span 6; }
.billcard .addrgrid > :nth-child(3) { grid-column: 1 / -1; }
.billcard .addrgrid > :nth-child(4) { grid-column: span 3; }
.billcard .addrgrid > :nth-child(5) { grid-column: span 5; }
.billcard .addrgrid > :nth-child(6) { grid-column: span 4; }
@media (max-width: 720px) {
  .billcard .addrgrid { grid-template-columns: 1fr 1fr; }
  .billcard .addrgrid > :nth-child(n) { grid-column: auto; }
  .billcard .addrgrid > :nth-child(3), .billcard .addrgrid > :nth-child(6) { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .billcard .addrgrid { grid-template-columns: 1fr; } .billcard .addrgrid > :nth-child(n) { grid-column: 1 / -1; } }

/* ---------- Fehlerseite 404 ---------- */
.nf-code { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: clamp(4rem, 16vw, 6.5rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--accent); margin-bottom: 14px; }
.nf-code i { width: .62em; height: .62em; border-radius: 50%; border: .13em solid var(--accent); position: relative; animation: nf-bob 2.6s ease-in-out infinite; }
.nf-code i::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: var(--accent); opacity: .35; animation: mnt-pulse 1.8s ease-out infinite; }
@keyframes nf-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.nf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.nf-game { display: inline-flex; align-items: center; gap: 7px; margin: 22px auto 0; color: var(--muted); font-size: .88rem; }
.nf-game:hover { color: var(--accent); }
.nf-card { text-align: center; max-width: 560px; margin: 40px auto; padding: clamp(28px, 5vw, 48px) clamp(20px, 5vw, 44px); }
.nf-card .mnt-msg { margin-left: auto; margin-right: auto; }
@media (prefers-reduced-motion: reduce) { .nf-code i, .nf-code i::after { animation: none; } }

/* ---------- Mobil: Korrekturen nach dem Desktop-Block (müssen am Ende stehen) ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { padding: 16px 12px; }
  .side-brand { padding: 8px 10px 14px; min-height: 64px; }
  .side-group { margin: 18px 0 6px; }
  .nav { padding: 11px 12px; }
}
@media (max-width: 720px) {
  h1 { font-size: 1.3rem; }
  .toolbar input { max-width: none; }
  .card { padding: 16px; margin-bottom: 14px; }
  .cols, .grid2, .grid3, .grid4, .grid5 { gap: 14px; }
}

/* ======================================================================================
   Responsive-Korrekturen (Startseite, Kopfzeile, Tags)
   ====================================================================================== */

/* Tags (z. B. „Bis 10.11.2026, 17:53 (29 Tg.)“) brechen nicht mehr in eine runde Blase um */
.tag { white-space: nowrap; }

/* Startseite: Navigationspunkte nie umbrechen, bei knapper Breite früher ausblenden */
.lp-nav { flex: none; }
.lp-nav a { white-space: nowrap; }
.lp-actions .btn, .lp-actions .iconbtn { flex: none; white-space: nowrap; }
@media (max-width: 1080px) {
  .lp-nav { display: none; }
}
@media (max-width: 1180px) and (min-width: 1081px) {
  .lp-nav { margin-left: 8px; }
  .lp-nav a { padding: 10px 12px; }
}

/* Startseite: Buttons im Hero und im Banner sauber untereinander, volle Breite, zentrierter Text */
.lp .btn { text-align: center; justify-content: center; }
@media (max-width: 720px) {
  .lp-cta { flex-direction: column; align-items: stretch; max-width: 420px; margin-inline: auto; gap: 12px; }
  .lp-cta .btn, .btn.lp-inv { width: 100%; min-width: 0; }
  .lp-actions { gap: 6px; }
  .lp-actions .btn { padding-inline: 14px; }
}

/* Mobil: Hamburger-Menü und Hell/Dunkel-Schalter ohne Rahmen */
@media (max-width: 900px) {
  .top .iconbtn, .lp-actions .iconbtn, .mnt-top .iconbtn, .auththeme .iconbtn { border-color: transparent; background: transparent; box-shadow: none; }
  .top .iconbtn:hover, .lp-actions .iconbtn:hover, .mnt-top .iconbtn:hover, .auththeme .iconbtn:hover { border-color: transparent; background: rgba(127, 127, 127, .12); color: var(--accent); }
  .top .iconbtn, .lp-actions .iconbtn { width: 40px; height: 40px; }

  /* Kopfzeile: Logo und Guthaben werden nicht mehr zusammengequetscht */
  .top { gap: 4px; min-width: 0; }
  .top > .spacer { display: none; }
  .top .burger, .top .userwrap, .top .iconbtn { flex: none; }
  .top-brand { flex: 1 1 0; min-width: 0; margin-left: 2px; overflow: hidden; }
  .top-brand img { max-width: 100%; max-height: 32px; }
  .balance { flex: none; margin-left: auto; white-space: nowrap; }
  .bal-txt, .bal-val { white-space: nowrap; }
}
@media (max-width: 420px) {
  .top { padding: 0 6px; }
  .balance { padding: 3px 10px 3px 4px; gap: 6px; }
  .bal-val { font-size: .88rem; }
  .top .iconbtn, .top .burger { width: 36px; height: 36px; }
  .usermenu { padding: 3px; }
}
@media (max-width: 340px) {
  .bal-ico { display: none; }
  .balance { padding: 4px 10px; }
}

/* Wartung (Admin-Einstellungen): nichts darf auf schmalen Bildschirmen die Seite verbreitern */
.mntcard, .mntgrid > .card, .card.settings > .field { min-width: 0; }
.card.settings .field small, .mntcard .field small { overflow-wrap: anywhere; }
.card.settings .check, .mntcard .check { align-items: flex-start; }
.card.settings .check input, .mntcard .check input { flex: none; margin-top: 3px; }
@media (max-width: 520px) {
  .mntgrid { gap: 14px; }
  .mnthead { flex-wrap: wrap; }
}

/* Admin → Startseite: Felder ausgegraut, solange die Startseite deaktiviert ist; FAQ-Editor */
.lpset { display: grid; gap: 20px; margin-top: 20px; transition: opacity .2s; }
.lpset.off { opacity: .5; }
.lpset.off * { cursor: not-allowed; }
.lpset > .card { margin: 0; }
.lp-faqed { display: grid; gap: 14px; }
.lp-faqrow { display: grid; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.lp-faqrow textarea { min-height: 90px; }

.cron-preview { margin: 2px 0 10px; }

/* Shop: Kategorie-Filter */
.catbar { margin: -4px 0 16px; }
.catfilter .chip { white-space: nowrap; }
.toolbar select { max-width: 240px; }

/* Ticket erstellen: volle Breite */
.card.ticketform { max-width: none; }
.ticketform .tf-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); column-gap: 24px; }
.ticketform .field textarea { width: 100%; min-height: 280px; resize: vertical; }
.ticketform .row[hidden] { display: none; }

/* Angehängtes Konsolen-Log im Ticket-Chat */
.logbox { margin-top: 8px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.logbox > summary { cursor: pointer; padding: 6px 10px; display: flex; align-items: center; gap: 6px; font-size: .85rem; user-select: none; background: rgba(127, 127, 127, .09); }
.logbox > summary::-webkit-details-marker { display: none; }
.logbox[open] > summary { border-bottom: 1px solid var(--line); }
.console.ticketlog { height: auto; max-height: 360px; margin: 0; border-radius: 0; overflow: auto; white-space: pre; }

/* Im Shop ausgeblendete Vorlagen (Admin-Ansicht): leicht ausgegraut, aber voll bedienbar */
.card.offer.hiddentpl { opacity: .62; filter: grayscale(.45); transition: opacity .15s, filter .15s; }
.card.offer.hiddentpl:hover, .card.offer.hiddentpl:focus-within { opacity: .9; filter: none; }

/* Inline-Notiz (Netzwerk-Ports) */
.notecell { min-width: 180px; }
.noteview { all: unset; box-sizing: border-box; display: block; width: 100%; min-height: 32px; padding: 6px 10px; border-radius: 6px; border: 1px dashed transparent; cursor: text; overflow-wrap: anywhere; }
.noteview:hover, .noteview:focus-visible { border-color: var(--line); background: color-mix(in srgb, var(--text) 5%, transparent); }
.noteview.empty { color: var(--muted); font-style: italic; }
.noteinput { width: 100%; min-width: 180px; }

/* Datei-Explorer: Drag & Drop Upload */
.tabbody.dropbox { position: relative; min-height: 220px; }
.dropveil { position: absolute; inset: -6px; z-index: 30; display: flex; align-items: center; justify-content: center; border: 2px dashed var(--accent); border-radius: 12px; background: color-mix(in srgb, var(--panel) 88%, var(--accent) 12%); backdrop-filter: blur(2px); }
.dropveil[hidden] { display: none; }
.dropveil-in { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--accent-ink); pointer-events: none; text-align: center; padding: 1rem; }
.dropveil-in strong { font-size: 1.1rem; color: var(--text); }

/* ---------- Suchleiste mit Filter-Dropdown (filterBar) ---------- */
.fbar { position: relative; margin-bottom: 16px; }
.fsearch { position: relative; max-width: 560px; }
.fsearch input { width: 100%; padding-right: 52px; }
.fsearch input::-webkit-search-cancel-button { display: none; }
.fbtn { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; background: transparent; color: var(--muted);
  border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.fbtn:hover, .fbtn.open { background: rgba(127, 127, 127, .18); color: var(--text); }
.fbtn.on { color: var(--accent-ink); }
.fbtn .ico { width: 18px; height: 18px; }
.fcount { position: absolute; top: -2px; right: -2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: #fff;
  font-size: .68rem; font-weight: 700; line-height: 16px; text-align: center; }
.fpanel { position: absolute; z-index: 40; left: 0; top: 50px; width: min(640px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 16px 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .22); }
.fp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.fp-foot { justify-content: flex-end; }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.fchips:empty { display: none; }
.fchip { display: inline-flex; align-items: center; gap: 4px; font: inherit; font-size: .82rem; padding: 3px 7px 3px 11px; border: 1px solid var(--accent);
  background: var(--accent-soft); color: var(--accent-ink); border-radius: 999px; cursor: pointer; }
.fchip .muted { color: inherit; opacity: .75; }
.fchip:hover { background: var(--accent); color: #fff; }
@media (max-width: 560px) { .fp-grid { grid-template-columns: 1fr; } .fpanel { position: static; margin-top: 8px; } }

/* Tabs → Dropdown auf Mobilgeräten */
.tabs-mob { display: none; margin-bottom: 14px; }
.tabs-mob .tabs-select { width: 100%; padding: 10px 12px; font-size: 1rem; font-weight: 600; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); }
@media (max-width: 720px) {
  .tabs-desk { display: none !important; }
  .tabs-mob { display: block; }
}

/* Fehler-Fenster & Fehlercode-Katalog */
.errbox .errmsg { white-space: pre-line; margin-bottom: 14px; }
.errcode { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-left: 3px solid #ef6a6a; border-radius: 6px; margin-bottom: 10px; }
.errcode code { font-size: 1.05rem; font-weight: 600; letter-spacing: .03em; }
.errtable code { white-space: nowrap; }

/* Teamseite, Jobs, Bewerbungen */
.lp-team { display: flex; flex-direction: column; gap: 48px; }
.lp-team-cat { text-align: center; font-size: 1.4rem; margin: 0 0 22px; }
.lp-team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.lp-team-grid .lp-member { flex: 0 1 300px; width: 300px; max-width: 100%; }
.teamed-cats { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.teamed-cats .row { width: 100%; }
.teamed-cats .row input { flex: 1; min-width: 0; }
.lp-member { --tc: var(--accent); position: relative; text-align: center; padding: 34px 26px 28px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.lp-member::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--tc); }
.lp-member::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(70% 40% at 50% 0%, color-mix(in srgb, var(--tc) 16%, transparent), transparent 75%); }
.lp-member > * { position: relative; z-index: 1; }
.lp-member-pic { width: 116px; height: 116px; margin: 0 auto 18px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: color-mix(in srgb, var(--tc) 18%, var(--panel)); color: var(--tc); font-size: 2.6rem; font-weight: 800; border: 3px solid var(--tc); }
.lp-member-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-member-pic.sm { --tc: var(--accent); width: 56px; height: 56px; font-size: 1.4rem; border-width: 2px; margin: 0; flex: none; }
.lp-member h3 { margin: 0; font-size: 1.3rem; overflow-wrap: anywhere; }
.lp-member-role { display: inline-block; margin-top: 8px; padding: 4px 14px; border-radius: 999px; font-size: .82rem; font-weight: 700; color: var(--tc); background: color-mix(in srgb, var(--tc) 14%, transparent); }
.lp-member-desc { margin: 16px 0 0; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.lp-member-soc { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.lp-member-soc a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); color: var(--muted); }
.lp-member-soc a:hover { border-color: var(--tc); color: var(--tc); text-decoration: none; }
.lp-jobs { max-width: 840px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.lp-jobs-desc { white-space: pre-line; overflow-wrap: anywhere; line-height: 1.65; }
.lp-jobs-box h3 { margin-top: 0; }
.lp-jobs-form { display: flex; flex-direction: column; gap: 14px; }
.teamed { display: flex; flex-direction: column; gap: 16px; margin-bottom: 18px; }
.teamed-card { display: flex; flex-direction: column; gap: 12px; }
.teamed-soc { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.teamed-soc .row { width: 100%; }
.teamed-soc .row { flex-wrap: nowrap; align-items: center; }
.teamed-soc .row select { flex: 0 0 160px; width: 160px; min-width: 0; }
.teamed-soc .row input { flex: 1 1 auto; width: auto; min-width: 0; }
.teamed-soc .row .btn { flex: none; }
@media (max-width: 560px) { .teamed-soc .row { flex-wrap: wrap; } .teamed-soc .row select { flex: 1 1 100%; width: 100%; } }
.appview { display: flex; flex-direction: column; gap: 12px; }
.appq { padding: 10px 14px; border-radius: var(--r); background: rgba(127, 127, 127, .08); }
.appa { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 2px; }
.lp-member-pic img.fallback { object-fit: contain; padding: 18%; }

/* Teamkacheln im Querformat: Bild links, Text rechts */
.lp-team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); justify-content: stretch; gap: 24px; }
.lp-team-grid .lp-member { flex: none; width: auto; max-width: none; display: flex; align-items: flex-start; gap: 28px; text-align: left; padding: 30px 30px 30px 34px; }
.lp-team-grid .lp-member::before { inset: 0 auto 0 0; width: 6px; height: auto; }
.lp-team-grid .lp-member-pic { flex: none; width: 128px; height: 128px; margin: 0; }
.lp-member-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.lp-member-body .lp-member-desc { margin-top: 14px; }
.lp-team-grid .lp-member-soc { justify-content: flex-start; margin-top: auto; padding-top: 18px; }
@media (max-width: 560px) {
  .lp-team-grid .lp-member { flex-direction: column; align-items: center; text-align: center; padding: 30px 22px 26px; }
  .lp-team-grid .lp-member::before { inset: 0 0 auto; width: auto; height: 6px; }
  .lp-member-body { align-items: center; }
  .lp-team-grid .lp-member-soc { justify-content: center; }
}
.lp-sec.lp-sub { padding-top: 40px; }
.lp-sub > .lp-wrap > .btn:first-child { margin-bottom: 28px; }
@media (max-width: 900px) { .lp-sec.lp-sub { padding-top: 24px; } .lp-sub .lp-sec-head { margin-bottom: 32px; } }

/* Stellenliste (Jobs-Seite) und Stellen-Editor */
.lp-jobs-intro { white-space: pre-line; }
.lp-positions { display: flex; flex-direction: column; gap: 14px; }
.lp-pos { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.lp-pos > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 20px 24px; font-weight: 700; font-size: 1.1rem; }
.lp-pos > summary::-webkit-details-marker { display: none; }
.lp-pos-title { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.lp-pos > summary .ico { transition: transform .2s; color: var(--muted); }
.lp-pos[open] > summary .ico { transform: rotate(180deg); }
.lp-pos-body { padding: 0 24px 24px; display: flex; flex-direction: column; gap: 18px; }
.lp-pos-apply h4 { margin: 0 0 6px; }
.posed > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; }
.posed > summary::-webkit-details-marker { display: none; }
.posed > summary strong { flex: 1; min-width: 0; }
.posed > summary .ico { transition: transform .2s; color: var(--muted); }
.posed[open] > summary .ico { transform: rotate(180deg); }
.posed-body { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.appnew { display: flex; flex-direction: column; gap: 16px; margin-top: 14px; }

/* Einklappbare Gruppen in der Seitenleiste */
.fold-head { width: 100%; background: none; border: 0; cursor: pointer; font: inherit; text-align: left; }
.fold-head > .ico:last-child { margin-left: auto; transition: transform .2s; opacity: .7; }
.fold-head.closed > .ico:last-child { transform: rotate(-90deg); }
.fold-head.has-on { color: var(--accent); }
.fold-body { margin-left: 12px; padding-left: 6px; border-left: 1px solid var(--line); }
.fold-body[hidden] { display: none; }
.multisel { display: flex; flex-direction: column; gap: 8px; padding: 4px 0; }

/* Bewerbung Schritt für Schritt */
.stepper { gap: 16px; }
.stp-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: .92rem; }
.stp-pct { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.stp-bar { height: 10px; border-radius: 999px; background: rgba(127, 127, 127, .18); overflow: hidden; }
.stp-bar > i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--accent); transition: width .55s cubic-bezier(.22, 1, .36, 1); }
.stp-q { min-height: 90px; }
.stp-q.in { animation: stp-in .35s ease both; }
.stp-title { font-size: 1.12rem; margin-bottom: 8px; }
.stp-nav { display: flex; align-items: center; gap: 10px; }
@keyframes stp-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .stp-bar > i { transition: none; } .stp-q.in { animation: none; } }
.apply-card { max-width: none; width: 100%; margin-top: 16px; padding: clamp(20px, 3vw, 40px); }

/* Bewerbungsseite: Platz nutzen */
.apply-card .stepper { gap: 22px; }
.apply-card .stp-bar { height: 12px; }
.apply-card .stp-head { font-size: 1rem; }
.apply-card .stp-q { min-height: 260px; }
.apply-card .stp-title { font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.3; margin-bottom: 14px; }
.apply-card .stp-q input[type=text], .apply-card .stp-q select { font-size: 1.1rem; padding: 14px 16px; width: 100%; }
.apply-card .stp-q textarea { font-size: 1.05rem; padding: 14px 16px; min-height: 260px; width: 100%; resize: vertical; }
.apply-card .stp-q .multisel { gap: 12px; }
.apply-card .stp-q .check { font-size: 1.1rem; }
.apply-card .stp-q small { font-size: .92rem; margin-top: 8px; display: block; }
.apply-card .stp-nav .btn { min-width: 150px; padding-block: 12px; }

/* Button mit Dropdown (öffnet nach oben, da am Seitenende) */
.dropbtn { position: relative; display: inline-block; }
.dropmenu { position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 30; min-width: 260px; padding: 6px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; }
.dropmenu[hidden] { display: none; }
.dropmenu a, .dropmenu .linkbtn { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 6px; color: var(--text); text-align: left; width: 100%; background: none; border: 0; cursor: pointer; font: inherit; }
.dropmenu a:hover, .dropmenu .linkbtn:hover { background: rgba(127, 127, 127, .14); text-decoration: none; }
