/* =========================================================================
   Marken-Theme – gemeinsame Bausteine
   -------------------------------------------------------------------------
   Wird nur geladen, wenn die Storefront ein Theme konfiguriert hat
   (Storefronts:Hosts:<host>:Theme). Zusammen mit brand-<theme>.css ergibt das
   dieselbe Typografie, dieselben Formen und dieselben Bausteine wie die
   jeweilige Produkt-Website (dort: src/styles/global.css).

   Diese Datei enthält KEINE Farben und KEINE Schriftnamen – die kommen aus der
   Marken-Datei über die Variablen in :root. So bleibt ein neuer Shop eine
   Farbdatei, keine Kopie des Layouts.
   ========================================================================= */

@supports (color: oklch(0% 0 0)) {
  :root {
    color-scheme: light;
  }
}

body[data-theme] {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Typografie ---------- */

body[data-theme] h1,
body[data-theme] h2,
body[data-theme] h3,
body[data-theme] h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
}

body[data-theme] h1 {
  font-size: clamp(2.1rem, 1.2rem + 3.4vw, 3.5rem);
}

body[data-theme] h2 {
  font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem);
}

body[data-theme] h3 {
  font-size: 1.2rem;
}

body[data-theme] p {
  text-wrap: pretty;
}

body[data-theme] .lead {
  font-size: 1.125rem;
  color: var(--ink-soft);
  font-weight: 400;
}

body[data-theme] .text-muted,
body[data-theme] .muted {
  color: var(--ink-muted) !important;
}

body[data-theme] a {
  color: var(--brand-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

body[data-theme] a:hover {
  color: var(--brand);
}

body[data-theme] :focus-visible {
  outline: 3px solid var(--brand-2);
  outline-offset: 2px;
  border-radius: 4px;
}

body[data-theme] ::selection {
  background: var(--brand-soft);
}

/* ---------- Raster ---------- */

body[data-theme] .container {
  max-width: var(--container);
}

body[data-theme] section {
  scroll-margin-top: 5.5rem;
}

/* ---------- Kopfbereich ---------- */

body[data-theme] .navbar {
  background: var(--surface) !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: none !important;
}

body[data-theme] .navbar-brand {
  font-weight: 750;
  letter-spacing: -0.01em;
  color: var(--ink) !important;
}

body[data-theme] .navbar .nav-link {
  color: var(--ink-soft);
  font-weight: 600;
}

body[data-theme] .navbar .nav-link:hover,
body[data-theme] .navbar .nav-link.active {
  color: var(--brand-strong);
}

/* ---------- Schaltflächen: Pillenform wie auf der Produkt-Website ---------- */

body[data-theme] .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  font-size: 0.975rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease,
    border-color 0.15s ease, color 0.15s ease;
}

body[data-theme] .btn:hover {
  transform: translateY(-1px);
}

body[data-theme] .btn:active {
  transform: translateY(0);
}

body[data-theme] .btn-primary {
  border-color: transparent;
  color: #fff !important;
  background-color: var(--brand);
  background-image: linear-gradient(135deg, var(--brand-2), var(--brand-strong));
  box-shadow: 0 10px 24px -12px var(--brand-shadow);
}

body[data-theme] .btn-primary:hover,
body[data-theme] .btn-primary:focus {
  box-shadow: 0 16px 30px -14px var(--brand-shadow-strong);
}

body[data-theme] .btn-outline,
body[data-theme] .btn-outline-primary {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--ink) !important;
}

body[data-theme] .btn-outline:hover,
body[data-theme] .btn-outline-primary:hover {
  background: var(--brand-soft);
  border-color: var(--brand-2);
  color: var(--brand-strong) !important;
}

body[data-theme] .btn-lg {
  padding: 0.9rem 1.6rem;
  font-size: 1.05rem;
}

/* ---------- Karten, Kacheln, Chips ---------- */

body[data-theme] .card,
body[data-theme] .app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

body[data-theme] .feature,
body[data-theme] .features-grid > * {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

body[data-theme] .feature:hover,
body[data-theme] .features-grid > *:hover {
  transform: translateY(-2px);
  border-color: var(--brand-2);
  box-shadow: var(--shadow);
}

body[data-theme] .feature h3 {
  color: var(--ink);
}

body[data-theme] .feature-more {
  color: var(--brand-strong);
  font-weight: 650;
}

/* ---------- Abschnitte und Hinweisleisten ---------- */

body[data-theme] .usp-strip {
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
}

body[data-theme] .usp-item strong {
  color: var(--ink);
}

body[data-theme] .usp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--brand-soft);
  border-radius: 50%;
  font-size: 1.25rem;
}

body[data-theme] .eyebrow,
body[data-theme] .chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

/* ---------- Produkt-Hero ---------- */

body[data-theme] .product-hero {
  padding-block: clamp(2.5rem, 2rem + 4vw, 4.5rem);
  background:
    radial-gradient(60rem 30rem at 15% -10%, var(--brand-soft), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

/* Zwei Spalten wie auf der Produkt-Website: Text links, Programmfenster rechts. */
body[data-theme] .product-hero .hero-split {
  display: grid;
  gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  body[data-theme] .product-hero .hero-split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    text-align: left;
  }

  body[data-theme] .product-hero .hero-split .product-hero-cta {
    justify-content: flex-start;
  }
}

body[data-theme] .shot {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  box-shadow: var(--shadow);
  overflow: hidden;
}

body[data-theme] .shot img {
  display: block;
  width: 100%;
  height: auto;
}

body[data-theme] .product-hero h1 {
  margin-bottom: var(--space-4);
}

body[data-theme] .product-hero .lead {
  max-width: 46rem;
  margin-inline: auto;
}

@media (min-width: 900px) {
  body[data-theme] .product-hero .lead {
    margin-inline: 0;
  }
}

body[data-theme] .product-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-5);
}

/* ---------- Preise / Editionen ---------- */

body[data-theme] .price-card,
body[data-theme] .edition-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

body[data-theme] .price-card--featured,
body[data-theme] .edition-card--featured {
  border-color: var(--brand-2);
  box-shadow: var(--shadow);
}

/* ---------- Tabellen und Formulare ---------- */

body[data-theme] .table {
  --bs-table-border-color: var(--border);
  color: var(--ink-soft);
}

body[data-theme] .form-control,
body[data-theme] .form-select {
  border-radius: var(--radius-sm);
  border-color: var(--border-strong);
}

body[data-theme] .form-control:focus,
body[data-theme] .form-select:focus {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

/* ---------- Listen: Häkchen, Schritte, FAQ ---------- */

body[data-theme] .checks {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
}

body[data-theme] .checks li {
  position: relative;
  padding-left: 1.75rem;
}

body[data-theme] .checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--accent-soft) no-repeat center / 0.7rem
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230d9488' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5'/%3E%3C/svg%3E");
}

body[data-theme] .steps-list {
  counter-reset: schritt;
  display: grid;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

body[data-theme] .steps-list > li {
  counter-increment: schritt;
  position: relative;
  padding-left: 3rem;
  color: var(--ink-soft);
}

body[data-theme] .steps-list > li::before {
  content: counter(schritt);
  position: absolute;
  left: 0;
  top: 0.05rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-weight: 700;
}

body[data-theme] .faq-list dt {
  margin-top: var(--space-4);
  font-weight: 700;
  color: var(--ink);
}

body[data-theme] .faq-list dd {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
}

body[data-theme] code {
  font-family: var(--mono);
  font-size: 0.9em;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--ink);
}

/* ---------- Fußbereich ---------- */

body[data-theme] footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  color: var(--ink-soft);
}

body[data-theme] footer a {
  color: var(--ink-soft);
}

body[data-theme] footer a:hover {
  color: var(--brand-strong);
}
