/* ============================================================
   TIME 4 — time4more.ai
   Design: "C2 Technisch (reduziert)" — dunkel, präzise, sportlich.
   Selbst gehostetes, handgeschriebenes CSS (kein CDN, keine
   externen Fonts → DSGVO, vgl. Auftrag "Rechtliches" Punkt 1).
   Schriften: Systemfont-Stack (keine Font-Dateien nötig).
   ============================================================ */

:root {
  /* Farben */
  --carbon: #0A0C10;      /* Seitenhintergrund */
  --panel: #10131A;       /* Kartenhintergrund */
  --panel-2: #151923;     /* Kartenhintergrund, heller */
  --fog: #E8EAEE;         /* Text */
  --fog-dim: #8B92A0;     /* Sekundärtext */
  --accent: #E01F38;      /* Signalrot — bewusst sparsam eingesetzt:
                             Headline-"4", Chronograph, CTA, Fokus-Ring */
  --line: #232936;        /* Rahmen/Linien */

  /* Schriften */
  --sans: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --mono: "SF Mono", SFMono-Regular, ui-monospace, Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  background: var(--carbon);
  color: var(--fog);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ------------------------------------------------------------
   Sprachumschaltung (DE/EN)
   Beide Sprachversionen liegen im DOM; html[data-lang] blendet
   die jeweils andere aus. Funktioniert auch ohne JS (Default DE,
   gesetzt als data-lang="de" im HTML).
   ------------------------------------------------------------ */
html[data-lang="de"] .lang-en { display: none !important; }
html[data-lang="en"] .lang-de { display: none !important; }

/* ------------------------------------------------------------
   Basis / Zugänglichkeit
   ------------------------------------------------------------ */
a { color: var(--fog); }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 10px 18px;
  z-index: 100; text-decoration: none; font-weight: 600;
}
.skip-link:focus { left: 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 28px; }

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */
header.site {
  border-bottom: 1px solid var(--line);
  background: rgba(10, 12, 16, .88);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 20;
}
.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 16px 28px;
  display: flex; justify-content: space-between; align-items: center;
}
.logo {
  font-weight: 700; font-size: 17px; letter-spacing: .06em;
  color: var(--fog); text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.logo .tld { color: var(--fog-dim); font-weight: 400; }
.logo .badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border: 1.5px solid var(--accent); color: var(--accent);
  font-size: 14px; font-weight: 700;
  transform: skewX(-8deg); /* sportliche Schräge, Wiedererkennung */
}

/* Sprachumschalter */
.lang-switch { font-family: var(--mono); font-size: 12px; display: flex; }
.lang-switch button {
  font-family: inherit; font-size: inherit; cursor: pointer;
  color: var(--fog-dim); background: transparent;
  padding: 5px 12px; border: 1px solid var(--line);
}
.lang-switch button:first-child { border-right: none; }
.lang-switch button[aria-pressed="true"] {
  background: var(--fog); color: var(--carbon);
  border-color: var(--fog); font-weight: 700;
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  max-width: 1100px; margin: 0 auto; padding: 88px 28px 72px;
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center;
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 60px; }
  .chrono { max-width: 320px; margin: 0 auto; }
}
.hero-meta {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--fog-dim);
  display: flex; align-items: center; gap: 14px; margin-bottom: 30px;
}
.hero-meta::before { content: ""; width: 34px; height: 2px; background: var(--line); }
h1.brand {
  font-size: clamp(48px, 8.5vw, 104px); font-weight: 800;
  letter-spacing: -.035em; line-height: .92;
  text-transform: uppercase; font-style: italic; /* Vorwärtsdrang */
}
h1.brand .four { color: var(--accent); }
/* Domain-Endung ".ai" als technisches Suffix der Marke */
h1.brand .ai {
  font-family: var(--mono); font-style: normal; font-weight: 700;
  font-size: .3em; letter-spacing: .08em; color: var(--fog-dim);
  text-transform: none; margin-left: .12em;
}
.tagline {
  font-size: clamp(18px, 2.4vw, 21px); color: var(--fog-dim);
  margin-top: 28px; max-width: 500px; line-height: 1.6; font-style: italic;
}

/* ------------------------------------------------------------
   Newsletter-Formular (Hero + Anmeldung)
   POST direkt an Buttondown; einziger externer Request der Seite
   und nur bei aktivem Absenden durch den Nutzer (DSGVO-konform).
   ------------------------------------------------------------ */
form.subscribe { display: flex; gap: 12px; max-width: 560px; margin-top: 36px; }
@media (max-width: 520px) { form.subscribe { flex-direction: column; } }
.subscribe input[type=email] {
  flex: 1; font-family: var(--sans); font-size: 16px;
  padding: 15px 20px; min-width: 0;
  border: 1px solid var(--line); background: var(--panel);
  color: var(--fog); outline: none;
  transition: border-color .15s ease;
}
.subscribe input[type=email]::placeholder { color: #4E5563; }
.subscribe input[type=email]:focus { border-color: var(--accent); }
.btn {
  display: inline-block; font-family: var(--sans);
  font-size: 15px; font-weight: 700; letter-spacing: .04em;
  color: #fff; background: var(--accent);
  padding: 16px 34px; text-decoration: none; border: none; cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); /* Schräge = sportlich */
  transition: filter .15s ease, transform .15s ease;
}
.btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.legal-hint {
  font-size: 13px; color: var(--fog-dim);
  margin-top: 16px; line-height: 1.6; max-width: 560px;
}
.legal-hint a { color: var(--fog); }

/* Boost-Gauge-Motiv (rein dekorativ, aria-hidden):
   Nadel steht im roten Boost-Bereich, Zonen-Label "AI" */
.chrono { position: relative; }
.chrono svg { width: 100%; height: auto; display: block; }

/* ------------------------------------------------------------
   Daten-Leiste (Spec-Sheet unterm Hero)
   ------------------------------------------------------------ */
.databar {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(16, 19, 26, .6);
}
.databar-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 28px;
  display: grid; grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 700px) { .databar-inner { grid-template-columns: 1fr; } }
.databar .cell {
  padding: 18px 22px 18px 0; border-right: 1px solid var(--line);
  display: flex; gap: 12px; align-items: baseline;
}
.databar .cell + .cell { padding-left: 22px; }
.databar .cell:last-child { border-right: none; }
@media (max-width: 700px) {
  .databar .cell,
  .databar .cell + .cell { border-right: none; border-bottom: 1px solid var(--line); padding-left: 0; }
  .databar .cell:last-child { border-bottom: none; }
}
.databar .k {
  font-family: var(--mono); font-size: 11px; color: var(--fog-dim);
  letter-spacing: .12em; text-transform: uppercase;
}
.databar .v { font-size: 14px; color: var(--fog); }

/* ------------------------------------------------------------
   Abschnitte
   ------------------------------------------------------------ */
section { padding: 92px 0; }
.sec-head { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.sec-head .idx {
  font-family: var(--mono); font-size: 12px; color: var(--fog-dim); letter-spacing: .1em;
  border: 1px solid var(--line); padding: 5px 10px;
  background: var(--panel); transform: skewX(-8deg);
}
.sec-head .name {
  font-family: var(--mono); font-size: 12px; letter-spacing: .24em;
  text-transform: uppercase; color: var(--fog-dim);
}
.sec-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
h2 {
  font-size: clamp(28px, 4.4vw, 40px); font-weight: 800;
  letter-spacing: -.02em; line-height: 1.12; margin-bottom: 24px;
}
p + p { margin-top: 1em; }
.muted { color: var(--fog-dim); }
.content-col { max-width: 720px; }
.content-col p { color: var(--fog-dim); }
.content-col p strong, .content-col p b { color: var(--fog); }

/* Über mich */
.about { display: grid; grid-template-columns: 210px 1fr; gap: 40px; align-items: start; max-width: 860px; }
@media (max-width: 620px) { .about { grid-template-columns: 1fr; } .portrait { max-width: 210px; } }
.portrait {
  aspect-ratio: 4/5; position: relative;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--fog-dim); text-align: center;
}
.portrait img {
  /* Bild ist bereits 4:5 zugeschnitten → width:100% + height:auto
     kann in keinem Browser überlaufen (robuster als height:100%) */
  width: 100%; height: auto; display: block;
  /* S/W-Foto minimal ans dunkle Design angepasst */
  filter: contrast(1.04) brightness(.96);
}
/* HUD-Ecken (dezent, neutral) */
.portrait::before, .portrait::after {
  content: ""; position: absolute; width: 18px; height: 18px;
  border: 2px solid var(--fog-dim);
}
.portrait::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.portrait::after { bottom: -2px; right: -2px; border-left: none; border-top: none; }
.about-text p { color: var(--fog-dim); }

/* Was dich erwartet */
.lead-in { color: var(--fog-dim); margin-bottom: 26px; }
.expect { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .expect { grid-template-columns: 1fr; } }
.expect article {
  background: var(--panel); border: 1px solid var(--line);
  padding: 28px 26px 32px;
  transition: border-color .2s ease, transform .2s ease;
}
.expect article:hover { border-color: var(--fog-dim); transform: translateY(-3px); }
.expect .num {
  font-family: var(--mono); font-size: 11.5px; color: var(--fog-dim);
  letter-spacing: .14em; display: block; margin-bottom: 30px;
}
.expect h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 10px; }
.expect p { font-size: 15px; color: var(--fog-dim); }
.outro { margin-top: 30px; color: var(--fog-dim); max-width: 720px; }
.outro strong { color: var(--fog); }

/* Anmeldung */
.signup {
  position: relative; border: 1px solid var(--line);
  background: var(--panel); padding: 64px 56px; overflow: hidden;
}
@media (max-width: 620px) { .signup { padding: 44px 24px; } }
/* Einzelnes rotes Signal-Detail statt Farbverlauf (reduziert) */
.signup::before {
  content: ""; position: absolute; top: -1px; left: -1px;
  width: 96px; height: 3px; background: var(--accent);
}
.signup h2 { max-width: 620px; }
.signup .conditions { color: var(--fog-dim); margin-top: 18px; font-size: 15px; }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
footer.site { border-top: 1px solid var(--line); }
.footer-inner {
  max-width: 1100px; margin: 0 auto; padding: 34px 28px 46px;
  font-family: var(--mono); font-size: 12px; color: var(--fog-dim);
  display: flex; flex-wrap: wrap; gap: 10px 30px; align-items: center;
}
.footer-inner .spacer { flex: 1; }
footer.site a { color: var(--fog-dim); text-decoration: none; }
footer.site a:hover { color: var(--fog); text-decoration: underline; }

/* ------------------------------------------------------------
   Rechtsseiten (Impressum, Datenschutz)
   ------------------------------------------------------------ */
main.legal { max-width: 760px; margin: 0 auto; padding: 72px 28px 96px; }
main.legal h1 {
  font-size: clamp(34px, 6vw, 52px); font-weight: 800;
  letter-spacing: -.02em; font-style: italic; text-transform: uppercase;
  margin-bottom: 40px;
}
main.legal h2 { font-size: 22px; margin: 44px 0 14px; }
main.legal p { color: var(--fog-dim); }
main.legal a { color: var(--fog); }
main.legal ul { color: var(--fog-dim); padding-left: 22px; margin-top: 10px; }

/* Deutlich sichtbare Platzhalter-Markierung — muss vor Livegang
   ersetzt werden (BLOCKER, siehe README / Abschluss-Checkliste) */
.placeholder-warn {
  border: 1px dashed var(--accent); background: rgba(232, 37, 62, .06);
  padding: 18px 22px; margin: 0 0 36px;
  font-size: 14.5px; color: var(--fog); line-height: 1.6;
}
.placeholder-box {
  border: 1px dashed var(--line); background: var(--panel);
  padding: 16px 20px; margin: 12px 0 8px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em;
  color: var(--fog-dim); text-transform: uppercase;
}
