/* Dreeter – Website. Farben und Schrift wie in der App (src/theme/tokens.ts).
   Keine externen Quellen: Schrift liegt lokal, keine Cookies, kein Tracking. */

@font-face {
  font-family: 'Archivo';
  src: url('fonts/Archivo-400.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('fonts/Archivo-600.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('fonts/Archivo-800.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0b0c0e;
  --surface: #16181b;
  --surface-2: #212429;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f2ec;
  --text-2: rgba(235, 235, 245, 0.68);
  --text-3: rgba(235, 235, 245, 0.46);
  --accent: #f2c230;
  --accent-soft: rgba(242, 194, 48, 0.14);
  --teal: #4fb3a9;
  --plate-blue: #1f4fb5;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text);
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-color: var(--accent);
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding-inline: 20px;
}

/* Kopfzeile */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.top nav {
  display: flex;
  gap: 18px;
  font-size: 15px;
  color: var(--text-2);
}
.top nav a {
  color: var(--text-2);
  text-decoration: none;
}
.top nav a:hover,
.top nav a[aria-current='page'] {
  color: var(--text);
}

/* Startseite */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 48px;
  padding-block: 56px 72px;
}
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.02;
  margin-block: 14px 20px;
}
.lead {
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--text-2);
  max-width: 34ch;
  margin: 0;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
}
.status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.radar {
  width: 100%;
  max-width: 420px;
  height: auto;
  justify-self: center;
  aspect-ratio: 1;
  border-radius: 28%;
  box-shadow: 0 40px 120px rgba(242, 194, 48, 0.08), 0 20px 60px rgba(0, 0, 0, 0.5);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  padding-bottom: 72px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.feature h3 {
  font-size: 19px;
  margin-bottom: 8px;
}
.feature p {
  margin: 0;
  color: var(--text-2);
  font-size: 16px;
}
.feature .plate {
  display: inline-flex;
  align-items: stretch;
  height: 30px;
  margin-bottom: 14px;
  border: 2px solid #121212;
  border-radius: 5px;
  background: #fbfbf8;
  color: #121212;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.06em;
  overflow: hidden;
}
.feature .plate span:first-child {
  width: 18px;
  background: var(--plate-blue);
}
.feature .plate span:last-child {
  display: flex;
  align-items: center;
  padding-inline: 8px;
}

.note {
  border-left: 3px solid var(--teal);
  padding: 6px 0 6px 18px;
  color: var(--text-2);
  max-width: 62ch;
  margin: 0 0 72px;
}

/* Rechtstexte */
.legal {
  max-width: 760px;
  padding-block: 32px 72px;
}
.legal h1 {
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.1;
  margin-bottom: 8px;
}
.legal .meta {
  color: var(--text-3);
  font-size: 15px;
  margin: 0 0 32px;
}
.legal h2 {
  font-size: 24px;
  margin-top: 44px;
  margin-bottom: 12px;
  scroll-margin-top: 16px;
}
.legal h3 {
  font-size: 19px;
  margin-top: 28px;
  margin-bottom: 8px;
  scroll-margin-top: 16px;
}
.legal p,
.legal li {
  color: var(--text-2);
}
.legal strong {
  color: var(--text);
  font-weight: 600;
}
.legal ul,
.legal ol {
  padding-left: 22px;
}
.legal li {
  margin-bottom: 6px;
}
.legal address {
  font-style: normal;
  color: var(--text);
  line-height: 1.7;
}
.box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-block: 16px;
}
.box p:first-child {
  margin-top: 0;
}
.box p:last-child {
  margin-bottom: 0;
}
.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px 18px 40px;
  margin-bottom: 8px;
}
.toc li {
  margin-bottom: 4px;
}
.table-wrap {
  overflow-x: auto;
  margin-block: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 560px;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
}
th {
  color: var(--text);
  font-weight: 600;
  background: var(--surface-2);
}
tr:last-child td {
  border-bottom: 0;
}

/* Platzhalter: vor dem Veröffentlichen ersetzen (website/check.mjs prüft das) */
.todo {
  background: rgba(242, 194, 48, 0.22);
  color: var(--accent);
  border: 1px dashed var(--accent);
  border-radius: 4px;
  padding: 0 4px;
}

/* Fußzeile */
.foot {
  border-top: 1px solid var(--line);
  padding-block: 28px 40px;
  color: var(--text-3);
  font-size: 15px;
}
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.foot a {
  color: var(--text-2);
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }
  .wrap {
    padding-inline: 16px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 28px 48px;
  }
  .radar {
    max-width: 168px;
    order: -1;
    justify-self: start;
    box-shadow: 0 16px 48px rgba(242, 194, 48, 0.08), 0 8px 24px rgba(0, 0, 0, 0.5);
  }
  /* Impressum und Datenschutz bleiben auch auf dem Handy oben erreichbar. */
  .brand {
    font-size: 20px;
    gap: 10px;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  .top nav {
    gap: 14px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .radar {
    animation: settle 0.6s ease-out both;
  }
  @keyframes settle {
    from {
      transform: scale(0.97);
    }
    to {
      transform: scale(1);
    }
  }
}
