/* Yesterme Website. Farben und Schrift folgen der App (src/theme/tokens.ts). */

@font-face { font-family: Outfit; font-weight: 300; font-display: swap; src: url(/assets/fonts/Outfit_300Light.ttf) format('truetype'); }
@font-face { font-family: Outfit; font-weight: 400; font-display: swap; src: url(/assets/fonts/Outfit_400Regular.ttf) format('truetype'); }
@font-face { font-family: Outfit; font-weight: 600; font-display: swap; src: url(/assets/fonts/Outfit_600SemiBold.ttf) format('truetype'); }

:root {
  --bg-top: #f7f7f8;
  --bg-bottom: #e8e8ea;
  --card: rgba(255, 255, 255, 0.62);
  --card-edge: rgba(255, 255, 255, 0.95);
  --text: #0c0c0d;
  --muted: #6a6a70;
  --line: #e4e4e7;
  --accent: #f4b312;
  --link: #8a6300;
  --orb-warm: rgba(244, 179, 18, 0.16);
  --orb-shade: rgba(176, 176, 186, 0.38);
  --shadow: rgba(24, 24, 32, 0.055);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-top: #131315;
    --bg-bottom: #070708;
    --card: rgba(44, 44, 48, 0.52);
    --card-edge: rgba(255, 255, 255, 0.08);
    --text: #f4f4f5;
    --muted: #a2a2a8;
    --line: #2b2b2f;
    --accent: #ffc533;
    --link: #ffc533;
    --orb-warm: rgba(255, 197, 51, 0.11);
    --orb-shade: rgba(0, 0, 0, 0.6);
    --shadow: rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Outfit, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(42rem 30rem at 88% -6%, var(--orb-warm), transparent 70%),
    radial-gradient(38rem 28rem at -8% 38%, var(--orb-shade), transparent 70%),
    linear-gradient(var(--bg-top), var(--bg-bottom));
  background-attachment: fixed;
}

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.top, main, footer { width: 100%; max-width: 46rem; margin: 0 auto; padding-inline: 1.25rem; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem 0.5rem; }
.brand { display: block; margin-left: -1.1rem; line-height: 0; }
.brand img { height: 3.75rem; width: auto; display: block; }
.top nav { display: flex; gap: 1.25rem; font-size: 0.95rem; }
.top nav a { color: var(--muted); text-decoration: none; padding-block: 0.4rem; }
.top nav a:hover, .top nav a[aria-current='page'] { color: var(--text); }
.top nav a[aria-current='page'] { box-shadow: 0 2px 0 var(--accent); }

main { flex: 1; padding-block: 1rem 3rem; }

.doc {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 28px;
  padding: clamp(1.4rem, 5vw, 3rem);
  box-shadow: 0 18px 40px var(--shadow);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  overflow-wrap: break-word;
}

h1 { font-weight: 300; font-size: clamp(1.9rem, 6vw, 2.6rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5rem; text-wrap: balance; }
h2 { font-weight: 600; font-size: 1.2rem; line-height: 1.3; margin: 2.6rem 0 0.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); text-wrap: balance; }
.doc > h2:first-of-type { margin-top: 1.6rem; }
p, ul { margin: 0 0 1rem; }
ul { padding-left: 1.2rem; }
li { margin-bottom: 0.4rem; }
li::marker { color: var(--accent); }
strong { font-weight: 600; }
.date { color: var(--muted); font-size: 0.95rem; }

.table { overflow-x: auto; margin-bottom: 1rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 0.7rem 0.9rem 0.7rem 0; border-bottom: 1px solid var(--line); }
th { font-weight: 600; color: var(--muted); font-size: 0.85rem; }

@media (max-width: 34rem) {
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tr { display: block; padding-block: 0.7rem; border-bottom: 1px solid var(--line); }
  td { display: block; border: 0; padding: 0.15rem 0; }
  td::before { content: attr(data-label); display: block; font-weight: 600; font-size: 0.8rem; color: var(--muted); }
  .brand img { height: 3.1rem; }
  .top nav { gap: 0.9rem; font-size: 0.9rem; }
}

footer { padding-block: 0 2.5rem; color: var(--muted); font-size: 0.9rem; }
footer p { margin: 0 0 0.25rem; }
footer a { color: inherit; }

/* Startseite */
.home .top nav { display: none; }
.hero { text-align: center; padding-block: clamp(1rem, 6vh, 4rem) 1rem; }
.mark { width: clamp(9rem, 38vw, 13rem); height: auto; }
.hero h1 { font-size: clamp(2.3rem, 9vw, 3.6rem); margin-top: 0.5rem; }
.lead { max-width: 30rem; margin: 1rem auto 1.75rem; color: var(--muted); font-size: 1.15rem; }
.facts { list-style: none; padding: 0; margin: 0 auto 2.25rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.facts li { margin: 0; padding: 0.45rem 1rem; border-radius: 999px; background: var(--card); border: 1px solid var(--card-edge); font-size: 0.95rem; }
.links { display: flex; justify-content: center; gap: 0.75rem; }
.pill { padding: 0.7rem 1.5rem; border-radius: 999px; background: var(--text); color: var(--bg-top); text-decoration: none; font-weight: 400; }
.pill + .pill { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--muted); }
