/* tap and prac – Website: Datenschutz & Impressum
   Schrift: Manrope (SIL Open Font License 1.1), lokal eingebunden. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  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;
}

:root {
  /* Farben wie in der App (helles Design) */
  --bg: #ffffff;        /* paper */
  --sub: #fafafa;       /* leicht abgesetzt */
  --sunk: #f4f4f5;      /* eingesenkte Flächen */
  --paper: #ffffff;
  --ink: #0e0e10;
  --ink2: #3a3a40;
  --muted: #71717a;
  --soft: #a1a1aa;
  --line: #eaeaec;      /* Haarlinie */
  --line2: #dcdce0;
  --brand: #14648c;
  --brand-soft: #eaf2f7;
  --button: #14141a;
  --warm: #2b6ca6;
  --green: #21855a;
  --tech: #6e63a8;
  --cool: #7e9636;
  --orange: #d1751b;
  --radius: 16px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "ss01" 1;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 16px; }

/* ---------- Kopfzeile ---------- */
.topbar {
  position: sticky; top: 0; z-index: 5; border-bottom-color: var(--line);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  background: rgba(255, 255, 255, .86);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1040px; margin: 0 auto;
  padding: 10px max(16px, env(safe-area-inset-left)) 10px max(16px, env(safe-area-inset-right));
  display: flex; align-items: center; gap: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand span { white-space: nowrap; }
.nav { flex-wrap: nowrap; }
@media (max-width: 480px) {
  .brand span { display: none; }
  .nav a { font-size: 14.5px; padding: 6px 8px; }
}
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; justify-content: flex-end; }
.nav a { color: var(--ink2); text-decoration: none; font-size: 15px; font-weight: 600; padding: 6px 10px; border-radius: 999px; }
.nav a:hover { background: var(--sunk); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; margin-left: 6px; }
.lang a, .lang span { font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-decoration: none; }
.lang span { background: var(--button); color: #fff; }
.lang a { color: var(--muted); }

/* ---------- Kopf (wie die Titel in der App: groß, sehr leicht) ---------- */
.hero { position: relative; background: var(--bg); color: var(--ink); border-bottom: 1px solid var(--line); }
.hero::after {
  /* fünf Notenlinien als feine Haarlinien */
  content: ""; position: absolute; left: 0; right: 0; bottom: 22px; height: 33px;
  background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 8px);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1040px; margin: 0 auto;
  padding: 52px max(16px, env(safe-area-inset-left)) 84px max(16px, env(safe-area-inset-right));
}
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin: 0 0 10px; }
.hero h1 { font-weight: 200; font-size: clamp(36px, 6vw, 58px); line-height: 1.08; letter-spacing: -.02em; margin: 0; }
.hero p.lead { font-size: clamp(17px, 2.2vw, 20px); font-weight: 400; max-width: 46ch; color: var(--ink2); margin: 14px 0 0; }
.hero .meta { margin-top: 18px; font-size: 14px; color: var(--muted); }

.app-hero { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.app-hero img { width: 120px; height: 120px; border-radius: 27px; border: 1px solid var(--line); }
.pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 7px 14px; border-radius: 999px; background: var(--sunk); color: var(--ink2); font-size: 14px; font-weight: 600; }
@media (max-width: 560px) {
  .app-hero { grid-template-columns: 1fr; gap: 20px; }
  .app-hero img { width: 92px; height: 92px; border-radius: 21px; }
}

/* ---------- Inhalt ---------- */
main { max-width: 1040px; margin: 28px auto 0; padding: 0 max(16px, env(safe-area-inset-left)) 40px max(16px, env(safe-area-inset-right)); position: relative; z-index: 2; }
.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.layout.single { grid-template-columns: minmax(0, 1fr); max-width: 780px; margin: 0 auto; }
@media (max-width: 900px) { .layout { grid-template-columns: minmax(0, 1fr); } }

/* Karten wie in der App: weißes Papier, Haarlinie statt Schatten */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.doc { padding: clamp(22px, 4vw, 44px); }
.doc h2 {
  font-size: 23px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3;
  margin: 2.2em 0 .6em; padding-left: 14px; position: relative;
}
.doc h2::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 4px; background: var(--brand); }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 18px; font-weight: 700; margin: 1.8em 0 .4em; }
.doc p, .doc li { color: var(--ink2); }
.doc ul { padding-left: 1.2em; }
.doc li { margin: .3em 0; }
.doc li::marker { color: var(--brand); }
.doc strong { color: var(--ink); font-weight: 700; }
.address { font-style: normal; line-height: 1.7; padding: 16px 20px; border-radius: 14px; background: var(--brand-soft); color: var(--ink); margin: 12px 0; }
.address a { font-weight: 700; }
.small { font-size: 15px; color: var(--muted); }
.stand { display: inline-block; font-size: 14px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; margin-bottom: 18px; }

/* Auf einen Blick */
.glance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 8px 0 8px; }
@media (max-width: 640px) { .glance { grid-template-columns: minmax(0, 1fr); } }
.glance div { padding: 16px 18px; border-radius: 14px; background: var(--sunk); }
.glance b { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.glance span { color: var(--muted); font-size: 15px; line-height: 1.5; display: block; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--green); }
.dot.b { background: var(--brand); }
.dot.o { background: var(--orange); }

/* Inhaltsverzeichnis */
.toc { position: sticky; top: 84px; padding: 20px 18px; }
.toc p { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: flex; gap: 8px; padding: 6px 8px; border-radius: 10px; text-decoration: none; color: var(--ink2); font-size: 14.5px; line-height: 1.35; }
.toc a::before { content: counter(t); color: var(--brand); font-weight: 700; min-width: 1.2em; }
.toc a:hover { background: var(--sunk); color: var(--ink); }
@media (max-width: 900px) { .toc { position: static; } }

/* Startseite */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: minmax(0, 1fr); } }
.feature { padding: 22px 22px 20px; }
.feature .icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--tint, var(--brand)) 12%, white); color: var(--tint, var(--brand)); margin-bottom: 14px; }
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 6px; font-size: 17.5px; font-weight: 700; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.section-title { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 40px 4px 14px; }
.cta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 640px) { .cta { grid-template-columns: minmax(0, 1fr); } }
.cta a { display: block; padding: 22px 24px; text-decoration: none; color: var(--ink); }
.cta a:hover { border-color: var(--line2); background: var(--sub); }
.cta b { display: block; font-size: 18px; margin-bottom: 4px; }
.cta span { color: var(--muted); font-size: 15px; }
.cta .arrow { float: right; color: var(--brand); font-weight: 700; }
.privacy-strip { padding: 24px 26px; display: grid; gap: 6px; }
.privacy-strip b { font-size: 18px; }
.privacy-strip p { margin: 0; color: var(--ink2); }

/* ---------- Fußzeile ---------- */
footer.site {
  max-width: 1040px; margin: 0 auto;
  padding: 28px max(16px, env(safe-area-inset-left)) calc(36px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-right));
  color: var(--muted); font-size: 14px;
  display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; justify-content: space-between;
}
footer.site nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--brand); }

@media print {
  .topbar, footer.site, .toc { display: none; }
  .hero { border: none; }
  .hero::after { display: none; }
  .hero-inner { padding: 0 0 12px; }
  main { margin: 0; }
  .card { box-shadow: none; border: none; }
  .layout { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Farben der Bereiche (wie im Übeplan der App) */
.t-warm { --tint: var(--warm); }
.t-main { --tint: var(--green); }
.t-tech { --tint: var(--tech); }
.t-final { --tint: var(--orange); }
.t-cool { --tint: var(--cool); }
.t-brand { --tint: var(--brand); }
