/* =====================================================================
   Ischler Türsicherung — legal.css (tz-legal__)
   Impressum + Datenschutz. Uses tokens, .tz-wrap, .tz-btn, .tz-eyebrow
   from main.css; loaded after the footer include.
   ===================================================================== */

/* Hero */
.tz-legal__hero {
  background: var(--tz-light);
  border-bottom: 1px solid var(--tz-line);
  padding: 52px 0 44px;
}
.tz-legal__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--tz-text);
}
.tz-legal__crumbs a { color: var(--tz-accent); font-weight: 600; }
.tz-legal__crumbs a:hover,
.tz-legal__crumbs a:focus-visible { color: var(--tz-accent-deep); text-decoration: underline; }
.tz-legal__crumbs-sep { color: var(--tz-mute); }
.tz-legal__title {
  margin: 0 0 14px;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.1;
  color: var(--tz-ink);
}
.tz-legal__lead {
  max-width: 720px;
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--tz-text);
}

/* Layout: aside + reading column */
.tz-legal__main { padding: 64px 0 96px; background: #fff; }
.tz-legal__layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.tz-legal__layout > * { min-width: 0; }
.tz-legal__aside {
  position: sticky;
  top: calc(var(--tz-head-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Aside cards */
.tz-legal__card {
  padding: 28px 26px;
  border: 1px solid var(--tz-line);
  border-radius: var(--radius-3);
  background: #fff;
  box-shadow: var(--shadow-2);
}
.tz-legal__card-title {
  margin: 0 0 14px;
  font-size: 20px;
  color: var(--tz-ink);
}
.tz-legal__card--accent {
  border: 0;
  background: var(--tz-grad);
  box-shadow: 0 18px 36px -18px rgba(63, 60, 214, .7);
}
.tz-legal__card--accent .tz-legal__card-title { color: #fff; }
.tz-legal__card--accent p { margin: 0 0 18px; color: rgba(255, 255, 255, .92); font-size: 15px; line-height: 1.65; }
.tz-legal__card--accent .tz-btn { width: 100%; }
.tz-legal__card--accent .tz-legal__mail {
  display: block;
  margin-top: 16px;
  color: #fff;
  font-weight: 600;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .5);
  text-underline-offset: 4px;
}
.tz-legal__card--accent .tz-legal__mail:hover,
.tz-legal__card--accent .tz-legal__mail:focus-visible { color: #fff; text-decoration-color: #fff; }

/* Table of contents */
.tz-legal__toc { counter-reset: toc; display: flex; flex-direction: column; gap: 2px; }
.tz-legal__toc li { counter-increment: toc; }
.tz-legal__toc a {
  position: relative;
  display: block;
  padding: 8px 10px 8px 34px;
  border-radius: var(--radius-2);
  color: var(--tz-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  transition: background .25s ease, color .25s ease;
}
.tz-legal__toc a::before {
  content: counter(toc);
  position: absolute;
  left: 8px;
  top: 8px;
  width: 20px;
  font-family: var(--font-family-1);
  font-size: 13px;
  font-weight: 800;
  color: var(--tz-accent);
  text-align: center;
}
.tz-legal__toc a:hover,
.tz-legal__toc a:focus-visible { background: var(--tz-light); color: var(--tz-accent); }

/* Reading column */
.tz-legal__content { max-width: 780px; }
.tz-legal__sec { padding: 0 0 44px; margin: 0 0 44px; border-bottom: 1px solid var(--tz-line); scroll-margin-top: calc(var(--tz-head-h) + 16px); }
.tz-legal__sec:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.tz-legal__h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.2;
  color: var(--tz-ink);
}
.tz-legal__h3 {
  margin: 26px 0 10px;
  font-size: 19px;
  line-height: 1.3;
  color: var(--tz-ink);
}
.tz-legal__content p {
  margin: 0 0 16px;
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--tz-text);
}
.tz-legal__content p:last-child { margin-bottom: 0; }
.tz-legal__content strong { color: var(--tz-ink); }
.tz-legal__content a:not(.tz-btn) {
  color: var(--tz-accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(83, 80, 255, .35);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  transition: color .25s ease, text-decoration-color .25s ease;
}
.tz-legal__content a:not(.tz-btn):hover,
.tz-legal__content a:not(.tz-btn):focus-visible { color: var(--tz-accent-deep); text-decoration-color: currentColor; }

/* Data rows */
.tz-legal__dl {
  margin: 0 0 8px;
  border: 1px solid var(--tz-line);
  border-radius: var(--radius-3);
  overflow: hidden;
}
.tz-legal__row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 6px 24px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--tz-line);
}
.tz-legal__row:last-child { border-bottom: 0; }
.tz-legal__row:nth-child(odd) { background: var(--tz-light); }
.tz-legal__row > * { min-width: 0; }
.tz-legal__row dt { margin: 0; font-family: var(--font-family-1); font-size: 15px; font-weight: 800; color: var(--tz-ink); }
.tz-legal__row dd { margin: 0; font-size: 16px; line-height: 1.6; color: var(--tz-text); overflow-wrap: anywhere; }
.tz-legal__row dd a { color: var(--tz-accent); font-weight: 600; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: color .25s ease, text-decoration-color .25s ease; }
.tz-legal__row dd a:hover,
.tz-legal__row dd a:focus-visible { color: var(--tz-accent-deep); text-decoration-color: currentColor; }

/* Lists */
.tz-legal__list { display: flex; flex-direction: column; gap: 10px; margin: 0 0 16px; }
.tz-legal__list li {
  position: relative;
  padding-left: 26px;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--tz-text);
}
.tz-legal__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tz-accent);
}

/* Notes and boxes */
.tz-legal__note {
  margin: 20px 0 0;
  padding: 18px 22px;
  border-left: 4px solid var(--tz-accent);
  border-radius: 0 var(--radius-2) var(--radius-2) 0;
  background: var(--tz-light);
}
.tz-legal__content .tz-legal__note p { margin: 0; font-size: 15.5px; line-height: 1.7; }
.tz-legal__stamp { margin-top: 28px; font-size: 14.5px; color: var(--tz-mute); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1200px) {
  .tz-legal__layout { grid-template-columns: 290px minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 1024px) {
  .tz-legal__layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .tz-legal__aside { position: static; }
  .tz-legal__content { max-width: none; }
  .tz-legal__main { padding: 52px 0 80px; }
}
@media (max-width: 768px) {
  .tz-legal__hero { padding: 40px 0 34px; }
  .tz-legal__lead { font-size: 16.5px; }
  .tz-legal__main { padding: 40px 0 64px; }
  .tz-legal__card { padding: 24px 20px; }
  .tz-legal__sec { padding-bottom: 34px; margin-bottom: 34px; }
  .tz-legal__row { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 14px 18px; }
  .tz-legal__toc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; }
}
@media (max-width: 480px) {
  .tz-legal__hero { padding: 40px 0 30px; }
  .tz-legal__title { font-size: 30px; }
  .tz-legal__content p,
  .tz-legal__list li { font-size: 16px; line-height: 1.75; }
  .tz-legal__toc { grid-template-columns: minmax(0, 1fr); }
  .tz-legal__h3 { font-size: 18px; }
  .tz-legal__note { padding: 16px 16px; }
}
@media (max-width: 375px) {
  .tz-legal__title { font-size: 27px; }
  .tz-legal__card { padding: 22px 16px; }
  .tz-legal__row { padding: 12px 14px; }
}
