/**
 * Ratgeber Landing Pages CSS
 * Mobile-First Design für:
 * - Ratgeber-Übersichtsseite (/ratgeber/)
 * - Kategorie-Landing-Pages (/ratgeber/:category/)
 */

/* ===== CSS VARIABLES ===== */
:root {
  --ratgeber-primary: #23cfb2;
  --ratgeber-primary-dark: #1db89d;
  --ratgeber-text: #2d3748;
  --ratgeber-text-light: #718096;
  --ratgeber-bg: #F9FAFC;
  --ratgeber-card-bg: #ffffff;
  --ratgeber-border: #e2e8f0;
  --ratgeber-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --ratgeber-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
  --ratgeber-radius: 12px;
  --ratgeber-radius-sm: 8px;
}

/* ===== MOBILE OVERFLOW FIX ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

/* ===== PAGE BACKGROUND ===== */
.ratgeber-landing {
  background-color: var(--ratgeber-bg);
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
}

/* ===== HERO WRAPPER (Edge-to-Edge) ===== */
.ratgeber-hero-wrapper {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, hsl(168 71% 45%) 0%, hsl(173 62% 40%) 100%);
  padding: 0;
  margin: 0;
  width: 100%;
}

/* Dekorative Kreise im Wrapper */
.ratgeber-hero-wrapper::before {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.ratgeber-hero-wrapper::after {
  content: '';
  position: absolute;
  left: -60px;
  bottom: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.ratgeber-hero-wrapper__container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

/* ===== BREADCRUMBS (weiße Schrift auf grünem Hero) ===== */
/* Base styles in /css/components/breadcrumbs.css */
.ratgeber-hero-wrapper .breadcrumbs-item a {
  color: rgba(255, 255, 255, 0.7);
}
.ratgeber-hero-wrapper .breadcrumbs-item a:hover {
  color: #ffffff;
}
.ratgeber-hero-wrapper .breadcrumbs-item--current span {
  color: #ffffff;
}
.ratgeber-hero-wrapper .breadcrumbs-separator {
  color: rgba(255, 255, 255, 0.5);
}

/* ===== LANDING PAGE HERO ===== */
.ratgeber-landing-hero {
  padding: 8px 0 32px;
  text-align: left;
  width: 100%;
}

.ratgeber-landing-hero__title {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 16px;
  line-height: 1.2;
  word-wrap: break-word;
}

.ratgeber-landing-hero__description {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.7;
  max-width: 100%;
  word-wrap: break-word;
}

/* Links im Hero-Text */
.ratgeber-landing-hero__link {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.5);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s ease;
}

.ratgeber-landing-hero__link:hover {
  text-decoration-color: #ffffff;
}

/* ===== SECTION HEADERS ===== */
.ratgeber-section {
  padding: 32px 0;
  width: 100%;
}

.ratgeber-section__header {
  margin-bottom: 24px;
}

.ratgeber-section__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--ratgeber-text);
  margin: 0 0 8px;
}

.ratgeber-section__subtitle {
  font-size: 14px;
  color: var(--ratgeber-text-light);
  margin: 0;
  line-height: 1.5;
  font-weight: 400;
}

/* ===== KATEGORIE-KACHELN GRID ===== */
.kategorien-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
}

.kategorie-kachel {
  display: block;
  text-decoration: none;
  background: var(--ratgeber-card-bg);
  border: 1px solid var(--ratgeber-border);
  border-radius: var(--ratgeber-radius);
  padding: 16px;
  transition: all 0.2s ease;
  min-height: 48px;
  width: 100%;
  min-width: 0;
}

.kategorie-kachel:hover {
  border-color: var(--ratgeber-primary);
  box-shadow: var(--ratgeber-shadow-hover);
  transform: translateY(-2px);
}

.kategorie-kachel__content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.kategorie-kachel__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ratgeber-text);
  margin: 0;
  word-wrap: break-word;
}

.kategorie-kachel__description {
  font-size: 13px;
  color: var(--ratgeber-text-light);
  margin: 0;
  line-height: 1.5;
  font-weight: 400;
  word-wrap: break-word;
}

.kategorie-kachel__meta {
  margin-top: 8px;
}

.kategorie-kachel__count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ratgeber-text-light);
  font-weight: 400;
}

.kategorie-kachel__icon {
  flex-shrink: 0;
  color: var(--ratgeber-primary);
}

/* ===== ARTIKEL-CARDS GRID ===== */
.artikel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
}

.artikel-card {
  display: block;
  text-decoration: none;
  background: var(--ratgeber-card-bg);
  border: 1px solid var(--ratgeber-border);
  border-radius: var(--ratgeber-radius);
  padding: 16px;
  transition: all 0.2s ease;
  width: 100%;
  min-width: 0;
}

.artikel-card:hover {
  border-color: var(--ratgeber-primary);
  box-shadow: var(--ratgeber-shadow-hover);
  transform: translateY(-2px);
}

.artikel-card__content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.artikel-card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ratgeber-text);
  margin: 0;
  line-height: 1.3;
  word-wrap: break-word;
}

.artikel-card__highlight {
  font-size: 13px;
  color: var(--ratgeber-text-light);
  margin: 0;
  line-height: 1.5;
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-wrap: break-word;
}

.artikel-card__divider {
  height: 1px;
  background: var(--ratgeber-border);
  margin: 4px 0;
}

.artikel-card__meta {
  display: flex;
  align-items: center;
}

.artikel-card__reading-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ratgeber-text-light);
  font-weight: 400;
}

.artikel-card__clock-icon {
  flex-shrink: 0;
  color: var(--ratgeber-primary);
}

/* ===== KATEGORIE-ARTIKEL SECTION ===== */
.kategorie-artikel-section {
  padding: 24px 0;
  border-top: 1px solid var(--ratgeber-border);
  width: 100%;
}

.kategorie-artikel-section:first-of-type {
  border-top: none;
}

.kategorie-artikel-header {
  margin-bottom: 16px;
}

.kategorie-artikel-header__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ratgeber-text);
  margin: 0 0 6px;
}

.kategorie-artikel-header__description {
  font-size: 13px;
  color: var(--ratgeber-text-light);
  margin: 0;
  line-height: 1.5;
  font-weight: 400;
}

/* ===== ARTIKEL COUNT HEADER (für Kategorie-LP) ===== */
.artikel-count-header {
  font-size: 16px;
  font-weight: 500;
  color: var(--ratgeber-text);
  margin: 0 0 20px;
}

.artikel-count-header__number {
  color: var(--ratgeber-text);
  font-weight: 600;
}

/* ===== CONTAINER ===== */
.ratgeber-landing-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== TABLET BREAKPOINT (768px+) ===== */
@media (min-width: 768px) {
  .ratgeber-hero-wrapper__container {
    padding: 0 24px;
  }

  .ratgeber-landing-hero {
    padding: 12px 0 40px;
  }

  .ratgeber-landing-hero__title {
    font-size: 32px;
  }

  .ratgeber-landing-hero__description {
    font-size: 16px;
    max-width: 720px;
  }

  .ratgeber-section__title {
    font-size: 22px;
  }

  .kategorien-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .artikel-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .kategorie-kachel {
    padding: 24px;
  }

  .artikel-card {
    padding: 20px;
  }

  .ratgeber-landing-container {
    padding: 0 24px;
  }
}

/* ===== DESKTOP BREAKPOINT (1024px+) ===== */
@media (min-width: 1024px) {
  .ratgeber-hero-wrapper__container {
    padding: 0 40px;
  }

  .ratgeber-landing-hero {
    padding: 16px 0 48px;
  }

  .ratgeber-landing-hero__title {
    font-size: 36px;
  }

  .ratgeber-landing-hero__description {
    font-size: 17px;
    max-width: 900px;
  }

  .ratgeber-section {
    padding: 40px 0;
  }

  .ratgeber-section__title {
    font-size: 24px;
  }

  .kategorien-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .artikel-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .artikel-card {
    padding: 18px;
  }

  .kategorie-kachel__title {
    font-size: 17px;
  }

  .artikel-card__title {
    font-size: 15px;
  }

  .ratgeber-landing-container {
    padding: 0 40px;
  }
}

/* ===== LARGE DESKTOP (1280px+) ===== */
@media (min-width: 1280px) {
  .ratgeber-hero-wrapper__container {
    padding: 0 60px;
  }

  .ratgeber-landing-container {
    padding: 0 60px;
  }
}
