/* =======================================================================
   aaf-Prep — Closed Beta
   Eine einzige Stylesheet-Datei für DE und EN (Landing + Legal-Pages).
   Aufbau: 1) Farben & Variablen  2) Reset  3) Layout  4) Komponenten
           5) Footer  6) Rechts-Seiten  7) Mobile-Breakpoint
   Wenn du Farben oder Schriftgrößen ändern willst: Block 1 reicht meist.
   ======================================================================= */


/* =======================================================================
   1) FARBEN & VARIABLEN
   Alle Farben kommen aus einer Stelle. Farbe ändern = eine Zeile ändern.
   ======================================================================= */
:root {
  --bg:           #0e1116;       /* Hintergrund */
  --bg-elevated:  #161a22;       /* leicht hellere Box (Karten, Footer) */
  --fg:           #e8eaed;       /* Haupt-Textfarbe */
  --fg-muted:     #9aa0a6;       /* sekundärer Text, Footer */
  --accent:       #6ea8fe;       /* Links + BETA-Pill */
  --accent-cta:   #d97e3f;       /* warmer Accent für CTA/Hervorhebungs-Sections */
  --border:       #262b35;       /* dünne Linien */

  --radius:       8px;
  --max-width:    1040px;
  --line-height:  1.65;

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


/* =======================================================================
   2) RESET — minimaler "alles auf 0" Reset, damit Browser-Defaults uns
      nicht ins Layout reinpfuschen.
   ======================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: var(--line-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* vertikales Zentrieren der ganzen Seite */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }

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


/* =======================================================================
   3) LAYOUT — Top-Bar, Hauptinhalt zentriert, Footer unten
   ======================================================================= */
.topbar {
  width: 100%;
  padding: 18px 24px;
  display: flex;
  justify-content: flex-end;
  font-size: 14px;
}

.topbar .lang a,
.topbar .lang span {
  margin-left: 10px;
  color: var(--fg-muted);
}
.topbar .lang .active {
  color: var(--fg);
  font-weight: 600;
}

main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}


/* =======================================================================
   4) KOMPONENTEN — Hero, Beta-Pill, Tagline, Feature-Liste, Kontakt
   ======================================================================= */

/* Hero-Brand-Paar: aaf-Prep + aa-Schmiede mit Logos darüber, "von" dazwischen */
.hero-brands {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 32px;
  margin: 0 0 14px;
  flex-wrap: wrap;
  width: 100%;
}

.brand-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.brand-logo {
  display: block;
  width: auto;
  max-width: 100%;
}
.brand-logo--aaf      { height: 180px; }
.brand-logo--schmiede { height: 180px; }

.brand-name {
  font-size: 2.4rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--fg);
}

.brand-sub {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin: -4px 0 0;
  letter-spacing: 0.04em;
  font-style: italic;
}

.brand-connector {
  font-size: 1.4rem;
  color: var(--fg-muted);
  font-weight: 400;
  padding-bottom: 8px;
}

.tagline {
  font-size: 1.55rem;
  color: var(--fg);
  margin: 0 0 16px;
  font-weight: 500;
}

.status {
  font-size: 1.1rem;
  color: var(--fg-muted);
  margin: 0 0 32px;
  max-width: 520px;
}

/* Hero-Screenshot — App-UI als visueller Beweis unter dem Hero */
.hero-screenshot {
  display: block;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45),
              0 4px 10px rgba(0, 0, 0, 0.30);
}

.description {
  margin: 0 0 24px;
  text-align: left;
  max-width: 560px;
  font-size: 1.05rem;
}

.description--lead {
  margin-top: 24px;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--fg);
}


/* =======================================================================
   4a) FEATURE-AKKORDION  — natives <details>/<summary>, kein JS.
       Klick auf den Feature-Satz klappt den Detailtext aus.
   ======================================================================= */
.features-accordion {
  width: 100%;
  max-width: 560px;
  text-align: left;
  margin: 0 0 36px;
}

.feature {
  border-top: 1px solid var(--border);
}
.feature:last-child {
  border-bottom: 1px solid var(--border);
}

.feature summary {
  list-style: none;             /* Firefox: hide default disclosure */
  cursor: pointer;
  padding: 14px 28px 14px 24px;
  position: relative;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--fg);
  outline: none;
  transition: color 0.15s ease;
}
.feature summary::-webkit-details-marker { display: none; }   /* Safari/Chrome */
.feature summary::marker { content: ""; }                     /* Firefox modern */

.feature summary:hover { color: var(--accent); }

/* Custom disclosure arrow on the left, rotates when open. */
.feature summary::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 5px solid var(--accent);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transform: translateY(-50%);
  transition: transform 0.18s ease;
}
.feature[open] summary::before {
  transform: translateY(-50%) rotate(90deg);
}

.feature p {
  margin: 0 0 14px;
  padding: 0 8px 4px 24px;
  color: var(--fg-muted);
  font-size: 1rem;
}


/* =======================================================================
   4b) DEMO-BLOCK — abgesetzter Hinweis, KEIN Akkordion
   ======================================================================= */
.demo-block {
  width: 100%;
  max-width: 560px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 8px 0 28px;
  text-align: left;
}
.demo-block h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--fg);
}
.demo-block p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 1rem;
}


/* =======================================================================
   4c) PLATFORM-NOTE — kleine Zeile unter dem Kontakt-Block
   ======================================================================= */
.platform-note {
  margin: 24px 0 0;
  font-size: 0.85rem;
  color: var(--fg-muted);
  max-width: 560px;
  text-align: center;
}


/* =======================================================================
   4d) WORKFLOW-STORY — kurze Positionierung „wo es im Tag sitzt"
   Akzent-Balken links, dezenter Hintergrund, Eyebrow-Headline.
   Steht zwischen Description-Absatz und Features-Akkordion.
   ======================================================================= */
.workflow-story {
  width: 100%;
  max-width: 560px;
  margin: 0 0 32px;
  padding: 14px 18px;
  background: rgba(110, 168, 254, 0.06);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
}
.workflow-story h2 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 6px;
}
.workflow-story p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--fg);
}
.workflow-story p + p {
  margin-top: 0.5em;
}


/* =======================================================================
   4e) BETA-TESTERS-WANTED — CTA-Section für Tester-Akquise
   Strukturell analog zu .workflow-story, aber mit warmem Accent (--accent-cta),
   damit sie sich visuell vom blauen Workflow-Akzent absetzt.
   ======================================================================= */
.beta-testers-wanted {
  width: 100%;
  max-width: 560px;
  margin: 0 0 32px;
  padding: 14px 18px;
  background: rgba(217, 126, 63, 0.06);
  border-left: 3px solid var(--accent-cta);
  border-radius: 4px;
  text-align: left;
}
.beta-testers-wanted h2 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-cta);
  margin: 0 0 6px;
}
.beta-testers-wanted p {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--fg);
}
.beta-testers-wanted ul {
  margin: 8px 0;
  padding-left: 20px;
  color: var(--fg);
}
.beta-testers-wanted ul li {
  margin-bottom: 4px;
}
.beta-testers-wanted a {
  font-family: var(--font-mono);
  font-size: 1rem;
}


.contact {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  width: 100%;
  max-width: 560px;
  margin-top: 8px;
}
.contact p { margin: 0 0 8px; }
.contact a {
  font-family: var(--font-mono);
  font-size: 1rem;
}


/* =======================================================================
   5) FOOTER
   ======================================================================= */
footer {
  width: 100%;
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--fg-muted);
}

footer a { color: var(--fg-muted); }
footer .sep { margin: 0 8px; opacity: 0.5; }

/* Kleines aa-Schmiede-Logo zusätzlich im Footer */
.footer-brand {
  display: block;
  margin: 0 auto 12px;
  max-height: 44px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.18s ease;
}
.footer-brand:hover { opacity: 1; }



/* =======================================================================
   6) RECHTS-SEITEN (Impressum + Datenschutz + EULA) — gleicher Stack,
      andere Textausrichtung. Alle Sub-Element-Stylings werden vom
      generierten Legal-HTML genutzt (h1-h4, p, ul, strong, hr, blockquote,
      code, pre, table).
   ======================================================================= */
.legal {
  text-align: left;
  max-width: 640px;
  width: 100%;
}

.legal h1 {
  font-size: 1.8rem;
  margin: 24px 0 24px;
}

.legal h2 {
  font-size: 1.15rem;
  margin: 32px 0 12px;
  color: var(--fg);
}

.legal h3 {
  font-size: 1.0rem;
  margin: 24px 0 8px;
  color: var(--fg);
}

.legal h4 {
  font-size: 0.92rem;
  margin: 20px 0 8px;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.legal p, .legal ul { margin: 0 0 16px; }

.legal strong { color: var(--fg); }

.legal hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

.legal blockquote {
  margin: 16px 0;
  padding: 8px 16px;
  border-left: 3px solid var(--border);
  color: var(--fg-muted);
}

.legal code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--bg-elevated);
  padding: 1px 6px;
  border-radius: 3px;
}

.legal pre {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--bg-elevated);
  padding: 12px 14px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 12px 0;
}
.legal pre code {
  background: transparent;
  padding: 0;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.96rem;
}
.legal th,
.legal td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}
.legal th {
  background: var(--bg-elevated);
  font-weight: 600;
  color: var(--fg);
}

.legal .placeholder {
  display: inline-block;
  background: rgba(255, 196, 0, 0.12);
  border: 1px dashed rgba(255, 196, 0, 0.45);
  color: #ffd966;
  padding: 1px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.legal .back {
  display: inline-block;
  margin-top: 24px;
  font-size: 0.95rem;
}

.legal .footer-stamp {
  margin-top: 32px;
  font-size: 0.85rem;
  color: var(--fg-muted);
  font-style: italic;
}

.legal .address-block {
  text-align: center;
  margin: 16px 0;
}


/* =======================================================================
   4f) NOT-FOUND — 404-Page Section
   Neutraler Akzent (kein --accent-cta, weil 404 keine CTA-Section ist).
   ======================================================================= */
.not-found {
  width: 100%;
  max-width: 560px;
  text-align: center;
  margin: 32px 0 24px;
}
.not-found h2 {
  font-size: 1.5rem;
  margin: 0 0 16px;
  color: var(--fg);
}
.not-found p {
  margin: 0 0 12px;
  color: var(--fg-muted);
  font-size: 1.05rem;
}
.not-found .sep {
  margin: 0 8px;
  opacity: 0.5;
}


/* =======================================================================
   7) MOBILE-BREAKPOINT — kleine Anpassungen unter 768 px
   ======================================================================= */
@media (max-width: 767px) {
  body { font-size: 16px; }
  main { padding: 16px 18px 36px; }
  .topbar { padding: 14px 18px; }
  .contact { padding: 18px; }
  .tagline { font-size: 1.15rem; }
  .description { font-size: 1rem; }
  .feature summary { padding: 12px 22px 12px 22px; font-size: 1rem; }
  .feature p { padding: 0 4px 4px 22px; font-size: 0.96rem; }
  .demo-block { padding: 16px 18px; }
  .demo-block h2 { font-size: 1.05rem; }
  .demo-block p { font-size: 0.96rem; }
  .beta-testers-wanted { padding: 12px 14px; }
  .beta-testers-wanted p { font-size: 1rem; }
  .legal table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .brand-logo--aaf      { height: 160px; }
  .brand-logo--schmiede { height: 130px; }
  .brand-name { font-size: 1.8rem; }
  .brand-sub { font-size: 0.8rem; }
  .brand-connector { font-size: 1.1rem; padding-bottom: 4px; }
  .hero-brands { gap: 18px; }
  .tagline { font-size: 1.3rem; }
  .status { font-size: 1rem; }
  .footer-brand { max-height: 38px; }
  .hero-screenshot { margin-bottom: 28px; border-radius: 6px; }
}
