/* ═══════════════════════════════════════════════
   BlueHome Networks — Design System v2
   ═══════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #050A14;
  --bg2:      #07101E;
  --bg3:      #0A1528;
  --blue:     #0088FF;
  --blue-dim: rgba(0,136,255,0.15);
  --cyan:     #00D4FF;
  --white:    #EFF8FF;
  --muted:    rgba(180,210,255,0.55);
  --border:   rgba(0,136,255,0.18);
  --border2:  rgba(0,136,255,0.10);
  --radius:   14px;
  --font-head: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; background: var(--bg); }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

/* ─── HEADER / NAV ─── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9000;
}

.navbar {
  background: rgba(5,10,20,0.08);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(0,136,255,0.08);
  transition: background 0.5s, border-color 0.5s;
}
.navbar.scrolled {
  background: rgba(5,10,20,0.92);
  border-bottom-color: rgba(0,136,255,0.16);
}

.navbar-inner {
  width: 100%;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a { display: flex; align-items: center; }
.logo img { height: 30px; width: auto; }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.nav-links a {
  text-decoration: none;
  color: rgba(180,210,255,0.68);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  background: rgba(0,136,255,0.08);
}
.nav-links li:last-child a {
  background: var(--blue);
  color: #fff;
  padding: 0.45rem 1rem;
  font-weight: 700;
}
.nav-links li:last-child a:hover {
  background: #0070D8;
  box-shadow: 0 0 18px rgba(0,136,255,0.45);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 9100;
  border: 0;
  color: inherit;
  background: transparent;
}
.burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .burger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5,10,20,0.97);
    backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s;
    z-index: 9050;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links a {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 700;
    padding: 0;
    background: none !important;
    box-shadow: none !important;
  }
  .nav-links a:hover, .nav-links a.active {
    background: none !important;
    color: var(--cyan) !important;
  }
  .nav-links li:last-child a {
    background: none !important;
    color: var(--white) !important;
    font-size: 1.8rem;
  }
}

/* ─── BUTTONS ─── */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.88rem 1.9rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.93rem;
  transition: all 0.3s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 28px rgba(0,136,255,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 36px rgba(0,136,255,0.55);
}
.btn-secondary {
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  border-color: var(--blue);
  background: rgba(0,136,255,0.08);
  transform: translateY(-2px);
}

/* ─── HERO SLIDESHOW (homepage) ─── */
.hero-slideshow {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
}

.hero-slideshow .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
  z-index: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.hero-slideshow .slide.active {
  opacity: 1;
  z-index: 1;
}
.hero-slideshow .slide.leaving {
  opacity: 0;
  z-index: 2;
  transition: opacity 1.4s ease;
}

/* background layer — only this scales, not the text */
.hero-slideshow .slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  will-change: transform;
}
.hero-slideshow .slide.active .slide-bg {
  animation: kenBurns 10s ease-in-out forwards;
}

@keyframes kenBurns {
  0%   { transform: scale(1.0); }
  100% { transform: scale(1.07); }
}

/* shared dark overlay — sits above all slides */
.hero-overlay-bg {
  position: absolute; inset: 0;
  z-index: 2;
  background: linear-gradient(
    105deg,
    rgba(5,10,20,0.93) 0%,
    rgba(5,10,20,0.76) 38%,
    rgba(5,10,20,0.38) 68%,
    rgba(5,10,20,0.56) 100%
  );
  pointer-events: none;
}
.hero-overlay-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 220px;
  z-index: 2;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
  pointer-events: none;
}

/* hero text caption layers (one per slide, outside animated slides) */
.hero-caption {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
  width: 100%;
  opacity: 0;
  transition: opacity 1.0s ease;
  pointer-events: none;
}
.hero-caption.active {
  opacity: 1;
  pointer-events: auto;
}

/* keyword highlight */
.kw {
  color: var(--cyan);
  text-shadow: 0 0 36px rgba(0,212,255,0.55);
}

.hero-overlay {
  position: absolute; inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
  width: 100%;
}

.hero-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero-text {
  max-width: 680px;
}

.hero-text .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.5rem;
}
.hero-text .eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--cyan);
  flex-shrink: 0;
}

.hero-text h1 {
  font-size: clamp(2.8rem, 6.5vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.92;
  margin-bottom: 1.4rem;
}

.hero-text p {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--muted);
  line-height: 1.68;
  max-width: 520px;
  margin-bottom: 2.4rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* slide indicator dots */
.slide-dots {
  position: absolute;
  bottom: 2.2rem;
  left: clamp(1.5rem, 5vw, 5rem);
  z-index: 6;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.slide-dot {
  width: 28px; height: 2px;
  padding: 0;
  border: 0;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s;
}
.slide-dot.active {
  background: var(--blue);
  box-shadow: 0 0 8px rgba(0,136,255,0.6);
  width: 44px;
}

/* scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2.2rem;
  right: clamp(1.5rem, 5vw, 5rem);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: rgba(180,210,255,0.3);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--blue), transparent);
  animation: scrollAnim 2s ease-in-out infinite;
}
@keyframes scrollAnim {
  0%,100% { opacity: 0.4; height: 26px; }
  50%      { opacity: 1; height: 44px; }
}

/* ─── HERO STATIC (subpages) ─── */
.hero-static {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* background layer — only this scales, not the text */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  animation: kenBurns 14s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-static::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    105deg,
    rgba(5,10,20,0.96) 0%,
    rgba(5,10,20,0.80) 38%,
    rgba(5,10,20,0.45) 68%,
    rgba(5,10,20,0.62) 100%
  );
  z-index: 1;
}
.hero-static::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 220px;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
  z-index: 2;
}
.hero-static .hero-overlay {
  z-index: 3;
}

/* ─── SECTIONS ─── */
.section {
  width: 100%;
  padding: 6.5rem clamp(1.5rem, 5vw, 5rem);
}
.section-gradient-light { background: var(--bg2); }
.section-gradient-blue  { background: linear-gradient(160deg, var(--bg3) 0%, #0C1830 100%); }
.section-gradient-deep  { background: linear-gradient(160deg, #040810 0%, #060D1C 100%); }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.1rem;
}
.section-tag::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--cyan);
  flex-shrink: 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.1rem;
}
.section-label::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--cyan);
  flex-shrink: 0;
}

.section-head {
  margin-bottom: 3.5rem;
  max-width: 720px;
}
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
}
.section-head p.intro {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.72;
  max-width: 660px;
}

.content-wrapper {
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}

/* ─── SERVICE GRID (subpages) ─── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--border);
}

.service-card {
  background: rgba(5,11,23,0.95);
  padding: 2.4rem 2.2rem;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  transform: scaleX(0);
  transition: transform 0.4s;
}
.service-card:hover { background: rgba(0,50,110,0.22); }
.service-card:hover::after { transform: scaleX(1); }

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
  color: var(--white);
}
.service-card > p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
  margin-bottom: 1.1rem;
}
.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(0,136,255,0.12);
  padding-top: 1rem;
}
.service-card ul li {
  font-size: 0.88rem;
  color: var(--muted);
  padding: 0.4rem 0;
  padding-left: 1.3rem;
  position: relative;
  border-bottom: 1px solid rgba(0,136,255,0.06);
  line-height: 1.5;
}
.service-card ul li:last-child { border-bottom: none; }
.service-card ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.75rem;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue);
}

@media (max-width: 700px) {
  .service-grid { grid-template-columns: 1fr; }
}

/* ─── SECURITY GRID ─── */
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--border);
}
.security-item {
  background: rgba(5,11,23,0.92);
  padding: 2rem 2.2rem;
  transition: background 0.25s;
}
.security-item:hover { background: rgba(0,50,110,0.2); }
.security-item h3 {
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.security-item h3::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue);
  flex-shrink: 0;
}
.security-item p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.62;
  padding-left: 1.5rem;
}

@media (max-width: 700px) {
  .security-grid { grid-template-columns: 1fr; }
}

/* ─── SPLIT LAYOUT ─── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.split > div h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  margin-bottom: 1.2rem;
}
.split > div > p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
  margin-bottom: 1.5rem;
}
.split > img, .split > div > img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  object-fit: cover;
  width: 100%;
  max-height: 440px;
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 3rem; }
  .split > img { order: -1; max-height: 300px; }
}

/* ─── PROSE + MEDIA ─── */
.prose-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.prose-block p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.2rem;
}
.prose-block p a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,212,255,0.3);
  transition: border-color 0.2s;
}
.prose-block p a:hover { border-color: var(--cyan); }

.section-image {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  width: 100%;
  object-fit: cover;
  max-height: 460px;
}

@media (max-width: 860px) {
  .prose-media { grid-template-columns: 1fr; gap: 3rem; }
  .section-image { max-height: 280px; }
}

/* ─── TEXT LINK ROW ─── */
.text-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border2);
}
.text-link-row a {
  text-decoration: none;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(0,136,255,0.05);
  transition: all 0.25s;
  white-space: nowrap;
}
.text-link-row a:hover {
  background: rgba(0,136,255,0.14);
  border-color: var(--blue);
  color: var(--white);
}

/* ─── CHECK LIST ─── */
.check-list {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  border-top: 1px solid var(--border2);
  padding-top: 1rem;
}
.check-list li {
  font-size: 0.93rem;
  color: var(--muted);
  padding: 0.55rem 0 0.55rem 1.6rem;
  border-bottom: 1px solid rgba(0,136,255,0.07);
  position: relative;
  line-height: 1.5;
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

/* ─── HOMEPAGE: LEISTUNGEN SECTION ─── */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--border);
}
.module-card {
  background: rgba(5,11,23,0.95);
  padding: 2.4rem 2rem;
  text-decoration: none;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.module-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  transform: scaleX(0);
  transition: transform 0.4s;
}
.module-card:hover { background: rgba(0,50,110,0.28); }
.module-card:hover::after { transform: scaleX(1); }

.module-num {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(0,180,255,0.35);
}
.module-icon {
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,136,255,0.06);
}
.module-icon svg {
  width: 20px; height: 20px;
  stroke: var(--blue); fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.module-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.module-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}
.module-more {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.module-more::after { content: '→'; transition: transform 0.2s; }
.module-card:hover .module-more::after { transform: translateX(4px); }

@media (max-width: 1100px) { .modules-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px)  { .modules-grid { grid-template-columns: 1fr; } }

/* ─── HOMEPAGE: MANAGED ─── */
.managed-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}
.managed-left h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 1.3rem;
}
.managed-left > p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
  margin-bottom: 2.8rem;
}
.managed-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  padding-top: 2.2rem;
}
.kpi-val {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.kpi-label { font-size: 0.8rem; color: var(--muted); line-height: 1.4; }

.steps { display: flex; flex-direction: column; }
.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1.5rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid rgba(0,136,255,0.09);
  align-items: start;
}
.step:last-child { border-bottom: none; }
.step-n {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  color: rgba(0,136,255,0.18);
  line-height: 1;
}
.step h3 {
  font-size: 1.08rem;
  margin-bottom: 0.3rem;
}
.step p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

@media (max-width: 960px) {
  .managed-split { grid-template-columns: 1fr; gap: 3.5rem; }
}
@media (max-width: 500px) {
  .managed-kpis { grid-template-columns: 1fr; gap: 1.4rem; }
}

/* ─── PARTNER SECTION ─── */
.partner-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--border);
}
.partner-row {
  background: rgba(5,11,23,0.95);
  padding: 2.2rem 2.4rem;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 3rem;
  align-items: center;
  transition: background 0.3s;
}
.partner-row:hover { background: rgba(0,50,110,0.18); }
.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner-logo img {
  max-width: 100px;
  max-height: 50px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.6;
  transition: opacity 0.3s;
}
.partner-row:hover .partner-logo img { opacity: 0.9; }
.partner-logo-plain img {
  max-width: 156px;
  max-height: 72px;
  filter: none;
  opacity: 1;
}
.partner-logo-plain a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.partner-logo-wide img {
  max-width: 180px;
  max-height: 58px;
}
.partner-row:hover .partner-logo-plain img { opacity: 1; }
.partner-copy h3 { font-size: 1.1rem; margin-bottom: 0.45rem; }
.partner-copy p { color: var(--muted); font-size: 0.92rem; line-height: 1.6; }

@media (max-width: 640px) {
  .partner-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .partner-logo img { max-width: 80px; }
}

/* ─── CONTACT SECTION ─── */
.contact-layout {
  display: flex;
  justify-content: center;
}
.contact-card-full {
  width: 100%;
  max-width: 860px;
  background: rgba(7,16,33,0.88);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: clamp(2rem, 5vw, 3.8rem);
  backdrop-filter: blur(20px);
  box-shadow: 0 40px 80px rgba(0,0,0,0.45);
}
.portrait {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  margin-bottom: 1.5rem;
  box-shadow: 0 0 0 4px rgba(0,136,255,0.1);
}
.contact-card-full h3 {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}
.contact-card-full > p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 480px;
}
.contact-actions-large {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}
.contact-actions-large a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s;
}
.contact-actions-large a:first-child {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 24px rgba(0,136,255,0.35);
}
.contact-actions-large a:first-child:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 36px rgba(0,136,255,0.55);
}
.contact-actions-large a:last-child {
  border: 1px solid var(--border);
  color: var(--white);
  background: rgba(0,136,255,0.05);
}
.contact-actions-large a:last-child:hover {
  border-color: var(--blue);
  background: rgba(0,136,255,0.12);
  transform: translateY(-1px);
}

.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(0,136,255,0.08);
  font-size: 0.92rem;
}
.contact-detail:last-child { border-bottom: none; }
.contact-detail strong {
  min-width: 130px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  flex-shrink: 0;
}
.contact-detail span, .contact-detail a {
  color: var(--white);
  text-decoration: none;
}
.contact-detail a:hover { color: var(--cyan); }

@media (max-width: 560px) {
  .contact-actions-large { grid-template-columns: 1fr; }
  .contact-detail { flex-direction: column; gap: 0.2rem; }
  .contact-detail strong { min-width: 0; }
}

/* ─── CONTACT PAGE ─── */
.contact-page-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(340px, 1.25fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-info-panel,
.contact-form {
  border: 1px solid rgba(15,139,141,0.14);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 20px 55px rgba(7,63,67,0.08);
}

.contact-info-panel {
  padding: clamp(1.8rem, 4vw, 2.6rem);
}

.contact-info-panel h2 {
  margin: 0.8rem 0 1rem;
  color: #1a1a18;
  font-size: clamp(2rem, 4vw, 3rem);
}

.contact-info-panel p {
  margin-bottom: 1.8rem;
  color: #4f5f5f;
  line-height: 1.7;
}

.contact-info-panel .contact-detail {
  border-color: rgba(15,139,141,0.12);
}

.contact-info-panel .contact-detail span,
.contact-info-panel .contact-detail a {
  color: #253232;
}

.contact-form {
  padding: clamp(1.6rem, 4vw, 2.5rem);
  display: grid;
  gap: 1.15rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 0.45rem;
}

.form-row label,
.check-row {
  color: #253232;
  font-size: 0.9rem;
  font-weight: 700;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid rgba(15,139,141,0.18);
  border-radius: 8px;
  background: #f8fbfb;
  color: #1a1a18;
  font: inherit;
  padding: 0.9rem 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-row textarea {
  resize: vertical;
  min-height: 160px;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--blue);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(0,136,255,0.1);
}

.hp-field {
  display: none !important;
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.check-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.75rem;
  align-items: start;
  font-weight: 500;
  line-height: 1.55;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  accent-color: var(--blue);
}

.check-row a {
  color: var(--blue);
  font-weight: 700;
}

.btn-submit {
  width: fit-content;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #ffffff;
  padding: 1rem 1.35rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0,136,255,0.22);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0,136,255,0.32);
}

.form-status {
  display: none !important;
  padding: 1rem;
  border-radius: 8px;
  background: rgba(15,139,141,0.1);
  color: #0b5f60;
  font-weight: 700;
}

.form-status.error {
  background: rgba(180,30,30,0.09);
  color: #9d2424;
}

.form-status.show { display: block !important; }

@media (max-width: 900px) {
  .contact-page-layout,
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── LEGAL PAGES ─── */
.hero-legal {
  height: 76vh;
  min-height: 560px;
}

.hero-legal .hero-caption {
  opacity: 1;
}

.legal-intro {
  max-width: 880px;
  margin: 0 auto 2.2rem;
  padding: 2rem;
  border: 1px solid rgba(15,139,141,0.16);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f5fbfb 100%);
  box-shadow: 0 18px 50px rgba(7,63,67,0.08);
}

.legal-intro span {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-intro h2 {
  margin-bottom: 0.8rem;
  color: #1a1a18;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.legal-intro p {
  max-width: 720px;
  color: #4f5f5f;
  line-height: 1.7;
}

.legal-content {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}
.legal-block {
  padding: 1.8rem;
  border: 1px solid rgba(15,139,141,0.13);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 42px rgba(7,63,67,0.06);
}
.legal-block h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #1a1a18;
}
.legal-block p {
  color: #555f5f;
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 0.8rem;
}
.legal-block p:last-child { margin-bottom: 0; }
.legal-block a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,212,255,0.3);
}
.legal-block a:hover { border-color: var(--cyan); }
.legal-date { color: #788181; font-size: 0.82rem; }

/* ─── FOOTER ─── */
footer {
  background: #020509;
  border-top: 1px solid rgba(0,136,255,0.08);
  padding: 3rem clamp(1.5rem, 5vw, 5rem);
}
.footer-content {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: start;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 180px;
}
.footer-brand img { height: 28px; width: auto; max-width: none; align-self: flex-start; filter: brightness(0.85); }
.footer-brand p {
  font-size: 0.82rem;
  color: rgba(180,210,255,0.4);
  max-width: 240px;
  line-height: 1.5;
}
.footer-links-grid {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(180,210,255,0.4);
  margin-bottom: 0.8rem;
}
.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: rgba(180,210,255,0.55);
  text-decoration: none;
  margin-bottom: 0.4rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,136,255,0.07);
}
.footer-copy { font-size: 0.8rem; color: rgba(180,210,255,0.3); }
.footer-legal {
  display: flex;
  gap: 1.5rem;
}
.footer-legal a {
  font-size: 0.8rem;
  color: rgba(180,210,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--white); }

@media (max-width: 640px) {
  .footer-content { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links-grid { justify-content: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ─── SCROLL REVEAL ─── */
.r {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.r.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.10s; }
.d2 { transition-delay: 0.20s; }
.d3 { transition-delay: 0.30s; }
.d4 { transition-delay: 0.40s; }

/* ─── SECTION LAYOUT ─── */
main section.section > .content-wrapper > *:first-child { margin-top: 0; }

/* ─── UTILITIES ─── */
.center { text-align: center; }
.center .section-head { margin-left: auto; margin-right: auto; }
.center .section-label { justify-content: center; }

/* ─── RESPONSIVE ADJUSTMENTS ─── */
@media (max-width: 500px) {
  .section { padding: 4.5rem 1.3rem; }
  .hero-text h1 { letter-spacing: -0.04em; }
}

/* ─── BlueHome brand refresh ─── */
:root {
  --blue: #0f8b8d;
  --blue-dim: rgba(15,139,141,0.16);
  --cyan: #27c29c;
  --border: rgba(15,139,141,0.2);
  --border2: rgba(15,139,141,0.12);
}

.navbar {
  background: rgba(5,10,20,0.22);
  border-bottom-color: rgba(15,139,141,0.12);
}

.navbar.scrolled {
  background: rgba(5,10,20,0.94);
  border-bottom-color: rgba(15,139,141,0.28);
}

.logo img {
  height: 44px;
  width: auto;
}

.hero-text .eyebrow,
.kw,
.section-label,
.module-more,
.managed-kpis .kpi-val,
.contact-detail strong,
.legal-block a {
  color: var(--cyan);
}

.hero-text .eyebrow::before,
.section-label::before {
  background: var(--cyan);
}

.btn-primary,
.nav-links li:last-child a,
.contact-actions-large a:first-child {
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(15,139,141,0.28);
}

.btn-primary:hover,
.nav-links li:last-child a:hover,
.contact-actions-large a:first-child:hover {
  background: #067647;
  box-shadow: 0 14px 34px rgba(15,139,141,0.38);
}

.slide-dot.active,
.scroll-line,
.service-card::after,
.module-card::after {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.security-item h3::before {
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(39,194,156,0.45);
}

.footer-brand img {
  height: 54px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #ffffff;
  filter: none;
}

@media (max-width: 860px) {
  .logo img { height: 40px; }
}

/* ─── brighter BlueHome family pass ─── */
:root {
  --bg: #f8f7f5;
  --bg2: #ffffff;
  --bg3: #e0f5f5;
  --white: #2c2c2a;
  --muted: #5f5e5a;
  --border: rgba(15,139,141,0.18);
  --border2: rgba(15,139,141,0.1);
}

html,
body {
  background: var(--bg);
  color: var(--white);
}

.navbar {
  background: rgba(255,255,255,0.9);
  border-bottom-color: rgba(15,139,141,0.16);
  box-shadow: 0 10px 32px rgba(7,63,67,0.08);
}

.navbar.scrolled {
  background: rgba(255,255,255,0.96);
  border-bottom-color: rgba(15,139,141,0.22);
}

.nav-links a {
  color: #5f5e5a;
}

.nav-links a:hover,
.nav-links a.active {
  color: #073f43;
  background: rgba(15,139,141,0.08);
}

.burger span {
  background: #073f43;
}

.hero-slideshow {
  background: linear-gradient(135deg, #f8f7f5, #e0f5f5);
}

.hero-overlay-bg,
.hero-static::before {
  background: linear-gradient(
    105deg,
    rgba(248,247,245,0.10) 0%,
    rgba(248,247,245,0.04) 52%,
    rgba(7,63,67,0.08) 100%
  );
}

.hero-overlay-bottom,
.hero-static::after {
  background: linear-gradient(to top, rgba(248,247,245,0.72) 0%, rgba(248,247,245,0) 72%);
}

.hero-text h1,
.hero-static .hero-text h1 {
  color: #1a1a18;
  text-shadow: none;
}

.kw {
  color: var(--blue);
  text-shadow: none;
}

.hero-text p,
.hero-static .hero-text p {
  color: #4f5f5f;
}

.hero-text .eyebrow {
  color: var(--blue);
}

.hero-text .eyebrow::before {
  background: var(--blue);
}

.btn-secondary {
  color: #073f43;
  border-color: rgba(15,139,141,0.22);
  background: rgba(255,255,255,0.68);
}

.btn-secondary:hover {
  background: #ffffff;
  border-color: var(--blue);
}

.scroll-cue {
  color: rgba(7,63,67,0.42);
}

.slide-dot {
  background: rgba(7,63,67,0.18);
}

.section-gradient-light {
  background: #ffffff;
}

.section-gradient-blue {
  background: linear-gradient(160deg, #e0f5f5 0%, #f8f7f5 100%);
}

.section-gradient-deep {
  background: linear-gradient(160deg, #073f43 0%, #0f8b8d 100%);
  color: #ffffff;
}

.section-gradient-deep .section-head h2,
.section-gradient-deep .split h2,
.section-gradient-deep h3 {
  color: #ffffff;
}

.section-gradient-deep .section-head p,
.section-gradient-deep .split p,
.section-gradient-deep .security-item p {
  color: rgba(255,255,255,0.78);
}

.module-card,
.service-card,
.partner-row,
.security-item {
  background: #ffffff;
  color: #2c2c2a;
  box-shadow: 0 12px 34px rgba(7,63,67,0.06);
}

.module-card:hover,
.service-card:hover,
.partner-row:hover,
.security-item:hover {
  background: #f8fdfd;
}

.module-card h3,
.service-card h3,
.security-item h3,
.partner-copy h3,
.step h3,
.contact-card-full h3,
.legal-block h2 {
  color: #2c2c2a;
}

.module-card p,
.service-card > p,
.service-card ul li,
.security-item p,
.partner-copy p,
.step p,
.prose-block p,
.section-head p.intro,
.managed-left > p,
.split > div > p,
.check-list li,
.contact-card-full > p,
.legal-block p {
  color: #5f5e5a;
}

.modules-grid,
.service-grid,
.security-grid,
.partner-list {
  background: rgba(15,139,141,0.14);
  box-shadow: 0 0 0 1px rgba(15,139,141,0.14);
}

.module-num,
.step-n {
  color: rgba(15,139,141,0.24);
}

.module-icon {
  background: #e0f5f5;
}

.text-link-row a {
  color: #073f43;
  background: #ffffff;
  border-color: rgba(15,139,141,0.18);
}

.text-link-row a:hover {
  color: #073f43;
  background: #e0f5f5;
}

.partner-logo img {
  filter: none;
  opacity: 0.75;
}

.contact-card-full {
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(7,63,67,0.1);
}

.contact-detail span,
.contact-detail a {
  color: #2c2c2a;
}

footer {
  background: #073f43;
  border-top-color: rgba(39,194,156,0.2);
}

footer .footer-brand p,
footer .footer-col h4,
footer .footer-col a,
footer .footer-copy,
footer .footer-legal a {
  color: rgba(255,255,255,0.72);
}

.section-gradient-deep .service-card,
.section-gradient-deep .security-item {
  background: #ffffff;
  color: #2c2c2a;
}

.section-gradient-deep .service-card h3,
.section-gradient-deep .security-item h3 {
  color: #2c2c2a;
}

.section-gradient-deep .service-card > p,
.section-gradient-deep .service-card ul li,
.section-gradient-deep .security-item p {
  color: #5f5e5a;
}

#sicherheit .security-grid .security-item {
  background: #ffffff;
  color: #2c2c2a;
}

#sicherheit .security-grid .security-item h3 {
  color: #2c2c2a !important;
}

#sicherheit .security-grid .security-item p {
  color: #5f5e5a !important;
}

.section-gradient-deep .section-head p.intro {
  color: rgba(255,255,255,0.84) !important;
}

/* Subpage heroes */
.hero-static {
  background:
    linear-gradient(135deg, #ffffff 0%, #f8f7f5 48%, #e0f5f5 100%),
    #f8f7f5;
}

.hero-bg { filter: none; }

.hero-static::before {
  background: linear-gradient(
    105deg,
    rgba(255,255,255,0.02) 0%,
    rgba(255,255,255,0) 60%,
    rgba(7,63,67,0.03) 100%
  ) !important;
}

.hero-static::after {
  background: linear-gradient(to top, rgba(248,247,245,0.18) 0%, rgba(248,247,245,0) 68%) !important;
}

/* ═══════════════════════════════════════════════
   BlueHome Networks — professional infrastructure UI
   ═══════════════════════════════════════════════ */
:root {
  --network-navy: #061f2a;
  --network-navy-soft: #0a3541;
  --network-teal: #118f91;
  --network-mint: #56cfb0;
  --network-ink: #172b33;
  --network-muted: #5b6d73;
  --network-line: #dbe5e6;
  --network-surface: #f3f7f7;
  --radius: 16px;
}

body {
  color: var(--network-ink);
  background: #f5f8f8;
  -webkit-font-smoothing: antialiased;
}

::selection { color: #fff; background: var(--network-teal); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(17,143,145,.28);
  outline-offset: 3px;
}

/* Header */
.navbar,
.navbar.scrolled {
  background: rgba(6,31,42,.97);
  border-bottom: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 10px 34px rgba(0,0,0,.18);
}
.navbar-inner {
  max-width: 1400px;
  height: 86px;
  margin: 0 auto;
  padding-right: clamp(1.5rem,5vw,4rem);
  padding-left: clamp(1.5rem,5vw,4rem);
}
.logo img {
  height: 59px;
  width: auto;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,.2));
}
.nav-links { gap: .25rem; }
.nav-links a {
  position: relative;
  padding: .65rem .82rem;
  color: rgba(255,255,255,.74);
  border-radius: 8px;
  font-size: .84rem;
  font-weight: 600;
}
.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,.075);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  right: .82rem;
  bottom: .35rem;
  left: .82rem;
  height: 2px;
  border-radius: 2px;
  background: var(--network-mint);
}
.nav-links li:last-child a {
  margin-left: .35rem;
  padding: .7rem 1.15rem;
  color: #062630;
  background: #72dfc3;
  box-shadow: 0 9px 24px rgba(56,196,163,.18);
}
.nav-links li:last-child a:hover { color: #062630; background: #98ead5; box-shadow: 0 12px 28px rgba(56,196,163,.24); }
.nav-links li:last-child a::after { display: none; }
.burger span { background: #fff; }

/* Hero areas */
.hero-slideshow,
.hero-static {
  height: auto;
  min-height: 735px;
  padding-top: 86px;
  background: var(--network-navy);
}
.hero-slideshow .slide-bg,
.hero-bg { background-position: center; }
.hero-overlay-bg,
.hero-static::before {
  background: linear-gradient(90deg, rgba(3,22,32,.28), rgba(3,22,32,.08) 60%, rgba(3,22,32,.22)) !important;
}
.hero-overlay-bottom,
.hero-static::after {
  height: 140px;
  background: linear-gradient(to top, rgba(6,31,42,.2), transparent) !important;
}
.hero-caption,
.hero-overlay {
  padding: 86px max(5%, calc((100% - 1300px) / 2)) 70px;
}
.hero-inner { max-width: 1300px; margin: 0 auto; }
.hero-text {
  max-width: 700px;
  padding: 42px 46px 40px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 20px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 32px 88px rgba(0,0,0,.3);
  backdrop-filter: blur(15px);
}
.hero-text .eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 1.1rem;
  padding: .43rem .68rem;
  color: #087274;
  background: #e7f5f4;
  border: 1px solid #c8e5e3;
  border-radius: 6px;
  font-size: .67rem;
}
.hero-text .eyebrow::before { display: none; }
.hero-text h1,
.hero-static .hero-text h1 {
  color: #092e38;
  font-size: clamp(2.7rem,5vw,4.65rem);
  line-height: .98;
  letter-spacing: -.052em;
  margin-bottom: 1.35rem;
}
.hero-text h1 br { display: initial; }
.kw { color: var(--network-teal); }
.hero-text p,
.hero-static .hero-text p {
  max-width: 570px;
  margin-bottom: 1.8rem;
  color: #52666d;
  font-size: 1.03rem;
}
.btn-primary,
.contact-actions-large a:first-child {
  color: #fff;
  background: #087f81;
  border: 1px solid #087f81;
  box-shadow: 0 11px 26px rgba(8,127,129,.22);
}
.btn-primary:hover,
.contact-actions-large a:first-child:hover { background: #066d70; box-shadow: 0 15px 32px rgba(8,127,129,.28); }
.btn-secondary {
  color: #0a5962;
  background: #fff;
  border-color: #b8cbcd;
  box-shadow: none;
}
.btn-secondary:hover { color: #fff; background: var(--network-navy); border-color: var(--network-navy); }
.slide-dots {
  bottom: 2rem;
  left: max(5%, calc((100% - 1300px) / 2));
  padding: .65rem .75rem;
  border-radius: 999px;
  background: rgba(6,31,42,.72);
  backdrop-filter: blur(8px);
}
.slide-dot { background: rgba(255,255,255,.34); }
.slide-dot.active { background: #65d6b9; box-shadow: none; }
.scroll-cue { color: rgba(255,255,255,.66); }

/* Section rhythm */
.section { padding: 96px max(5%, calc((100% - 1300px) / 2)); }
.section-gradient-light { background: #fff; }
.section-gradient-blue {
  color: #fff;
  background:
    radial-gradient(circle at 84% 0, rgba(17,143,145,.2), transparent 34%),
    var(--network-navy);
}
.section-gradient-deep {
  color: #fff;
  background: linear-gradient(145deg, #061f2a, #0a4c55);
}
.section-label,
.section-tag {
  margin-bottom: 1rem;
  color: #087b7d;
  font-size: .68rem;
  letter-spacing: .17em;
}
.section-label::before,
.section-tag::before { width: 26px; background: #118f91; }
.section-gradient-blue .section-label,
.section-gradient-blue .section-tag,
.section-gradient-deep .section-label,
.section-gradient-deep .section-tag { color: #72dfc3; }
.section-gradient-blue .section-label::before,
.section-gradient-deep .section-label::before { background: #72dfc3; }
.section h2,
.section-head h2 {
  color: var(--network-ink);
  font-size: clamp(2.15rem,4vw,3.55rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.section-gradient-blue h2,
.section-gradient-blue h3,
.section-gradient-deep h2,
.section-gradient-deep h3 { color: #fff; }
.section-head { max-width: 780px; margin-bottom: 3rem; }
.section-head p.intro { color: var(--network-muted); }

/* Service modules */
.modules-grid {
  gap: 18px;
  overflow: visible;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.module-card {
  min-height: 355px;
  padding: 28px;
  gap: 1rem;
  color: var(--network-ink);
  background: #fff;
  border: 1px solid var(--network-line);
  border-radius: 16px;
  box-shadow: 0 10px 32px rgba(6,31,42,.07);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.module-card::after {
  height: 4px;
  background: var(--network-teal);
  transform: scaleX(1);
}
.module-card:hover {
  z-index: 2;
  background: #fff;
  border-color: #78bfc0;
  box-shadow: 0 24px 56px rgba(6,70,76,.15);
  transform: translateY(-7px);
}
.module-num { color: #91a5aa; }
.module-icon {
  width: 56px;
  height: 56px;
  border-color: #cbe3e2;
  border-radius: 13px;
  background: linear-gradient(145deg,#e5f4f3,#f8fbfb);
}
.module-icon svg { width: 24px; height: 24px; stroke: #087f81; }
.module-card h3 { color: var(--network-ink); font-size: 1.18rem; }
.module-card p { color: var(--network-muted); }
.module-more { color: #087b7d; }

/* Shared subpage cards */
.service-grid,
.security-grid {
  gap: 18px;
  overflow: visible;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.service-card,
.security-item {
  padding: 2.2rem;
  background: #fff;
  border: 1px solid var(--network-line);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(6,31,42,.06);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.service-card:hover,
.security-item:hover {
  background: #fff;
  border-color: #83c2c3;
  box-shadow: 0 20px 48px rgba(6,70,76,.12);
  transform: translateY(-5px);
}
.service-card::after { display: none; }
.service-card h3,
.security-item h3 { color: var(--network-ink) !important; }
.service-card > p,
.service-card ul li,
.security-item p { color: var(--network-muted) !important; }
.service-card ul { border-top-color: #e5ecec; }
.service-card ul li { border-bottom-color: #edf1f1; }
.service-card ul li::before,
.security-item h3::before { background: var(--network-teal); box-shadow: none; }

/* Editorial sections */
.prose-media { gap: 4.5rem; align-items: center; }
.prose-block p { color: var(--network-muted); }
.prose-block p a { color: #087b7d; border-bottom-color: rgba(8,123,125,.3); }
.section-image,
.split > img,
.split > div > img {
  border: 1px solid var(--network-line);
  border-radius: 18px;
  box-shadow: 0 22px 58px rgba(6,31,42,.12);
}
.text-link-row a {
  border-color: #c8dcdd;
  border-radius: 8px;
  color: #07555d;
  background: #f5f9f9;
}
.text-link-row a:hover { color: #fff; background: #087f81; border-color: #087f81; }

/* Managed operations */
.managed-split { gap: 5rem; }
.managed-left h2 { color: #fff; }
.managed-left > p { color: rgba(255,255,255,.68); }
.managed-kpis { gap: 1rem; border-top-color: rgba(255,255,255,.14); }
.kpi-val { color: #72dfc3; }
.kpi-label { color: rgba(255,255,255,.58); }
.steps { gap: 12px; }
.step {
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 12px;
  background: rgba(255,255,255,.045);
}
.step-n { color: #72dfc3; font-size: 1rem; }
.step p { color: rgba(255,255,255,.62); }

/* Partner list */
.partner-list {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 16px;
  overflow: visible;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.partner-row {
  min-height: 170px;
  padding: 1.8rem;
  grid-template-columns: 115px 1fr;
  gap: 1.8rem;
  background: #fff;
  border: 1px solid var(--network-line);
  border-radius: 14px;
  box-shadow: 0 9px 28px rgba(6,31,42,.055);
}
.partner-row:hover { background: #fff; border-color: #a9cccc; }
.partner-copy h3 { color: var(--network-ink); }
.partner-copy p { color: var(--network-muted); }

/* Contact and legal */
.contact-card-full,
.contact-info-panel,
.contact-form,
.legal-block {
  border: 1px solid var(--network-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 46px rgba(6,31,42,.08);
}
.contact-detail { border-bottom-color: #e5ecec; }
.contact-detail strong { color: #087b7d; }
.form-row input,
.form-row select,
.form-row textarea {
  min-height: 50px;
  border: 1px solid #cddbdd;
  border-radius: 9px;
  color: var(--network-ink);
  background: #fff;
}
.form-row textarea { min-height: 130px; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { border-color: var(--network-teal); box-shadow: 0 0 0 3px rgba(17,143,145,.13); }

/* Footer */
footer {
  padding-top: 4rem;
  background: #051923;
  border-top: 4px solid #0f8588;
}
.footer-content { max-width: 1300px; }
.footer-brand img {
  height: 63px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,.2));
}
footer .footer-brand p,
footer .footer-col h4,
footer .footer-col a,
footer .footer-copy,
footer .footer-legal a { color: rgba(255,255,255,.65); }
footer .footer-col h4 { color: #71d9bf; }
footer .footer-col a:hover,
footer .footer-legal a:hover { color: #fff; }

@media (max-width: 1100px) {
  .navbar-inner { padding-right: 2rem; padding-left: 2rem; }
  .logo img { height: 54px; }
  .nav-links a { padding-right: .55rem; padding-left: .55rem; font-size: .79rem; }
  .modules-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 860px) {
  .navbar-inner { height: 76px; }
  .logo img { height: 51px; }
  .nav-links { background: rgba(6,31,42,.98); }
  .nav-links a,
  .nav-links li:last-child a { color: #fff !important; }
  .hero-slideshow,
  .hero-static { min-height: 690px; padding-top: 76px; }
  .hero-caption,
  .hero-overlay { padding-top: 54px; padding-bottom: 76px; }
  .hero-text { padding: 34px 32px; }
  .partner-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .navbar-inner { height: 70px; padding-right: 1.1rem; padding-left: 1.1rem; }
  .logo img { height: 48px; }
  .hero-slideshow,
  .hero-static { min-height: 700px; padding-top: 70px; }
  .hero-caption,
  .hero-overlay { padding: 38px 4% 72px; }
  .hero-text { padding: 27px 23px; border-radius: 15px; }
  .hero-text h1,
  .hero-static .hero-text h1 { font-size: clamp(2.35rem,11vw,3.35rem); }
  .hero-text p,
  .hero-static .hero-text p { font-size: .95rem; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { width: 100%; justify-content: center; }
  .scroll-cue { display: none; }
  .section { padding: 72px 5%; }
  .modules-grid { grid-template-columns: 1fr; gap: 14px; }
  .module-card { min-height: 285px; }
  .partner-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.section-gradient-blue .split > div > p,
.section-gradient-blue .check-list li {
  color: rgba(255, 255, 255, 0.72);
}

.section-gradient-blue .check-list {
  border-top-color: rgba(255, 255, 255, 0.14);
}

.section-gradient-blue .check-list li {
  border-bottom-color: rgba(255, 255, 255, 0.09);
}

.section-gradient-blue .text-link-row {
  border-top-color: rgba(255, 255, 255, 0.14);
}

.section-gradient-blue .text-link-row a {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

/* Kompaktere Hero-Panels auf den Leistungs-Unterseiten */
.hero-static .hero-overlay {
  padding-top: 54px;
  padding-bottom: 54px;
}

.hero-static .hero-text {
  max-width: 610px;
  padding: 34px 38px 36px;
  border-radius: 17px;
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.26);
}

.hero-static .hero-text .eyebrow {
  margin-bottom: 0.9rem;
}

.hero-static .hero-text h1 {
  margin-bottom: 1.05rem;
  font-size: clamp(2.6rem, 4.25vw, 3.9rem);
  line-height: 1.01;
}

.hero-static .hero-text p {
  margin-bottom: 1.4rem;
  font-size: 0.98rem;
}

@media (max-width: 640px) {
  .hero-static {
    min-height: 650px;
  }

  .hero-static .hero-overlay {
    padding-top: 28px;
    padding-bottom: 42px;
  }

  .hero-static .hero-text {
    padding: 24px 22px 26px;
    border-radius: 14px;
  }

  .hero-static .hero-text h1 {
    font-size: clamp(2.15rem, 9.7vw, 2.7rem);
    line-height: 1.02;
  }
}

/* Einheitliche Kartenmaße für alle drei Startseiten-Slides */
.hero-slideshow .hero-text {
  box-sizing: border-box;
  width: min(100%, 664px);
  max-width: 664px;
}

.hero-slideshow .hero-text h1 {
  font-size: clamp(2.7rem, 4.25vw, 3.9rem);
  line-height: 1.01;
}

@media (max-width: 640px) {
  .hero-slideshow .hero-text {
    width: 100%;
  }

  .hero-slideshow .hero-text h1 {
    font-size: clamp(2.15rem, 9.7vw, 2.7rem);
    line-height: 1.02;
    min-height: 115.75px;
  }

  .hero-slideshow .hero-caption.compact-mobile .hero-text h1 {
    font-size: clamp(1.95rem, 8.6vw, 2.3rem);
  }

  .hero-slideshow .hero-caption.compact-mobile-tight .hero-text h1 {
    font-size: clamp(1.82rem, 7.9vw, 2.15rem);
  }
}

/* Partnerlogos sauber innerhalb ihrer Karten ausrichten */
.partner-row {
  grid-template-columns: 145px minmax(0, 1fr);
}

.partner-logo {
  width: 100%;
  min-width: 0;
  min-height: 72px;
}

.partner-logo img,
.partner-logo-plain img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
}

.partner-logo-wide img {
  width: 145px;
  max-width: 100%;
}

@media (max-width: 640px) {
  .partner-row {
    grid-template-columns: 1fr;
  }

  .partner-logo-wide img {
    width: 170px;
    max-width: min(170px, 100%);
  }
}

/* Rechtsseiten: lange Kontaktdaten dürfen das mobile Layout nicht verbreitern */
.legal-intro,
.legal-content,
.legal-block {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
}

.legal-block a {
  overflow-wrap: anywhere;
  word-break: break-word;
}
