/* CLAUDE: assets/css/blog-extended.css – Erweiterte Blog-Styles für SEO-Silo-Struktur */
/* CLAUDE: Enthält: Breadcrumbs, FAQ, Subcategories, Tool-CTA, Pillar-Link, Related Articles, Single-Post */
/* CLAUDE: Max. 200 Zeilen pro Datei, diese Datei ergänzt blog.css */
/* CLAUDE: Ändern: Farben, Spacing, Breakpoints nach Bedarf anpassen */

/* ===== BREADCRUMBS ===== */

/* CLAUDE: Breadcrumb-Navigation (hierarchisch) */
/* CLAUDE: Ändern: font-size, padding, colors nach Design anpassen */
.breadcrumbs {
  margin: clamp(16px, 2vw, 24px) 30px; /* CLAUDE: 30px Margin links/rechts (Anforderung) */
  padding: 12px 0; /* CLAUDE: Padding oben/unten */
  font-size: 0.875rem; /* CLAUDE: Etwas kleiner als Fließtext (14px) */
  color: #666; /* CLAUDE: Grau (nicht zu dunkel, nicht zu hell) */
}

/* CLAUDE: Breadcrumb-Liste (UL) */
.breadcrumbs__list {
  list-style: none; /* CLAUDE: Entfernt Standard-Bullets */
  padding: 0;
  margin: 0;
  display: flex; /* CLAUDE: Flexbox für horizontale Ausrichtung */
  flex-wrap: wrap; /* CLAUDE: Umbruch bei Platzmangel (Mobil) */
  gap: 0.5rem; /* CLAUDE: Abstand zwischen Items */
  align-items: center;
}

/* CLAUDE: Breadcrumb-Item (LI) */
.breadcrumbs__item {
  display: inline-flex; /* CLAUDE: Inline-Flex für Separator */
  align-items: center;
}

/* CLAUDE: Breadcrumb-Link (A) */
.breadcrumbs__link {
  color: inherit; /* CLAUDE: Erbt Farbe von .breadcrumbs */
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs__link:hover {
  color: var(--color-heritage-gold, #C19A6B); /* CLAUDE: Goldene Heritage-Farbe */
  text-decoration: underline;
}

/* CLAUDE: Breadcrumb-Separator (›) */
.breadcrumbs__separator {
  margin: 0 0.25rem; /* CLAUDE: Kleiner Abstand um Separator */
  color: #999; /* CLAUDE: Noch heller als Link */
}

/* CLAUDE: Aktuelles Breadcrumb-Item (ohne Link) */
.breadcrumbs__current {
  color: #333; /* CLAUDE: Dunkler als Links (aktiv) */
  font-weight: 500; /* CLAUDE: Mittel-Fett */
}

/* ===== FAQ-ACCORDION ===== */

/* CLAUDE: FAQ-Section-Wrapper */
.faq-section {
  margin: clamp(32px, 4vw, 64px) 0; /* CLAUDE: Fluid Margin */
  padding: clamp(24px, 3vw, 48px); /* CLAUDE: Fluid Padding */
  background: #f9f9f9; /* CLAUDE: Helles Grau (sanfter Kontrast zu Weiß) */
  border-radius: 8px;
}

/* CLAUDE: FAQ-Titel (H2) */
.faq-section__title {
  margin-top: 0;
  margin-bottom: clamp(20px, 2.5vw, 32px);
  font-size: clamp(1.5rem, 2.5vw, 2rem); /* CLAUDE: Fluid Typography */
  font-weight: 700;
  color: #333;
}

/* CLAUDE: FAQ-Accordion-Container */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px; /* CLAUDE: Abstand zwischen FAQ-Items */
}

/* CLAUDE: FAQ-Item (Frage + Antwort) */
.faq-item {
  background: #fff; /* CLAUDE: Weiß (hebt sich von Section-BG ab) */
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  overflow: hidden; /* CLAUDE: Versteckt überstehendes Content */
}

/* CLAUDE: FAQ-Frage (Button, klickbar) */
.faq-item__question {
  width: 100%; /* CLAUDE: Gesamte Breite klickbar */
  padding: 16px 20px;
  border: none;
  background: transparent;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease;
}

.faq-item__question:hover {
  background: #f5f5f5; /* CLAUDE: Helles Grau bei Hover */
}

/* CLAUDE: FAQ-Frage-Text */
.faq-item__question-text {
  flex: 1; /* CLAUDE: Nimmt verfügbaren Platz */
  padding-right: 16px; /* CLAUDE: Platz für Icon */
}

/* CLAUDE: FAQ-Icon (+/−) */
.faq-item__icon {
  flex-shrink: 0; /* CLAUDE: Icon wird nicht kleiner */
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-heritage-gold, #C19A6B);
  transition: transform 0.3s ease;
}

/* CLAUDE: FAQ-Icon wenn geöffnet (rotiert zu −) */
.faq-item__question[aria-expanded="true"] .faq-item__icon {
  transform: rotate(45deg); /* CLAUDE: + → × */
}

/* CLAUDE: FAQ-Antwort (Container, initial versteckt) */
.faq-item__answer {
  max-height: 0; /* CLAUDE: Initial versteckt (Accordion-Animation) */
  overflow: hidden;
  transition: max-height 0.4s ease;
}

/* CLAUDE: FAQ-Antwort wenn geöffnet (via JS oder [hidden] entfernen) */
.faq-item__answer:not([hidden]) {
  max-height: 1000px; /* CLAUDE: Groß genug für alle Antworten */
}

/* CLAUDE: FAQ-Antwort-Content (Padding) */
.faq-item__answer-content {
  padding: 0 20px 20px; /* CLAUDE: Kein Padding oben (Frage schon Padding) */
  color: #555;
  line-height: 1.6;
}

/* ===== UNTERKATEGORIEN-NAVIGATION ===== */

/* CLAUDE: Subcategories-Nav (wenn Hauptkategorie Unterkategorien hat) */
.subcategories-nav {
  margin: clamp(24px, 3vw, 40px) 0;
  padding: clamp(16px, 2vw, 24px);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* CLAUDE: Subcategories-Titel (H2) */
.subcategories-nav__title {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.125rem; /* CLAUDE: Etwas kleiner als Haupttitel */
  font-weight: 600;
  color: #333;
}

/* CLAUDE: Subcategories-Liste (UL) */
.subcategories-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* CLAUDE: Responsive Grid */
  gap: 12px;
}

/* CLAUDE: Subcategory-Link (A) */
.subcategory-link {
  display: block;
  padding: 12px 16px;
  background: #f9f9f9;
  border-radius: 6px;
  color: #333;
  text-decoration: none;
  transition: all 0.2s ease;
}

.subcategory-link:hover {
  background: var(--color-heritage-gold, #C19A6B);
  color: #fff;
  transform: translateY(-2px); /* CLAUDE: Leichter Lift-Effekt */
}

/* CLAUDE: Subcategory-Name */
.subcategory-name {
  font-weight: 600;
}

/* CLAUDE: Subcategory-Count (Artikel-Anzahl) */
.subcategory-count {
  margin-left: 4px;
  color: #999;
  font-size: 0.875rem;
}

.subcategory-link:hover .subcategory-count {
  color: rgba(255, 255, 255, 0.8); /* CLAUDE: Hell auf Hover */
}

/* ===== TOOL-CTA-BOX ===== */

/* CLAUDE: Tool-CTA (Call-to-Action-Box für Rechner) */
.tool-cta {
  margin: clamp(32px, 4vw, 64px) 0;
  padding: 0; /* CLAUDE: Kein Padding (Inner hat Padding) */
}

/* CLAUDE: Tool-CTA-Inner (Inhalt mit Padding) */
.tool-cta__inner {
  padding: clamp(24px, 3vw, 40px);
  background: linear-gradient(135deg, #C19A6B 0%, #A67C52 100%); /* CLAUDE: Gold-Gradient */
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(193, 154, 107, 0.3);
  text-align: center;
  color: #fff;
}

/* CLAUDE: Tool-CTA-Titel (H2/H3) */
.tool-cta__title {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
  color: #fff;
}

/* CLAUDE: Tool-CTA-Text (P) */
.tool-cta__text {
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
}

/* CLAUDE: Tool-CTA-Button (A) */
.tool-cta__button {
  display: inline-block;
  padding: 12px 32px;
  background: #fff;
  color: #C19A6B;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.tool-cta__button:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ===== PILLAR-LINK-BOX ===== */

/* CLAUDE: Pillar-Link-Box (Weiterführend-Box am Ende von Artikeln) */
.pillar-link-box {
  margin: clamp(32px, 4vw, 48px) 0;
}

/* CLAUDE: Pillar-Link-Inner */
.pillar-link-box__inner {
  padding: clamp(20px, 2.5vw, 32px);
  background: #f9f9f9;
  border-left: 4px solid var(--color-heritage-gold, #C19A6B); /* CLAUDE: Gold-Akzent */
  border-radius: 6px;
}

/* CLAUDE: Pillar-Link-Titel (H3) */
.pillar-link-box__title {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.125rem;
  font-weight: 600;
  color: #333;
}

/* CLAUDE: Pillar-Link-Text (P) */
.pillar-link-box__text {
  margin-bottom: 16px;
  color: #555;
}

/* CLAUDE: Pillar-Link-Button (A) */
.pillar-link-box__link {
  display: inline-block;
  padding: 10px 24px;
  background: var(--color-heritage-gold, #C19A6B);
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pillar-link-box__link:hover {
  background: #A67C52; /* CLAUDE: Dunkler Gold-Ton */
  transform: translateY(-2px);
}

/* ===== RELATED ARTICLES ===== */

/* CLAUDE: Related Articles (am Ende von Single-Posts) */
.related-articles {
  margin: clamp(48px, 5vw, 80px) 0 clamp(32px, 4vw, 64px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 2px solid #e0e0e0; /* CLAUDE: Trennlinie oben */
}

/* CLAUDE: Related Articles-Titel (H2) */
.related-articles__title {
  margin-top: 0;
  margin-bottom: clamp(24px, 3vw, 32px);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #333;
}

/* CLAUDE: Related Articles Grid (2 Spalten Desktop, 1 Mobil) */
.ddi-grid--related {
  grid-template-columns: repeat(2, 1fr); /* CLAUDE: 2 Spalten */
}

@media (max-width: 768px) {
  .ddi-grid--related {
    grid-template-columns: 1fr; /* CLAUDE: 1 Spalte auf Mobil */
  }
}

/* ===== SINGLE-POST-STYLES ===== */

/* CLAUDE: Single-Post-Wrapper (Grid-Layout ohne Sidebar) */
.single-grid-wrapper {
  max-width: 800px; /* CLAUDE: Max. Breite für optimale Lesbarkeit */
  margin: 0 auto; /* CLAUDE: Zentriert */
  padding: 0 30px; /* CLAUDE: 30px Padding links/rechts */
}

/* CLAUDE: Single-Header (Titel + Meta) */
.single-header {
  margin-bottom: clamp(24px, 3vw, 40px);
}

/* CLAUDE: Single-Titel (H1) */
.single-title {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3rem); /* CLAUDE: Fluid Typography */
  font-weight: 800;
  line-height: 1.2;
  color: #222;
}

/* CLAUDE: Single-Meta (Datum + Lesedauer) */
.single-meta {
  display: flex;
  gap: 16px;
  font-size: 0.875rem;
  color: #666;
}

/* CLAUDE: Featured Image (Full-Width) */
.single-featured-image {
  margin: 0 -30px clamp(24px, 3vw, 40px); /* CLAUDE: Breakout (negatives Margin) */
}

.single-featured-image__img {
  width: 100%;
  height: auto;
  display: block;
}

.single-featured-image__caption {
  margin-top: 8px;
  padding: 0 30px;
  font-size: 0.875rem;
  color: #666;
  font-style: italic;
}

/* CLAUDE: Single-Content (Editor-Styles) */
.single-content {
  margin-bottom: clamp(32px, 4vw, 48px);
  font-size: 1.0625rem; /* CLAUDE: Etwas größer als Standard (17px) */
  line-height: 1.75; /* CLAUDE: Großzügiger Zeilenabstand für Lesbarkeit */
  color: #333;
}

.single-content h2,
.single-content h3,
.single-content h4 {
  margin-top: clamp(32px, 4vw, 48px);
  margin-bottom: 16px;
  font-weight: 700;
  color: #222;
}

.single-content p {
  margin-bottom: 1.25em;
}

.single-content a {
  color: var(--color-heritage-gold, #C19A6B);
  text-decoration: underline;
}

.single-content a:hover {
  color: #A67C52;
}

/* CLAUDE: Single-Tags (Footer) */
.single-tags {
  margin-top: clamp(24px, 3vw, 32px);
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.single-tags__label {
  font-weight: 600;
  margin-right: 8px;
}

.single-tags__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.single-tags__link {
  display: inline-block;
  padding: 4px 12px;
  background: #f5f5f5;
  border-radius: 4px;
  color: #666;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.single-tags__link:hover {
  background: var(--color-heritage-gold, #C19A6B);
  color: #fff;
}

/* ===== POST-NAVIGATION ===== */

/* CLAUDE: Post-Navigation (Prev/Next) */
.post-navigation {
  margin: clamp(48px, 5vw, 64px) 0;
  padding: clamp(20px, 2.5vw, 32px) 0;
  border-top: 2px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.post-navigation__prev,
.post-navigation__next {
  flex: 1;
  min-width: 0; /* CLAUDE: Erlaubt Truncate von langen Titeln */
}

.post-navigation__next {
  text-align: right;
}

.post-navigation__label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
}

.post-navigation__link {
  color: #333;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.post-navigation__link:hover {
  color: var(--color-heritage-gold, #C19A6B);
}

@media (max-width: 768px) {
  .post-navigation {
    flex-direction: column;
  }

  .post-navigation__next {
    text-align: left;
  }
}

/* ===== PILLAR-HERO ===== */

/* CLAUDE: Pillar-Hero (Hero-Section für Pillar-Pages) */
.pillar-hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  margin-bottom: clamp(32px, 4vw, 64px);
}

.pillar-hero__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.6); /* CLAUDE: Dunkelt Bild ab für bessere Lesbarkeit */
  z-index: 0;
}

.pillar-hero__content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  max-width: 800px;
}

.pillar-hero__title {
  margin: 0 0 16px;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.pillar-hero__excerpt {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.6;
  margin-bottom: 32px;
}

.pillar-hero__scroll-hint {
  opacity: 0.8;
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
