:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8faff;
  --text: #172033;
  --muted: #647089;
  --line: #dbe2ee;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eaf1ff;
  --danger: #b42318;
  --success: #067647;
  --warning: #b54708;
  --shadow: 0 18px 50px rgba(22, 34, 58, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.62; }
a { color: var(--primary-dark); text-underline-offset: 3px; }
a:hover { color: #123da9; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.skip-link { position: fixed; z-index: 9999; left: 12px; top: 12px; padding: 10px 14px; border-radius: 10px; background: #111827; color: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid rgba(219,226,238,.9); background: rgba(255,255,255,.92); backdrop-filter: blur(14px); }
.nav-wrap, .footer-wrap, .landing-shell { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }
.nav-wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 850; font-size: 1.15rem; text-decoration: none; }
.brand img { flex: 0 0 auto; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--muted); font-size: .94rem; font-weight: 700; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav .nav-cta { padding: 9px 13px; border-radius: 10px; background: var(--primary); color: #fff; }
.site-nav .nav-cta:hover { background: var(--primary-dark); color: #fff; }
.landing-hero { padding: clamp(64px, 9vw, 118px) 0 72px; background: radial-gradient(circle at 75% 12%, rgba(37,99,235,.16), transparent 35%), linear-gradient(180deg,#fff 0%,#f4f7fb 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(320px,.72fr); gap: clamp(36px,6vw,86px); align-items: center; }
.eyebrow { margin: 0 0 10px; color: var(--primary); font-size: .78rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 22px; font-size: clamp(2.45rem,5.7vw,5rem); line-height: 1.03; letter-spacing: -.045em; }
h2 { margin-bottom: 14px; font-size: clamp(1.75rem,3.6vw,2.8rem); line-height: 1.12; letter-spacing: -.025em; }
h3 { line-height: 1.25; }
.lead { max-width: 760px; color: #4f5d75; font-size: clamp(1.05rem,1.7vw,1.23rem); }
.muted { color: var(--muted); }
.microcopy { margin: 18px 0 0; color: var(--muted); font-size: .88rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button-row.center { justify-content: center; }
.button, button { display: inline-flex; justify-content: center; align-items: center; border: 0; border-radius: 12px; padding: 12px 18px; background: var(--primary); color: #fff; font-weight: 800; text-decoration: none; }
.button:hover, button:hover { background: var(--primary-dark); color: #fff; }
.button.secondary, button.secondary { border: 1px solid var(--line); background: #fff; color: var(--text); }
.button.secondary:hover, button.secondary:hover { background: #f8fafc; color: var(--text); }
button.danger { background: var(--danger); }
.hero-panel { padding: 28px; border: 1px solid rgba(37,99,235,.15); border-radius: 24px; background: rgba(255,255,255,.88); box-shadow: var(--shadow); }
.status-dot { display: flex; align-items: center; gap: 9px; color: var(--success); font-size: .88rem; font-weight: 800; }
.status-dot span { width: 9px; height: 9px; border-radius: 50%; background: #12b76a; box-shadow: 0 0 0 5px rgba(18,183,106,.12); }
.check-list { display: grid; gap: 14px; margin: 25px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--primary); font-weight: 900; }
.landing-section { padding: 78px 0; }
.alt-section { border-block: 1px solid var(--line); background: #fff; }
.section-intro { max-width: 720px; margin-bottom: 32px; }
.feature-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.feature-card { padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 8px 30px rgba(22,34,58,.04); }
.feature-card h3 { margin: 16px 0 8px; font-size: 1.25rem; }
.feature-card p { margin: 0; color: var(--muted); }
.feature-number { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); font-size: .76rem; font-weight: 900; }
.privacy-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(30px,6vw,82px); }
.privacy-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.privacy-list p { margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-soft); }
.callout { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 34px; border-radius: 24px; background: #172033; color: #fff; }
.callout h2 { color: #fff; }
.callout p { max-width: 780px; margin-bottom: 0; color: #cbd5e1; }
.callout .button.secondary { flex: 0 0 auto; }
.site-footer { padding: 42px 0; border-top: 1px solid var(--line); background: #fff; }
.footer-wrap { display: flex; justify-content: space-between; gap: 30px; }
.footer-wrap p { margin: 10px 0 0; color: var(--muted); font-size: .9rem; }
.footer-wrap nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 18px; }
.footer-wrap nav a { color: var(--muted); font-size: .9rem; font-weight: 700; text-decoration: none; }
.footer-brand { font-size: 1rem; }
.legal-shell { width: min(1120px, calc(100% - 32px)); margin-inline: auto; padding: 60px 0 80px; }
.narrow-legal { width: min(850px, calc(100% - 32px)); }
.legal-hero { margin-bottom: 30px; }
.legal-hero h1 { margin-bottom: 14px; font-size: clamp(2.2rem,5vw,4rem); }
.legal-layout { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 28px; align-items: start; }
.toc { position: sticky; top: 96px; display: grid; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.toc strong { margin-bottom: 4px; }
.toc a { color: var(--muted); font-size: .88rem; text-decoration: none; }
.toc a:hover { color: var(--primary-dark); }
.legal-card { padding: clamp(22px,4vw,44px); border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 10px 38px rgba(22,34,58,.05); }
.prose section + section { margin-top: 42px; padding-top: 8px; }
.prose h2 { margin-bottom: 14px; font-size: 1.55rem; }
.prose h3 { margin: 24px 0 8px; font-size: 1.08rem; }
.prose p, .prose li { color: #445169; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: 6px; }
.prose address { padding: 18px; border-left: 4px solid var(--primary); background: var(--surface-soft); font-style: normal; }
.prose blockquote { margin: 22px 0 0; padding: 18px 20px; border-left: 4px solid var(--primary); background: var(--primary-soft); color: #273c76; }
.placeholder { padding: 1px 4px; background: #fff3cd; color: #7a4b00; font-weight: 750; }
.notice { margin-bottom: 28px; padding: 16px 18px; border-radius: 14px; }
.notice.warning { border: 1px solid #f3c784; background: #fff8e8; color: #754600; }
.notice.info { border: 1px solid #bdd2ff; background: #eef4ff; color: #23417d; }
.legal-table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.legal-table th, .legal-table td { padding: 11px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table th { background: var(--surface-soft); }
.permission-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 22px 0 36px; }
.permission-card { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-soft); }
.permission-card.wide { grid-column: 1 / -1; }
.permission-card code { display: inline-block; margin-bottom: 12px; padding: 4px 8px; border-radius: 7px; background: #e4edff; color: #173f9e; font-weight: 800; }
.permission-card h3 { margin: 0 0 6px; }
.permission-card p { margin: 0; }
.error-page { min-height: 100vh; display: grid; place-content: center; justify-items: center; padding: 30px; text-align: center; }
.error-page h1 { margin: 8px 0 12px; font-size: clamp(2rem,5vw,3.5rem); }
/* Bestehendes Partner-Dashboard */
.shell { width: min(1180px, calc(100% - 28px)); margin: 0 auto; padding: 30px 0 60px; }
.hero { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 8px 28px rgba(22,34,58,.06); }
.login-card { max-width: 460px; padding: 26px; }
.login-card form { display: grid; gap: 10px; margin-top: 22px; }
label { font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(37,99,235,.16); border-color: var(--primary); }
.error { min-height: 1.25em; color: var(--danger); }
.grid { display: grid; gap: 16px; }
.stats-grid { grid-template-columns: repeat(4,minmax(0,1fr)); margin-bottom: 18px; }
.stat { padding: 20px; }
.stat .label { display: block; color: var(--muted); font-size: .85rem; margin-bottom: 8px; }
.stat strong { display: block; font-size: 1.45rem; margin-bottom: 4px; }
.section-card { padding: 22px; margin-top: 18px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.request-list { display: grid; gap: 12px; }
.request { border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 14px; }
.request h3 { margin: 0 0 6px; font-size: 1.05rem; }
.request p { margin-bottom: 6px; }
.request-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.request-actions select { width: auto; }
.badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; font-size: .74rem; font-weight: 800; background: #eef2ff; color: #3730a3; }
.badge.approved { background: #ecfdf3; color: var(--success); }
.badge.denied { background: #fef3f2; color: var(--danger); }
.badge.pending { background: #fff7ed; color: var(--warning); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 780px; }
th, td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
td { font-size: .91rem; }
.empty { padding: 18px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); text-align: center; }
.status-active { color: var(--success); }
.status-paused { color: var(--warning); }
.section-description { max-width: 720px; margin-bottom: 0; }
.rules-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.rule-panel { min-width: 0; border: 1px solid var(--line); border-radius: 15px; padding: 16px; background: #fbfcfe; }
.rule-panel h3 { margin: 0 0 7px; font-size: 1.02rem; }
.rule-panel > p { min-height: 3.1em; margin-bottom: 13px; font-size: .9rem; }
.rule-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; margin-bottom: 12px; }
.rule-form .form-message { grid-column: 1 / -1; min-height: 1.2em; margin: 0; font-size: .82rem; color: var(--muted); }
.rule-form .form-message.error { color: var(--danger); }
.rule-form .form-message.success { color: var(--success); }
.rule-list { display: grid; gap: 7px; max-height: 285px; overflow-y: auto; padding-right: 2px; }
.rule-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 9px 8px 11px; background: #fff; }
.rule-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
button.rule-remove { flex: 0 0 auto; padding: 6px 8px; border: 1px solid #f1b8b3; background: #fff; color: var(--danger); font-size: .76rem; }
button.rule-remove:hover { background: #fef3f2; }
.empty.compact { padding: 12px; font-size: .84rem; }
.device-list { display: grid; gap: 14px; }
.device-card { border: 1px solid var(--line); border-radius: 16px; padding: 17px; background: #fbfcfe; }
.device-header { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.device-title { margin: 0; font-size: 1.08rem; }
.device-meta { color: var(--muted); font-size: .82rem; }
.browser-list { display: grid; gap: 8px; }
.browser-row { display: grid; grid-template-columns: 90px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 10px 11px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.browser-name { font-weight: 800; }
.browser-profiles { display: grid; gap: 5px; }
.profile-row { display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: .82rem; }
.device-rename { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; max-width: 360px; }
@media (max-width: 900px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .hero-grid, .privacy-grid, .legal-layout { grid-template-columns: 1fr; }
  .hero-panel { max-width: 620px; }
  .feature-grid { grid-template-columns: 1fr; }
  .toc { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .request { grid-template-columns: 1fr; }
  .request-actions { justify-content: flex-start; }
}
@media (max-width: 650px) {
  .landing-hero { padding-top: 52px; }
  .privacy-list, .permission-grid, .rules-grid { grid-template-columns: 1fr; }
  .permission-card.wide { grid-column: auto; }
  .callout, .footer-wrap { align-items: flex-start; flex-direction: column; }
  .footer-wrap nav { justify-content: flex-start; }
  .toc { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero { align-items: flex-start; }
  .section-heading { align-items: flex-start; }
  .browser-row { grid-template-columns: 78px minmax(0,1fr); }
  .browser-row > :last-child { grid-column: 1 / -1; }
}
