/* Versorgungstechnik-Sever GmbH – Trust & Authority Design System */
:root {
  --navy-950: #0d2238;
  --navy-900: #16324f;
  --navy-800: #1c3a5e;
  --navy-700: #3a5874;
  --blue-700: #1d6fbf;
  --blue-600: #3b8fdd;
  --blue-100: #e3f1fc;
  --steel-700: #5c6670;
  --orange-600: #e0760a;
  --orange-500: #f5891d;
  --red-600: #e0760a;
  --red-700: #c2620a;
  --bg: #f8fafc;
  --surface: #ffffff;
  --muted: #e8ecf1;
  --border: #e2e8f0;
  --text: #1a2f48;
  --text-soft: #51616f;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(2, 6, 23, .08);
  --shadow-md: 0 10px 30px -10px rgba(2, 6, 23, .18);
  --font-head: 'Outfit', sans-serif;
  --font-body: 'Rubik', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--navy-900); }
img { max-width: 100%; display: block; }
a { color: var(--blue-700); }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--navy-900);
  color: #fff; padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 0; }

/* Topbar – Notdienst */
.topbar { background: var(--red-600); color: #fff; font-size: 14px; }
.topbar a { color: #fff; font-weight: 600; text-decoration: none; }
.topbar-inner { display: flex; align-items: center; gap: 10px; padding: 7px 20px; flex-wrap: wrap; }
.topbar-badge {
  width: 9px; height: 9px; border-radius: 50%; background: #fff; flex: none;
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); }
  100% { box-shadow: 0 0 0 9px rgba(255,255,255,0); }
}
.topbar-phone { letter-spacing: .3px; text-decoration: underline; }

/* Header */
.site-header {
  background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-icon { height: 44px; width: auto; flex: none; }
.brand-text { display: grid; gap: 1px; }
.brand-text strong {
  font-family: var(--font-head); font-weight: 800; font-size: 19px; line-height: 1.1;
  color: var(--navy-800); letter-spacing: -.2px; text-transform: uppercase;
}
.brand-sever { color: var(--blue-700); }
.brand-gmbh { font-size: 11px; font-weight: 600; color: var(--steel-700); letter-spacing: .5px; }
.brand-tagline { font-size: 10px; letter-spacing: 2px; }
.brand-tagline .sep { padding: 0 6px; }
@media (max-width: 640px) {
  .brand-icon { height: 36px; }
  .brand-text strong { font-size: 15px; }
  .brand-tagline { font-size: 9px; letter-spacing: 1.5px; }
}
.main-nav ul { display: flex; align-items: center; gap: 6px; list-style: none; }
.main-nav a {
  text-decoration: none; color: var(--navy-700); font-weight: 500; font-size: 15px;
  padding: 9px 13px; border-radius: 8px; transition: background .2s, color .2s;
}
.main-nav a:hover { background: var(--muted); color: var(--navy-900); }
.main-nav a.active { color: var(--blue-700); background: var(--blue-100); }
.nav-cta {
  background: var(--blue-700); color: #fff !important; font-weight: 600;
}
.nav-cta:hover { background: var(--blue-600) !important; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--navy-900); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* Hero – Foto mit Navy-Overlay */
.hero {
  position: relative;
  background:
    linear-gradient(100deg, rgba(8, 26, 44, .94) 0%, rgba(13, 34, 56, .82) 45%, rgba(13, 34, 56, .45) 100%),
    url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?auto=format&fit=crop&w=1800&q=70') center / cover no-repeat;
  border-bottom: 4px solid var(--orange-500);
  overflow: hidden;
}
.hero h1, .hero .hero-sub { color: #fff; }
.hero-sub { color: #cbd9e6 !important; }
.hero-accent { color: var(--orange-500); }
.hero-eyebrow { background: rgba(245, 137, 29, .15); color: var(--orange-500); }
.hero-trust li { color: #dbe7f1; }
.hero-trust svg { color: var(--orange-500); }
.hero .btn-outline { border-color: #fff; color: #fff; }
.hero .btn-outline:hover { background: #fff; color: var(--navy-900); }
.hero-grid {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px;
  align-items: center; padding: 76px 20px 84px;
}
.hero-eyebrow {
  display: inline-block; font-weight: 600; font-size: 13px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--blue-700);
  background: var(--blue-100); padding: 6px 12px; border-radius: 99px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(38px, 6vw, 62px); font-weight: 800; letter-spacing: -1px; }
.hero-accent { color: var(--orange-500); }
.hero-sub { margin: 20px 0 28px; font-size: 18px; color: var(--text-soft); max-width: 32em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 12px; list-style: none; margin-top: 32px; flex-wrap: wrap; }
.hero-trust li {
  display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px;
  color: #fff; background: rgba(8, 26, 44, .55); border: 1px solid rgba(255,255,255,.18);
  padding: 8px 14px; border-radius: 99px; backdrop-filter: blur(4px);
}
.hero-trust svg { color: var(--orange-500); flex: none; }

.hero-panel { position: relative; display: grid; gap: 18px; }
.hero-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-md); display: grid; gap: 6px;
}
.hero-card svg { color: var(--blue-700); }
.hero-card strong { font-family: var(--font-head); font-size: 18px; }
.hero-card span { color: var(--text-soft); font-size: 14px; }
.hero-card-main { transform: rotate(-1.5deg); }
.hero-card-emergency {
  transform: rotate(1.5deg) translateX(26px);
  border-left: 4px solid var(--red-600);
}
.pulse-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--red-600);
  animation: pulse 1.6s ease-out infinite; margin-bottom: 4px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: 16px;
  padding: 13px 26px; border-radius: 10px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: .2s;
}
.btn-primary { background: var(--blue-700); color: #fff; }
.btn-primary:hover { background: var(--blue-600); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { border-color: var(--navy-900); color: var(--navy-900); background: transparent; }
.btn-outline:hover { background: var(--navy-900); color: #fff; }
.btn-emergency { background: #fff; color: var(--red-700); font-size: 18px; }
.btn-emergency:hover { transform: scale(1.03); }

/* Sections */
.section { padding: 78px 0; }
.section-eyebrow {
  font-weight: 600; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--blue-700); margin-bottom: 10px;
}
.section h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 700; max-width: 22em; margin-bottom: 38px; }
.section-more { margin-top: 38px; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
  overflow: hidden;
}
.service-card.mit-foto { padding: 0; display: flex; flex-direction: column; }
.service-foto { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.service-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.service-card.mit-foto:hover .service-foto img { transform: scale(1.06); }
.service-body { padding: 38px 24px 24px; position: relative; }
.service-body .service-icon {
  position: absolute; left: 18px; top: -27px; box-shadow: var(--shadow-md);
  border: 3px solid #fff;
}
.service-card.mit-foto h3 { margin: 0 0 8px; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card h3 { font-size: 20px; margin: 16px 0 8px; }
.service-card p { color: var(--text-soft); font-size: 15px; }
.service-icon {
  width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue-700);
}
.service-card-emergency { border-top: 4px solid var(--orange-600); }
.service-card-emergency .service-icon { background: #ffedd5; color: var(--orange-600); }
.service-icon-flame { background: #ffedd5; color: var(--orange-500); }
.card-link { font-weight: 600; text-decoration: none; display: inline-block; margin-top: 10px; }

/* Stats band */
.section-dark { background: var(--navy-900); color: #fff; }
.stats-band { padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: center; }
.stat strong { font-family: var(--font-head); font-size: clamp(30px, 4vw, 44px); font-weight: 800; display: block; color: #6db3ee; }
.stat:nth-child(2) strong { color: var(--orange-500); }

/* Logo-Tagline */
.tagline { font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase; }
.tagline .sep { color: var(--steel-700); padding: 0 8px; font-weight: 400; }
.c-gas { color: var(--orange-500); }
.c-wasser { color: var(--blue-600); }
.c-sanitaer { color: #8b959e; }
.stat span { color: #cbd5e1; font-size: 14px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; list-style: none; counter-reset: step; }
.steps li {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; position: relative;
}
.step-num {
  font-family: var(--font-head); font-weight: 800; font-size: 42px;
  color: var(--blue-100); -webkit-text-stroke: 1.5px var(--blue-700);
  position: absolute; top: 18px; right: 24px;
}
.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { color: var(--text-soft); font-size: 15px; }

/* Emergency band */
.emergency-band { background: linear-gradient(120deg, var(--red-700), var(--red-600)); color: #fff; padding: 44px 0; }
.emergency-inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.emergency-band h2 { color: #fff; font-size: clamp(22px, 3vw, 30px); margin-bottom: 6px; }
.emergency-band p { color: #fecaca; }

/* Footer */
.site-footer { background: var(--navy-950); color: #cbd5e1; padding: 58px 0 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; padding-bottom: 38px; }
.site-footer h3 { color: #fff; font-size: 17px; margin-bottom: 14px; }
.site-footer a { color: #93c5fd; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-nav { list-style: none; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid var(--navy-800); padding-top: 18px; padding-bottom: 18px; font-size: 13px; color: #64748b; }
.footer-bottom a { color: #94a3b8; }

/* Generic page hero */
.page-hero { background: var(--navy-900); color: #fff; padding: 58px 0; }
.page-hero h1 { color: #fff; font-size: clamp(30px, 5vw, 46px); }
.page-hero p { color: #cbd5e1; margin-top: 10px; max-width: 40em; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px;
  font: inherit; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-700); box-shadow: 0 0 0 3px rgba(27,117,200,.18);
}
.field .req { color: var(--red-600); }
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 22px; font-weight: 500; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* Galerie */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item {
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-700));
  display: grid; place-items: center; color: rgba(255,255,255,.85);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(2,6,23,.85)); color: #fff;
  padding: 26px 16px 12px; font-size: 14px; font-weight: 500;
}

.maps-rahmen {
  margin-top: 18px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.maps-rahmen iframe { display: block; width: 100%; height: 320px; }

.foto-rahmen {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
  transform: rotate(-1deg);
}
.foto-rahmen img { width: 100%; height: auto; display: block; }

/* Zweispalter */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.checklist { list-style: none; display: grid; gap: 12px; margin-top: 18px; }
.checklist li { display: flex; gap: 10px; align-items: start; color: var(--text-soft); }
.checklist svg { color: var(--blue-700); flex: none; margin-top: 3px; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding: 48px 20px 56px; }
  .hero-panel { max-width: 420px; }
  .card-grid, .steps, .gallery-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .main-nav ul {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; background: var(--surface);
    border-bottom: 1px solid var(--border); padding: 12px 20px 18px; gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .main-nav.open ul { display: flex; }
  .main-nav a { display: block; padding: 12px 14px; }
}
@media (max-width: 640px) {
  .card-grid, .steps, .gallery-grid, .footer-grid, .form-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
