/* ===== Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue-900: #1a2b3c; /* RAL 5011 Stahlblau */
  --blue-800: #34425d;
  --red: #d10000;
  --text: #f2f3f7;
  --muted: #c9d2e3;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--blue-900);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== Header — 3-Spalten-Layout ===== */
header {
  background: var(--blue-900);
  border-bottom: 4px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.nav {
  display: flex;
  align-items: center;
  padding: 10px 24px;
  max-width: 1500px;
  margin: 0 auto;
  gap: 24px;
}

/* Linke Spalte: Logos (Meisterbetrieb + Spengler) */
.header-logos {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-shrink: 0;
}

.siegel {
  height: 90px !important;
  width: auto !important;
  display: block;
}

/* Mittlere Spalte: Menü (nimmt restlichen Platz, zentriert) */
.nav-links {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 38px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color .2s;
  position: relative;
  padding: 6px 2px;
}

.nav-links a:hover { color: #fff; }

.nav-links a:hover::after,
.nav-links .active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--red);
}

.nav-links .active {
  color: #fff;
  font-weight: 500;
}

/* Rechte Spalte: Fachhandel-Button — prominent, primärer CTA */
.btn-nav {
  background: var(--red);
  color: #fff;
  text-decoration: none;
  padding: 15px 38px;
  border-radius: 26px;
  font-weight: 700;
  text-transform: none;
  font-size: 20px;
  letter-spacing: 1.4px;
  transition: transform .15s, box-shadow .15s, filter .15s;
  box-shadow: 0 2px 12px rgba(209, 0, 0, 0.45);
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-nav:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(209, 0, 0, 0.6);
}

/* ===== Home-Intro (ersetzt Hero) ===== */
.home-intro {
  text-align: center;
  padding: 50px 20px 36px;
  background: var(--blue-900);
  position: relative;
}

.home-intro::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: var(--red);
  margin: 22px auto 0;
  border-radius: 2px;
}

.home-intro-tagline {
  color: var(--red);
  font-size: 20px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 800;
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .home-intro { padding: 40px 16px 28px; }
  .home-intro-tagline { font-size: 15px; letter-spacing: 2px; }
}

/* ===== Fachbereiche (neues Design) ===== */
.fachbereiche {
  max-width: 1200px;
  margin: 50px auto 0;
  padding: 0 20px 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

/* Volle Trennlinie unter den Flipcards (über die ganze Viewport-Breite) */
.fachbereiche::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100vw;
  height: 4px;
  background: var(--red);
}

.fach-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 0;
}

.fach-box {
  background: transparent;
  color: #fff;
  height: 240px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0;
  border-radius: 14px;
}

.fach-logo {
  position: absolute;
  /* echte Mitte zwischen den 2 Kartenreihen: Karten liegen ohne Abstand aneinander,
     -18px kompensiert das untere Container-Padding (36px/2) -> Logo sitzt genau auf der Naht */
  top: calc(50% - 18px);
  left: 50%;
  transform: translate(-45.85%, -50%);
  z-index: 10;
  /* Neues Logo bringt eigenen blauen Hintergrund + roten Rahmen mit —
     daher kein zusätzlicher Container nötig. Dezenter Schatten lässt es plastisch wirken. */
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

.fach-logo img {
  height: 28px;
  width: auto;
  display: block;
}

/* ===== Flip-Effekt ===== */
.flip-card {
  perspective: 1000px;
  height: 240px;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-inner,
.flip-card.flipped .flip-inner {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

/* Drehrichtung pro Spalte:
   linke Karten (Baublick, Bauspengler) drehen nach links,
   rechte Karten (Fachhandel, Abdichter) drehen nach rechts. */
.fach-row .flip-card:first-child:hover .flip-inner,
.fach-row .flip-card:first-child.flipped .flip-inner {
  transform: rotateY(-180deg);
  -webkit-transform: rotateY(-180deg);
}
.fach-row .flip-card:last-child:hover .flip-inner,
.fach-row .flip-card:last-child.flipped .flip-inner {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

.flip-front, .flip-back {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  overflow: hidden;
  text-align: center;
  padding: 0;
  background-size: cover;
  background-position: center;
}

.flip-front {
  font-weight: 700;
  font-size: 18px;
}

.flip-back {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
  font-size: 14px;
  line-height: 1.4;
  color: #fff;
}

/* Kein Blau-Overlay mehr — Fotos direkt auf der Seite. */

/* Titel-Boxen — vollflächiges Website-Blau (kein Foto dahinter sichtbar) */
.fach-title {
  position: absolute;
  font-size: 28px;
  font-weight: 700;
  color: #d10000;              /* Rot */
  background: var(--blue-900); /* deckend — wie aus dem Foto ausgeschnitten */
  padding: 6px 12px;
  border-radius: 0;
  border: none;
  z-index: 2;
}

.fach-title.left  { top: 0; left: 0; border-bottom-right-radius: 14px; }
.fach-title.right { top: 0; right: 0; border-bottom-left-radius: 14px; }
.fach-title.bottom-left  { bottom: 0; left: 0; top: auto; border-top-right-radius: 14px; }
.fach-title.bottom-right { bottom: 0; right: 0; top: auto; border-top-left-radius: 14px; }

/* Rückseiten-Text — gleicher deckender Website-Blauton */
.flip-back p {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  max-width: 70%;
  border-radius: 14px;
  z-index: 2;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.5;
  padding: 10px 14px;
  background: var(--blue-900);
  border-radius: 0;
  border: none;
}

/* ===== Produktlaufband ===== */
.products {
  margin: 70px auto;
  max-width: 1000px;
}

.ticker-wrap {
  overflow: hidden;
}

.ticker {
  display: flex;
  gap: 50px;
  align-items: center;
  animation: scroll 25s linear infinite;
}

.ticker img {
  height: 100px !important;
  width: auto !important;
}


@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Footer ===== */
footer {
  background: var(--blue-900); /* statt var(--blue-800) */
  padding: 40px 20px 20px;
  color: var(--text);
  font-size: 14px;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 30px;
  max-width: 1300px;
  margin: 0 auto;
  align-items: start; /* alle Spalten oben bündig */
}


.footer-col h4 {
  font-size: 16px;
  margin-bottom: 12px;
  color: #fff;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 6px;
}

.footer-col ul li a {
  color: var(--muted);
  text-decoration: none;
  transition: .2s;
}

.footer-col ul li a:hover {
  color: var(--red);
}

.footer-text {
  margin: 12px 0;
  color: var(--muted);
}

.footer-logo {
  height: 60px;
  margin-bottom: 10px;
}

.footer-icons {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.footer-icons img {
  height: 45px !important;   /* zwingen */
  width: auto !important;
  object-fit: contain;
  opacity: 0.9;
}



.map-placeholder {
  width: 100%;
  height: 200px;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 10px;
}


.footer-bottom {
  text-align: center;
  margin-top: 20px;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 10px;
  font-size: 13px;
}

.footer-bottom a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 6px;
  transition: 0.2s;
}

.footer-bottom a:hover {
  color: var(--red);
}


.footer-col a {
  color: #fff; /* E-Mail jetzt weiß */
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--red); /* beim Hovern rot */
}


/* Container rechts für Navigation + Button */
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.product-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--text);
  font-size: 14px;       /* etwas größer */
  margin-top: 12px;
}

.product-item img {
  height: 140px;        /* mehr Höhe */
  width: 180px;         /* mehr Breite */
  object-fit: contain;  /* Bild bleibt proportional */
  transition: transform 0.2s ease;
}

.product-item p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;   /* verhindert Umbruch */
}


.ticker {
  display: flex;
  gap: 100px;           /* größerer Abstand zwischen den Produkten */
  align-items: center;
  animation: scroll 25s linear infinite;
}

/* ===== Kontaktformular ===== */
.contact {
  padding: 60px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-container {
  background: var(--blue-800);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.contact-container h2 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #fff;
}

.contact-container p {
  margin-bottom: 25px;
  color: var(--muted);
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #fff;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  background: #25334e;
  color: #fff;
  font-size: 15px;
  transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
  background: #3a4a6b;
}

.btn-submit {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.btn-submit:hover {
  filter: brightness(0.9);
}

.contact-form select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  background: #25334e;
  color: #fff;
  font-size: 15px;
  transition: 0.3s;
}

.contact-form select:focus {
  outline: none;
  border-color: var(--red);
  background: #3a4a6b;
}

/* ===== Main / Unterseiten-Layout ===== */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

main section {
  margin-bottom: 30px;
}

main h1 {
  font-size: 32px;
  margin-bottom: 10px;
  color: #fff;
}

main h2 {
  font-size: 22px;
  margin: 20px 0 10px;
  color: #fff;
}

main p {
  color: var(--muted);
  margin-bottom: 10px;
}

/* Subhead mit Badge */
.subhead {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.us-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ===== Shop ===== */
.shop-intro {
  background: var(--blue-800);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  border: 1px solid rgba(255,255,255,0.1);
}

.shop-intro p {
  margin-bottom: 6px;
  color: var(--text);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.product {
  background: var(--blue-800);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
}

.product img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #25334e;
}

.product .box {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product h3 {
  font-size: 17px;
  color: #fff;
}

.product .price {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 4px;
}

.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 10px 18px;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: 0.2s;
  align-self: flex-start;
}

.btn:hover {
  filter: brightness(0.9);
}

/* ===== Modal ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal .card {
  background: var(--blue-800);
  border-radius: 12px;
  padding: 30px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  border: 1px solid rgba(255,255,255,0.1);
}

.modal h2 {
  color: #fff;
  margin-bottom: 20px;
}

.modal .close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 28px;
  color: var(--text);
  cursor: pointer;
  line-height: 1;
}

.modal .close:hover {
  color: var(--red);
}

.modal form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal label {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  margin-top: 8px;
}

.modal input,
.modal select,
.modal textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  background: #25334e;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
}

.modal input:focus,
.modal select:focus,
.modal textarea:focus {
  outline: none;
  border-color: var(--red);
}

.modal textarea {
  min-height: 80px;
  resize: vertical;
}

.modal .btn {
  margin-top: 14px;
  align-self: flex-start;
}

/* ===== Widerrufsformular ===== */
main form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 600px;
  margin-top: 20px;
}

main form label {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  margin-top: 8px;
}

main form input,
main form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  background: #25334e;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
}

main form input:focus,
main form textarea:focus {
  outline: none;
  border-color: var(--red);
}

main form textarea {
  min-height: 90px;
  resize: vertical;
}

main form .btn {
  margin-top: 14px;
  align-self: flex-start;
}

/* ===== Minimaler Footer-Wrap (Unterseiten) ===== */
.footer-wrap {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 10px 20px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  /* === MOBILE HEADER ===
     Logos links, Hamburger rechts (Flex-Layout).
     Fachhandel-Button wird per absolute Position GENAU mittig platziert
     — horizontal UND vertikal, egal wie breit Logos/Hamburger sind. */
  .nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    min-height: 64px;
    position: relative;
  }
  .header-logos {
    justify-content: flex-start;
    gap: 6px;
    flex-shrink: 0;
    z-index: 1;
  }
  .btn-nav {
    /* Pixelgenau in der Bildschirm-Mitte, vertikal UND horizontal */
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
  }
  /* Auf Mobile bleibt der Button absolut zentriert — kein Verziehen
     durch Hover/Tap/Focus-Transforms */
  .btn-nav:hover,
  .btn-nav:active,
  .btn-nav:focus,
  .btn-nav:focus-visible {
    transform: translate(-50%, -50%);
  }
  .siegel { height: 44px !important; }
  .fachbereiche { padding: 0 10px 36px; }
  .fach-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .fach-logo {
    position: absolute;
    top: calc(50% - 18px);
    left: 50%;
    transform: translate(-45.85%, -50%);
    margin: 0;
  }
  .fach-logo img {
    height: 20px;
    width: auto;
    display: block;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
}

/* ===========================================================
   ERWEITERUNGEN für neue Seiten
   =========================================================== */

/* ===== Kopierschutz: Selektion verhindern ===== */
img, video {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: auto;
}

body {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Eingabefelder + Textareas dürfen weiter selektierbar bleiben */
input, textarea, select {
  -webkit-user-select: text;
  user-select: text;
}

/* ===== Service-Karten (Leistungen) ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}
.service-card {
  background: var(--blue-800);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  border-color: rgba(209,0,0,0.4);
}
.service-card .card-img {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
}
.service-card .card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-card h3 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 10px;
}
.service-card p {
  color: var(--muted);
  flex: 1;
  margin-bottom: 14px;
}
.service-card .btn {
  align-self: flex-start;
}

/* ===== Service-Detail-Sektion ===== */
.service-detail {
  background: var(--blue-800);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid rgba(255,255,255,0.08);
}
.service-detail h2 {
  color: var(--red);
  font-weight: 800;
  border-bottom: 2px solid var(--red);
  padding-bottom: 10px;
  margin-bottom: 18px;
}
.service-detail .detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}
.service-detail .detail-img {
  width: 100%;
  border-radius: 14px;
  height: 300px;
  background-size: cover;
  background-position: center;
}
.service-detail .price-box {
  background: rgba(0,0,0,0.25);
  padding: 16px;
  border-radius: 6px;
  margin-top: 14px;
  border-left: 3px solid var(--red);
}
.service-detail .price-box p { margin: 4px 0; color: var(--text); font-size: 14px; }

@media (max-width: 768px) {
  .service-detail .detail-grid { grid-template-columns: 1fr; }
  .service-detail .detail-img { height: 220px; }
}

/* ===== Galerie — Kategorie-Karten (Haupt-Navigation) ===== */
.gallery-cats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 0 0 32px;
}
.gallery-cat-card {
  background: var(--blue-800);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 18px 14px;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all .2s;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}
.gallery-cat-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform .2s;
}
.gallery-cat-card:hover {
  background: #3a4a6b;
  transform: translateY(-2px);
}
.gallery-cat-card:hover::before { transform: scaleX(1); }
.gallery-cat-card.active {
  background: var(--blue-900);
  border-color: var(--red);
  color: #fff;
}
.gallery-cat-card.active::before { transform: scaleX(1); height: 3px; }
.gcc-num {
  font-size: 11px;
  color: var(--red);
  font-weight: 600;
  letter-spacing: 2px;
}
.gcc-label {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.gcc-meta {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

@media (max-width: 900px) {
  .gallery-cats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .gallery-cats { grid-template-columns: 1fr; }
}

/* ===== Galerie — Sub-Kategorien (Pills) ===== */
.gallery-subcats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.gallery-sub-btn {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 16px;
  border-radius: 18px;
  cursor: pointer;
  font-size: 13px;
  transition: all .15s;
  font-family: inherit;
}
.gallery-sub-btn:hover { color: #fff; border-color: var(--red); }
.gallery-sub-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  font-weight: 500;
}

/* ===== Galerie — Headline für jede Sub-Sektion ===== */
.gallery-h {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* ===== Galerie — Bildraster (symmetrisch, gleiche Höhe) ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 30px;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s;
  display: block;
}
.gallery-grid img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 14px rgba(0,0,0,0.45);
}

@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 5000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px 60px;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  user-select: none;
  -webkit-user-select: none;
}
.lightbox-caption {
  color: #fff;
  margin-top: 14px;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-align: center;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  color: #fff;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.lightbox-close { top: 20px; right: 20px; font-size: 32px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); font-size: 36px; }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); font-size: 36px; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--red); }

@media (max-width: 600px) {
  .lightbox { padding: 60px 14px; }
  .lightbox-close { width: 40px; height: 40px; top: 14px; right: 14px; }
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; }
}

/* ===== Shop Kategorien ===== */
.shop-categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.shop-categories button {
  background: var(--blue-800);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 16px;
  border-radius: 18px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: 0.2s;
}
.shop-categories button:hover { background: #3a4a6b; }
.shop-categories button.active { background: var(--red); border-color: var(--red); color: #fff; }

.product-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--blue-800);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 30px;
  font-size: 14px;
}
.product-table th,
.product-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: left;
}
.product-table th {
  background: var(--blue-900);
  color: var(--red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
}
.product-table tr:last-child td { border-bottom: none; }
.product-table tr:hover td { background: rgba(255,255,255,0.03); }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}
.badge.lager { background: #2a7d3e; color: #fff; }
.badge.bestellung { background: #c97a00; color: #fff; }
.badge.lf { background: #1e6091; color: #fff; }
.badge.lh { background: #6b2c91; color: #fff; }
.badge.la { background: #4a7a2e; color: #fff; }

/* ===== Rabatt-Tabelle ===== */
.discount-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 30px 0;
}
.discount-card {
  background: var(--blue-800);
  border-radius: 10px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.08);
}
.discount-card h3 {
  color: var(--red);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--red);
}
.discount-card ul { list-style: none; padding: 0; }
.discount-card ul li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--text);
}
.discount-card ul li:last-child { border-bottom: none; }
.discount-card ul li strong { color: var(--red); }

@media (max-width: 768px) {
  .discount-grid { grid-template-columns: 1fr; }
  .service-detail { padding: 18px; }
}

/* ===== Geschützter Bereich Login ===== */
.protected-login {
  max-width: 420px;
  margin: 60px auto;
  background: var(--blue-800);
  padding: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}
.protected-login h2 { color: #fff; margin-bottom: 16px; }
.protected-login p { color: var(--muted); margin-bottom: 24px; }
.protected-login input {
  width: 100%;
  padding: 12px;
  background: var(--blue-900);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 6px;
  margin-bottom: 14px;
  font-size: 15px;
}
.protected-login .error { color: var(--red); min-height: 20px; margin-bottom: 10px; }

/* ===== Quote-Box (Ruskin-Zitat) ===== */
.quote-box {
  background: var(--blue-800);
  border-left: 4px solid var(--red);
  padding: 24px 28px;
  margin: 30px 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
}
.quote-box cite {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  text-align: right;
  font-style: normal;
}

/* ===== Sub-Hero (kleinerer Heroback auf Unterseiten) ===== */
.sub-hero {
  background: var(--blue-800);
  padding: 50px 20px;
  margin-bottom: 30px;
  text-align: center;
  border-bottom: 3px solid var(--red);
}
.sub-hero h1 {
  font-size: 36px;
  color: var(--red);
  font-weight: 800;
  margin-bottom: 8px;
}
.sub-hero p {
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 16px;
}

/* ===== Video-Block ===== */
.video-block {
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  margin: 20px 0;
}
.video-block video {
  width: 100%;
  height: auto;
  display: block;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.video-card {
  background: var(--blue-800);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.video-card video {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #000;
}
.video-card .v-info { padding: 14px; }
.video-card h4 { color: #fff; font-size: 15px; margin-bottom: 4px; }
.video-card p { color: var(--muted); font-size: 13px; margin: 0; }

/* ===== Aufzählungen in services ===== */
.service-detail ul {
  padding-left: 22px;
  color: var(--muted);
}
.service-detail ul li { margin-bottom: 6px; }
.service-detail h3 {
  color: #fff;
  margin: 18px 0 10px;
  font-size: 17px;
}

/* ===== Anker-Sticky offset ===== */
section[id] { scroll-margin-top: 100px; }

/* ============================================================
   Erweiterungen 2026-05 — professional polish
   ============================================================ */

/* ===== Buttons – Secondary Variant ===== */
.btn.btn-secondary,
a.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--red);
}
.btn.btn-secondary:hover,
a.btn-secondary:hover {
  background: var(--red);
  color: #fff;
  filter: none;
}

/* Inline button used inside text/info-boxes */
.btn-inline {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 8px 16px;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 8px;
  transition: filter .2s;
}
.btn-inline:hover { filter: brightness(.9); }

/* ===== Info-Box (replaces price-box) ===== */
.info-box {
  background: rgba(255,255,255,0.04);
  border-left: 3px solid var(--red);
  padding: 18px 22px;
  border-radius: 0 8px 8px 0;
  margin-top: 16px;
}
.info-box p { color: var(--text); margin: 6px 0; }
.info-box .hint {
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
}
.info-box ul {
  margin: 8px 0 8px 18px;
  color: var(--muted);
}
.info-box ul li { margin-bottom: 4px; }

/* ===== Inquiry Banner (Fachhandel hero info) ===== */
.inquiry-banner {
  background: linear-gradient(135deg, var(--blue-800) 0%, #1d2843 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 4px solid var(--red);
  border-radius: 8px;
  padding: 24px 28px;
  margin: 0 0 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.inquiry-banner h3 {
  color: #fff;
  font-size: 17px;
  margin: 0 0 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
}
.inquiry-banner p { color: var(--text); margin: 8px 0; line-height: 1.65; font-size: 14px; }
.inquiry-banner ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 16px;
}
.inquiry-banner ul li {
  color: var(--muted);
  padding: 3px 0 3px 18px;
  position: relative;
  font-size: 14px;
}
.inquiry-banner ul li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: bold;
}
.ib-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

@media (max-width: 768px) {
  .inquiry-banner { padding: 20px; }
}

/* ===== Legend Box ===== */
.legend-box {
  background: var(--blue-800);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 0 0 30px;
}
.legend-box h3 {
  color: #fff;
  font-weight: 800;
  margin-bottom: 12px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 8px;
}
.legend-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.legend-row p { margin: 4px 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.legend-row p.legend-heading {
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.legend-row strong { color: #fff; font-weight: 600; }

/* ===== Shop section consistency ===== */
.shop-section {
  background: var(--blue-800);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 26px 28px;
  margin-bottom: 24px;
}
.shop-section:not(.pdf-section) h2 {
  color: #fff;
  font-weight: 800;
  margin: 0 0 6px;
  font-size: 22px;
  border-bottom: 2px solid var(--red);
  padding-bottom: 8px;
  display: inline-block;
}
.shop-section .section-lead {
  color: var(--muted);
  font-style: italic;
  margin: 8px 0 16px;
  font-size: 14px;
}
.shop-section .section-note {
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}
.shop-section > p {
  color: var(--text);
  margin: 10px 0;
  line-height: 1.7;
}
.shop-section .product-table {
  margin-top: 14px;
  margin-bottom: 6px;
}

/* ===== Call-to-Action card ===== */
.cta-card {
  background: linear-gradient(135deg, var(--red) 0%, #a30000 100%);
  border-radius: 12px;
  padding: 36px 32px;
  margin: 40px 0;
  text-align: center;
  box-shadow: 0 6px 22px rgba(209, 0, 0, 0.25);
}
.cta-card h2 {
  color: #fff;
  margin: 0 0 12px;
  font-size: 26px;
  border-bottom: none;
}
.cta-card p {
  color: #fff;
  margin: 0 auto 20px;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.95;
}
.cta-card .cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-card .btn {
  background: #fff;
  color: var(--red);
}
.cta-card .btn:hover { background: var(--blue-900); color: #fff; filter: none; }
.cta-card .btn.btn-secondary {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
}
.cta-card .btn.btn-secondary:hover {
  background: #fff;
  color: var(--red);
}

/* ===== Legal pages (Datenschutz, Cookie, Impressum) ===== */
.legal-toc {
  background: var(--blue-800);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 22px 28px;
  margin-bottom: 32px;
}
.legal-toc h3 {
  color: var(--red);
  margin-bottom: 12px;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.legal-toc ol {
  margin: 0;
  padding-left: 22px;
  columns: 2;
  column-gap: 30px;
}
.legal-toc ol li {
  color: var(--muted);
  padding: 4px 0;
  line-height: 1.6;
  break-inside: avoid;
}
.legal-toc ol li a {
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}
.legal-toc ol li a:hover { color: var(--red); }

@media (max-width: 700px) { .legal-toc ol { columns: 1; } }

.legal-section {
  background: var(--blue-800);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 26px 30px;
  margin-bottom: 22px;
  scroll-margin-top: 100px;
}
.legal-section h2 {
  color: var(--red);
  font-size: 20px;
  margin: 0 0 14px;
  border-bottom: 2px solid var(--red);
  padding-bottom: 8px;
}
.legal-section p {
  color: var(--text);
  line-height: 1.75;
  margin: 10px 0;
  font-size: 15px;
}
.legal-section ul {
  margin: 10px 0 10px 22px;
  color: var(--text);
}
.legal-section ul li {
  margin-bottom: 6px;
  line-height: 1.7;
}
.legal-section strong { color: #fff; }
.legal-section a {
  color: var(--red);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.legal-section a:hover { color: #fff; }
.legal-section code {
  background: rgba(0,0,0,0.35);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "Consolas", "Monaco", monospace;
  font-size: 13px;
  color: var(--muted);
}

.legal-block {
  background: rgba(0,0,0,0.25);
  padding: 14px 18px;
  border-radius: 6px;
  border-left: 3px solid var(--red);
  color: #fff;
  line-height: 1.8;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  background: rgba(0,0,0,0.18);
  border-radius: 6px;
  overflow: hidden;
  font-size: 14px;
}
.legal-table th,
.legal-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: left;
  vertical-align: top;
}
.legal-table th {
  background: var(--blue-900);
  color: var(--red);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.legal-table tr:last-child td { border-bottom: none; }
.cookie-table td:first-child code { font-weight: 600; }

.legal-date { color: var(--muted); font-size: 13px; }
.legal-disclaimer {
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
  padding: 12px 18px;
  border-left: 2px solid var(--muted);
  margin-top: 24px;
}

/* ===== Sub-hero polish ===== */
.sub-hero {
  background:
    linear-gradient(180deg, rgba(10,26,63,0.0) 0%, rgba(10,26,63,0.4) 100%),
    var(--blue-800);
  padding: 38px 20px 30px;
  margin-bottom: 28px;
  text-align: center;
  border-bottom: 2px solid var(--red);
  position: relative;
}
.sub-hero h1 {
  font-size: 26px;
  color: var(--red);
  margin-bottom: 6px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.sub-hero p {
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.6;
}

/* ===== Main container max-width and breathing room ===== */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* ===== Service-detail polish (improved spacing) ===== */
.service-detail h3 {
  color: #fff;
  margin: 22px 0 10px;
  font-size: 17px;
  letter-spacing: 0.3px;
}
.service-detail p { line-height: 1.7; }
.service-detail .detail-grid {
  gap: 36px;
}

/* ===== Shop intro polish ===== */
.shop-intro {
  background: var(--blue-800);
  padding: 26px 30px;
  border-radius: 10px;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.08);
}
.shop-intro h2 {
  color: #fff;
  font-size: 22px;
  margin: 0 0 12px;
  border-bottom: 2px solid var(--red);
  padding-bottom: 8px;
  display: inline-block;
}
.shop-intro p { margin: 8px 0; color: var(--text); line-height: 1.7; }

/* ===== Subhead (Datenschutz/Impressum) — slight polish ===== */
.subhead { margin-bottom: 24px; }


/* ============================================================
   Compact Legal Footer (für rechtliche & Nebenseiten)
   ============================================================ */
.legal-footer {
  background: var(--blue-900);
  border-top: 3px solid var(--red);
  margin-top: 50px;
  padding: 30px 20px 16px;
  color: var(--muted);
}
.legal-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.legal-footer-col h4 {
  color: var(--red);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.legal-footer-col p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin: 6px 0;
}
.legal-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.legal-footer-col ul li {
  margin-bottom: 5px;
}
.legal-footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: color .15s;
}
.legal-footer-col a:hover {
  color: var(--red);
}
.legal-footer-bottom {
  max-width: 1100px;
  margin: 16px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.5px;
}
@media (max-width: 700px) {
  .legal-footer-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

/* ============================================================
   Widerrufsformular — Form-Section / Fieldset Styling
   ============================================================ */
.widerruf-form {
  max-width: 100%;
  margin-top: 8px;
}
.form-section {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 0 0 18px;
  background: rgba(0,0,0,0.15);
}
.form-section legend {
  color: var(--red);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 2px 12px;
  background: var(--blue-800);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  font-weight: 600;
}
.form-section label {
  display: block;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  margin: 12px 0 6px;
}
.form-section input,
.form-section textarea,
.form-section select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  background: var(--blue-900);
  color: #fff;
  font-size: 14px;
  font-family: inherit;
}
.form-section input:focus,
.form-section textarea:focus,
.form-section select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(209, 0, 0, 0.18);
}
.form-section textarea { min-height: 80px; resize: vertical; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}
.form-hint {
  color: var(--muted);
  font-size: 12px;
  font-style: italic;
  margin-top: 6px;
}
.widerruf-form .btn { margin-top: 10px; }

/* ===== Kundentyp-Auswahl (Privat / Firma) als moderne Karten ===== */
.kundentyp-choice { display: flex; gap: 14px; flex-wrap: wrap; margin: 4px 0 2px; }
.contact-form .kundentyp-card {
  flex: 1 1 210px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 !important;
  padding: 16px 18px;
  border: 2px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  background: var(--blue-900);
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.kundentyp-card:hover { border-color: var(--red); }
.kundentyp-card input {
  position: absolute;
  opacity: 0;
  width: 0 !important;
  height: 0;
  margin: 0;
  padding: 0;
}
.kt-dot {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 2px solid #8391a3;
  position: relative;
  transition: border-color .15s;
}
.kt-text { display: flex; flex-direction: column; line-height: 1.25; }
.kt-title { font-weight: 700; font-size: 16px; color: #fff; }
.kt-sub { font-weight: 400; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.kundentyp-card.selected {
  border-color: var(--red);
  background: rgba(209,0,0,0.10);
  box-shadow: 0 3px 14px rgba(209,0,0,0.20);
}
.kundentyp-card.selected .kt-dot { border-color: var(--red); }
.kundentyp-card.selected .kt-dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--red);
}
.kundentyp-card input:focus-visible + .kt-dot {
  box-shadow: 0 0 0 3px rgba(209,0,0,0.35);
}

/* Pflichtfeld-Sternchen */
.req { color: var(--red); font-weight: 700; margin-left: 2px; }
.form-required-note { font-style: normal; margin: 0 0 16px; }

/* ============================================================
   Legal CTA Card (used on widerrufsrecht to link to formular)
   ============================================================ */
.legal-cta-card {
  background: linear-gradient(135deg, var(--blue-800) 0%, #1d2843 100%);
  border-left: 4px solid var(--red);
  border-radius: 0 12px 12px 0;
  padding: 24px 28px;
  margin: 24px 0;
}
.legal-cta-card h3 {
  color: #fff;
  font-size: 18px;
  margin: 0 0 8px;
}
.legal-cta-card p {
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.6;
}


/* ============================================================
   Kontakt — Quick-Pick Pills (Spezialangebote / häufige Wahl)
   ============================================================ */
.contact-quickpick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 26px;
}
.qp-pill {
  background: var(--blue-900);
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 10px 16px;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.qp-pill:hover {
  background: var(--blue-800);
  color: #fff;
  border-color: var(--red);
}
.qp-pill.active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 2px 8px rgba(209,0,0,0.4);
}

/* Optgroup styling (Browser-Standard ist meist nicht übersteuerbar, aber wir können das System wenigstens an unser Farbschema anpassen wo möglich) */
.contact-form select optgroup {
  background: var(--blue-900);
  color: var(--red);
  font-style: normal;
  font-weight: 600;
}
.contact-form select option {
  background: var(--blue-900);
  color: #fff;
  padding: 4px 0;
}

/* Submit-Button im Kontaktformular prominenter */
.btn-submit {
  background: var(--red);
  color: #fff;
  padding: 14px 32px;
  border: none;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 3px 14px rgba(209,0,0,0.4);
  margin-top: 8px;
  font-family: inherit;
}
.btn-submit:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(209,0,0,0.55);
}


/* ============================================================
   Shop — Overview Cards (Spezialangebote + Produktkategorien)
   ============================================================ */
.shop-overview {
  margin-bottom: 28px;
}
.shop-section-title {
  color: #fff;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  margin: 24px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.shop-section-title:first-child { margin-top: 0; }

.shop-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 12px;
}
.shop-feature-card {
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--blue-800);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 20px 22px 22px 28px;
  text-decoration: none;
  color: var(--text);
  transition: transform .18s, box-shadow .18s, border-color .18s;
  overflow: hidden;
}
.shop-feature-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--red);
  transition: width .18s;
}
.shop-feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(209, 0, 0, 0.4);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}
.shop-feature-card:hover::before { width: 5px; }
.shop-feature-card .sfc-icon { display: none; }
.shop-feature-card h3 {
  color: #fff;
  font-size: 16px;
  margin: 0 0 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
}
.shop-feature-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.shop-feature-card .sfc-arrow {
  display: block;
  margin-top: 14px;
  color: var(--red);
  font-size: 18px;
  font-weight: 400;
  transition: transform .15s;
  letter-spacing: 2px;
}
.shop-feature-card:hover .sfc-arrow { transform: translateX(4px); }

.shop-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}
.shop-cat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--blue-800);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  text-decoration: none;
  transition: all .15s;
}
.shop-cat-card span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.shop-cat-card strong {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}
.shop-cat-card:hover {
  background: #3a4a6b;
  border-color: var(--red);
  transform: translateX(2px);
}

/* === Kategorie-Karten in PDF-Farbtönen (passend zu den Sektionen) === */
.shop-cat-card.cat-grundierung       { background: #DCEEF5; border-color: rgba(20,35,62,0.10); }
.shop-cat-card.cat-abdichtung        { background: #DDEDCC; border-color: rgba(20,35,62,0.10); }
.shop-cat-card.cat-versiegelung      { background: #FAE5D2; border-color: rgba(20,35,62,0.10); }
.shop-cat-card.cat-impraegnierung    { background: #FBF2D2; border-color: rgba(20,35,62,0.10); }
.shop-cat-card.cat-beschichtung      { background: #E8D7E8; border-color: rgba(20,35,62,0.10); }
.shop-cat-card.cat-zubehoer          { background: #EEEEEE; border-color: rgba(20,35,62,0.10); }
.shop-cat-card.cat-zusatzmittel      { background: #FBF6C4; border-color: rgba(20,35,62,0.10); }
.shop-cat-card.cat-klebe-dichtstoffe { background: #F5D6E5; border-color: rgba(20,35,62,0.10); }

/* Auf den Pastell-Karten: dunkler Text, rote Hover-Akzente */
.shop-cat-card.cat-grundierung strong,
.shop-cat-card.cat-abdichtung strong,
.shop-cat-card.cat-versiegelung strong,
.shop-cat-card.cat-impraegnierung strong,
.shop-cat-card.cat-beschichtung strong,
.shop-cat-card.cat-zubehoer strong,
.shop-cat-card.cat-zusatzmittel strong,
.shop-cat-card.cat-klebe-dichtstoffe strong {
  color: #14233e;
  font-weight: 700;
}
.shop-cat-card.cat-grundierung:hover,
.shop-cat-card.cat-abdichtung:hover,
.shop-cat-card.cat-versiegelung:hover,
.shop-cat-card.cat-impraegnierung:hover,
.shop-cat-card.cat-beschichtung:hover,
.shop-cat-card.cat-zubehoer:hover,
.shop-cat-card.cat-zusatzmittel:hover,
.shop-cat-card.cat-klebe-dichtstoffe:hover {
  filter: brightness(0.94);
  border-color: var(--red);
  transform: translateX(2px);
}

/* Group titles dividing Spezialangebote vs Produkte */
.shop-group-title {
  color: var(--red);
  font-size: 26px;
  margin: 36px 0 18px;
  padding: 10px 0;
  border-top: 1px solid var(--red);
  border-bottom: 1px solid var(--red);
  text-align: center;
  letter-spacing: 3px;
  font-weight: 800;
  text-transform: uppercase;
  display: block;
}
.shop-group-title .sgt-num {
  display: none;
}


/* ============================================================
   Drag-and-Drop Bild-Upload (Kontaktformular)
   ============================================================ */
.dropzone {
  border: 2px dashed rgba(255,255,255,0.18);
  border-radius: 8px;
  padding: 28px 20px;
  text-align: center;
  background: rgba(0,0,0,0.18);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone:focus-visible {
  border-color: var(--red);
  outline: none;
}
.dropzone.drag-over {
  border-color: var(--red);
  background: rgba(209, 0, 0, 0.1);
}
.dropzone-headline {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin: 0 0 6px;
}
.dropzone-sub {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 4px;
}
.dropzone-meta {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.5px;
  margin: 4px 0 0;
}
.dropzone-btn {
  background: transparent;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 6px 14px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all .15s;
  margin-left: 2px;
}
.dropzone-btn:hover {
  background: var(--red);
  color: #fff;
}

/* Preview Grid */
.dropzone-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.dropzone-preview:empty { display: none; }
.dp-item {
  position: relative;
  background: var(--blue-900);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
}
.dp-item img {
  width: 100%;
  height: 75%;
  object-fit: cover;
  display: block;
}
.dp-item .dp-name {
  display: block;
  padding: 6px;
  font-size: 11px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dp-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3px 6px;
  background: rgba(0,0,0,0.7);
  color: var(--muted);
  font-size: 10px;
  text-align: center;
  letter-spacing: 0.5px;
}
.dp-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: none;
  background: rgba(0,0,0,0.65);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-family: inherit;
  transition: background .15s;
}
.dp-remove:hover { background: var(--red); }

/* ============================================================
   Form-Status Meldungen
   ============================================================ */
.form-status {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  display: none;
  border-left: 3px solid transparent;
}
.form-status:not(:empty) { display: block; }
.form-status.pending {
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  border-left-color: var(--muted);
}
.form-status.success {
  background: rgba(42, 125, 62, 0.18);
  color: #b7e5c1;
  border-left-color: #2a7d3e;
}
.form-status.error {
  background: rgba(209, 0, 0, 0.12);
  color: #ffb3b3;
  border-left-color: var(--red);
}

/* Honeypot — visuell und semantisch versteckt */
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


/* ============================================================
   Shop — Section mit Bild-Splitlayout (Lagercontainer)
   ============================================================ */
.shop-section-split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: start;
}
.shop-section-split .ssp-text > p:first-child { margin-top: 0; }

.ssp-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--blue-900);
  border: 1px solid rgba(255,255,255,0.06);
}
.ssp-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ssp-img-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.02) 0,
      rgba(255,255,255,0.02) 10px,
      rgba(255,255,255,0.04) 10px,
      rgba(255,255,255,0.04) 20px
    ),
    var(--blue-900);
}
.ssp-img-placeholder span {
  color: #fff;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 6px;
}
.ssp-img-placeholder small {
  color: var(--muted);
  font-size: 11px;
  font-family: "Consolas", "Monaco", monospace;
  letter-spacing: 0;
}
.ssp-img-empty .ssp-img-placeholder { display: flex; }

@media (max-width: 780px) {
  .shop-section-split { grid-template-columns: 1fr; }
}

/* ============================================================
   Shop — Downloads / Datenblätter / Zertifikate
   ============================================================ */
.downloads-mainfile {
  margin: 4px 0 24px;
}

.downloads-details {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  margin-bottom: 12px;
  overflow: hidden;
}
.downloads-details > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 20px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  transition: background .15s;
}
.downloads-details > summary::-webkit-details-marker { display: none; }
.downloads-details > summary::before {
  content: "›";
  color: var(--red);
  font-size: 20px;
  font-weight: 700;
  transition: transform .15s;
  display: inline-block;
  width: 14px;
}
.downloads-details[open] > summary::before {
  transform: rotate(90deg);
}
.downloads-details > summary:hover {
  background: rgba(255,255,255,0.04);
}
.dl-count {
  margin-left: auto;
  background: var(--red);
  color: #fff;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.downloads-list {
  list-style: none;
  padding: 4px 0 16px;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.downloads-list li {
  border-top: 1px solid rgba(255,255,255,0.04);
}
.downloads-list li a {
  display: block;
  padding: 10px 20px 10px 38px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: background .12s, color .12s;
  position: relative;
}
.downloads-list li a::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 12px;
  background:
    linear-gradient(135deg, transparent 50%, var(--red) 50%) right top / 4px 4px no-repeat,
    rgba(255,255,255,0.12);
  border-radius: 1px;
}
.downloads-list li a:hover {
  background: rgba(255,255,255,0.04);
  color: #fff;
}

@media (max-width: 760px) {
  .downloads-list { grid-template-columns: 1fr; }
}

/* ============================================================
   Flipcards — Spezialangebot-Hervorhebung (Lagercontainer + Safe-Türen)
   ============================================================ */
.fach-box.is-special {
  position: relative;
}
.fach-box.is-special .flip-inner {
  box-shadow: 0 0 0 3px var(--red), 0 6px 22px rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  overflow: hidden;
}
.fach-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  background: var(--red);
  color: #fff;
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  border-radius: 12px;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Lagercontainer ohne echtes Foto — neutraler Hintergrund mit Foto-Pfad-Fallback */
.lagercontainer-front {
  background-image: url('images/shop/lagercontainer.jpg');
  background-color: #25334e;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.lagercontainer-front::before {
  /* Falls Foto fehlt: dezentes Karo-Muster als Hintergrund */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 12px,
      rgba(255, 255, 255, 0.05) 12px,
      rgba(255, 255, 255, 0.05) 24px
    );
}
.lagercontainer-front > * {
  position: relative;
  z-index: 1;
}


/* ============================================================
   MOBILE-Anpassungen (sanft, nicht-destruktiv)
   ============================================================ */

/* ===== Tablet & kleiner (≤ 900px) ===== */
@media (max-width: 900px) {
  /* Header-Anpassungen siehe ersten 900px-Block (Hamburger-Menü) */
  .btn-nav { padding: 8px 14px; font-size: 12px; letter-spacing: 0.5px; }

  /* Sub-hero kleiner */
  .sub-hero { padding: 28px 14px 22px; }
  .sub-hero h1 { font-size: 20px; }
  .sub-hero p { font-size: 13px; }

  /* Home-Tagline */
  .home-intro { padding: 36px 16px 28px; }
  .home-intro-tagline { font-size: 16px; letter-spacing: 2px; }

  /* Flipcards: bleiben 2x2 Grid auf Mobile/Tablet, nur kompakter */
  .fach-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .fach-box { height: auto; }
  .flip-card { height: 150px; }
  .fach-box .flip-inner { min-height: 150px; }
  .fach-title { font-size: 20px !important; padding: 4px 10px !important; letter-spacing: 0.5px; }
  .flip-back p { font-size: 12px !important; line-height: 1.35; }
  .fach-badge { font-size: 9px; padding: 3px 10px; }

  /* Spezialangebot-Border auf Mobile dünner */
  .fach-box.is-special .flip-inner {
    box-shadow: 0 0 0 2px var(--red), 0 4px 14px rgba(0, 0, 0, 0.3);
  }

  /* Shop: Quick-Nav-Pills kompakt */
  .shop-categories { gap: 6px; }
  .shop-categories button { padding: 7px 12px; font-size: 12px; }
  .shop-feature-grid { grid-template-columns: 1fr; }
  .shop-cat-grid { grid-template-columns: 1fr 1fr; }

  /* Tabellen: siehe Karten-Layout weiter unten (max-width: 768px) — hier kein overflow-scroll mehr */

  /* Footer einspaltig + zentriert */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 18px;
  }
  .footer-col { text-align: center; }
  .footer-icons { justify-content: center; }
  .footer-bottom { padding: 14px; font-size: 11px; line-height: 1.6; }

  /* Inquiry banner kompakter */
  .inquiry-banner { padding: 20px 18px; }
  .inquiry-banner h3 { font-size: 15px; letter-spacing: 0.8px; }

  /* Form-Sections */
  .form-section { padding: 16px 18px; }
  .form-section legend { font-size: 11px; padding: 2px 10px; }

  /* Quick-Pick Pills */
  .qp-pill { padding: 8px 12px; font-size: 13px; }

  /* Videos */
  .video-grid { grid-template-columns: 1fr; }

  /* Legend einspaltig */
  .legend-row { grid-template-columns: 1fr; gap: 14px; }
}

/* ===== Mobile (≤ 600px) ===== */
@media (max-width: 600px) {
  .siegel { height: 38px !important; }
  .nav { padding: 7px 10px; gap: 6px; min-height: 50px; }
  .btn-nav { padding: 7px 12px; font-size: 11px; letter-spacing: 0.3px; }

  .home-intro { padding: 28px 14px 22px; }
  .home-intro-tagline { font-size: 14px; letter-spacing: 1.5px; }

  /* Flipcards noch kompakter auf schmalen Phones, aber weiterhin 2x2 sichtbar */
  .fachbereiche { padding: 0 4px 36px; }
  .fach-row { gap: 8px; }
  .flip-card { height: 130px; }
  .fach-box .flip-inner { min-height: 130px; }
  .fach-title { font-size: 18px !important; padding: 3px 8px !important; }
  .flip-back p { font-size: 11px !important; line-height: 1.3; }
  .fach-logo img { height: 16px; }

  /* Shop sections kompakt */
  .shop-cat-grid { grid-template-columns: 1fr; }
  .shop-section { padding: 18px 14px; }
  .shop-section h2 { font-size: 17px !important; letter-spacing: 0.8px; }
  .shop-section-title { font-size: 13px; letter-spacing: 1.4px; }
  .shop-group-title { font-size: 20px; letter-spacing: 2px; padding: 8px 0; }

  /* Section split (Container etc.) */
  .shop-section-split { gap: 18px; }

  /* CTA */
  .cta-card { padding: 24px 18px; }
  .cta-card h2 { font-size: 18px !important; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; text-align: center; }

  /* Galerie */
  .gallery-cat-card { padding: 14px 10px; }
  .gcc-num { font-size: 10px; }
  .gcc-label { font-size: 12px; letter-spacing: 0.6px; }
  .gcc-meta { font-size: 10px; }
  .gallery-sub-btn { padding: 6px 12px; font-size: 12px; }

  /* Downloads */
  .downloads-details > summary { padding: 12px 16px; font-size: 13px; letter-spacing: 0.6px; }
  .downloads-list li a { padding: 9px 16px 9px 32px; font-size: 12px; }

  /* Dropzone */
  .dropzone { padding: 22px 16px; }
  .dropzone-headline { font-size: 14px; }
  .dropzone-sub { font-size: 12px; }

  /* Legal footer */
  .legal-footer { padding: 24px 14px 12px; }
  .legal-footer-col h4 { font-size: 11px; letter-spacing: 1.2px; }
  .legal-footer-col p, .legal-footer-col a { font-size: 12px; }

  /* Lightbox */
  .lightbox-close { top: 12px; right: 12px; width: 36px; height: 36px; font-size: 24px; }
  .lightbox-prev, .lightbox-next { width: 36px; height: 36px; font-size: 26px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-caption { font-size: 12px; }
}

/* ===== Sehr klein (≤ 380px) ===== */
@media (max-width: 380px) {
  .siegel { height: 42px !important; }
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 11px; letter-spacing: 0.5px; }
  .btn-nav { padding: 7px 12px; font-size: 11px; }
  .home-intro-tagline { font-size: 13px; }
  .fach-title { font-size: 16px !important; }
}

/* ===== Touch-Geräte: keine Hover-Hochheb-Effekte ===== */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover, .shop-feature-card:hover { transform: none; }
  .gallery-grid img:hover { transform: none; box-shadow: none; }
}


/* ============================================================
   Downloads — Prominente Produktliste & Produktfolder
   ============================================================ */
.downloads-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 16px 0 24px;
}
.dl-main-card {
  display: flex;
  flex-direction: column;
  padding: 18px 22px;
  background: linear-gradient(135deg, var(--blue-800) 0%, #1d2843 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid var(--red);
  border-radius: 6px;
  text-decoration: none;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.dl-main-card:hover {
  transform: translateY(-2px);
  border-left-width: 5px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}
.dl-main-label {
  color: var(--red);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.dl-main-title {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  margin: 6px 0 4px;
}
.dl-main-meta {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 700px) {
  .downloads-main { grid-template-columns: 1fr; }
}

/* ============================================================
   Downloads — Kategorie-Sub-Listen (Grundierungen, Abdichtungen, …)
   ============================================================ */
.dl-cat-grid {
  padding: 8px 16px 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.dl-cat-block {
  background: rgba(0,0,0,0.18);
  border-radius: 6px;
  padding: 10px 14px 14px;
  margin-top: 6px;
}
.dl-cat-label {
  color: var(--red);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dl-cat-block .downloads-list {
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.dl-cat-block .downloads-list li {
  border-top: none;
}
.dl-cat-block .downloads-list li a {
  padding: 7px 14px 7px 30px;
  font-size: 12.5px;
}
.dl-cat-block .downloads-list li a::before {
  left: 14px;
}

@media (max-width: 700px) {
  .dl-cat-block .downloads-list { grid-template-columns: 1fr; }
}


/* ============================================================
   PRODUKTBILD-THUMBNAILS in Shop-Tabellen
   ============================================================ */
.product-table th.col-img,
.product-table td.col-img {
  width: 64px;
  padding: 8px 6px 8px 12px;
}
.product-table th.col-cart,
.product-table td.col-cart {
  width: 110px;
  text-align: right;
  white-space: nowrap;
}

.prod-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: var(--blue-900);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.prod-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.prod-thumb.is-empty {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.02) 0,
      rgba(255,255,255,0.02) 4px,
      rgba(255,255,255,0.05) 4px,
      rgba(255,255,255,0.05) 8px
    ),
    var(--blue-900);
  color: rgba(255,255,255,0.25);
}
.prod-thumb.is-empty svg {
  width: 24px;
  height: 24px;
}

/* Add-to-Cart Button in Tabellen */
.add-to-cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #fff;
  background: var(--red);
  border: 1px solid var(--red);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}
.add-to-cart:hover { background: #ad0000; border-color: #ad0000; }
.add-to-cart:active { transform: scale(0.96); }
.add-to-cart svg { width: 14px; height: 14px; }

/* ============================================================
   SHOP-TABELLEN AUF MOBILE/TABLET → KARTEN-LAYOUT
   Jede Zeile wird zu einer kompakten Karte mit Bild links,
   Produkt-Info Mitte, Anfragen-Button rechts (immer sichtbar).
   ============================================================ */
@media (max-width: 768px) {
  /* Tabellen-Container auflösen, kein horizontales Scrollen mehr */
  .product-table {
    background: transparent;
    border-radius: 0;
    display: block;
    width: 100%;
    margin-bottom: 16px;
    font-size: 13px;
  }
  .product-table thead { display: none; }
  .product-table tbody { display: block; }

  /* Jede Tabellenzeile = eigene Karte */
  .product-table tr {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 2px;
    align-items: center;
    background: var(--blue-800);
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 6px;
    border-bottom: none !important;
  }
  .product-table tr:hover td { background: transparent !important; }

  /* Zellen-Reset */
  .product-table td {
    display: block;
    padding: 0 !important;
    border-bottom: none !important;
    line-height: 1.4;
    white-space: normal;
  }

  /* Bild links, beide Zeilen */
  .product-table td.col-img {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 48px !important;
    align-self: center;
  }
  .prod-thumb { width: 46px !important; height: 46px !important; }

  /* Produktname: oben, mittlere Spalte (volle Breite bis Button) */
  .product-table tbody tr > td:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    font-weight: 600;
    color: #fff;
    font-size: 13.5px;
    word-break: break-word;
  }

  /* Eigenschaft + Verfügbarkeit kombiniert in zweiter Zeile */
  .product-table tbody tr > td:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
    font-size: 11.5px;
    color: var(--muted);
  }
  .product-table tbody tr > td:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
    font-size: 11.5px;
    justify-self: end;
    text-align: right;
  }

  /* Anfragen-Button rechts, beide Zeilen — immer sichtbar */
  .product-table td.col-cart {
    grid-column: 3;
    grid-row: 1 / 3;
    width: auto !important;
    text-align: right;
    align-self: center;
  }
  .add-to-cart {
    padding: 8px 10px;
    font-size: 11px;
    min-height: 36px;
    min-width: 36px;
  }
  .add-to-cart span.lbl { display: none; }
  .add-to-cart svg { width: 16px; height: 16px; }

  /* Badges in Karten-Layout etwas kompakter */
  .product-table .badge { font-size: 10px; padding: 2px 8px; }
}

/* Auf sehr schmalen Phones noch ein bisschen kompakter */
@media (max-width: 380px) {
  .product-table tr {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    column-gap: 8px;
    padding: 7px 8px;
  }
  .prod-thumb { width: 40px !important; height: 40px !important; }
  .product-table tbody tr > td:nth-child(2) { font-size: 13px; }
  .product-table tbody tr > td:nth-child(3),
  .product-table tbody tr > td:nth-child(4) { font-size: 11px; }
}

/* ============================================================
   WARENKORB-WIDGET (Floating Button + Side Panel)
   ============================================================ */
#cart-widget {
  font-family: inherit;
  color: var(--text);
}

.cart-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 6px 22px rgba(0,0,0,0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
}
.cart-toggle:hover { transform: scale(1.05); background: #ad0000; }
.cart-toggle:active { transform: scale(0.96); }

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: var(--blue-900);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 11px;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.cart-toggle:not(.has-items) .cart-count {
  background: #6b7a99;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 22, 38, 0.6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.cart-backdrop.show { opacity: 1; pointer-events: auto; }

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100vh; /* Fallback für ältere Browser */
  height: 100dvh; /* Dynamic Viewport Height — berücksichtigt mobile Browser-Leisten */
  background: var(--blue-800);
  border-left: 1px solid rgba(255,255,255,0.08);
  box-shadow: -8px 0 28px rgba(0,0,0,0.4);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}
.cart-panel.open { transform: translateX(0); }

.cart-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: var(--blue-900);
}
.cart-panel-head h3 {
  margin: 0;
  font-size: 16px;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.cart-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.cart-close:hover { color: var(--red); }

.cart-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.cart-empty {
  text-align: center;
  padding: 40px 12px;
  color: var(--muted);
}
.cart-empty-hint { font-size: 13px; margin-top: 12px; }

.cart-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cart-item {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-name {
  font-size: 14px;
  color: #fff;
  margin-bottom: 8px;
  word-break: break-word;
}
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cart-qty-btn {
  width: 28px;
  height: 28px;
  background: var(--blue-900);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}
.cart-qty-btn:hover { background: #3a4a6b; }
.cart-qty-input {
  width: 48px;
  height: 28px;
  background: var(--blue-900);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  text-align: center;
  font-size: 13px;
  padding: 0 4px;
  /* hide number-input spinners */
  -moz-appearance: textfield;
}
.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.cart-remove {
  margin-left: auto;
  width: 28px;
  height: 28px;
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.cart-remove:hover { color: var(--red); border-color: var(--red); }

.cart-note {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 18px;
  padding: 10px;
  background: rgba(255,255,255,0.03);
  border-radius: 4px;
  line-height: 1.5;
}

.cart-panel-foot {
  padding: 14px 20px 18px;
  /* iPhone-Notch / Home-Indicator: nicht von Button überdecken lassen */
  padding-bottom: max(18px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,255,255,0.1);
  background: var(--blue-900);
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* Schatten nach oben, hebt den Foot visuell vom Scroll-Bereich ab */
  box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.25);
  /* Sticky in der Scroll-Hierarchie — Garantie dass es nicht „verschwindet" */
  position: relative;
  z-index: 2;
}
.cart-clear {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px;
  align-self: center;
}
.cart-clear:hover { color: var(--red); }
.cart-checkout {
  display: block;
  text-align: center;
  padding: 12px 16px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 6px;
  transition: background 0.15s ease;
}
.cart-checkout:hover { background: #ad0000; }

/* Toast */
.cart-toast {
  position: fixed;
  bottom: 96px;
  right: 24px;
  z-index: 10000;
  background: var(--blue-900);
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 13px;
  border: 1px solid var(--red);
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  max-width: 280px;
}
.cart-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Import-Notice auf contact.html */
.cart-import-notice {
  margin: 0 auto 24px;
  max-width: 700px;
  padding: 14px 18px;
  background: rgba(209, 0, 0, 0.08);
  border: 1px solid rgba(209, 0, 0, 0.35);
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}
.cart-import-notice strong { color: #fff; display: block; margin-bottom: 4px; }
.cart-import-clear {
  display: inline-block;
  margin-top: 8px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.cart-import-clear:hover { color: var(--red); }

@media (max-width: 700px) {
  .cart-toggle {
    width: 52px;
    height: 52px;
    bottom: 18px;
    right: 18px;
  }
  .cart-panel {
    width: 100vw;
    border-left: none;
  }
  .cart-toast {
    bottom: 82px;
    right: 18px;
    left: 18px;
    max-width: none;
  }

  /* === Auf Handys: Layout-Wechsel — Foot steht direkt unter Produkten,
         klebt aber beim Scrollen am unteren Rand (sticky bottom) === */
  .cart-panel {
    /* Panel selbst scrollbar machen, statt nur Body */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .cart-panel-body {
    /* Kein flex-grow mehr — Body nimmt nur soviel Platz wie nötig */
    flex: 0 0 auto;
    overflow: visible;
    /* Maske aus früherem Block deaktivieren — bei sticky nicht mehr nötig */
    -webkit-mask-image: none;
            mask-image: none;
  }
  .cart-panel-head {
    /* Titel bleibt beim Scrollen oben sichtbar */
    position: sticky;
    top: 0;
    z-index: 3;
  }
  .cart-panel-foot {
    /* CTA-Bereich klebt beim Scrollen am unteren Bildschirmrand */
    position: sticky;
    bottom: 0;
    padding: 14px 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    gap: 8px;
    box-shadow: 0 -8px 18px rgba(0, 0, 0, 0.35);
  }
  .cart-checkout {
    padding: 16px 18px;
    font-size: 15px;
    letter-spacing: 0.4px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(209, 0, 0, 0.3);
  }
  .cart-clear {
    font-size: 13px;
    padding: 6px;
  }
}

/* ============================================================
   PRODUKTE-FELD im Anfrageformular (kommt aus Warenkorb)
   ============================================================ */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Wenn das Fieldset versteckt ist, nimmt es keinen Platz ein */
.form-section[hidden] { display: none !important; }

/* Produkte-Textarea ist readonly → leicht abgesetzt, damit klar wird:
   nicht direkt editierbar, sondern aus dem Warenkorb */
#c-produkte {
  background: rgba(0, 0, 0, 0.2) !important;
  cursor: default;
  font-family: "Consolas", "Monaco", monospace;
  font-size: 13.5px;
  line-height: 1.55;
}
#c-produkte:focus {
  outline: 1px solid rgba(255,255,255,0.18) !important;
}

/* ============================================================
   MOBILE HAMBURGER-MENÜ
   Hamburger-Button + Slide-Down Drawer (per JS injiziert).
   Auf Desktop unsichtbar.
   ============================================================ */
.mobile-burger,
.mobile-menu-backdrop { display: none; }

@media (max-width: 900px) {
  /* === Hamburger-Button (rechts) === */
  .mobile-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    margin-left: auto;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
    z-index: 1;
    transition: background 0.15s, border-color 0.15s;
  }
  .mobile-burger:hover { background: rgba(255, 255, 255, 0.06); }
  .mobile-burger:active { background: rgba(255, 255, 255, 0.1); }
  .mobile-burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
    transform-origin: center;
  }
  /* X-Animation beim Öffnen */
  .mobile-burger.is-open {
    background: var(--red);
    border-color: var(--red);
  }
  .mobile-burger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .mobile-burger.is-open span:nth-child(2) { opacity: 0; }
  .mobile-burger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* === Nav-Links als Slide-Down-Drawer === */
  .nav-links {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: var(--blue-900);
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    padding: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 4px solid var(--red);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 999;
  }
  .nav-links.mobile-open {
    max-height: 500px;
  }
  .nav-links a {
    display: block;
    padding: 16px 18px;
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
  }
  .nav-links a:last-child { border-bottom: none; }
  /* Unterstreichung-Animation im Drawer ausschalten */
  .nav-links a::after,
  .nav-links a:hover::after,
  .nav-links .active::after {
    display: none !important;
  }
  /* Aktive Seite hervorheben */
  .nav-links a.active,
  .nav-links .active {
    background: rgba(209, 0, 0, 0.12);
    color: #fff;
    border-left: 3px solid var(--red);
    padding-left: 15px;
    font-weight: 500;
  }

  /* === Backdrop hinter Drawer === */
  .mobile-menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .mobile-menu-backdrop.show {
    opacity: 1;
    pointer-events: auto;
  }
}

/* Sehr schmale Phones: Hamburger und Logos noch kompakter */
@media (max-width: 380px) {
  .mobile-burger { width: 36px; height: 36px; gap: 4px; }
  .mobile-burger span { width: 18px; }
  .header-logos { gap: 4px; }
}

/* ============================================================
   PDF-STYLE Produkt-Sektionen (Produktliste-Optik)
   Komplette Sektion in PDF-Farbton, Titel im ursprünglichen Rot.
   ============================================================ */

.pdf-section {
  margin-top: 32px;
  /* Standard shop-section Eigenschaften (border-radius, padding, …) bleiben;
     der dunkelblaue Hintergrund wird unten pro Kategorie überschrieben. */
  border: 1px solid rgba(20, 35, 62, 0.08);
}

/* Titel im Originalstil — rot, roter Unterstrich, inline-block */
.pdf-section-head {
  color: #0a1e2e;
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 800;
  border-bottom: 2px solid var(--red);
  padding: 0 0 8px;
  display: inline-block;
  background: transparent;
  border-radius: 0;
  text-transform: none;
  letter-spacing: normal;
}

/* Tabelle wird transparent — Pastellfarbe kommt aus der Sektion drumherum */
.pdf-section .pdf-table {
  background: transparent !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  box-shadow: none !important;
  border-radius: 0;
  overflow: visible;
}

/* Kopf-Zeile bleibt dunkel, hebt sich klar vom Pastellton ab */
.pdf-table thead th {
  background: var(--blue-900);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.8px;
  border-bottom: 2px solid var(--red);
}

/* Tabellen-Inhalt: dunkler Text auf den hellen Pastell-Tönen */
.pdf-table tbody td {
  color: #14233e;
  border-bottom: 1px solid rgba(20, 35, 62, 0.10);
}
.pdf-table tbody tr:last-child td { border-bottom: none; }
.pdf-table tbody tr:hover td {
  background: rgba(0, 0, 0, 0.04);
}

.pdf-table td.col-prod { width: 22%; min-width: 160px; }
.pdf-table td.col-desc { line-height: 1.5; }
.pdf-table td.col-pack { white-space: nowrap; }
.pdf-table td.col-sol  { width: 60px; }
.pdf-table td.col-stock { width: 120px; }

/* Produktname-Button auf hellem Hintergrund */
.prod-link {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  color: #0a1e2e;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(10, 30, 46, 0.35);
  text-underline-offset: 3px;
  font-family: inherit;
  transition: color .15s, text-decoration-color .15s;
}
.prod-link:hover,
.prod-link:focus-visible {
  color: var(--red);
  text-decoration-color: var(--red);
  outline: none;
}
.prod-link::after {
  content: " ⓘ";
  font-size: 11px;
  opacity: 0.65;
  font-weight: normal;
}

.prod-name-static {
  color: #0a1e2e;
  font-weight: 700;
  font-size: 14px;
}

.pdf-table .muted { color: rgba(10, 30, 46, 0.45); }

/* === Kategorie-Hintergründe: ganze Sektion in PDF-Farbton ===
   Mit zwei Klassen kombiniert, damit es .shop-section's dunkelblauen
   Default-Hintergrund zuverlässig überschreibt. */
.pdf-section.cat-grundierung       { background: #DCEEF5; }
.pdf-section.cat-abdichtung        { background: #DDEDCC; }
.pdf-section.cat-versiegelung      { background: #FAE5D2; }
.pdf-section.cat-impraegnierung    { background: #FBF2D2; }
.pdf-section.cat-beschichtung      { background: #E8D7E8; }
.pdf-section.cat-zubehoer          { background: #EEEEEE; }
.pdf-section.cat-zusatzmittel      { background: #FBF6C4; }
.pdf-section.cat-klebe-dichtstoffe { background: #F5D6E5; }

@media (max-width: 700px) {
  .pdf-section-head { font-size: 18px; }
  .pdf-table td.col-pack,
  .pdf-table td.col-sol { white-space: normal; }
}

/* ============================================================
   FACHHANDEL-PRODUKTLISTE AUF MOBILE
   Saubere Liste: nur Produktname + Anfragen sichtbar.
   Beschreibung/Varianten, Gebinde, Lösemittel und Verfügbarkeit
   wandern ins Popup (Klick/Tap auf die Zeile). Die Zeilen sind
   transparent, damit der Pastellton der Kategorie durchscheint —
   genau wie am PC. Höhere Spezifität + spätere Position
   überschreiben das generische Karten-Layout der anderen Tabellen.
   ============================================================ */
@media (max-width: 768px) {
  .pdf-section .pdf-table { display: block; background: transparent; font-size: 14px; }
  .pdf-section .pdf-table thead { display: none; }
  .pdf-section .pdf-table tbody { display: block; }

  .pdf-section .pdf-table tbody tr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: transparent;           /* Pastellton der Sektion scheint durch */
    border-radius: 0;
    padding: 12px 2px;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(20, 35, 62, 0.14) !important;
    cursor: pointer;
  }
  .pdf-section .pdf-table tbody tr:last-child { border-bottom: none !important; }
  .pdf-section .pdf-table tbody tr:active { background: rgba(0, 0, 0, 0.05); }

  /* Detailspalten am Handy ausblenden — Inhalt steckt jetzt im Popup */
  .pdf-section .pdf-table td.col-desc,
  .pdf-section .pdf-table td.col-pack,
  .pdf-section .pdf-table td.col-sol,
  .pdf-section .pdf-table td.col-stock { display: none !important; }

  /* Produktname links, dunkelblau (gut lesbar auf Pastell) */
  .pdf-section .pdf-table td.col-prod {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    grid-column: auto;
    grid-row: auto;
    padding: 0 !important;
  }
  .pdf-section .pdf-table .prod-link,
  .pdf-section .pdf-table .prod-name-static {
    color: #0a1e2e;
    font-size: 15px;
    font-weight: 700;
    white-space: normal;
    word-break: break-word;
  }
  .pdf-section .pdf-table .prod-name-static::after {
    content: " ⓘ";
    font-size: 11px;
    opacity: 0.55;
    font-weight: normal;
  }

  /* Anfragen-Button rechts */
  .pdf-section .pdf-table td.col-cart {
    display: block;
    flex: 0 0 auto;
    width: auto !important;
    grid-column: auto;
    grid-row: auto;
    text-align: right;
    padding: 0 !important;
  }
}

/* ============================================================
   ÜBERSICHT FACHHANDEL — Seecontainer & Safe-Türen farblich abgesetzt
   Gleiche Optik wie die Produkt-Sektionen: ganze Sektion in einem
   hellen Ton, Tabelle transparent darin, dunkle Kopfzeile.
   Zwei bisher nicht verwendete Töne — kräftiges helles Türkis für die
   Container, helles Orange für die Tresortüren.
   ============================================================ */
#lagercontainer.shop-section { background: var(--blue-800); border: 1px solid rgba(255,255,255,0.08); }
#safetueren.shop-section     { background: var(--blue-800); border: 1px solid rgba(255,255,255,0.08); }

/* Texte dunkel, damit sie auf dem hellen Ton lesbar sind */
#lagercontainer h2,
#safetueren h2 { color: #fff; font-weight: 800; }

#lagercontainer .ssp-text p,
#safetueren .ssp-text p { color: var(--text); }

#lagercontainer .section-note,
#safetueren .section-note { color: var(--muted); }

#lagercontainer .ssp-text a,
#safetueren .ssp-text a { color: var(--red); }

/* Tabelle transparent — der Sektionston scheint durch */
#lagercontainer .product-table,
#safetueren .product-table {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

/* Kopfzeile bleibt dunkelblau mit weißer Schrift + rotem Strich (klare Trennung) */
#lagercontainer .product-table thead th,
#safetueren .product-table thead th {
  background: var(--blue-900);
  color: #fff;
  border-bottom: 2px solid var(--red);
}

/* Tabelleninhalt dunkel auf hellem Ton */
#lagercontainer .product-table tbody td,
#safetueren .product-table tbody td {
  color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
#lagercontainer .product-table tbody tr:last-child td,
#safetueren .product-table tbody tr:last-child td { border-bottom: none; }
#lagercontainer .product-table tbody tr:hover td,
#safetueren .product-table tbody tr:hover td { background: rgba(255,255,255,0.05); }

/* Bild-Rahmen am hellen Ton dezent abgrenzen */
#lagercontainer .ssp-img,
#safetueren .ssp-img { border-color: rgba(20, 35, 62, 0.12); }

/* Safe-Türen-Foto ist hochformatig — höherer Bildausschnitt, damit der
   ganze Tresor sichtbar ist (vorher nur ein schmaler Mittelstreifen). */
#safetueren .ssp-img { aspect-ratio: 4 / 5; }
#safetueren .ssp-img img { object-position: center; }

/* --- Mobile: Zeilen transparent, damit der Ton durchscheint (kein dunkles Kärtchen) --- */
@media (max-width: 768px) {
  #lagercontainer .product-table,
  #safetueren .product-table { background: transparent; }

  #lagercontainer .product-table tbody tr,
  #safetueren .product-table tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 12px;
    background: transparent;
    border-radius: 0;
    padding: 12px 2px;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255,255,255,0.12) !important;
  }
  #lagercontainer .product-table tbody tr:last-child,
  #safetueren .product-table tbody tr:last-child { border-bottom: none !important; }

  /* Text-Spalten links, gestapelt */
  #lagercontainer .product-table tbody td:not(.col-cart),
  #safetueren .product-table tbody td:not(.col-cart) {
    display: block;
    grid-column: 1;
    color: var(--text) !important;
    font-size: 13.5px;
    padding: 0 !important;
    text-align: left !important;
    justify-self: start !important;
  }
  /* Reihenfolge fest verdrahten (überschreibt das generische Karten-Layout) */
  #lagercontainer .product-table tbody tr > td:first-child,
  #safetueren .product-table tbody tr > td:first-child {
    grid-row: 1;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 2px;
  }
  #lagercontainer .product-table tbody tr > td:nth-child(2),
  #safetueren .product-table tbody tr > td:nth-child(2) {
    grid-row: 2;
  }
  /* Verfügbarkeit unten, etwas Abstand nach oben */
  #lagercontainer .product-table tbody tr > td:nth-child(3),
  #safetueren .product-table tbody tr > td:nth-child(3) {
    grid-row: 3;
    margin-top: 6px;
  }

  /* Anfragen-Button rechts, vertikal zentriert über die Zeile */
  #lagercontainer .product-table td.col-cart,
  #safetueren .product-table td.col-cart {
    display: flex;
    grid-column: 2;
    grid-row: 1 / 4;
    align-self: center;
    justify-content: flex-end;
    width: auto !important;
    padding: 0 !important;
  }
}

/* ============================================================
   Produkt-Detail Modal
   ============================================================ */
.prod-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.prod-modal.is-open { display: flex; }

.prod-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 22, 0.7);
  backdrop-filter: blur(2px);
  cursor: pointer;
}

.prod-modal-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: linear-gradient(180deg, #11203a 0%, #0d1a2e 100%);
  color: #fff;
  border: 1px solid rgba(184, 220, 234, 0.18);
  border-radius: 12px;
  padding: 28px 32px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  animation: prodModalIn 0.18s ease-out;
}

@keyframes prodModalIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.prod-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #cdd5e0;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.prod-modal-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
}
.prod-modal-close svg { width: 16px; height: 16px; }

.prod-modal-kicker {
  display: inline-block;
  color: var(--red);
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.prod-modal-title {
  margin: 0 0 14px;
  padding-right: 36px;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  border-bottom: 2px solid var(--red);
  padding-bottom: 10px;
  display: inline-block;
}

.prod-modal-desc {
  margin: 14px 0 22px;
  font-size: 15px;
  line-height: 1.65;
  color: #cdd5e0;
}

/* Spezifikationen im Popup (Varianten / Gebinde / Lösemittel / Verfügbarkeit).
   Nur am Handy sichtbar — am PC stehen diese Infos ohnehin in der Tabelle,
   dort bleibt das Popup unverändert. */
.prod-modal-specs { display: none; margin: 14px 0 4px; }
.prod-modal-specs .pm-spec {
  display: flex;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(184, 220, 234, 0.14);
}
.prod-modal-specs .pm-spec:first-child { border-top: 1px solid rgba(184, 220, 234, 0.14); }
.prod-modal-specs .pm-spec-label {
  flex: 0 0 42%;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #8da0b8;
  font-weight: 600;
}
.prod-modal-specs .pm-spec-val {
  flex: 1 1 auto;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #eef2f7;
  font-weight: 600;
}

@media (max-width: 768px) {
  .prod-modal-specs { display: block; }
}

.prod-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.prod-modal-btn-primary {
  display: inline-flex;
  align-items: center;
}

@media (max-width: 480px) {
  .prod-modal-card { padding: 22px 18px 18px; }
  .prod-modal-title { font-size: 18px; }
  .prod-modal-actions .btn { width: 100%; justify-content: center; }
}

/* ===== Flipcards auf Touch-Geräten: 3D-Drehung BLEIBT (wie am PC). =====
   Problem auf iOS: backface-visibility greift nicht, die abgewandte Seite
   scheint gespiegelt durch. Lösung: die abgewandte Seite per Opacity exakt
   zur Drehungsmitte (0.3s = 90°, Karte hochkant) ausblenden – die Umschaltung
   ist dadurch unsichtbar und die Begriffe stehen seitenrichtig in den Ecken. */
@media (hover: none) {
  .flip-card .flip-front,
  .flip-card .flip-back {
    -webkit-backface-visibility: visible;
    backface-visibility: visible;
    transition: opacity 0s linear 0.3s;
  }
  .flip-card .flip-back  { opacity: 0; }
  .flip-card .flip-front { opacity: 1; }
  .flip-card.flipped .flip-back  { opacity: 1; }
  .flip-card.flipped .flip-front { opacity: 0; }
}


/* =====================================================================
   Cookie-Consent-Banner + Google-Maps-Einwilligungssperre
   ===================================================================== */
#cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  background: var(--blue-900);
  border-top: 4px solid var(--red);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.45);
  transform: translateY(110%);
  transition: transform 0.35s ease;
}
#cookie-consent.show {
  transform: translateY(0);
}
#cookie-consent .cc-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
#cookie-consent .cc-text {
  flex: 1 1 420px;
  min-width: 0;
}
#cookie-consent .cc-text strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: var(--text);
}
#cookie-consent .cc-text p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}
#cookie-consent .cc-text a {
  color: #9DEBDF;
  text-decoration: underline;
}
#cookie-consent .cc-buttons {
  flex: 0 0 auto;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
#cookie-consent .cc-btn {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
#cookie-consent .cc-necessary {
  background: transparent;
  border-color: var(--muted);
  color: var(--text);
}
#cookie-consent .cc-necessary:hover {
  border-color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
#cookie-consent .cc-accept {
  background: var(--red);
  color: #fff;
}
#cookie-consent .cc-accept:hover {
  background: #b00000;
}

/* ---------- Google-Maps Platzhalter (vor Einwilligung) ---------- */
.map-consent {
  position: relative;
  width: 100%;
  min-height: 120px;
}
.map-consent iframe {
  display: block;
  width: 100%;
}
.map-consent-overlay {
  position: absolute;
  inset: 0;
  background: var(--blue-800);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px;
  gap: 10px;
}
.map-consent-overlay p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
  max-width: 340px;
}
.map-consent-btn {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 6px;
  border: 0;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}
.map-consent-btn:hover {
  background: #b00000;
}

@media (max-width: 768px) {
  #cookie-consent .cc-inner {
    padding: 16px;
    gap: 14px;
  }
  #cookie-consent .cc-buttons {
    width: 100%;
  }
  #cookie-consent .cc-btn {
    flex: 1 1 0;
    text-align: center;
  }
}


/* ===== SEO-Text (Startseite) ===== */
.seo-text {
  background: var(--blue-900);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 60px 20px 70px;
}
.seo-text-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.seo-text h1 {
  font-size: 26px;
  line-height: 1.35;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
}
.seo-text h2 {
  font-size: 17px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 800;
  margin: 30px 0 12px;
}
.seo-text p {
  color: var(--muted);
}
.seo-text strong {
  color: var(--text);
  font-weight: 700;
}
.seo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 40px;
}
.seo-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.seo-grid li {
  position: relative;
  color: var(--muted);
  padding: 5px 0 5px 18px;
}
.seo-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}
.seo-area {
  color: var(--muted);
}
.seo-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
@media (max-width: 900px) {
  .seo-text { padding: 40px 16px 50px; }
  .seo-text h1 { font-size: 21px; }
  .seo-text h2 { font-size: 15px; margin: 24px 0 8px; }
  .seo-grid { grid-template-columns: 1fr; gap: 0; }
}


/* ===== Telefon-/E-Mail-Zeile auf der Kontaktseite ===== */
.sub-hero-contact {
  margin-top: 14px;
  font-size: 17px;
  font-weight: 700;
}
.sub-hero-contact a {
  color: var(--red);
  text-decoration: none;
}
.sub-hero-contact a:hover {
  text-decoration: underline;
}
.sub-hero-sep {
  color: var(--muted);
  margin: 0 10px;
  font-weight: 400;
}
@media (max-width: 600px) {
  .sub-hero-contact { font-size: 15px; }
  .sub-hero-sep { display: block; height: 0; overflow: hidden; margin: 2px 0; }
}
