/* ------------------------------------------------------------------
   Praxisgründung Schweiz — Landingpage-Styles
   Fonts (Raleway + Nunito Sans) werden NICHT hier eingebunden: das
   Divi-Child-Theme lädt sie bereits global (custom.css + style.css →
   /fonts/*.woff2), auf jeder Seite inkl. dieser Landingpage. Hier nur
   die Design-Tokens (:root) plus die seitenspezifischen Regeln.
   ------------------------------------------------------------------ */

:root {
  /* ============================================================
     COLOR — Primary (tomedo logo / brand)
     ============================================================ */
  --color-red:            #db1f3e;  /* tomedo Red — primary brand */
  --color-red-dark:       #ad153d;  /* tomedo Dark Red */
  --color-green:          #38af4f;  /* tomedo Green — accent in logo (leaves) */
  --color-black:          #383838;  /* tomedo Black — body text, dark surfaces */

  /* ============================================================
     COLOR — Secondary (neutrals, used in print & digital)
     ============================================================ */
  --color-white:          #ffffff;
  --color-almost-white:   #f8f8f8;
  --color-lighter-grey:   #cfcfcf;
  --color-light-grey:     #999999;
  --color-mid-grey:       #787878;
  --color-dark-grey:      #525252;

  /* Reds expanded */
  --color-red-lighter:    #ff5967;
  --color-red-light:      #f24159;
  --color-red-darker:     #8a0029;

  /* ============================================================
     COLOR — Accents (for highlights, info, status)
     ============================================================ */
  --color-orange:         #fa8231;
  --color-yellow:         #fed330;
  --color-blue:           #2d98da;
  --color-purple:         #8854d0;

  /* ============================================================
     SEMANTIC TOKENS — light theme
     ============================================================ */
  --bg-canvas:            var(--color-almost-white);
  --bg-surface:           var(--color-white);
  --bg-surface-alt:       #f1f1f1;
  --bg-inverse:           var(--color-black);

  --fg-default:           var(--color-black);
  --fg-muted:             var(--color-dark-grey);
  --fg-subtle:            var(--color-mid-grey);
  --fg-disabled:          var(--color-light-grey);
  --fg-on-brand:          var(--color-white);
  --fg-on-inverse:        var(--color-white);

  --border-default:       var(--color-lighter-grey);
  --border-subtle:        #e6e6e6;
  --border-strong:        var(--color-light-grey);

  /* Brand accent */
  --accent:               var(--color-red);
  --accent-hover:         var(--color-red-dark);
  --accent-pressed:       var(--color-red-darker);
  --accent-soft:          #fde7eb;          /* derived tint of red */
  --accent-on:            var(--color-white);

  /* Status (mapped from accents) */
  --status-success:       var(--color-green);
  --status-success-soft:  #e3f4e7;
  --status-warning:       var(--color-orange);
  --status-warning-soft:  #ffeede;
  --status-info:          var(--color-blue);
  --status-info-soft:     #e0f0fb;
  --status-danger:        var(--color-red);
  --status-danger-soft:   #fde7eb;
  --status-pending:       var(--color-yellow);
  --status-pending-soft:  #fff8d9;

  /* ============================================================
     TYPOGRAPHY — families
     ============================================================ */
  --font-display:    "Raleway", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:       "Nunito Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:       ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Weights */
  --fw-display-light: 300;
  --fw-display-bold:  700;
  --fw-body:          400;
  --fw-body-bold:     700;
  --fw-body-black:    900;

  /* Type scale (modular ~1.25, body anchored at 16px) */
  --fs-xs:    12px;
  --fs-sm:    14px;
  --fs-base:  16px;
  --fs-md:    18px;
  --fs-lg:    20px;
  --fs-xl:    24px;
  --fs-2xl:   32px;
  --fs-3xl:   40px;
  --fs-4xl:   56px;
  --fs-5xl:   72px;

  --lh-tight:  1.1;
  --lh-snug:   1.25;
  --lh-base:   1.5;
  --lh-loose:  1.7;

  --tracking-tight: -0.01em;
  --tracking-none:  0;
  --tracking-wide:  0.04em;
  --tracking-cap:   0.08em;

  /* ============================================================
     SPACING — 4px base
     ============================================================ */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* ============================================================
     RADIUS / SHADOW / BORDER
     ============================================================ */
  --radius-xs:    3px;
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --radius-pill:  999px;

  --shadow-1: 0 1px 2px rgba(56,56,56,.06), 0 1px 1px rgba(56,56,56,.04);
  --shadow-2: 0 2px 6px rgba(56,56,56,.08), 0 1px 2px rgba(56,56,56,.06);
  --shadow-3: 0 8px 24px rgba(56,56,56,.10), 0 2px 6px rgba(56,56,56,.06);
  --shadow-4: 0 24px 60px rgba(56,56,56,.16), 0 8px 24px rgba(56,56,56,.08);
  --shadow-focus: 0 0 0 3px rgba(219,31,62,.25);

  /* Motion */
  --ease-standard: cubic-bezier(.2,.6,.2,1);
  --ease-in:       cubic-bezier(.4,.0,1,1);
  --ease-out:      cubic-bezier(.0,.0,.2,1);
  --dur-fast:      120ms;
  --dur-base:      180ms;
  --dur-slow:      280ms;
}

/* ==================================================================
   Praxisgründung Schweiz — Landingpage-spezifische Regeln.
   Alle im Claude-Design inline gesetzten Styles sind hier als Klassen
   ausgelagert und unter .chps-page gescoped (Erkenntnis aus den anderen
   Landing-Templates: Divi-Header/-Footer bleiben unberührt, Markup bleibt
   sauber). Reihenfolge: Canvas/Reset → Hero+Karte → Anforderungen/Karten
   → VKS-Box → Gantt → Disclaimer → Links → Reveal → Responsive.
   ================================================================== */

/* ---------- Canvas / Reset ---------- */
.chps-page {
  width: 100%;
  margin: 0 auto;
  background: #ffffff;
  font-family: var(--font-body);
  color: var(--color-black);
  overflow: hidden;
}
.chps-page, .chps-page *, .chps-page *::before, .chps-page *::after { box-sizing: border-box; }
.chps-page p { padding-bottom: 0; }
.chps-page h1, .chps-page h2, .chps-page h3,
.chps-page h4, .chps-page h5, .chps-page h6 { padding-bottom: 0; }
.chps-page img, .chps-page svg { max-width: 100%; }
html { scroll-behavior: smooth; }
.praxisgruendung-schweiz-page #main-footer { display: none !important; }
.chps-page ::selection { background: rgba(219,31,62,.16); }

/* Gemeinsamer Inhalts-Container + Section-Padding */
.chps-section { padding: 88px 64px; }
.chps-container { max-width: 1120px; margin: 0 auto; }

/* ---------- Hero + Kantons-Karte ---------- */
.chps-hero { background: #ffffff; padding: 80px 64px 100px; }
.chps-hero-inner {
  max-width: 1216px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
}
.chps-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.chps-kicker-line { width: 22px; height: 1.5px; background: var(--accent); display: inline-block; }
.chps-page .chps-hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 66px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: #383838;
  margin: 0;
}
.chps-page .chps-hero-sub {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 29px;
  line-height: 1.25;
  color: #525252;
  margin: 22px 0 0;
  max-width: 520px;
}
.chps-page .chps-hero-lead {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: #525252;
  margin: 28px 0 0;
  max-width: 540px;
}
.chps-hero-mapcol { position: relative; }
.chps-map { padding: 56px 0 0; }
.chps-map-wrap { position: relative; }
.chps-map-svg { display: block; overflow: visible; width: 100%; }
.chps-map-svg path {
  fill: #ececec;
  stroke: #ffffff;
  stroke-width: 1;
  stroke-linejoin: round;
  cursor: pointer;
  transition: fill 150ms var(--ease-standard);
}
.chps-map-tip {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%,-135%);
  background: #383838;
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  padding: 7px 10px;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(56,56,56,.16);
  transition: opacity 120ms var(--ease-standard);
  z-index: 3;
}
.chps-map-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}
.chps-map-count { display: flex; align-items: baseline; gap: 9px; }
.chps-map-count-num { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--accent); line-height: 1; }
.chps-map-count-label { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: .02em; color: #787878; }
.chps-map-selected { font-family: var(--font-body); font-size: 13px; font-weight: 700; color: #cfcfcf; }

/* ---------- Anforderungen ---------- */
.chps-anforderungen { background: #f8f8f8; border-top: 1px solid #f0f0f0; }
.chps-page .chps-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #383838;
  margin: 0;
  max-width: 850px;
}
.chps-page .chps-intro {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: #525252;
  margin: 20px 0 0;
  max-width: 820px;
}
.chps-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 48px; }
.chps-card {
  background: #ffffff;
  border: 1px solid #cfcfcf;
  border-radius: 10px;
  box-shadow: var(--shadow-1);
  padding: 32px;
  transition: box-shadow var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard);
}
.chps-card:hover { box-shadow: var(--shadow-3); transform: translateY(-2px); }
.chps-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.chps-card-icon svg { stroke: var(--accent); }
.chps-page .chps-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.25;
  color: #383838;
  margin: 0 0 12px;
}
.chps-page .chps-card-text { font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: #525252; margin: 0; }

/* ---------- VKS-Box (Zentrales Verzeichnis) ---------- */
.chps-vks {
  margin-top: 40px;
  background: var(--accent-soft);
  border: 1px solid #f6cdd5;
  border-radius: 16px;
  padding: 44px 48px;
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.chps-vks-text { flex: 1; min-width: 420px; }
.chps-vks-kicker {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.chps-page .chps-vks-p { font-family: var(--font-body); font-size: 18px; line-height: 1.6; color: #383838; margin: 0; max-width: 560px; }
.chps-vks-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.chps-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: none;
  padding: 15px 28px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(219,31,62,.25);
  transition: background var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard);
}
.chps-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }
.chps-cta-arrow { flex: none; }

/* ---------- Gantt-Zeitstrahl ---------- */
.chps-gantt { margin-top: 44px; }
.chps-gantt-hint { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: .02em; color: #999999; }
.chps-gantt-scroll { overflow-x: auto; overflow-y: hidden; margin-top: 16px; padding-bottom: 6px; }
.chps-gantt-scroll::-webkit-scrollbar { height: 10px; }
.chps-gantt-scroll::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 999px; }
.chps-gantt-scroll::-webkit-scrollbar-thumb { background: #cfcfcf; border-radius: 999px; }
.chps-gantt-scroll::-webkit-scrollbar-thumb:hover { background: #999999; }
.chps-gantt-inner { position: relative; width: 1350px; padding-top: 28px; }
.chps-gantt-axisrow { display: flex; align-items: flex-end; }
.chps-gantt-labelcol { width: 200px; flex: none; }
.chps-gantt-axis { position: relative; width: 1150px; height: 34px; }
.chps-gantt-baseline { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: #cfcfcf; }
.chps-gantt-ticklabel { position: absolute; bottom: 8px; font-family: var(--font-body); font-size: 13px; font-weight: 700; color: #787878; }
.chps-gantt-tickmark { position: absolute; bottom: 0; width: 1px; height: 6px; background: #cfcfcf; }
.chps-gantt-tick--12 { left: 20px; color: #525252; }
.chps-gantt-tick--9  { left: 290px; }
.chps-gantt-tick--6  { left: 560px; }
.chps-gantt-tick--3  { left: 830px; }
.chps-gantt-tick--0  { left: 1100px; color: var(--accent); white-space: nowrap; }
.chps-gantt-tickmark.chps-gantt-tick--0 { background: var(--accent); }
.chps-gantt-row { display: flex; align-items: center; margin-top: 16px; }
.chps-gantt-label {
  width: 200px;
  flex: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: #383838;
  padding-right: 16px;
  line-height: 1.3;
}
.chps-gantt-track { position: relative; width: 1150px; height: 52px; background: #f1f1f1; border-radius: 8px; }
.chps-gantt-bar {
  position: absolute;
  top: 6px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  cursor: default;
  overflow: hidden;
  background: #383838;
  transition: box-shadow 150ms var(--ease-standard);
}
.chps-gantt-bar:hover { box-shadow: 0 6px 18px rgba(56,56,56,.22); }
.chps-gantt-bar--1 { left: 20px; width: 495px; }
.chps-gantt-bar--2 { left: 515px; width: 405px; }
.chps-gantt-bar--3 { left: 920px; width: 180px; background: var(--accent); }
.chps-gantt-start { position: absolute; left: 220px; top: 28px; bottom: 0; width: 2px; background: var(--accent); z-index: 4; }
.chps-gantt-startlabel {
  position: absolute;
  left: 220px;
  top: 0;
  transform: translateX(-50%);
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  z-index: 5;
}
.chps-gantt-tip {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%,-130%);
  background: #383838;
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.35;
  max-width: 280px;
  text-align: center;
  padding: 8px 11px;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(56,56,56,.16);
  transition: opacity 120ms var(--ease-standard);
  z-index: 6;
}
.chps-page .chps-gantt-note { max-width: 840px; line-height: 1.7; }

/* ---------- Disclaimer ---------- */
.chps-disclaimer { background: #f1f1f1; padding: 40px 64px; }
.chps-page .chps-disclaimer-text { font-family: var(--font-body); font-size: 13px; line-height: 1.65; color: #787878; margin: 0; max-width: 1000px; }

/* ---------- Inhalts-Links + Fußnote ---------- */
.chps-page .chps-note { font-family: var(--font-body); font-size: 15px; line-height: 1.6; color: #787878; margin: 18px 0 0; }
.chps-page .chps-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard);
}
.chps-page .chps-link:hover { border-bottom-color: var(--accent); color: var(--accent-hover); }

/* ==================================================================
   Scroll-Reveal — reines CSS-Einblenden. Startzustand (opacity:0) greift
   nur mit .js-reveal (im <head> vor dem ersten Paint gesetzt) und nur bei
   prefers-reduced-motion: no-preference. WICHTIG: beide Regeln tragen den
   .js-reveal-Präfix, damit die .is-visible-Regel (eine Klasse mehr) die
   Versteck-Regel in der Spezifität schlägt.
   ================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .chps-page [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s var(--ease-standard), transform .7s var(--ease-standard);
    will-change: opacity, transform;
  }
  .js-reveal .chps-page [data-reveal].is-visible { opacity: 1; transform: none; }
}

/* ==================================================================
   Responsive — das Design ist eine feste 1440px-Desktopvorlage.
   ================================================================== */
@media (max-width: 960px) {
  .chps-page .chps-hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .chps-page .chps-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .chps-page .chps-section, .chps-page .chps-hero { padding-left: 24px; padding-right: 24px; }
  .chps-page .chps-hero { padding-top: 56px; padding-bottom: 64px; }
  .chps-page .chps-cards { grid-template-columns: 1fr; }
  .chps-page .chps-vks { padding: 32px 24px; gap: 28px; }
  .chps-page .chps-vks-text { min-width: 0; }
  .chps-page .chps-vks-actions { align-self: stretch; }
  .chps-page .chps-cta {
    white-space: normal;
    justify-content: space-between;
    width: 100%;
    text-align: left;
    padding: 16px 24px;
    line-height: 1.3;
  }
  .chps-page .chps-hero-title { font-size: 46px; }
  .chps-page .chps-hero-sub { font-size: 23px; }
  .chps-page .chps-disclaimer { padding-left: 24px; padding-right: 24px; }
}
