/* ==========================================================================
   Leistungsseiten Styles (Service Detail Pages)
   ========================================================================== */

/* Service Page Hero */
.service-page-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  background-color: #0b151e;
  overflow: hidden;
}

.service-page-hero .hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.service-page-hero .hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.service-page-hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg, 
    rgba(10, 20, 28, 0.88) 0%, 
    rgba(10, 20, 28, 0.72) 55%, 
    rgba(10, 20, 28, 0.35) 100%
  );
}

.service-hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 0;
  max-width: 760px;
  color: #fff;
}

.service-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #4ade80;
  margin-bottom: 16px;
}

.service-page-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}

.service-page-subtitle {
  font-size: 1.2rem;
  line-height: 1.5;
  color: #f1f5f9;
  margin-bottom: 28px;
}

.service-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Service Detail Sections */
.section-service-detail {
  padding: 70px 0;
  background-color: #fff;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}

.service-detail-grid .detail-text {
  order: 1;
}

.service-detail-grid .detail-visual {
  order: 2;
}

.service-detail-grid.reversed {
  grid-template-columns: 1fr 1.2fr;
}

.service-detail-grid.reversed .detail-visual {
  order: 1;
}

.service-detail-grid.reversed .detail-text {
  order: 2;
}

.detail-text h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 16px;
  line-height: 1.25;
}

.detail-text p {
  font-size: 1.02rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 20px;
}

.detail-visual .image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.detail-visual img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.detail-visual:hover img,
.detail-visual .image-frame:hover img,
.detail-visual img:hover {
  transform: scale(1.04);
}

/* Feature Cards Grid on Service Pages */
.section-features-grid {
  padding: 75px 0;
  background-color: #f8fafc;
}

.cards-4-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.feature-box-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.feature-box-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-green);
}

.feature-box-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--primary-green-light);
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 18px;
}

.feature-box-card h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.feature-box-card p {
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* FAQ Section */
.section-faq {
  padding: 70px 0;
  background-color: #fff;
}

.faq-accordion {
  max-width: 860px;
  margin: 35px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--gray-50);
  transition: all var(--transition-fast);
}

.faq-question {
  width: 100%;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  background: none;
  cursor: pointer;
}

.faq-question i {
  color: var(--primary-green);
  font-size: 0.85rem;
  transition: transform 0.25s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px 20px 24px;
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ==========================================================================
   Overview Page: 3 Pillars Grid
   ========================================================================== */
.section-services-overview {
  padding: 80px 0;
  background-color: #ffffff;
}

.overview-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.pillar-card {
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.pillar-card:hover {
  box-shadow: var(--shadow-xl);
  border-color: rgba(21, 139, 40, 0.4);
}

.pillar-image-wrap {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
  background-color: #0b151e;
}

.pillar-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.pillar-image-wrap:hover img,
.pillar-image-wrap img:hover {
  transform: scale(1.05);
}

.pillar-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #4ade80;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.pillar-body {
  padding: 28px 24px 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pillar-body h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 12px;
  line-height: 1.3;
}

.pillar-body p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.55;
  margin-bottom: 20px;
}

.pillar-list {
  list-style: none;
  padding: 0;
  margin: 0 0 26px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pillar-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--gray-700);
  line-height: 1.4;
}

.pillar-list li i {
  color: var(--primary-green);
  font-size: 0.85rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.pillar-action {
  margin-top: auto;
}

.btn-pillar-primary {
  width: 100%;
  padding: 11px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  background-color: var(--primary-green);
  color: #ffffff;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: none;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1;
}

.btn-pillar-primary span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.btn-pillar-primary:hover,
.btn-pillar-primary:focus {
  background-color: var(--primary-green-hover);
  color: #ffffff;
  border-color: transparent;
  box-shadow: none;
}

.btn-pillar-primary:hover .btn-arrow {
  max-width: 20px;
  opacity: 1;
  margin-left: 4px;
  transform: translateX(0);
}

@media (max-width: 992px) {
  .overview-pillars-grid {
    grid-template-columns: 1fr;
    max-width: 580px;
    margin: 40px auto 0 auto;
  }
}

@media (max-width: 900px) {
  .service-page-title {
    font-size: 2.2rem;
  }
  
  .service-detail-grid,
  .service-detail-grid.reversed {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .service-detail-grid .detail-visual,
  .service-detail-grid.reversed .detail-visual {
    order: 1;
  }
  
  .service-detail-grid .detail-text,
  .service-detail-grid.reversed .detail-text {
    order: 2;
  }
  
  .cards-4-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SmartHome Custom Sections (Matching Screenshots)
   ========================================================================== */

/* 1. & 3. SmartHome Story Sections (2-column layout) */
.section-smarthome-story {
  padding: clamp(65px, 6.5vw, 100px) 0;
  background-color: #ffffff;
}

.section-smarthome-story.bg-subtle {
  background-color: #fbfcfd;
}

.smarthome-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5.5vw, 75px);
  align-items: center;
}

/* Reversed variant (Screenshot 3: text on left, image on right) */
.smarthome-story-grid.reversed {
  grid-template-columns: 1fr 1fr;
}

.smarthome-story-grid.reversed .smarthome-story-visual {
  order: 2;
}

.smarthome-story-grid.reversed .smarthome-story-content {
  order: 1;
  text-align: right;
}

/* Image container */
.smarthome-story-visual {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(226, 232, 240, 0.8);
  aspect-ratio: 16 / 10;
  background: #f1f5f9;
}

.smarthome-story-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.smarthome-story-visual:hover .smarthome-story-img,
.smarthome-story-img:hover {
  transform: scale(1.04);
}

/* Typography in story sections */
.smarthome-story-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 2.5vw, 2.35rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.smarthome-story-content p {
  font-size: 1.02rem;
  color: #334155;
  line-height: 1.65;
  margin-bottom: 16px;
}

.smarthome-story-content p strong {
  color: #0f172a;
  font-weight: 700;
}

.smarthome-dash-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 18px 0;
}

.smarthome-dash-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.98rem;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 6px;
}

.smarthome-dash-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: #64748b;
  font-weight: 700;
}

/* Reversed list alignment */
.smarthome-story-grid.reversed .smarthome-dash-list {
  margin: 10px 0 18px auto;
  text-align: right;
}

.smarthome-story-grid.reversed .smarthome-dash-list li {
  padding-left: 0;
  padding-right: 20px;
}

.smarthome-story-grid.reversed .smarthome-dash-list li::before {
  left: auto;
  right: 0;
}

/* 2. 6-Cards Grid Section (Screenshot 2) */
.section-smarthome-categories {
  padding: clamp(55px, 5.5vw, 85px) 0;
  background-color: #ffffff;
}

.smarthome-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 30px);
}

.smarthome-category-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  min-height: 220px;
  background-color: #1e293b;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(226, 232, 240, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.smarthome-category-card:hover {
  box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.22);
}

.smarthome-category-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  z-index: 1;
}

.smarthome-category-card:hover .smarthome-category-card-bg {
  transform: scale(1.05);
}

.smarthome-category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg, 
    rgba(15, 23, 42, 0.15) 0%, 
    rgba(15, 23, 42, 0.35) 40%, 
    rgba(15, 23, 42, 0.86) 100%
  );
  z-index: 2;
  transition: background 0.3s ease;
}

.smarthome-category-card:hover .smarthome-category-overlay {
  background: linear-gradient(
    180deg, 
    rgba(15, 23, 42, 0.1) 0%, 
    rgba(15, 23, 42, 0.3) 35%, 
    rgba(15, 23, 42, 0.92) 100%
  );
}

.smarthome-category-content {
  position: relative;
  z-index: 3;
  padding: clamp(16px, 1.8vw, 22px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.smarthome-category-title {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 1.35vw, 1.35rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  letter-spacing: -0.01em;
}

.btn-category-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
}

.smarthome-category-card:hover .btn-category-action {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.85);
  transform: scale(1.04);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .smarthome-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .smarthome-story-grid,
  .smarthome-story-grid.reversed {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .smarthome-story-grid.reversed .smarthome-story-visual {
    order: 1;
  }
  
  .smarthome-story-grid.reversed .smarthome-story-content {
    order: 2;
    text-align: left;
  }

  .smarthome-story-grid.reversed .smarthome-dash-list {
    margin: 10px 0 18px 0;
    text-align: left;
  }

  .smarthome-story-grid.reversed .smarthome-dash-list li {
    padding-left: 20px;
    padding-right: 0;
  }

  .smarthome-story-grid.reversed .smarthome-dash-list li::before {
    left: 0;
    right: auto;
  }
}

@media (max-width: 600px) {
  .smarthome-categories-grid {
    grid-template-columns: 1fr;
  }
}

/* Modal Card Extensions (Lichtsteuerung Popup) */
.mesh-modal-card.reversed {
  grid-template-columns: 1.18fr 1fr;
}

.mesh-modal-card.text-only {
  grid-template-columns: 1fr;
}

.mesh-modal-card.reversed .modal-card-visual {
  order: 2;
}

.mesh-modal-card.reversed .card-text {
  order: 1;
}

.modal-card-visual {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  aspect-ratio: 16 / 11;
  background: transparent;
}

.modal-card-visual img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  display: block;
}

.mesh-modal-card .card-section-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 18px;
  margin-bottom: 6px;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .mesh-modal-card.reversed {
    grid-template-columns: 1fr;
  }
  .mesh-modal-card.reversed .modal-card-visual {
    order: 1;
  }
  .mesh-modal-card.reversed .card-text {
    order: 2;
  }
}

.modal-bullet-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-bullet-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.6;
}

.modal-bullet-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-green);
  font-weight: 800;
  font-size: 1.1rem;
}

/* ==========================================================================
   Kameras & Alarmanlagen Showcase Styles (DSGVO & Modern UI)
   ========================================================================== */
.section-security-intro {
  padding: clamp(65px, 6.5vw, 90px) 0 32px 0;
  background-color: #f8fafc;
}

.security-intro-banner {
  background: #ffffff;
  border-radius: 26px;
  padding: 44px 48px;
  margin: 0;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
}

.security-intro-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 14px;
  line-height: 1.25;
}

.security-intro-text {
  font-size: 1rem;
  line-height: 1.68;
  color: #334155;
  margin-bottom: 20px;
}

.ki-pill-badge {
  display: none !important;
}

.section-security-showcase {
  padding: 0 0 36px 0;
  background-color: #f8fafc;
}

.security-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 52px;
  align-items: center;
  background: #ffffff;
  padding: 44px 48px;
  border-radius: 26px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
  margin-bottom: 40px;
}

.security-card-box > .security-showcase-grid {
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  border-radius: 0;
  margin-bottom: 0;
}

.security-showcase-grid.reversed {
  grid-template-columns: 1.05fr 1fr;
}

.security-showcase-visual {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

.security-showcase-visual img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.security-showcase-visual:hover img,
.security-showcase-visual img:hover {
  transform: scale(1.04);
}

.security-showcase-content h2,
.security-showcase-content h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 18px;
  line-height: 1.25;
}

.security-showcase-content p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 16px;
}

.security-action-footer {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.btn-security-action {
  display: inline-block;
  background-color: var(--primary-green);
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 13px 28px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-security-action:hover,
.btn-security-action:focus {
  background-color: var(--primary-green-hover) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

@media (max-width: 960px) {
  .security-showcase-grid,
  .security-showcase-grid.reversed {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .security-showcase-grid.reversed .security-showcase-content {
    order: 2;
  }
  
  .security-showcase-grid.reversed .security-showcase-visual {
    order: 1;
  }

  .security-intro-banner {
    padding: 26px 22px;
  }
}

@media (max-width: 640px) {
  .security-showcase-grid {
    padding: 26px 20px;
    gap: 24px;
    border-radius: 20px;
  }
}

/* ==========================================================================
   Kameras Detail Unterseite (videoueberwachung.html) Styles
   ========================================================================== */
.camera-scope-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 24px;
}

.scope-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  background-color: #18982c;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.scope-pill:hover,
.scope-pill:focus-visible {
  background-color: #127722;
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: none;
}

.scope-pill:active {
  transform: translateY(0);
  background-color: #0f621c;
  box-shadow: none;
}

.security-card-box {
  background: #ffffff;
  border-radius: 26px;
  padding: 44px 48px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
  margin-bottom: 40px;
}

.cam-feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
  margin-bottom: 48px;
}

.cam-feature-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 20px;
  text-align: center;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cam-feature-card:hover {
  transform: translateY(-3px);
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  border-color: var(--primary-green);
}

.cam-feature-icon {
  font-size: 2rem;
  color: #0f172a;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  transition: color 0.2s ease;
}

.cam-feature-card:hover .cam-feature-icon {
  color: var(--primary-green);
}

.cam-feature-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

/* Image Collage */
.camera-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 220px 280px;
  gap: 16px;
  margin-bottom: 48px;
}

.camera-photo-tile {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #e2e8f0;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}

.camera-photo-tile.wide {
  grid-column: span 3;
}

.camera-photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.camera-photo-tile:hover img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .camera-photo-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 12px;
  }
  .camera-photo-tile,
  .camera-photo-tile.wide {
    grid-column: span 1;
    aspect-ratio: 1 / 1;
  }
  .camera-photo-tile.wide {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
  }
}

/* 3 Process Steps */
.cam-process-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
  margin-bottom: 48px;
}

.cam-process-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 28px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

.cam-process-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #38a169;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  box-shadow: 0 4px 10px rgba(56, 161, 105, 0.3);
}

.cam-process-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 22px;
}

.cam-process-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cam-process-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.45;
}

.cam-process-list li i {
  color: #475569;
  font-size: 1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.cam-process-list li a {
  color: var(--primary-green);
  text-decoration: underline;
  font-weight: 700;
}

/* Starke Partner Section */
.camera-partners-box {
  background: #ffffff;
  border-radius: 26px;
  padding: 44px 48px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
  margin-bottom: 50px;
}

.camera-partners-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 22px;
}

.camera-partners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.camera-partner-card {
  background: #e2e8f0;
  border-radius: 16px;
  padding: 30px 24px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 160px;
  border: 1px solid #cbd5e1;
  transition: all 0.2s ease;
}

.camera-partner-card:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.partner-logo-area {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  margin-bottom: 16px;
}

.partner-logo-area img {
  max-height: 52px;
  max-width: 180px;
  object-fit: contain;
}

.btn-partner-learn {
  width: 100%;
  display: block;
  text-align: center;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid #0f172a;
  background: #e2e8f0;
  color: #0f172a;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.camera-partner-card:hover .btn-partner-learn,
.btn-partner-learn:hover {
  background: #0f172a;
  color: #ffffff;
}

@media (max-width: 900px) {
  .cam-feature-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cam-process-cards-grid {
    grid-template-columns: 1fr;
  }
  .camera-partners-grid {
    grid-template-columns: 1fr;
  }
  .security-card-box,
  .camera-partners-box {
    padding: 24px 20px;
  }
}

@media (max-width: 600px) {
  .cam-feature-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .cam-feature-card {
    padding: 22px 10px;
  }
  .cam-feature-title {
    font-size: 0.86rem;
    overflow-wrap: break-word;
    hyphens: auto;
  }
}

/* ==========================================================================
   Alarmanlagen Detail Unterseite (alarmanlagen.html) Styles
   ========================================================================== */
.alarm-components-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.alarm-components-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.alarm-component-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.alarm-component-card:hover {
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
  border-color: var(--primary-green);
}

.alarm-comp-img-wrap:hover img,
.alarm-comp-img-wrap img:hover {
  transform: scale(1.04);
}

.alarm-comp-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e2e8f0;
}

.alarm-comp-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}


.alarm-comp-body {
  padding: 22px 20px 24px 20px;
  text-align: center;
}

.alarm-comp-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.alarm-comp-link {
  font-size: 0.88rem;
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.alarm-comp-link:hover {
  color: var(--primary-green);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .alarm-components-grid-3 {
    grid-template-columns: 1fr;
  }
  .alarm-components-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   DGUV 3 Prüfung Page Styles
   ========================================================================== */
.section-dguv-content {
  padding: 75px 0 85px 0;
  background-color: #f8fafc;
}

.dguv-cards-container {
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 1540px;
}

.dguv-block-card {
  background-color: #ffffff;
  border-radius: 26px;
  padding: 44px 48px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
}

.dguv-block-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 20px;
  line-height: 1.25;
}

.dguv-block-p {
  font-size: 0.98rem;
  line-height: 1.68;
  color: #334155;
  margin-bottom: 18px;
}

.dguv-block-p:last-child {
  margin-bottom: 0;
}

/* Split cards with image */
.dguv-split-card {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 44px;
  align-items: center;
}

.dguv-split-card.reversed {
  grid-template-columns: 1.15fr 1fr;
}

.dguv-card-img-wrap {
  border-radius: 18px;
  overflow: hidden;
  height: 100%;
  min-height: 380px;
  max-height: 480px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.dguv-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 18px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.dguv-card-img-wrap:hover img {
  transform: scale(1.04);
}

.dguv-card-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Bullets */
.dguv-bullets-list {
  list-style: disc;
  padding-left: 24px;
  margin: 18px 0 22px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dguv-bullets-list li {
  font-size: 0.98rem;
  line-height: 1.65;
  color: #334155;
}

.dguv-cta-note {
  font-weight: 700;
  font-size: 1.05rem;
  color: #0f172a;
  margin-top: 14px;
}

/* Checklist groups in Block 4 */
.dguv-checklist-groups {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 12px;
}

.dguv-check-cat-title {
  font-weight: 700;
  font-size: 1.02rem;
  color: #0f172a;
  margin-bottom: 4px;
}

.dguv-check-cat-list {
  list-style: none;
  padding-left: 12px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dguv-check-cat-list li {
  font-size: 0.94rem;
  color: #475569;
  line-height: 1.45;
}

/* 3 Steps Process Grid */
.dguv-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.dguv-step-card {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 36px 28px 30px 28px;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

.dguv-step-badge {
  width: 48px;
  height: 48px;
  background-color: #f0fdf4;
  border: 1.5px solid #86efac;
  color: #16a34a;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  flex-shrink: 0;
}

.dguv-step-title {
  font-family: var(--font-heading);
  font-size: 1.32rem;
  font-weight: 800;
  color: #0f172a;
  text-align: center;
  margin-bottom: 22px;
}

.dguv-step-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dguv-step-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 2px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.94rem;
  color: #334155;
  font-weight: 500;
}

.dguv-step-row:last-child {
  border-bottom: none;
}

.dguv-step-row i {
  color: #16a34a;
  font-size: 0.95rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.dguv-step-row a {
  color: #1e293b;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.dguv-step-row a:hover {
  color: #179328;
  text-decoration: underline;
}

@media (max-width: 960px) {
  .dguv-split-card,
  .dguv-split-card.reversed {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .dguv-steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .dguv-block-card {
    padding: 32px 24px;
  }

  .dguv-card-img-wrap {
    min-height: 280px;
    max-height: 360px;
  }
}

/* ==========================================================================
   Videoüberwachung Modal Erweiterungen (Innenbereich, Garten, etc.)
   ========================================================================== */
.modal-card-variant-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 6px;
}

.modal-footnote-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  padding: 34px 44px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  color: #334155;
  font-size: 0.94rem;
  line-height: 1.68;
}

.modal-footnote-box p {
  margin-bottom: 12px;
}

.modal-footnote-box p:last-child {
  margin-bottom: 0;
}

.footnote-factors-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footnote-factors-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #334155;
  font-size: 0.93rem;
  font-weight: 400;
  line-height: 1.6;
}

.footnote-factors-list li i {
  display: none;
}

.footnote-factors-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 0.55em;
  border-radius: 50%;
  background: #16a34a;
  flex-shrink: 0;
}

.footnote-highlight {
  font-weight: 700;
  color: #0f172a;
  margin-top: 14px;
}

.cam-modal-gallery-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 36px 44px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.cam-modal-gallery-card h4 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.cam-modal-gallery-card p.gallery-subtitle {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 22px;
}

.cam-modal-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .modal-footnote-box {
    padding: 24px 20px;
  }
  .cam-modal-gallery-card {
    padding: 24px 20px;
  }
  .cam-modal-gallery-grid {
    grid-template-columns: 1fr;
  }
}

.modal-options-box {
  border: 1.5px solid #0f172a;
  border-radius: 16px;
  padding: 18px 24px;
  background: #f8fafc;
  margin: 18px 0 22px 0;
}

.modal-options-box .options-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.98rem;
  color: #0f172a;
  margin-bottom: 10px;
}

.modal-options-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.modal-options-box ul li {
  font-size: 0.92rem;
  color: #334155;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-options-box ul li::before {
  content: "»";
  font-weight: 700;
  color: #0f172a;
  font-size: 1.05rem;
  line-height: 1;
}









/* Zweite Kachelreihe mit zwei breiten Karten (z. B. Alarmanlagen-Komponenten) */
.service-nav-grid.two-col {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 24px;
}

@media (max-width: 640px) {
  .service-nav-grid.two-col {
    grid-template-columns: 1fr;
    margin-top: 16px;
  }
}

/* Kamera-Seite: einheitliche Abschnitte mit gleichmäßigem Abstand */
.cam-band {
  padding: 40px 0;
  background-color: #ffffff;
}

.cam-band .camera-photo-grid,
.cam-band .cam-feature-cards-grid {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .cam-band {
    padding: 28px 0;
  }
}

/* Sehr kleine Handys: festes Seitenverhältnis + Mindesthöhe sprengten die Breite */
@media (max-width: 400px) {
  .smarthome-category-card {
    aspect-ratio: auto;
  }

  /* Titel und Knopf dürfen bei wenig Platz umbrechen statt abgeschnitten zu werden */
  .smarthome-category-content {
    flex-wrap: wrap;
  }

  .btn-category-action {
    white-space: nowrap;
    flex-shrink: 0;
  }
}
