/* ===== 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 */
.templates-section .card-right.two-images {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

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

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

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

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

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

/* Right side: preview thumbnails */
.templates-section .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 */
.templates-section .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) */
.templates-section .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 */
.templates-section .pdf-badge svg {
  margin-top: 6px;
  display: block;
  width: 18px;
  height: 18px;
  fill: #111;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .templates-section .card-right { width: 120px; }
  .templates-section .preview { max-width: 110px; max-height: 90px; }
  .templates-section .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;
}

.lightbox-panel {
  position: relative;
  background: #fff;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.25);
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-body {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.lightbox-img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.lightbox-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: rgba(0, 0, 0, 0.08);
  color: #111;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.18);
}

.lightbox-nav {
  background: rgba(0, 0, 0, 0.15);
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.lightbox-nav:hover {
  background: rgba(0, 0, 0, 0.3);
}

.lightbox-prev {
  margin-right: 4px;
}

.lightbox-next {
  margin-left: 4px;
}

.lightbox-open {
  overflow: hidden;
}

.info-trigger {
  background: none;
  border: none;
  padding: 0;
  margin-right: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.info-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 102px 16px 32px;
  z-index: 60;
}

.info-modal.hidden {
  display: none;
}

.info-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.info-modal-panel {
  position: relative;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #dfe2e7;
  max-width: 780px;
  width: min(72vw, 780px);
  aspect-ratio: 210 / 297;
  max-height: 90vh;
  min-height: 0;
  height: auto;
  overflow: hidden;
  box-shadow: 0 22px 48px rgba(0,0,0,0.28);
  display: flex;
}

.info-modal-content {
  padding: 30px 32px 40px;
  width: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

.info-modal-header {
  margin-bottom: 16px;
}

.info-modal-logo {
  font-size: 17px;
  color: #b21324;
  font-weight: 700;
  margin-bottom: 6px;
}

.info-modal-header h3 {
  margin: 0;
  font-size: 24px;
  color: #222;
  line-height: 1.3;
  font-weight: 800;
}

.info-modal-body {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 26px;
}

.info-modal-body.image-only {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.info-modal-hero-logo {
  align-self: flex-start;
  width: 130px;
  margin-top: 40px;
  margin-bottom: 14px;
}

.info-modal-hero-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.info-modal-image {
  width: 100%;
  max-width: 920px;
  margin-top: 40px;
}

.info-modal-image img {
  width: 100%;
  height: auto;
  display: block;
}

.info-modal-col {
  font-size: 14px;
  color: #2f3034;
  line-height: 1.6;
  padding-right: 6px;
}

.info-modal-col ul {
  margin: 8px 0 10px 18px;
}

.info-modal-col ul li::marker {
  color: #b21324;
}

.info-modal-visual {
  background: #eef1f3;
  border-radius: 6px;
  padding: 16px;
  border: 1px solid #d7dadd;
}

.info-visual-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-modal-visual .info-box {
  border: 1px solid #cfd3d8;
  border-radius: 6px;
  padding: 12px 14px;
  background: #f5f7f9;
  margin-bottom: 12px;
}

.info-box-title {
  font-weight: 700;
  margin-bottom: 8px;
  color: #2a2b2f;
}

.info-box-body {
  font-size: 13px;
  color: #404247;
}

.info-tag {
  display: inline-block;
  background: #fff;
  border: 1px solid #c22e2e;
  color: #c22e2e;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 12px;
  margin-right: 6px;
}

.info-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: auto;
  padding-top: 28px;
  padding-bottom: 14px;
  background: transparent;
}

.info-modal-secondary,
.info-modal-primary {
  position: relative;
  border: none;
  border-radius: 6px;
  padding: 10px 18px 10px 18px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2px;
  cursor: pointer;
  text-decoration: none;
  min-width: 134px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.info-modal-secondary {
  background: #5f5f5f;
}

.info-modal-primary {
  background: #b21324;
}

.info-modal-primary:hover {
  background: #92101d;
}

.info-modal-secondary:hover {
  background: #4d4d4d;
}

.info-modal-secondary::after,
.info-modal-primary::after {
  content: "›";
  font-size: 13px;
  line-height: 1;
}

/* Ensure modal footer buttons match sizing */
.info-modal-footer .product-button,
.info-modal-footer .product-buttonGray {
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2px;
  cursor: pointer;
  text-decoration: none;
  min-width: 134px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 0;
}

.info-modal-footer .product-button {
  background: #b21324;
}

.info-modal-footer .product-buttonGray {
  background: #5f5f5f;
}

.info-modal-footer .product-button::after,
.info-modal-footer .product-buttonGray::after {
  content: "›";
  font-size: 13px;
  line-height: 1;
}

.info-modal-footer .product-button:hover {
  background: #92101d;
}

.info-modal-footer .product-buttonGray:hover {
  background: #4d4d4d;
}

  @media (max-width: 768px) {
  .info-modal-body {
    grid-template-columns: 1fr;
  }

  .info-modal {
    padding-top: 80px;
    align-items: flex-start;
  }
}
.templates-section .section-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #555;
  margin: -4px 0 18px;
}

.templates-section .section-info .info-icon {
  width: 18px;
  height: 18px;
  color: #c22e2e;
  flex-shrink: 0;
}

.templates-section .section-info a {
  color: #111;
  font-weight: 700;
  text-decoration: none;
}

.templates-section .section-info a:hover {
  text-decoration: underline;
  color: #000;
}
