/* ============================================================
   STERNBÄCKEREI — Legal pages (Impressum + Datenschutz)
   Shared editorial layout. Reuses tokens from styles.css.
   ============================================================ */

/* slim hero strip --------------------------------------------- */
.rl-hero {
  position: relative;
  background: var(--bg-dark);
  color: #FAF7F2;
  padding: 180px 24px 110px;
  text-align: center;
  overflow: hidden;
}
.rl-hero__star {
  width: 56px;
  height: 56px;
  margin: 0 auto 28px;
  display: block;
  filter: drop-shadow(0 0 16px rgba(201,169,97,.4));
  opacity: 0;
  transform: translateY(12px);
  animation: rlFade 1s cubic-bezier(.2,.7,.2,1) .15s forwards;
}
.rl-hero__eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 22px;
  opacity: 0;
  transform: translateY(10px);
  animation: rlFade 1s cubic-bezier(.2,.7,.2,1) .3s forwards;
}
.rl-hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 128px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: #FAF7F2;
  opacity: 0;
  transform: translateY(14px);
  animation: rlFade 1.1s cubic-bezier(.2,.7,.2,1) .45s forwards;
}
.rl-hero__meta {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0;
  opacity: 0;
  transform: translateY(10px);
  animation: rlFade 1s cubic-bezier(.2,.7,.2,1) .6s forwards;
}
.rl-hero__meta .rl-hero__sep {
  display: inline-block;
  width: 18px;
  height: 1px;
  background: rgba(184,176,165,.4);
  vertical-align: middle;
  margin: 0 14px;
}
.rl-hero__hairline {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
@keyframes rlFade {
  to { opacity: 1; transform: none; }
}

/* page body --------------------------------------------------- */
.rl-page {
  background: var(--bg-light);
  padding: 96px 24px 140px;
}
.rl-page__grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 72px;
  align-items: start;
}

/* sticky table of contents ----------------------------------- */
.rl-toc {
  position: sticky;
  top: 110px;
  font-family: var(--sans);
  align-self: start;
}
.rl-toc__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--text-2);
  margin: 0 0 22px;
}
.rl-toc__star {
  width: 10px;
  height: 10px;
  fill: var(--gold);
}
.rl-toc__list {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  border-left: 1px solid rgba(26,26,26,.1);
}
.rl-toc__item { margin: 0; }
.rl-toc__link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0 9px 18px;
  margin-left: -1px;
  border-left: 1px solid transparent;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.4;
  color: var(--text-2);
  transition: color .25s ease, border-color .25s ease, transform .25s ease;
}
.rl-toc__num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: .04em;
  min-width: 18px;
  transition: color .25s ease;
}
.rl-toc__link:hover {
  color: var(--text-1);
  transform: translateX(2px);
}
.rl-toc__link:hover .rl-toc__num { color: var(--gold); }
.rl-toc__link.is-active {
  color: var(--text-1);
  border-left-color: var(--gold);
}
.rl-toc__link.is-active .rl-toc__num { color: var(--gold); }

.rl-toc__cross {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-1);
  padding: 14px 18px;
  border: 1px solid rgba(26,26,26,.12);
  border-radius: 999px;
  transition: border-color .25s ease, background .25s ease, color .25s ease, transform .25s ease;
}
.rl-toc__cross svg {
  width: 12px;
  height: 12px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.rl-toc__cross:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateX(2px);
}
.rl-toc__cross:hover svg { transform: translateX(3px); }

/* content column --------------------------------------------- */
.rl-content {
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--text-1);
  max-width: 640px;
}
.rl-content p {
  margin: 0 0 18px;
  color: var(--text-1);
  text-wrap: pretty;
}
.rl-content a {
  color: var(--text-1);
  background-image: linear-gradient(transparent 62%, rgba(201,169,97,.35) 62%, rgba(201,169,97,.35) 92%, transparent 92%);
  transition: color .2s ease, background-image .2s ease;
}
.rl-content a:hover {
  color: var(--gold);
  background-image: linear-gradient(transparent 60%, rgba(201,169,97,.55) 60%, rgba(201,169,97,.55) 95%, transparent 95%);
}

.rl-content strong {
  font-weight: 600;
  color: var(--text-1);
}

.rl-content ul {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.rl-content ul li {
  position: relative;
  padding-left: 22px;
  margin: 4px 0;
  color: var(--text-1);
}
.rl-content ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.7em;
  width: 4px;
  height: 4px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* page intro lead block above section 01 --------------------- */
.rl-lead {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.5;
  color: var(--text-1);
  margin: 0 0 96px;
  letter-spacing: -0.005em;
  text-wrap: balance;
  max-width: 580px;
}
.rl-lead::after {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  background: var(--gold);
  margin-top: 28px;
}

/* numbered section ------------------------------------------- */
.rl-section {
  position: relative;
  padding-top: 68px;
  margin-bottom: 64px;
  scroll-margin-top: 100px;
}
.rl-section:first-of-type { padding-top: 0; }
.rl-section + .rl-section { border-top: 1px solid rgba(26,26,26,.08); }

.rl-section__head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin: 0 0 28px;
}
.rl-section__num {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  top: -2px;
}
.rl-section__num::after {
  content: "/";
  margin-left: 10px;
  color: rgba(201,169,97,.4);
  font-weight: 300;
}
.rl-section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-1);
  margin: 0;
  text-wrap: balance;
}

.rl-subhead {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-2);
  margin: 32px 0 14px;
}

/* address / fact card --------------------------------------- */
.rl-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-card);
  padding: 26px 28px 24px;
  margin: 14px 0 26px;
  box-shadow: 0 2px 18px rgba(20,15,10,.04);
  border: 1px solid rgba(26,26,26,.06);
  overflow: hidden;
}
.rl-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--gold);
}
.rl-card__label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
}
.rl-card__body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-1);
}
.rl-card__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  color: var(--text-1);
  margin: 0 0 4px;
  line-height: 1.25;
}
.rl-card__body p { margin: 0; }
.rl-card__body p + p { margin-top: 2px; }
.rl-card__body a { color: var(--text-1); }
.rl-card__row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 4px 16px;
  font-size: 14px;
}
.rl-card__row dt {
  color: var(--text-2);
  font-weight: 500;
  letter-spacing: .02em;
}
.rl-card__row dd {
  margin: 0;
  color: var(--text-1);
  font-variant-numeric: tabular-nums;
}

/* highlighted callout ---------------------------------------- */
.rl-callout {
  background: rgba(201,169,97,.06);
  border: 1px solid rgba(201,169,97,.22);
  border-radius: var(--radius-card);
  padding: 18px 22px;
  margin: 18px 0 26px;
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-1);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.rl-callout__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  fill: var(--gold);
  margin-top: 2px;
}
.rl-callout p { margin: 0; }

/* page footer marker ----------------------------------------- */
.rl-bottom {
  margin-top: 80px;
  padding-top: 36px;
  border-top: 1px solid rgba(26,26,26,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--text-2);
}
.rl-bottom__star {
  width: 14px;
  height: 14px;
  fill: var(--gold);
  flex-shrink: 0;
}
.rl-bottom__home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-1);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color .25s ease, transform .25s ease;
}
.rl-bottom__home:hover { color: var(--gold); transform: translateX(-2px); }
.rl-bottom__home svg {
  width: 12px;
  height: 12px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.rl-bottom__home:hover svg { transform: translateX(-3px); }

/* reveal on scroll ------------------------------------------- */
.rl-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease-out, transform .8s ease-out;
}
.rl-section.is-in {
  opacity: 1;
  transform: none;
}

/* nav variant: legal pages need always-light nav background --- */
.rl .nav {
  background: rgba(15,14,12,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.rl .nav.is-scrolled {
  background: rgba(15,14,12,.88);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .rl-page__grid {
    grid-template-columns: 180px 1fr;
    gap: 48px;
  }
}

@media (max-width: 860px) {
  .rl-hero { padding: 140px 22px 80px; }
  .rl-hero__star { width: 44px; height: 44px; margin-bottom: 22px; }

  .rl-page { padding: 64px 20px 100px; }
  .rl-page__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* TOC becomes a horizontal scrollable pill bar above content */
  .rl-toc {
    position: sticky;
    top: 60px;
    z-index: 30;
    background: linear-gradient(to bottom, var(--bg-light) 70%, rgba(250,247,242,0));
    padding: 14px 0 24px;
    margin: 0 -20px 28px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .rl-toc__label { display: none; }
  .rl-toc__list {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    border: none;
    padding: 0;
    margin: 0 0 14px;
  }
  .rl-toc__list::-webkit-scrollbar { display: none; }
  .rl-toc__item { flex-shrink: 0; }
  .rl-toc__link {
    padding: 8px 14px;
    margin: 0;
    border: 1px solid rgba(26,26,26,.1);
    border-radius: 999px;
    background: #fff;
    font-size: 12px;
    white-space: nowrap;
  }
  .rl-toc__link:hover { transform: none; }
  .rl-toc__link.is-active {
    background: var(--text-1);
    color: #FAF7F2;
    border-color: var(--text-1);
  }
  .rl-toc__link.is-active .rl-toc__num { color: var(--gold); }
  .rl-toc__num { font-size: 10px; }

  .rl-toc__cross {
    display: inline-flex;
    margin: 4px 0 0;
    padding: 10px 16px;
    font-size: 11px;
  }

  .rl-section__head { gap: 14px; flex-wrap: wrap; }
  .rl-section { padding-top: 52px; margin-bottom: 48px; }

  .rl-lead { margin-bottom: 64px; font-size: 19px; }

  .rl-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .rl-hero { padding: 120px 20px 70px; }
  .rl-content { font-size: 15px; }
  .rl-card { padding: 22px 22px 20px; }
  .rl-card__row { grid-template-columns: 72px 1fr; }
}

/* print: clean legal text ----------------------------------- */
@media print {
  .nav, .wa-fab, .progress-bar, .cursor, .rl-toc__cross, .rl-bottom { display: none !important; }
  .rl-hero { background: #fff; color: #000; padding: 40px 0 24px; border-bottom: 1px solid #000; }
  .rl-hero__title, .rl-hero__eyebrow, .rl-hero__meta { color: #000; }
  .rl-page { padding: 24px 0; background: #fff; }
  .rl-page__grid { grid-template-columns: 1fr; }
  .rl-toc { display: none; }
  .rl-content { font-size: 11pt; color: #000; }
  .rl-card { box-shadow: none; border: 1px solid #999; }
  .rl-section { break-inside: avoid; opacity: 1; transform: none; }
}
