/* Rechtsseiten (Impressum, Datenschutz, Nutzungsbedingungen, AVV) im ED-Design — baut auf ed-design.css auf.
   Nur Gestaltung; die Rechtstexte bleiben 1:1. Ruhig und gut lesbar: schmale Textspalte, klare Abstaende. */

body { background: var(--bg); line-height: 1.7; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Kopfzeile: Logo + Zurueck-Link */
.nav { position: sticky; top: 0; z-index: 100; height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 var(--pad-x);
  background: rgba(255,255,255,.85); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.nav-logo img { height: 2.5rem !important; }
.nav-back { display: inline-flex; align-items: center; gap: .4rem; font-size: .875rem; font-weight: 600; color: var(--text); padding: .6rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r-pill); background: #fff; transition: border-color .2s, transform .35s var(--ease-spring); }
.nav-back:hover { text-decoration: none; border-color: var(--text); }
@media (hover: hover) { .nav-back:hover { transform: translateY(-1px); } }

/* Titelbereich: dunkles Panel mit Eyebrow, wie auf der Startseite */
.hero { position: relative; overflow: hidden; max-width: var(--shell); margin: 1rem var(--pad-x) 0; border-radius: var(--r-card); background: var(--ink); color: #fff; padding: clamp(3rem, 2rem + 4vw, 5.5rem) var(--pad-x); text-align: center; }
@media (min-width: 92rem) { .hero { margin-inline: auto; } }
.hero::after { content: ""; position: absolute; width: 36rem; height: 36rem; inset-inline-end: -10rem; top: -18rem; border-radius: 50%; background: radial-gradient(circle, rgba(37,99,235,.35), transparent 65%); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; font-size: .8125rem; font-weight: 600; color: var(--on-ink-mid); border: 1px solid var(--ink-line); background: rgba(255,255,255,.04); border-radius: var(--r-pill); padding: .4rem 1rem; margin-bottom: 1.4rem; }
.hero h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem); font-weight: 650; letter-spacing: -.03em; line-height: 1.05; margin-bottom: 1rem; text-wrap: balance; }
.hero p { color: var(--on-ink-mid); font-size: 1.0625rem; max-width: 40rem; margin: 0 auto; }

/* Textspalte */
.container { max-width: 52rem; margin: 0 auto; padding: 0 var(--pad-x); }
.page { padding: 3.5rem 0 5rem; }
.page section { margin-bottom: 3rem; scroll-margin-top: 6rem; }
.page h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); font-weight: 650; letter-spacing: -.03em; line-height: 1.05; margin-bottom: 1.5rem; }
.page h2 { display: flex; align-items: center; gap: .5rem; font-size: 1.4rem; font-weight: 650; letter-spacing: -.015em; color: var(--text); margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); scroll-margin-top: 6rem; }
.page h3 { font-size: 1.05rem; font-weight: 650; color: var(--text); margin: 1.4rem 0 .5rem; }
.page h4 { font-weight: 650; }
.page p { margin-bottom: .8rem; color: var(--text-mid); font-size: 1rem; }
.page ul { margin: .5rem 0 .9rem 1.3rem; color: var(--text-mid); }
.page ol { margin: .5rem 0 .9rem 1.5rem; color: var(--text-mid); }
.page li { margin-bottom: .4rem; }
.page li::marker { color: var(--blue); }
.page strong { color: var(--text); font-weight: 650; }
[dir="rtl"] .page ul, [dir="rtl"] .page ol { margin-left: 0; margin-right: 1.3rem; }

/* Hinweis-Kaesten */
.info-box, .warn-box { border-radius: var(--r-card-sm); padding: 1.1rem 1.35rem; margin: 1.1rem 0; border: 0; }
.info-box { background: var(--blue-soft); }
.info-box p { color: #1e3a8a; margin: 0; font-size: .95rem; }
.warn-box { background: #fff7e6; }
.warn-box p { color: #8a4b0f; margin: 0; font-size: .95rem; }

/* Karten (Pakete, TOM, Rechte) */
.plan-list, .tom-grid, .rights-list { display: grid; gap: .75rem; margin: 1rem 0; }
.plan-list { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.tom-grid { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.rights-list { grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); }
.plan-card, .tom-card, .right-item { background: var(--surface); border: 0; border-radius: var(--r-card-sm); padding: 1.25rem 1.35rem; box-shadow: none; transition: transform .45s var(--ease-spring), background-color .3s; }
@media (hover: hover) { .plan-card:hover, .tom-card:hover, .right-item:hover { transform: translateY(-3px); background: var(--surface-2); } }
.plan-card h4, .tom-card h4 { font-size: .975rem; margin-bottom: .35rem; color: var(--text); }
.plan-card p, .tom-card p { font-size: .9rem; margin: 0; }
.tom-icon { font-size: 1.4rem; margin-bottom: .5rem; display: block; }
.right-item strong { display: block; font-size: .925rem; margin-bottom: .2rem; }
.right-item span { font-size: .85rem; color: var(--text-soft); }

/* Tabellen */
.compliance-table, .sp-table, .avv-table { width: 100%; border-collapse: collapse; font-size: .925rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.compliance-table th, .sp-table th, .avv-table th { background: var(--surface); padding: .8rem 1rem; text-align: start; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-soft); font-weight: 600; }
.compliance-table td, .sp-table td, .avv-table td { padding: .8rem 1rem; border-top: 1px solid var(--line); vertical-align: top; color: var(--text-mid); }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .7rem; border-radius: var(--r-pill); font-size: .75rem; font-weight: 600; white-space: nowrap; }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-yellow { background: #fef3c7; color: #a16207; }
.badge-red { background: #fee2e2; color: #b91c1c; }
@media (max-width: 640px) {
  .compliance-table, .sp-table, .avv-table { font-size: .85rem; display: block; overflow-x: auto; }
  .compliance-table th, .compliance-table td, .sp-table th, .sp-table td, .avv-table th, .avv-table td { padding: .6rem .75rem; }
}

/* Datenschutz-Generator (Dr. Schwenke) — nur Darstellung */
.dse h2 { margin-top: 2.75rem; }
.dse p, .dse li { word-break: break-word; }
.dse ul.index { list-style: none; margin: .5rem 0 1.75rem; padding: 1.25rem 1.5rem; background: var(--surface); border-radius: var(--r-card-sm); columns: 2; column-gap: 2rem; }
.dse ul.index li { margin-bottom: .4rem; break-inside: avoid; }
.dse ul.m-elements { list-style: none; margin: .75rem 0 1rem; padding: 1.1rem 1.35rem; background: var(--surface); border-radius: var(--r-card-sm); }
.dse ul.m-elements li { margin-bottom: .5rem; }
.dse ul.glossary li { margin-bottom: .8rem; }
.dse p.seal { margin-top: 2.5rem; font-size: .85rem; }
@media (max-width: 640px) { .dse ul.index { columns: 1; } }

/* AVV-Kopf + Drucken */
.avv-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; background: var(--surface); border-radius: var(--r-card-sm); padding: 1.1rem 1.35rem; margin-bottom: 2.25rem; }
.avv-meta p { margin: 0; }
.print-btn { display: inline-flex; align-items: center; gap: .4rem; background: var(--ink); color: #fff; border: 0; border-radius: var(--r-pill); padding: .7rem 1.25rem; font-weight: 600; cursor: pointer; font-size: .9rem; transition: background-color .2s, transform .35s var(--ease-spring); }
.print-btn:hover { background: var(--blue); }
.todo-hint { font-size: .8rem; color: var(--text-soft); }

/* Aufruf-Kasten */
.cta-box { position: relative; overflow: hidden; background: var(--blue); border-radius: var(--r-card); padding: 2.25rem 1.75rem; text-align: center; color: #fff; margin-top: 2.25rem; }
.cta-box h3 { font-size: 1.35rem; font-weight: 650; margin: 0 0 .5rem; color: #fff; }
.cta-box p { color: rgba(255,255,255,.85); margin-bottom: 1.4rem; }
.cta-btn { display: inline-flex; background: #fff; color: var(--ink); font-weight: 600; padding: .9rem 1.6rem; border-radius: var(--r-pill); transition: background-color .2s, color .2s, transform .35s var(--ease-spring); }
.cta-btn:hover { text-decoration: none; background: var(--ink); color: #fff; }

/* Footer (einzeilig, dunkel) */
.footer { position: relative; overflow: hidden; background: var(--ink); color: rgba(255,255,255,.55); text-align: center; padding: 2.25rem var(--pad-x); font-size: .85rem; border-radius: var(--r-card) var(--r-card) 0 0; line-height: 2; }
.footer a { color: rgba(255,255,255,.78); }
.footer a:hover { color: #fff; }

@media print {
  .nav, .hero, .footer, .print-btn { display: none !important; }
  body { background: #fff; }
  .page { padding: 0; }
  .page section { break-inside: avoid-page; }
  a { color: inherit; }
}
