/* ==========================================================================
   Rahat Lorenz – Stylesheet für die Unterseiten
   Farben und Typografie entsprechen der Startseite (index.html).
   Wird ausschließlich von den Unterseiten geladen; index.html und
   impressum.html behalten ihr eigenes eingebettetes CSS.
   ========================================================================== */

:root {
  --magenta: #C2185B;
  --violet: #7B1FA2;
  --lila: #9C27B0;
  --lila-light: #CE93D8;
  --cream: #FDF8F2;
  --cream-dark: #F5EDE0;
  --text: #2D1B3D;
  --text-light: #6B5777;
  --grad: linear-gradient(135deg, #C2185B, #7B1FA2, #9C27B0);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --line: rgba(156, 39, 176, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--serif); color: var(--text); line-height: 1.25; }
img, svg { max-width: 100%; }

/* ---------- Navigation ---------- */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(253, 248, 242, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 1rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
}
.nav-logo {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; text-decoration: none;
}
.nav-links { display: flex; gap: 1.5rem; list-style: none; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-light); font-size: 0.85rem; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--lila); }
.nav-links a.is-active { font-weight: 600; }
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: 0; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; }
.mobile-menu {
  display: none; position: fixed; top: 57px; left: 0; right: 0; z-index: 99;
  background: rgba(253, 248, 242, 0.98); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 1rem 2rem 1.5rem; flex-direction: column; gap: 0.2rem;
}
.mobile-menu a {
  text-decoration: none; color: var(--text); font-size: 1rem; font-weight: 500;
  padding: 0.5rem 0; border-bottom: 1px solid rgba(156, 39, 176, 0.08);
}
.mobile-menu.open { display: flex; }

/* ---------- Layout ---------- */
.container { max-width: 1000px; margin: 0 auto; padding: 0 2rem; }
.narrow { max-width: 760px; }
section { padding: 4rem 0; }

/* ---------- Seitenkopf ---------- */
.subhero {
  padding: 8rem 0 3.5rem;
  background: var(--cream);
  position: relative; overflow: hidden;
}
.subhero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 40%, rgba(194, 24, 91, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 10%, rgba(123, 31, 162, 0.07) 0%, transparent 60%);
  pointer-events: none;
}
.subhero .container { position: relative; z-index: 1; }
/* Die Brotkrumen sind ebenfalls ein <nav>-Element und müssen die Regeln der
   fixierten Hauptnavigation oben ausdrücklich zurücksetzen. */
.crumbs {
  position: static; width: auto; z-index: auto;
  background: none; backdrop-filter: none; border-bottom: 0;
  display: block; padding: 0;
  font-size: 0.8rem; color: var(--text-light); margin-bottom: 1.2rem;
}
.crumbs a { color: var(--lila); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { color: var(--text-light); }
.badge {
  display: inline-block; background: rgba(156, 39, 176, 0.1);
  border: 1px solid rgba(156, 39, 176, 0.25); color: var(--lila);
  padding: 0.35rem 1rem; border-radius: 50px; font-size: 0.8rem;
  font-weight: 500; margin-bottom: 1.2rem; letter-spacing: 0.03em;
}
.subhero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}
.lead { font-size: 1.05rem; color: var(--text-light); max-width: 680px; line-height: 1.8; }
.lead strong { color: var(--text); }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 0.85rem 2rem; background: var(--grad); color: white;
  text-decoration: none; border-radius: 50px; font-weight: 600; font-size: 0.93rem;
  transition: transform 0.3s, box-shadow 0.3s; box-shadow: 0 4px 20px rgba(123, 31, 162, 0.3);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(123, 31, 162, 0.4); }
.btn-outline {
  background: transparent; border: 2px solid var(--lila); color: var(--lila);
  box-shadow: none; padding: 0.75rem 1.9rem;
}
.btn-outline:hover { background: var(--lila); color: white; }

/* ---------- Fließtext ---------- */
.prose h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 2.8rem 0 1rem; padding-top: 0.6rem;
}
.prose h2:first-child { margin-top: 0; padding-top: 0; }
.prose h3 { font-size: 1.15rem; margin: 1.8rem 0 0.6rem; }
.prose p { color: var(--text-light); margin-bottom: 1.1rem; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--lila); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 0 0 1.2rem 1.2rem; color: var(--text-light); }
.prose li { margin-bottom: 0.45rem; }

.checklist { list-style: none; margin-left: 0 !important; }
.checklist li {
  background: white; border-left: 3px solid var(--magenta);
  padding: 0.7rem 1rem; border-radius: 0 10px 10px 0; margin-bottom: 0.5rem;
  font-size: 0.93rem; color: var(--text); line-height: 1.6;
}

/* ---------- Karten ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; margin: 1.8rem 0; }
.card {
  background: white; border-radius: 18px; padding: 1.7rem;
  border: 1px solid rgba(156, 39, 176, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(123, 31, 162, 0.1); }
.card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.card p { color: var(--text-light); font-size: 0.9rem; line-height: 1.7; margin-bottom: 0.8rem; flex: 1; }
.card .card-link { font-size: 0.85rem; font-weight: 600; color: var(--lila); text-decoration: none; }
.card .card-link:hover { text-decoration: underline; }
.card-num {
  font-family: var(--serif); font-style: italic; color: var(--magenta);
  font-size: 0.95rem; display: block; margin-bottom: 0.5rem;
}
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.8rem; }
.tag {
  background: var(--cream); color: var(--lila); padding: 0.22rem 0.7rem;
  border-radius: 50px; font-size: 0.74rem; font-weight: 500;
  border: 1px solid rgba(156, 39, 176, 0.18);
}

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border-radius: 14px; border: 1px solid var(--line); background: white; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 480px; }
th, td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--cream-dark); font-weight: 600; color: var(--text); font-size: 0.85rem; }
tr:last-child td { border-bottom: none; }
td { color: var(--text-light); }
td strong { color: var(--text); }

/* ---------- Hinweiskasten ---------- */
.note {
  background: white; border: 1px solid var(--line); border-left: 4px solid var(--lila);
  border-radius: 0 14px 14px 0; padding: 1.2rem 1.4rem; margin: 1.8rem 0;
  font-size: 0.92rem; color: var(--text-light);
}
.note strong { color: var(--text); }

/* ---------- FAQ ---------- */
.faq { margin: 1.8rem 0; }
.faq details {
  background: white; border: 1px solid var(--line); border-radius: 14px;
  padding: 0 1.3rem; margin-bottom: 0.7rem;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 1.05rem 0;
  font-weight: 600; font-size: 0.97rem; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--lila); font-size: 1.3rem; font-weight: 400; flex-shrink: 0; }
.faq details[open] summary::after { content: '–'; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .faq-a { padding: 0.9rem 0 1.2rem; color: var(--text-light); font-size: 0.93rem; }
.faq .faq-a p { margin-bottom: 0.7rem; }
.faq .faq-a p:last-child { margin-bottom: 0; }
.faq .faq-a a { color: var(--lila); }

/* ---------- Preisleiste ---------- */
.price-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin: 1.6rem 0; }
.price-item {
  background: white; border: 1px solid var(--line); border-radius: 16px;
  padding: 1.4rem; text-align: center;
}
.price-item .amount { font-size: 1.5rem; font-weight: 700; color: var(--lila); display: block; margin: 0.4rem 0 0.2rem; }
.price-item .amount small { font-size: 0.85rem; font-weight: 500; }
.price-item h3 { font-size: 1rem; }
.price-item p { font-size: 0.83rem; color: var(--text-light); }

/* ---------- Schritte ---------- */
.steps { display: flex; flex-direction: column; gap: 0.9rem; margin: 1.8rem 0; }
.step {
  display: flex; gap: 1.2rem; align-items: flex-start; background: white;
  border-radius: 16px; padding: 1.2rem 1.5rem; border: 1px solid var(--line);
}
.step-num {
  width: 38px; height: 38px; border-radius: 50%; background: var(--grad); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem; flex-shrink: 0;
}
.step h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.step p { font-size: 0.9rem; color: var(--text-light); margin: 0; }

/* ---------- CTA ---------- */
.cta-box {
  background: white; border-radius: 24px; padding: 3rem 2.5rem; text-align: center;
  border: 1px solid var(--line); box-shadow: 0 10px 40px rgba(123, 31, 162, 0.06);
  max-width: 660px; margin: 3.5rem auto 0;
}
.cta-box h2 {
  font-size: 1.7rem; margin-bottom: 0.7rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cta-box p { color: var(--text-light); margin-bottom: 1.6rem; font-size: 0.96rem; }

/* ---------- Verwandte Seiten ---------- */
.related { background: white; border-top: 1px solid var(--line); }
.related h2 { font-size: 1.35rem; margin-bottom: 1.2rem; }
.related .cards { margin-top: 0; }
.related .card { background: var(--cream); }

/* ---------- Footer ---------- */
footer { background: var(--text); color: rgba(255, 255, 255, 0.55); padding: 3rem 2rem 2rem; font-size: 0.85rem; }
.foot-grid {
  max-width: 1000px; margin: 0 auto 2rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1.4rem;
}
.foot-col h3 { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lila-light); margin-bottom: 0.8rem; font-family: var(--sans); font-weight: 600; }
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 0.45rem; }
.foot-col a { color: rgba(255, 255, 255, 0.72); text-decoration: none; font-size: 0.85rem; }
.foot-col a:hover { color: var(--lila-light); }
.foot-bottom {
  max-width: 1000px; margin: 0 auto; padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12); text-align: center; font-size: 0.82rem;
}
.foot-bottom span { color: var(--lila-light); }
.foot-bottom a { color: var(--lila-light); text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}
@media (max-width: 600px) {
  nav { padding: 1rem 1.2rem; }
  .container { padding: 0 1.2rem; }
  .subhero { padding: 7rem 0 2.5rem; }
  section { padding: 3rem 0; }
  .cta-box { padding: 2rem 1.4rem; border-radius: 18px; }
  .btn, .btn-outline { display: block; width: 100%; text-align: center; }
  .hero-actions { flex-direction: column; }
}

/* Logo in der Navigation: Grafik statt Schriftzug.
   Der Farbverlauf aus .nav-logo wuerde sonst durch die transparente Grafik scheinen. */
.nav-logo { background: none; -webkit-text-fill-color: initial; line-height: 0; }
.nav-logo img { display: block; height: 58px; width: auto; }
@media (max-width: 600px) { .nav-logo img { height: 44px; } }
