/* INREMA Kundenportal — nur portal-spezifische Ergaenzungen.
   Design-Fundament kommt 1:1 aus tokens.css / main.css / assistant.css.
   Ausschliesslich var(--*), keine Hex-Werte. */

/* Portal-eigene Tokens (was das Fundament nicht liefert) */
:root{ --star:#f5b301;      /* Google-Sterne-Gold */
       --ok:#2e9e5b; --ok-deep:#1f7d45;   /* Status "beantwortet" / online */
       --warn-deep:#8a6100;               /* Status "in Arbeit" (zu --star) */
       --down:#d1465a; }                  /* Ausfall / gestoert */

/* INREMA-Grundsatz: Links werden NIE unterstrichen (auch nicht Buttons-als-Links). */
a{ text-decoration:none; }
.brand--link{ text-decoration:none; cursor:pointer; }
.brand--link:hover{ opacity:.9; }

/* ===== Login / Auth ===== */
.auth-body{
  margin:0; min-height:100dvh; background:var(--bg); color:var(--text);
  font-family:var(--font);
  display:flex; align-items:center; justify-content:center;
  padding:24px max(16px, env(safe-area-inset-left)) calc(24px + env(safe-area-inset-bottom));
}
.auth-wrap{ width:100%; max-width:412px; display:flex; flex-direction:column; align-items:stretch; gap:14px; }
.auth-card{
  background:var(--card); border:1px solid var(--border); border-radius:var(--radius-card);
  box-shadow:var(--shadow); padding:30px 28px 26px;
}
.auth-brand{ display:flex; align-items:center; gap:12px; margin-bottom:22px; }
.auth-brand img{ width:38px; height:38px; object-fit:contain; border-radius:8px; flex:none; }
.auth-brand__name{ font-size:16px; font-weight:700; letter-spacing:.02em; color:var(--text); line-height:1.1; }
.auth-brand__sub{ font-size:11px; font-weight:600; letter-spacing:.14em; color:var(--muted); }
.auth-title{ font-size:20px; font-weight:700; color:var(--text); margin:0 0 6px; }
.auth-lead{ font-size:13px; line-height:1.55; color:var(--muted); margin:0 0 18px; }

.auth-form{ display:flex; flex-direction:column; }
.auth-label{ font-size:12.5px; font-weight:600; color:var(--text); margin:12px 0 6px; }
.auth-input{
  width:100%; box-sizing:border-box; font-family:var(--font); font-size:14px; color:var(--text);
  background:var(--bg); border:1px solid var(--border); border-radius:var(--radius-sm);
  padding:11px 12px; outline:none; transition:border-color .15s, box-shadow .15s;
}
.auth-input:focus{ border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft); }
.auth-submit{ width:100%; margin-top:20px; justify-content:center; }

.auth-msg{ font-size:12.5px; line-height:1.5; border-radius:var(--radius-sm); padding:10px 12px; margin:0 0 4px; border:1px solid transparent; }
.auth-msg--err{ background:var(--status-down-bg); border-color:var(--status-down-border); color:var(--red-text); }
.auth-msg--ok{ background:var(--status-ok-bg); border-color:var(--status-ok-border); color:var(--green-text); }

.auth-hint{ font-size:11.5px; line-height:1.5; color:var(--faint); margin:14px 0 0; }

/* Passwort-Ampel (Registrierung) */
.pwm{ margin:6px 0 2px; }
.pwm__bar{ height:6px; border-radius:4px; background:var(--border-soft,#e3e8ef); overflow:hidden; }
.pwm__bar span{ display:block; height:100%; width:0; border-radius:4px; background:#d64545;
  transition:width .2s ease, background .2s ease; }
.pwm__txt{ font-size:12px; font-weight:600; margin-top:5px; }
.pwm__match{ font-size:12px; font-weight:600; margin:6px 0 2px; }
.auth-links{ margin-top:16px; text-align:center; }
.auth-links a{ font-size:12.5px; color:var(--accent); text-decoration:none; }
.auth-links a:hover{ opacity:.82; }
.auth-foot{ text-align:center; font-size:11px; color:var(--faint); }

/* ===== Sidebar: „bald"-Module (ausgegraut, nicht klickbar) ===== */
.nav-item.is-soon{ opacity:.5; cursor:default; }
.nav-soon{
  margin-left:auto; flex:0 0 auto; font-size:10px; font-weight:700; letter-spacing:.04em;
  text-transform:uppercase; color:var(--sidebar-muted);
  border:1px solid var(--sidebar-muted); border-radius:var(--radius-pill); padding:1px 7px;
}

/* ===== Modul-Kacheln (eingeloggter Modus) ===== */
.modgrid{
  display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr));
  gap:14px; margin-top:var(--gap-section);
}
.modtile{
  position:relative; display:flex; flex-direction:column; gap:8px;
  background:var(--card); border:1px solid var(--border); border-radius:var(--radius-card);
  box-shadow:var(--shadow); padding:18px; text-decoration:none; color:var(--text);
  transition:border-color .15s, transform .15s, box-shadow .15s;
}
a.modtile:hover{ border-color:var(--accent); transform:translateY(-1px); }
.modtile__ico{ display:inline-flex; width:38px; height:38px; align-items:center; justify-content:center;
  border-radius:10px; background:var(--accent-soft); color:var(--accent); }
.modtile__ico svg{ width:20px; height:20px; }
.modtile__name{ font-size:15px; font-weight:700; }
.modtile__desc{ font-size:12.5px; line-height:1.5; color:var(--muted); }
.modtile--locked{ opacity:.72; }
.modtile--locked .modtile__ico{ background:var(--tint); color:var(--faint); }
.modtile__lock{ display:inline-flex; align-items:center; gap:6px; margin-top:4px;
  font-size:12px; font-weight:600; color:var(--accent); }
.modtile__lock svg{ width:15px; height:15px; }

/* ===== Statistik-Modul ===== */
.statgrid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(150px,1fr));
  gap:12px; margin-top:var(--gap-section); }
.statcard{ background:var(--card); border:1px solid var(--border); border-radius:var(--radius-card);
  box-shadow:var(--shadow); padding:16px 18px; }
.statcard__num{ font-size:26px; font-weight:700; color:var(--text); line-height:1.1; }
.statcard__label{ font-size:12px; color:var(--muted); margin-top:4px; }

.chartcard{ margin-top:var(--gap-section); padding:18px; }
.chartcard__head{ font-size:13.5px; font-weight:700; color:var(--text); margin-bottom:14px; }
.chart{ display:flex; align-items:flex-end; gap:3px; height:140px; }
.chart__col{ flex:1 1 0; display:flex; align-items:flex-end; height:100%; min-width:2px; }
.chart__bar{ width:100%; background:var(--accent); border-radius:3px 3px 0 0; opacity:.85;
  transition:opacity .15s; }
.chart__col:hover .chart__bar{ opacity:1; }

.stat2col{ display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:var(--gap-section); }
.stat2col>.card{ min-width:0; }
@media (max-width:860px){ .stat2col{ grid-template-columns:1fr; } }
.strow{ display:flex; align-items:center; gap:12px; padding:9px 0; border-top:1px solid var(--border-soft); }
.strow:first-of-type{ border-top:none; }
.strow__l{ flex:1; min-width:0; font-size:13px; color:var(--text);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.strow__r{ flex:none; font-size:13px; font-weight:600; color:var(--muted); }
.strow__link{ color:var(--text); text-decoration:none; }
.strow__link:hover{ color:var(--accent); }

/* Google Bewertungen */
.gmw-hero{ margin-top:var(--gap-section); display:flex; align-items:center; justify-content:space-between;
  gap:20px; flex-wrap:wrap; }
.gmw-score{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.gmw-score__num{ font-size:44px; font-weight:700; color:var(--text); line-height:1; }
.gmw-stars{ display:inline-flex; gap:3px; }
.gmw-star{ width:26px; height:26px; fill:var(--border); }
.gmw-star.is-on{ fill:var(--star); }
.gmw-star.is-half{ fill:url(#gmwh); color:var(--star); }
.gmw-count{ font-size:14px; font-weight:600; color:var(--muted); }
.gmw-link{ text-decoration:none; }
@media (max-width:520px){ .gmw-hero{ flex-direction:column; align-items:flex-start; }
  .gmw-link{ width:100%; text-align:center; } }
.gmw-since{ font-size:12.5px; color:var(--muted); line-height:1.5; margin:12px 0 0; }
.gmw-since a{ color:var(--accent); font-weight:600; }
.gmw-reviews{ margin-top:14px; }
.grev{ padding:14px 0; border-top:1px solid var(--border-soft); }
.grev:first-of-type{ border-top:none; }
.grev__top{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.grev__author{ font-size:13.5px; font-weight:700; color:var(--text); }
.grev__stars{ color:var(--star); font-size:13px; letter-spacing:1px; }
.grev__stars .grev__off{ color:var(--border); }
.grev__when{ font-size:11.5px; color:var(--faint); margin-left:auto; }
.grev__text{ font-size:13.5px; line-height:1.6; color:var(--muted); margin:7px 0 0; white-space:pre-line; }
.gmw-promo{ margin-top:14px; display:flex; align-items:center; justify-content:space-between;
  gap:20px; flex-wrap:wrap; }
.gmw-promo__title{ font-size:15px; font-weight:700; color:var(--text); }
.gmw-promo__desc{ font-size:13px; color:var(--muted); line-height:1.55; margin:6px 0 0; max-width:60ch; }
.gmw-promo__sell{ font-size:13px; color:var(--muted); line-height:1.55; margin:8px 0 0; max-width:60ch; }
.gmw-promo__sell a{ color:var(--accent); font-weight:600; text-decoration:none; }
.gmw-promo__sell a:hover{ opacity:.82; }
.gmw-promo__btn{ text-decoration:none; white-space:nowrap; }
@media (max-width:520px){ .gmw-promo__btn{ width:100%; text-align:center; } }

/* Kontakt */
.kontakt-note{ margin-top:var(--gap-section); font-size:13.5px; color:var(--muted); line-height:1.6; }
.kontakt-note b{ color:var(--text); }
.kontakt-note a{ color:var(--accent); font-weight:600; text-decoration:none; }
.kontakt-note a:hover{ opacity:.82; }
.kontakt-grid{ display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:14px; }
.kontakt-grid>.card{ min-width:0; }
@media (max-width:860px){ .kontakt-grid{ grid-template-columns:1fr; } }
.kontakt-line{ display:flex; align-items:center; gap:13px; padding:12px 0; text-decoration:none;
  color:var(--text); border-top:1px solid var(--border-soft); }
.kontakt-line:first-of-type{ border-top:none; }
.kontakt-line--static{ cursor:default; }
.kontakt-ico{ flex:none; width:38px; height:38px; border-radius:10px; display:inline-flex;
  align-items:center; justify-content:center; background:var(--accent-bg); color:var(--accent); }
.kontakt-ico svg{ width:19px; height:19px; }
.kontakt-line__l{ display:block; font-size:11px; color:var(--faint); }
.kontakt-line__v{ display:block; font-size:14px; font-weight:600; }
a.kontakt-line:hover .kontakt-line__v{ color:var(--accent); }
.kontakt-termin{ display:flex; align-items:center; justify-content:space-between; gap:16px;
  flex-wrap:wrap; margin-top:16px; padding-top:16px; border-top:1px solid var(--border-soft); }
.kontakt-termin__t{ font-size:14px; font-weight:700; color:var(--text); }
.kontakt-termin__s{ font-size:12.5px; color:var(--muted); margin-top:2px; }
.kontakt-abs{ margin-bottom:14px; }
.kontakt-abs__l{ display:block; font-size:11px; color:var(--faint); }
.kontakt-abs__v{ font-size:13.5px; font-weight:600; color:var(--text); margin-top:2px; }
.kontakt-textarea{ width:100%; resize:vertical; min-height:120px; margin-bottom:14px; font-family:inherit; }
.kontakt-hp{ position:absolute; left:-9999px; width:1px; height:1px; opacity:0; }

/* Prominenter CTA-Button (z. B. „Neue Anfrage" in der Topbar) */
.btn--cta{ display:inline-flex; align-items:center; gap:8px; font-size:14px; font-weight:700;
  padding:11px 20px; border-radius:10px;
  box-shadow:0 2px 12px color-mix(in oklab, var(--accent) 38%, transparent); }
.btn--cta svg{ width:18px; height:18px; }
.btn--cta:hover{ transform:translateY(-1px); }

/* Tickets */
.ticket-row{ text-decoration:none; color:var(--text); }
.ticket-row:hover .strow__l{ color:var(--accent); }
.ticket-row__nr{ color:var(--faint); font-weight:600; margin-right:4px; }
.ticket-back{ color:var(--muted); text-decoration:none; }
.ticket-back:hover{ color:var(--accent); }
.tstatus{ display:inline-block; padding:2px 9px; border-radius:999px; font-size:11px; font-weight:700; }
.tstatus--offen{ background:var(--accent-bg); color:var(--accent-deep); }
.tstatus--in_arbeit{ background:color-mix(in oklab, var(--star) 22%, transparent); color:var(--warn-deep); }
.tstatus--beantwortet{ background:color-mix(in oklab, var(--ok) 20%, transparent); color:var(--ok-deep); }
.tstatus--warten_rueckfrage{ background:color-mix(in oklab, var(--star) 22%, transparent); color:var(--warn-deep); }
.tstatus--erledigt{ background:color-mix(in oklab, var(--ok) 20%, transparent); color:var(--ok-deep); }
.tstatus--geschlossen{ background:var(--border-soft); color:var(--muted); }
.ticket-reopen{ font-size:12.5px; color:var(--muted); line-height:1.55; margin:0 0 12px;
  padding:10px 12px; background:var(--bg); border:1px solid var(--border-soft); border-radius:9px; }
.ticket-reopen b{ color:var(--text); }
.tk-dringend{ display:inline-block; font-size:10.5px; font-weight:800; letter-spacing:.04em;
  text-transform:uppercase; color:var(--down); background:color-mix(in oklab,var(--down) 15%,transparent);
  border-radius:6px; padding:1px 7px; vertical-align:middle; }
.tk-intro{ margin-top:var(--gap-section); }
.tk-prio{ margin-top:14px; }
.tk-prio__opts{ grid-template-columns:1fr 1fr; }
@media (max-width:520px){ .tk-prio__opts{ grid-template-columns:1fr; } }

/* Einstellungen: Konto / 2FA */
.set-form{ display:flex; flex-direction:column; }
.set-form .auth-label{ margin-top:12px; }
.set-static{ font-size:14px; font-weight:600; color:var(--text); padding:6px 0; }
.set-submit{ display:inline-block; align-self:flex-start; margin-top:20px; }
@media (max-width:520px){ .set-submit{ width:100%; text-align:center; box-sizing:border-box; } }
.set-on{ color:var(--ok-deep); }
.twofa-qr{ width:180px; height:180px; background:var(--white); border:1px solid var(--border);
  border-radius:12px; padding:10px; margin:12px 0; }
.twofa-qr svg{ width:100%; height:100%; display:block; }
.twofa-key{ font-size:12.5px; color:var(--muted); margin-bottom:6px; }
.twofa-key code{ font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:13px;
  background:var(--bg); border:1px solid var(--border-soft); border-radius:6px; padding:2px 7px;
  color:var(--text); user-select:all; }
.ticket-formcard{ margin-top:var(--gap-section); }
.ticket-form{ display:flex; flex-direction:column; }
.ticket-form .auth-label{ margin-top:12px; }
.ticket-hint{ color:var(--faint); font-weight:400; }
.ticket-file{ font-size:13px; color:var(--muted); margin:4px 0 4px; }
/* Sofort-Uploader (Ticket) */
.wiz-fileinput{ position:absolute; width:1px; height:1px; opacity:0; overflow:hidden; }
.wiz-drop{ display:flex; align-items:center; gap:10px; cursor:pointer; margin:4px 0 8px;
  padding:14px 16px; border:1.5px dashed var(--border); border-radius:12px; color:var(--muted);
  font-size:13px; transition:border-color .12s, background .12s; }
.wiz-drop:hover{ border-color:var(--accent); background:var(--accent-bg); color:var(--text); }
.wiz-drop svg{ width:20px; height:20px; flex:none; color:var(--accent); }
.wiz-uploads{ display:flex; flex-direction:column; gap:6px; margin-bottom:6px; }
.wiz-up{ display:flex; align-items:center; gap:10px; padding:8px 12px; border-radius:9px;
  background:var(--bg); border:1px solid var(--border-soft); font-size:13px; }
.wiz-up__name{ flex:1; min-width:0; color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.wiz-up__meta{ flex:none; font-size:12px; color:var(--muted); }
.wiz-up__x{ flex:none; background:none; border:none; color:var(--faint); cursor:pointer;
  font-size:14px; line-height:1; padding:2px 4px; }
.wiz-up__x:hover{ color:var(--down); }
.wiz-up.is-busy .wiz-up__meta{ color:var(--accent); }
.wiz-up.is-err{ border-color:color-mix(in oklab, var(--down) 40%, transparent); }
.wiz-up.is-err .wiz-up__name, .wiz-up.is-err .wiz-up__meta{ color:var(--down); }
.ticket-submit{ align-self:flex-start; margin-top:16px; }
@media (max-width:520px){ .ticket-submit{ width:100%; text-align:center; } }
.ticket-thread{ margin-top:var(--gap-section); display:flex; flex-direction:column; gap:12px; }
.tmsg{ border:1px solid var(--border-soft); border-radius:14px; padding:13px 16px; max-width:82%; }
.tmsg--kunde{ align-self:flex-end; background:var(--accent-bg); border-color:var(--accent-border); }
.tmsg--inrema{ align-self:flex-start; background:var(--card); }
.tmsg__head{ display:flex; gap:10px; align-items:baseline; margin-bottom:5px; }
.tmsg__who{ font-size:12.5px; font-weight:700; color:var(--text); }
.tmsg__date{ font-size:11px; color:var(--faint); }
.tmsg__text{ font-size:14px; line-height:1.55; color:var(--text); white-space:pre-wrap; word-break:break-word; }
.tmsg__files{ display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.tfile{ display:inline-flex; align-items:center; gap:6px; font-size:12.5px; font-weight:600;
  text-decoration:none; color:var(--accent); background:var(--bg); border:1px solid var(--border-soft);
  border-radius:8px; padding:5px 10px; }
.tfile:hover{ border-color:var(--accent); }
.tfile svg{ width:14px; height:14px; }
.ticket-reply{ margin-top:14px; }
@media (max-width:640px){ .tmsg{ max-width:100%; } }

/* Änderungs-Assistent (Wizard) */
.wiz-steps{ list-style:none; display:flex; gap:8px; padding:0; margin:var(--gap-section) 0 0;
  flex-wrap:wrap; }
.wiz-steps li{ display:flex; align-items:center; gap:8px; font-size:12.5px; font-weight:600;
  color:var(--faint); }
.wiz-steps li span{ width:22px; height:22px; border-radius:50%; display:inline-flex;
  align-items:center; justify-content:center; font-size:12px; background:var(--border-soft); color:var(--muted); }
.wiz-steps li:not(:last-child)::after{ content:""; width:26px; height:1px; background:var(--border); }
.wiz-steps li.is-current{ color:var(--text); }
.wiz-steps li.is-current span{ background:var(--accent); color:var(--white); }
.wiz-steps li.is-done span{ background:var(--ok); color:var(--white); }
.wiz-panel{ display:none; }
.wiz-panel.is-on{ display:block; margin-top:14px; }
.wiz-types{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
@media (max-width:620px){ .wiz-types{ grid-template-columns:1fr; } }
.wiz-type{ display:block; cursor:pointer; }
.wiz-type input{ position:absolute; opacity:0; width:0; height:0; }
.wiz-type__box{ display:block; border:1.5px solid var(--border); border-radius:12px; padding:14px 16px;
  transition:border-color .12s, background .12s; }
.wiz-type:hover .wiz-type__box{ border-color:var(--accent); }
.wiz-type.is-sel .wiz-type__box{ border-color:var(--accent); background:var(--accent-bg); }
.wiz-type__t{ display:block; font-size:14px; font-weight:700; color:var(--text); }
.wiz-type__h{ display:block; font-size:12.5px; color:var(--muted); margin-top:3px; line-height:1.45; }
.wiz-nav{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:16px; }
.wiz-req{ color:var(--down); }
.auth-input.is-invalid{ border-color:var(--down); box-shadow:0 0 0 3px color-mix(in oklab, var(--down) 18%, transparent); }
.wiz-err{ color:var(--down); font-size:12.5px; margin:12px 0 0; }
.wiz-filelist{ margin-top:8px; display:flex; flex-direction:column; gap:5px; }
.wiz-file{ font-size:12.5px; color:var(--muted); }
.wiz-file.is-big{ color:var(--down); }
.wiz-summary{ display:flex; flex-direction:column; }
.wiz-sum__row{ display:flex; gap:14px; padding:10px 0; border-top:1px solid var(--border-soft); }
.wiz-sum__row:first-child{ border-top:none; }
.wiz-sum__l{ flex:0 0 34%; max-width:34%; font-size:12px; font-weight:600; color:var(--faint); }
.wiz-sum__v{ flex:1; font-size:14px; color:var(--text); word-break:break-word; }
.wiz-binding{ margin-top:16px; padding:13px 15px; border-radius:10px; background:var(--accent-bg);
  border:1px solid var(--accent-border); font-size:13px; line-height:1.55; color:var(--text); }
.wiz-binding b{ font-weight:700; }
.wiz-eingang{ margin-top:14px; }
@media (max-width:520px){ .wiz-nav .btn--cta{ flex:1; justify-content:center; }
  .wiz-sum__l{ flex-basis:42%; max-width:42%; } }

/* Rechnungen: Ladebalken + Seiten */
.inv-loading{ display:flex; align-items:center; gap:12px; padding:22px 4px; color:var(--muted);
  font-size:14px; }
/* Das hidden-Attribut MUSS immer verstecken — sonst ueberschreiben display:flex/grid-Klassen
   es (Spinner/Pager blieben sichtbar). Gilt portalweit. */
[hidden]{ display:none !important; }
.inv-note{ font-size:12.5px; line-height:1.6; color:var(--muted); margin:14px 2px 0; max-width:70ch; }
.inv-note b{ color:var(--text); }
.inv-spinner{ width:20px; height:20px; border-radius:50%; flex:none;
  border:2.5px solid var(--border); border-top-color:var(--accent); animation:inv-spin .8s linear infinite; }
@keyframes inv-spin{ to{ transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce){ .inv-spinner{ animation-duration:2s; } }
.inv-pager{ display:flex; align-items:center; justify-content:space-between; gap:12px;
  margin-top:14px; padding-top:14px; border-top:1px solid var(--border-soft); }
.inv-pager__info{ font-size:12.5px; color:var(--muted); text-align:center; flex:1; }
.inv-pager .btn[disabled]{ opacity:.45; pointer-events:none; }

/* Cockpit: Identitaets-Leiste (Domain + Kundennummer) */
.cock-id{ display:flex; flex-wrap:wrap; gap:9px; margin-top:14px; }
.cock-id__chip{ display:inline-flex; align-items:center; gap:8px; padding:7px 13px; border-radius:999px;
  background:var(--card); border:1px solid var(--border); font-size:12.5px; color:var(--muted); text-decoration:none; }
.cock-id__chip b{ color:var(--text); font-weight:700; }
.cock-id__chip svg{ width:15px; height:15px; flex:none; color:var(--accent); }
.cock-id__chip--domain{ color:var(--text); font-weight:600; }
a.cock-id__chip--domain:hover{ border-color:var(--accent); }
.cock-id__more{ font-size:11px; font-weight:700; color:var(--accent); background:var(--accent-bg);
  border-radius:999px; padding:1px 7px; }
.cock-preview{ font-size:11px; font-weight:700; letter-spacing:.04em; text-transform:uppercase;
  color:var(--warn-deep); background:color-mix(in oklab,var(--star) 22%,transparent);
  border-radius:6px; padding:2px 8px; vertical-align:middle; }

/* Cockpit: 2FA-Empfehlungs-Overlay */
.ovl{ position:fixed; inset:0; z-index:120; background:var(--overlay,rgba(11,31,58,.55));
  display:flex; align-items:center; justify-content:center; padding:20px;
  animation:fadeIn .18s ease; pointer-events:auto; }
/* 2FA-Empfehlung: sicher ueber der gesamten Chrome (Sidebar/Topnav/Dropdowns) */
.ovl--2fa{ z-index:5000; }
.ovl__box{ position:relative; width:100%; max-width:440px; background:var(--card);
  border:1px solid var(--border); border-radius:16px; box-shadow:var(--shadow-drawer);
  padding:28px 26px; text-align:center; pointer-events:auto;
  animation:ovlIn .22s cubic-bezier(.32,.72,0,1); }
.ovl__x{ position:absolute; top:10px; right:12px; width:32px; height:32px; line-height:1;
  border:none; background:none; color:var(--muted); font-size:24px; cursor:pointer;
  border-radius:8px; }
.ovl__x:hover{ color:var(--text); background:var(--hover,rgba(0,0,0,.05)); }
@keyframes ovlIn{ from{ transform:translateY(10px); opacity:.6; } to{ transform:translateY(0); opacity:1; } }
.ovl__ic{ font-size:34px; line-height:1; }
.ovl__title{ font-size:19px; font-weight:700; color:var(--text); margin:12px 0 8px; }
.ovl__lead{ font-size:13.5px; line-height:1.6; color:var(--muted); margin:0 0 10px; }
.ovl__lead b{ color:var(--text); }
.ovl__apps{ font-size:12px; line-height:1.55; color:var(--faint); margin:0 0 18px; }
.ovl__cta{ display:inline-block; width:100%; box-sizing:border-box; text-align:center;
  font-size:14px; font-weight:700; padding:12px 18px; border-radius:10px; }
.ovl__row{ display:flex; align-items:center; justify-content:center; gap:18px; margin-top:14px; }
.ovl__link{ background:none; border:none; font:inherit; font-size:12.5px; color:var(--muted);
  cursor:pointer; padding:4px; }
.ovl__link:hover{ color:var(--text); }

/* Cockpit: Rückfrage-Banner + modulare Widgets */
.cock-attn{ margin-top:var(--gap-section); display:flex; align-items:center; gap:14px;
  text-decoration:none; color:var(--text); border-left:3px solid var(--star); }
.cock-attn__ico{ flex:none; width:38px; height:38px; border-radius:10px; display:inline-flex;
  align-items:center; justify-content:center; background:color-mix(in oklab,var(--star) 20%,transparent); color:var(--warn-deep); }
.cock-attn__ico svg{ width:20px; height:20px; }
.cock-attn b{ color:var(--text); }
.cock-attn__arrow{ margin-left:auto; color:var(--accent); font-size:20px; font-weight:700; }
.cockgrid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:14px;
  margin-top:var(--gap-section); }
.cw{ display:flex; flex-direction:column; text-decoration:none; color:var(--text); min-width:0; }
a.cw:hover{ border-color:var(--accent); transform:translateY(-1px); }
.cw__head{ display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin-bottom:12px; }
.cw__t{ font-size:13.5px; font-weight:700; color:var(--text); }
.cw__more{ font-size:12px; color:var(--accent); font-weight:600; white-space:nowrap; }
.cw__kpis{ display:flex; gap:16px; }
.cw__kpi b{ font-size:22px; font-weight:700; color:var(--text); line-height:1.1; display:block; }
.cw__kpi span{ font-size:11.5px; color:var(--muted); }
.cw__spark{ display:flex; align-items:flex-end; gap:2px; height:34px; margin-top:12px; }
.cw__spark span{ flex:1; min-width:1px; background:var(--accent); opacity:.85; border-radius:2px 2px 0 0; }
.cw__foot{ font-size:11px; color:var(--faint); margin-top:8px; }
.cw__empty{ font-size:12.5px; color:var(--muted); line-height:1.5; margin:2px 0 0; }
.cw__rate{ display:flex; align-items:center; gap:12px; }
.cw__ratenum{ font-size:30px; font-weight:700; color:var(--text); line-height:1; }
.cw__stars{ display:inline-flex; gap:2px; }
.cw__stars svg{ width:18px; height:18px; fill:var(--border); }
.cw__stars svg.is-on{ fill:var(--star); }
.cock-actions-head{ font-size:13px; font-weight:700; color:var(--muted); margin:var(--gap-section) 0 -4px; }

/* Erreichbarkeit (Cockpit-Kachel) */
.health{ margin-top:var(--gap-section); }
.health__top{ display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.health__state{ display:flex; align-items:center; gap:12px; }
.health__dot{ width:12px; height:12px; border-radius:50%; flex:none; position:relative; }
.health__dot--up{ background:var(--ok); box-shadow:0 0 0 4px color-mix(in oklab, var(--ok) 22%, transparent); }
.health__dot--down{ background:var(--down); box-shadow:0 0 0 4px color-mix(in oklab, var(--down) 22%, transparent); }
.health__label{ font-size:14px; font-weight:700; color:var(--text); }
.health__sub{ font-size:12.5px; color:var(--muted); margin-top:1px; }
.health__pct{ text-align:right; }
.health__pctnum{ font-size:20px; font-weight:700; color:var(--text); line-height:1; }
.health__pctlbl{ font-size:11px; color:var(--faint); margin-top:3px; }
.health__bar{ display:flex; gap:2px; margin-top:14px; }
.health__seg{ flex:1; height:22px; border-radius:3px; background:var(--border); }
.health__seg--up{ background:var(--ok); }
.health__seg--warn{ background:var(--star); }
.health__seg--down{ background:var(--down); }
.health__seg--none{ background:var(--border-soft); }
.health__axis{ display:flex; justify-content:space-between; margin-top:6px; font-size:11px; color:var(--faint); }
.stat-empty{ font-size:12.5px; color:var(--faint); margin:6px 0 0; }
.statcard__hint{ font-size:11px; color:var(--faint); margin-top:6px; line-height:1.4; }
.gsc-intro{ margin-top:var(--gap-section); padding:14px 18px; font-size:13.5px; line-height:1.6; color:var(--muted); }
.gsc-intro b{ color:var(--text); }
.gsc-intro__dim{ color:var(--faint); }
.gsc-cell{ flex:none; width:60px; text-align:right; font-size:13px; font-weight:600; color:var(--muted); }
.strow--head{ border-top:none; padding-bottom:6px; }
.strow--head .strow__l, .strow--head .gsc-cell{ font-size:11px; font-weight:600; color:var(--faint); }

/* Domain immer in Originalschreibweise (nicht capitalize) */
.stat-domain{ text-transform:none; }

/* Cockpit-Statistik-Widget */
.statwidget{ display:block; text-decoration:none; color:var(--text); background:var(--card);
  border:1px solid var(--border); border-radius:var(--radius-card); box-shadow:var(--shadow);
  padding:16px 18px; margin-top:var(--gap-section); transition:border-color .15s, transform .15s; }
.statwidget:hover{ border-color:var(--accent); transform:translateY(-1px); }
.statwidget__head{ display:flex; justify-content:space-between; align-items:center; gap:12px;
  font-size:12.5px; color:var(--muted); margin-bottom:12px; }
.statwidget__more{ color:var(--accent); font-weight:600; flex:none; }
.statwidget__body{ display:flex; align-items:flex-end; gap:24px; flex-wrap:wrap; }
.statwidget__kpis{ display:flex; gap:22px; }
.statwidget__kpi{ display:flex; flex-direction:column; }
.statwidget__kpi b{ font-size:22px; color:var(--text); line-height:1.1; }
.statwidget__kpi span{ font-size:11.5px; color:var(--muted); }
.statwidget__chart{ flex:1 1 180px; display:flex; align-items:flex-end; gap:2px; height:48px; min-width:150px; }
.statwidget__bar{ flex:1 1 0; background:var(--accent); opacity:.8; border-radius:2px 2px 0 0; min-width:1px; }

/* Zeitraum-Wähler */
.rangebar{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:var(--gap-section); }
.rangebtn{ font-size:12.5px; font-weight:600; color:var(--muted); text-decoration:none;
  background:var(--card); border:1px solid var(--border); border-radius:var(--radius-pill);
  padding:6px 14px; cursor:pointer; }
.rangebtn:hover{ border-color:var(--accent); color:var(--text); }
.rangebtn.is-active{ background:var(--accent); border-color:var(--accent); color:#fff; }
.rangeform{ display:flex; align-items:center; gap:6px; margin-left:auto; }
.rangeform__sep{ color:var(--faint); }
.rangedate{ font-family:var(--font); font-size:12.5px; color:var(--text); background:var(--card);
  border:1px solid var(--border); border-radius:var(--radius-sm); padding:5px 8px; }
@media (max-width:860px){ .rangeform{ margin-left:0; width:100%; } }

.chart-max{ float:right; font-size:11.5px; font-weight:400; color:var(--faint); }
.chart-axis{ display:flex; justify-content:space-between; font-size:11px; color:var(--faint); margin-top:6px; }

/* PWA-Homescreen-Hinweis */
.pwa-hint{ position:fixed; left:12px; right:12px; bottom:12px; z-index:60; max-width:560px;
  margin:0 auto; display:flex; align-items:center; gap:12px; background:var(--sidebar);
  color:var(--white); border:1px solid var(--sidebar-2); border-radius:12px;
  box-shadow:var(--shadow-drawer); padding:12px 14px;
  opacity:0; transform:translateY(16px); pointer-events:none;
  transition:opacity .35s ease, transform .35s cubic-bezier(.32,.72,0,1); }
.pwa-hint.is-on{ opacity:1; transform:none; pointer-events:auto; }
.pwa-hint__txt{ flex:1; font-size:12.5px; line-height:1.4; }
.pwa-hint__btn{ flex:none; background:var(--accent); color:#fff; border:none; border-radius:8px;
  font-size:12.5px; font-weight:600; padding:8px 14px; cursor:pointer; }
.pwa-hint__x{ flex:none; background:transparent; border:none; color:var(--sidebar-muted);
  font-size:15px; cursor:pointer; line-height:1; }

/* Sidebar: „App installieren"-Hinweis (mobil = Drawer, Desktop = Menü) */
.side-install{ display:flex; align-items:center; gap:10px; text-decoration:none;
  margin:0 8px 10px; padding:9px 10px; border-radius:10px; background:var(--sidebar-2);
  color:var(--sidebar-text); }
.side-install:hover{ filter:brightness(1.08); }
.side-install svg{ width:18px; height:18px; flex:none; color:var(--white); }
.side-install__txt{ display:flex; flex-direction:column; font-size:12.5px; font-weight:600; line-height:1.2; }
.side-install__txt b{ font-size:10.5px; font-weight:500; color:var(--sidebar-muted); margin-top:2px; }

/* Footer: App-Karte + Namensbutton gestapelt (je volle Breite); Benachrichtigungen
   und Hell/Dunkel liegen im Overlay-Menue. Namensbox = Breite der App-Karte, Name kappt. */
.sidebar__foot{ flex-direction:column; align-items:stretch; gap:4px; padding:14px 8px 4px; }
.side-install{ margin:0 0 4px; }
.userbtn{ width:100%; }                          /* gleiche Breite wie App-Karte */
.usermenu__toggle{ width:100%; background:none; border:none; font:inherit;
  color:var(--sidebar-text); cursor:pointer; text-align:left; }
.usermenu__toggle .theme-label{ flex:1; }

/* Einstellungen — zweispaltiges Backend */
.settings-grid{ display:grid; grid-template-columns:1fr 1fr; gap:16px; align-items:start;
  margin-top:var(--gap-section); }
.settings-col{ display:flex; flex-direction:column; gap:16px; min-width:0; }
@media (max-width:900px){ .settings-grid{ grid-template-columns:1fr; } }
.set-card{ padding:20px; }
.set-card__head{ display:flex; align-items:center; gap:9px; font-size:14px; font-weight:700;
  color:var(--text); padding-bottom:14px; margin-bottom:6px; border-bottom:1px solid var(--border-soft); }
.set-card__ic{ font-size:16px; line-height:1; }
.set-static-row{ display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:9px 0; font-size:13.5px; }
.set-static-row__l{ color:var(--muted); }
.set-static-row__v{ font-weight:600; color:var(--text); text-align:right; word-break:break-word; }
.set-lock{ font-size:11px; font-weight:600; color:var(--faint); background:var(--bg);
  border:1px solid var(--border-soft); border-radius:6px; padding:1px 7px; margin-left:6px; white-space:nowrap; }
.set-badge{ display:inline-block; font-size:12.5px; font-weight:700; border-radius:999px; padding:4px 12px; margin:4px 0 8px; }
.set-badge--on{ background:color-mix(in oklab,var(--ok) 18%,transparent); color:var(--ok-deep); }
.set-badge--off{ background:var(--border-soft); color:var(--muted); }
.set-warn{ font-size:13px; line-height:1.55; color:var(--text); background:color-mix(in oklab,var(--star) 12%,transparent);
  border:1px solid color-mix(in oklab,var(--star) 30%,transparent); border-radius:10px; padding:11px 13px; margin:6px 0 10px; }
.set-reset-note{ font-size:12.5px; line-height:1.55; color:var(--muted); background:var(--bg);
  border:1px solid var(--border-soft); border-radius:10px; padding:11px 13px; margin:8px 0 12px; }
.set-reset-note b{ color:var(--text); }
.set-steps{ margin:2px 0 14px; padding-left:20px; font-size:13px; color:var(--muted); line-height:1.7; }
.twofa-qr{ width:190px; height:190px; background:var(--white); border:1px solid var(--border);
  border-radius:14px; padding:12px; margin:4px 0 14px; }
.twofa-qr svg{ width:100%; height:100%; display:block; }
.twofa-key{ font-size:12.5px; color:var(--muted); line-height:1.6; margin-bottom:10px; }
.twofa-key code{ display:inline-block; margin-top:4px; font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:14px; letter-spacing:.08em; background:var(--bg); border:1px solid var(--border-soft);
  border-radius:6px; padding:4px 10px; color:var(--text); user-select:all; }
.set-code{ letter-spacing:.35em; font-size:18px; text-align:center; max-width:220px; }
.set-form__row{ display:flex; gap:10px; align-items:center; margin-top:16px; flex-wrap:wrap; }
.set-form__row .set-submit{ margin-top:0; }
.set-row{ display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:9px 0; border-top:1px solid var(--border-soft); font-size:13.5px; color:var(--text); }
.set-row{ display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:9px 0; border-top:1px solid var(--border-soft); font-size:13.5px; color:var(--text); }
.set-row:first-of-type{ border-top:none; }
.set-actions{ display:flex; gap:10px; flex-wrap:wrap; margin:12px 0 4px; }
.set-prefs{ margin:6px 0 10px; }
.set-prefs__head, .set-prefs__row{ display:grid; grid-template-columns:1fr 70px 70px; align-items:center; gap:8px; }
.set-prefs__head{ font-size:11.5px; color:var(--faint); padding-bottom:8px; border-bottom:1px solid var(--border); text-align:center; }
.set-prefs__head span:first-child{ text-align:left; }
.set-prefs__row{ padding:11px 0; border-top:1px solid var(--border-soft); }
.set-prefs__label{ font-size:13.5px; color:var(--text); }
.set-check{ display:flex; justify-content:center; cursor:pointer; }
.set-check input{ width:18px; height:18px; accent-color:var(--accent); cursor:pointer; }

/* App-Installieren */
.install-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(240px,1fr)); gap:14px; margin-top:var(--gap-section); }
.install-os{ padding:18px; }
.install-os__t{ font-size:14px; font-weight:700; color:var(--text); margin-bottom:10px; }
.install-steps{ margin:0; padding-left:18px; }
.install-steps li{ font-size:13px; line-height:1.7; color:var(--muted); }
.install-steps b{ color:var(--text); }

/* App-Installieren: Hero + Vorteile */
.inst-hero{ text-align:center; padding:26px 16px 8px; }
.inst-hero__logo{ width:56px; height:56px; object-fit:contain; border-radius:12px; }
.inst-hero__title{ font-size:24px; font-weight:700; color:var(--text); margin:12px 0 6px; }
.inst-hero__sub{ font-size:14px; line-height:1.6; color:var(--muted); max-width:520px; margin:0 auto; }
.inst-hero__actions{ display:flex; align-items:center; justify-content:center; gap:12px; margin-top:16px; flex-wrap:wrap; }
.inst-hero__status{ font-size:12.5px; color:var(--faint); }
.inst-benefits{ display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:14px; margin-top:var(--gap-section); }
.inst-benefit{ padding:18px; }
.inst-benefit__ico{ font-size:22px; }
.inst-benefit__t{ font-size:14px; font-weight:700; color:var(--text); margin:8px 0 4px; }
.inst-benefit__x{ font-size:12.5px; line-height:1.55; color:var(--muted); }
.inst-h2{ font-size:16px; font-weight:700; color:var(--text); margin:26px 0 4px; }

/* Rechnungen */
.inv-card .strow{ align-items:center; }
.inv-cell{ flex:none; width:104px; text-align:right; font-size:13px; color:var(--text); }
.inv-cell--act{ width:110px; }
.strow--head .inv-cell{ font-size:11px; font-weight:600; color:var(--faint); }
.inv-status{ font-size:11px; font-weight:600; padding:2px 9px; border-radius:var(--radius-pill); white-space:nowrap; }
.inv-status--paid{ background:var(--status-ok-bg); color:var(--green-text); }
.inv-status--open{ background:var(--status-warn-bg); color:var(--amber-text); }
.inv-status--voided{ background:var(--status-down-bg); color:var(--red-text); }
.inv-status--transferred{ background:var(--tint); color:var(--muted); }
.inv-status--draft{ background:var(--tint); color:var(--faint); }
.inv-dl{ font-size:12.5px; font-weight:600; color:var(--accent); text-decoration:none;
  border:1px solid var(--border); border-radius:var(--radius-pill); padding:4px 12px; }
.inv-dl:hover{ border-color:var(--accent); }
@media (max-width:640px){ .inv-cell{ width:auto; } .inv-cell--act{ width:auto; } }

/* --- Google Bewertungen 2.0 (OAuth/GBP) --- */
.gbp-loc{ margin-top:14px; }
.gbp-loc__head{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.gbp-loc__score{ font-size:30px; font-weight:700; color:var(--text); line-height:1; }
.gbp-loc__meta{ margin-left:auto; }
.gbp-open{ display:inline-block; margin-left:8px; font-size:11.5px; font-weight:600;
  color:var(--accent); border:1px solid var(--accent); border-radius:var(--radius-pill); padding:1px 8px; }
.gbp-inlineform{ display:inline; }
.linkbtn{ background:none; border:none; padding:0; cursor:pointer; font:inherit;
  color:var(--accent); font-weight:600; }
.linkbtn:hover{ opacity:.82; }
.gbp-reply{ margin-top:10px; }
.gbp-reply--has{ padding:10px 12px; background:var(--bg);
  border:1px solid var(--border-soft); border-radius:var(--radius-sm); }
.gbp-reply__label{ font-size:11.5px; font-weight:700; letter-spacing:.04em; color:var(--muted); }
.gbp-reply__text{ margin-top:4px; }
.gbp-reply__ta{ display:block; width:100%; box-sizing:border-box; resize:vertical;
  font:inherit; font-size:13.5px; line-height:1.5; color:var(--text);
  background:var(--card); border:1px solid var(--border); border-radius:var(--radius-sm);
  padding:8px 10px; }
.gbp-reply__ta:focus{ outline:none; border-color:var(--accent); }
.gbp-reply__btn{ margin-top:8px; }

/* ===== PIN-Löschschutz (Overlay, portalweit) ===== */
.pin-ov{ position:fixed; inset:0; background:var(--overlay,rgba(11,31,58,.55)); z-index:130;
  display:flex; align-items:center; justify-content:center; padding:16px; animation:fadeIn .18s ease; }
.pin-ov[hidden]{ display:none; }
.pin-box{ background:var(--card); border:1px solid var(--border); border-radius:16px; width:100%;
  max-width:340px; padding:22px; box-shadow:var(--shadow-drawer); text-align:center; }
.pin-title{ font-size:16px; font-weight:700; color:var(--text); }
.pin-msg{ font-size:13.5px; color:var(--muted); margin-top:6px; line-height:1.5; }
.pin-code{ font-size:34px; font-weight:800; letter-spacing:.32em; color:var(--accent); margin:16px 0 4px; padding-left:.32em; }
.pin-hint{ font-size:12px; color:var(--faint); margin-bottom:14px; }
.pin-input{ width:150px; text-align:center; font-size:24px; letter-spacing:.3em; padding:9px 10px;
  border:1px solid var(--border); border-radius:10px; background:var(--bg); color:var(--text); }
.pin-foot{ display:flex; gap:10px; margin-top:18px; }
.pin-foot .btn{ flex:1; justify-content:center; }

/* ===== News / Redaktion ===== */
.tstatus--entwurf{ background:var(--border-soft); color:var(--muted); }
.tstatus--geplant{ background:color-mix(in oklab,var(--star) 22%,transparent); color:var(--warn-deep); }
.tstatus--veroeffentlicht{ background:color-mix(in oklab,var(--ok) 20%,transparent); color:var(--ok-deep); }
.tstatus--zurueckgezogen{ background:color-mix(in oklab,var(--down) 18%,transparent); color:var(--down); }
.news-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:14px; margin-top:var(--gap-section); }
.news-card{ display:flex; flex-direction:column; background:var(--card); border:1px solid var(--border);
  border-radius:var(--radius-card); box-shadow:var(--shadow); overflow:hidden; }
.news-card__thumb{ display:block; aspect-ratio:16/9; background:var(--bg); overflow:hidden; }
.news-card__thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.news-card__noimg{ display:flex; align-items:center; justify-content:center; height:100%; color:var(--faint); font-size:12px; }
.news-card__body{ padding:13px 14px 14px; display:flex; flex-direction:column; gap:8px; }
.news-card__head{ display:flex; align-items:center; justify-content:space-between; gap:8px; }
.news-card__date{ font-size:11.5px; color:var(--faint); }
.news-card__title{ font-size:14.5px; font-weight:700; color:var(--text); text-decoration:none; line-height:1.35; }
.news-card__acts{ display:flex; gap:8px; margin-top:2px; }
.news-del{ display:inline; }
.news-del__btn:hover{ color:var(--down); border-color:var(--down); }

.news-cols{ display:grid; grid-template-columns:1fr 320px; gap:16px; margin-top:var(--gap-section); align-items:start; }
@media (max-width:900px){ .news-cols{ grid-template-columns:1fr; } }
.news-main{ padding:18px; min-width:0; }
.news-side{ display:flex; flex-direction:column; gap:16px; min-width:0; }
.news-titel{ font-size:18px; font-weight:600; }
.news-actions{ display:flex; gap:10px; flex-wrap:wrap; }
.news-actions .btn{ flex:1; justify-content:center; }
.news-cover{ aspect-ratio:16/9; background:var(--bg); border:1px solid var(--border-soft); border-radius:10px;
  overflow:hidden; margin-bottom:10px; display:flex; align-items:center; justify-content:center; }
.news-cover img{ width:100%; height:100%; object-fit:cover; }
.news-cover__ph{ color:var(--faint); font-size:12.5px; }

/* Rich-Text-Editor */
.rte{ border:1px solid var(--border); border-radius:10px; overflow:hidden; }
.rte__bar{ display:flex; flex-wrap:wrap; gap:2px; padding:6px; background:var(--bg); border-bottom:1px solid var(--border-soft); }
.rte__bar button{ font:inherit; font-size:12.5px; padding:5px 9px; border:1px solid transparent; border-radius:7px;
  background:transparent; color:var(--text); cursor:pointer; }
.rte__bar button:hover{ background:var(--card); border-color:var(--border); }
.rte__area{ min-height:440px; padding:16px 18px; font-size:14.5px; line-height:1.65; color:var(--text); outline:none; }
.rte__area:focus{ background:var(--card); }
.rte__area h2{ font-size:20px; margin:.6em 0 .3em; } .rte__area h3{ font-size:16px; margin:.6em 0 .3em; }
.rte__area p{ margin:.5em 0; } .rte__area ul,.rte__area ol{ margin:.5em 0 .5em 1.4em; }
.rte__area img{ max-width:100%; height:auto; border-radius:8px; margin:8px 0; }
.rte__area blockquote{ margin:.6em 0; padding:6px 14px; border-left:3px solid var(--accent); color:var(--muted); }

/* Website-Modul-Marktplatz: inaktive Module ausgegraut (Werbung dahinter) */
.nav-item.is-upsell{ opacity:.72; }
.nav-item.is-upsell:hover{ opacity:1; }
.upsell{ margin-top:var(--gap-section); text-align:center; padding:34px 26px; max-width:640px; }
.upsell__ico{ display:inline-flex; width:52px; height:52px; align-items:center; justify-content:center;
  border-radius:14px; background:var(--accent-soft); color:var(--accent); margin-bottom:14px; }
.upsell__ico svg{ width:26px; height:26px; }
.upsell__badge{ font-size:11.5px; font-weight:700; letter-spacing:.04em; text-transform:uppercase;
  color:var(--accent); }
.upsell__title{ font-size:20px; font-weight:700; color:var(--text); margin:8px 0 10px; line-height:1.3; }
.upsell__text{ font-size:14px; line-height:1.65; color:var(--muted); margin:0 auto 20px; max-width:52ch; }
.upsell__cta .btn--cta{ display:inline-flex; }
.upsell__hint{ font-size:12.5px; color:var(--faint); margin:16px 0 0; }

/* Kategorie-Chips (News-Editor) */
.chipwrap{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; padding:7px 9px;
  border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--bg); }
.chipwrap:focus-within{ border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft); }
.chips{ display:contents; }
.chip{ display:inline-flex; align-items:center; gap:5px; font-size:12.5px; font-weight:600;
  color:var(--accent-deep); background:var(--accent-bg); border:1px solid var(--accent-border);
  border-radius:999px; padding:3px 5px 3px 10px; }
.chip__x{ background:none; border:none; color:var(--accent-deep); cursor:pointer; font-size:12px; line-height:1; padding:0 2px; }
.chip__x:hover{ color:var(--down); }
.chipinput{ flex:1; min-width:120px; border:none; outline:none; background:transparent;
  font:inherit; font-size:13.5px; color:var(--text); padding:3px 2px; }

/* Content-Liste (FAQ + Wissensdatenbank): eine Zeile je Eintrag */
.clist{ display:flex; flex-direction:column; gap:10px; margin-top:var(--gap-section); }
.clist__row{ display:flex; align-items:flex-start; justify-content:space-between; gap:14px;
  background:var(--card); border:1px solid var(--border); border-radius:var(--radius-card);
  box-shadow:var(--shadow); padding:14px 16px; }
.clist__row--aus{ opacity:.62; }
.clist__main{ min-width:0; }
.clist__title{ display:inline-block; font-size:14.5px; font-weight:700; color:var(--text);
  text-decoration:none; line-height:1.35; }
.clist__title:hover{ color:var(--accent); }
.clist__teaser{ font-size:12.5px; color:var(--muted); line-height:1.5; margin-top:4px; max-width:70ch; }
.clist__meta{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:8px; }
.clist__kat{ font-size:11.5px; font-weight:600; color:var(--accent-deep); background:var(--accent-bg);
  border:1px solid var(--accent-border); border-radius:999px; padding:2px 9px; }
.clist__date{ font-size:11.5px; color:var(--faint); }
.clist__acts{ display:flex; gap:8px; flex:none; flex-wrap:wrap; justify-content:flex-end; }
.clist__acts form{ display:inline; }
.clist-del__btn:hover{ color:var(--down); border-color:var(--down); }
@media (max-width:640px){
  .clist__row{ flex-direction:column; }
  .clist__acts{ justify-content:flex-start; }
}

/* Sichtbar-Schalter im Editor */
.toggle-row{ display:flex; align-items:center; gap:9px; font-size:13.5px; color:var(--text); cursor:pointer; }
.toggle-row input{ width:16px; height:16px; accent-color:var(--accent); cursor:pointer; }

/* Werbeseite (Upsell) */
.ups-hero{ margin-top:var(--gap-section); text-align:center; padding:38px 28px 32px;
  background:linear-gradient(160deg, var(--accent-bg), var(--card)); }
.ups-hero__ico{ display:inline-flex; width:58px; height:58px; align-items:center; justify-content:center;
  border-radius:16px; background:var(--accent); color:var(--white); margin-bottom:14px; }
.ups-hero__ico svg{ width:28px; height:28px; }
.ups-hero__badge{ font-size:11.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--accent-deep); }
.ups-hero__title{ font-size:24px; font-weight:800; color:var(--text); margin:8px 0 10px; line-height:1.25; }
.ups-hero__sub{ font-size:15px; line-height:1.6; color:var(--muted); max-width:56ch; margin:0 auto 20px; }
.ups-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:14px; margin-top:14px; }
.ups-benefit{ padding:18px; }
.ups-benefit__ic{ font-size:24px; line-height:1; }
.ups-benefit__t{ font-size:15px; font-weight:700; color:var(--text); margin:10px 0 5px; }
.ups-benefit__x{ font-size:13px; line-height:1.55; color:var(--muted); }
.ups-foot{ margin-top:14px; padding:22px; text-align:center; }

/* Website-Admin (SSO-Sprung) */
.wadmin{ margin-top:var(--gap-section); text-align:center; padding:38px 28px 34px; }
.wadmin__ico{ display:inline-flex; width:58px; height:58px; align-items:center; justify-content:center;
  border-radius:16px; background:var(--accent); color:var(--white); margin-bottom:14px; }
.wadmin__ico svg{ width:28px; height:28px; }
.wadmin__title{ font-size:22px; font-weight:800; color:var(--text); margin:4px 0 10px; }
.wadmin__sub{ font-size:14px; line-height:1.6; color:var(--muted); max-width:60ch; margin:0 auto 8px; }
.wadmin__lead{ font-size:14px; line-height:1.6; color:var(--muted); max-width:60ch; margin:0 auto 20px; }
.wadmin__hint{ font-size:12.5px; color:var(--faint); margin:12px 0 0; }
.ups-foot p{ font-size:14px; line-height:1.6; color:var(--muted); margin:0 auto 8px; max-width:60ch; }
.ups-foot__hint{ color:var(--text) !important; font-weight:600; }
.ups-foot .btn{ margin-top:10px; }

/* Benachrichtigungen (Glocke + Center) */
.userbtn__ndot{ width:8px; height:8px; border-radius:50%; background:var(--amber); flex:none; margin-left:4px; }
.nb-badge{ margin-left:auto; min-width:18px; height:18px; padding:0 5px; border-radius:9px; background:var(--amber);
  color:var(--sidebar,#0b1f3a); font-size:11px; font-weight:800; display:inline-flex; align-items:center; justify-content:center; }
.nb-list{ display:flex; flex-direction:column; gap:10px; margin-top:var(--gap-section); }
.nb-item{ display:flex; align-items:stretch; gap:0; padding:0; overflow:hidden; }
.nb-item__main{ flex:1; min-width:0; padding:14px 16px; text-decoration:none; color:inherit; }
.nb-item__titel{ font-size:14.5px; font-weight:700; color:var(--text); display:flex; align-items:center; gap:8px; }
.nb-dot{ width:8px; height:8px; border-radius:50%; background:var(--accent); flex:none; }
.nb-item__text{ font-size:13px; line-height:1.55; color:var(--muted); margin-top:4px; }
.nb-item__meta{ font-size:11.5px; color:var(--faint); margin-top:6px; }
.nb-item--unread{ border-left:3px solid var(--accent); }
.nb-item__act{ display:flex; flex-direction:column; gap:6px; padding:12px; align-items:center; justify-content:center; }
.nb-btn{ width:30px; height:30px; border:1px solid var(--border); border-radius:8px; background:var(--card);
  color:var(--muted); cursor:pointer; font-size:13px; line-height:1; }
.nb-btn:hover{ color:var(--text); background:var(--hover,rgba(0,0,0,.04)); }
.nb-empty{ text-align:center; padding:40px 24px; color:var(--muted); margin-top:var(--gap-section); }
.nb-empty__ic{ font-size:34px; margin-bottom:10px; }

/* --- Speisekarte (Gastronomie) ------------------------------------------------ */
.sk-newcat{ display:flex; gap:10px; align-items:center; margin-top:var(--gap-section); }
.sk-newcat .auth-input{ flex:1; }
.sk-cats{ display:flex; flex-direction:column; gap:var(--gap-section); margin-top:var(--gap-section); }
.sk-cat{ padding:14px 16px; }
.sk-cat--aus{ opacity:.62; }
.sk-cat__head{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.sk-cat__name{ font-weight:700; font-size:16px; color:var(--text); }
.sk-cat__acts{ margin-left:auto; display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
.sk-badges{ display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
.sk-badge{ font-size:11px; padding:2px 8px; border-radius:var(--radius-pill);
  background:var(--tint); color:var(--muted); border:1px solid var(--border-soft); white-space:nowrap; }
.sk-badge--aktion{ background:var(--status-warn-bg); color:var(--amber-text); border-color:var(--status-warn-border); }
.sk-badge--zeit{ background:var(--accent-soft); color:var(--accent-deep); border-color:transparent; }
.sk-handle{ cursor:grab; background:none; border:none; color:var(--faint); font-size:16px;
  line-height:1; padding:4px 6px; border-radius:8px; touch-action:none; user-select:none; }
.sk-handle:hover{ color:var(--text); background:var(--tint); }
.sk-arrows{ display:inline-flex; gap:2px; margin:0; }
.sk-dishes{ list-style:none; margin:10px 0 0; padding:0; display:flex; flex-direction:column; gap:8px; }
.sk-dish{ display:flex; align-items:center; gap:12px; padding:10px; border:1px solid var(--border-soft);
  border-radius:var(--radius-sm); background:var(--card); }
.sk-dish--aus{ opacity:.6; }
.sk-dish.sk-dragging, .sk-cat.sk-dragging{ opacity:.75; box-shadow:var(--shadow); }
.sk-thumb{ width:52px; height:52px; object-fit:cover; border-radius:8px; flex:0 0 auto;
  background:var(--tint); border:1px solid var(--border-soft); }
.sk-thumb--leer{ display:inline-block; }
.sk-dish__main{ flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.sk-dish__title{ font-weight:600; color:var(--text); text-decoration:none; }
.sk-dish__title:hover{ text-decoration:underline; }
.sk-dish__meta{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; font-size:12px; color:var(--muted); }
.sk-dish__preis{ font-weight:700; color:var(--text); }
.sk-dish__acts{ display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
.sk-empty{ color:var(--muted); font-size:13px; padding:6px 2px; }
.sk-add{ display:inline-block; margin-top:10px; font-size:13px; color:var(--accent-deep); text-decoration:none; }
.sk-add:hover{ text-decoration:underline; }
/* Editor */
.sk-checks{ display:flex; flex-wrap:wrap; gap:8px; margin-top:6px; }
.sk-check{ display:inline-flex; align-items:center; gap:6px; font-size:13px; color:var(--text);
  padding:5px 10px; border:1px solid var(--border); border-radius:var(--radius-pill);
  background:var(--card); cursor:pointer; }
.sk-check input{ margin:0; }
.sk-check:has(input:checked){ background:var(--accent-soft); border-color:transparent; color:var(--accent-deep); }
.sk-kennz{ margin-top:18px; display:flex; flex-direction:column; gap:14px; }
.sk-bildbox{ display:flex; gap:14px; align-items:flex-start; }
.sk-bild-vorschau{ width:120px; height:90px; object-fit:cover; border-radius:var(--radius-sm);
  border:1px solid var(--border-soft); background:var(--tint); }
.sk-bild-vorschau.is-leer{ display:none; }
.sk-bild-acts{ display:flex; flex-direction:column; gap:8px; align-items:flex-start; }
