/*
 * Platz für eigene Änderungen direkt als CSS
 * Die hier gemachten Änderungen überschreiben ggfs. andere Styles, da diese Datei als letzte geladen wird.
 */

/* ==== SICHTBARER AKTIV-BEWEIS (nach dem Test entfernen) ====
   Rotes Badge unten rechts auf jeder Seite. Erscheint nur, wenn dieses
   Child-Template aktiv ist. Zurueck auf NOVA => Badge verschwindet. */
body::after {
    content: "\2713  aet_flexrohr_child aktiv";
    position: fixed;
    right: 12px; bottom: 12px; z-index: 99999;
    background: #e2001a; color: #fff;
    font: 600 13px/1 Arial, Helvetica, sans-serif;
    padding: 8px 12px; border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
    pointer-events: none;
}

/* ==========================================================================
   Versandkosten-Service-Übersicht
   ========================================================================== */

.vk-service {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid #d0d7de;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.vk-service-header h2 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  color: #2c3e50;
}

.vk-service-header p {
  color: #666;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.vk-disclaimer {
  background: #fffbe6;
  border-left: 3px solid #f0b400;
  padding: 0.85rem 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #5e4a00;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.vk-disclaimer strong {
  color: #4a3a00;
}

/* === Filter-Buttons === */
.vk-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.vk-filter button {
  background: #fff;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  color: #333;
  transition: background 0.15s, border-color 0.15s;
  font-family: inherit;
}

.vk-filter button:hover {
  background: #f0f4fa;
  border-color: #9aa6b3;
}

.vk-filter button.active {
  background: #2c3e50;
  color: #fff;
  border-color: #2c3e50;
}

.vk-filter button .vk-count {
  opacity: 0.6;
  font-size: 0.8rem;
  margin-left: 0.3rem;
}

/* === Grid und Karten === */
.vk-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.vk-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  overflow: hidden;
}

.vk-card.hidden {
  display: none;
}

.vk-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  cursor: pointer;
  gap: 1rem;
  transition: background 0.15s;
}

.vk-card-header:hover {
  background: #f9fafb;
}

.vk-card-title {
  flex: 1;
  min-width: 0;
}

.vk-card-title h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #2c3e50;
  font-weight: 600;
}

.vk-card-meta {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: #666;
}

.vk-card-price {
  font-size: 0.9rem;
  color: #444;
  font-weight: 500;
  white-space: nowrap;
}

.vk-card-price .vk-price-label {
  font-size: 0.7rem;
  color: #888;
  display: block;
  font-weight: 400;
  margin-bottom: 0.1rem;
}

.vk-card-toggle {
  color: #999;
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.vk-card.open .vk-card-toggle {
  transform: rotate(180deg);
}

.vk-card-body {
  display: none;
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid #f0f0f0;
}

.vk-card.open .vk-card-body {
  display: block;
}

.vk-card-body h4 {
  font-size: 0.85rem;
  color: #555;
  margin: 1rem 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.vk-card-body p {
  color: #555;
  font-size: 0.9rem;
  margin: 0.5rem 0 0;
  line-height: 1.5;
}

/* === Preistabelle === */
.vk-prices {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.vk-prices th, .vk-prices td {
  text-align: left;
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid #f0f0f0;
}

.vk-prices th {
  color: #777;
  font-weight: 500;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: #fafafa;
}

.vk-prices th:last-child {
  text-align: right;
}

.vk-prices td:last-child {
  text-align: right;
  font-weight: 600;
  color: #2c3e50;
  white-space: nowrap;
}

.vk-prices tr:last-child td {
  border-bottom: none;
}

.vk-prices tr:hover {
  background: #f5f9ff;
}

.vk-prices tr:first-child:hover {
  background: #fafafa;
}

/* === Tags für Kundengruppen === */
.vk-tag {
  display: inline-block;
  background: #fff3e0;
  color: #b95400;
  padding: 0.1rem 0.5rem;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.vk-tag.endkunden {
  background: #e8f5e9;
  color: #2e7d32;
}

/* === Mobile-Anpassungen === */
@media (max-width: 600px) {
  .vk-card-header {
    padding: 0.85rem 1rem;
  }
  .vk-card-body {
    padding: 0 1rem 1rem;
  }
  .vk-card-price {
    font-size: 0.82rem;
  }
  .vk-prices th, .vk-prices td {
    padding: 0.4rem 0.5rem;
    font-size: 0.8rem;
  }
}

/* ══════════════════════════════════════════
   Flexrohr Einbauhinweise – Custom CSS
   für JTL Nova Template (Custom CSS Bereich)
   ══════════════════════════════════════════ */

/* Grundgerüst */
.einbau-guide {
  padding: 20px 15px;
  color: #333;
  line-height: 1.7;
  font-size: 15px;
}

/* Überschriften */
.einbau-guide h1 {
  color: #E94700;
  font-size: 26px;
  margin: 0 0 15px 0;
}
.einbau-guide h2 {
  font-size: 20px;
  color: #333;
  margin: 35px 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #eee;
}
.einbau-guide h3 {
  font-size: 17px;
  color: #333;
  margin: 25px 0 10px 0;
}

/* Einleitung */
.einbau-guide .eg-intro {
  border-left: 4px solid #E94700;
  background: #f8f8f8;
  padding: 16px 20px;
  margin-bottom: 30px;
}
.einbau-guide .eg-intro p {
  margin: 0;
}

/* Hinweisboxen (Tipp / Warnung / Gefahr) */
.einbau-guide .eg-box {
  padding: 14px 18px;
  margin: 14px 0;
  border-left-width: 4px;
  border-left-style: solid;
}
.einbau-guide .eg-box p {
  margin: 0;
}
.einbau-guide .eg-box.tip {
  background: #f0fdf4;
  border-left-color: #4fae32;
}
.einbau-guide .eg-box.warning {
  background: #fff7ed;
  border-left-color: #E94700;
}
.einbau-guide .eg-box.danger {
  background: #fef2f2;
  border-left-color: #cf2e2e;
}

/* Listen */
.einbau-guide ul,
.einbau-guide ol {
  padding-left: 22px;
  margin: 10px 0;
}
.einbau-guide li {
  margin-bottom: 8px;
}

/* Bilder nebeneinander (Reklamationsfälle) */
.einbau-guide .eg-images {
  display: flex;
  gap: 16px;
  margin: 16px 0;
}
.einbau-guide .eg-images figure {
  flex: 1;
  margin: 0;
}
.einbau-guide .eg-images img {
  width: 100%;
  height: 420px;
  object-fit: contain;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.einbau-guide .eg-images figcaption {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
  font-style: italic;
}

/* Reklamations-Kästen */
.einbau-guide .eg-case {
  background: #f8f8f8;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 20px;
  margin: 20px 0;
}
.einbau-guide .eg-case-label {
  display: inline-block;
  background: #cf2e2e;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
}

/* Positiv-Beispiel Box */
.einbau-guide .eg-correct {
  margin: 30px 0 20px 0;
  padding: 0;
}
.einbau-guide .eg-correct-label {
  display: block;
  width: fit-content;
  background: #4fae32;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
}
.einbau-guide .eg-correct h3,
.einbau-guide .eg-correct p,
.einbau-guide .eg-correct-label {
  text-align: left;
}
.einbau-guide .eg-single-img {
  margin: 16px auto;
  text-align: center;
}
.einbau-guide .eg-single-img img {
  max-width: 550px !important;
  width: 100% !important;
  height: auto !important;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.einbau-guide .eg-single-img figcaption {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
  font-style: italic;
}

/* Responsiv */
@media (max-width: 600px) {
  .einbau-guide .eg-images {
    flex-direction: column;
  }
  .einbau-guide .eg-images img {
    height: auto;
  }
}

/* ============================================================
   EAG MISSION-ABSATZ 
   Verhalten:
     - "per Mail"    -> IMMER klickbar (PC, Tablet, Mobile)
     - "telefonisch" -> NUR auf Mobile (max. 768px) klickbar
                        Auf PC/Tablet: normaler Text, nicht klickbar
   ============================================================ */
 
.eag-mission {
  font-family: inherit;
  line-height: 1.6;
}
 
.eag-mission-title {
  font-size: 1.4rem;
  color: #2c3e50;
  margin: 0 0 1rem;
}
 
.eag-mission p {
  margin: 0 0 1rem;
  color: #333;
}
 
/* --- Mail-Link: immer klickbar --- */
.eag-mail-link {
  color: #c0392b;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
  white-space: nowrap;
}
.eag-mail-link:hover {
  color: #96281b;
  text-decoration: none;
}
 
/* --- Telefon: Standard (PC/Tablet) = wie normaler Text, NICHT klickbar --- */
.eag-phone-link {
  color: inherit;          /* gleiche Farbe wie Fließtext */
  text-decoration: none;   /* keine Unterstreichung */
  font-weight: inherit;    /* keine Hervorhebung */
  cursor: text;            /* kein Hand-Cursor */
  pointer-events: none;    /* nicht anklickbar auf PC/Tablet */
}
 
/* --- MOBILE (max. 768px): Telefon klickbar + sichtbar als Link --- */
@media (max-width: 768px) {
  .eag-phone-link {
    color: #c0392b;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
    cursor: pointer;
    pointer-events: auto;   /* jetzt anklickbar */
    white-space: nowrap;
  }
  .eag-phone-link:hover {
    color: #96281b;
    text-decoration: none;
  }
}

/* ==== Ende Aktiv-Beweis ==== */
