/* ===================================================================
   assets/css/service-datenschutz.css
   Datenschutz-Service – dichter Hero + weiße Headlines + PNG-Galerie
   =================================================================== */

/* Seite unter dem Fixed-Header starten */
.dsb-page{
  position: relative;
  z-index: 2;
  padding-top: 0;                  /* Abstand steuert der Hero */
  --hero-top-boost: 3.25rem;
}

/* Container auf dieser Seite: mobil breiter + weiche Innenabstände */
.dsb-page .container{
  max-width: min(96vw, var(--container-width, 1000px));
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(12px, 4vw, 24px);
  padding-right: clamp(12px, 4vw, 24px);
}

/* ---------- HERO ---------- */
.dsb-hero{
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: 0;
  padding: calc(var(--header-height, 80px) + env(safe-area-inset-top) + var(--hero-top-boost)) 1rem 2.25rem;
  overflow-x: hidden;              /* kein horizontales Überlaufen */
}
@supports (padding-top: max(0px)) {
  .dsb-hero{
    padding-top: max(
      calc(var(--header-height, 80px) + env(safe-area-inset-top) + var(--hero-top-boost)),
      9.5rem
    );
  }
}

.dsb-hero .container{
  background: rgba(0, 31, 48, 0.60);
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
  margin-top: 1rem;
}

.dsb-hero h1{
  color: var(--white, #fff);
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  margin: 0 0 .35rem;
  text-shadow: 0 2px 6px rgba(0,0,0,.18);
  hyphens: auto;
  overflow-wrap: anywhere;
}

.dsb-hero .lead{
  max-width: 900px;
  margin: .1rem auto 0;
  color: var(--text-light);
  opacity: .95;
  line-height: 1.6;
}

.dsb-cta{
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: .75rem;
}
.dsb-cta .btn-primary{
  background: var(--accent);
  color: var(--text-light);
  padding: .75rem 1.2rem;
  border-radius: .5rem;
  border: none;
  font-weight: 700;
  text-decoration: none;
}
.dsb-cta .btn-primary:hover{ background:#DB8E1E; }

/* ---------- LEISTUNGEN ---------- */
.dsb-benefits{ position: relative; z-index: 2; margin: 3.25rem 0 0; }
.dsb-benefits .container{
  background: rgba(0, 31, 48, .60);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(0,0,0,.30);
  color: var(--text-light);
}
.dsb-benefits h2{
  font-size: 2rem;
  color: var(--white, #fff);
  text-align: center;
  margin: 0 0 1.25rem;
}
.benefit-grid{
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px){
  .benefit-grid{ grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
.benefit{
  background: rgba(0, 31, 48, .84);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
}
.benefit h3{
  color: var(--white, #fff);
  margin: 0 0 .35rem;
  font-size: 1.08rem;
}
.benefit p{
  margin: 0;
  color: var(--text-light);
  opacity: .95;
  line-height: 1.6;
}

/* ---------- SCHRITTE ---------- */
.dsb-steps{ position: relative; z-index: 2; margin: 2.5rem 0 0; }
.dsb-steps .container{
  background: rgba(0, 31, 48, .60);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(0,0,0,.30);
  color: var(--text-light);
}
.dsb-steps h2{
  font-size: 2rem; color: var(--white, #fff); text-align: center; margin: 0 0 1.25rem;
}
.steps{
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: .9rem; grid-template-columns: 1fr;
}
@media (min-width: 560px){
  .steps{ grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
.steps li{
  position: relative;
  background: rgba(0, 31, 48, .84);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1.1rem 1.1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
}
.step-num{
  position: absolute; top: .9rem; left: .9rem;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #111;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.steps h3{ margin: 0 0 .35rem 0; padding-left: 2.2rem; color: var(--white, #fff); }
.steps p{ margin: 0; padding-left: 2.2rem; color: var(--text-light); opacity: .95; line-height: 1.6; }

/* ---------- ZERTIFIKATE (PNG-Galerie) ---------- */
.dsb-certs{ position: relative; z-index: 2; margin: 2.5rem 0 4rem; }
.dsb-certs .container{
  background: rgba(0, 31, 48, .60);
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(0,0,0,.30);
  color: var(--text-light);
}
.dsb-certs h2{
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  color: var(--white, #fff);
  text-align: center;
  margin: 0 0 1.1rem;
}

/* Grid */
.gallery-grid{
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;                     /* mobil */
}
@media (min-width: 600px){
  .gallery-grid{ grid-template-columns: repeat(2, minmax(260px, 1fr)); }
}
@media (min-width: 992px){
  .gallery-grid{ grid-template-columns: repeat(3, minmax(280px, 1fr)); }
}

/* Card */
.gallery-card{
  background: rgba(0, 31, 48, .84);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
  display: flex; flex-direction: column; gap: .6rem;
}
.gallery-card .thumb{
  position: relative;
  border-radius: .6rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: #001826;
  aspect-ratio: 3 / 4;                             /* groß & konstant */
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-in;
  -webkit-user-select: none; user-select: none;
}
.gallery-card img{
  width: 100%; height: 100%;
  object-fit: contain;
  -webkit-user-drag: none; user-select: none;
  transform: translateZ(0);
}
.gallery-card .caption{
  color: rgba(255,255,255,.92);
  font-size: .95rem;
  text-align: center;
  margin-top: .1rem;
}

/* Lightbox */
.cert-lightbox{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.86);
  display: none; align-items: center; justify-content: center;
  z-index: 10000;
  padding: clamp(8px, 3vw, 20px);
  backdrop-filter: blur(2px);
}
.cert-lightbox.open{ display: flex; }
.lb-img{
  width: min(1200px, 96vw);
  height: min(92vh, 1600px);
  background: #001826 center/contain no-repeat;
  border-radius: .65rem;
  box-shadow: 0 18px 44px rgba(0,0,0,.5);
}
.lb-close{
  position: absolute; right: clamp(8px, 2vw, 18px); top: clamp(8px, 2vw, 18px);
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.9);
  color: #0b1420;
  font-weight: 900; font-size: 1.2rem; line-height: 1;
  border-radius: .5rem; width: 38px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
}
.lb-close:hover{ filter: brightness(.98); transform: translateY(-1px); }

/* ---------- LEGAL ---------- */
.dsb-legal{ position: relative; z-index: 2; margin: 2.5rem 0 4rem; }
.dsb-legal .container{
  background: rgba(0, 31, 48, .70);
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(0,0,0,.30);
  color: var(--text-light);
}
.dsb-legal h2{ margin: 0 0 .75rem; color: var(--white, #fff); text-align: center; }
.dsb-legal p{ margin: 0 0 .7rem; line-height: 1.65; }
.dsb-legal .muted{ opacity: .9; font-style: italic; margin-bottom: 0; }

/* ---------- Responsive Tweaks ---------- */
@media (max-width: 768px){
  .dsb-hero{
    min-height: calc(100svh - var(--header-height, 72px));
    display: grid; place-content: center; row-gap: .35rem;
    padding: calc(var(--header-height, 72px) + env(safe-area-inset-top) + .4rem) .9rem 1.25rem;
  }
  .dsb-hero .container{ padding: 1.25rem 1rem; }
  .dsb-hero h1{ margin-bottom: .12rem; }
  .dsb-hero .lead{ line-height: 1.55; margin: 0 auto; max-width: 92vw; }

  .dsb-benefits .container,
  .dsb-steps .container,
  .dsb-certs .container,
  .dsb-legal .container{ padding: 1.5rem; }

  .dsb-benefits h2,
  .dsb-steps h2,
  .dsb-certs h2,
  .dsb-legal h2{ font-size: 1.75rem; }

  .dsb-cta .btn-primary{ width: 100%; text-align: center; }
}
