/* ===== SUBPAGE STYLES ===== */

/* Mobile CTA Banner: standardmäßig ausgeblendet, nur auf Mobile sichtbar */
.mobile-cta-subbanner {
  display: none;
}

/* Page Hero (ersetzt den großen Hero auf Unterseiten) */
.page-hero {
  padding: 120px 0 48px;
  background: linear-gradient(135deg, #1E4E78 0%, var(--petrol) 60%, #4E9AD4 100%);
  color: var(--white);
}
.page-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 12px;
}
.page-hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  max-width: 600px;
}
.back-link {
  display: inline-block;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
  transition: color 0.2s;
}
.back-link:hover {
  color: var(--white);
}

/* Content Layout */
.subpage-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.content-main h2 {
  margin-bottom: 18px;
}
.content-main h3 {
  margin-top: 32px;
  margin-bottom: 12px;
}
.content-main p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}

/* Detail List */
.detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 16px 0 24px;
}
.detail-list li {
  padding-left: 24px;
  position: relative;
  color: var(--text-muted);
  line-height: 1.7;
}
.detail-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--petrol);
  border-radius: 50%;
}
.detail-list li strong {
  color: var(--text);
}

/* CTA Box */
.cta-box {
  margin-top: 40px;
  padding: 32px;
  background: var(--petrol-light);
  border-radius: var(--radius);
  border-left: 4px solid var(--petrol);
}
.cta-box h3 {
  margin-top: 0;
  margin-bottom: 8px;
}
.cta-box p {
  margin-bottom: 18px;
}

/* Sidebar */
.content-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 100px;
}
.sidebar-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.sidebar-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 14px;
}
.sidebar-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}
.sidebar-card a {
  color: var(--petrol);
  font-weight: 500;
}
.sidebar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidebar-list li {
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-list li::before {
  content: '✓';
  width: 20px;
  height: 20px;
  background: var(--petrol-light);
  color: var(--petrol);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Stellenanzeige Banner */
.jobs-banner {
  margin-top: 48px;
  background: linear-gradient(135deg, #4A8EC6 0%, var(--petrol) 100%);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 260px;
}
.jobs-banner-img {
  position: relative;
  overflow: hidden;
}
.jobs-banner-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.jobs-banner-content {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
}
.jobs-banner-content h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  color: var(--white);
  margin-bottom: 16px;
}
.jobs-banner-content p {
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
}
.jobs-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}
.jobs-banner-content h3 {
  font-size: 30px;
}
.jobs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.jobs-list li {
  font-size: 16px;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}
.jobs-list li::before {
  content: '▸';
  color: var(--terra);
  font-size: 14px;
}

.btn-white {
  background: var(--white);
  color: var(--petrol-dark);
  border-color: var(--white);
  font-weight: 600;
}
.btn-white:hover {
  background: var(--offwhite);
  color: var(--petrol-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Jobs Detail Page */
.jobs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 8px;
}
.job-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--terra);
  transition: transform var(--transition), box-shadow var(--transition);
}
.job-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.job-card h3 {
  margin-bottom: 8px;
}
.job-tag {
  display: inline-block;
  background: var(--petrol-light);
  color: var(--petrol);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.job-card p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
  line-height: 1.7;
}
.job-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.job-highlights li {
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.job-highlights li::before {
  content: '★';
  color: var(--terra);
  font-size: 12px;
}

/* ===== FACT PILLS (Schlüsselfakten oben) ===== */
.facts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 32px;
}
.fact-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--petrol-light);
  border: 1px solid rgba(62,127,186,0.2);
  color: var(--petrol-dark);
  padding: 7px 15px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
}
.fact-pill svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ===== STANDORT CARDS ===== */
.standort-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  margin: 16px 0 28px;
}
.standort-card {
  background: var(--white);
  border: 1.5px solid rgba(62,127,186,0.15);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color var(--transition), box-shadow var(--transition);
  position: relative;
  cursor: pointer;
}
/* Gesamte Standort-Kachel klickbar */
.standort-card > a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
.standort-card .standort-name,
.standort-card .standort-tag,
.standort-card .standort-adresse,
.standort-card .standort-detail {
  position: relative;
  z-index: 2;
}
.standort-card:hover {
  border-color: var(--petrol);
  box-shadow: 0 4px 16px rgba(62,127,186,0.12);
}
.standort-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 50px;
  width: fit-content;
}
.standort-tag.ambulant {
  background: rgba(74,222,128,0.14);
  color: #16a34a;
}
.standort-tag.stationaer {
  background: rgba(62,127,186,0.12);
  color: var(--petrol-dark);
}
.standort-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  line-height: 1.3;
}
.standort-adresse {
  font-size: 13px;
  color: var(--text-muted);
}
.standort-detail {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 8px;
  margin-top: 2px;
}

/* ===== BEHANDLUNGS-GRID (2-spaltig) ===== */
.behandlung-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 16px 0 24px;
}
.behandlung-card {
  background: var(--offwhite);
  border-radius: 10px;
  padding: 18px 20px;
  border-left: 3px solid var(--petrol);
}
.behandlung-card strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text);
}
.behandlung-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ===== INDIKATIONS-TAGS ===== */
.indikation-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 24px;
}
.indikation-tag {
  background: var(--bg-alt);
  color: var(--text);
  font-size: 13px;
  padding: 6px 13px;
  border-radius: 50px;
  font-weight: 500;
}

/* ===== METHODEN-BLOCK (Chirotherapie etc.) ===== */
.methoden-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0 24px;
}
.methode-card {
  background: var(--white);
  border: 1.5px solid rgba(62,127,186,0.15);
  border-radius: var(--radius);
  padding: 22px;
}
.methode-card .methode-title {
  font-family: 'DM Serif Display', serif;
  font-size: 17px;
  color: var(--petrol-dark);
  margin-bottom: 8px;
}
.methode-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ===== TOP CARDS ROW (nebeneinander im Content-Bereich) ===== */
.top-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 36px;
}
.top-cards-row .sidebar-card {
  box-shadow: var(--shadow);
}
@media (max-width: 640px) {
  .top-cards-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .top-cards-row .sidebar-card h4 { font-size: 11px; }
  .top-cards-row .sidebar-card p { font-size: 13px; }
  .top-cards-row .sidebar-card .sidebar-list li { font-size: 12px; }
}

/* ===== INFOBOX (hervorgehobener Erklärungsblock) ===== */
.sw-infobox {
  background: var(--white);
  border-left: 4px solid var(--terra);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 20px 0 24px;
}
.sw-infobox strong {
  display: block;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 8px;
}
.sw-infobox p {
  margin: 0 !important;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== VIDEO-GRID ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 14px 0 28px;
}
.video-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1.5px solid rgba(62,127,186,0.15);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.video-link-card:hover {
  border-color: var(--petrol);
  box-shadow: 0 4px 14px rgba(62,127,186,0.12);
  transform: translateY(-2px);
}
.video-play-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--petrol);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  padding-left: 3px;
  flex-shrink: 0;
}
.video-link-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--petrol-dark);
  text-align: center;
  line-height: 1.35;
}
@media (max-width: 640px) {
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .video-link-card {
    padding: 14px 10px;
  }
  .video-play-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 13px;
  }
  .video-link-title {
    font-size: 12px;
  }
}

/* ===== LINK-ARROW IN LEISTUNG CARD ===== */
/* (in style.css ist .link-arrow bereits definiert) */

/* Responsive */
@media (max-width: 900px) {
  .subpage-content {
    grid-template-columns: minmax(0, 1fr);
    overflow-x: hidden;
  }
  .content-main {
    min-width: 0;
    overflow-x: hidden;
  }
  .content-sidebar {
    position: static;
    min-width: 0;
  }
  .jobs-banner {
    grid-template-columns: 1fr;
  }
  .jobs-banner-img {
    height: 200px;
  }
  .jobs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-hero {
    padding: 100px 0 36px;
  }
  .jobs-banner-content {
    padding: 28px 24px;
  }
  .jobs-banner-content h3 {
    font-size: 22px;
  }

  /* ===== MOBILE: kein horizontales Scrollen ===== */

  /* Behandlungs-Grid: 2 Spalten (kompakt) */
  .behandlung-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .behandlung-card {
    padding: 12px 14px;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .behandlung-card strong {
    font-size: 12px;
  }
  .behandlung-card p {
    font-size: 12px;
  }

  /* Methoden-Grid: 2 Spalten */
  .methoden-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .methode-card {
    padding: 14px 14px;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .methode-card .methode-title {
    font-size: 14px;
  }
  .methode-card p {
    font-size: 12px;
  }

  /* Standort-Grid: 2 Spalten */
  .standort-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  /* CTA-Box: weniger Padding */
  .cta-box {
    padding: 22px 18px;
  }

  /* Fließtext & Überschriften verkleinern */
  .content-main h2 {
    font-size: 22px;
    margin-bottom: 12px;
  }
  .content-main h3 {
    font-size: 16px;
    margin-top: 22px;
    margin-bottom: 8px;
  }
  .content-main p {
    font-size: 13px;
    line-height: 1.65;
    margin-bottom: 12px;
  }
  .detail-list {
    gap: 10px;
  }
  .detail-list li {
    font-size: 13px;
  }

  /* Kontakt-Sidebar auf Mobile ausblenden */
  #subpage-sidebar {
    display: none;
  }
  /* Mobile CTA Banner – vollbreiter schlanker Streifen */
  .mobile-cta-subbanner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background: var(--terra);
    padding: 14px 20px;
    gap: 12px;
    margin: 0;
    border-radius: 0;
  }
  .mobile-cta-subbanner .cta-banner-text h3 {
    color: var(--white);
    margin: 0 0 2px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
  }
  .mobile-cta-subbanner .cta-banner-text p {
    color: rgba(255,255,255,0.85);
    margin: 0;
    font-size: 11px;
  }
  .mobile-cta-subbanner .btn-accent {
    background: var(--white);
    color: var(--terra);
    border-color: var(--white);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 13px;
  }
  /* Alle Bilder im Content-Bereich: nie breiter als Container */
  .content-main img {
    max-width: 100% !important;
    width: auto !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
  }

  /* Inline-Flex-Bereiche (z. B. Stoßwellen-Seite) umbrechen */
  .content-main > div[style*="flex"] {
    flex-wrap: wrap !important;
  }

  /* Sidebar-Karten im Hauptbereich (top-cards-row) kompakter */
  .top-cards-row .sidebar-card {
    padding: 14px 12px;
  }
}
