/* Rechtsseiten (Impressum, Datenschutz, AGB) im SHNY-Look.
   Nutzerauftrag 24.07.: "es muss in unserem design mit unserem logo auf
   unsere website" -- und nach dem Zwischenstand: "die anderen sind ja
   immernoch nicht in unserem design, 404 sieht gut aus". Also durchgehend
   dunkel wie die 404-Seite, nicht heller Textkoerper auf dunklem Rahmen.
   Lesbarkeit wird ueber Zeilenlaenge, Zeilenabstand und einen ruhigen
   Grauton statt reinem Weiss hergestellt, nicht ueber eine helle Flaeche. */

* { box-sizing: border-box; }

body.legal {
  margin: 0;
  background: var(--bg-page-dark, #0b0b0e);
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif);
  color: #e8e8ee;
}

/* ---------- Kopf und Fuss: 1:1 wie index.html ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,11,14,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #1c1c23;
}
header.site .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
header.site img { height: 22px; }
header.site nav { display: flex; gap: 20px; margin-left: auto; align-items: center; }
header.site nav a { color: #b5b5c0; text-decoration: none; font-size: 14px; }
header.site nav a:hover { color: #fff; }
header.site nav a.cta {
  background: var(--grad, linear-gradient(90deg,#ff2594,#8c33f2));
  color: #fff; padding: 9px 16px; border-radius: 999px; font-weight: 700;
}
.langs { display: flex; gap: 4px; margin-left: 12px; }
.langs .lang {
  color: #8b8b9c; font-size: 12px; padding: 4px 8px;
  border-radius: 999px; text-decoration: none; border: 1px solid transparent;
}
.langs .lang.active { color: #fff; border-color: #e6007e; }

footer.site {
  background: #08080a;
  border-top: 1px solid #1c1c23;
  color: #8b8b9c; text-align: center; padding: 40px 24px; font-size: 13px;
}
footer.site a { color: #9c9ca6; text-decoration: none; margin: 0 10px; white-space: nowrap; }
footer.site a:hover { color: #f5f5f7; text-decoration: underline; }
.footer-legal { margin-top: 10px; line-height: 2.2; }

/* ---------- Titelbereich: wie der Hero der Startseite ---------- */
.legal-hero {
  padding: 80px 0 72px;
  text-align: center;
  /* Weicher Markenschimmer hinter dem Titel, wie auf der 404-Seite */
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(140,51,242,.18), transparent 70%),
    radial-gradient(40% 100% at 50% 0%, rgba(255,37,148,.14), transparent 70%);
  border-bottom: 1px solid #1c1c23;
}
.legal-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  font-weight: 800;
  color: #fff;
  margin: 14px 0 12px;
}
.legal-hero .legal-updated { color: #8f8fa0; font-size: 14px; margin: 0; }
.legal-hero .eyebrow {
  text-transform: uppercase; letter-spacing: .14em;
  font-size: 12px; font-weight: 700; color: #8c33f2;
}
/* Markenverlauf im Titel, wie in der Ueberschrift der Startseite */
.grad-text {
  background: var(--grad, linear-gradient(90deg,#ff2594,#8c33f2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Textkoerper ---------- */
.legal-body { padding: 64px 0 96px; }
.legal-body .wrap { max-width: 760px; }

.legal-body h2 {
  font-size: 22px;
  color: #fff;
  margin: 52px 0 16px;
  padding-top: 28px;
  border-top: 1px solid #22222a;
}
.legal-body h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-body h3 { font-size: 17px; color: #fff; margin: 28px 0 8px; }
.legal-body p, .legal-body li {
  font-size: 16px;
  line-height: 1.8;
  color: #b5b5c0;   /* nicht reines Weiss: ruhiger zu lesen ueber viele Zeilen */
}
.legal-body strong { color: #f2f2f5; }
.legal-body ul, .legal-body ol { padding-left: 0; list-style: none; margin: 16px 0; }
.legal-body li { padding: 7px 0 7px 28px; position: relative; }
.legal-body li::before {
  content: '✓'; position: absolute; left: 0; top: 7px;
  color: #ff2594; font-weight: 800;
}
.legal-body ol { counter-reset: li; }
.legal-body ol li::before { counter-increment: li; content: counter(li) '.'; color: #8c33f2; }
.legal-body a { color: #21d9fa; text-decoration: underline; text-underline-offset: 3px; }
.legal-body a:hover { color: #fff; }

/* Anschrift und Kontakt als Karte -- dieselbe Formensprache wie .svc/.step
   auf der Startseite, nur in der dunklen Variante. */
.legal-block {
  background: #15151b;
  border: 1px solid #26262e;
  border-radius: 20px;
  padding: 24px 28px;
  margin: 20px 0;
}
.legal-block p { margin: 0 0 6px; color: #cfcfd8; }
.legal-block p:last-child { margin-bottom: 0; }
.legal-block strong { color: #fff; font-size: 17px; }

/* Hinweiskasten mit Markenakzent */
.legal-note {
  background: linear-gradient(135deg, rgba(255,37,148,.08), rgba(140,51,242,.08));
  border: 1px solid #2e2438;
  border-left: 3px solid #ff2594;
  border-radius: 0 20px 20px 0;
  padding: 20px 24px;
  margin: 28px 0;
  font-size: 15px;
  line-height: 1.75;
  color: #cfcfd8;
}
.legal-note strong { color: #fff; }

/* Noch auszufuellende Angaben. Bewusst laut: eine Rechtsseite mit
   vergessenem Platzhalter ist schlimmer als gar keine. */
.todo {
  background: #ff2594; color: #fff; font-weight: 700;
  padding: 2px 8px; border-radius: 5px;
}

/* Querverweise am Textende */
.legal-foot {
  border-top: 1px solid #22222a;
  margin-top: 56px; padding-top: 24px;
  font-size: 14px; color: #8b8b9c;
}
.legal-foot a { color: #9c9ca6; margin-right: 18px; text-decoration: none; }
.legal-foot a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 720px) {
  header.site nav a.textlink { display: none; }
  .legal-hero { padding: 56px 0 52px; }
  .legal-body { padding: 44px 0 72px; }
  .legal-block { padding: 20px 22px; }
}

/* ---------- Bedienbarkeit ----------
   Auch ohne gesetzliche Pflicht (Kleinstunternehmen im B2B sind vom BFSG
   ausgenommen) gehoert das zum Handwerk: wer mit der Tastatur navigiert oder
   einen Screenreader nutzt, muss die Seite bedienen koennen. Kostet nichts
   und verhindert, dass wir es spaeter nachruesten muessen, wenn Privatkunden
   dazukommen. */

/* Sprungmarke: erster Tabstopp auf jeder Seite, sonst muss man sich durch
   die gesamte Navigation klicken, um zum Inhalt zu kommen. */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: #fff; color: #111114; padding: 12px 20px;
  border-radius: 0 0 12px 0; font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* Sichtbarer Fokusrahmen. Browser-Standard verschwindet auf dunklem Grund
   praktisch, deshalb ein eigener in Markenfarbe. */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid #21d9fa;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Wer im Betriebssystem weniger Bewegung eingestellt hat, bekommt sie auch
   hier nicht. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Der Erstgespraech-Knopf darf unter KEINER Fensterbreite aus dem Bild
   rutschen -- er ist der einzige Weg vom Lesen zum Kontakt. Deshalb:
   die Kopfzeile darf umbrechen, der Knopf schrumpft nie mit, und die
   Textlinks verschwinden zuerst, wenn es eng wird. */
header.site nav { flex-wrap: wrap; row-gap: 8px; justify-content: flex-end; }
header.site nav a.cta { flex: 0 0 auto; white-space: nowrap; }
header.site .wrap { flex-wrap: wrap; min-height: 64px; height: auto; padding-top: 10px; padding-bottom: 10px; }

@media (max-width: 900px) {
  header.site nav a.textlink { display: none; }
  header.site nav { gap: 12px; }
}
