:root {
  --max-width: 860px;

  /* App-nahe Farbwelt */
  --bg-start: #273040;
  --bg-end: #090a0d;
  --header-bg: rgba(22, 29, 45, 0.9);

  --surface: #f7f9ff;
  --surface-2: #eaf0ff;
  --border: #b8c6e5;

  --text: #15233f;
  --text-soft: #556789;
  --text-on-dark: #e6eeff;

  --accent: #2a62ff;
  --shadow: rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-start), var(--bg-end));
  line-height: 1.45;
}

a {
  color: var(--accent);
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  background: var(--header-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.header-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-title {
  color: var(--text-on-dark);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.lang-switch {
  color: #d8e2fa;
  font-size: 14px;
}

.lang-switch a {
  color: #ffffff;
  text-decoration: underline;
}

main {
  max-width: var(--max-width);
  margin: 24px auto;
  padding: 0 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 24px var(--shadow);
  padding: 20px;
}

h1 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 28px;
}

.subtitle {
  margin-top: 0;
  color: var(--text-soft);
}

/* Beide Klassennamen unterstuetzen (legacy + neu) */
.legalText p,
.legalText li,
.legalText td,
.legalText th {
  line-height: 1.45;
}

.legalText div.textBlock {
  margin: 1em 0;
}

.legalText div.textBlock p {
  margin: 0;
}

.legalText div.textBlock + div.textBlock {
  margin-top: 0.75em;
}

.legalText .tab1 {
  margin-left: 2rem;
}

.legalText table,
.legalText tr,
.legalText td,
.legalText th {
  border: 1px inset var(--border);
  border-collapse: collapse;
}

.legalText td,
.legalText th {
  padding: 0.5rem;
}

.legalText th {
  text-align: left;
}

.legalText table {
  width: 70%;
}

footer {
  max-width: var(--max-width);
  margin: 16px auto 32px;
  padding: 0 16px;
  color: #d8e2fa;
  font-size: 13px;
}

footer .footer-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 10px 12px;
}

footer a {
  color: #ffffff;
}

@media (max-width: 760px) {
  .legalText table {
    width: 100%;
  }
}
