/* =====================================================
   hersteller.css
   Gemeinsames CSS für alle 4Networks Hersteller-Landingpages
   (Mikrotik, Ubiquiti UniFi, Teltonika, Patchbox, Cambium).
   Enthält NUR ergänzende Klassen, baut auf dem 4Networks
   Basis-CSS auf (bootstrap-extended.css, style.css, colors.css).
   Einbinden in der jeweiligen Seite VOR header.php:
   <link rel="stylesheet" href="css/hersteller.css">
   ===================================================== */

/* =====================================================
   1. HERO
   ===================================================== */

/* Generischer Hersteller-Hero – dunkler Gradient als Fallback,
   pro Hersteller über .hero-area--<slug> überschreibbar. */
.hero-area-hersteller {
  background-color: #1b2a3b;
  background-size: cover;
  background-position: center center;
  margin-bottom: 0px !important;
}

/* Pro Hersteller: zarte Akzentfarbe im Hero-Gradient.
   Wenn echte Hero-Bilder vorliegen, einfach background-image setzen. */
.hero-area--mikrotik {
  background-image: linear-gradient(
    135deg,
    #0b2a4a 0%,
    #102a44 55%,
    #0e253b 100%
  );
}

.hero-area--unifi {
  background-image: linear-gradient(
    135deg,
    #0b1f3d 0%,
    #0d2a52 55%,
    #0b1f3d 100%
  );
}

.hero-area--teltonika {
  background-image: linear-gradient(
    135deg,
    #0e2a23 0%,
    #103a2c 55%,
    #0c2a23 100%
  );
}

.hero-area--patchbox {
  background-image: linear-gradient(
    135deg,
    #102a1b 0%,
    #1a3a23 55%,
    #0f2a1b 100%
  );
}

.hero-area--cambium {
  background-image: linear-gradient(
    135deg,
    #1b2a3b 0%,
    #1f3147 55%,
    #1b2a3b 100%
  );
}

.hero-area--clavister {
  background-image: linear-gradient(
    135deg,
    #2a0e15 0%,
    #3d1620 55%,
    #2a0e15 100%
  );
}

.hero-area--hikvision {
  background-image: linear-gradient(
    135deg,
    #1c0d0e 0%,
    #3a1316 55%,
    #1c0d0e 100%
  );
}

.hero-area--zyxel {
  background-image: linear-gradient(
    135deg,
    #0c1a2e 0%,
    #142d4a 55%,
    #0c1a2e 100%
  );
}

/* Pill über dem Hero-H1 (gleiche Optik wie auf der ptp700-Seite) */
.hero-badge {
  display: inline-block;
  background: rgba(0, 170, 255, 0.15);
  border: 1px solid rgba(0, 170, 255, 0.4);
  color: #7dd3fc;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 1rem;
}

/* Akzentfarbe der Badge pro Hersteller (optional dezent) */
.hero-badge--green {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: #86efac;
}

.hero-badge--gold {
  background: rgba(189, 137, 87, 0.18);
  border-color: rgba(189, 137, 87, 0.5);
  color: #e9c69b;
}

.hero-badge--red {
  background: rgba(227, 6, 19, 0.15);
  border-color: rgba(227, 6, 19, 0.45);
  color: #f5a5ad;
}

/* Hero-CTA-Buttons */
.btn-hero {
  margin-left: 10px;
}

.btn-hero-sec {
  margin-right: 4px;
}

/* Make inline links stand out from body text. */
main a:not(.btn) {
  color: #0b5aa2;
  font-weight: 500;
  transition: color 0.15s ease;
}

main a:not(.btn):hover,
main a:not(.btn):focus {
  color: #052c50;
  text-decoration: underline;
}

/* Großes Hersteller-Logo im Hero (rechte Spalte).
   Dual-Constraint: max-width UND max-height, damit Logos mit sehr
   unterschiedlichen Seitenverhältnissen (Clavister 11:1, UniFi 3.3:1,
   Ekahau 2.8:1, MikroTik 5.6:1) trotzdem visuell ähnlich groß wirken. */
.hero-hersteller-logo {
  width: auto;
  height: auto;
  max-width: 380px;
  max-height: 120px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  box-shadow:
    0 10px 30px rgba(9, 30, 66, 0.15),
    0 0 36px rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Modifier für besonders schmale / kleine Logos: größere Box. */
.hero-hersteller-logo--mikrotik,
.hero-hersteller-logo--unifi,
.hero-hersteller-logo--clavister,
.hero-hersteller-logo--hikvision {
  max-width: 420px;
  max-height: 140px;
}

/* =====================================================
   2. STAT-/ZAHLENGRID
   ===================================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: #d0dae6;
  border: 1px solid #d0dae6;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.stat-card {
  background: #ffffff;
  padding: 1.6rem 1.1rem;
  text-align: center;
}

.stat-value {
  font-size: 2.1rem;
  font-weight: 700;
  color: #1565a8;
  line-height: 1.1;
  font-family: "Oswald", "Open Sans", Arial, sans-serif;
}

.stat-label {
  font-size: 13px;
  color: #5a6a7a;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  line-height: 1.35;
}

/* =====================================================
   3. PRODUKTKATEGORIEN-CARDS
   ===================================================== */

.produkt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  grid-auto-rows: 1fr; /* alle Zeilen gleich hoch */
  gap: 22px;
  margin-top: 32px;
  align-items: stretch;
}

.produkt-card {
  background: #ffffff;
  border: 1px solid #e3e9ef;
  border-radius: 8px;
  padding: 1.9rem 1.7rem;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
  height: 100%; /* füllt die Grid-Zelle voll aus */
  min-height: 280px;
}

.produkt-card:hover {
  border-color: #2d4154;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 30, 55, 0.08);
}

.produkt-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 9px;
  background: rgba(189, 137, 87, 0.12);
  color: #2d4154;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 1rem;
}

.produkt-card h4 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 700;
  color: #1b2a3b;
  line-height: 1.25;
}

.produkt-card p {
  color: #4a5663;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 1.1rem;
}

.produkt-card .produkt-card-tags {
  list-style: none;
  margin: auto 0 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.produkt-card .produkt-card-tags li {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #5a6a7a;
  background: #f0f4f8;
  border: 1px solid #d8e0e8;
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.4;
}

/* =====================================================
   4. USE-CASE / BRANCHEN-CARDS
   ===================================================== */

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-auto-rows: 1fr;
  gap: 22px;
  margin-top: 32px;
  align-items: stretch;
}

.usecase-card {
  background: #ffffff;
  border: 1px solid #e3e9ef;
  border-left: 4px solid #2d4154;
  border-radius: 6px;
  padding: 1.7rem 1.7rem;
  height: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

.usecase-card h4 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 700;
  color: #1b2a3b;
  line-height: 1.3;
}

.usecase-card p {
  color: #4a5663;
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}

.usecase-card .usecase-icon {
  color: #2d4154;
  font-size: 26px;
  margin-bottom: 0.8rem;
}

/* =====================================================
   5. FAQ-AKKORDEON
   ===================================================== */

.faq-list {
  border: 1px solid #e3e9ef;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  margin-top: 32px;
}

.faq-item {
  border-bottom: 1px solid #e3e9ef;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.4rem;
  font-weight: 600;
  color: #1b2a3b;
  font-size: 14px;
  line-height: 1.4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.15s ease;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  background: #f7f9fc;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: #2d4154;
  margin-left: 1rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item[open] summary {
  background: #f7f9fc;
}

.faq-item .faq-answer {
  padding: 1.25rem 1.4rem;
  color: #4a5663;
  line-height: 1.65;
  font-size: 12px;
}

/* =====================================================
   6. CTA-BANNER
   ===================================================== */

.cta-banner {
  background: linear-gradient(135deg, #1b2a3b 0%, #243a55 100%);
  color: #ffffff;
  padding: 2.5rem 2rem;
  border-radius: 10px;
  margin-top: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.cta-banner h3 {
  margin: 0 0 12px 0;
  color: #ffffff;
  font-size: 1.55rem;
  line-height: 1.3;
}

.cta-banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  line-height: 1.5;
  max-width: 60ch;
  font-weight: 400;
}

.cta-banner .btn {
  margin: 0;
  flex-shrink: 0;
}

/* =====================================================
   7. PARTNER-FACTS (wie ptp700)
   ===================================================== */

.partner-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #d0dae6;
  border: 1px solid #d0dae6;
  border-radius: 6px;
  overflow: hidden;
}

.partner-facts-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-facts-col .partner-facts {
  margin-top: 0;
}

.partner-facts-row {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}

.partner-fact {
  background: #ffffff;
  padding: 1.7rem 1.25rem;
  text-align: center;
}

.partner-fact-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1565a8;
  line-height: 1.2;
  margin-bottom: 7px;
  font-family: "Oswald", "Open Sans", Arial, sans-serif;
}

.partner-fact-label {
  font-size: 13px;
  color: #5a6a7a;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  line-height: 1.35;
}

/* =====================================================
   8. HERSTELLER-LOGO BLOCK
   ===================================================== */

.hersteller-logo {
  width: auto;
  height: auto;
  max-width: 320px;
  max-height: 90px;
  object-fit: contain;
  margin-top: 1rem;
  display: block;
}

/* Modifier für die kleineren / schmaleren Logos in der Partner-Section */
.hersteller-logo--mikrotik,
.hersteller-logo--unifi,
.hersteller-logo--clavister,
.hersteller-logo--hikvision {
  max-width: 360px;
  max-height: 110px;
}

/* =====================================================
   9. CHECKLIST (überarbeitete Variante – falls Basis nicht reicht)
   ===================================================== */

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist > li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 1.1rem;
}

.checklist > li::before {
  content: "\f00c";
  font-family: "FontAwesome";
  position: absolute;
  left: 0;
  top: 2px;
  color: #2d4154;
  font-size: 16px;
}

.checklist > li h4 {
  margin: 0 0 0.25rem 0;
  color: #1b2a3b;
}

.checklist > li p {
  margin: 0;
  color: #4a5663;
  line-height: 1.55;
}

/* =====================================================
   10. RESPONSIVE
   ===================================================== */

@media (max-width: 991px) {
  .cta-banner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 767px) {
  .hero-area--mikrotik,
  .hero-area--unifi,
  .hero-area--teltonika,
  .hero-area--patchbox,
  .hero-area--cambium,
  .hero-area--clavister,
  .hero-area--hikvision,
  .hero-area--zyxel {
    background-position: center top;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .partner-facts {
    grid-template-columns: 1fr 1fr;
    margin-top: 1.5rem;
  }

  /* Badge: kleiner & einzeilig */
  .hero-badge {
    font-size: 10px;
    padding: 4px 12px;
    letter-spacing: 0.07em;
    white-space: nowrap;
  }

  /* Hero H1 mobil */
  .hero-area h1 {
    font-size: 1.6rem !important;
    line-height: 1.3;
  }

  /* Hero Buttons mobil – wie ptp700 */
  .hero-area .align a.btn {
    display: block !important;
    width: 220px !important;
    margin: 6px auto !important;
    text-align: center !important;
    box-sizing: border-box !important;
    float: none !important;
  }

  .btn-hero,
  .btn-hero-sec {
    margin: 6px auto !important;
  }

  .hero-hersteller-logo {
    max-width: 200px;
    margin-top: 1.5rem;
  }

  .cta-banner {
    padding: 1.6rem 1.25rem;
  }
}
