/* =====================================================================
   Holstentor Schlüsseldienst — legal.css (hl-legal__)
   Impressum + Datenschutz. Uses tokens and hl-wrap / hl-btn from main.css
   ===================================================================== */

/* ---------- Hero band ---------- */
.hl-legal__hero {
  position: relative;
  padding: 56px 0 52px;
  background: var(--hl-night);
  border-bottom: 4px solid var(--hl-lime);
}
.hl-legal__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-bottom: 26px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--hl-mist-2);
}
.hl-legal__crumbs a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}
.hl-legal__crumbs a:hover,
.hl-legal__crumbs a:focus-visible { color: var(--hl-lime); text-decoration-color: var(--hl-lime); }
.hl-legal__crumbs i { font-style: normal; opacity: .55; }
.hl-legal__title {
  max-width: 860px;
  margin: 0 0 18px;
  font-size: 52px;
  line-height: 1.1;
  color: #ffffff;
}
.hl-legal__lead {
  max-width: 720px;
  margin: 0;
  font-size: 17px;
  line-height: 1.67;
  color: var(--hl-mist);
}

/* ---------- Page body: sticky index + document column ---------- */
.hl-legal__main { padding: 70px 0 100px; background: #ffffff; }
.hl-legal__layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 70px;
  align-items: start;
}
.hl-legal__layout > * { min-width: 0; }

.hl-legal__index {
  position: sticky;
  top: calc(var(--hl-head-h) + 24px);
  padding: 26px 24px;
  background: var(--hl-soft);
  border-top: 4px solid var(--hl-blue);
}
.hl-legal__index-t {
  margin: 0 0 14px;
  font-family: var(--font-family-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--hl-ink);
}
.hl-legal__index ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.hl-legal__index a {
  display: block;
  padding: 7px 10px;
  border-left: 3px solid transparent;
  font-size: 14px;
  line-height: 1.4;
  color: var(--hl-body);
}
.hl-legal__index a:hover,
.hl-legal__index a:focus-visible {
  border-left-color: var(--hl-lime);
  background: #ffffff;
  color: var(--hl-blue);
}

/* ---------- Document typography ---------- */
.hl-legal__doc { max-width: 820px; }
.hl-legal__sec {
  margin: 0 0 44px;
  padding: 0 0 44px;
  border-bottom: 1px solid var(--hl-line);
  scroll-margin-top: calc(var(--hl-head-h) + 20px);
}
.hl-legal__sec:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.hl-legal__h2 {
  position: relative;
  margin: 0 0 26px;
  padding-bottom: 18px;
  font-size: 29px;
  line-height: 1.25;
  color: var(--hl-ink);
}
.hl-legal__h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  background: var(--hl-lime);
}
.hl-legal__h3 {
  margin: 28px 0 10px;
  font-size: 19px;
  line-height: 1.35;
  color: var(--hl-steel);
}
.hl-legal__doc p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--hl-body);
}
.hl-legal__doc p:last-child { margin-bottom: 0; }
.hl-legal__doc strong { color: var(--hl-ink); }

/* ---------- Links (text, phone, mail) ---------- */
.hl-legal__link,
.hl-legal__tel {
  color: var(--hl-blue);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--hl-lime);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: background-color .25s linear, color .25s linear, text-decoration-color .25s linear;
}
.hl-legal__link:hover,
.hl-legal__link:focus-visible,
.hl-legal__tel:hover,
.hl-legal__tel:focus-visible {
  background: var(--hl-lime);
  color: var(--hl-night);
  text-decoration-color: var(--hl-night);
}

/* ---------- Key/value rows ---------- */
.hl-legal__dl { margin: 0; border-top: 1px solid var(--hl-line); }
.hl-legal__row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 8px 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hl-line);
}
.hl-legal__row dt {
  margin: 0;
  font-family: var(--font-family-2);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--hl-ink);
}
.hl-legal__row dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--hl-body);
  overflow-wrap: anywhere;
}
.hl-legal__todo { font-style: italic; color: var(--hl-mute); }

/* ---------- Lists ---------- */
.hl-legal__list { display: grid; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.hl-legal__list li {
  position: relative;
  padding-left: 24px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--hl-body);
}
.hl-legal__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hl-lime);
}

/* ---------- Note box ---------- */
.hl-legal__note {
  margin: 24px 0 0;
  padding: 22px 26px;
  background: var(--hl-soft);
  border-left: 4px solid var(--hl-lime);
}
.hl-legal__note p { margin: 0 0 10px; font-size: 15px; line-height: 1.7; color: var(--hl-body); }
.hl-legal__note p:last-child { margin-bottom: 0; }
.hl-legal__note-t {
  font-family: var(--font-family-2);
  font-weight: 700;
  color: var(--hl-ink);
}

/* ---------- Rights grid ---------- */
.hl-legal__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 22px; padding: 0; list-style: none; }
.hl-legal__card {
  padding: 20px 22px;
  background: #ffffff;
  border: 1px solid var(--hl-line);
  border-top: 3px solid var(--hl-blue);
}
.hl-legal__card h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.35; color: var(--hl-ink); }
.hl-legal__card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--hl-body); }

/* ---------- Bottom contact strip (light, footer is dark) ---------- */
.hl-legal__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  padding: 30px 34px;
  background: var(--hl-soft);
  border-left: 4px solid var(--hl-blue);
}
.hl-legal__cta > * { min-width: 0; }
.hl-legal__cta p { margin: 0; max-width: 460px; font-size: 16px; line-height: 1.6; color: var(--hl-body); }
.hl-legal__cta p strong { display: block; margin-bottom: 4px; font-family: var(--font-family-2); font-size: 19px; color: var(--hl-ink); }
.hl-legal__cta .hl-btn { flex: 0 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .hl-legal__layout { grid-template-columns: 250px minmax(0, 1fr); gap: 48px; }
  .hl-legal__title { font-size: 46px; }
}
@media (max-width: 1024px) {
  .hl-legal__layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hl-legal__index { position: static; }
  .hl-legal__index ol { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
  .hl-legal__doc { max-width: none; }
  .hl-legal__title { font-size: 42px; }
}
@media (max-width: 768px) {
  .hl-legal__hero { padding: 40px 0 38px; }
  .hl-legal__crumbs { margin-bottom: 20px; }
  .hl-legal__title { font-size: 36px; }
  .hl-legal__lead { font-size: 16px; }
  .hl-legal__main { padding: 48px 0 70px; }
  .hl-legal__sec { margin-bottom: 36px; padding-bottom: 36px; }
  .hl-legal__h2 { font-size: 25px; }
  .hl-legal__row { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 0; }
  .hl-legal__cards { grid-template-columns: minmax(0, 1fr); }
  .hl-legal__cta { flex-direction: column; align-items: flex-start; padding: 26px 24px; }
}
@media (max-width: 480px) {
  .hl-legal__title { font-size: 31px; }
  .hl-legal__index { padding: 20px 16px; }
  .hl-legal__index ol { grid-template-columns: minmax(0, 1fr); }
  .hl-legal__h2 { font-size: 22px; }
  .hl-legal__h3 { font-size: 17px; }
  .hl-legal__doc p,
  .hl-legal__list li,
  .hl-legal__row dd { font-size: 15px; }
  .hl-legal__note { padding: 18px 18px; }
  .hl-legal__cta { padding: 22px 18px; align-items: stretch; }
  .hl-legal__cta .hl-btn { width: 100%; padding: 0 20px; }
}
@media (max-width: 375px) {
  .hl-legal__title { font-size: 28px; }
  .hl-legal__h2 { font-size: 20px; }
  .hl-legal__crumbs { font-size: 12px; }
}
