/* =====================================================================
   AUTOWERK BORNHEIM — Legal Pages (Impressum / Datenschutz)
   Eigenstaendiges Stylesheet: KEINE Abhaengigkeit von style.css,
   damit die Rechtsseiten bei Redesigns des Hauptstylesheets nie brechen.
   ===================================================================== */

:root {
  --bg: #060607;
  --bg-2: #0b0c0e;
  --card: #101114;
  --card-2: #15171a;
  --border: #202329;
  --border-soft: #17191d;

  --accent: #E30613;
  --accent-2: #ff2333;
  --accent-text: #ff3b47;
  --accent-glow: rgba(227, 6, 19, .28);

  --text: #f5f5f6;
  --text-soft: rgba(245, 245, 246, .80);
  --text-dim: #8a8d93;
  --text-faint: #585b61;

  --display: "Bai Jamjuree", "Inter", -apple-system, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;

  --container: 1120px;
  --radius: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--bg);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background:
    radial-gradient(1100px 520px at 50% -8%, rgba(227, 6, 19, .10), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--accent); color: #fff; }

:where(a, button):focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------------- Skip-Link ---------------- */
.l-skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff;
  padding: 12px 20px; z-index: 200; font-weight: 600;
}
.l-skip:focus { left: 16px; top: 16px; }

/* ---------------- Header ---------------- */
.lnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 6, 7, .72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border-soft);
}
.lnav__in {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px clamp(20px, 4vw, 44px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.lnav__logo {
  display: inline-flex; align-items: baseline; gap: 0;
  font-family: var(--display); font-weight: 700;
  font-size: 22px; letter-spacing: -.01em; text-transform: uppercase;
  line-height: 1;
}
.lnav__logo .a { color: var(--accent); }
.lnav__logo .b { color: #fff; }
.lnav__logo .sub {
  margin-left: 10px; align-self: center;
  font-size: 9px; font-weight: 600; letter-spacing: .34em;
  color: var(--text-dim); padding-left: 10px;
  border-left: 1px solid var(--border);
}
.lnav__cta {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 44px; padding: 0 18px;
  border: 1px solid var(--border);
  font-family: var(--display); font-size: 13px; font-weight: 600;
  letter-spacing: .08em; color: var(--text);
  border-radius: 100px;
  transition: border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease);
}
.lnav__cta svg { width: 15px; height: 15px; }
.lnav__cta:hover { border-color: var(--accent); color: #fff; background: rgba(227, 6, 19, .12); }
@media (max-width: 520px) { .lnav__cta span { display: none; } .lnav__cta { padding: 0; width: 44px; justify-content: center; } }

/* ---------------- Hero ---------------- */
.lhero {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(72px, 12vh, 130px) clamp(20px, 4vw, 44px) clamp(36px, 6vh, 60px);
}
.lhero__back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 30px;
  transition: color .2s var(--ease), gap .2s var(--ease);
}
.lhero__back:hover { color: var(--accent-text); gap: 12px; }
.lhero__kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--display); font-size: 11px; font-weight: 600;
  letter-spacing: .34em; text-transform: uppercase; color: var(--accent-text);
  margin-bottom: 22px;
}
.lhero__kicker::before { content: ""; width: 30px; height: 1px; background: var(--accent); }
.lhero h1 {
  margin: 0;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(40px, 8vw, 88px); line-height: .94; letter-spacing: -.02em;
  text-transform: uppercase;
  text-wrap: balance;
}
.lhero__sub {
  margin: 22px 0 0; max-width: 620px;
  color: var(--text-soft); font-size: clamp(15px, 1.6vw, 17px); line-height: 1.7;
}
.lhero__stand {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 24px; padding: 7px 16px;
  border: 1px solid var(--border); border-radius: 100px;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.lhero__stand::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #16c95f; box-shadow: 0 0 10px #16c95f;
}

/* ---------------- Layout (TOC + Content) ---------------- */
.lwrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 44px) clamp(80px, 12vh, 130px);
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}
.lwrap--single { grid-template-columns: minmax(0, 800px); justify-content: center; }
@media (max-width: 900px) { .lwrap { grid-template-columns: 1fr; } }

/* ---------------- Table of contents ---------------- */
.ltoc { position: sticky; top: 92px; align-self: start; }
.ltoc__head {
  font-family: var(--display); font-size: 10px; font-weight: 700;
  letter-spacing: .32em; text-transform: uppercase; color: var(--text-faint);
  margin-bottom: 14px; padding-left: 15px;
}
.ltoc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.ltoc li { margin: 0; }
.ltoc a {
  display: block; position: relative;
  padding: 8px 0 8px 15px;
  border-left: 2px solid var(--border);
  color: var(--text-dim); font-size: 13.5px; line-height: 1.4;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.ltoc a:hover { color: var(--text); }
.ltoc a.is-active { color: #fff; border-left-color: var(--accent); }
@media (max-width: 900px) { .ltoc { display: none; } }

/* ---------------- Content ---------------- */
.lcontent { min-width: 0; }
.lsec {
  padding: clamp(28px, 4vw, 40px) 0;
  border-top: 1px solid var(--border-soft);
  scroll-margin-top: 96px;
}
.lcontent > .lsec:first-child { border-top: 0; padding-top: 4px; }
.lsec__num {
  display: inline-block;
  font-family: var(--display); font-size: 12px; font-weight: 700;
  letter-spacing: .2em; color: var(--accent-text);
  margin-bottom: 10px; font-variant-numeric: tabular-nums;
}
.lsec h2 {
  margin: 0 0 18px;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(22px, 3vw, 30px); line-height: 1.15; letter-spacing: -.01em;
}
.lsec h3 {
  margin: 26px 0 8px;
  font-family: var(--body); font-weight: 600; font-size: 16px; color: var(--text);
}
.lsec p, .lsec li, .lsec address {
  color: var(--text-soft); font-size: 16px; line-height: 1.78;
  margin: 0 0 16px; font-style: normal;
}
.lsec ul { margin: 0 0 16px; padding-left: 4px; list-style: none; }
.lsec ul li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.lsec ul li::before {
  content: ""; position: absolute; left: 2px; top: 11px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.lsec a {
  color: var(--accent-text);
  border-bottom: 1px solid rgba(255, 59, 71, .35);
  transition: border-color .2s var(--ease);
  word-break: break-word;
}
.lsec a:hover { border-bottom-color: var(--accent-text); }
.lsec strong { color: var(--text); font-weight: 600; }

/* Hervorgehobene Daten-/Kontakt-Karte */
.lcard {
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
  margin: 4px 0 16px;
}
.lcard p, .lcard address { margin-bottom: 0; color: var(--text); }
.lcard + .lcard { margin-top: 10px; }
.lcard__label {
  display: block; font-family: var(--display); font-size: 11px; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase; color: var(--text-dim);
  margin-bottom: 10px;
}

/* Platzhalter fuer noch zu ergaenzende Pflichtangaben */
.lph {
  color: var(--accent-text); background: rgba(227, 6, 19, .10);
  border: 1px dashed rgba(227, 6, 19, .4);
  padding: 1px 9px; border-radius: 5px; font-style: italic; font-size: .95em;
}

/* ---------------- Footer ---------------- */
.lfoot {
  border-top: 1px solid var(--border-soft);
  background: var(--bg-2);
}
.lfoot__in {
  max-width: var(--container); margin: 0 auto;
  padding: 28px clamp(20px, 4vw, 44px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 13px; color: var(--text-dim);
}
.lfoot__links { display: flex; gap: 22px; }
.lfoot__links a { color: var(--text-dim); transition: color .2s var(--ease); }
.lfoot__links a:hover { color: var(--accent-text); }

/* ---------------- Back to top ---------------- */
.ltop {
  position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px);
  width: 46px; height: 46px; z-index: 40;
  display: grid; place-items: center;
  background: rgba(20, 22, 26, .85);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: 50%;
  color: var(--text); cursor: pointer;
  opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), border-color .2s var(--ease);
}
.ltop.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.ltop:hover { border-color: var(--accent); color: #fff; }
