/* =====================================================================
   AD HOC NEWS · Landingpage "Trading lernen in 5 Abenden"
   Mittelbau-Styles (Schritt 1 + Schritt 2)
   ---------------------------------------------------------------------
   Native Optik von ad-hoc-news.de:
   - Schrift:   Open Sans (Fließtext), Martel (Überschriften)   -> kommen aus style.min.css
   - Farben:    Rot #9e0f15 · Text #444 · Linien #ececec/#ccc · Button Orange #ffa804
   - Container: max-width 1140px (wie .container der Seite)
   Alle Klassen beginnen mit "tk-" – keine Kollision mit Bootstrap/Seiten-CSS.
   ===================================================================== */

.tk {
  --tk-red: #9e0f15;
  --tk-red-dark: #7d0b10;
  --tk-orange: #ffa804;
  --tk-orange-dark: #e48301;
  --tk-text: #444;
  --tk-text-dark: #222;
  --tk-muted: #777;
  --tk-line: #ececec;
  --tk-line-dark: #ccc;
  --tk-bg-soft: #f7f7f7;
  --tk-green: #2e7d32;
  --tk-radius: 6px;

  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--tk-text);
  font-size: 16px;
  line-height: 1.6;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px 40px;
  box-sizing: border-box;
}
.tk *, .tk *::before, .tk *::after { box-sizing: border-box; }
.tk img { max-width: 100%; height: auto; display: block; }
.tk a { color: var(--tk-red); text-decoration: none; }
.tk a:hover { text-decoration: underline; }

/* ---------- Typografie ---------- */
.tk h1, .tk h2, .tk h3 {
  font-family: Martel, Georgia, serif;
  color: var(--tk-text-dark);
  margin: 0 0 12px;
  line-height: 1.25;
  font-weight: 700;
}
.tk h1 { font-size: 2rem; line-height: 1.2; }
.tk h2 { font-size: 1.45rem; }
.tk h3 { font-size: 1.1rem; }
.tk p { margin: 0 0 16px; }
.tk .tk-kicker {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tk-red);
  font-weight: 600;
  margin: 0 0 8px;
}
.tk .tk-lead { font-size: 1.1rem; line-height: 1.55; color: var(--tk-text); }
.tk .tk-small { font-size: .8rem; color: var(--tk-muted); line-height: 1.45; }
.tk .tk-section { padding: 36px 0; border-top: 1px dotted var(--tk-line-dark); }
.tk .tk-section--tight { padding: 24px 0; }
.tk .tk-center { text-align: center; }
.tk .tk-section-head { max-width: 720px; margin: 0 auto 28px; text-align: center; }

/* ---------- Anzeigen-/Partnerzeile ---------- */
.tk .tk-adline {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 0; border-bottom: 1px solid var(--tk-line);
  font-size: .75rem; color: var(--tk-muted);
}
.tk .tk-adline img { height: 22px; width: auto; }
.tk .tk-adline span { white-space: nowrap; }

/* ---------- Hero ---------- */
.tk .tk-hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 40px; align-items: start; padding: 28px 0 32px;
}
.tk .tk-hero-media {
  margin: 0 0 18px;
  position: relative; border-radius: var(--tk-radius); overflow: hidden;
  box-shadow: 4px 4px 10px #ccc;
}
.tk .tk-hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tk .tk-hero-badge {
  position: absolute; left: 14px; top: 14px;
  background: var(--tk-red); color: #fff; font-size: .75rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; padding: 5px 10px; border-radius: 3px;
}
.tk .tk-facts {
  list-style: none; margin: 18px 0 0; padding: 0 4px;
  display: grid; grid-template-columns: 1fr; gap: 10px 18px;
}
.tk .tk-facts li { padding-left: 26px; position: relative; font-size: .95rem; }
.tk .tk-facts li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='8' r='8' fill='%239e0f15'/><path d='M4.5 8.3l2.3 2.3 4.7-5' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
}

.tk .tk-facts--mobile { display: none; }

/* Terminzeile (wird per JS gefüllt) */
.tk .tk-dateline {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--tk-bg-soft); border-left: 4px solid var(--tk-red);
  padding: 8px 14px; margin: 0 0 14px; font-size: .95rem; border-radius: 0 var(--tk-radius) var(--tk-radius) 0;
}
.tk .tk-dateline strong { color: var(--tk-text-dark); }
.tk .tk-dateline .tk-pill {
  background: var(--tk-red); color: #fff; font-size: .72rem; font-weight: 700;
  padding: 2px 8px; border-radius: 10px; text-transform: uppercase; letter-spacing: .04em;
}

/* ---------- Formulare (Felder/Ablauf nach trading-house, Optik AD HOC NEWS) ---------- */
.tk .tk-form { margin: 0; }
.tk .tk-form-row { display: flex; gap: 10px; align-items: stretch; }
.tk .tk-field { position: relative; flex: 1 1 auto; margin: 0 0 12px; }
.tk .tk-field input {
  width: 100%; height: 52px; padding: 18px 14px 4px;
  font: inherit; font-size: 1rem; color: var(--tk-text-dark);
  border: 1px solid var(--tk-line-dark); border-radius: var(--tk-radius); background: #fff;
  outline: none; transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.tk .tk-field input:focus { border-color: var(--tk-red); box-shadow: 0 0 0 3px rgba(158, 15, 21, .12); }
.tk .tk-field label {
  position: absolute; left: 14px; top: 15px; font-size: 1rem; color: var(--tk-muted);
  pointer-events: none; transition: all .12s ease; background: transparent;
}
.tk .tk-field input:focus + label,
.tk .tk-field input:not(:placeholder-shown) + label {
  top: 5px; font-size: .7rem; color: var(--tk-red); letter-spacing: .02em; text-transform: uppercase;
}
.tk .tk-field input::placeholder { color: transparent; }
.tk .tk-field.tk-invalid input { border-color: var(--tk-red); }
.tk .tk-field .tk-hint { display: none; font-size: .78rem; color: var(--tk-red); margin: 4px 0 0 2px; }
.tk .tk-field.tk-invalid .tk-hint { display: block; }
.tk .tk-field .tk-why { font-size: .78rem; color: var(--tk-muted); margin: 4px 0 0 2px; }
.tk .tk-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }

/* Honeypot (wie bei trading-house: .terms ist unsichtbar) */
.tk .tk-terms { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Button: native AD HOC NEWS .btn (Orange, 6px Radius, Schatten) – nur größer */
.tk .tk-btn {
  display: inline-block; width: 100%; cursor: pointer;
  background: var(--tk-orange); border: 1px solid var(--tk-orange); color: #fff;
  font: inherit; font-weight: 700; font-size: 1.05rem; letter-spacing: .03em; text-transform: uppercase;
  padding: 14px 22px; border-radius: var(--tk-radius); box-shadow: 4px 4px 10px #ccc;
  transition: background .15s, transform .05s; text-align: center; text-decoration: none;
}
.tk .tk-btn:hover { background: var(--tk-orange-dark); border-color: var(--tk-orange-dark); color: #fff; text-decoration: none; }
.tk .tk-btn:active { transform: translateY(1px); }
.tk .tk-btn[disabled] { opacity: .6; cursor: progress; }
.tk .tk-btn--red { background: var(--tk-red); border-color: var(--tk-red); }
.tk .tk-btn--red:hover { background: var(--tk-red-dark); border-color: var(--tk-red-dark); }
.tk .tk-btn--ghost {
  background: #fff; color: var(--tk-text); border-color: var(--tk-line-dark); box-shadow: none; font-weight: 600; text-transform: none;
}
.tk .tk-btn--ghost:hover { background: var(--tk-bg-soft); color: var(--tk-text-dark); }
.tk .tk-form-note { font-size: .78rem; color: var(--tk-muted); margin: 10px 0 0; line-height: 1.45; text-align: center; }
.tk .tk-form-note a { color: var(--tk-muted); text-decoration: underline; }

/* Einwilligung (Checkbox-Variante) */
.tk .tk-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .8rem; color: var(--tk-muted); margin: 2px 0 14px; line-height: 1.45; }
.tk .tk-consent input { margin: 4px 0 0; width: 16px; height: 16px; flex: 0 0 16px; accent-color: var(--tk-red); }
.tk .tk-consent a { color: var(--tk-muted); text-decoration: underline; }
.tk .tk-consent details { display: inline; }
.tk .tk-consent summary { display: inline; cursor: pointer; color: var(--tk-red); text-decoration: underline; list-style: none; }
.tk .tk-consent summary::-webkit-details-marker { display: none; }
.tk .tk-consent details[open] summary { display: none; }

/* Formularkarte (Hero + Wiederholung unten) */
.tk .tk-form-card {
  background: #fff; border: 1px solid var(--tk-line); border-top: 4px solid var(--tk-red);
  border-radius: var(--tk-radius); padding: 22px 22px 18px; box-shadow: 4px 4px 10px #e6e6e6;
}
.tk .tk-form-card h3 { margin-bottom: 4px; }
.tk .tk-form-card .tk-form-sub { font-size: .9rem; color: var(--tk-muted); margin: 0 0 14px; }

/* Erfolg/Fehler inline (AJAX-Modus) */
.tk .tk-msg { display: none; padding: 12px 14px; border-radius: var(--tk-radius); font-size: .95rem; margin: 10px 0 0; }
.tk .tk-msg--ok { background: #eef7ee; color: var(--tk-green); border: 1px solid #cfe8cf; }
.tk .tk-msg--err { background: #fbeeee; color: var(--tk-red); border: 1px solid #f0cfd0; }
.tk .tk-msg.tk-show { display: block; }

/* ---------- Dynamischer Kontextblock ---------- */
.tk .tk-context {
  display: none; margin: 8px 0 0; padding: 20px 22px;
  background: var(--tk-bg-soft); border: 1px solid var(--tk-line); border-radius: var(--tk-radius);
  border-left: 4px solid var(--tk-red);
}
.tk .tk-context.tk-show { display: block; }
.tk .tk-context h2 { font-size: 1.25rem; margin-bottom: 8px; }
.tk .tk-context p { margin-bottom: 10px; }
.tk .tk-context .tk-context-days { font-size: .9rem; color: var(--tk-text); margin: 0; }
.tk .tk-context .tk-context-days strong { color: var(--tk-red); }

/* ---------- Kursplan: 5 Abende ---------- */
.tk .tk-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; list-style: none; margin: 0; padding: 0; }
.tk .tk-day {
  border: 1px solid var(--tk-line); border-radius: var(--tk-radius); padding: 18px 16px 16px; background: #fff;
  display: flex; flex-direction: column; position: relative;
}
.tk .tk-day::before {
  content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 3px; background: var(--tk-red); border-radius: 0 0 3px 3px;
}
.tk .tk-day .tk-day-no { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--tk-red); font-weight: 700; margin: 4px 0 2px; }
.tk .tk-day .tk-day-date { font-size: .85rem; color: var(--tk-muted); margin: 0 0 8px; min-height: 1.2em; }
.tk .tk-day h3 { font-size: 1.05rem; margin: 0 0 10px; min-height: 2.6em; }
.tk .tk-day ul { margin: 0; padding: 0 0 0 16px; font-size: .9rem; line-height: 1.5; color: var(--tk-text); }
.tk .tk-day li { margin: 0 0 4px; }
.tk .tk-day.tk-day--today { border-color: var(--tk-red); box-shadow: 0 0 0 1px var(--tk-red) inset; }
.tk .tk-day .tk-day-flag { display: none; font-size: .7rem; background: var(--tk-red); color: #fff; padding: 2px 7px; border-radius: 10px; margin-left: 6px; vertical-align: middle; }
.tk .tk-day.tk-day--today .tk-day-flag { display: inline-block; }
.tk .tk-days-note { margin: 16px 0 0; font-size: .9rem; color: var(--tk-muted); text-align: center; }

/* ---------- Für wen / Ergebnis ---------- */
.tk .tk-cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.tk .tk-list { list-style: none; margin: 0; padding: 0; }
.tk .tk-list li { position: relative; padding: 0 0 10px 28px; }
.tk .tk-list li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='8' r='8' fill='%239e0f15'/><path d='M4.5 8.3l2.3 2.3 4.7-5' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
}
.tk .tk-list--x li::before {
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='8' r='8' fill='%23c5c5c5'/><path d='M5.3 5.3l5.4 5.4M10.7 5.3l-5.4 5.4' stroke='white' stroke-width='1.8' stroke-linecap='round'/></svg>") center/contain no-repeat;
}

/* ---------- Referent ---------- */
.tk .tk-coach { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: center; }
.tk .tk-coach img { border-radius: var(--tk-radius); box-shadow: 4px 4px 10px #ccc; aspect-ratio: 1; object-fit: cover; }
.tk .tk-coach-meta { font-size: .9rem; color: var(--tk-muted); margin: 0 0 12px; }
.tk .tk-coach-quote {
  font-family: Martel, Georgia, serif; font-size: 1.15rem; line-height: 1.5; color: var(--tk-text-dark);
  border-left: 3px solid var(--tk-red); padding-left: 14px; margin: 0 0 14px;
}
.tk .tk-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .85rem; color: var(--tk-muted); margin: 0; padding: 0; list-style: none; }
.tk .tk-trust li { padding-left: 14px; position: relative; }
.tk .tk-trust li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; background: var(--tk-red); border-radius: 50%; }

/* ---------- FAQ ---------- */
.tk .tk-faq { max-width: 820px; margin: 0 auto; }
.tk .tk-faq details { border-bottom: 1px dotted var(--tk-line-dark); }
.tk .tk-faq summary {
  cursor: pointer; list-style: none; padding: 14px 34px 14px 0; font-weight: 600; color: var(--tk-text-dark); position: relative;
}
.tk .tk-faq summary::-webkit-details-marker { display: none; }
.tk .tk-faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.4rem; color: var(--tk-red); line-height: 1; font-weight: 400;
}
.tk .tk-faq details[open] summary::after { content: "–"; }
.tk .tk-faq details p { margin: 0 0 14px; font-size: .95rem; }

/* ---------- Abschluss-CTA ---------- */
.tk .tk-final { background: var(--tk-bg-soft); border-radius: var(--tk-radius); padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.tk .tk-final h2 { margin-bottom: 8px; }

/* ---------- Risikohinweis / Rechtliches ---------- */
.tk .tk-legal { border-top: 1px solid var(--tk-line); padding: 20px 0 0; font-size: .75rem; color: var(--tk-muted); line-height: 1.5; }
.tk .tk-legal p { margin: 0 0 8px; }
.tk .tk-legal strong { color: var(--tk-text); }

/* ---------- Sticky-CTA mobil ---------- */
.tk .tk-sticky {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  background: #fff; border-top: 1px solid var(--tk-line-dark); padding: 10px 12px;
  box-shadow: 0 -4px 12px rgba(0,0,0,.08);
}
.tk .tk-sticky .tk-btn { padding: 12px 16px; font-size: .95rem; box-shadow: none; }

/* ---------- Schritt 2 ---------- */
.tk .tk-progress { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--tk-muted); margin: 18px 0 6px; text-transform: uppercase; letter-spacing: .06em; }
.tk .tk-progress-bar { flex: 1 1 auto; height: 4px; background: var(--tk-line); border-radius: 2px; overflow: hidden; max-width: 220px; }
.tk .tk-progress-bar i { display: block; height: 100%; width: 50%; background: var(--tk-red); }
.tk .tk-progress-bar.tk-done i { width: 100%; }
.tk .tk-success {
  display: flex; gap: 14px; align-items: flex-start; background: #eef7ee; border: 1px solid #cfe8cf; border-radius: var(--tk-radius);
  padding: 16px 18px; margin: 0 0 28px; color: #2d5a2f;
}
.tk .tk-success svg { flex: 0 0 28px; margin-top: 2px; }
.tk .tk-success p { margin: 0; }
.tk .tk-success strong { color: #1f4a21; }
.tk .tk-step2 {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "intro form" "gifts form";
  gap: 0 36px; align-items: start;
}
.tk .tk-step2-intro { grid-area: intro; }
.tk .tk-step2-gifts { grid-area: gifts; }
.tk .tk-step2-form { grid-area: form; position: sticky; top: 16px; }
.tk .tk-gifts { list-style: none; margin: 0 0 18px; padding: 0; }
.tk .tk-gift { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px dotted var(--tk-line-dark); }
.tk .tk-gift:last-child { border-bottom: 0; }
.tk .tk-gift-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--tk-bg-soft); display: grid; place-items: center; color: var(--tk-red); }
.tk .tk-gift-icon svg { width: 22px; height: 22px; }
.tk .tk-gift h3 { font-family: 'Open Sans', Arial, sans-serif; font-size: 1rem; margin: 2px 0 2px; }
.tk .tk-gift p { margin: 0; font-size: .9rem; color: var(--tk-text); }
.tk .tk-gift .tk-gift-tag { display: inline-block; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--tk-red); font-weight: 700; margin-left: 6px; vertical-align: middle; }
.tk .tk-notes-card { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; border: 1px solid var(--tk-line); border-radius: var(--tk-radius); padding: 14px; background: #fff; }
.tk .tk-notes-card img { border-radius: 4px; aspect-ratio: 1; object-fit: cover; }
.tk .tk-notes-card p { margin: 0; font-size: .9rem; }
.tk .tk-skip { text-align: center; margin: 14px 0 0; font-size: .85rem; }
.tk .tk-skip a { color: var(--tk-muted); text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .tk .tk-days { grid-template-columns: repeat(3, 1fr); }
  .tk .tk-days .tk-day:nth-child(4), .tk .tk-days .tk-day:nth-child(5) { grid-column: span 1; }
  .tk .tk-coach { grid-template-columns: 200px 1fr; }
}
@media (max-width: 767px) {
  .tk h1 { font-size: 1.6rem; }
  .tk h2 { font-size: 1.3rem; }
  .tk .tk-hero { grid-template-columns: 1fr; gap: 22px; padding-top: 18px; }
  .tk .tk-hero-side { order: -1; }
  .tk .tk-hero-side .tk-facts { display: none; }
  .tk .tk-facts--mobile { display: grid; margin: 18px 0 0; }
  .tk .tk-facts { grid-template-columns: 1fr; }
  .tk .tk-form-row { flex-direction: column; gap: 0; }
  .tk .tk-grid-2 { grid-template-columns: 1fr; }
  .tk .tk-days { grid-template-columns: 1fr; }
  .tk .tk-day h3 { min-height: 0; }
  .tk .tk-cols-2, .tk .tk-final { grid-template-columns: 1fr; gap: 22px; }
  .tk .tk-step2 { grid-template-columns: 1fr; grid-template-areas: "intro" "form" "gifts"; gap: 22px; }
  .tk .tk-step2-form { position: static; }
  .tk .tk-coach { grid-template-columns: 1fr; }
  .tk .tk-coach img { max-width: 220px; }
  .tk .tk-final { padding: 22px 18px; }
  .tk .tk-sticky { display: block; }
  .tk .tk-sticky.tk-hidden { display: none; }
  .tk { padding-bottom: 90px; }
  .tk .tk-notes-card { grid-template-columns: 90px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .tk * { transition: none !important; }
}
