/* Rondeja – Website
   Farben wie in der App: Ink #16161A als einzige dunkle Flaeche, Lime nur fuer die
   eine Aktion pro Seite, sonst neutral. Alle Schriften liegen im Repo. */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/outfit/outfit-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/outfit/outfit-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/outfit/outfit-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --ink: #16161A;
  --cream: #F5F3EC;
  --text-2: #B6BCC6;
  --text-3: #8A919C;
  --line: rgba(245, 243, 236, 0.12);
  --lime: #A3E635;
  --gutter: 20px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--cream);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Startseite ---------- */

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 56px 0 40px;
}

.logo {
  display: block;
  width: 92px;
  height: auto;
  margin: 0 0 28px;
}

.hero h1 {
  margin: 0;
  font-size: 46px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.lead {
  margin: 14px 0 0;
  font-size: 20px;
  line-height: 1.45;
  color: var(--cream);
  text-wrap: pretty;
}

.nobr { white-space: nowrap; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-2);
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-3);
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 340px;
  min-height: 56px;
  margin: 32px 0 0;
  padding: 0 20px;
  border-radius: 16px;
  background: var(--lime);
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

.cta:hover { filter: brightness(1.06); }
.cta:active { transform: scale(0.98); }
.cta:focus-visible { border-radius: 16px; }
.cta svg { flex: none; }

.cta-label {
  display: block;
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--text-3);
}

.en {
  margin: 40px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 16px;
}

.en h2 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--cream);
}

.en p { margin: 0; }

/* ---------- Rechtstexte ---------- */

.top {
  padding: 16px 0 0;
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Sichtbarer Rueckweg: Das Logo allein wird nicht als Link erkannt */
.back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 48px;
  margin-left: -6px;
  padding: 0 12px 0 6px;
  font-size: 17px;
  font-weight: 600;
  color: var(--cream);
  text-decoration: none;
}

.back:hover span { text-decoration: underline; text-underline-offset: 3px; }

.top-logo img {
  display: block;
  width: 40px;
  height: auto;
}

.doc {
  flex: 1;
  padding: 32px 0 48px;
  font-size: 17px;
  line-height: 1.6;
}

.doc h1 {
  margin: 0 0 24px;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.doc h2 {
  margin: 28px 0 6px;
  font-size: 18px;
  font-weight: 600;
}

.doc p,
.doc address {
  margin: 0;
  font-style: normal;
  color: var(--text-2);
}

.doc a { text-underline-offset: 3px; }

/* Lange Rechtstexte (Datenschutz, class="doc langtext"): Generator- und Kanzleitexte gliedern
   in drei Stufen und reihen Absaetze. h2 wird dort zur Kapitelueberschrift, damit h3/h4
   darunter erkennbar abgestuft bleiben; das Impressum (nur h2) bleibt unveraendert. */
.doc { overflow-wrap: break-word; hyphens: auto; }
.langtext h2 {
  margin: 44px 0 4px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.langtext h1 + h2 { margin-top: 8px; }
.doc h3 {
  margin: 26px 0 4px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}
.doc h4 {
  margin: 18px 0 2px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--cream);
}
.doc p + p { margin-top: 12px; }
.doc ul {
  margin: 10px 0 0;
  padding-left: 22px;
  color: var(--text-2);
}
.doc li + li { margin-top: 8px; }

/* Kennzeile: einzige Stelle mit Mono */
.doc .stand {
  margin: 40px 0 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-3);
}

/* ---------- Footer ---------- */

.foot {
  border-top: 1px solid var(--line);
}

/* Vier Links (drei Rechtstexte + Sprache) passen auf 375 px nicht in eine Zeile: Abstand
   statt Trennpunkten, damit beim Umbruch kein Punkt am Zeilenende haengt und die zweite
   Zeile buendig beginnt. */
.foot nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 22px;
  font-size: 15px;
  color: var(--text-3);
}

.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--text-2);
  text-decoration: none;
}
.foot a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.foot a[aria-current="page"] { color: var(--cream); }

@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .hero h1 { font-size: 56px; }
  .lead { font-size: 21px; }
  .logo { width: 104px; }
}

@media (prefers-reduced-motion: reduce) {
  .cta:active { transform: none; }
}
