/* ===== HEADER AND NAVIGATION ===== */
header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  padding: 1rem 2rem;
  /* border-bottom: 1px solid #ccc;  optional bottom border */
  position: relative;
}

/* Mobile menu toggle button */
.menu-toggle {
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
  display: block;
}

/* Responsive navigation (hide menu on small screens) */
@media (max-width: 768px) {
  nav ul {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
}

/* ===== FOOTER ===== */
footer {
  width: 100%;
  background-color: #333333;
  color: #ffffff;
  text-align: center;
  height: 3cm;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid #ccc;
}

/* ===== TEMPLATE CARDS (Vorlagen) ===== */

/* Card layout with two images on the right side */
#vorlagen .card-right.two-images {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#vorlagen .card-right.two-images .preview {
  max-width: 78px; /* approx half the width */
  max-height: 100px;
}

/* Template card container */
#vorlagen .template-card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #eee;
  box-shadow: 0 4px 8px rgba(14,20,30,0.05);
  padding: 18px;
  position: relative;
  min-height: 140px;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}

/* Inner container: left (text) + right (preview) */
#vorlagen .card-inner {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* Left side: title and format */
#vorlagen .card-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

#vorlagen .card-left h3 {
  font-size: 14px;
  font-weight: 700;
  color: #222;
  margin-bottom: 6px;
}

#vorlagen .card-left p {
  font-size: 12px;
  color: #666;
  margin: 0;
}

/* Right side: preview thumbnails */
#vorlagen .card-right {
  width: 180px; /* preview section width */
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 6px;
}

/* Single preview thumbnail */
#vorlagen .preview {
  max-width: 160px;
  max-height: 120px;
  object-fit: contain;
  border: 2px solid #f4d6df; /* light pink border */
  background: #fff;
  padding: 6px;
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
}

/* PDF badge (bottom left inside card) */
#vorlagen .pdf-badge {
  position: absolute;
  left: 18px;
  bottom: 14px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #111;
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
}

/* PDF arrow icon */
#vorlagen .pdf-badge svg {
  margin-top: 6px;
  display: block;
  width: 18px;
  height: 18px;
  fill: #111;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  #vorlagen .card-right { width: 120px; }
  #vorlagen .preview { max-width: 110px; max-height: 90px; }
  #vorlagen .template-card { padding: 14px; min-height: 120px; }
}

/* ===== NEW UI COLORS ===== */

/* Default links: black */
nav ul li a,
.sidebar ul li a {
  color: black !important;
  text-decoration: none;
  font-weight: bold;
}

/* Active link: red */
nav ul li a.active,
.sidebar ul li a.active {
  color: #c22e2e !important;
}
