/* ─── CSS Custom Properties ───────────────────────────────────────
   Die --sl-* und --bs-* stehen in static/css/marke.css und werden von
   jeder Seite vor dieser Datei geladen. Sie liegen dort und nicht
   hier, weil das Trading Journal sie ebenfalls braucht, diese Datei
   aber nicht laden kann — body wird gleich unten hell eingefaerbt.
   ──────────────────────────────────────────────────────────────── */

/* ─── Base ───────────────────────────────────────────────────── */
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--sl-text);
  background-color: #fff;
}

h1, h2, h3, .display-heading {
  font-family: 'Lora', serif;
  font-weight: 600;
}

/* Abkuerzungen mit Erklaerung (static/js/abkuerzungen.js).

   Angesprochen wird bewusst `[data-bs-toggle]` und NICHT `abbr[title]`:
   Bootstrap raeumt das title-Attribut beim Anlegen des Tooltips weg und legt
   den Text unter data-bs-original-title ab. Ueber `abbr[title]` verschwaende
   die Markierung also genau dort, wo der Tooltip ueberhaupt erst wirkt. */
abbr[data-bs-toggle="tooltip"] {
  text-decoration: underline dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  cursor: help;
}

/* ─── Bootstrap Overrides ────────────────────────────────────── */
.btn-primary {
  background-color: var(--sl-green);
  border-color: var(--sl-green);
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  padding: 0.6rem 1.5rem;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--sl-green-dark);
  border-color: var(--sl-green-dark);
  color: #fff;
  transform: translateY(-1px);
}
.btn-outline-light {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  padding: 0.6rem 1.5rem;
  transition: all 0.2s;
}
.btn-outline-light:hover {
  background-color: rgba(255,255,255,0.15);
  border-color: #fff;
}

/* ─── Navbar ─────────────────────────────────────────────────── */
.navbar {
  background-color: var(--sl-blue) !important;
  padding: 1rem 0;
}
.navbar-brand {
  font-family: 'Lora', serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: #fff !important;
  letter-spacing: 0.02em;
}
.navbar-brand span {
  color: var(--sl-sand);
  /* Der zweite Wortteil ist reine Farbe, kein eigenes Ziel: Ein Klick auf
     „Coach" bzw. „Lab" soll denselben Weg gehen wie einer auf den ersten Teil
     (Manuel, 9. September 2026 — bei ihm landete er auf /projekte/).
     `pointer-events: none` reicht den Klick an den umgebenden Link weiter. */
  pointer-events: none;
}
.nav-link {
  color: rgba(255,255,255,0.8) !important;
  font-weight: 400;
  transition: color 0.2s;
}
.nav-link:hover {
  color: var(--sl-sand) !important;
}
.navbar-toggler {
  border-color: rgba(255,255,255,0.4);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
/* Beide Buttons der Navbar ("Erstgespräch" und "Login" bzw. "Meine Projekte")
   teilen sich dieselben Maße. Nötig, weil .btn-primary weiter oben ein eigenes
   Padding setzt und damit das btn-sm der Vorlage aushebelt — ohne diese Regel
   bleibt der Login-Button flacher und schmaler als das Erstgespräch. */
.navbar .btn {
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
}
/* Login bzw. "Meine Programme" tragen btn-outline-light. In der Leiste soll
   der Rand praegnanter sein als beim gleichnamigen Hero-Button, dessen
   zurueckhaltende 0.6er-Kontur bleibt — deshalb nur hier volles Weiss. */
.navbar .btn-outline-light {
  border-color: #fff;
}
/* Beim Ueberfahren die Bootstrap-eigene Fuellung von .btn-outline-light:
   $light (#f8f9fa) flaechig, Schrift schwarz. Die halbdurchsichtige
   Weiss-Fuellung weiter oben (fuer den Hero gedacht) sah hier vor dem
   dunkelblauen Grund milchig aus. */
.navbar .btn-outline-light:hover,
.navbar .btn-outline-light:focus,
.navbar .btn-outline-light:active {
  background-color: #f8f9fa;
  border-color: #f8f9fa;
  color: #000;
}

/* Benutzermenü (templates/partials/_user_menu.html) auf den dunklen Leisten
   von Projektauswahl und GesundheitsCoach. Der Name muss rein weiß bleiben, auch
   aufgeklappt und beim Überfahren. Das !important und die zusätzliche
   .navbar-Stufe sind nötig, weil .nav-link weiter oben selbst mit !important
   auf rgba(255,255,255,0.8) färbt und Bootstraps .text-white bei gleicher
   Spezifität unterliegt. */
.navbar .user-menu-toggle,
.navbar .user-menu-toggle:hover,
.navbar .user-menu-toggle:focus,
.navbar .user-menu-toggle.show {
  color: #fff !important;
  font-weight: 600;
}
.user-menu-toggle .bi { margin-right: .25rem; }
.dropdown-menu form { margin: 0; }
.dropdown-menu button.dropdown-item { cursor: pointer; }

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  background-color: var(--sl-blue);
  background-image:
    radial-gradient(ellipse at 70% 50%, rgba(74,155,127,0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(232,200,74,0.08) 0%, transparent 50%);
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}

/* Sempt river wave decoration */
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: #fff;
  clip-path: ellipse(55% 100% at 50% 100%);
}

/* Abstract river SVG line */
.river-line {
  position: absolute;
  right: -60px;
  top: 0;
  bottom: 0;
  width: 55%;
  opacity: 0.07;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(74,155,127,0.2);
  border: 1px solid rgba(74,155,127,0.4);
  color: var(--sl-sand);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
.hero h1 em {
  color: var(--sl-sand);
  font-style: normal;
}

.hero p.lead {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 480px;
  font-weight: 300;
}

/* Excel mock card in hero */
.hero-visual {
  position: relative;
  animation: floatUp 0.8s ease-out both;
  animation-delay: 0.3s;
}
@keyframes floatUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mock-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}
.mock-card-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.8rem;
}
.excel-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr 0.9fr;
  gap: 4px;
  margin-bottom: 4px;
}
.excel-cell {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 3px;
  padding: 4px 6px;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
  overflow: hidden;
}
.excel-cell.header {
  background: rgba(232,200,74,0.15);
  color: var(--sl-sand);
  font-weight: 600;
}
.arrow-transform {
  text-align: center;
  color: var(--sl-sand);
  font-size: 1.4rem;
  margin: 1rem 0;
}
.db-card {
  background: rgba(74,155,127,0.18);
  border: 1px solid rgba(74,155,127,0.3);
  border-radius: 8px;
  padding: 1rem;
}
.db-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 0.7rem;
}
.db-row:last-child { border-bottom: none; }
.db-label { color: rgba(255,255,255,0.5); }
.db-val { color: #fff; font-weight: 500; }
.db-badge {
  background: var(--sl-green);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 100px;
}

/* ─── Section Styles ─────────────────────────────────────────────
   .section-label und .section-title stehen in static/css/inhalt.css:
   Die Rechtstexte benutzen sie ebenfalls, und die gibt es inzwischen
   auch im Trading Journal, das diese Datei nicht laden kann.
   ──────────────────────────────────────────────────────────────── */
section { padding: 5rem 0; }

/* ─── Problems ───────────────────────────────────────────────── */
#problem {
  background-color: var(--sl-offwhite);
}

.problem-card {
  background: #fff;
  border: 1px solid var(--sl-border);
  border-radius: 10px;
  padding: 1.5rem;
  height: 100%;
  transition: box-shadow 0.2s, transform 0.2s;
}
.problem-card:hover {
  box-shadow: 0 8px 30px rgba(30,58,95,0.1);
  transform: translateY(-3px);
}
.problem-icon {
  font-size: 1.6rem;
  color: var(--sl-sand);
  margin-bottom: 0.75rem;
  display: block;
}
.problem-card h5 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--sl-blue);
  margin-bottom: 0.5rem;
}
.problem-card p {
  font-size: 0.88rem;
  color: var(--sl-muted);
  margin: 0;
  line-height: 1.6;
}

/* ─── Solution ───────────────────────────────────────────────── */
.solution-step {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  margin-bottom: 1.8rem;
}
.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--sl-blue);
  color: var(--sl-sand);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 1rem;
}
.step-body h5 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--sl-blue);
  margin-bottom: 0.3rem;
}
.step-body p {
  font-size: 0.88rem;
  color: var(--sl-muted);
  margin: 0;
  line-height: 1.6;
}

.solution-visual {
  background: var(--sl-blue);
  border-radius: 16px;
  padding: 2rem;
  color: #fff;
}
.sv-header {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.2rem;
}
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-box {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 1rem;
}
.stat-box .stat-val {
  font-family: 'Lora', serif;
  font-size: 1.8rem;
  color: var(--sl-sand);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-box .stat-lbl { font-size: 0.72rem; color: rgba(255,255,255,0.55); }

/* ─── Why SemptLab ───────────────────────────────────────────── */
#why {
  background: var(--sl-offwhite);
}
.why-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  height: 100%;
  border-top: 4px solid var(--sl-green);
  box-shadow: 0 2px 15px rgba(30,58,95,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(30,58,95,0.12);
}
.why-icon {
  width: 52px;
  height: 52px;
  background: rgba(74,155,127,0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--sl-green);
  margin-bottom: 1rem;
}
.why-card h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--sl-blue);
  margin-bottom: 0.6rem;
}
.why-card p {
  font-size: 0.88rem;
  color: var(--sl-muted);
  margin: 0;
  line-height: 1.65;
}

/* ─── Process ────────────────────────────────────────────────── */
.process-step {
  text-align: center;
  padding: 1rem;
  position: relative;
}
.process-num {
  width: 56px;
  height: 56px;
  background: var(--sl-blue);
  color: var(--sl-sand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lora', serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 auto 1rem;
}
.process-step h5 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--sl-blue);
  margin-bottom: 0.4rem;
}
.process-step p {
  font-size: 0.83rem;
  color: var(--sl-muted);
  margin: 0;
}
.process-connector {
  position: absolute;
  top: 28px;
  left: calc(50% + 52px);
  right: calc(-50% + 52px);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--sl-green) 0, var(--sl-green) 6px, transparent 6px, transparent 12px);
}

/* ─── Use Cases ──────────────────────────────────────────────── */
#usecases {
  background: #fff;
}

.usecase-card {
  background: #fff;
  border: 1px solid var(--sl-border);
  border-radius: 16px;
  padding: 1.35rem;
  height: 100%;
  box-shadow: 0 2px 16px rgba(30,58,95,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.usecase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(30,58,95,0.1);
  border-color: rgba(74,155,127,0.35);
}

.usecase-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}

.usecase-head i {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(74,155,127,0.14);
  color: var(--sl-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.usecase-head h4 {
  margin: 0;
  font-size: 1.03rem;
  color: var(--sl-blue);
}

.usecase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.usecase-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--sl-blue);
  text-decoration: none;
  background: var(--sl-offwhite);
  border: 1px solid rgba(30,58,95,0.1);
  border-radius: 999px;
  padding: 0.35rem 0.72rem;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.usecase-tag:hover {
  background: rgba(74,155,127,0.12);
  border-color: rgba(74,155,127,0.45);
  color: var(--sl-blue);
}

/* ─── About ──────────────────────────────────────────────────── */
#about {
  background: var(--sl-blue);
  color: rgba(255,255,255,0.85);
}
#about .section-title { color: #fff; }
#about .section-label { color: var(--sl-sand); }
#about p { line-height: 1.8; font-weight: 300; }
#about strong { color: #fff; font-weight: 600; }

.about-tag {
  display: inline-block;
  background: rgba(74,155,127,0.25);
  border: 1px solid rgba(74,155,127,0.4);
  color: var(--sl-sand-light);
  font-size: 0.78rem;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  margin: 0.2rem;
}

/* ─── Contact ────────────────────────────────────────────────── */
#contact {
  background: var(--sl-offwhite);
}
.contact-form-wrap {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 30px rgba(30,58,95,0.08);
}
.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sl-blue);
  margin-bottom: 0.4rem;
}
.form-control, .form-select {
  border: 1.5px solid var(--sl-border);
  border-radius: 7px;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  color: var(--sl-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--sl-green);
  box-shadow: 0 0 0 3px rgba(74,155,127,0.15);
  outline: none;
}
/* Honigtöpfchen — für Menschen unsichtbar, für Bots ein Feld wie jedes andere.
   Kein display:none, das überspringen manche Bots gezielt. */
.contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-fehler {
  color: #b3261e;
  font-size: 0.8rem;
  margin-top: 0.35rem;
}
.contact-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--sl-text);
  line-height: 1.5;
}
.contact-check input {
  margin-top: 0.15rem;
  flex-shrink: 0;
}
.contact-danke {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.2rem 1.4rem;
  border-radius: 10px;
  background: rgba(74,155,127,0.1);
  border: 1.5px solid var(--sl-green);
  font-size: 0.9rem;
  line-height: 1.6;
}
.contact-danke i {
  color: var(--sl-green);
  font-size: 1.3rem;
}
.contact-info-box {
  background: var(--sl-blue);
  border-radius: 16px;
  padding: 2.5rem;
  color: rgba(255,255,255,0.85);
  height: 100%;
}
.contact-info-box h4 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}
.contact-item i {
  font-size: 1.1rem;
  color: var(--sl-sand);
  flex-shrink: 0;
}
.contact-item a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
}
.contact-item a:hover { color: var(--sl-sand); }

/* ─── Footer ─────────────────────────────────────────────────────
   Steht jetzt in static/css/footer.css, weil ihn ausser der
   Werbeseite auch die Teilprojekte tragen — darunter das Trading
   Journal, das diese Datei hier nicht laden kann (body wird in
   Zeile 22 hell eingefaerbt und wuerde dessen dunkles Schema
   zerlegen). --sl-blue und --sl-sand stehen dort noch einmal und
   muessen mit den Werten am Anfang dieser Datei uebereinstimmen.
   ──────────────────────────────────────────────────────────────── */

/* ─── River SVG decoration ───────────────────────────────────── */
.sempt-divider {
  width: 100%;
  height: 40px;
  overflow: visible;
  display: block;
}

/* ─── Animations on scroll ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── Responsive tweaks ──────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { min-height: auto; padding: 5rem 0 6rem; }
  .hero-visual { margin-top: 3rem; }
  .process-connector { display: none; }
  .usecase-card { padding: 1.1rem; }
}
