/* ==========================================================================
   PostSafe — Grundlage (alle Seiten)
   Keine externen Schriften, keine externen Skripte, keine Cookies.
   ========================================================================== */

:root {
  color-scheme: light dark;

  --bg:         #fcfbf9;
  --bg-elev:    #ffffff;
  --surface:    #ffffff;
  --surface-2:  #f4f2ee;
  --ink:        #16161a;
  --ink-2:      #3c3c44;
  --muted:      #66666f;
  --line:       #e6e3dd;
  --line-2:     #d6d2ca;
  --accent:     #1d4ed8;
  --accent-ink: #ffffff;
  --accent-soft:rgba(29, 78, 216, 0.09);
  --paper:      #ffffff;
  --paper-line: #e7e4dd;
  --paper-ink:  #16161a;

  --shadow-1: 0 1px 2px rgba(20, 20, 30, 0.05), 0 8px 24px rgba(20, 20, 30, 0.06);
  --shadow-2: 0 2px 8px rgba(20, 20, 30, 0.08), 0 28px 60px rgba(20, 20, 30, 0.13);
  --shadow-3: 0 4px 12px rgba(20, 20, 30, 0.10), 0 48px 90px rgba(20, 20, 30, 0.18);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --measure: 34rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:         #0a0a0c;
    --bg-elev:    #121215;
    --surface:    #141418;
    --surface-2:  #1c1c21;
    --ink:        #f4f4f6;
    --ink-2:      #cdcdd5;
    --muted:      #93939e;
    --line:       #26262d;
    --line-2:     #34343d;
    --accent:     #9fb7ff;
    --accent-ink: #0a0a0c;
    --accent-soft:rgba(159, 183, 255, 0.13);
    --paper:      #17171c;
    --paper-line: #2b2b33;
    --paper-ink:  #f0f0f3;

    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-2: 0 2px 8px rgba(0, 0, 0, 0.55), 0 28px 60px rgba(0, 0, 0, 0.5);
    --shadow-3: 0 4px 12px rgba(0, 0, 0, 0.6), 0 48px 90px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { max-width: 100%; }

::selection { background: var(--accent-soft); }

/* --- Fokus ---------------------------------------------------------------- */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

.skip {
  position: absolute;
  left: 50%;
  top: 0.75rem;
  transform: translate(-50%, -200%);
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 0.7rem 1.1rem;
  border-radius: 0.6rem;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s var(--ease);
}
.skip:focus { transform: translate(-50%, 0); }

/* --- Kopfzeile ------------------------------------------------------------ */

/* Immer durchsichtig: der Inhalt beginnt oben am Rand, ohne sichtbare Kante. */
.site-head {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: none;
  border: none;
}

.site-head__in {
  max-width: 78rem;
  margin: 0 auto;
  padding: 0.85rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 620;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  min-height: 44px;
}

.brand__mark { flex: none; border-radius: 7px; }

.site-nav { display: none; gap: 1.6rem; }

.site-nav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.97rem;
  padding: 0.6rem 0;
  transition: color 0.25s var(--ease-soft);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.35rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--ink); }

.head-back {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.97rem;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.head-back:hover { color: var(--ink); }

@media (min-width: 640px) {
  .site-nav { display: flex; }
  .head-back { display: none; }
}

/* --- Fußzeile ------------------------------------------------------------- */

.site-foot {
  border-top: 1px solid var(--line);
  background: var(--bg);
  margin-top: 0;
}

.site-foot__in {
  max-width: 78rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) var(--pad) clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  gap: 2rem;
}

.site-foot__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.site-foot__note {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0.5rem 0 0;
  max-width: 22rem;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 2rem;
  align-items: flex-start;
}

.foot-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 1rem;
  padding: 0.55rem 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.25s var(--ease-soft);
}
.foot-links a:hover { color: var(--ink); }

.site-foot__legal {
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  margin: 0;
}

@media (min-width: 800px) {
  .site-foot__in {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
  .site-foot__legal { grid-column: 1 / -1; }
}

/* --- Rechtstexte / Fließtext ---------------------------------------------- */

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(6.5rem, 14vh, 9rem) var(--pad) clamp(3.5rem, 8vw, 6rem);
}

.wrap h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.wrap h2 {
  font-size: clamp(1.2rem, 2.4vw, 1.4rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 3rem 0 0.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.wrap h3 {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin: 2rem 0 0.4rem;
}

.wrap p, .wrap li { margin: 0.75rem 0; color: var(--ink-2); }
.wrap strong { color: var(--ink); font-weight: 600; }
.wrap ul, .wrap ol { padding-left: 1.25rem; }
.wrap li::marker { color: var(--muted); }

a { color: var(--accent); text-underline-offset: 0.18em; }

.stand {
  color: var(--muted) !important;
  font-size: 0.95rem;
  margin-bottom: 2.5rem !important;
}

.note {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 1.1rem 1.25rem;
  margin: 1.6rem 0;
}
.note > :first-child { margin-top: 0; }
.note > :last-child { margin-bottom: 0; }

.scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.4rem 0;
  border-radius: 0.9rem;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  min-width: 30rem;
  border-collapse: collapse;
  font-size: 0.96rem;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}

tr:last-child td { border-bottom: none; }

th {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--surface-2);
}

/* --- Bewegung aus ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
