/* ============================================================
   Tokens – Light (default)
   ============================================================ */
:root {
  color-scheme: light dark;
  --bg:           #f4f7fb;
  --surface:      #ffffff;
  --surface-alt:  #eef3f9;
  --text:         #122033;
  --muted:        #5b6b7f;
  --primary:      #2563eb;
  --primary-dark: #1d4ed8;
  --primary-bg:   #dbeafe;
  --border:       #d8e1ec;
  --shadow:       0 2px 10px rgba(18,32,51,.07);
  --shadow-md:    0 6px 24px rgba(18,32,51,.09);
  --radius:       16px;
  --radius-pill:  999px;
  --container:    1120px;

  --success:      #1a7a3c;
  --warning:      #b45309;

  /* hero gradient stops */
  --hero-grad-a:  #e8f0fc;
  --hero-grad-b:  #f4f7fb;
}

/* ============================================================
   Tokens – Dark
   ============================================================ */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #0f1621;
    --surface:      #172030;
    --surface-alt:  #1c2a3d;
    --text:         #e2eaf5;
    --muted:        #7e95b0;
    --primary:      #4d8ef7;
    --primary-dark: #3b7cf5;
    --primary-bg:   #1a3160;
    --border:       #263347;
    --shadow:       0 2px 10px rgba(0,0,0,.28);
    --shadow-md:    0 6px 24px rgba(0,0,0,.36);

    --hero-grad-a:  #111d30;
    --hero-grad-b:  #0f1621;
  }
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 68px; overflow-x: hidden; }
body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin-top: 0; line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: clamp(1.875rem, 4.5vw, 3.25rem); margin-bottom: 18px; }
h2 { font-size: clamp(1.5rem,   3vw,   2.25rem); margin-bottom: 12px; }
h3 { font-size: 1.0625rem; margin-bottom: 8px; }
a  { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: none; }
img { display: block; max-width: 100%; }
ul[class] { list-style: none; }

/* ============================================================
   Layout
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
.narrow { max-width: 660px; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; height: 60px;
}
.brand {
  font-weight: 700; font-size: 1.0625rem;
  color: var(--text); flex-shrink: 0; letter-spacing: -.01em;
}
.brand:hover { color: var(--primary); }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.nav a {
  display: block; padding: 6px 12px; border-radius: 8px;
  color: var(--muted); font-size: .9375rem; font-weight: 600;
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.nav-crosslink {
  margin-left: 4px;
  color: var(--muted) !important;
  font-size: .875rem !important;
  opacity: .75;
}
.nav-crosslink:hover { opacity: 1; }

/* ============================================================
   Sections
   ============================================================ */
.hero, .section { padding: 56px 0; }
.section-contact { padding-top: 40px; padding-bottom: 56px; }
.alt { background: var(--surface-alt); }

/* ============================================================
   Hero
   ============================================================ */
.hero { background: linear-gradient(160deg, var(--hero-grad-a) 0%, var(--hero-grad-b) 55%); }
.hero-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 28px; align-items: start;
}
.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: .8125rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--primary);
}
.lead {
  font-size: 1.0625rem; color: var(--muted);
  max-width: 580px; margin-bottom: 28px; line-height: 1.7;
}
.section-intro {
  font-size: 1rem; color: var(--muted);
  max-width: 660px; line-height: 1.7; margin-bottom: 32px;
}
.cta-row {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}

/* Hero preview card */
.preview-card { align-self: start; }
.preview-label {
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); margin-bottom: 14px;
}
.feature-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.feature-list li {
  font-size: .9375rem; color: var(--text);
  padding-left: 20px; position: relative;
}
.feature-list li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--primary);
}

/* ============================================================
   Grid
   ============================================================ */
.grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.top-gap { margin-top: 28px; }

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px;
}
.feature-card { transition: transform .18s ease, box-shadow .18s ease; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* Contact card */
.contact-card { width: 100%; }
.contact-card p + p { margin-top: 6px; }
.contact-card strong { font-size: 1.0625rem; }
.contact-card a { font-weight: 600; font-size: 1.0625rem; }

/* ============================================================
   Buttons
   ============================================================ */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px;
  border-radius: var(--radius-pill); border: 1.5px solid var(--primary);
  font-family: inherit; font-size: .9375rem; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s,
              transform .15s, box-shadow .15s;
}
.button:hover    { transform: translateY(-1px); text-decoration: none; }
.button:active   { transform: translateY(0); }
.button.primary  { background: var(--primary); color: #fff; }
.button.primary:hover {
  background: var(--primary-dark); border-color: var(--primary-dark); color: #fff;
  box-shadow: 0 4px 14px rgba(37,99,235,.28);
}
.button.secondary { background: var(--surface); color: var(--primary); }
.button.secondary:hover {
  background: var(--primary-bg); color: var(--primary-dark); border-color: var(--primary);
}

/* ============================================================
   Service grid (5 cards, free-flow)
   ============================================================ */
.service-grid { gap: 20px; }

/* ============================================================
   Package cards
   ============================================================ */
.pkg-grid { gap: 20px; }

.pkg-card {
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.pkg-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.pkg-card-highlight {
  border-top: 3px solid var(--primary);
}

.pkg-badge {
  display: inline-block;
  font-size: .75rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}

.pkg-header { margin-bottom: 14px; }
.pkg-header h3 { margin-bottom: 4px; }

.pkg-subtitle {
  font-size: .875rem; color: var(--muted); margin: 0;
}

.pkg-desc {
  font-size: .9375rem; color: var(--muted);
  line-height: 1.65; margin-bottom: 18px;
}

.pkg-list {
  list-style: none; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
  flex: 1; margin-bottom: 20px;
}
.pkg-list li {
  font-size: .9rem; color: var(--text);
  padding-left: 18px; position: relative; line-height: 1.5;
}
.pkg-list li::before {
  content: ''; position: absolute; left: 0; top: 6px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
  opacity: .7;
}

.pkg-footer {
  border-top: 1px solid var(--border);
  padding-top: 16px; margin-top: auto;
}
.pkg-price {
  font-size: 1.25rem; font-weight: 700;
  color: var(--text); margin-bottom: 4px;
}
.pkg-note {
  font-size: .8125rem; color: var(--muted); line-height: 1.5;
}

/* ============================================================
   Pricing table
   ============================================================ */
.pricing-card { padding: 0; overflow: hidden; }
.price-table {
  width: 100%; border-collapse: collapse;
  font-size: .9375rem;
}
.price-table td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  line-height: 1.4;
}
.price-table tr:last-child td { border-bottom: none; }
.price-table tbody tr:nth-child(even) td {
  background: rgba(238,243,249,.4);
}
@media (prefers-color-scheme: dark) {
  .price-table tbody tr:nth-child(even) td {
    background: rgba(255,255,255,.03);
  }
}
.price-val {
  text-align: right;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.pricing-note-card {
  display: flex; flex-direction: column; justify-content: center;
}
.pricing-note-label {
  font-size: .75rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 10px;
}
.pricing-note-card p {
  font-size: .9375rem; color: var(--muted); line-height: 1.65;
}

/* ============================================================
   Steps / Arbeitsweise
   ============================================================ */
.steps-grid { gap: 20px; }

.step-card { position: relative; }
.step-num {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary-bg); color: var(--primary);
  font-size: .875rem; font-weight: 700;
  margin-bottom: 14px; flex-shrink: 0;
}

/* ============================================================
   Limits / fairness
   ============================================================ */
.limits-card { max-width: 720px; }
.limits-list {
  list-style: none; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.limits-list li {
  font-size: .9375rem; color: var(--muted);
  padding-left: 20px; position: relative; line-height: 1.6;
}
.limits-list li::before {
  content: '–'; position: absolute; left: 0;
  color: var(--border); font-weight: 700;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-row > p { font-size: .875rem; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px; }
.footer-links a {
  display: block; padding: 4px 10px; border-radius: 8px;
  font-size: .875rem; color: var(--muted); font-weight: 600;
  transition: color .15s, background .15s;
}
.footer-links a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }

/* ============================================================
   Legal pages
   ============================================================ */
.legal-main { padding: 52px 0 80px; }
.legal-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px;
}
.legal-card h1 { font-size: clamp(1.5rem,3vw,2rem); margin-bottom: 6px; }
.legal-card h2 { font-size: 1.0625rem; font-weight: 600; margin-top: 32px; margin-bottom: 8px; }
.legal-card p, .legal-card li {
  font-size: .9375rem; color: var(--muted); line-height: 1.7; margin-bottom: 8px;
}
.legal-card ul { padding-left: 18px; margin-bottom: 10px; }
.legal-card a:hover { text-decoration: underline; }
.legal-date {
  font-size: .875rem; color: var(--muted);
  margin-bottom: 24px; padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   Focus / accessibility
   ============================================================ */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 3px; }

/* ============================================================
   Responsive – 760px+
   ============================================================ */
@media (min-width: 760px) {
  .hero, .section { padding: 80px 0; }
  .section-contact { padding-top: 56px; padding-bottom: 72px; }

  .hero-grid { grid-template-columns: 3fr 2fr; gap: 48px; align-items: center; }

  .grid.two      { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.three    { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .service-grid  { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pkg-grid      { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-grid    { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .legal-card { padding: 44px; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
