/* ============================================================
   ToDo Board — Marketing-Surface
   Eigenständiges CSS für Landing/Legal/Kontakt/Login/404.
   Kein Tailwind. Kein Bootstrap. Self-hosted Inter.
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/inter-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/inter-medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/inter-semibold.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/inter-bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/static/fonts/inter-extrabold.woff2') format('woff2');
}

/* Metric-gematchter Fallback (Inter→Arial). Verhindert Layout-Shift wenn
   Inter erst nach First Paint geladen ist. Werte aus Fontaine. */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial');
  ascent-override: 90.20%;
  descent-override: 22.48%;
  line-gap-override: 0%;
  size-adjust: 107.40%;
}

/* B.1.170.0: Layout-Shift-Killer für den OAuth-Block auf /login. Der Block
   wird per JS aus `hidden` geholt, sobald `public-config` geantwortet hat —
   ohne reservierte Höhe springt die Anmeldekarte in dem Moment. Override
   `[hidden]`: display bleibt im Layout, visibility hidden +
   pointer-events:none, min-height passt zur Live-Höhe (~110 px, gemessen
   Desktop+Mobile). visibility:hidden hält das Element aus dem a11y-Tree und
   der Tab-Reihenfolge — semantisch äquivalent zum `hidden`-Verhalten.

   nado, 29.07.2026: `#google-login-block` ist mit Schnitt 7 entfallen und
   steht hier nicht mehr. Neu ist die Klasse `is-aus`: Der Platz wird nur
   reserviert, SOLANGE die Antwort aussteht. Steht dann fest, dass es keine
   Anmeldung mit Firmenkonto gibt (Kennung, Verzeichnis oder Secret fehlen in
   `entra_konfig` — Verwaltung → Firmenanmeldung), verschwindet der Block ganz
   — sonst klaffte über dem Formular dauerhaft eine leere Fläche für einen
   Knopf, den es nie geben wird.

   SSO-first (30.07.2026): Der Block steht jetzt VOR dem Passwort-Formular
   und trägt zusätzlich Trenner + „Mit Passwort anmelden" — die Reserve
   ist entsprechend höher. */
#microsoft-login-block[hidden] {
  display: block !important;
  visibility: hidden;
  pointer-events: none;
  min-height: 132px;
}
#microsoft-login-block[hidden].is-aus {
  display: none !important;
  min-height: 0;
}
/* Better Auth, Etappe 3: `is-aus` trägt jetzt auch das Passwort-Formular. Bei
   aktiver Firmenanmeldung klappt es zu und liegt hinter „Mit Passwort
   anmelden" (Notweg). Die Regel steht NACH der Blockregel oben, damit deren
   höhere Genauigkeit (`#id[hidden]`) dort weiter gewinnt. */
.is-aus {
  display: none !important;
}

/* ---------- Tokens ---------- */
:root {
  --bg-deep:        #1a1a1a;
  --bg:             #2d2d2d;
  --bg-elevate:     #383838;
  --bg-card:        #424242;
  --gold:           #DEA726;
  --gold-hover:     #C9941F;
  --gold-light:     #F0BE4A;
  --text:           #ffffff;
  --text-muted:     #a8a8a8;
  --text-dim:       #6a6a6a;
  --border:         #555555;
  --border-soft:    rgba(222, 167, 38, 0.12);
  --success:        #7CB342;
  --danger:         #E57373;
  --accent-warm:    #FFB74D;
  --accent-blue:    #64B5F6;
  --shadow-card:    0 2px 12px rgba(0,0,0,0.4);
  --shadow-mockup:  0 20px 60px rgba(0,0,0,0.6), 0 4px 12px rgba(0,0,0,0.4);
  --radius:         12px;
  --radius-lg:      16px;
  --radius-xl:      24px;
  --container:      1200px;
  --gutter:         24px;
  /* B.1.11.0: Easing & spacing tokens */
  --ease-ui:        cubic-bezier(0.4, 0, 0.2, 1);
  --ease-reveal:    cubic-bezier(0.16, 1, 0.3, 1);
  --section-pad-y:    80px;
  --section-pad-y-lg: 80px;
  --hero-pad-y:       80px;
}

@media (min-width: 768px) {
  :root {
    --gutter: 48px;
    --section-pad-y:    128px;
    --section-pad-y-lg: 160px;
    --hero-pad-y:       0px;
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  background-image:
    repeating-linear-gradient(0deg,
      transparent, transparent 2px,
      rgba(255,255,255,0.015) 2px, rgba(255,255,255,0.015) 3px);
}

@media (min-width: 768px) {
  body { font-size: 1.125rem; }
}

img, svg { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

/* ---------- Container & Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
}

/* ---------- Typografie (B.1.11.0: größere Skala) ---------- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin: 0; }
h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin: 0 0 24px;
}
h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 16px;
}
h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0 0 12px;
}
@media (min-width: 768px) {
  h1 { font-size: 7rem; }
  h2 { font-size: 3.5rem; }
  h3 { font-size: 1.75rem; }
}

.text-muted { color: var(--text-muted); }
.text-dim   { color: var(--text-dim); }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 10;
  padding: 24px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.125rem;
}
.brand:hover { color: var(--text); }
.brand__logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.site-header__login {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}
.site-header__login:hover { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  font-family: inherit;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.btn--primary {
  background: var(--gold);
  color: #1a1a1a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn--primary:hover {
  background: var(--gold-hover);
  color: #1a1a1a;
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 6px 16px rgba(222,167,38,0.25);
}
.btn--block { width: 100%; }
.btn:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

/* ---------- Card ---------- */
.card {
  background: var(--bg-elevate);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

/* ---------- Form ---------- */
.field { margin-bottom: 16px; }
.field__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.field__input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 16px;
  transition: outline 150ms;
}
.field__input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 0;
}
textarea.field__input {
  font-family: inherit;
  resize: vertical;
  min-height: 140px;
}

.field-error {
  color: var(--danger);
  font-size: 0.875rem;
  margin-top: 8px;
  min-height: 1.25rem;
}

/* Honeypot — vor Bots verstecken */

/* ---------- Hero ---------- */
/* ===================== HERO — Premium Redesign ===================== */
/* feine Punkt-Textur — Atmosphäre statt totem Schwarz */
/* sanfte Vignette für Tiefe */
.gold { color: var(--gold); }

/* ---- Typo-first Pitch (kein Fake-Mock; echte Screenshots weiter unten) ---- */
/* .section-eyebrow ist display:inline-block (später im File) → höhere
   Spezifität nötig, damit die 2 Zeilen wirklich stapeln */

/* ---- Mobil (Typo-first, kein Mock) ---- */

/* ---------- Story-Pillars (B.1.11.0: vertikal, alternierend) ---------- */

/* ---------- FAQ ---------- */

/* ---------- Sign-up-Section ---------- */
.signup {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.signup h2 { margin-bottom: 16px; }
.signup__card {
  width: 100%;
  max-width: 440px;
  text-align: left;
  position: relative;
}
.signup__hint {
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-deep);
  padding: 48px var(--gutter) 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.site-footer .brand { justify-content: center; margin-bottom: 12px; }
.site-footer__tag { color: var(--text-dim); margin-bottom: 24px; }
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-bottom: 24px;
}
.site-footer__links a { color: var(--text-muted); }
.site-footer__links a:hover { color: var(--gold); }
.site-footer__meta { color: var(--text-dim); font-size: 0.75rem; }

/* ---------- Sign-in-Card (Login + Sign-up reuse) ---------- */
.signin-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
}
.signin-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px var(--gutter);
}
.signin-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-elevate);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.signin-card h1 {
  font-size: 1.75rem;
  color: var(--gold);
  margin-bottom: 6px;
}
.signin-card__sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 24px;
}

/* ---------- Lese-Layout (Legal + Kontakt) ---------- */
.prose {
  max-width: 640px;
  margin: 0 auto;
}
.prose h1 { font-size: 2rem; margin-bottom: 16px; color: var(--gold); }
.prose h2 { font-size: 1.5rem; margin: 32px 0 12px; }
.prose h3 { font-size: 1.125rem; margin: 24px 0 8px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 16px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose .placeholder {
  background: rgba(222, 167, 38, 0.15);
  color: var(--gold-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9em;
}

/* ---------- 404-Page ---------- */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
}
.error-page__code {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
}
.error-page h1 {
  font-size: 1.75rem;
  margin: 0 0 16px;
}
.error-page p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 0 32px;
}

/* B.1.11.0: Pillar 1 — Tag-Karten-Mockup */
@keyframes task-roll-down {
  0%, 30%   { transform: translate(0, 0); opacity: 1; }
  55%       { transform: translate(0, 80px); opacity: 0.4; }
  60%, 100% { transform: translate(0, 0); opacity: 1; }
}

/* B.1.11.0: Pillar 2 — Two-Boards-Send-Mockup */
@keyframes bubble-send {
  0%, 10%   { transform: translate(-150%, -50%) scale(0.5); opacity: 0; }
  20%, 30%  { transform: translate(-150%, -50%) scale(1); opacity: 1; }
  60%, 70%  { transform: translate(50%, -50%) scale(1); opacity: 1; }
  85%       { transform: translate(50%, -50%) scale(0.5); opacity: 0; }
  100%      { transform: translate(-150%, -50%) scale(0.5); opacity: 0; }
}
@keyframes inbox-pulse {
  0%, 60%   { box-shadow: none; }
  70%, 80%  { box-shadow: 0 0 0 4px rgba(222,167,38,0.3); }
  100%      { box-shadow: none; }
}

/* B.1.11.0: Pillar 3 — Phone+Desktop-Sync-Mockup */

@keyframes device-sync-pulse {
  0%, 80%, 100% { box-shadow: 0 0 0 0 rgba(222,167,38,0); }
  85%, 92%      { box-shadow: 0 0 0 3px rgba(222,167,38,0.4); }
}

/* B.1.11.0: Big-Mockup-Sektion */
@keyframes glow-breathe {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.85; }
}

/* B.1.11.0: Scroll-Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease-reveal), transform 600ms var(--ease-reveal);
}

/* B.1.11.0: FAQ kompakter, ans Page-Ende */

/* B.1.11.0: Sign-up Refinement */
.signup__card {
  max-width: 480px;
  background: var(--bg-elevate);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow:
    inset 0 0 0 1px rgba(222,167,38,0.15),
    var(--shadow-card);
  background-image: linear-gradient(135deg,
    rgba(222,167,38,0.04) 0%,
    transparent 60%);
}
.signup__card .field { margin-bottom: 24px; }
.signup__card .field__input {
  height: 52px;
  padding: 0 18px;
  font-size: 1rem;
}
.signup__card .field__input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(222,167,38,0.18);
}
.signup__card .btn--primary {
  height: 56px;
  font-size: 1rem;
  font-weight: 700;
}
.signup__hint { margin-top: 32px; }

/* B.1.11.0: Maskottchen-Blink (nur Header-Logo) */
@keyframes brand-blink {
  0%, 95%, 100% { opacity: 1; }
  97%, 98%      { opacity: 0; }
}

/* B.1.11.0: Reduced-Motion-Override für alle Animationen */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  /* Reveal-Defaults sofort sichtbar */
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  /* Maskottchen-Augen sichtbar lassen */
}

/* =========================================================================
   B.1.42.0 — Landing Refresh: Feature-Grid, KI-Section, Android-Section,
              Phone-Mockup, Hover-Lifts, Glow-Layer
   ========================================================================= */

/* ---------- Hero-Polish: subtle glow layer ---------- */

/* ---------- Hero stat-row (Trust-signals als Badges) ---------- */

/* ---------- Warum-Sektion (Laien-Nutzen, reuse .features*) ---------- */

/* ---------- Feature-Grid (7 Karten) ---------- */
/* Flex statt auto-fit-Grid: ungerade Kartenzahl (7) → letzte Reihe
   zentriert statt links-bündig mit Leerslots (kein „schief/krumm") */

/* ---------- KI-Import-Highlight (dedicated Section) ---------- */
@keyframes ki-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(100,181,246,0.6); opacity: 1; }
  50%      { box-shadow: 0 0 0 8px rgba(100,181,246,0); opacity: 0.6; }
}

/* ---------- Android-App-Section ---------- */

/* ---------- Phone-Mockup ---------- */

/* Floating Widget-Demo neben dem Phone */

/* ---------- Play-Store Badge (custom) ---------- */

/* ---------- Polish kleine Klassen ---------- */

/* ---------- Real-Screenshots-Grid (ersetzt das alte big-mockup) ---------- */

/* ---------- Screenshots: Mobile/Desktop Toggle ---------- */

/* ---------- Desktop-Screenshots-Grid (2x2) ---------- */

/* Variante in Mobile-Modus: Phone-Grid bleibt 4-spaltig auf Desktop */

/* ============================================================
   Marketing-Refresh (B.1.171.0): Hero mit Produkt-Visual,
   „Wo ist der Haken?"-Reassurance, CTA-Anker in der Seitenmitte.
   Rein additiv — keine bestehende Regel angefasst.
   ============================================================ */

/* ---- Hero mit Produkt-Mockup (zweispaltig ab Desktop) ---- */
@media (max-width: 767px) {
  /* Mobil: Mockup unter den Pitch, etwas kleiner → CTA bleibt oben sichtbar */
}

/* ---- „Wo ist der Haken?"-Reassurance-Streifen ---- */

/* ---- CTA-Anker in der Seitenmitte ---- */
