/* ============================================================================
   HOCHZEITSRATGEBER - COMPREHENSIVE STYLES
   Wedding Photography Website - Blog/Guide Section
   Brand Colors: Primary (#b08d6e), Gold (#c9a96e), Dark (#1a1a1a), Cream (#faf7f4)
   ============================================================================ */

/* ============================================================================
   1. ROOT VARIABLES & TYPOGRAPHY
   ============================================================================ */

:root {
  --ab-primary: #b08d6e;
  --ab-gold: #c9a96e;
  --ab-dark: #1a1a1a;
  --ab-cream: #faf7f4;
  --ab-light-gray: #f5f5f5;
  --ab-medium-gray: #6a6a6a;
  --ab-border-light: #e8e8e8;
  --ab-accent-red: #d9534f;
  --ab-accent-blue: #5dade2;
  --ab-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --ab-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
  --ab-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
  --ab-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Typography */
:root {
  --font-jost: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-montserrat: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-great-vibes: "Great Vibes", cursive;
}

/* ============================================================================
   2. RATGEBER LIST VIEW - CARD GRID
   ============================================================================ */

.ab-ratgeber-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}

/* Tablet: 2 columns */
@media (max-width: 992px) {
  .ab-ratgeber-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* Mobile: 1 column */
@media (max-width: 576px) {
  .ab-ratgeber-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Card Container */
.ab-ratgeber-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--ab-shadow-sm);
  transition: var(--ab-transition);
  position: relative;
}

.ab-ratgeber-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--ab-shadow-lg);
}

/* Card Image */
.ab-ratgeber-card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ab-ratgeber-card:hover .ab-ratgeber-card-image {
  transform: scale(1.05);
}

/* Placeholder Gradient (for cards without images) */
.ab-ratgeber-placeholder {
  width: 100%;
  height: 240px;
  background: linear-gradient(135deg, var(--ab-cream) 0%, var(--ab-gold) 50%, var(--ab-primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 3rem;
  font-family: var(--font-great-vibes);
}

/* Card Body */
.ab-ratgeber-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Card Title */
.ab-ratgeber-card h3 {
  font-family: var(--font-jost);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ab-dark);
  margin: 0 0 12px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Teaser/Description */
.ab-ratgeber-teaser {
  color: var(--ab-medium-gray);
  font-size: 0.95rem;
  font-family: var(--font-montserrat);
  line-height: 1.6;
  margin: 0 0 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

/* Card Meta Information */
.ab-ratgeber-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--ab-primary);
  margin: 12px 0 16px 0;
  font-family: var(--font-montserrat);
}

.ab-ratgeber-card-date {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ab-primary);
}

.ab-ratgeber-card-date::before {
  content: "📅";
  font-size: 1rem;
}

.ab-ratgeber-card-time::before {
  content: "⏱";
  font-size: 1rem;
}

/* Card Badge (Category) */
.ab-ratgeber-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--ab-primary);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-montserrat);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ab-ratgeber-card-badge.category-inspiration {
  background: #d9534f;
}

.ab-ratgeber-card-badge.category-planning {
  background: var(--ab-gold);
  color: var(--ab-dark);
}

.ab-ratgeber-card-badge.category-styles {
  background: #5dade2;
  color: #ffffff;
}

/* Button Styling */
.ab-ratgeber-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 2px solid var(--ab-primary);
  background: transparent;
  color: var(--ab-primary);
  font-family: var(--font-montserrat);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--ab-transition);
  text-decoration: none;
  white-space: nowrap;
}

.ab-ratgeber-btn:hover,
.ab-ratgeber-btn:focus {
  background: var(--ab-primary);
  color: #ffffff;
  outline: none;
}

.ab-ratgeber-btn-primary {
  background: var(--ab-primary);
  color: #ffffff;
  border-color: var(--ab-primary);
}

.ab-ratgeber-btn-primary:hover,
.ab-ratgeber-btn-primary:focus {
  background: var(--ab-dark);
  border-color: var(--ab-dark);
}

/* ============================================================================
   3. RATGEBER DETAIL VIEW - ARTICLE
   ============================================================================ */

.ab-ratgeber-article {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero Section */
.ab-ratgeber-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 400px;
  margin-bottom: 48px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 0 0 12px 12px;
}

@media (max-width: 768px) {
  .ab-ratgeber-hero {
    height: 250px;
    margin-bottom: 32px;
  }
}

@media (max-width: 576px) {
  .ab-ratgeber-hero {
    height: 200px;
    margin-bottom: 24px;
  }
}

.ab-ratgeber-hero-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.ab-ratgeber-hero-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.3) 60%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 1;
}

.ab-ratgeber-hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 24px 40px 24px;
  color: #ffffff;
  width: 100%;
}

.ab-ratgeber-hero h1 {
  font-family: var(--font-jost);
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .ab-ratgeber-hero h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .ab-ratgeber-hero h1 {
    font-size: 1.5rem;
  }
}

/* Hero without image - gradient background */
.ab-ratgeber-hero-gradient {
  background: linear-gradient(135deg, var(--ab-primary) 0%, var(--ab-gold) 100%);
}

.ab-ratgeber-hero-gradient .ab-ratgeber-hero-overlay {
  display: none;
}

/* Reading Progress Bar */
.ab-ratgeber-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ab-gold);
  width: 0%;
  transition: width 0.1s linear;
  z-index: 100;
}

@media (max-width: 576px) {
  .ab-ratgeber-progress {
    display: none;
  }
}

/* Article Meta Information */
.ab-ratgeber-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-family: var(--font-montserrat);
  font-size: 0.95rem;
  color: var(--ab-medium-gray);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ab-border-light);
}

@media (max-width: 576px) {
  .ab-ratgeber-meta {
    gap: 12px;
    font-size: 0.85rem;
    margin-bottom: 24px;
    padding-bottom: 16px;
  }
}

.ab-ratgeber-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ab-ratgeber-meta-author {
  color: var(--ab-primary);
  font-weight: 600;
}

.ab-ratgeber-meta-divider {
  width: 1px;
  height: 16px;
  background: var(--ab-border-light);
}

/* Article Content Container */
.ab-ratgeber-content {
  font-family: var(--font-montserrat);
  color: var(--ab-dark);
  line-height: 1.8;
  font-size: 1.1rem;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .ab-ratgeber-content {
    font-size: 1rem;
    line-height: 1.7;
  }
}

@media (max-width: 576px) {
  .ab-ratgeber-content {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

/* Paragraphs */
.ab-ratgeber-content p {
  margin: 0 0 24px 0;
  text-align: justify;
}

@media (max-width: 576px) {
  .ab-ratgeber-content p {
    text-align: left;
    margin-bottom: 16px;
  }
}

/* Headings */
.ab-ratgeber-content h2 {
  font-family: var(--font-jost);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ab-dark);
  margin: 48px 0 24px 0;
  padding-left: 20px;
  position: relative;
}

.ab-ratgeber-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--ab-primary);
  border-radius: 2px;
}

@media (max-width: 576px) {
  .ab-ratgeber-content h2 {
    font-size: 1.4rem;
    margin: 32px 0 16px 0;
  }
}

.ab-ratgeber-content h3 {
  font-family: var(--font-jost);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ab-dark);
  margin: 32px 0 16px 0;
}

@media (max-width: 576px) {
  .ab-ratgeber-content h3 {
    font-size: 1.15rem;
    margin: 24px 0 12px 0;
  }
}

.ab-ratgeber-content h4 {
  font-family: var(--font-jost);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ab-dark);
  margin: 20px 0 12px 0;
}

/* Images */
.ab-ratgeber-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--ab-shadow-md);
  margin: 32px 0;
  display: block;
}

@media (max-width: 576px) {
  .ab-ratgeber-content img {
    margin: 20px 0;
    border-radius: 6px;
  }
}

/* Blockquotes */
.ab-ratgeber-content blockquote {
  position: relative;
  margin: 32px 0;
  padding: 28px 28px 28px 40px;
  background: var(--ab-cream);
  border-left: 4px solid var(--ab-gold);
  border-radius: 6px;
  font-style: italic;
  color: var(--ab-dark);
  line-height: 1.8;
}

.ab-ratgeber-content blockquote::before {
  content: """;
  position: absolute;
  top: 4px;
  left: 12px;
  font-family: var(--font-great-vibes);
  font-size: 3rem;
  color: var(--ab-gold);
  opacity: 0.5;
}

.ab-ratgeber-content blockquote p {
  margin: 0;
}

.ab-ratgeber-content blockquote footer {
  margin-top: 12px;
  font-style: normal;
  color: var(--ab-primary);
  font-size: 0.95rem;
  font-weight: 600;
}

.ab-ratgeber-content blockquote footer::before {
  content: "— ";
}

/* Lists */
.ab-ratgeber-content ul,
.ab-ratgeber-content ol {
  margin: 24px 0;
  padding-left: 28px;
  line-height: 1.8;
}

.ab-ratgeber-content ul li,
.ab-ratgeber-content ol li {
  margin-bottom: 12px;
}

.ab-ratgeber-content ul {
  list-style: none;
}

.ab-ratgeber-content ul li::before {
  content: "\f415";
  font-family: "bootstrap-icons" !important;
  color: var(--ab-primary);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1.5em;
  margin-right: 0.5em;
  text-align: right;
}

.ab-ratgeber-content ol {
  list-style: decimal;
}

.ab-ratgeber-content ol li::marker {
  color: var(--ab-primary);
  font-weight: 600;
}

/* Links */
.ab-ratgeber-content a {
  color: var(--ab-primary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: var(--ab-transition);
}

.ab-ratgeber-content a:hover,
.ab-ratgeber-content a:focus {
  border-bottom-color: var(--ab-primary);
  outline: none;
}

/* Tables */
.ab-ratgeber-comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 0.95rem;
}

@media (max-width: 576px) {
  .ab-ratgeber-comparison-table {
    font-size: 0.85rem;
  }
}

.ab-ratgeber-comparison-table th {
  background: var(--ab-primary);
  color: #ffffff;
  padding: 16px;
  text-align: left;
  font-weight: 600;
  font-family: var(--font-jost);
}

.ab-ratgeber-comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--ab-border-light);
}

.ab-ratgeber-comparison-table tbody tr:nth-child(odd) {
  background: var(--ab-light-gray);
}

.ab-ratgeber-comparison-table tbody tr:hover {
  background: rgba(176, 141, 110, 0.05);
}

/* ============================================================================
   4. INTERACTIVE CONTENT ELEMENTS
   ============================================================================ */

/* Checklist */
.ab-checklist {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.ab-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 8px;
  background: var(--ab-cream);
  border-radius: 6px;
  border-left: 3px solid var(--ab-primary);
  transition: var(--ab-transition);
  cursor: pointer;
  font-family: var(--font-montserrat);
}

.ab-checklist li:hover {
  background: #f5f2f0;
  border-left-color: var(--ab-gold);
}

.ab-checklist input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--ab-primary);
  border-radius: 4px;
  cursor: pointer;
  background: #ffffff;
  transition: var(--ab-transition);
  margin-top: 2px;
}

.ab-checklist input[type="checkbox"]:checked {
  background: var(--ab-primary);
  border-color: var(--ab-primary);
  position: relative;
}

.ab-checklist input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  margin-left: 3px;
  margin-top: -2px;
}

.ab-checklist input[type="checkbox"]:focus {
  outline: 2px solid rgba(176, 141, 110, 0.3);
  outline-offset: 2px;
}

.ab-checklist-text {
  flex: 1;
}

.ab-checklist input[type="checkbox"]:checked ~ .ab-checklist-text {
  text-decoration: line-through;
  color: var(--ab-medium-gray);
}

/* Tip Box */
.ab-tip-box,
.ab-warning-box,
.ab-info-box {
  padding: 20px 24px;
  margin: 28px 0;
  border-radius: 8px;
  border-left: 4px solid var(--ab-gold);
  background: var(--ab-cream);
  font-family: var(--font-montserrat);
}

.ab-tip-box {
  border-left-color: var(--ab-gold);
  background: rgba(201, 169, 110, 0.08);
}

.ab-tip-box::before {
  content: "\f47b";
  font-family: "bootstrap-icons" !important;
  display: block;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.ab-warning-box {
  border-left-color: #d9534f;
  background: rgba(217, 83, 79, 0.08);
}

.ab-warning-box::before {
  content: "⚠️";
  display: block;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.ab-info-box {
  border-left-color: #5dade2;
  background: rgba(93, 173, 226, 0.08);
}

.ab-info-box::before {
  content: "ℹ️";
  display: block;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.ab-tip-box strong,
.ab-warning-box strong,
.ab-info-box strong {
  color: var(--ab-dark);
  font-weight: 700;
}

.ab-tip-box p,
.ab-warning-box p,
.ab-info-box p {
  margin: 0;
}

/* Timeline Widget */
.ab-timeline-widget {
  position: relative;
  padding: 24px 0 24px 40px;
  margin: 32px 0;
}

.ab-timeline-item {
  position: relative;
  padding-bottom: 28px;
  margin-bottom: 12px;
}

.ab-timeline-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 3px;
  width: 12px;
  height: 12px;
  background: var(--ab-primary);
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--ab-primary);
}

.ab-timeline-item:last-child::after {
  display: none;
}

.ab-timeline-item::after {
  content: "";
  position: absolute;
  left: -23px;
  top: 20px;
  width: 2px;
  height: calc(100% + 8px);
  background: var(--ab-border-light);
}

.ab-timeline-item strong {
  display: block;
  color: var(--ab-primary);
  font-weight: 700;
  margin-bottom: 4px;
  font-family: var(--font-jost);
}

.ab-timeline-item p {
  margin: 0;
  color: var(--ab-dark);
}

/* Budget Card */
.ab-budget-card {
  background: var(--ab-cream);
  padding: 20px;
  border-radius: 8px;
  margin: 24px 0;
  border-left: 4px solid var(--ab-gold);
}

.ab-budget-range {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--ab-dark);
  font-family: var(--font-jost);
}

.ab-budget-bar {
  height: 6px;
  background: var(--ab-light-gray);
  border-radius: 3px;
  overflow: hidden;
}

.ab-budget-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ab-primary), var(--ab-gold));
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* Quote Highlight */
.ab-quote-highlight {
  background: linear-gradient(135deg, rgba(176, 141, 110, 0.05) 0%, rgba(201, 169, 110, 0.05) 100%);
  padding: 24px;
  border-radius: 8px;
  border-left: 4px solid var(--ab-gold);
  margin: 28px 0;
  font-style: italic;
  color: var(--ab-dark);
  line-height: 1.8;
  font-family: var(--font-montserrat);
}

.ab-quote-highlight::before {
  content: """;
  font-family: var(--font-great-vibes);
  font-size: 2.5rem;
  color: var(--ab-gold);
  opacity: 0.5;
  display: block;
  margin-bottom: -8px;
}

/* Inline Image Gallery */
.ab-image-gallery-inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

@media (max-width: 576px) {
  .ab-image-gallery-inline {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.ab-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1;
  cursor: pointer;
  background: var(--ab-light-gray);
}

.ab-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  margin: 0;
}

.ab-gallery-item:hover img {
  transform: scale(1.08);
}

.ab-gallery-item::after {
  content: "🔍";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.ab-gallery-item:hover::after {
  opacity: 1;
}

/* Save/Bookmark Button */
.ab-save-bookmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--ab-cream);
  border: 2px solid var(--ab-primary);
  color: var(--ab-primary);
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-montserrat);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--ab-transition);
}

.ab-save-bookmark:hover,
.ab-save-bookmark:focus {
  background: var(--ab-primary);
  color: #ffffff;
}

.ab-save-bookmark.saved {
  background: var(--ab-primary);
  color: #ffffff;
}

.ab-save-bookmark::before {
  content: "🔖";
  font-size: 1.1rem;
}

.ab-save-bookmark.saved::before {
  content: "✓";
  font-weight: bold;
}

/* Table of Contents */
.ab-ratgeber-toc {
  background: var(--ab-cream);
  border: 1px solid var(--ab-border-light);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 40px;
  position: sticky;
  top: 80px;
  max-width: 100%;
}

@media (max-width: 768px) {
  .ab-ratgeber-toc {
    position: relative;
    top: 0;
    margin-bottom: 32px;
  }
}

.ab-ratgeber-toc h3 {
  font-family: var(--font-jost);
  font-size: 1.1rem;
  color: var(--ab-dark);
  margin: 0 0 16px 0;
  font-weight: 600;
}

.ab-ratgeber-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ab-ratgeber-toc li {
  margin-bottom: 10px;
}

.ab-ratgeber-toc li ul {
  padding-left: 16px;
  margin-top: 8px;
}

.ab-ratgeber-toc a {
  color: var(--ab-primary);
  text-decoration: none;
  font-family: var(--font-montserrat);
  font-size: 0.95rem;
  transition: var(--ab-transition);
  display: block;
  padding: 4px 0;
}

.ab-ratgeber-toc a:hover,
.ab-ratgeber-toc a:focus {
  color: var(--ab-gold);
  padding-left: 6px;
}

/* TOC Toggle (Mobile) */
.ab-ratgeber-toc-toggle {
  display: none;
  background: var(--ab-primary);
  color: #ffffff;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .ab-ratgeber-toc-toggle {
    display: block;
  }

  .ab-ratgeber-toc:not(.expanded) ul {
    display: none;
  }
}

/* Share Section */
.ab-ratgeber-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0;
  padding: 24px;
  background: var(--ab-cream);
  border-radius: 8px;
  flex-wrap: wrap;
}

@media (max-width: 576px) {
  .ab-ratgeber-share {
    flex-direction: column;
  }
}

.ab-ratgeber-share-label {
  font-family: var(--font-jost);
  font-weight: 600;
  color: var(--ab-dark);
}

.ab-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  background: #ffffff;
  border: 2px solid var(--ab-primary);
  color: var(--ab-primary);
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-montserrat);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--ab-transition);
  text-decoration: none;
}

.ab-share-btn:hover,
.ab-share-btn:focus {
  background: var(--ab-primary);
  color: #ffffff;
}

/* CTA Box */
.ab-ratgeber-cta-box {
  background: linear-gradient(135deg, var(--ab-primary) 0%, var(--ab-gold) 100%);
  color: #ffffff;
  padding: 40px;
  border-radius: 12px;
  margin: 48px 0;
  text-align: center;
  box-shadow: var(--ab-shadow-lg);
}

@media (max-width: 576px) {
  .ab-ratgeber-cta-box {
    padding: 24px;
    margin: 32px 0;
  }
}

.ab-ratgeber-cta-box h3 {
  font-family: var(--font-jost);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: #ffffff;
}

.ab-ratgeber-cta-box p {
  font-family: var(--font-montserrat);
  font-size: 1rem;
  margin: 0 0 24px 0;
  color: rgba(255, 255, 255, 0.95);
}

.ab-cta-btn {
  display: inline-block;
  padding: 12px 32px;
  background: #ffffff;
  color: var(--ab-primary);
  border: none;
  border-radius: 6px;
  font-family: var(--font-jost);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--ab-transition);
  text-decoration: none;
}

.ab-cta-btn:hover,
.ab-cta-btn:focus {
  background: var(--ab-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ============================================================================
   5. RELATED ARTICLES & NAVIGATION
   ============================================================================ */

.ab-ratgeber-related {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid var(--ab-border-light);
}

.ab-ratgeber-related h3 {
  font-family: var(--font-jost);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ab-dark);
  margin-bottom: 32px;
  text-align: center;
}

.ab-ratgeber-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 992px) {
  .ab-ratgeber-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .ab-ratgeber-related-grid {
    grid-template-columns: 1fr;
  }
}

.ab-ratgeber-related-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--ab-shadow-sm);
  transition: var(--ab-transition);
}

.ab-ratgeber-related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ab-shadow-md);
}

.ab-ratgeber-related-card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.ab-ratgeber-related-card-body {
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.ab-ratgeber-related-card h4 {
  font-family: var(--font-jost);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ab-dark);
  margin: 0 0 8px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ab-ratgeber-related-card-link {
  color: var(--ab-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: auto;
  transition: var(--ab-transition);
}

.ab-ratgeber-related-card-link:hover {
  color: var(--ab-gold);
}

/* Back Link */
.ab-ratgeber-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  color: var(--ab-primary);
  text-decoration: none;
  font-family: var(--font-montserrat);
  font-weight: 600;
  transition: var(--ab-transition);
}

.ab-ratgeber-back:hover {
  color: var(--ab-gold);
  transform: translateX(-4px);
}

.ab-ratgeber-back::before {
  content: "←";
  font-size: 1.2rem;
}

/* Previous/Next Navigation */
.ab-ratgeber-prevnext {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid var(--ab-border-light);
}

@media (max-width: 576px) {
  .ab-ratgeber-prevnext {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.ab-prevnext-item {
  padding: 20px;
  background: var(--ab-cream);
  border-radius: 8px;
  text-decoration: none;
  transition: var(--ab-transition);
  border-left: 4px solid var(--ab-primary);
}

.ab-prevnext-item:hover {
  background: #f5f2f0;
  border-left-color: var(--ab-gold);
  transform: translateX(4px);
}

.ab-prevnext-item.next {
  text-align: right;
}

.ab-prevnext-item.next .ab-prevnext-label::before {
  content: "";
}

.ab-prevnext-item.next .ab-prevnext-label::after {
  content: " →";
}

.ab-prevnext-label {
  display: block;
  font-family: var(--font-montserrat);
  font-size: 0.85rem;
  color: var(--ab-medium-gray);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.ab-prevnext-label::before {
  content: "← ";
}

.ab-prevnext-title {
  display: block;
  font-family: var(--font-jost);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ab-dark);
  line-height: 1.4;
}

/* ============================================================================
   6. PRINT STYLES
   ============================================================================ */

@media print {
  .ab-ratgeber-progress,
  .ab-ratgeber-share,
  .ab-ratgeber-cta-box,
  .ab-ratgeber-related,
  .ab-ratgeber-prevnext,
  .ab-save-bookmark,
  .ab-print-hide {
    display: none !important;
  }

  .ab-ratgeber-article {
    max-width: 100%;
    padding: 0;
  }

  .ab-ratgeber-hero {
    margin-left: 0;
  }

  .ab-ratgeber-meta {
    border-bottom: none;
    padding-bottom: 0;
  }

  .ab-ratgeber-content {
    color: #000;
    line-height: 1.6;
  }

  .ab-ratgeber-content a {
    color: #000;
    border-bottom: 1px solid #000;
  }

  .ab-ratgeber-content h2::before {
    display: none;
  }

  .ab-tip-box,
  .ab-warning-box,
  .ab-info-box {
    border: 1px solid #000;
    break-inside: avoid;
  }

  .ab-ratgeber-toc {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* ============================================================================
   7. ANIMATIONS & TRANSITIONS
   ============================================================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.ab-fade-in {
  animation: fadeInUp 0.6s ease-out;
}

.ab-fade-in-stagger {
  animation: fadeInUp 0.6s ease-out;
}

.ab-fade-in-stagger:nth-child(2) {
  animation-delay: 0.1s;
}

.ab-fade-in-stagger:nth-child(3) {
  animation-delay: 0.2s;
}

.ab-fade-in-stagger:nth-child(4) {
  animation-delay: 0.3s;
}

.ab-fade-in-stagger:nth-child(5) {
  animation-delay: 0.4s;
}

.ab-fade-in-stagger:nth-child(6) {
  animation-delay: 0.5s;
}

/* ============================================================================
   8. TOAST NOTIFICATIONS
   ============================================================================ */

.ab-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--ab-dark);
  color: #ffffff;
  padding: 16px 24px;
  border-radius: 8px;
  font-family: var(--font-montserrat);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--ab-shadow-lg);
  z-index: 1000;
  animation: slideInLeft 0.3s ease-out;
  max-width: 300px;
}

@media (max-width: 576px) {
  .ab-toast {
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }
}

.ab-toast.success {
  background: #27ae60;
}

.ab-toast.error {
  background: #d9534f;
}

.ab-toast.info {
  background: var(--ab-primary);
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

.ab-toast.fade-out {
  animation: fadeOut 0.3s ease-out forwards;
}

/* ============================================================================
   9. ACCESSIBILITY
   ============================================================================ */

.ab-ratgeber-article *:focus {
  outline: 2px solid var(--ab-primary);
  outline-offset: 2px;
}

.ab-ratgeber-btn:focus-visible {
  outline: 2px solid var(--ab-primary);
  outline-offset: 2px;
}

.ab-skip-to-main {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--ab-primary);
  color: #ffffff;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 100;
}

.ab-skip-to-main:focus {
  top: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: more) {
  .ab-ratgeber-card {
    border: 2px solid var(--ab-dark);
  }

  .ab-ratgeber-btn {
    border-width: 3px;
  }

  .ab-ratgeber-content a {
    text-decoration: underline;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .ab-ratgeber-card {
    background: #2a2a2a;
  }

  .ab-ratgeber-card h3 {
    color: #f5f5f5;
  }

  .ab-ratgeber-teaser {
    color: #b0b0b0;
  }

  .ab-ratgeber-content {
    color: #f0f0f0;
  }

  .ab-ratgeber-content h2,
  .ab-ratgeber-content h3 {
    color: #ffffff;
  }

  .ab-tip-box,
  .ab-warning-box,
  .ab-info-box {
    background: rgba(255, 255, 255, 0.05);
  }

  .ab-ratgeber-toc {
    background: #2a2a2a;
    border-color: #444;
  }

  .ab-ratgeber-meta {
    border-bottom-color: #444;
  }

  .ab-prevnext-item {
    background: #2a2a2a;
    border-left-color: var(--ab-primary);
  }
}

/* ============================================
   DETAIL PAGE: Hero Image Fix – 4:3 Landscape
   ============================================ */
.ab-ratgeber-article .ab-ratgeber-hero-image {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.ab-ratgeber-article .ab-ratgeber-hero-image img,
.ab-ratgeber-article .ab-ratgeber-hero-image .img-fluid {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Responsive: etwas flacher auf Tablet */
@media (max-width: 768px) {
  .ab-ratgeber-article .ab-ratgeber-hero-image {
    border-radius: 12px;
    margin-bottom: 24px;
    aspect-ratio: 16 / 10;
  }
}

/* Responsive: Mobile – breitere Nutzung */
@media (max-width: 576px) {
  .ab-ratgeber-article .ab-ratgeber-hero-image {
    border-radius: 8px;
    margin-bottom: 20px;
    margin-left: -24px;
    margin-right: -24px;
    width: calc(100% + 48px);
    border-radius: 0;
    aspect-ratio: 16 / 9;
  }
}

/* Content Elements: Abstand nach Hero sicherstellen */
.ab-ratgeber-article .ab-ratgeber-ce {
  position: relative;
  z-index: 1;
}

/* ============================================
   FIX: Ratgeber Grid – Bootstrap row handles layout
   Override CSS Grid to prevent conflict with Bootstrap row
   ============================================ */
.ab-ratgeber-grid {
  display: block !important;
  grid-template-columns: unset !important;
}

/* Ensure card images show properly in Bootstrap columns */
.ab-ratgeber-card-col .ab-ratgeber-card-image-wrapper {
  width: 100%;
  overflow: hidden;
}

.ab-ratgeber-card-col .ab-ratgeber-card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}
