/* ==========================================================================
   1. SIDEBAR KATEGORIE-MENÜ
   ========================================================================== */



/* Header */
.kat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  background: var(--lightblau);
  border-bottom: 1px solid var(--grau);
}

.kat-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--grau);
  text-transform: uppercase;
}

.kat-header span {
  padding: 6px 10px;
  color: var(--weiss);
  background: var(--rot);
  border-radius: 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}








/* Card Container & Nav */
.kat-side-menu {
  width: 100%;
  /* FEHLER BEHOBEN: height: 350px entfernt, damit Links nicht abgeschnitten werden */
  min-height: 350px; 
  display: flex;
  flex-direction: column;
  background: var(--weiss);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0;
  box-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.05),
    0 8px 20px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.35s ease;
}

.kat-side-menu:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.kat-side-menu nav {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.kat-side-menu nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  color: var(--grau);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: 
    background 0.35s ease,
    color 0.35s ease,
    padding-left 0.35s ease;
}


.kat-side-menu nav a:hover {
  background: var(--weiss);
  color: var(--rot);
  padding-left: 18px;
}

/* Name & Icon */
.kat-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  transition: color 0.45s ease;
}

.kat-name i {
  width: 18px;
  text-align: center;
  color: var(--rot);
  transition: color 0.45s ease;
}

.kat-side-menu nav a:hover .kat-name,
.kat-side-menu nav a:hover .kat-name i {
  color: var(--rot);
}

.kat-name::before {
  content: "➜";
  display: inline-block;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.35s ease;
  color: var(--rot);
}

.kat-side-menu nav a:hover .kat-name::before {
  opacity: 1;
  transform: translateX(0);
}

/* Counter Badge */
.kat-side-menu nav strong {
  min-width: 30px;
  text-align: center;
  padding: 4px 8px;
  background: var(--rot);
  color: var(--weiss);
  font-size: 11px;
  font-weight: 700;
  transition: transform 0.3s ease;
}

.kat-side-menu nav a:hover strong {
  transform: scale(1.08);
}


/* ==========================================================================
   2. HAUPTBEREICH: KATEGORIE-LISTE & KARTEN
   ========================================================================== */

.category-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 15px;
}

.category-card {
  display: flex;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  overflow: hidden;
}

/* Bildbereich & Effekte */
.category-image {
  flex: 0 0 180px;
  max-width: 180px;
  overflow: hidden;
  position: relative;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

/* Plus-Zeichen Overlay */
.category-image::after {
  content: "+";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  font-size: 2rem;
  font-weight: bold;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.5);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

/* Hover-Effekte NUR WENN MOUSEOVER DIREKT ÜBER BILD */
.category-image:hover img {
  transform: scale(1.1);
}

.category-image:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Textbereich */
.category-details {
  flex: 1;
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-details h3 {
  margin: 0 0 8px 0;
  font-size: 1.2rem;
}

.category-details h3 a {
  color: #333;
  text-decoration: none;
}

.category-details h3 a:hover {
  color: #db2626;
}

.category-details p {
  margin: 0 0 15px 0;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.4;
}


/* ==========================================================================
   3. KATEGORIE META & READ-MORE BUTTON
   ========================================================================== */

/* FEHLER BEHOBEN: Keyframe startet jetzt flüssig bei translateX(-6px) */
@keyframes category-arrow-move {
  0% {
    transform: translateY(-50%) translateX(-6px);
  }
  100% {
    transform: translateY(-50%) translateX(-1px);
  }
}

.category-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  border-top: 1px solid #f0f0f0;
  padding-top: 10px;
}

.article-count {
  color: #888;
  font-weight: 500;
}

/* Read More Button Styling */
.read-more-btn {
  position: relative;
  color: #a8a9aa;
  text-decoration: none;
  font-weight: bold;
  padding-left: 22px;
  transition: color 0.2s ease;
}

/* Pseudo-Element für ">>" VOR dem Text */
.read-more-btn::before {
  content: ">>";
  position: absolute;
  left: 0;
  top: 50%;
  color: #e32e2e;
  opacity: 0;
  /* Startposition: leicht nach links versetzt und vertikal zentriert */
  transform: translateY(-50%) translateX(-8px); 
  /* Übergang für Opacity UND Transform */
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Hover: Pfeil wird sichtbar und gleitet flüssig nach rechts */
.read-more-btn:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.read-more-btn:hover {
  color: #e32e2e;
}
/* ==========================================================================
   4. RESPONSIVE ANPASSUNGEN (MOBILE)
   ========================================================================== */

@media (max-width: 600px) {
  .category-card {
    flex-direction: column;
  }

  .category-image {
    flex: 1 1 150px;
    max-width: 100%;
    max-height: 180px;
  }
}