/* =========================================
   SICHERHEITSTECHNIK (sicherheitstechnik.html)
   ========================================= */
:root {
  --sec-dark: #1e293b;
  --sec-cyan: #00b0ff;
  --sec-light: #f8fafc;
  --sec-white: #ffffff;
  --sec-text: #475569;
}

main {
  display: block;
  padding-top: var(--header-height-desktop);
}

/* --- 1. ÜBERSICHT --- */
.sec-wrapper-outer {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  font-family: inherit;
}

.sec-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
}

.sec-card {
  background: var(--sec-white);
  padding: 40px 30px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.sec-card:hover,
.sec-card:focus-visible {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 176, 255, 0.15);
  border-color: var(--sec-cyan);
}

.sec-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--sec-cyan);
  opacity: 0;
  transition: opacity 0.3s;
}

.sec-card:hover::before,
.sec-card:focus-visible::before {
  opacity: 1;
}

.icon-wrapper {
  width: 60px;
  height: 60px;
  background: rgba(0, 176, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  transition: background 0.3s;
}

.sec-card:hover .icon-wrapper,
.sec-card:focus-visible .icon-wrapper {
  background: var(--sec-cyan);
}

.sec-icon-svg {
  width: 32px;
  height: 32px;
  stroke: var(--sec-cyan);
  stroke-width: 1.5;
  fill: none;
  transition: stroke 0.3s;
}

.sec-card:hover .sec-icon-svg,
.sec-card:focus-visible .sec-icon-svg {
  stroke: var(--sec-white);
}

.card-headline {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--sec-dark);
  margin: 0 0 15px 0;
}

.card-description {
  font-size: 0.95rem;
  color: var(--sec-text);
  line-height: 1.6;
  margin-bottom: 30px;
  flex-grow: 1;
}

.card-cta {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--sec-dark);
  display: flex;
  align-items: center;
  transition: color 0.3s;
  margin-top: auto;
}

.arrow-icon {
  width: 16px;
  height: 16px;
  margin-left: 8px;
  stroke: var(--sec-cyan);
  stroke-width: 2.5;
  fill: none;
  transition: transform 0.3s;
}

.sec-card:hover .card-cta,
.sec-card:focus-visible .card-cta {
  color: var(--sec-cyan);
}

.sec-card:hover .arrow-icon,
.sec-card:focus-visible .arrow-icon {
  transform: translateX(5px);
}

@media (max-width: 900px) {
  .sec-title {
    font-size: 2rem;
  }
  .sec-services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .sec-card {
    padding: 30px 25px;
  }
}

/* --- 2. BRANDMELDEANLAGEN --- */
.fire-wrapper-outer {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px 60px;
  font-family: inherit;
  box-sizing: border-box;
  scroll-margin-top: 110px;
}

.fire-header-external {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.fire-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.1;
  margin: 0 0 20px 0;
}

.fire-intro {
  font-size: 1.1rem;
  color: #475569;
  line-height: 1.6;
}

.fire-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  padding: 60px 50px;
  overflow: hidden;
}

.fire-container {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  align-items: center;
}

.fire-content {
  flex: 1 1 450px;
}

.fire-subtitle {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #e11d48;
  margin: 0 0 25px 0;
  display: block;
}

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

.fire-li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-weight: 500;
  color: #1e293b;
  font-size: 1rem;
}

.fire-icon {
  margin-right: 15px;
  color: #e11d48;
  display: flex;
  align-items: center;
  background: rgba(225, 29, 72, 0.05);
  padding: 8px;
  border-radius: 8px;
}

.fire-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
}

.fire-visual {
  flex: 1 1 400px;
  position: relative;
  height: 350px;
  background: #f8fafc;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.03);
}

.cable-svg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

.cable-path {
  fill: none;
  stroke: #e11d48;
  stroke-width: 5;
  stroke-linecap: round;
  filter: drop-shadow(0 2px 3px rgba(225, 29, 72, 0.3));
}

.detector-box {
  position: relative;
  z-index: 2;
  width: 140px;
  height: 140px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1), inset 0 -5px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
}

.detector-inner {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #ffffff;
}

.vent {
  position: absolute;
  width: 80%;
  height: 80%;
  border: 4px dashed #cbd5e1;
  border-radius: 50%;
  opacity: 0.5;
}

.led-light {
  width: 12px;
  height: 12px;
  background-color: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 10px #ef4444;
  animation: blink-led 3s infinite;
  position: relative;
  z-index: 3;
}

@keyframes blink-led {
  0% {
    opacity: 0.3;
    transform: scale(1);
  }
  5% {
    opacity: 1;
    transform: scale(1.2);
    box-shadow: 0 0 20px #ef4444;
  }
  10% {
    opacity: 0.3;
    transform: scale(1);
  }
  100% {
    opacity: 0.3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .led-light {
    animation: none;
  }
}

@media (max-width: 900px) {
  .fire-card {
    padding: 40px 25px;
  }
  .fire-container {
    flex-direction: column-reverse;
    text-align: left;
    gap: 40px;
  }
  .fire-li {
    justify-content: flex-start;
  }
  .fire-visual {
    width: 100%;
    min-height: 280px;
    height: auto;
    flex: none;
  }
  .fire-title {
    font-size: 2rem;
  }
}

/* --- 3. EINBRUCHMELDEANLAGEN --- */
.ema-wrapper-outer {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px;
  font-family: inherit;
  scroll-margin-top: 110px;
}

.ema-header-external {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.ema-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.1;
  margin: 0 0 20px 0;
}

.ema-intro {
  font-size: 1.1rem;
  color: #475569;
  line-height: 1.6;
}

.ema-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  padding: 60px 50px;
  overflow: hidden;
}

.ema-container {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  align-items: center;
}

.ema-content {
  flex: 1 1 450px;
}

.ema-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blue-text);
  background: rgba(0, 176, 255, 0.1);
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 25px;
}

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

.ema-li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-weight: 500;
  color: #1e293b;
  font-size: 1rem;
}

.ema-icon {
  margin-right: 15px;
  color: #00b0ff;
  background: rgba(0, 176, 255, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ema-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.ema-visual {
  flex: 1 1 450px;
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.ema-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s ease;
}

.ema-visual:hover .ema-image {
  transform: scale(1.05);
}

@media (max-width: 900px) {
  .ema-card {
    padding: 40px 25px;
  }
  .ema-container {
    flex-direction: column-reverse;
    text-align: left;
    gap: 40px;
  }
  .ema-li {
    justify-content: flex-start;
    text-align: left;
  }
  .ema-visual {
    width: 100%;
    aspect-ratio: auto;
    height: auto;
    flex: none;
  }
  .ema-image {
    height: auto;
    max-height: 400px;
  }
  .ema-badge {
    align-self: flex-start;
  }
  .ema-title {
    font-size: 2rem;
  }
}

/* --- 4. VIDEOÜBERWACHUNG --- */
.video-wrapper-outer {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px;
  font-family: inherit;
  box-sizing: border-box;
  scroll-margin-top: 110px;
}

.video-header-external {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.video-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.1;
  margin: 0 0 20px 0;
}

.video-intro {
  font-size: 1.1rem;
  color: #475569;
  line-height: 1.6;
}

.video-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  padding: 60px 50px;
  overflow: hidden;
}

.video-container {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  align-items: stretch;
}

.video-content {
  flex: 1 1 450px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.video-li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-weight: 500;
  color: #1e293b;
  font-size: 1rem;
}

.video-icon {
  margin-right: 15px;
  color: #00b0ff;
  background: rgba(0, 176, 255, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.video-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.video-visual {
  flex: 1 1 450px;
  position: relative;
  height: auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  display: flex;
}

.video-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s ease;
}

.video-visual:hover .video-image {
  transform: scale(1.05);
}

@media (max-width: 900px) {
  .video-card {
    padding: 40px 25px;
  }
  .video-container {
    flex-direction: column-reverse;
    text-align: left;
    gap: 40px;
    align-items: center;
  }
  .video-li {
    justify-content: flex-start;
    text-align: left;
  }
  .video-content {
    display: block;
  }
  .video-visual {
    width: 100%;
    height: auto;
    flex: none;
    display: block;
  }
  .video-image {
    width: 100%;
    height: auto;
    display: block;
  }
  .video-title {
    font-size: 2rem;
  }
}

/* --- 5. SICHERHEITS-FUNNEL --- */
.pv-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px;
  box-sizing: border-box;
}

.funnel-widget {
  background: var(--sec-white);
  width: 100%;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
  padding-bottom: 20px;
}

.widget-header {
  padding: 30px;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
  background: #fafafa;
}
.widget-header h2 {
  margin: 0;
  color: var(--sec-dark);
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.progress-container {
  background-color: #e2e8f0;
  height: 6px;
  width: 100%;
}
.progress-bar {
  background-color: var(--sec-cyan);
  height: 100%;
  width: 0%;
  transition: width 0.4s ease;
  box-shadow: 0 0 10px rgba(0, 176, 255, 0.4);
}

.step-container {
  padding: 50px 40px;
  display: none;
  text-align: center;
  animation: fadeIn 0.4s;
  width: 100%;
  box-sizing: border-box;
}
.step-container.active {
  display: block;
}

.step-title {
  margin-top: 0;
  color: var(--sec-dark);
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 700;
}
.step-title:focus-visible {
  outline: 2px solid var(--sec-cyan);
  outline-offset: 4px;
}
p.subtitle {
  color: var(--sec-text);
  font-size: 1.1rem;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.options-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  width: 100%;
}

.option-card {
  background: var(--sec-light);
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  padding: 30px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  height: 100%;
  position: relative;
  font-family: inherit;
}
.option-card:hover,
.option-card:focus-visible {
  border-color: var(--sec-cyan);
  background-color: var(--sec-white);
  box-shadow: 0 10px 25px rgba(0, 176, 255, 0.15);
  transform: translateY(-5px);
  z-index: 2;
}

.option-card.selected {
  border-color: var(--sec-cyan) !important;
  background-color: var(--sec-cyan) !important;
  color: var(--sec-white) !important;
  transform: scale(0.98);
}
.option-card.selected::after {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--sec-white);
  color: var(--sec-cyan);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
.option-card.selected * {
  color: var(--sec-white) !important;
}

.option-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}
.option-label {
  font-weight: 700;
  color: var(--sec-dark);
  font-size: 1.1rem;
  margin-bottom: 5px;
}
.option-sub {
  font-size: 0.9rem;
  color: var(--sec-text);
  opacity: 0.9;
}

.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}
.btn-next {
  background-color: var(--sec-cyan);
  color: var(--sec-white);
  border: none;
  padding: 15px 40px;
  font-size: 1rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(0, 176, 255, 0.3);
}
.btn-next:hover,
.btn-next:focus-visible {
  background-color: #0284c7;
  transform: translateY(-2px);
}

.btn-back {
  background: none;
  border: 2px solid #e2e8f0;
  color: var(--sec-text);
  padding: 15px 30px;
  font-size: 1rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}
.btn-back:hover,
.btn-back:focus-visible {
  border-color: var(--sec-dark);
  color: var(--sec-dark);
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}
.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
.form-group {
  width: 100%;
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 18px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: var(--sec-dark);
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
  font-family: inherit;
}
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--sec-cyan);
  background: var(--sec-white);
}

.btn-submit {
  background-color: var(--sec-cyan);
  color: var(--sec-white);
  border: none;
  padding: 20px 30px;
  font-size: 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  width: 100%;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
  margin-top: 10px;
  box-shadow: 0 5px 15px rgba(0, 176, 255, 0.3);
}
.btn-submit:hover,
.btn-submit:focus-visible {
  background-color: #0284c7;
  transform: translateY(-2px);
}
.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .fire-wrapper-outer,
  .ema-wrapper-outer,
  .video-wrapper-outer {
    padding-bottom: 40px;
  }
  .pv-wrapper {
    padding: 0 15px 40px;
  }
  .step-container {
    padding: 30px 15px;
  }
  .widget-header h2 {
    font-size: 1.4rem;
  }
  .options-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .option-card {
    padding: 15px 5px;
    min-height: 120px;
  }
  .option-icon {
    font-size: 2rem;
    margin-bottom: 8px;
  }
  .option-label {
    font-size: 0.9rem;
    margin-bottom: 2px;
  }
  .option-sub {
    font-size: 0.75rem;
  }
  .nav-buttons {
    flex-direction: column-reverse;
    gap: 10px;
  }
  .btn-next,
  .btn-back {
    width: 100%;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .form-group {
    margin-bottom: 15px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
