/* ================================================================
   LEADNETIC · pages.css
   Nur für Unterseiten: Seitenkopf, Brotkrumen und Fließtext für
   die Rechtstexte. Damit sehen alle Unterseiten gleich aus.
   ================================================================ */

/* ================================================================
   SEITENKOPF
   ================================================================ */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 9rem 0 4.5rem;
  background:
    var(--glow-light),
    linear-gradient(168deg, #F2F6FF 0%, #FFFFFF 55%, #EFF8FF 100%);
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(11,15,26,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,15,26,.022) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 20%, #000, transparent 78%);
          mask-image: radial-gradient(ellipse 80% 80% at 50% 20%, #000, transparent 78%);
}
.page-hero-inner { position: relative; z-index: 1; max-width: 840px; }
.page-hero.center .page-hero-inner { max-width: 780px; margin: 0 auto; text-align: center; }
.page-hero.center .ph-cta, .page-hero.center .hero-trust { justify-content: center; }

.page-hero h1 { font-size: clamp(1.85rem, 3.1vw, 2.75rem); margin-bottom: 1.15rem; }
.ph-sub {
  font-size: 1.1rem;
  color: var(--gray-500);
  line-height: 1.8;
  max-width: 620px;
  margin-bottom: 2rem;
}
.page-hero.center .ph-sub { margin-left: auto; margin-right: auto; }
.ph-cta { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: 1.75rem; }

/* Kurzfakten unter dem Seitenkopf */
.ph-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .85rem;
  margin-top: 2.5rem;
  position: relative;
  z-index: 1;
}
.ph-fact {
  background: rgba(255,255,255,.8);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--sh-xs);
}
.ph-fact b {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: .2rem;
}
.ph-fact span { font-size: .82rem; color: var(--gray-500); line-height: 1.5; }

/* ================================================================
   BROTKRUMEN
   ================================================================ */
.crumbs {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
  font-size: .82rem;
  color: var(--gray-400);
  margin-bottom: 1.5rem;
  list-style: none;
}
.crumbs li { display: flex; align-items: center; gap: .4rem; }
.crumbs a { color: var(--gray-500); font-weight: 500; }
.crumbs a:hover { color: var(--blue); }
.crumbs .ico { font-size: .68rem; color: var(--gray-400); }
.crumbs [aria-current] { color: var(--gray-700); font-weight: 500; }
.page-hero.center .crumbs { justify-content: center; }

/* ================================================================
   FLIESSTEXT · Rechtstexte und lange Inhalte
   ================================================================ */
.prose {
  max-width: 780px;
  margin: 0 auto;
  color: var(--gray-600);
  font-size: .97rem;
  line-height: 1.85;
}
.prose h2 {
  font-size: 1.4rem;
  margin: 2.75rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-soft);
}
.prose h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.08rem; margin: 1.9rem 0 .7rem; }
.prose h4 { font-size: .95rem; margin: 1.4rem 0 .5rem; color: var(--dark); }
.prose p { margin-bottom: 1.1rem; }
.prose ul, .prose ol { margin: 0 0 1.2rem 1.3rem; }
.prose li { margin-bottom: .5rem; }
.prose a { font-weight: 500; text-decoration: underline; text-decoration-color: rgba(0,87,255,.3); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--blue); }
.prose strong { color: var(--dark); }

/* Hinweiskasten in Rechtstexten */
.prose .note {
  background: var(--blue-tint);
  border: 1px solid rgba(0,87,255,.12);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 1.15rem 1.35rem;
  margin: 1.5rem 0;
  font-size: .92rem;
}
.prose .note > strong:first-child { display: block; margin-bottom: .3rem; }
.prose .warn {
  background: rgba(245,158,11,.07);
  border-color: rgba(245,158,11,.2);
  border-left-color: var(--amber);
}

/* Tabelle für Auftragsverarbeiter und Tools */
.prose table, .data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  margin: 1.5rem 0;
}
.prose table th, .data-table th {
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-500);
  padding: .7rem .9rem;
  border-bottom: 1px solid var(--line);
  background: var(--gray-50);
}
.prose table td, .data-table td {
  padding: .8rem .9rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  line-height: 1.6;
}
.prose table tr:last-child td, .data-table tr:last-child td { border-bottom: 0; }

/* Damit breite Tabellen auf dem Handy nicht die Seite sprengen */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.5rem 0; }
.table-scroll table { margin: 0; min-width: 560px; }

/* Inhaltsverzeichnis für lange Rechtstexte */
.toc {
  background: var(--gray-50);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.5rem;
}
.toc h2 {
  font-size: .78rem !important;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin: 0 0 .9rem !important;
  padding: 0 !important;
  border: 0 !important;
}
.toc ol { margin: 0 0 0 1.1rem; font-size: .9rem; }
.toc li { margin-bottom: .35rem; }
.toc a { text-decoration: none; }

.legal-meta {
  font-size: .85rem;
  color: var(--gray-400);
  padding-top: 1.5rem;
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}

/* Rechtstexte folgen direkt auf den Seitenkopf, dort ist der volle
   Sektionsabstand zu viel. */
.page-hero + .bg-white { padding-top: 4rem; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1150px) {
  .page-hero { padding: 7.5rem 0 3.5rem; }
}
@media (max-width: 780px) {
  .ph-cta { flex-direction: column; align-items: stretch; }
  .ph-cta .btn { justify-content: center; }
  .prose h2 { font-size: 1.25rem; }
  .case-wide-head { flex-direction: column; }
}
