/* Shared styling for impressum.html and datenschutz.html.
   Design tokens are copied from index.html so the legal pages read as part of
   the same site. Plus Jakarta Sans is self-hosted (SIL OFL 1.1, fonts/OFL.txt):
   pulling it from fonts.googleapis.com would hand every visitor's IP to Google
   before they can consent, which is exactly what these pages promise doesn't
   happen. */

@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400;
             font-display: swap; src: url('fonts/PlusJakartaSans-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 500;
             font-display: swap; src: url('fonts/PlusJakartaSans-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600;
             font-display: swap; src: url('fonts/PlusJakartaSans-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 700;
             font-display: swap; src: url('fonts/PlusJakartaSans-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 800;
             font-display: swap; src: url('fonts/PlusJakartaSans-ExtraBold.woff2') format('woff2'); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #EDFBFD;
  --surface:     #FFFFFF;
  --surface-alt: #DAF4F9;
  --divider:     #B0E8F2;
  --text:        #041828;
  --text-sec:    #054060;
  --text-hint:   #0878A0;
  --primary:     #0878A0;
  --gold:        #E8A020;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ────────────────────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(237,251,253,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--divider);
  height: 80px; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.2rem; font-weight: 800;
  letter-spacing: -0.03em; color: var(--primary);
  text-decoration: none;
}
.brand-alps { color: var(--text); }
.nav-logo { width: 42px; height: 42px; flex-shrink: 0; }
.lang-switcher { display: flex; gap: 3px; }
.lang-btn {
  background: none; border: 1px solid transparent;
  border-radius: 7px; padding: 5px 11px;
  font-size: 12px; font-weight: 700; font-family: inherit;
  color: var(--text-hint); cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.lang-btn:hover { background: var(--surface-alt); color: var(--text-sec); }
.lang-btn.active {
  background: var(--surface-alt); color: var(--primary);
  border-color: var(--divider);
}

/* ── Document body ──────────────────────────────────────────────────────── */
main { max-width: 760px; margin: 0 auto; padding: 3.5rem 1.5rem 4rem; }

.doc-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--primary);
  text-decoration: none; margin-bottom: 1.75rem;
}
.doc-back:hover { text-decoration: underline; }

h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.15; margin-bottom: 0.6rem;
}
.doc-updated {
  font-size: 13px; color: var(--text-hint);
  margin-bottom: 2.5rem;
}
.doc-intro {
  font-size: 1.02rem; color: var(--text-sec);
  background: var(--surface); border: 1px solid var(--divider);
  border-left: 4px solid var(--primary);
  border-radius: 12px; padding: 1.1rem 1.25rem;
  margin-bottom: 2.5rem;
}

h2 {
  font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em;
  margin: 2.5rem 0 0.85rem; padding-top: 0.4rem;
}
h2:first-of-type { margin-top: 0; }
h3 {
  font-size: 1rem; font-weight: 700;
  margin: 1.6rem 0 0.5rem; color: var(--text-sec);
}
p { margin-bottom: 0.9rem; color: var(--text-sec); }
p strong, li strong { color: var(--text); font-weight: 700; }

ul, ol { margin: 0 0 1rem 1.25rem; color: var(--text-sec); }
li { margin-bottom: 0.45rem; }

a { color: var(--primary); }
a:hover { text-decoration: none; }

.card {
  background: var(--surface); border: 1px solid var(--divider);
  border-radius: 12px; padding: 1.1rem 1.25rem; margin-bottom: 1.1rem;
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.addr { font-style: normal; line-height: 1.75; color: var(--text-sec); }

/* Fields the operator still has to fill in. Deliberately loud: an unfilled
   placeholder that reaches production is a legal defect, not a typo. */
.todo {
  display: inline-block;
  background: #FFF3D6; border: 1px dashed var(--gold);
  border-radius: 6px; padding: 1px 8px;
  font-size: 0.92em; font-weight: 700; color: #8A5A00;
}

table {
  width: 100%; border-collapse: collapse; margin-bottom: 1.2rem;
  font-size: 14px; display: block; overflow-x: auto;
}
th, td {
  text-align: left; padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--divider); vertical-align: top;
}
th { font-weight: 700; color: var(--text); white-space: nowrap; }
td { color: var(--text-sec); }

footer {
  border-top: 1px solid var(--divider);
  padding: 2.5rem 1.5rem 3rem; text-align: center;
}
.footer-brand { font-size: 1.05rem; font-weight: 800; color: var(--primary); }
.footer-brand .brand-alps { color: var(--text); }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 6px 18px; margin: 14px 0 10px;
}
.footer-legal a {
  font-size: 13px; font-weight: 600; color: var(--primary);
  text-decoration: none; border-bottom: 1px solid transparent;
}
.footer-legal a:hover { border-bottom-color: var(--primary); }
.footer-credits { font-size: 12px; color: var(--text-hint); }

[data-lang-block] { display: none; }
[data-lang-block].active { display: block; }

@media (max-width: 640px) {
  nav { padding: 0 1rem; height: 68px; }
  .nav-logo { width: 34px; height: 34px; }
  main { padding: 2.5rem 1.15rem 3rem; }
  .lang-btn { padding: 4px 8px; font-size: 11px; }
}
