:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --accent-bg: #e0f2fe;
  --success-bg: #dcfce7;
  --success-text: #166534;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  --radius: 14px;
}

[data-theme="dark"] {
  --bg: #0b1120;
  --surface: #111827;
  --surface-alt: #1e293b;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #1e293b;
  --primary: #38bdf8;
  --primary-hover: #7dd3fc;
  --accent-bg: rgba(56, 189, 248, 0.12);
  --success-bg: rgba(34, 197, 94, 0.15);
  --success-text: #4ade80;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: system-ui, -apple-system, sans-serif; }
body { background: var(--bg); color: var(--text); line-height: 1.5; }
body.embed-mode .sidebar, body.embed-mode .topbar, body.embed-mode .seo-text, body.embed-mode .embed-trigger { display: none !important; }
body.embed-mode .workspace { padding: 14px; max-width: 100%; }

.app-shell { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: 275px; background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 20px; position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 12px; cursor: pointer; margin-bottom: 18px; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, #0284c7, #06b6d4); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 16px;
}
.brand strong { display: block; font-size: 17px; }
.brand span { font-size: 12px; color: var(--text-muted); }

.search-box input {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface-alt); color: var(--text); font-size: 14px; margin-bottom: 14px;
}

.nav-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 5px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px;
  cursor: pointer; font-size: 14px; font-weight: 500; color: var(--text-muted); transition: 0.15s;
}
.nav-item:hover, .nav-item.active { background: var(--accent-bg); color: var(--primary); font-weight: 600; }

.sidebar-footer { padding-top: 14px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.btn-ghost {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border); background: var(--surface-alt);
  color: var(--text); border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 13px;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* Main Content */
.main-content { flex: 1; display: flex; flex-direction: column; }
.topbar {
  height: 64px; background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 0 28px; display: flex; align-items: center; justify-content: space-between;
}
.menu-btn { display: none; background: none; border: none; font-size: 22px; color: var(--text); cursor: pointer; }
.breadcrumb { font-weight: 600; font-size: 15px; }
.topbar-actions { display: flex; gap: 8px; align-items: center; }
.badge { background: var(--accent-bg); color: var(--primary); padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; }

.workspace { max-width: 1060px; width: 100%; margin: 0 auto; padding: 28px; }

/* Hub Cards */
.hero { margin-bottom: 24px; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; }
.hero h1 { font-size: 26px; margin-bottom: 4px; }
.hero p { color: var(--text-muted); font-size: 15px; }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); transition: transform 0.15s;
}
.hub-card { cursor: pointer; }
.hub-card:hover { transform: translateY(-3px); border-color: var(--primary); }
.hub-icon { font-size: 28px; margin-bottom: 10px; }
.hub-tag { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--primary); font-weight: 700; }
.hub-card h3 { margin: 4px 0 8px; font-size: 17px; }
.hub-card p { font-size: 13px; color: var(--text-muted); }

/* Calculator Layout */
.calc-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 22px; align-items: start; }
.form-group { margin-bottom: 16px; }
.form-group label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group select {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface-alt); color: var(--text); font-size: 15px;
}
.form-group input[type="range"] { padding: 0; accent-color: var(--primary); }

.result-box { background: var(--surface-alt); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.result-main { font-size: 30px; font-weight: 800; color: var(--primary); }
.result-label { font-size: 13px; color: var(--text-muted); }
.result-list { list-style: none; margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.result-list li { display: flex; justify-content: space-between; font-size: 14px; padding-bottom: 6px; border-bottom: 1px dashed var(--border); }

/* Smart Advisor Box (KI-Klartext-Empfehlung) */
.advisor-box {
  margin-top: 14px; padding: 12px 14px; border-radius: 10px;
  background: var(--success-bg); color: var(--success-text); font-size: 13px; font-weight: 500;
}

.action-row { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.btn-primary {
  flex: 1; padding: 10px 14px; border: none; border-radius: 10px; background: var(--primary);
  color: #fff; font-weight: 600; cursor: pointer; font-size: 13px;
}
.btn-primary:hover { background: var(--primary-hover); }

/* High-Converting Product Deal Card */
.affiliate-box {
  margin-top: 22px; padding: 20px 22px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--surface), var(--accent-bg));
  border: 2px solid var(--primary);
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.12);
}
.deal-badge {
  display: inline-block; background: #fef08a; color: #854d0e;
  font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px;
  text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 6px;
}
.affiliate-box h4 { font-size: 17px; margin-bottom: 4px; color: var(--text); }
.affiliate-box p { font-size: 13px; color: var(--text-muted); max-width: 560px; }
.affiliate-cta-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.affiliate-btn {
  padding: 13px 22px; background: linear-gradient(180deg, #ffd814, #f7ca00);
  color: #0f1111 !important; border: 1px solid #fcd200; text-decoration: none;
  border-radius: 99px; font-size: 14px; font-weight: 800; white-space: nowrap;
  box-shadow: 0 3px 10px rgba(247, 202, 0, 0.35); transition: transform 0.15s, box-shadow 0.15s;
}
.affiliate-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(247, 202, 0, 0.5); }
.affiliate-sub { font-size: 11px; color: var(--text-muted); }


/* Modal für Embed-Code */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); display: none;
  place-items: center; z-index: 100; padding: 20px;
}
.modal-backdrop.open { display: grid; }
.modal-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  max-width: 520px; width: 100%; padding: 22px; box-shadow: var(--shadow);
}
.modal-card textarea {
  width: 100%; height: 95px; margin: 12px 0; padding: 10px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface-alt); color: var(--text); font-family: monospace; font-size: 12px;
}

.toast {
  position: fixed; bottom: 20px; right: 20px; background: #0f172a; color: #fff;
  padding: 12px 18px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: 0.2s; z-index: 200;
}
.toast.show { opacity: 1; }

@media (max-width: 820px) {
  .sidebar { position: fixed; left: -280px; z-index: 50; transition: 0.25s; }
  .sidebar.open { left: 0; }
  .menu-btn { display: block; }
  .calc-grid { grid-template-columns: 1fr; }
}
/* Startseiten-Filter & Schnellsuche */
.hub-controls {
  display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px;
}
.hub-search-big {
  width: 100%; padding: 14px 18px; border-radius: 12px; border: 2px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 16px; box-shadow: var(--shadow);
}
.hub-search-big:focus { outline: none; border-color: var(--primary); }
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill-btn {
  padding: 7px 14px; border-radius: 99px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-muted); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: 0.15s;
}
.pill-btn:hover, .pill-btn.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

/* bennisrechner-dark-pro-v1 */
*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif !important; }
header, .navbar, .topbar {
  position: sticky !important; top: 8px !important; z-index: 9999 !important;
  max-width: 1120px !important; width: 96vw !important; margin: 10px auto 16px !important;
  padding: 12px 20px !important; border-radius: 20px !important;
  background: #090f1d !important; border: 1.5px solid #10b981 !important;
  box-shadow: 0 16px 40px rgba(2,6,23,0.35) !important;
  display: flex !important; align-items: center !important; justify-content: center !important; gap: 14px !important; flex-wrap: wrap !important;
}
header a, .navbar a, .topbar a { color: #f8fafc !important; font-weight: 700 !important; text-decoration: none !important; }
header a:hover, .navbar a:hover, .topbar a:hover { color: #34d399 !important; }
.bb-switch-btn {
  display: inline-flex !important; align-items: center !important; gap: 6px !important;
  background: #10b981 !important; color: #052e16 !important;
  padding: 6px 13px !important; border-radius: 99px !important;
  font-size: 12.5px !important; font-weight: 900 !important; text-decoration: none !important;
  box-shadow: 0 0 14px rgba(16,185,129,0.4) !important;
}
@media (max-width: 760px) {
  header, .navbar, .topbar { position: relative !important; top: 0 !important; padding: 10px 12px !important; }
  #bb-calc-footer { flex-direction: column !important; align-items: flex-start !important; }
}

/* bennisrechner-dark-pro-v2 */
*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif !important; }
header, .navbar, .topbar {
  background: transparent !important; border: none !important; box-shadow: none !important;
  position: static !important; margin: 0 0 12px !important; padding: 0 !important;
  display: flex !important; justify-content: flex-end !important; align-items: center !important; gap: 10px !important;
}
aside, .sidebar {
  background: #090f1d !important; color: #f8fafc !important;
  border-right: 1.5px solid rgba(16,185,129,0.35) !important;
}
aside a, .sidebar a { color: #cbd5e1 !important; border-radius: 10px !important; }
aside a:hover, .sidebar a:hover, aside a.active, .sidebar a.active {
  background: rgba(16,185,129,0.18) !important; color: #6ee7b7 !important;
}
aside input, .sidebar input {
  background: #111b2e !important; color: #fff !important; border: 1px solid rgba(16,185,129,0.4) !important;
}
.bb-switch-btn {
  display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 6px !important;
  background: #10b981 !important; color: #052e16 !important;
  padding: 8px 14px !important; border-radius: 12px !important;
  font-size: 13px !important; font-weight: 900 !important; text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(16,185,129,0.35) !important; margin-top: 8px !important;
}
@media (max-width: 760px) {
  #bb-calc-footer { flex-direction: column !important; align-items: flex-start !important; }
}

/* bennisrechner-harmony-v3 */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  max-width: 100%; overflow-x: hidden;
  background: #f4f7f6 !important; color: #0f172a !important;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif !important;
}
aside, .sidebar {
  background: #ffffff !important; color: #0f172a !important;
  border-right: 1.5px solid #e2e8f0 !important;
  box-shadow: 4px 0 20px rgba(15,23,42,0.03) !important;
}
aside a, .sidebar a {
  color: #334155 !important; font-weight: 600 !important; border-radius: 12px !important;
  transition: all .15s ease !important;
}
aside a:hover, .sidebar a:hover {
  background: #f0fdf4 !important; color: #047857 !important;
}
aside a.active, .sidebar a.active {
  background: #064e3b !important; color: #ffffff !important; font-weight: 700 !important;
}
aside input, .sidebar input {
  background: #f8fafc !important; color: #0f172a !important;
  border: 1.5px solid #cbd5e1 !important; border-radius: 12px !important;
}
aside .logo-badge, .sidebar .logo-badge, aside [class*="logo"] div:first-child {
  background: linear-gradient(135deg, #064e3b 0%, #10b981 100%) !important;
  color: #ffffff !important; border-radius: 12px !important;
}
header, .navbar, .topbar {
  background: transparent !important; border: none !important; box-shadow: none !important;
  position: static !important; margin: 0 0 12px !important; padding: 0 !important;
  display: flex !important; justify-content: flex-end !important; align-items: center !important; gap: 10px !important;
}
.bb-switch-btn {
  display: flex !important; align-items: center !important; justify-content: center !important; gap: 6px !important;
  background: #090f1d !important; color: #6ee7b7 !important; border: 1.5px solid #10b981 !important;
  padding: 9px 14px !important; border-radius: 12px !important;
  font-size: 13px !important; font-weight: 800 !important; text-decoration: none !important;
  box-shadow: 0 6px 16px rgba(6,78,59,0.14) !important; margin: 10px 0 !important;
}
.bb-switch-btn:hover { background: #064e3b !important; color: #ffffff !important; }
@media (max-width: 760px) {
  #bb-calc-footer { flex-direction: column !important; align-items: flex-start !important; }
}

/* bennisrechner-cockpit-v4 */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  max-width: 100%; overflow-x: hidden;
  background: #f4f7f6 !important; color: #0f172a !important;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif !important;
  margin: 0 !important; padding: 0 !important;
}
aside, .sidebar, #sidebar, header, .navbar, .topbar { display: none !important; }
main, .main, .content, .container, #app {
  margin-left: auto !important; margin-right: auto !important;
  max-width: 1120px !important; width: 96vw !important; padding-top: 6px !important;
}

.br-cockpit {
  position: sticky; top: 8px; z-index: 9999;
  max-width: 1120px; width: 96vw; margin: 10px auto 18px;
  border-radius: 20px; background: #090f1d;
  border: 1.5px solid #10b981;
  box-shadow: 0 18px 42px rgba(2,6,23,0.34);
  overflow: hidden;
}
.br-row-top {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 10px; padding: 11px 18px;
  border-bottom: 1px solid rgba(16,185,129,0.22);
}
.br-brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 900; color: #ffffff; text-decoration: none; margin-right: 6px;
}
.br-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 99px;
  background: rgba(255,255,255,0.07); color: #f8fafc;
  font-size: 13px; font-weight: 700; text-decoration: none; transition: all .15s;
}
.br-pill:hover, .br-pill.active { background: #10b981; color: #052e16; }
.br-switch {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 99px;
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  color: #052e16; font-size: 13px; font-weight: 900; text-decoration: none;
  box-shadow: 0 0 14px rgba(16,185,129,0.45);
}
.br-row-tools {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 6px; padding: 9px 14px; background: #0d1629;
}
.br-tool {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 10px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  color: #cbd5e1; font-size: 12px; font-weight: 600; text-decoration: none; transition: all .15s;
}
.br-tool:hover, .br-tool.active {
  background: rgba(16,185,129,0.22); border-color: #10b981; color: #6ee7b7;
}
@media (max-width: 760px) {
  .br-cockpit { position: relative; top: 0; }
  .br-row-tools { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .br-tool { white-space: nowrap; flex-shrink: 0; }
  #bb-calc-footer { flex-direction: column !important; align-items: flex-start !important; }
}

/* bennisrechner-sidebars-v9 */
.br-side {
  position: fixed; top: 138px; width: 175px; z-index: 900;
  background: #ffffff; border: 1.5px solid #cbd5e1; border-radius: 18px;
  padding: 12px; box-shadow: 0 10px 26px rgba(15,23,42,0.08);
  font-size: 12px; color: #0f172a;
}
.br-side-left { left: 12px; }
.br-side-right { right: 12px; }
.br-side-tag { font-size: 10px; font-weight: 800; color: #64748b; text-transform: uppercase; margin-bottom: 8px; text-align: center; }
.br-side-card { display: block; padding: 10px; border-radius: 12px; background: #f8fafc; border: 1px solid #e2e8f0; text-decoration: none; color: #0f172a; margin-bottom: 9px; }
.br-side-card:hover { border-color: #10b981; background: #f0fdf4; }
.br-side-btn { display: block; margin-top: 7px; padding: 6px 8px; border-radius: 8px; background: #f59e0b; color: #1e293b; font-weight: 800; text-align: center; font-size: 11px; }
@media (max-width: 1480px) {
  .br-side { position: static; width: 96vw; max-width: 1120px; margin: 14px auto; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; }
  .br-side-card { flex: 1 1 260px; margin-bottom: 0; }
}
.legal-wrap { max-width: 1120px; width: 96vw; margin: 20px auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.legal-card { background: #ffffff; border: 1.5px solid #e2e8f0; border-radius: 20px; padding: 22px; box-shadow: 0 10px 26px rgba(15,23,42,0.05); }
.legal-card h2 { margin-top: 0; color: #064e3b; font-size: 19px; }
.legal-card input, .legal-card textarea { width: 100%; padding: 10px 12px; margin-bottom: 10px; border-radius: 10px; border: 1.5px solid #cbd5e1; font-family: inherit; }
.legal-card button { width: 100%; padding: 11px; border: 0; border-radius: 12px; background: #10b981; color: #052e16; font-weight: 900; cursor: pointer; }

/* hide-middle-banners-v10 */
.partner-bar, .affiliate-banner, [class*="partner-grid"], [class*="promo-banner"], [class*="prime-banner"] {
  display: none !important;
}
