/* Stabile Basis für Rechtstexte und technische Dokumente.
   Diese Seiten sind bewusst vom Marketing-Layout entkoppelt. */
:root {
    --legal-ink: #172033;
    --legal-muted: #5d687b;
    --legal-line: #dce3eb;
    --legal-soft: #f5f8fc;
    --legal-brand: #df2766;
    --legal-navy: #152640;
}

body {
    margin: 0;
    color: var(--legal-ink);
    background: #f5f8fc;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.68;
}

.container {
    width: min(1040px, calc(100% - 40px));
    margin-inline: auto;
}

/* Alte Mega-Navigation auf Dokumentseiten bewusst durch einen ruhigen Kopf ersetzen. */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--legal-line);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(16px);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-header .nav-desktop,
.site-header .nav-mobile,
.site-header .menu-toggle {
    display: none !important;
}

.site-header .logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--legal-navy);
    text-decoration: none;
    font-size: 1.08rem;
    font-weight: 850;
}

.site-header .btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .62rem 1rem;
    border-radius: 10px;
    color: #fff;
    background: var(--legal-brand);
    text-decoration: none;
    font-size: .84rem;
    font-weight: 800;
}

.legal-hero {
    padding: 70px 0 54px;
    color: #fff;
    background: linear-gradient(145deg, #0d1a2d, var(--legal-navy));
}

.legal-hero .section-label {
    margin: 0 0 10px;
    color: #ff9abc;
    font-size: .75rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.legal-hero h1 {
    max-width: 820px;
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.65rem);
    line-height: 1.08;
    letter-spacing: -.045em;
}

.legal-hero p:last-child { margin: 0; color: #c5d1df; }

main.container { padding-block: 52px 80px; }

.legal-body,
.legal-card {
    padding: clamp(26px, 5vw, 54px);
    border: 1px solid var(--legal-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(21, 38, 64, .08);
}

.legal-body h2,
.legal-card h2 {
    margin: 2.4rem 0 .8rem;
    color: var(--legal-navy);
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
    line-height: 1.25;
    letter-spacing: -.025em;
}

.legal-body h2:first-child,
.legal-card h2:first-child { margin-top: 0; }
.legal-body h3,
.legal-card h3 { color: var(--legal-navy); }
.legal-body p,
.legal-body li,
.legal-card p,
.legal-card li { color: #445065; }
.legal-body a,
.legal-card a { color: #b81750; }
.legal-body ul,
.legal-body ol { padding-left: 1.35rem; }
.legal-body li + li { margin-top: .3rem; }
.legal-body hr { margin: 2rem 0; border: 0; border-top: 1px solid var(--legal-line); }

.site-footer {
    padding: 34px 0;
    color: #a9b6c8;
    background: #07111f;
}

.site-footer .footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px 30px;
}

.site-footer .logo { color: #fff; text-decoration: none; }
.site-footer a { color: #dbe5f1; }
.site-footer p { margin: 0; font-size: .8rem; }

@media (max-width: 680px) {
    .container { width: min(100% - 28px, 1040px); }
    .header-inner { min-height: 64px; }
    .site-header .btn { display: none; }
    .legal-hero { padding: 46px 0 38px; }
    main.container { padding-block: 28px 54px; }
    .legal-body, .legal-card { padding: 22px 18px; border-radius: 13px; }
    .site-footer .footer-inner { display: grid; }
}

.legal-draft { padding: 18px; margin-block: 20px; border: 1px solid #d1a24b; background: #fff8e5; color: #533d12; }
.legal-body table { width: 100%; border-collapse: collapse; margin-block: 20px; table-layout: fixed; overflow-wrap: anywhere; }
.legal-body th, .legal-body td { padding: 12px; border: 1px solid #ccd5df; text-align: left; vertical-align: top; }
.legal-body th { background: #eef2f6; }
.legal-signatures { margin-top: 48px; }
.legal-signatures p { margin-block: 28px; }
@media print {
  .site-header, .site-footer { display: none !important; }
  body, .legal-hero { background: white !important; color: black !important; }
  .container { width: 100%; }
  .legal-body { border: 0; box-shadow: none; padding: 0; }
  .legal-body h2, .legal-body h3 { break-after: avoid; }
  .legal-signatures { break-inside: avoid; }
  .legal-body tr { break-inside: avoid; }
}

.toms-hero h1 { overflow-wrap: anywhere; }
@media screen and (max-width: 600px) {
  .legal-body table, .legal-body tbody, .legal-body tr, .legal-body td { display: block; width: auto; }
  .legal-body thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .legal-body tr { margin-block: 18px; border: 1px solid #ccd5df; border-radius: 8px; overflow: hidden; }
  .legal-body td { border: 0; border-bottom: 1px solid #e2e7ed; }
  .legal-body td::before { content: attr(data-label); display: block; font-weight: 700; color: #172033; margin-bottom: 6px; }
}

.toms-section-title { overflow-wrap: anywhere; }
