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

:root {
  --blue-dark: #0088cc;
  --blue-main: #2dafe6;
  --blue-light: #e6f7ff;
  --orange: #e30613;
  --text: #1a1a2e;
  --muted: #555;
  --border: #d4e6f7;
  --bg: #f9fbfd;
  --white: #ffffff;
  --text-muted: #555555;
  --red-dark: #0088cc;
  --red-main: #2dafe6;
  --red-light: #e6f7ff;
}

/* ── SKIP LINK (WCAG 2.4.1) ──────────────────── */
.skip-link {
  position: absolute; top: 0; left: 0;
  background: var(--blue-main); color: #fff;
  padding: .75rem 1rem; z-index: 9999;
  text-decoration: none; font-weight: 700;
  transform: translateY(-150%);
  transition: transform .2s;
}
.skip-link:focus { transform: translateY(0); }

/* ── FOCUS VISIBLE (WCAG 2.4.7) ──────────────── */
a:focus-visible, button:focus-visible, [role="button"]:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible,
summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--blue-main);
  outline-offset: 2px;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}

/* ── BACK TO TOP ─────────────────────────────── */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--blue-main); color: #fff;
  border: none; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .2s, transform .2s, background .15s;
  z-index: 999;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--blue-dark); transform: translateY(-2px); }
.back-to-top svg { width: 34px; height: 34px; display: block; }
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity .15s; }
  .back-to-top:hover { transform: none; }
}

/* ── HEADER ─────────────────────────────────── */
header {
  background: var(--red-dark);
  color: var(--white);
  padding: 0;
}
.header-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: .85rem;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 4px;
  padding: 5px 12px;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.back-btn:hover { color: var(--white); border-color: rgba(255,255,255,.6); }
.header-title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.header-title .mobile { display: none; }
@media (max-width: 600px) {
  .header-title .desktop { display: none; }
  .header-title .mobile { display: inline; }
}

/* ── RESPONSIVE TEXT IN HEADINGS & TEXT ─── */
h1 .mobile, strong .mobile { display: none; }
h1 .desktop, strong .desktop { display: inline; }

@media (max-width: 600px) {
  h1 .desktop, strong .desktop { display: none; }
  h1 .mobile, strong .mobile { display: inline; }
}
.header-sub {
  font-size: .8rem;
  color: rgba(255,255,255,.65);
  margin-top: 2px;
}

/* ── MAIN ────────────────────────────────────── */
main {
  max-width: 860px;
  margin: 40px auto 80px;
  padding: 0 24px;
}

/* ── CARD ────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 40px 48px;
  margin-bottom: 28px;
}
@media (max-width: 600px) {
  .card { padding: 28px 22px; }
}

/* ── TYPOGRAPHY ──────────────────────────────── */
h1 {
  font-size: 1.9rem;
  color: var(--blue-dark);
  margin-bottom: 6px;
}
h1 + .intro {
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: 32px;
}
p { margin-bottom: .9em; }
p:last-child { margin-bottom: 0; }
a { color: var(--red-main); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── FOOTER ──────────────────────────────────── */
footer {
  text-align: center;
  font-size: .8rem;
  color: var(--muted);
  padding: 20px 24px 40px;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--red-main); }
.footer-sep { margin: 0 8px; }

/* ── LOGO BAR ────────────────────────────────── */
.logo-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.logo-bar-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-bar img {
  height: 42px;
  width: auto;
  display: block;
}
.logo-bar-tagline {
  font-size: .78rem;
  color: var(--muted);
  text-align: right;
}

/* ── IMPRESSUM PAGE ──────────────────────── */
h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
h2:first-of-type { margin-top: 0; }

/* ── INFO TABLE ──────────────────────────── */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .97rem;
}
.info-table tr { border-bottom: 1px solid var(--border); }
.info-table tr:last-child { border-bottom: none; }
.info-table th {
  text-align: left;
  font-weight: 700;
  color: var(--blue-dark);
  width: 220px;
  padding: 10px 16px 10px 0;
  vertical-align: top;
}
.info-table td {
  padding: 10px 0;
  color: var(--text);
  vertical-align: top;
}
@media (max-width: 520px) {
  .info-table, .info-table tbody, .info-table tr, .info-table th, .info-table td {
    display: block;
  }
  .info-table th { font-size: .8rem; color: var(--muted); padding: 10px 0 2px; }
  .info-table td { padding: 0 0 10px; }
}

/* ── NOTICE BOX ──────────────────────────── */
.notice {
  background: var(--blue-light);
  border-left: 4px solid var(--blue-main);
  border-radius: 0 6px 6px 0;
  padding: 14px 18px;
  font-size: .9rem;
  color: var(--muted);
  margin-top: 16px;
}

/* ── TABLE OF CONTENTS ───────────────────── */
.toc {
  background: var(--blue-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 32px;
  font-size: .95rem;
}
.toc ol {
  margin-left: 20px;
  margin-bottom: 0;
}
.toc li { margin-bottom: 8px; }
.toc a { color: var(--blue-main); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ── SECTION TITLE ──────────────────────── */
.section-title {
  scroll-margin-top: 80px;
}

/* ── HIGHLIGHT BOX ──────────────────────── */
.highlight {
  background: var(--blue-light);
  border-left: 4px solid var(--blue-main);
  border-radius: 0 6px 6px 0;
  padding: 16px 18px;
  margin-top: 16px;
  font-size: .95rem;
}
.highlight strong {
  color: var(--text);
  font-weight: 600;
}

/* ── MATOMO OPT-OUT ──────────────────────– */
.optout-box {
  background: var(--blue-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
  font-size: .9rem;
}
.optout-iframe {
  margin-top: 12px;
}

/* ── GDPR RIGHTS GRID ────────────────────── */
.rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.right-item {
  background: var(--blue-light);
  border-left: 4px solid var(--blue-main);
  border-radius: 0 6px 6px 0;
  padding: 16px 18px;
  font-size: .9rem;
}
.right-item strong {
  color: var(--text);
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}
.right-item span {
  color: var(--muted);
}
