/* KMU Navigation – Homepage-Styles */

/* ---------- NAV ---------- */
.site-nav { background: white; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; max-width: var(--maxw); margin: 0 auto; }
.nav-links { display: flex; gap: 28px; align-items: center; font-size: 14px; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { background: var(--primary); color: white !important; padding: 9px 18px; border-radius: 6px; font-weight: 600; font-size: 13px; text-decoration: none; }
.nav-cta:hover { background: #2A4A7A; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--primary); margin: 5px 0; transition: .2s; }

/* ---------- APPS STRIP ---------- */
.apps-strip { background: var(--primary); padding: 10px 0; }
.apps-strip-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.apps-strip-label { color: rgba(255,255,255,.65); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.apps-strip a { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); color: white; text-decoration: none; padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; transition: background .15s; }
.apps-strip a:hover { background: rgba(255,255,255,.18); }
.apps-strip-soon { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.04); color: rgba(255,255,255,.55); border: 1px dashed rgba(255,255,255,.25); padding: 5px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.apps-strip-soon em { font-style: normal; font-weight: 700; font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--gold, #C9A44C); }
@media (max-width: 768px) {
  .apps-strip-inner { justify-content: center; text-align: center; }
}

/* ---------- HERO ---------- */
.hero { background: linear-gradient(135deg, #F4F7FB 0%, #E8EEF7 100%); padding: 80px 0 100px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -80px; top: 60px; width: 380px; height: 380px; border: 8px solid #DCE5F2; border-radius: 50%; opacity: 0.6; }
.hero::after { content: ""; position: absolute; right: 40px; top: 180px; width: 200px; height: 200px; border: 5px solid #BFCEE5; border-radius: 50%; opacity: 0.5; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 2; }
.hero-badge { display: inline-block; background: white; padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; color: var(--accent); margin-bottom: 18px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.hero h1 { font-size: 44px; font-weight: 800; color: var(--primary); line-height: 1.15; margin-bottom: 18px; }
.hero h1 .accent { color: var(--accent); }
.hero p.lead { font-size: 18px; color: var(--text-light); margin-bottom: 28px; line-height: 1.6; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual { background: white; border-radius: 16px; box-shadow: 0 20px 50px rgba(31,56,100,0.18); padding: 22px; position: relative; z-index: 2; }
.hero-visual h3 { font-size: 13px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.mini-rating { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-rating-item { background: #F8F9FA; padding: 12px; border-radius: 8px; border-left: 3px solid var(--accent); }
.mini-rating-item .label { font-size: 11px; color: var(--text-light); margin-bottom: 4px; }
.mini-rating-item .value { font-size: 22px; font-weight: 800; color: var(--primary); }
.mini-rating-item .badge { display: inline-block; background: #D4EDDA; color: #155724; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; margin-left: 6px; }
.hero-note { background: #F0F4FA; padding: 12px; border-radius: 8px; margin-top: 12px; font-size: 12px; }
.hero-note a { color: var(--accent); font-weight: 600; }

/* ---------- TRUST ---------- */
.trust { padding: 36px 0; background: white; border-bottom: 1px solid var(--border); }
.trust-text { text-align: center; color: var(--text-light); font-size: 13px; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.trust-logos { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 24px; opacity: 0.7; }
.trust-logo { font-size: 13px; font-weight: 700; color: var(--text-light); padding: 8px 16px; border: 1px solid var(--border); border-radius: 6px;
  text-decoration: none; display: inline-block; transition: color .15s, border-color .15s, background-color .15s, transform .15s; }
/* Die Partner sind verlinkt – beim Überfahren tritt der Eintrag hervor. */
.trust-logo:hover, .trust-logo:focus-visible { color: var(--primary); border-color: var(--accent); background: #fff; transform: translateY(-1px); }
.trust-logos:hover .trust-logo { opacity: .55; }
.trust-logos:hover .trust-logo:hover { opacity: 1; }

/* ---------- SECTIONS ---------- */
.section { padding: 70px 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-eyebrow { color: var(--accent); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px; }
.section h2 { font-size: 34px; color: var(--primary); margin-bottom: 12px; font-weight: 800; }
.section .subtitle { color: var(--text-light); font-size: 17px; max-width: 660px; margin: 0 auto; }

/* ---------- SECTION INTRO BANNER (Übersichts-Checkliste über einer Karten-Reihe) ---------- */
.section-intro-banner {
  display: flex; align-items: center; gap: 20px; margin-top: 30px; padding: 20px 24px;
  background: var(--light); border: 1px solid var(--border); border-left: 4px solid var(--gold);
  border-radius: 12px;
}
.section-intro-icon { font-size: 28px; flex-shrink: 0; }
.section-intro-text { flex: 1; }
.section-intro-text h3 { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.section-intro-text p { font-size: 13.5px; color: var(--text-light); margin: 0; }
.section-intro-cta { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 760px) {
  .section-intro-banner { flex-direction: column; align-items: flex-start; }
  .section-intro-cta { align-self: stretch; text-align: center; }
}

/* ---------- DASHBOARDS ---------- */
.dashboards-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-top: 30px; }
.dashboard-card { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 24px; transition: all 0.2s; display: flex; flex-direction: column; }
.dashboard-card:hover { border-color: var(--accent); box-shadow: 0 8px 24px rgba(31,56,100,0.1); transform: translateY(-2px); }
.dashboard-card.featured { background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%); color: white; border-color: var(--primary); }
.dashboard-card.abo { background: linear-gradient(135deg, #FFF8E7 0%, #FFEAB8 100%); border-color: var(--gold); }
.dashboard-icon { font-size: 32px; margin-bottom: 14px; }
.dashboard-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--primary); }
.dashboard-card.featured h3 { color: white; }
.dashboard-card p { font-size: 14px; color: var(--text-light); margin-bottom: 16px; flex: 1; }
.dashboard-card.featured p { color: rgba(255,255,255,0.9); }
.dashboard-meta { display: flex; align-items: center; justify-content: space-between; font-size: 13px; padding-top: 14px; border-top: 1px solid var(--border); }
.dashboard-card.featured .dashboard-meta { border-top-color: rgba(255,255,255,0.2); }
.dashboard-price { font-weight: 700; color: var(--accent); }
.dashboard-card.featured .dashboard-price { color: var(--gold); }
.dashboard-card.abo .dashboard-price { color: #B8932E; }
.dashboard-cta { margin-top: 16px; }
.dashboard-sublink { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; }
.dashboard-sublink:hover { text-decoration: underline; }

/* Coming-Soon-Kacheln: Module, die noch nicht verkaufsbereit sind. */
.dashboard-card.coming-soon { position: relative; background: var(--grey-bg); }
.soon-badge {
  position: absolute; top: 14px; right: 14px; background: var(--gold); color: white;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 4px 10px; border-radius: 20px;
}
.btn-disabled { background: var(--grey-border); color: var(--text-light); cursor: default; }
/* Vorbestell-Badge, z.B. "Ab 15. Oktober live" — gerades Badge wie Coming-Soon, kein Umbruch. */
.dashboard-card.preorder { position: relative; }
.preorder-badge { white-space: nowrap; }
/* Inline-Variante des Coming-Soon-Badges für Sektions- und Karten-Überschriften. */
.soon-badge-inline {
  position: static; display: inline-block; vertical-align: middle;
  margin-left: 10px; font-size: 12px; top: auto; right: auto;
}
/* Bei ungerader Kachelzahl steht die letzte Kachel sonst allein links in der
   Zeile – zentriert sie stattdessen, aber nur im echten 3-Spalten-Layout. */
@media (min-width: 901px) {
  .dashboards-grid > .dashboard-card:last-child:nth-child(3n+1) { grid-column: 2; }
}

/* ---------- PROCESS (Ablauf Erstanalyse) ---------- */
.process { background: var(--bg); }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 30px; }
.process-step { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 24px; position: relative; }
.process-step .num { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 14px; }
.process-step h4 { color: var(--primary); font-size: 16px; margin-bottom: 8px; }
.process-step p { font-size: 13px; color: var(--text-light); }
.process-step .timing { display: inline-block; margin-top: 10px; font-size: 11px; font-weight: 700; color: var(--accent); background: var(--light); padding: 3px 10px; border-radius: 12px; }

/* ---------- SHOP ---------- */
.shop { background: var(--bg); }
.product-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 18px; margin-top: 30px; }
.product { background: white; border-radius: 10px; padding: 18px; border: 1px solid var(--border); display: flex; flex-direction: column; position: relative; }
.product.coming-soon { background: var(--grey-bg); }
.product-image { background: linear-gradient(135deg, #F0F4FA 0%, #DCE5F2 100%); border-radius: 8px; height: 120px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; font-size: 36px; color: var(--accent); }
.product h4 { font-size: 14px; color: var(--primary); margin-bottom: 6px; line-height: 1.3; }
.product .meta { font-size: 12px; color: var(--text-light); }
.product .price { color: var(--accent); font-weight: 700; font-size: 18px; margin: 8px 0; }
.product .add-cart { background: var(--primary); color: white; border: none; padding: 9px 14px; border-radius: 5px; font-size: 12px; font-weight: 600; margin-top: auto; cursor: pointer; width: 100%; text-decoration: none; display: inline-block; text-align: center; }
.product .add-cart:hover { background: #2A4A7A; }
.product .add-cart.btn-disabled, .product .add-cart.btn-disabled:hover { background: var(--grey-border); color: var(--text-light); }

/* ---------- COURSES ---------- */
.courses { background: linear-gradient(135deg, #1F3864 0%, #2A4A7A 100%); color: white; }
.courses h2 { color: white; }
.courses .subtitle { color: rgba(255,255,255,0.8); }
.course-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-top: 30px; }
.course-card { background: white; color: var(--text); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; }
.course-card .label { font-size: 11px; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.course-card h3 { font-size: 18px; color: var(--primary); margin-bottom: 10px; }
.course-card .price { font-size: 22px; font-weight: 800; color: var(--accent); margin-bottom: 14px; }
.course-card .price small { font-size: 12px; color: var(--text-light); font-weight: 500; }
.course-card ul { list-style: none; padding: 0; font-size: 13px; flex: 1; margin-bottom: 16px; }
.course-card ul li { padding: 5px 0; padding-left: 20px; position: relative; }
.course-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* ---------- BOOKING ---------- */
.booking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.booking-visual { background: white; border-radius: 16px; padding: 24px; border: 1px solid var(--border); box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
.booking-list { list-style: none; padding: 0; font-size: 14px; }
.booking-list li { padding: 8px 0; padding-left: 28px; position: relative; }
.booking-list li .check { position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* Embed placeholder (für Jotform / Payrexx / Bookings) */
.embed-placeholder {
  border: 2px dashed var(--accent); border-radius: 12px; background: #F4F7FB;
  padding: 32px 24px; text-align: center; color: var(--text-light);
}
.embed-placeholder strong { color: var(--primary); display: block; font-size: 15px; margin-bottom: 6px; }
.embed-placeholder code { background: white; padding: 2px 8px; border-radius: 4px; border: 1px solid var(--border); font-size: 12px; color: var(--primary); }
.embed-placeholder .embed-hint { font-size: 12px; margin-top: 10px; }

/* ---------- CTA BAND ---------- */
.cta-band { background: var(--primary); color: white; text-align: center; padding: 60px 0; }
.cta-band h2 { color: white; font-size: 30px; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 24px; font-size: 17px; }

@media (max-width: 900px) {
  .dashboards-grid, .product-grid, .process-steps { grid-template-columns: 1fr 1fr; }
  .course-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hero-grid, .booking-grid { grid-template-columns: 1fr; }
  .dashboards-grid, .product-grid, .process-steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: white; padding: 16px 24px; gap: 14px; border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08); align-items: flex-start;
  }
  .nav-toggle { display: block; }
  .section h2 { font-size: 26px; }
}

/* ===================================================================
   Seite "Gründung" – Merkmalslisten in den Karten und Rechtsform-
   Vergleichstabelle. Bewusst hier und nicht in einer eigenen Datei:
   die Seite nutzt sonst dasselbe Layout wie die Startseite.
   =================================================================== */

.feature-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}
.feature-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 7px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-light);
}
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 700;
}

/* Die Tabelle scrollt auf schmalen Bildschirmen für sich allein,
   damit die Seite selbst nie horizontal scrollt. */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .06);
}

.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
}
.compare-table th,
.compare-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid #e8ecf0;
  vertical-align: top;
  line-height: 1.45;
}
.compare-table thead th {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.compare-table tbody th {
  font-weight: 700;
  color: var(--primary);
  background: #f7f9fb;
  white-space: nowrap;
}
.compare-table td {
  color: var(--text-light);
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.table-note {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-light);
}

/* Kompakte Preisliste innerhalb einer Modul-Kachel (mehrere Positionen,
   die nicht alle in die eine Preiszeile der dashboard-meta passen). */
.price-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.price-list li {
  border-bottom: 1px dotted var(--border);
}
.price-list li:last-child { border-bottom: 0; }

/* Jede Zeile ist ein eigener Einstieg in die zugehörige Checkliste.
   Die ganze Zeile ist klickbar – nicht nur der Text. */
/* Zwei feste Spalten: Text links, Betrag rechts. Der Betrag steht in einer
   eigenen Spalte fester Breite und rechtsbündig – dadurch liegen die letzten
   Stellen aller Beträge exakt übereinander, egal ob 850 oder 1'200. */
.price-list a {
  display: grid;
  grid-template-columns: 1fr 72px;
  align-items: baseline;
  column-gap: 24px;
  font-size: 13px;
  line-height: 1.4;
  padding: 8px 8px 8px 0;
  margin: 0 -8px 0 0;
  color: var(--text-light);
  text-decoration: none;
  border-radius: 6px;
  transition: background-color .15s, color .15s, padding-left .15s;
}
.price-list a:hover,
.price-list a:focus-visible {
  background: var(--light);
  color: var(--primary);
  padding-left: 8px;
  margin-left: -8px;
}
.price-list a span:last-child {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  text-align: right;
  /* Ziffern mit gleicher Laufweite – sonst wandern die Stellen je nach Zahl. */
  font-variant-numeric: tabular-nums;
}
/* Kleiner Pfeil signalisiert: hier geht es weiter. */
.price-list a span:first-child::after {
  content: " →";
  opacity: 0;
  transition: opacity .15s;
}
.price-list a:hover span:first-child::after,
.price-list a:focus-visible span:first-child::after { opacity: .6; }

.price-list-note {
  font-size: 12px;
  color: var(--text-light);
  margin: -4px 0 16px;
}

/* Auf dunklen Kacheln (.featured) muss der Kontrast mitziehen. */
.dashboard-card.featured .price-list li { border-bottom-color: rgba(255, 255, 255, .2); }
.dashboard-card.featured .price-list a { color: rgba(255, 255, 255, .85); }
.dashboard-card.featured .price-list a:hover,
.dashboard-card.featured .price-list a:focus-visible {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}
.dashboard-card.featured .price-list a span:last-child { color: var(--gold); }

/* Kosten Dritter (Handelsregister, Notariat, Revisor), die zusätzlich zur
   Pauschale anfallen. Eine Zeile pro Kategorie – das liest sich ruhiger als
   eine durchlaufende Aufzählung, und die Beträge stehen untereinander. */
.cost-list {
  margin: 16px 0 4px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.cost-list-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-light);
  margin: 0 0 8px;
}
.cost-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cost-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 20px;
  align-items: baseline;
  font-size: 12.5px;
  line-height: 1.5;
  padding: 3px 0;
  color: var(--text-light);
}
/* Präzisierung unter einer Kostenposition, z. B. «ohne Übertragung
   Liegenschaft» beim Notariat. */
.cost-list li span:first-child small {
  display: block;
  font-size: 11px;
  line-height: 1.35;
  opacity: .8;
  margin-top: 1px;
}
.cost-list li span:last-child {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text);
}
/* Auf den dunklen Kacheln muss der Kontrast mitziehen. */
.dashboard-card.featured .cost-list { border-top-color: rgba(255, 255, 255, .22); }
.dashboard-card.featured .cost-list-title { color: rgba(255, 255, 255, .6); }
.dashboard-card.featured .cost-list li { color: rgba(255, 255, 255, .75); }
.dashboard-card.featured .cost-list li span:last-child { color: rgba(255, 255, 255, .95); }
