/* ============================================================
   KINDERZAUBERER ROY TOVER – subpage.css
   Stile für Unterseiten: Impressum & Datenschutz
   ============================================================ */

/* Subpage body braucht flex-column für sticky footer */
body.subpage {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── PAGE HERO ── */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 58%, #3a1a6e 100%);
  padding: 130px 60px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: attr(data-icon);
  position: absolute;
  font-size: 14rem;
  opacity: .04;
  right: -40px;
  top: -20px;
  pointer-events: none;
  line-height: 1;
}
.page-badge {
  display: inline-block;
  color: white;
  font-weight: 800;
  font-size: .76rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.page-badge--legal   { background: var(--pink); }
.page-badge--privacy { background: var(--teal); }

.page-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: white;
  line-height: 1.1;
}
.page-subtitle {
  color: rgba(255,255,255,.58);
  margin-top: 12px;
  font-size: .92rem;
}

/* ── SUBPAGE NAV ── */
.nav-back {
  color: rgba(255,255,255,.68);
  font-weight: 700;
  font-size: .88rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-back:hover { color: var(--yellow); }

/* ── CONTENT WRAPPER ── */
.subpage-content {
  flex: 1;
  position: relative;
  z-index: 1;
  max-width: 840px;
  margin: 0 auto;
  padding: 56px 40px 80px;
  width: 100%;
}

/* ── LEGAL CARDS ── */
.legal-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  box-shadow: var(--shadow-sm);
  border: 2px solid rgba(108,60,225,.07);
  margin-bottom: 22px;
  scroll-margin-top: 90px;
}
.legal-card h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.4rem;
  color: var(--purple);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.legal-card h2::before {
  content: '';
  width: 5px;
  height: 22px;
  background: linear-gradient(to bottom, var(--yellow), var(--pink));
  border-radius: 3px;
  display: inline-block;
  flex-shrink: 0;
}
.legal-card h3 {
  font-size: .97rem;
  font-weight: 800;
  color: var(--dark);
  margin: 22px 0 8px;
}
.legal-card p {
  font-size: .93rem;
  line-height: 1.85;
  color: #444;
  margin-bottom: 10px;
}
.legal-card p:last-child { margin-bottom: 0; }
.legal-card a { color: var(--purple); font-weight: 700; }
.legal-card a:hover { text-decoration: underline; }
.legal-card address { font-style: normal; }
.legal-card ul {
  padding-left: 20px;
  list-style: disc;
  margin: 10px 0;
}
.legal-card ul li {
  font-size: .93rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 4px;
}

.info-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f0eaff, #ffeef9);
  border: 2px solid rgba(108,60,225,.14);
  border-radius: 50px;
  padding: 9px 20px;
  font-size: .86rem;
  font-weight: 700;
  color: var(--purple);
  margin-top: 12px;
}

.highlight-box {
  background: linear-gradient(135deg, #f0eaff, #ffeef9);
  border-left: 5px solid var(--purple);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0;
  font-size: .9rem;
  color: var(--dark);
  font-weight: 600;
  line-height: 1.65;
}

/* ── TOC (Datenschutz) ── */
.toc-wrap {
  max-width: 840px;
  margin: 0 auto;
  padding: 36px 40px 0;
  position: relative;
  z-index: 1;
  width: 100%;
}
.toc-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 26px 36px;
  box-shadow: var(--shadow-sm);
  border: 2px solid rgba(108,60,225,.09);
}
.toc-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.05rem;
  color: var(--purple);
  margin-bottom: 14px;
}
.toc-list {
  list-style: none !important;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  padding: 0 !important;
}
.toc-list li a {
  color: var(--dark);
  font-size: .87rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}
.toc-list li a::before { content: '→'; color: var(--pink); font-weight: 900; }
.toc-list li a:hover { color: var(--purple); }

/* ── RESPONSIVE SUBPAGES ── */
@media (max-width: 768px) {
  .page-hero { padding: 110px 24px 44px; }
  .subpage-content { padding: 36px 20px 60px; }
  .toc-wrap { padding: 28px 20px 0; }
  .legal-card { padding: 28px 22px; }
  .toc-list { grid-template-columns: 1fr; }
  #main-footer { padding: 18px 20px; flex-direction: column; text-align: center; }
}
