/* =========================================================
   SLBahnen – Rechtliches
   Datei: css/rechtliches.css
   Voraussetzung: globales UI / head.php ist geladen
========================================================= */

.page--rechtliches .legal-main {
  padding-top: 26px;
  padding-bottom: 70px;
}

/* HERO */

.page--rechtliches .legal-hero {
  margin: 0 0 24px;
}

.page--rechtliches .legal-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--blue-dark);
  opacity: .9;
  margin-bottom: 8px;
}

.page--rechtliches .legal-hero__title {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 2vw + 1rem, 2.45rem);
  line-height: 1.1;
  color: var(--blue-dark);
}

.page--rechtliches .legal-hero__lead {
  margin: 0;
  color: rgba(0, 0, 0, .70);
  line-height: 1.6;
  max-width: 70ch;
}

/* TABS */

.page--rechtliches .legal-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 26px 0 30px;
}

.page--rechtliches .legal-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 10px 18px;
  border-radius: 999px;

  background: rgba(52, 152, 219, .10);
  border: 1px solid rgba(0, 0, 0, .08);

  color: var(--blue-dark);
  font-weight: 800;
  text-decoration: none;

  transition:
    background-color .2s ease,
    color .2s ease,
    box-shadow .2s ease,
    transform .2s ease;
}

.page--rechtliches .legal-tab:hover,
.page--rechtliches .legal-tab.is-active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .14);
}

.page--rechtliches .legal-tab:hover {
  transform: translateY(-1px);
}

/* GRID */

.page--rechtliches .legal-grid {
  display: grid;
  gap: 26px;
}

/* CARD */

.page--rechtliches .legal-card {
  scroll-margin-top: calc(var(--header-h, 90px) + 24px);

  background: rgba(52, 152, 219, .10);
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 22px;

  padding: clamp(22px, 3vw, 38px);

  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
}

.page--rechtliches .legal-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.page--rechtliches .legal-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  background: var(--blue);
  color: #fff;
  font-size: 1.35rem;

  box-shadow: 0 6px 16px rgba(0, 0, 0, .14);
}

.page--rechtliches .legal-card h2 {
  margin: 0 0 6px;
  color: var(--blue-dark);
  font-size: clamp(1.25rem, 1vw + 1rem, 1.65rem);
}

.page--rechtliches .legal-card__head p {
  margin: 0;
  color: rgba(0, 0, 0, .65);
  line-height: 1.5;
}

/* INTRO */

.page--rechtliches .legal-intro {
  margin-bottom: 18px;
  padding: 16px 18px;

  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(0, 0, 0, .07);
  border-radius: var(--radius);
}

.page--rechtliches .legal-intro p {
  margin: 0;
  line-height: 1.65;
  color: rgba(0, 0, 0, .76);
}

/* IMPRESSUM DATEN */

.page--rechtliches .legal-data {
  display: grid;
  gap: 12px;
  margin: 0;
}

.page--rechtliches .legal-data div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;

  padding: 14px 16px;
  border-radius: var(--radius);

  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(0, 0, 0, .07);
}

.page--rechtliches .legal-data dt {
  font-weight: 900;
  color: var(--blue-dark);
}

.page--rechtliches .legal-data dd {
  margin: 0;
  color: rgba(0, 0, 0, .78);
  line-height: 1.5;
}

/* ACCORDION */

.page--rechtliches .legal-accordion {
  display: grid;
  gap: 12px;
}

.page--rechtliches details {
  background: rgba(255, 255, 255, .66);
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: var(--radius);
  overflow: hidden;
}

.page--rechtliches summary {
  list-style: none;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  padding: 16px 18px;

  font-weight: 900;
  color: var(--blue-dark);

  transition: background-color .2s ease;
}

.page--rechtliches summary::-webkit-details-marker {
  display: none;
}

.page--rechtliches summary::after {
  content: "\ea4e";
  font-family: "remixicon";
  font-size: 1.25rem;
  color: var(--blue-dark);
  transition: transform .2s ease;
}

.page--rechtliches details[open] summary {
  background: rgba(52, 152, 219, .12);
}

.page--rechtliches details[open] summary::after {
  transform: rotate(180deg);
}

.page--rechtliches .details-body {
  padding: 0 18px 18px;
  color: rgba(0, 0, 0, .76);
  line-height: 1.65;
}

.page--rechtliches .details-body p {
  margin: 12px 0 0;
}

.page--rechtliches .details-body ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.page--rechtliches .details-body li {
  margin: 6px 0;
}

/* MUTED */

.page--rechtliches .legal-muted {
  margin: 20px 0 0;
  color: rgba(0, 0, 0, .48);
  font-size: .92rem;
}

/* RESPONSIVE */

@media (max-width: 700px) {
  .page--rechtliches .legal-main {
    padding-top: 22px;
  }

  .page--rechtliches .legal-tabs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .page--rechtliches .legal-tab {
    width: 100%;
  }

  .page--rechtliches .legal-card {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .page--rechtliches .legal-card__head {
    gap: 12px;
  }

  .page--rechtliches .legal-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .page--rechtliches .legal-data div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .page--rechtliches summary {
    padding: 15px 16px;
  }

  .page--rechtliches .details-body {
    padding: 0 16px 16px;
  }
}