/* ---------------------------------------------------
   VOXIL Suite — Partnerbereich (/partner)
   Eigenständiges Stylesheet, keine Abhängigkeit zu styles.css.
   Bewusst dauerhaft dunkel (Navy/Schiefergrau) — unabhängig von
   prefers-color-scheme — als eigenständigerer, "technischerer" Look
   für die B2B/IT-Zielgruppe. Farbwerte identisch zum bestehenden
   Dark-Mode-Theme der Hauptseite übernommen, damit beide Seiten
   sichtbar zur selben Marke gehören.
--------------------------------------------------- */

:root {
  --paper: #12161e;
  --paper-elevated: #1a1f2a;
  --paper-sunken: #0d1017;
  --ink: #eee9dc;
  --ink-muted: #99a0ae;
  --border: #2b3140;

  --blue: #6fa1de;
  --blue-soft: rgba(94, 146, 214, 0.16);
  --petrol: #50b8bd;
  --petrol-soft: rgba(80, 184, 189, 0.16);
  --green: #5abd8a;
  --green-soft: rgba(90, 189, 138, 0.16);
  --orange: #e09858;
  --orange-soft: rgba(224, 152, 88, 0.16);
  --slate: #94a3b8;
  --slate-soft: rgba(148, 163, 184, 0.16);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 999px;

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.5), 0 14px 30px -20px rgba(0, 0, 0, 0.7);

  --font-display: "Iowan Old Style", "Palatino Linotype", "Source Serif 4", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
  text-wrap: balance;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.partner-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand span {
  color: var(--ink-muted);
  font-weight: 400;
  font-style: italic;
}

.brand-mark {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--paper);
}

.brand-mark svg {
  width: 16px;
  height: 16px;
}

.partner-tag {
  margin: 0;
  padding-left: 40px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-back {
  font-size: 0.82rem;
  color: var(--ink-muted);
  border-bottom: 1px dashed var(--border);
}

.header-back:hover {
  color: var(--ink);
}

.nav-cta {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.nav-cta:hover {
  border-color: var(--ink-muted);
  background: var(--paper-elevated);
}

/* ---------- Hero ---------- */

.partner-hero {
  padding: 88px 0 64px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 760px;
}

.hero-eyebrow {
  display: inline-block;
  margin: 0 0 24px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.partner-hero h1 {
  margin: 0 0 22px;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.hero-sub {
  margin: 0 auto 40px;
  max-width: 620px;
  color: var(--ink-muted);
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: var(--blue);
  color: #0d1017;
  box-shadow: 0 10px 22px -12px rgba(94, 146, 214, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -12px rgba(94, 146, 214, 0.55);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--ink-muted);
  background: var(--paper-elevated);
}

/* ---------- Generic sections ---------- */

.p-section {
  padding: 84px 0;
  border-bottom: 1px solid var(--border);
}

.p-section-alt {
  background: var(--paper-sunken);
}

.section-title {
  margin: 0 0 14px;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-title-center {
  text-align: center;
}

.section-sub {
  margin: 0 0 40px;
  color: var(--ink-muted);
  font-size: 0.98rem;
  max-width: 720px;
}

.section-sub-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.two-col p + p {
  margin-top: 14px;
}

.lede {
  color: var(--ink-muted);
  font-size: 1.02rem;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.stat-box {
  padding: 20px;
  background: var(--paper-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.stat-box .stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 4px;
}

.stat-box .stat-label {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* ---------- Hardware-Klassen-Cards ---------- */

.hw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.hw-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px 26px;
  background: var(--paper-elevated);
  border: 1px solid var(--border);
  border-top: 3px solid var(--slate);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.hw-card-lite { border-top-color: var(--slate); }
.hw-card-pro { border-top-color: var(--blue); }
.hw-card-advanced { border-top-color: var(--petrol); }

.hw-tier-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
}

.hw-card-lite .hw-tier-name { color: var(--slate); }
.hw-card-pro .hw-tier-name { color: var(--blue); }
.hw-card-advanced .hw-tier-name { color: var(--petrol); }

.hw-ram-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hw-card-lite .hw-ram-badge { background: var(--slate-soft); color: var(--slate); }
.hw-card-pro .hw-ram-badge { background: var(--blue-soft); color: var(--blue); }
.hw-card-advanced .hw-ram-badge { background: var(--petrol-soft); color: var(--petrol); }

.hw-feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.hw-feature-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.hw-feature-list svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--green);
}

.hw-card-note {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: 0.78rem;
  color: var(--ink-muted);
}

/* ---------- Preis- & Margenstruktur ---------- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.price-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 26px 24px;
  background: var(--paper-elevated);
  border: 1px solid var(--border);
  border-top: 3px solid var(--slate);
  border-radius: var(--radius-lg);
  text-align: center;
}

.price-card-lite { border-top-color: var(--slate); }
.price-card-pro { border-top-color: var(--blue); }
.price-card-advanced { border-top-color: var(--petrol); }

.price-tier-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.price-card-lite .price-tier-name { color: var(--slate); }
.price-card-pro .price-tier-name { color: var(--blue); }
.price-card-advanced .price-tier-name { color: var(--petrol); }

.price-ram {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.price-uvp {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--ink);
}

.price-uvp span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.price-split {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.margin-callout {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 26px;
  background: var(--green-soft);
  border: 1px solid var(--green);
  border-radius: var(--radius-lg);
  text-align: center;
}

.margin-callout h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--green);
}

.margin-callout p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink);
}

/* ---------- MSA / Service-Hoheit / Preishoheit ---------- */

.principle-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.principle-card {
  padding: 26px 24px;
  background: var(--paper-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.principle-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.principle-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.principle-card p + p {
  margin-top: 10px;
}

/* ---------- Compliance ---------- */

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.compliance-item {
  padding: 22px 18px;
  background: var(--paper-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
}

.compliance-item .compliance-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  border-radius: var(--radius-md);
  background: var(--green-soft);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.compliance-item .compliance-icon svg { width: 20px; height: 20px; }

.compliance-item h4 {
  margin: 0 0 6px;
  font-size: 0.92rem;
  font-weight: 700;
}

.compliance-item p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* ---------- Diagramm & Mockup Figures ---------- */

.figure-block {
  background: var(--paper-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  overflow-x: auto;
}

.figure-caption {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.figure-caption strong {
  color: var(--ink);
}

.mockup-disclaimer {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.74rem;
  color: var(--ink-muted);
  font-style: italic;
}

/* ---------- Downloads & Kontakt ---------- */

.downloads-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.form-note {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.kontakt-note {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.kontakt-note a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Footer ---------- */

.partner-footer {
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-tagline {
  margin: 0;
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 0.86rem;
  color: var(--ink-muted);
}

.footer-links a:hover { color: var(--ink); }

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .compliance-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hw-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .principle-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .partner-hero { padding: 64px 0 48px; }
  .p-section { padding: 56px 0; }
  .compliance-grid { grid-template-columns: 1fr; }
  .header-inner { justify-content: center; text-align: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
