/**
 * STS Innova GmbH - Swiss High-End Construction & Baumanagement Design System (2026)
 * Matzingen, Schweiz | Baumanagement, Baukostenkontrolle & Bauherrenvertretung
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Schweizer Bau- & Architekturfarben */
  --sts-black: #111418;
  --sts-slate-dark: #1b2028;
  --sts-slate: #2c3340;
  --sts-slate-light: #485264;
  
  --sts-concrete: #f4f6f9;
  --sts-concrete-subtle: #f8fafc;
  --sts-concrete-border: #e2e8f0;
  --sts-concrete-dark: #cbd5e1;

  --sts-white: #ffffff;
  
  /* Original STS Innova Signalrot (aus Vektorlogo) */
  --sts-red: #E30613;
  --sts-red-hover: #c4040f;
  --sts-red-soft: rgba(227, 6, 19, 0.08);
  --sts-red-glow: rgba(227, 6, 19, 0.25);
  --sts-red-border: rgba(227, 6, 19, 0.4);

  /* Baustellen- & Ingenieur-Akzente */
  --sts-safety-orange: #f97316;
  --sts-blueprint-blue: #0284c7;

  /* Typografie */
  --sts-font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --sts-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --sts-font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  /* Radien & Schatten */
  --sts-radius-sm: 4px;
  --sts-radius-md: 8px;
  --sts-radius-lg: 14px;

  --sts-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --sts-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --sts-shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
  --sts-shadow-hero: 0 20px 50px rgba(17, 20, 24, 0.35);

  --sts-transition: all 0.22s ease-in-out;
}

/* Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--sts-font-body);
  color: var(--sts-slate);
  background-color: var(--sts-concrete-subtle);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--sts-font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--sts-black);
  line-height: 1.25;
  margin-bottom: 0.8rem;
}

p {
  margin-bottom: 1.2rem;
  color: var(--sts-slate-light);
}

a {
  color: var(--sts-red);
  text-decoration: none;
  transition: var(--sts-transition);
}

a:hover {
  color: var(--sts-red-hover);
}

/* ==========================================================================
   HEADER & NAVIGATION (Weißer Schweizer Architektur-Header für 100% Logo-Sichtbarkeit)
   ========================================================================== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 2px solid var(--sts-red);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: var(--sts-transition);
}

#header.scrolled {
  height: 76px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.header .logo img,
#header .logo img,
.sts-header-logo {
  height: 48px;
  max-height: 52px;
  width: auto;
  max-width: 320px;
  display: block;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  transition: var(--sts-transition);
}

#header.scrolled .logo img,
#header.scrolled .sts-header-logo {
  height: 40px;
  max-height: 40px;
}

@media (max-width: 768px) {
  #header {
    height: 76px;
  }
  .header .logo img,
  #header .logo img,
  .sts-header-logo {
    height: 38px;
    max-height: 38px;
    max-width: 250px;
  }
}

/* Navigation Links */
.navmenu ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
  gap: 1.8rem;
}

.navmenu a {
  color: var(--sts-black);
  font-family: var(--sts-font-display);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 0;
  position: relative;
  transition: var(--sts-transition);
}

.navmenu a:hover,
.navmenu a.active {
  color: var(--sts-red);
}

.navmenu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--sts-red);
  transition: var(--sts-transition);
}

.navmenu a:hover::after,
.navmenu a.active::after {
  width: 100%;
}

/* Buttons */
.sts-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--sts-font-display);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.8rem 1.6rem;
  border-radius: var(--sts-radius-sm);
  transition: var(--sts-transition);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.sts-btn-primary {
  background-color: var(--sts-red);
  color: var(--sts-white);
  border-color: var(--sts-red);
  box-shadow: 0 4px 14px var(--sts-red-glow);
}

.sts-btn-primary:hover {
  background-color: var(--sts-red-hover);
  border-color: var(--sts-red-hover);
  color: var(--sts-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--sts-red-glow);
}

.sts-btn-outline-dark {
  background-color: transparent;
  color: var(--sts-black);
  border: 2px solid var(--sts-black);
}

.sts-btn-outline-dark:hover {
  background-color: var(--sts-black);
  color: var(--sts-white);
  transform: translateY(-2px);
}

.sts-btn-outline-light {
  background-color: transparent;
  color: var(--sts-white);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.sts-btn-outline-light:hover {
  background-color: var(--sts-white);
  color: var(--sts-black);
  border-color: var(--sts-white);
  transform: translateY(-2px);
}

.sts-btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

/* Construction Badges & Indicator Pills */
.sts-construction-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(227, 6, 19, 0.08);
  border: 1px solid rgba(227, 6, 19, 0.25);
  border-radius: var(--sts-radius-sm);
  font-size: 0.82rem;
  font-family: var(--sts-font-mono);
  font-weight: 600;
  color: var(--sts-red);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.sts-sia-stamp {
  display: inline-block;
  border: 2px solid var(--sts-black);
  padding: 2px 8px;
  font-family: var(--sts-font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--sts-black);
  background: var(--sts-concrete);
  border-radius: 2px;
}

/* ==========================================================================
   HERO SECTION (Echte Schweizer Baustellen-Fotografie & Architektur-Atmosphäre)
   ========================================================================== */
.sts-hero-real {
  position: relative;
  padding-top: 140px;
  padding-bottom: 90px;
  background-color: var(--sts-slate-dark);
  color: var(--sts-white);
  overflow: hidden;
}

.sts-hero-real::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../img/swiss-construction-hero.jpg');
  background-size: cover;
  background-position: center center;
  opacity: 0.32;
  filter: saturate(1.1);
  z-index: 1;
}

.sts-hero-real::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 20, 24, 0.96) 0%, rgba(17, 20, 24, 0.85) 55%, rgba(17, 20, 24, 0.5) 100%);
  z-index: 2;
}

.sts-hero-real .container {
  position: relative;
  z-index: 3;
}

.sts-hero-real h1 {
  color: var(--sts-white);
  font-size: clamp(2.3rem, 4.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.12;
  margin-top: 1rem;
  margin-bottom: 1.4rem;
}

.sts-hero-real .lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: #cbd5e1;
  max-width: 650px;
  margin-bottom: 2rem;
  font-weight: 400;
  line-height: 1.65;
}

/* Metric Tiles */
.sts-metric-box {
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--sts-radius-md);
  padding: 1.5rem;
  color: var(--sts-black);
  border-left: 4px solid var(--sts-red);
  box-shadow: var(--sts-shadow-lg);
  transition: var(--sts-transition);
}

.sts-metric-box:hover {
  transform: translateY(-4px);
}

.sts-metric-val {
  font-family: var(--sts-font-display);
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--sts-red);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.sts-metric-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--sts-black);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   TRUST & SIA BAR
   ========================================================================== */
.sts-construction-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--sts-concrete-border);
  padding: 1.4rem 0;
  box-shadow: var(--sts-shadow-sm);
}

.sts-bar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--sts-font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--sts-slate);
}

.sts-bar-item i {
  color: var(--sts-red);
  font-size: 1.3rem;
}

/* ==========================================================================
   SECTIONS & ARCHITECTURAL GRID
   ========================================================================== */
.sts-section {
  padding: 90px 0;
  position: relative;
}

.sts-section-badge {
  display: inline-block;
  font-family: var(--sts-font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sts-red);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.sts-section-heading {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--sts-black);
}

.sts-section-sub {
  color: var(--sts-slate-light);
  font-size: 1.05rem;
  max-width: 680px;
}

/* Service Cards (Echte Bauleitungs-Kacheln) */
.sts-bau-card {
  background: #ffffff;
  border: 1px solid var(--sts-concrete-border);
  border-radius: var(--sts-radius-md);
  padding: 2.2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--sts-transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--sts-shadow-sm);
}

.sts-bau-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--sts-concrete-dark);
  transition: var(--sts-transition);
}

.sts-bau-card:hover {
  transform: translateY(-5px);
  border-color: #cbd5e1;
  box-shadow: var(--sts-shadow-lg);
}

.sts-bau-card:hover::before {
  background: var(--sts-red);
}

.sts-card-bkp {
  font-family: var(--sts-font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sts-red);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sts-bau-card h3 {
  font-size: 1.35rem;
  margin-top: 0.6rem;
  margin-bottom: 0.8rem;
}

.sts-bau-card p {
  font-size: 0.95rem;
  color: var(--sts-slate-light);
  flex-grow: 1;
}

.sts-bau-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem 0;
  font-size: 0.88rem;
}

.sts-bau-list li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.sts-bau-list li i {
  color: var(--sts-red);
  margin-top: 2px;
}

/* Image Showcase Containers */
.sts-img-frame {
  position: relative;
  border-radius: var(--sts-radius-md);
  overflow: hidden;
  box-shadow: var(--sts-shadow-md);
  border: 1px solid var(--sts-concrete-border);
}

.sts-img-frame img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.sts-img-frame:hover img {
  transform: scale(1.02);
}

.sts-img-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(17, 20, 24, 0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--sts-radius-sm);
  font-family: var(--sts-font-display);
  font-size: 0.82rem;
  font-weight: 600;
  border-left: 3px solid var(--sts-red);
}

/* Porträt Stefan Scheuch - 100% Kopf & Haare sichtbar, kein Anschneiden */
.sts-person-portrait {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
  object-position: top center !important;
  display: block;
}

/* Avatar-Porträts (FAQ & Kontakt) */
.sts-avatar-portrait {
  object-fit: cover !important;
  object-position: top center !important;
}

/* ==========================================================================
   BKP COMPARISON MATRIX
   ========================================================================== */
.sts-compare-box {
  border-radius: var(--sts-radius-md);
  padding: 2.2rem;
  height: 100%;
}

.sts-compare-box.danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.sts-compare-box.success {
  background: #ffffff;
  border: 2px solid var(--sts-red);
  box-shadow: var(--sts-shadow-lg);
}

/* ==========================================================================
   3-STEP PROJECT CONFIGURATOR (STEPFORM)
   ========================================================================== */
.sts-form-container {
  background: #ffffff;
  border: 1px solid var(--sts-concrete-border);
  border-radius: var(--sts-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--sts-shadow-md);
}

.sts-step-progress-wrapper {
  position: relative;
  margin-bottom: 2.5rem;
}

.sts-step-progress-bar-bg {
  position: absolute;
  top: 18px;
  left: 10%;
  right: 10%;
  height: 4px;
  background: #e2e8f0;
  z-index: 1;
}

.sts-step-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--sts-red);
  transition: width 0.35s ease;
}

.sts-step-indicators {
  position: relative;
  display: flex;
  justify-content: space-between;
  z-index: 2;
}

.sts-step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.sts-step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sts-font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sts-slate-light);
  transition: var(--sts-transition);
}

.sts-step-node.active .sts-step-circle {
  border-color: var(--sts-red);
  color: #ffffff;
  background: var(--sts-red);
  box-shadow: 0 0 14px var(--sts-red-glow);
}

.sts-step-node.completed .sts-step-circle {
  border-color: var(--sts-black);
  background: var(--sts-black);
  color: #ffffff;
}

.sts-step-label {
  font-family: var(--sts-font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sts-slate-light);
}

.sts-step-node.active .sts-step-label {
  color: var(--sts-black);
}

.sts-form-step {
  display: none;
}

.sts-form-step.active {
  display: block;
}

.sts-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.sts-tile-radio,
.sts-tile-checkbox {
  position: relative;
}

.sts-tile-radio input,
.sts-tile-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.sts-tile-label {
  display: block;
  padding: 1.4rem;
  background: var(--sts-concrete);
  border: 2px solid var(--sts-concrete-border);
  border-radius: var(--sts-radius-sm);
  cursor: pointer;
  transition: var(--sts-transition);
  height: 100%;
}

.sts-tile-radio input:checked ~ .sts-tile-label,
.sts-tile-checkbox input:checked ~ .sts-tile-label {
  border-color: var(--sts-red);
  background: #ffffff;
  box-shadow: 0 4px 14px var(--sts-red-soft);
}

.sts-tile-icon {
  font-size: 1.5rem;
  color: var(--sts-slate);
  margin-bottom: 0.6rem;
  display: block;
}

.sts-tile-radio input:checked ~ .sts-tile-label .sts-tile-icon,
.sts-tile-checkbox input:checked ~ .sts-tile-label .sts-tile-icon {
  color: var(--sts-red);
}

.sts-tile-title {
  font-family: var(--sts-font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  display: block;
  color: var(--sts-black);
}

.sts-tile-desc {
  font-size: 0.82rem;
  color: var(--sts-slate-light);
  line-height: 1.4;
  display: block;
}

.sts-input {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--sts-font-body);
  font-size: 0.95rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--sts-radius-sm);
  background: #ffffff;
  transition: var(--sts-transition);
}

.sts-input:focus {
  outline: none;
  border-color: var(--sts-red);
  box-shadow: 0 0 0 3px var(--sts-red-soft);
}

/* ==========================================================================
   FOOTER (Seriös, dunkel, mit Firmen-NAP und Links)
   ========================================================================== */
.sts-footer {
  background-color: var(--sts-black);
  color: #94a3b8;
  padding-top: 80px;
  padding-bottom: 40px;
  border-top: 3px solid var(--sts-red);
  font-size: 0.9rem;
}

.sts-footer h4 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.4rem;
}

.sts-footer a {
  color: #94a3b8;
}

.sts-footer a:hover {
  color: #ffffff;
}

.sts-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sts-footer-links li {
  margin-bottom: 0.6rem;
}

.sts-footer-bottom {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

.sts-footer-logo-box {
  background: #ffffff;
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--sts-radius-sm);
  margin-bottom: 1.2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sts-footer-logo-box img {
  height: 38px;
  width: auto;
  display: block;
}

.sts-footer-logo {
  height: 42px;
  width: auto;
  max-width: 260px;
  display: block;
}

.sts-social-links {
  display: flex;
  gap: 0.8rem;
}

.sts-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d1d5db;
  transition: var(--sts-transition);
}

.sts-social-btn:hover {
  background: var(--sts-red);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Cookie-Consent Styling */
.sts-cookie-banner {
  position: fixed;
  bottom: -250px;
  left: 20px;
  right: 20px;
  max-width: 520px;
  background: rgba(17, 20, 24, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 4px solid var(--sts-red);
  border-radius: var(--sts-radius-md);
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  transition: bottom 0.4s ease;
  color: #e2e8f0;
  font-size: 0.88rem;
}

.sts-cookie-banner.is-visible {
  bottom: 20px;
}

.sts-cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.sts-cookie-modal-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.sts-cookie-modal {
  background: #ffffff;
  border-radius: var(--sts-radius-md);
  max-width: 580px;
  width: 100%;
  padding: 2rem;
  box-shadow: var(--sts-shadow-lg);
}

.sts-cookie-category {
  background: var(--sts-concrete);
  border: 1px solid var(--sts-concrete-border);
  border-radius: var(--sts-radius-sm);
  padding: 1rem;
  margin-bottom: 0.8rem;
}

#scroll-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 44px;
  height: 44px;
  background: var(--sts-black);
  color: #ffffff;
  border-radius: var(--sts-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--sts-transition);
}

#scroll-top.active {
  opacity: 1;
  visibility: visible;
}

#scroll-top:hover {
  background: var(--sts-red);
}

/* Mobile Nav */
@media (max-width: 991.98px) {
  .navmenu ul {
    display: none;
  }

  body.mobile-nav-active .navmenu ul {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 90px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    padding: 2rem;
    gap: 1.2rem;
    z-index: 999;
    overflow-y: auto;
    border-top: 1px solid var(--sts-concrete-border);
  }

  .mobile-nav-toggle {
    display: block;
    color: var(--sts-black);
    font-size: 1.8rem;
    cursor: pointer;
    border: none;
    background: transparent;
  }
}

@media (min-width: 992px) {
  .mobile-nav-toggle {
    display: none;
  }
}