/**
 * Behandlungen Styles
 * Single & Archive Templates
 * 
 * @package Beta_Masterpiece
 */

/* ========================================
   SINGLE TEMPLATE - HERO
   ======================================== */
   .behandlung-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: flex-end;
    padding: 6rem 0 4rem;
    overflow: hidden;
}

.behandlung-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.behandlung-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 15, 15, 0.5) 0%, rgba(15, 15, 15, 0.85) 100%);
    z-index: -1;
}

.behandlung-hero-content {
    max-width: 800px;
}

.behandlung-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
}

.behandlung-breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.behandlung-breadcrumb a:hover {
    color: var(--color-primary);
}

.breadcrumb-sep {
    opacity: 0.4;
}

.breadcrumb-current {
    color: rgba(255, 255, 255, 0.9);
}

.behandlung-hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    color: white;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.behandlung-hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 600px;
}

/* ========================================
   SINGLE HERO im hero-v4 Design (Startseite)
   Breadcrumb zentriert im Overlay-Content
   ======================================== */
.behandlung-hero-v4 .behandlung-breadcrumb {
    justify-content: center;
    margin-bottom: 1rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.behandlung-hero-v4 .behandlung-breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
}

.behandlung-hero-v4 .behandlung-breadcrumb a:hover {
    color: var(--color-primary);
}

.behandlung-hero-v4 .behandlung-breadcrumb span {
    color: rgba(255, 255, 255, 0.95);
}

/* ========================================
   SECTION BADGES & HEADERS
   ======================================== */
.behandlung-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 169, 65, 0.1);
    border: 1px solid rgba(255, 169, 65, 0.2);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* Badges in text-only/centered sections zentrieren */
.behandlung-text-only .behandlung-content-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.behandlung-text-only .behandlung-section-badge,
.behandlung-section-header .behandlung-section-badge {
    width: fit-content;
}

.behandlung-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.behandlung-section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.behandlung-section-subtitle {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* ========================================
   ANKER-NAVIGATION (Dropdown)
   ======================================== */
.behandlung-nav {
    position: sticky;
    top: 92px;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.behandlung-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
}

.behandlung-nav-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a1a1a;
    padding: 1rem 0;
}

.behandlung-nav-dropdown {
    position: relative;
}

.behandlung-nav-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #f8f8f8;
    border: 1px solid #e5e5e5;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.2s ease;
}

.behandlung-nav-toggle:hover {
    background: #f0f0f0;
    border-color: var(--color-primary);
}

.behandlung-nav-toggle svg {
    transition: transform 0.2s ease;
}

.behandlung-nav-dropdown.open .behandlung-nav-toggle svg {
    transform: rotate(180deg);
}

.behandlung-nav-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 240px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.behandlung-nav-dropdown.open .behandlung-nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.behandlung-nav-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: #444;
    text-decoration: none;
    font-size: 0.9375rem;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.behandlung-nav-menu a:last-child {
    border-bottom: none;
}

.behandlung-nav-menu a:hover {
    background: #f8f8f8;
    color: var(--color-primary);
}

.behandlung-nav-menu a svg {
    width: 18px;
    height: 18px;
    color: var(--color-primary);
    opacity: 0.7;
}

/* ========================================
   INTRO SECTION
   ======================================== */
.behandlung-intro {
    padding: 5rem 0;
    background: #fff;
}

.behandlung-intro-grid {
    display: grid;
    gap: 3rem;
}

.behandlung-intro-grid.has-video {
    grid-template-columns: 1fr 1fr;
}

.behandlung-intro-grid.no-video {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}

.behandlung-intro-video {
    position: relative;
}

.behandlung-intro-video .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 1rem;
    overflow: hidden;
    background: #1a1a1a;
}

.behandlung-intro-video .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.behandlung-intro-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.behandlung-intro-text {
    font-size: 1.0625rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.behandlung-lexikon-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: none;
    margin-top: 0.5rem;
    transition: gap 0.2s ease;
}

.behandlung-lexikon-link:hover {
    gap: 0.75rem;
}

/* ========================================
   FAKTEN BOX - Stil wie Team-Kacheln
   ======================================== */
.behandlung-fakten {
  margin-top: 3rem;
  padding-bottom: 4rem;
  }

.behandlung-fakten-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    text-align: center;
}

.behandlung-fakten-grid {
    display: grid;
    gap: 1rem;
}

.behandlung-fakten-grid[data-count="5"] {
    grid-template-columns: repeat(5, 1fr);
}

.behandlung-fakten-grid[data-count="4"] {
    grid-template-columns: repeat(4, 1fr);
}

.behandlung-fakten-grid[data-count="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.behandlung-fakten-grid[data-count="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.behandlung-fakt {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.behandlung-fakt:hover {
    border-color: var(--color-primary);
    box-shadow: 0 8px 30px rgba(255, 169, 65, 0.15);
    transform: translateY(-2px);
}

.behandlung-fakt-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    border-radius: 14px;
    color: white;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(255, 169, 65, 0.35);
}

.behandlung-fakt-icon svg {
    width: 26px;
    height: 26px;
}

.behandlung-fakt-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.375rem;
}

.behandlung-fakt-value {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #1a1a1a;
}

.behandlung-fakten .container {
    overflow-x: hidden;
}

/* Fakten Mobile Responsive */
@media (max-width: 1024px) {
    .behandlung-fakten-grid[data-count="5"],
    .behandlung-fakten-grid[data-count="4"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .behandlung-fakten-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .behandlung-fakt {
        padding: 1rem 0.75rem;
    }
    
    .behandlung-fakt-icon {
        width: 48px;
        height: 48px;
    }
    
    .behandlung-fakt-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .behandlung-fakt-label {
        font-size: 0.6875rem;
    }
    
    .behandlung-fakt-value {
        font-size: 0.9375rem;
    }
}

/* ========================================
   ERKLÄR-VIDEOS SECTION
   ======================================== */
.behandlung-videos {
    padding: 5rem 0;
    background: #F1EBE3;
}

.behandlung-videos-grid {
    display: grid;
    gap: 2rem;
}

.behandlung-videos-grid[data-count="4"] {
    grid-template-columns: repeat(2, 1fr);
}

.behandlung-videos-grid[data-count="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.behandlung-videos-grid[data-count="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.behandlung-videos-grid[data-count="1"] {
    grid-template-columns: 1fr;
    max-width: 700px;
    margin: 0 auto;
}

.erklaer-video-card {
    cursor: pointer;
}

.erklaer-video-container {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 1rem;
    overflow: hidden;
    background: #1a1a1a;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.erklaer-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.erklaer-video-card:hover .erklaer-video {
    filter: blur(4px);
}

.erklaer-video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.erklaer-video-card:hover .erklaer-video-overlay,
.erklaer-video-card.hover .erklaer-video-overlay {
    opacity: 1;
}

/* Video Popup */
.video-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.video-popup-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 16/9;
}

.video-popup-close {
  position: absolute;
  top: -3rem;
  right: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.video-popup-close:hover {
  color: var(--color-primary);
}

.video-popup-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.5rem;
}

.erklaer-play-btn {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 169, 65, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    transform: scale(0.9);
    transition: transform 0.3s ease, background 0.3s ease;
}

.erklaer-video-card:hover .erklaer-play-btn {
    transform: scale(1);
    background: var(--color-primary);
}

.erklaer-video-title {
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
    text-align: center;
    margin-top: 1rem;
}

/* ========================================
   FAQ SECTION
   ======================================== */
.behandlung-faq {
    padding: 5rem 0;
    background: #fff;
}

.behandlung-faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e5e5e5;
}

.faq-item:first-child {
    border-top: 1px solid #e5e5e5;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    gap: 1rem;
}

.faq-question:hover span {
    color: var(--color-primary);
}

.faq-question span {
    font-size: 1.0625rem;
    font-weight: 500;
    color: #1a1a1a;
    transition: color 0.2s ease;
}

.faq-icon {
    flex-shrink: 0;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    overflow: hidden;
}

.faq-item.open .faq-answer {
    display: block;
}

/* Native FAQ with details/summary - NO JavaScript needed */
.faq-details {
    border-bottom: 1px solid #e5e5e5;
}

.faq-details:first-child {
    border-top: 1px solid #e5e5e5;
}

.faq-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    cursor: pointer;
    list-style: none;
    gap: 1rem;
}

.faq-summary::-webkit-details-marker {
    display: none;
}

.faq-summary::marker {
    display: none;
}

.faq-summary-text {
    font-size: 1.0625rem;
    font-weight: 500;
    color: #1a1a1a;
    transition: color 0.2s ease;
}

.faq-summary:hover .faq-summary-text {
    color: var(--color-primary);
}

.faq-chevron {
    flex-shrink: 0;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.faq-details[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-details-content {
    padding: 0 0 1.5rem 0;
}

.faq-details-content p {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
}

.faq-details-content p:last-child {
    margin-bottom: 0;
}

.faq-answer-content {
  padding: 0 0 1.5rem 0;
  }
  
  .faq-answer-content p {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
  }
  
  .faq-answer-content p:last-child {
  margin-bottom: 0;
  }

/* ========================================
   CONTENT SECTIONS (Beratung, Vorbereitung, etc.)
   ======================================== */
.behandlung-content-section {
  padding: 5rem 0;
  background: #fff;
  }
  
  .behandlung-content-section.alt-bg {
  background: #f8f8f8;
  }

.behandlung-beratung {
    background: #f8f8f8;
}

.behandlung-vorbereitung {
    background: #fff;
}

.behandlung-eingriff {
    background: #f8f8f8;
}

.behandlung-nachsorge {
    background: #fff;
}

.behandlung-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  }

.behandlung-content-image {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
}

.behandlung-content-image img {
    width: 100%;
    height: auto;
    display: block;
}

.behandlung-content-text {
    display: flex;
    flex-direction: column;
}

.behandlung-content-title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.behandlung-content-desc {
  font-size: 1.0625rem;
  color: #444;
  line-height: 1.8;
  }
  
  .behandlung-content-desc p {
  margin-bottom: 1.25rem;
  }
  
  .behandlung-content-desc p:last-child {
  margin-bottom: 0;
  }
  
  .behandlung-content-desc h4 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 2rem 0 1rem;
  }
  
  .behandlung-content-desc h4:first-child {
  margin-top: 0;
  }
  
  .behandlung-content-desc a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
  }
  
  .behandlung-content-desc a:hover {
  color: var(--color-primary-dark);
  }
  
  .behandlung-content-desc ul,
  .behandlung-content-desc ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
  }
  
  .behandlung-content-desc li {
  margin-bottom: 0.5rem;
  }

/* Zentrierte Text Sections (nur Text, kein Bild) */
.behandlung-text-only .behandlung-content-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.behandlung-text-only .behandlung-content-title {
    text-align: center;
}

.behandlung-text-only .behandlung-content-desc {
    text-align: center;
}

/* ========================================
   PATIENTENSTIMMEN SECTION
   ======================================== */
.behandlung-patientenstimmen {
    padding: 5rem 0;
    background: #FDF9F5;
}

.patientenstimmen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.patientenstimme-card {
    padding: 2rem;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.patientenstimme-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.patientenstimme-header {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    margin-bottom: 1rem;
}

.patientenstimme-avatar {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.patientenstimme-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.patientenstimme-name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1a1a1a;
    font-style: normal;
}

.patientenstimme-stars {
    display: flex;
    gap: 0.125rem;
    color: var(--color-primary);
}

.patientenstimme-headline {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.patientenstimme-text {
    font-size: 0.9375rem;
    color: #555;
  line-height: 1.7;
  }
  
  /* ========================================
   EXPANDABLE TEXT (Weiterlesen)
   ======================================== */
  .behandlung-expandable {
  position: relative;
  }
  
  .behandlung-expandable.is-truncated .behandlung-expandable-content {
  max-height: 300px;
  overflow: hidden;
  position: relative;
  }
  
  .behandlung-expandable.is-truncated .behandlung-expandable-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, white);
  pointer-events: none;
  }
  
  .behandlung-expandable.is-truncated.is-expanded .behandlung-expandable-content {
  max-height: none;
  }
  
  .behandlung-expandable.is-truncated.is-expanded .behandlung-expandable-content::after {
  display: none;
  }
  
  .behandlung-content-section.alt-bg .behandlung-expandable.is-truncated .behandlung-expandable-content::after {
  background: linear-gradient(to bottom, transparent, #f8f8f8);
  }
  
  .behandlung-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--color-primary);
  border-radius: 0.375rem;
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  }
  
  .behandlung-expand-btn:hover {
  background: var(--color-primary);
  color: white;
  }
  
  .behandlung-expand-btn svg {
  transition: transform 0.2s ease;
  }
  
  .behandlung-expandable.is-expanded .behandlung-expand-btn svg {
  transform: rotate(180deg);
  }
  
  .behandlung-expand-btn .collapse-text {
  display: none;
  }
  
  .behandlung-expandable.is-expanded .behandlung-expand-btn .expand-text {
  display: none;
  }
  
  .behandlung-expandable.is-expanded .behandlung-expand-btn .collapse-text {
  display: inline;
  }
  
  /* ========================================
   ZUSATZ SECTION (Lexikon)
   ======================================== */
.behandlung-zusatz {
    padding: 4rem 0;
    background: #1a1a1a;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}

.behandlung-zusatz-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.behandlung-zusatz-content {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    flex: 1;
}

.behandlung-zusatz-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    border-radius: 14px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(255, 169, 65, 0.35);
}

.behandlung-zusatz-icon svg {
    width: 26px;
    height: 26px;
}

.behandlung-zusatz-text {
    flex: 1;
}

.behandlung-zusatz-text .behandlung-content-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.behandlung-zusatz-text .behandlung-content-desc {
    font-size: 0.9375rem;
    margin: 0;
}

.behandlung-zusatz-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--color-primary);
    border-radius: 50%;
    color: white;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 169, 65, 0.35);
}

.behandlung-zusatz-link:hover {
    transform: translateX(4px);
    background: #e6962f;
}

.behandlung-zusatz-link svg {
    width: 24px;
    height: 24px;
}

/* ========================================
   WEITERE BEHANDLUNGEN SECTION
   ======================================== */
.behandlung-weitere {
    padding: 5rem 0;
    background: #F1EBE3;
}

.behandlung-weitere-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.behandlung-weitere-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.behandlung-weitere-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.behandlung-weitere-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.behandlung-weitere-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.behandlung-weitere-card:hover .behandlung-weitere-image img {
    transform: scale(1.05);
}

.behandlung-weitere-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.behandlung-weitere-title {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.behandlung-weitere-desc {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.behandlung-weitere-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-top: 0.5rem;
    transition: gap 0.2s ease;
}

.behandlung-weitere-card:hover .behandlung-weitere-link {
    gap: 0.625rem;
}

.behandlung-weitere-link svg {
    transition: transform 0.2s ease;
}

.behandlung-weitere-card:hover .behandlung-weitere-link svg {
    transform: translateX(2px);
}

/* ========================================
   VORGESPRÄCH SECTION
   ======================================== */
.behandlung-vorgespraech {
    padding: 5rem 0;
    background: var(--color-muted);
}

.behandlung-vorgespraech-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.behandlung-vorgespraech-titel {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--color-foreground);
    margin-bottom: 1.5rem;
}

.behandlung-vorgespraech-text {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-foreground-muted);
    margin-bottom: 2.5rem;
}

.behandlung-vorgespraech-text p {
    margin-bottom: 1rem;
}

.behandlung-vorgespraech-text p:last-child {
    margin-bottom: 0;
}

/* ========================================
   CTA SECTION - Kontakt-Style mit Blur Background
   ======================================== */
.behandlung-cta {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.behandlung-cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  }

.behandlung-cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(5px);
  transform: scale(1.1);
  }
  
  .behandlung-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 15, 15, 0.66) 0%, rgba(30, 30, 30, 0.14) 100%);
  z-index: 0;
  }

.behandlung-cta .container {
    position: relative;
    z-index: 1;
}

.behandlung-cta-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem;
    background: rgba(49, 49, 49, 0.62);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.behandlung-cta-video {
    position: relative;
    width: 160px;
    height: 160px;
    flex-shrink: 0;
}

.behandlung-cta-video video {
    display: block;
    width: 160px;
    height: 160px;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 50%;
    border: 3px solid var(--color-primary);
}

.behandlung-cta-video::before {
    content: '';
    position: absolute;
    inset: -8px;
    border: 1px solid rgba(245, 166, 35, 0.3);
    border-radius: 50%;
    pointer-events: none;
}

.behandlung-cta-video::after {
    content: '';
    position: absolute;
    inset: -16px;
    border: 1px solid rgba(245, 166, 35, 0.15);
    border-radius: 50%;
    pointer-events: none;
}

.behandlung-cta-content {
    flex: 1;
}

.behandlung-cta-header {
    margin-bottom: 2rem;
}

.behandlung-cta-title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.behandlung-cta-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 20px;
}

.behandlung-cta-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.behandlung-cta-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
  }

.behandlung-cta-info-item svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

a.behandlung-cta-info-item:hover {
    color: var(--color-primary);
}

.behandlung-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--color-primary);
    color: white;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background 0.3s ease, gap 0.3s ease;
}

.behandlung-cta-button:hover {
    background: var(--color-primary-dark);
    gap: 0.75rem;
}

/* ========================================
   ARCHIVE TEMPLATE
   ======================================== */
.archive-hero {
    position: relative;
    padding: 8rem 0 4rem;
    background: linear-gradient(to bottom, #141414 0%, #0f0f0f 100%);
}

.archive-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.archive-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 169, 65, 0.1);
    border: 1px solid rgba(255, 169, 65, 0.2);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.archive-hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.archive-hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

/* Kategorien Grid */
.archive-kategorien {
    padding: 4rem 0;
    background: #0f0f0f;
}

.kategorien-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.kategorie-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.kategorie-card:hover {
    border-color: rgba(255, 169, 65, 0.3);
}

.kategorie-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.kategorie-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.kategorie-card:hover .kategorie-image img {
    transform: scale(1.05);
}

.kategorie-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(15, 15, 15, 0.6) 100%);
}

.kategorie-content {
    padding: 1.5rem;
}

.kategorie-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.kategorie-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.kategorie-count {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}

.behandlungen-liste {
    list-style: none;
    margin: 0;
    padding: 0;
}

.behandlung-list-item {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.behandlung-list-item:first-child {
    border-top: none;
}

.behandlung-list-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 0;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.behandlung-list-item a:hover {
    color: var(--color-primary);
}

.behandlung-list-item a svg {
    color: var(--color-primary);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.behandlung-list-item a:hover svg {
    opacity: 1;
    transform: translateX(0);
}

.behandlung-list-item.mehr a {
    color: var(--color-primary);
    font-weight: 500;
}

.behandlung-list-item.mehr a svg {
    opacity: 1;
}

/* Archive SEO Section */
.archive-seo-section {
    padding: 5rem 0;
    background: white;
}

.archive-seo-inner {
    max-width: 800px;
    margin: 0 auto;
}

.archive-seo-header {
    text-align: center;
    margin-bottom: 2rem;
}

.archive-seo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 169, 65, 0.1);
    border: 1px solid rgba(255, 169, 65, 0.2);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.archive-seo-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 500;
    color: var(--color-foreground);
    margin: 0;
}

.archive-seo-content {
    position: relative;
}

.archive-seo-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-muted);
  margin: 0 0 1.25rem;
  text-align: center;
  }

.archive-seo-content p:last-of-type {
    margin-bottom: 0;
}

/* Reuse expandable styles from single */
.archive-seo-content.is-truncated .behandlung-expandable-content {
    max-height: 200px;
    overflow: hidden;
    position: relative;
}

.archive-seo-content.is-truncated .behandlung-expandable-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, white);
    pointer-events: none;
}

.archive-seo-content.is-truncated.is-expanded .behandlung-expandable-content {
    max-height: none;
}

.archive-seo-content.is-truncated.is-expanded .behandlung-expandable-content::after {
    display: none;
}

.archive-seo-content .behandlung-expand-btn {
    margin-top: 1.5rem;
}

/* Archive CTA */
.archive-cta {
  padding: 4rem 0 5rem;
  background: #0f0f0f;
  }

.archive-cta-card {
    padding: 3rem;
    background: linear-gradient(135deg, rgba(255, 169, 65, 0.1) 0%, rgba(255, 169, 65, 0.05) 100%);
    border: 1px solid rgba(255, 169, 65, 0.2);
    border-radius: 1.5rem;
    text-align: center;
}

.archive-cta-title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
}

.archive-cta-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.archive-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--color-primary);
    color: white;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background 0.3s ease, gap 0.3s ease;
}

.archive-cta-btn:hover {
    background: var(--color-primary-dark);
    gap: 0.75rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .behandlung-intro-grid.has-video {
        grid-template-columns: 1fr;
    }
    
    .behandlung-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .behandlung-fakten-grid[data-count="5"],
    .behandlung-fakten-grid[data-count="4"] {
        grid-template-columns: repeat(3, 1fr);
    }
    
.behandlung-videos-grid[data-count="4"],
  .behandlung-videos-grid[data-count="3"] {
  grid-template-columns: repeat(2, 1fr);
  }
  
  .patientenstimmen-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
  .behandlung-hero {
  min-height: calc(100vh - 60px);
  min-height: calc(100dvh - 60px);
  align-items: center;
  justify-content: center;
  padding: 5rem 0 3rem;
  }
  
  .behandlung-hero-content {
  text-align: center;
  }
  
  .behandlung-breadcrumb {
  justify-content: center;
  }
  
  .behandlung-hero-subtitle {
  margin: 0 auto;
  }
  
  .behandlung-fakten-grid[data-count="5"],
  .behandlung-fakten-grid[data-count="4"],
  .behandlung-fakten-grid[data-count="3"],
  .behandlung-fakten-grid[data-count="2"] {
  grid-template-columns: repeat(2, 1fr);
  }
  
  .behandlung-videos-grid[data-count="4"],
  .behandlung-videos-grid[data-count="3"],
  .behandlung-videos-grid[data-count="2"] {
  grid-template-columns: 1fr;
  }
  
  .patientenstimmen-grid {
  grid-template-columns: 1fr;
  }
  
  .behandlung-cta-card {
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem;
  }
  
  .behandlung-cta-video {
  margin: 0 auto;
  }
  
  .behandlung-cta-header {
  text-align: center;
  }
  
  .behandlung-cta-info {
  grid-template-columns: 1fr;
  gap: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  }
  
  /* CTA Info Items linksbündig ausrichten, Container zentriert */
  .behandlung-cta-info-item {
  justify-content: flex-start;
  text-align: left;
  width: 100%;
  max-width: 320px;
  }
    
    .kategorien-grid {
        grid-template-columns: 1fr;
    }
    
    .behandlung-weitere-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .behandlung-weitere-grid {
        grid-template-columns: 1fr;
    }
    .behandlung-cta-card,
    .archive-cta-card {
        padding: 2rem 1.5rem;
    }
    
    .behandlung-zusatz-inner {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .behandlung-zusatz-link {
        align-self: center;
    }
}

/* ========================================
   TAXONOMY TEMPLATE - KATEGORIE SEITE
   ======================================== */

/* Hero */
.kategorie-hero {
    position: relative;
    min-height: 45vh;
    display: flex;
    align-items: flex-end;
    padding: 6rem 0 4rem;
    overflow: hidden;
}

.kategorie-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.kategorie-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 15, 15, 0.5) 0%, rgba(15, 15, 15, 0.85) 100%);
    z-index: -1;
}

.kategorie-hero-content {
    max-width: 800px;
}

.kategorie-hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.kategorie-hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 600px;
}

/* Behandlungen Grid */
.kategorie-behandlungen {
    padding: 5rem 0;
    background: #fff;
}

.behandlungen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.behandlung-card {
    position: relative;
    display: block;
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
    text-decoration: none;
}

.behandlung-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}

.behandlung-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.behandlung-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.behandlung-card:hover .behandlung-card-image img {
    transform: scale(1.05);
}

.behandlung-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.3) 100%);
}

.behandlung-card-content {
    padding: 1.5rem;
}

.behandlung-card-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.behandlung-card-desc {
    font-size: 0.9375rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.behandlung-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    transition: gap 0.2s ease;
}

.behandlung-card:hover .behandlung-card-link {
    gap: 0.75rem;
}

/* Weitere Kategorien Section */
.kategorie-weitere {
    padding: 5rem 0;
    background: #f8f8f8;
}

.weitere-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 2.5rem;
}

.weitere-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.weitere-card {
    position: relative;
    display: block;
    aspect-ratio: 1;
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none;
}

.weitere-card-image {
    position: absolute;
    inset: 0;
}

.weitere-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.weitere-card:hover .weitere-card-image img {
    transform: scale(1.1);
}

.weitere-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, 0.7) 100%);
}

.weitere-card-title {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: white;
    text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .behandlungen-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .weitere-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .kategorie-hero {
        min-height: 35vh;
    }
    
    .behandlungen-grid {
        grid-template-columns: 1fr;
    }
    
    .weitere-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .weitere-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .weitere-card-title {
        font-size: 0.875rem;
    }
}

/* ============================================
   KATEGORIE-SEITEN: kompakterer hero-v4
   (nur auf Behandlungs-Kategorie-Archiven, damit
   Einzel-Behandlungsseiten unveraendert bleiben)
   ============================================ */
body.tax-behandlung_kategorie .hero-v4-slide-active img {
    aspect-ratio: 3 / 1;
    min-height: 340px;
    max-height: 440px;
}

@media (max-width: 768px) {
    body.tax-behandlung_kategorie .hero-v4-slide-active img {
        aspect-ratio: auto;
        min-height: 300px;
        max-height: 60vh;
    }
}

/* ============================================
   EINZEL-BEHANDLUNG: Hero auf Mobil
   Vorher: min-height: calc(100dvh - 60px)
   -> Bild war bildschirmhoch (~784px), das
      Querformat-Motiv (2:1) wurde dadurch extrem
      beschnitten (nur ~25% der Bildbreite sichtbar)
      und die dvh-Einheit liess die Hoehe beim
      Scrollen springen (Ruckeln durch die
      ein-/ausklappende Browserleiste).
   Jetzt: festes Seitenverhaeltnis in festen
      Einheiten -> ruhiges Scrollen, mehr Motiv
      sichtbar und der Folgeinhalt ragt ins Bild,
      sodass erkennbar ist, dass es weitergeht.
   ============================================ */
@media (max-width: 768px) {
    body.single-behandlungen .hero-v4-slide-active img {
        aspect-ratio: 4 / 5;
        height: auto;
        min-height: 420px;
        max-height: 70vh; /* bewusst vh statt dvh: aendert sich beim Scrollen nicht */
    }

    /* Textblock etwas tiefer setzen, damit er im ruhigeren
       Bildausschnitt sitzt und nicht mittig "schwebt" */
    body.single-behandlungen .hero-v4-content {
        bottom: 2.5rem;
    }
}

@media (max-width: 480px) {
    body.single-behandlungen .hero-v4-slide-active img {
        aspect-ratio: 4 / 5;
        min-height: 380px;
        max-height: 70vh;
    }
}

/* ============================================
   KATEGORIE-INTRO: zentrierter Überblick mit
   grosser Überschrift, direkt gefolgt von den
   Behandlungskacheln (kein Riesen-Gap mehr)
   ============================================ */
.kategorie-intro {
    padding: 4rem 0 2rem;
    text-align: center;
}

.kategorie-intro .behandlung-intro-content {
    align-items: center;
}

.kategorie-intro .behandlung-section-badge {
    margin: 0 auto 1.5rem;
}

/* Die im Backend gepflegte Überschrift gross darstellen (wie Section-Titel) */
.kategorie-intro .behandlung-intro-text h1,
.kategorie-intro .behandlung-intro-text h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.2;
    margin: 0 0 1.25rem;
}

.kategorie-intro .behandlung-intro-text h3 {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 1.5rem 0 0.75rem;
}

.kategorie-intro .behandlung-intro-text {
    font-size: 1.0625rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 0;
}

.kategorie-intro .behandlung-intro-text p {
    margin: 0 0 1rem;
}

.kategorie-intro .behandlung-intro-text p:last-child {
    margin-bottom: 0;
}

/* Wenn ein Intro vorhanden ist, folgt das Kachel-Grid direkt darunter */
.kategorie-behandlungen.has-intro {
    padding-top: 2rem;
}

/* ============================================
   KATEGORIE: LISTENANSICHT + KONTAKTSPALTE
   Liste nimmt 2/3, Kontaktkarte das letzte Drittel
   ============================================ */
.kategorie-liste-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* --- Liste --- */
.behandlungen-liste {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.behandlung-listitem {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.75rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 14px;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.behandlung-listitem:hover {
    border-color: rgba(255, 169, 65, 0.55);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.behandlung-listitem-image {
    flex-shrink: 0;
    width: 88px;
    height: 88px;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f0ec;
}

.behandlung-listitem-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.behandlung-listitem:hover .behandlung-listitem-image img {
    transform: scale(1.06);
}

.behandlung-listitem-content {
    flex: 1;
    min-width: 0;
}

.behandlung-listitem-title {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    margin: 0;
    transition: color 0.2s ease;
}

.behandlung-listitem:hover .behandlung-listitem-title {
    color: var(--color-primary);
}

/* Subtitel auf eine Zeile begrenzen -> gleichmaessige Zeilenhoehe */
.behandlung-listitem-subtitle {
    font-size: 0.9375rem;
    color: #666;
    line-height: 1.5;
    margin: 0.25rem 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Oranger Kreis mit weissem Pfeil */
.behandlung-listitem-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    transition: transform 0.2s ease, background 0.2s ease;
}

.behandlung-listitem:hover .behandlung-listitem-arrow {
    transform: translateX(3px);
    background: #e8912c;
}

/* --- Kontaktspalte --- */
.kategorie-kontakt {
    position: sticky;
    top: 7rem;
}

.kategorie-kontakt-card {
    background: #faf7f4;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    padding: 2rem;
}

.kategorie-kontakt-title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    margin: 1.25rem 0 0.75rem;
}

.kategorie-kontakt-text {
    font-size: 0.9375rem;
    color: #555;
    line-height: 1.7;
    margin: 0 0 1.5rem;
}

.kategorie-kontakt-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    font-size: 0.9375rem;
    color: #333;
    text-decoration: none;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    transition: color 0.2s ease;
}

.kategorie-kontakt-item svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-primary);
}

a.kategorie-kontakt-item:hover {
    color: var(--color-primary);
}

.kategorie-kontakt-item-static {
    color: #555;
}

.kategorie-kontakt-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.875rem 1.25rem;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 999px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.kategorie-kontakt-btn:hover {
    background: #e8912c;
    transform: translateY(-2px);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .kategorie-liste-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .kategorie-kontakt {
        position: static;
    }
}

@media (max-width: 640px) {
    .behandlung-listitem {
        gap: 1rem;
        padding: 0.625rem;
    }

    .behandlung-listitem-image {
        width: 68px;
        height: 68px;
    }

    .behandlung-listitem-title {
        font-size: 1rem;
    }

    .behandlung-listitem-subtitle {
        font-size: 0.875rem;
    }

    .behandlung-listitem-arrow {
        width: 34px;
        height: 34px;
    }

    .kategorie-kontakt-card {
        padding: 1.5rem;
    }
}

/* Mobile Hero 2026 für Behandlungs- und Kategorieseiten */
@media (max-width: 768px) {
    body.single-behandlungen .hero-v4-slide-active img {
        height: clamp(430px, 66svh, 540px);
        min-height: 430px;
        max-height: 540px;
        aspect-ratio: auto;
        object-position: center 40%;
    }

    body.single-behandlungen .hero-v4-content,
    body.tax-behandlung_kategorie .hero-v4-content {
        top: 50%;
        bottom: auto;
        transform: translate(-50%, -50%);
    }

    body.tax-behandlung_kategorie .hero-v4-slide-active img {
        height: clamp(360px, 54svh, 450px);
        min-height: 360px;
        max-height: 450px;
        aspect-ratio: auto;
    }

    .behandlung-hero-v4 .behandlung-breadcrumb {
        margin-bottom: 0.8rem;
        font-size: 0.69rem;
        line-height: 1.35;
    }
}
