/* timeCapt — Marketing-Site (timecapt.de) */

/* Design-Tokens identisch zur App (web/css/main.css) */
:root {
  --tc-primary:         #f57c1f;
  --tc-primary-hover:   #ff8c2a;
  --tc-primary-fg:      #ffffff;
  --tc-primary-soft:    rgba(245, 124, 31, 0.12);

  --tc-accent-red:      #e34f4f;
  --tc-stat-cyan:       #29b6f6;
  --tc-stat-purple:     #ab47bc;
  --tc-stat-green:      #66bb6a;

  --tc-bg:              #2d3a55;
  --tc-surface:         #323f5c;
  --tc-surface-2:       #3a4870;
  --tc-surface-border:  #3d4a68;

  --tc-text:            #e6e8ee;
  --tc-text-strong:     #ffffff;
  --tc-text-muted:      #a0a8bd;
  --tc-text-dim:        #6b7488;

  --tc-divider:         rgba(255, 255, 255, 0.06);
  --tc-border:          rgba(255, 255, 255, 0.10);

  --tc-input-bg:        rgba(0, 0, 0, 0.15);
  --tc-input-border:    rgba(255, 255, 255, 0.12);
  --tc-input-border-hover: rgba(255, 255, 255, 0.24);

  --tc-elev-2: 0 2px 6px rgba(0,0,0,0.35);
  --tc-elev-4: 0 4px 14px rgba(0,0,0,0.4);

  /* Pastell-Pflichtbuttons (Widerruf/Kündigung) — dunkles Theme */
  --tc-legal-widerruf-bg:  #e9a8a8;
  --tc-legal-widerruf-fg:  #5a1717;
  --tc-legal-kuendigen-bg: #aebdec;
  --tc-legal-kuendigen-fg: #1d2b5e;
}

[data-theme="light"] {
  --tc-primary-hover:   #e66a00;
  --tc-primary-soft:    rgba(245, 124, 31, 0.10);

  --tc-bg:              #f3f4f8;
  --tc-surface:         #ffffff;
  --tc-surface-2:       #f8f9fc;
  --tc-surface-border:  #e4e7ef;

  --tc-text:            #1f2333;
  --tc-text-strong:     #0f1320;
  --tc-text-muted:      #5f6780;
  --tc-text-dim:        #9aa2b8;

  /* Pastell-Pflichtbuttons (Widerruf/Kündigung) — helles Theme */
  --tc-legal-widerruf-bg:  #f6cccc;
  --tc-legal-widerruf-fg:  #8c2020;
  --tc-legal-kuendigen-bg: #ccd9f7;
  --tc-legal-kuendigen-fg: #28386f;

  --tc-divider:         rgba(0, 0, 0, 0.06);
  --tc-border:          rgba(0, 0, 0, 0.10);

  --tc-input-bg:        #ffffff;
  --tc-input-border:    #d6dae4;
  --tc-input-border-hover: #9aa2b8;

  --tc-elev-2: 0 2px 8px rgba(0,0,0,0.08);
  --tc-elev-4: 0 6px 20px rgba(0,0,0,0.10);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
/* Theme-aware Seitenhintergrund — überschreibt den fest verdrahteten Inline-Style
   im <head> (site.css lädt danach), damit der Hell-/Dunkel-Umschalter wirklich greift. */
html { background: var(--tc-bg); color: var(--tc-text); transition: background-color .2s ease, color .2s ease; }

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--tc-text);
  background: var(--tc-bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s ease, color .2s ease;
}

a { color: var(--tc-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.tc-container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Topbar ---------- */
.tc-topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--tc-bg);
  border-bottom: 1px solid var(--tc-divider);
}
.tc-topbar-inner {
  display: flex; align-items: center; gap: 16px;
  height: 64px;
}
.tc-logo-img { height: 26px; width: auto; }
.tc-topbar-spacer { flex: 1; }
.tc-topbar nav { display: flex; align-items: center; gap: 10px; }

/* Topbar-Elemente einheitlich: gleiche Höhe (38px), gleiche Optik, klare
   Gruppen (Navi | Sprache + Theme | Anmelden + CTA) mit dezenten Trennstrichen.
   Die Trennstriche hängen als Pseudo-Elemente an den Nachbar-LINKS, weil
   <select> keine ::before/::after rendert. */
.tc-topbar nav .tc-btn {
  height: 38px; padding: 0 16px; line-height: 1;
}
.tc-topbar nav .tc-lang-select {
  height: 38px; padding: 0 10px; color: var(--tc-text);
}
.tc-topbar nav .tc-icon-btn {
  width: 38px; height: 38px; border-radius: 6px;
  border: 1px solid var(--tc-border); color: var(--tc-text);
}
.tc-topbar nav .tc-icon-btn:hover {
  background: transparent; border-color: var(--tc-primary); color: var(--tc-primary);
}
/* Gruppe 1 | Gruppe 2: Strich rechts vom letzten Navi-Link (API) */
.tc-topbar nav > a[href="api.html"] { position: relative; margin-right: 14px; }
.tc-topbar nav > a[href="api.html"]::after {
  content: ''; position: absolute; right: -13px; top: 8px; bottom: 8px;
  width: 1px; background: var(--tc-border);
}
/* Gruppe 2 | Gruppe 3: Strich links vom Anmelden-Link */
.tc-topbar nav > a[href="login.html"] { position: relative; margin-left: 14px; }
.tc-topbar nav > a[href="login.html"]::before {
  content: ''; position: absolute; left: -13px; top: 8px; bottom: 8px;
  width: 1px; background: var(--tc-border);
}

/* ---------- Buttons ---------- */
.tc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 6px; border: none;
  font-family: inherit; font-size: 14px; font-weight: 500;
  cursor: pointer; text-decoration: none !important;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.tc-btn--primary { background: var(--tc-primary); color: var(--tc-primary-fg); }
.tc-btn--primary:hover { background: var(--tc-primary-hover); }
.tc-btn--ghost {
  background: transparent; color: var(--tc-text);
  border: 1px solid var(--tc-border);
}
.tc-btn--ghost:hover { border-color: var(--tc-primary); color: var(--tc-primary); }
.tc-btn--lg { padding: 14px 28px; font-size: 16px; }
.tc-btn[disabled] { opacity: .6; cursor: not-allowed; }

.tc-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: none; background: transparent; color: var(--tc-text-muted);
  font-size: 20px; cursor: pointer;
}
.tc-icon-btn:hover { background: var(--tc-primary-soft); color: var(--tc-primary); }

/* Sprach-Umschalter — im Stil der Ghost-Buttons der Topbar */
.tc-lang-select {
  background: transparent; color: var(--tc-text-muted);
  border: 1px solid var(--tc-border); border-radius: 6px;
  font-family: inherit; font-size: 13px; font-weight: 500;
  padding: 9px 10px; cursor: pointer; line-height: 1;
  transition: border-color .15s ease, color .15s ease;
}
.tc-lang-select:hover { border-color: var(--tc-primary); color: var(--tc-primary); }
.tc-lang-select:focus { outline: none; border-color: var(--tc-primary); color: var(--tc-text); }
.tc-lang-select option { background: var(--tc-bg); color: var(--tc-text); }

/* ---------- Hero ---------- */
.tc-hero { padding: 88px 0 72px; text-align: center; }
.tc-hero h1 {
  font-size: 44px; font-weight: 300; line-height: 1.2;
  color: var(--tc-text-strong); margin: 0 0 20px;
}
.tc-hero h1 strong { font-weight: 700; color: var(--tc-primary); }
.tc-hero p.tc-lead {
  font-size: 19px; color: var(--tc-text-muted);
  max-width: 640px; margin: 0 auto 36px;
}
.tc-hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.tc-hero-note { margin-top: 18px; font-size: 13px; color: var(--tc-text-dim); }

/* ---------- Sections ---------- */
.tc-section { padding: 64px 0; }
.tc-section--alt { background: var(--tc-surface); border-top: 1px solid var(--tc-divider); border-bottom: 1px solid var(--tc-divider); }
.tc-section h2 {
  font-size: 28px; font-weight: 300; text-align: center;
  color: var(--tc-text-strong); margin: 0 0 12px;
}
.tc-section .tc-section-sub {
  text-align: center; color: var(--tc-text-muted);
  max-width: 560px; margin: 0 auto 44px;
}

/* ---------- Feature-Grid ---------- */
.tc-features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.tc-feature { text-align: center; padding: 8px 12px; }
.tc-feature .mdi {
  font-size: 34px; color: var(--tc-primary);
  display: inline-flex; width: 64px; height: 64px; align-items: center; justify-content: center;
  background: var(--tc-primary-soft); border-radius: 50%; margin-bottom: 14px;
}
.tc-feature h3 { font-size: 16px; font-weight: 500; color: var(--tc-text-strong); margin: 0 0 6px; }
.tc-feature p { font-size: 14px; color: var(--tc-text-muted); margin: 0; }

/* ---------- Steps (So funktioniert's) ---------- */
.tc-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.tc-step {
  background: var(--tc-surface-2); border: 1px solid var(--tc-surface-border);
  border-radius: 10px; padding: 24px; position: relative;
}
.tc-step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--tc-primary); color: var(--tc-primary-fg);
  font-weight: 700; margin-bottom: 12px;
}
.tc-step h3 { font-size: 15px; font-weight: 500; color: var(--tc-text-strong); margin: 0 0 6px; }
.tc-step p { font-size: 14px; color: var(--tc-text-muted); margin: 0; }
.tc-step code {
  font-family: 'Roboto Mono', monospace; font-size: 13px;
  background: var(--tc-input-bg); padding: 2px 6px; border-radius: 4px;
  color: var(--tc-primary);
}

/* ---------- Auth-Karten (Login / Registrierung) ---------- */
.tc-auth-main {
  min-height: calc(100vh - 64px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 56px 24px;
}
.tc-auth-card {
  width: 100%; max-width: 440px;
  background: var(--tc-surface); border: 1px solid var(--tc-surface-border);
  border-radius: 12px; box-shadow: var(--tc-elev-4);
  padding: 36px;
}
.tc-auth-icon {
  text-align: center; font-size: 44px; color: var(--tc-primary); margin-bottom: 8px;
}
.tc-auth-title {
  font-size: 24px; font-weight: 300; text-align: center;
  color: var(--tc-text-strong); margin: 0 0 8px;
}
.tc-auth-subtitle {
  text-align: center; font-size: 14px; color: var(--tc-text-muted); margin-bottom: 28px;
}
.tc-auth-foot { margin-top: 20px; text-align: center; font-size: 13px; color: var(--tc-text-muted); }

/* ---------- Formularfelder ---------- */
.tc-field { margin-bottom: 18px; }
.tc-field-label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--tc-text-muted); margin-bottom: 6px;
}
.tc-field-wrap { position: relative; }
.tc-field-wrap > .mdi {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  font-size: 18px; color: var(--tc-text-dim); pointer-events: none;
}
.tc-field-input {
  width: 100%; padding: 11px 12px;
  background: var(--tc-input-bg); color: var(--tc-text);
  border: 1px solid var(--tc-input-border); border-radius: 6px;
  font-family: inherit; font-size: 14px;
  transition: border-color .15s ease;
}
.tc-field-input--icon { padding-left: 38px; }
.tc-field-input:hover { border-color: var(--tc-input-border-hover); }
.tc-field-input:focus { outline: none; border-color: var(--tc-primary); }
.tc-field-hint { font-size: 12px; color: var(--tc-text-dim); margin-top: 5px; min-height: 16px; }
.tc-field-hint--ok { color: var(--tc-stat-green); }
.tc-field-hint--err { color: var(--tc-accent-red); }

/* Subdomain-Eingabe mit Suffix */
.tc-subdomain-wrap {
  display: flex; align-items: stretch;
  border: 1px solid var(--tc-input-border); border-radius: 6px;
  background: var(--tc-input-bg); overflow: hidden;
  transition: border-color .15s ease;
}
.tc-subdomain-wrap:focus-within { border-color: var(--tc-primary); }
.tc-subdomain-wrap input {
  flex: 1; min-width: 0; border: none; background: transparent;
  padding: 11px 12px; color: var(--tc-text);
  font-family: inherit; font-size: 14px; text-align: right;
}
.tc-subdomain-wrap input:focus { outline: none; }
.tc-subdomain-suffix {
  display: flex; align-items: center; padding: 0 12px 0 2px;
  color: var(--tc-text-muted); font-size: 14px; white-space: nowrap;
  user-select: none;
}

.tc-error-box {
  display: none; margin-bottom: 20px; padding: 12px;
  background: var(--tc-accent-red); color: #fff;
  border-radius: 6px; font-size: 13px;
}

/* ---------- CTA-Band ---------- */
.tc-cta-band { text-align: center; padding: 72px 0; }
.tc-cta-band h2 { font-size: 30px; font-weight: 300; color: var(--tc-text-strong); margin: 0 0 24px; }

/* ---------- Footer ---------- */
.tc-footer {
  border-top: 1px solid var(--tc-divider);
  padding: 28px 0; font-size: 13px; color: var(--tc-text-dim);
}
.tc-footer-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.tc-footer a { color: var(--tc-text-muted); }
.tc-footer a:hover { color: var(--tc-primary); }
.tc-footer .tc-topbar-spacer { flex: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .tc-features, .tc-steps { grid-template-columns: 1fr; }
  .tc-hero { padding: 56px 0 48px; }
  .tc-hero h1 { font-size: 32px; }
  .tc-section { padding: 48px 0; }
}

/* ---------- Pflicht-Schaltflächen: Widerruf (§356a) + Kündigung (§312k) ----- */
.tc-legal-fnbar {
  border-top: 1px solid var(--tc-border);
  margin-top: 18px;
  padding: 20px 0 4px;
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  text-align: center;
}
.tc-legal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 9px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  color: inherit;
  transition: transform .05s ease, filter .15s ease;
}
.tc-legal-btn:hover { filter: brightness(0.96); }
.tc-legal-btn:active { transform: translateY(1px); }
.tc-legal-btn--widerruf  { background: var(--tc-legal-widerruf-bg);  color: var(--tc-legal-widerruf-fg);  box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.tc-legal-btn--kuendigen { background: var(--tc-legal-kuendigen-bg); color: var(--tc-legal-kuendigen-fg); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
/* Globale Footer-Linkfarbe (.tc-footer a) darf die Button-Schrift NICHT ueberschreiben */
.tc-footer a.tc-legal-btn--widerruf,
.tc-footer a.tc-legal-btn--widerruf:hover  { color: var(--tc-legal-widerruf-fg); }
.tc-footer a.tc-legal-btn--kuendigen,
.tc-footer a.tc-legal-btn--kuendigen:hover { color: var(--tc-legal-kuendigen-fg); }

/* ---------- Rechts-/Formularseiten (Widerruf, Kündigung, AGB) -------------- */
.tc-legal-prose { max-width: 760px; }
.tc-legal-prose h2 { text-align: left; }
.tc-legal-prose h3 { margin: 28px 0 8px; font-size: 18px; color: var(--tc-text-strong); }
.tc-legal-prose p, .tc-legal-prose li { line-height: 1.6; color: var(--tc-text); }
.tc-legal-note {
  background: var(--tc-primary-soft);
  border-left: 3px solid var(--tc-primary);
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 22px;
}
.tc-legal-box {
  border: 1px solid var(--tc-surface-border);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 18px 0;
  background: var(--tc-surface);
}
.lf-wrap { max-width: 640px; }
.lf-row { margin: 0 0 18px; }
.lf-row label { display: block; font-weight: 600; margin: 0 0 6px; }
.lf-row .lf-opt { font-weight: 400; color: var(--tc-text-muted); }
.lf-row input[type=text], .lf-row input[type=email], .lf-row textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 13px;
  border: 1px solid var(--tc-surface-border);
  border-radius: 8px;
  font-size: 15px;
  background: var(--tc-surface);
  color: var(--tc-text);
  font-family: inherit;
}
.lf-row textarea { min-height: 92px; resize: vertical; }
.lf-hint { font-size: 13px; color: var(--tc-text-muted); margin: 6px 0 0; }
.lf-err { color: #dc2626; font-size: 13px; margin: 6px 0 0; }
.lf-summary { border: 1px solid var(--tc-surface-border); border-radius: 10px; padding: 18px 20px; margin: 0 0 22px; }
.lf-summary dt { color: var(--tc-text-muted); font-size: 13px; margin: 0; }
.lf-summary dd { margin: 0 0 12px; font-weight: 600; }
.lf-summary dd:last-child { margin-bottom: 0; }
.lf-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 24px; }
.lf-ok { background: rgba(34,197,94,.12); border-left: 3px solid #22c55e; padding: 16px 18px; border-radius: 8px; line-height: 1.55; margin: 0 0 20px; }
.lf-hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
