/* ==========================================================================
   Faktor3 – subpage.css
   Styles für Leistungs-Unterseiten und Innenseiten
   ========================================================================== */

/* ─── SUBPAGE HERO (schmaler als Homepage-Hero) ─── */
/* ─── SUBPAGE HERO ─── */
.subpage-hero {
  position: relative;
  padding: calc(var(--topbar-h) + 140px) 0 100px;
  overflow: hidden;
  background: var(--c-bg);
}

/* Hintergrundbild — inline style="background-image:url(...)" bleibt */
.subpage-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Overlay Ebene 1 — dunkler Basis-Schleier über dem gesamten Bild */
.subpage-hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(15, 18, 21, 0.62);
}

/* Overlay Ebene 2 — diagonaler Verlauf von links (fast schwarz) nach rechts (transparent) */
.subpage-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg,
      rgba(15,18,21,0.95) 0%,
      rgba(15,18,21,0.85) 30%,
      rgba(15,18,21,0.55) 55%,
      rgba(15,18,21,0.15) 75%,
      transparent 100%
    ),
    /* Grüner Akzentschimmer oben links */
    linear-gradient(135deg,
      rgba(47,98,41,0.18) 0%,
      transparent 45%
    ),
    /* Dunkler Boden damit Text unten nicht schwebt */
    linear-gradient(to top,
      rgba(15,18,21,0.7) 0%,
      transparent 40%
    );
}

/* Grid über den Overlays */
.subpage-hero-grid {
  position: absolute; inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(47,98,41,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,98,41,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}

/* Content über allem */
.subpage-hero-content {
  position: relative;
  z-index: 2;
}

/* Breadcrumb */
.subpage-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-cond);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247,246,243,0.45);
  margin-bottom: 20px;
}
.subpage-hero .breadcrumb a {
  color: rgba(247,246,243,0.45);
  text-decoration: none;
  transition: color var(--trans);
}
.subpage-hero .breadcrumb a:hover { color: var(--c-accent2); }
.subpage-hero .breadcrumb .sep    { color: rgba(255,255,255,0.2); }
.subpage-hero .breadcrumb .current { color: var(--c-accent2); }

/* H1 */
.subpage-hero h1 {
  font-family: var(--ff-head);
  font-size: clamp(3.5rem, 7vw, 6rem);
  line-height: 0.95;
  color: var(--c-white);
  margin-bottom: 24px;
  /* Subtiler Text-Shadow für extra Lesbarkeit */
  text-shadow: 0 2px 40px rgba(0,0,0,0.4);
}
.subpage-hero h1 em {
  color: var(--c-accent);
  font-style: normal;
}

/* Subtext */
.subpage-hero .hero-sub {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(247,246,243,0.8);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 36px;
  animation: none;
  /* Leichter Text-Shadow */
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
}

.subpage-hero .hero-btns { animation: none; }

/* Section Label über dem H1 */
.subpage-hero .section-label {
  color: var(--c-accent2);
  opacity: 0.9;
  margin-bottom: 12px;
}

/* ─── SUBPAGE LEISTUNGS-DETAIL ─── */
.leistung-detail {
  padding: 80px 0;
  background: var(--c-bg);
}
.leistung-detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: start;
}
.leistung-intro {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--c-muted);
  line-height: 1.8;
  margin-bottom: 40px;
}
.leistung-features {
  list-style: none;
  margin-bottom: 40px;
}
.leistung-features li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--c-border);
  font-size: 0.95rem;
  color: var(--c-muted);
}
.leistung-features li:last-child { border-bottom: none; }
.leistung-features li::before {
  content: '';
  width: 20px; height: 20px;
  background: var(--c-accent);
  clip-path: polygon(3px 0%, 100% 0%, calc(100% - 3px) 100%, 0% 100%);
  flex-shrink: 0;
  margin-top: 2px;
}
.leistung-features li strong { color: var(--c-text); }

/* ─── STICKY SIDEBAR CARD ─── */
.leistung-sidebar {
  position: sticky;
  top: 96px;
}
.sidebar-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  padding: 32px 28px;
  margin-bottom: 16px;
}
.sidebar-card h4 {
  font-family: var(--ff-cond);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-white);
  margin-bottom: 20px;
}
.sidebar-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--c-border);
  font-size: 0.9rem;
  color: var(--c-muted);
}
.sidebar-contact-item:last-child { border-bottom: none; }
.sidebar-contact-item a { color: var(--c-text); text-decoration: none; }
.sidebar-contact-item a:hover { color: var(--c-accent); }
.sidebar-contact-item svg { width:16px; height:16px; stroke: var(--c-accent); fill:none; stroke-width:1.8; flex-shrink:0; }
.sidebar-other-leistungen { list-style: none; }
.sidebar-other-leistungen li { border-bottom: 1px solid var(--c-border); }
.sidebar-other-leistungen li:last-child { border-bottom: none; }
.sidebar-other-leistungen a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  font-family: var(--ff-cond);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-muted);
  text-decoration: none;
  transition: color var(--trans);
}
.sidebar-other-leistungen a:hover { color: var(--c-accent); }
.sidebar-other-leistungen a.active { color: var(--c-accent); }
.sidebar-other-leistungen a svg { width:14px; height:14px; stroke:currentColor; fill:none; stroke-width:2; }

/* ─── SUBPAGE VORTEILE SECTION ─── */
.vorteile-section {
  background: var(--c-surface);
  padding: 80px 0;
}
.vorteile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2px;
  margin-top: 48px;
}
.vorteil-card {
  background: var(--c-card);
  padding: 32px 28px;
  transition: background var(--trans);
}
.vorteil-card:hover { background: #2a3038; }
.vorteil-icon {
  width: 44px; height: 44px;
  background: rgba(47,98,41,0.12);
  display: flex; align-items: center; justify-content: center;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
  margin-bottom: 18px;
}
.vorteil-icon svg { width:20px; height:20px; stroke:var(--c-accent); fill:none; stroke-width:1.8; }
.vorteil-card h4 {
  font-family: var(--ff-cond);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-white);
  margin-bottom: 10px;
}
.vorteil-card p {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--c-muted);
  line-height: 1.7;
}

/* ─── MINI KONTAKT CTA ─── */
.mini-cta {
  background: var(--c-accent);
  padding: 64px 0;
  text-align: center;
}
.mini-cta h2 {
  font-family: var(--ff-head);
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: #F7F6F3;
  margin-bottom: 12px;
}
.mini-cta p {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(247,246,243,0.8);
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.btn-cta-light {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #F7F6F3;
  color: #1F252B;
  font-family: var(--ff-cond);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 32px;
  text-decoration: none;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: background var(--trans), transform var(--trans);
}
.btn-cta-light:hover { background: #fff; transform: translateY(-2px); }

/* ─── INNENSEITE (Impressum, Datenschutz) ─── */
.innerpage-header {
  padding: 140px 0 48px;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
}
.innerpage-content {
  padding: 60px 0 80px;
  max-width: 800px;
}
.innerpage-content h2 {
  font-family: var(--ff-cond);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-white);
  margin: 36px 0 12px;
}
.innerpage-content h2:first-child { margin-top: 0; }
.innerpage-content p, .innerpage-content li {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--c-muted);
  line-height: 1.8;
  margin-bottom: 12px;
}
.innerpage-content a { color: var(--c-accent); }
.innerpage-content ul { padding-left: 20px; margin-bottom: 16px; }

/* ─── RESPONSIVE SUBPAGE ─── */
@media (max-width: 900px) {
  .leistung-detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .leistung-sidebar { position: static; }
}

/* ─── INNENSEITE (Impressum, Datenschutz) ─── */
.innerpage-header {
  padding: calc(var(--topbar-h) + 100px) 0 52px;
  background: var(--c-surface);
  border-bottom: 2px solid var(--c-accent);
  position: relative;
  overflow: hidden;
}
.innerpage-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(47,98,41,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,98,41,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.innerpage-header .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-cond);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 20px;
}
.innerpage-header .breadcrumb a {
  color: var(--c-muted);
  text-decoration: none;
  transition: color var(--trans);
}
.innerpage-header .breadcrumb a:hover { color: var(--c-accent); }
.innerpage-header .breadcrumb .sep   { color: var(--c-border); }
.innerpage-header .breadcrumb .current { color: var(--c-accent2); }
.innerpage-header h1 {
  font-family: var(--ff-head);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  color: var(--c-white);
  line-height: 1;
  margin-top: 10px;
}

/* Content */
.innerpage-content {
  padding: 64px 0 96px;
  max-width: 780px;
}

/* Blocks */
.legal-block {
  padding: 32px 0;
  border-bottom: 1px solid var(--c-border);
}
.legal-block--last { border-bottom: none; }

.innerpage-content h2 {
  font-family: var(--ff-cond);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent2);
  margin-bottom: 14px;
}
.innerpage-content p,
.innerpage-content li {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--c-muted);
  line-height: 1.85;
  margin-bottom: 10px;
}
.innerpage-content p:last-child { margin-bottom: 0; }
.innerpage-content strong { color: var(--c-text); font-weight: 600; }
.innerpage-content a {
  color: var(--c-accent2);
  text-decoration: none;
  border-bottom: 1px solid rgba(58,122,51,0.3);
  transition: color var(--trans), border-color var(--trans);
}
.innerpage-content a:hover {
  color: var(--c-text);
  border-color: var(--c-accent2);
}
.innerpage-content ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px;
}
.innerpage-content ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 6px 0;
  margin: 0;
}
.innerpage-content ul li::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--c-accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 9px;
}
.legal-date {
  font-family: var(--ff-cond);
  font-size: 0.82rem !important;
  letter-spacing: 0.06em;
  color: var(--c-border) !important;
  text-transform: uppercase;
}

/* Hinweis-Box */
.legal-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 40px;
  padding: 20px 24px;
  background: rgba(47,98,41,0.06);
  border: 1px solid rgba(47,98,41,0.2);
  border-left: 3px solid var(--c-accent);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--c-muted);
  line-height: 1.7;
}
.legal-notice svg {
  width: 18px; height: 18px;
  stroke: var(--c-accent); fill: none;
  stroke-width: 1.8; flex-shrink: 0;
  margin-top: 1px;
}
