/* tolvie.app – Rechtliches und Kontolöschung. Farben und Schrift wie in der App (src/styles.css). */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

:root {
  color-scheme: light dark;
  --bg: #fafaf7;
  --surface: #f0efea;
  --line: #e6e5e0;
  --text: #1a1a1a;
  --muted: #6b6b66;
  --accent: #2f7d5b;
  --accent-soft: #e4f0ea;
  --measure: 40rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --surface: #1e1e1c;
    --line: #2a2a28;
    --text: #ededed;
    --muted: #a3a39c;
    --accent: #7cc4a0;
    --accent-soft: #1c3328;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: 'cv11', 'ss03';
}

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

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Kopf: Marke links, drei Ziele rechts */
.site-header {
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 650;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand img {
  width: 1.75rem;
  height: 1.75rem;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-size: 0.9375rem;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--text);
}
.site-nav a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

main {
  padding-block: 3rem 4rem;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.875rem, 1.4rem + 2vw, 2.5rem);
  line-height: 1.15;
  font-weight: 680;
  letter-spacing: -0.025em;
}
h2 {
  margin: 2.75rem 0 0.5rem;
  font-size: 1.3125rem;
  line-height: 1.3;
  font-weight: 640;
  letter-spacing: -0.01em;
}
h3 {
  margin: 1.75rem 0 0.25rem;
  font-size: 1.0625rem;
  font-weight: 640;
}
p,
ul,
ol {
  margin: 0 0 1rem;
}
ul,
ol {
  padding-left: 1.25rem;
}
li + li {
  margin-top: 0.35rem;
}
.lead {
  color: var(--muted);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

/* „Kurz gesagt“: die Zusammenfassung in einfacher Sprache, wie im Einwilligungsschritt der App */
.gist {
  margin: 0 0 2.5rem;
  padding: 1.25rem 1.5rem 1.25rem 1.25rem;
  background: var(--accent-soft);
  border-radius: 14px;
}
.gist h2 {
  margin: 0 0 0.75rem;
  font-size: 1.0625rem;
}
.gist ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.gist li {
  position: relative;
  padding-left: 1.75rem;
}
.gist li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 0.45em;
  width: 0.7rem;
  height: 0.4rem;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* Anbieter-Tabelle in der Datenschutzerklärung */
.processors {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1.5rem;
  font-size: 0.9375rem;
}
.processors th,
.processors td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem 0.6rem 0;
  border-bottom: 1px solid var(--line);
}
.processors th {
  font-weight: 600;
  color: var(--muted);
}
@media (max-width: 34rem) {
  .processors thead {
    display: none;
  }
  .processors tr {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }
  .processors td {
    display: block;
    padding: 0.1rem 0;
    border: 0;
  }
  .processors td:first-child {
    font-weight: 600;
  }
}

/* Platzhalter, die vor dem Veröffentlichen ersetzt werden müssen */
.todo {
  background: #fff3c4;
  color: #5c4400;
  padding: 0 0.25em;
  border-radius: 3px;
}
@media (prefers-color-scheme: dark) {
  .todo {
    background: #4a3a00;
    color: #ffe8a3;
  }
}

/* Schritte zur Kontolöschung */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 0.9rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 650;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.5rem 2.5rem;
}
.site-footer a {
  color: var(--muted);
}

/* Startseite: der Keimling entfaltet einmal seine Blätter */
.home {
  padding-block: 4rem 5rem;
}
.sprout {
  width: 7rem;
  height: 7rem;
  margin-bottom: 1.5rem;
}
.sprout path {
  fill: var(--accent);
  transform-box: view-box;
  transform-origin: 50px 28px;
}
.sprout rect {
  fill: var(--accent);
}
@media (prefers-reduced-motion: no-preference) {
  .sprout .leaf-l {
    animation: unfurl-l 900ms cubic-bezier(0.2, 0.8, 0.2, 1) 150ms both;
  }
  .sprout .leaf-r {
    animation: unfurl-r 900ms cubic-bezier(0.2, 0.8, 0.2, 1) 250ms both;
  }
}
@keyframes unfurl-l {
  from {
    transform: rotate(35deg) scale(0.2);
    opacity: 0;
  }
}
@keyframes unfurl-r {
  from {
    transform: rotate(-35deg) scale(0.2);
    opacity: 0;
  }
}
.home h1 {
  font-size: clamp(2.25rem, 1.6rem + 3vw, 3.25rem);
  max-width: 18ch;
}
.home .lead {
  max-width: 34rem;
}
.home-links {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  border-top: 1px solid var(--line);
}
.home-links li {
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.home-links a {
  display: block;
  padding: 1rem 0;
  color: var(--text);
  text-decoration: none;
}
.home-links a span {
  display: block;
  color: var(--muted);
  font-size: 0.9375rem;
}
.home-links a:hover strong {
  text-decoration: underline;
  text-decoration-color: var(--accent);
}
