/* ==========================================================================
   WOLF GENERALUNTERNEHMUNGEN - PREMIUM SWISS GENERAL CONTRACTOR STYLESHEET
   Basel, Switzerland | Centralbahnplatz 2, 4051 Basel
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Variables & Design System
   -------------------------------------------------------------------------- */
:root {
  /* Brand Gold / Bronze Palette */
  --gold-50: #fbf8f0;
  --gold-100: #f5eedc;
  --gold-200: #ecdcba;
  --gold-300: #dec491;
  --gold-400: #cfa867;
  --gold-500: #c5a059; /* Primary Brand Gold */
  --gold-600: #ab8543;
  --gold-700: #896734;
  --gold-800: #6d512d;
  --gold-900: #574127;
  --gold-gradient: linear-gradient(135deg, #d8b87a 0%, #c5a059 50%, #9e7935 100%);
  --gold-glow: rgba(197, 160, 89, 0.28);

  /* Dark Theme Palette (Sleek Swiss Architectural Slate) */
  --slate-950: #0a0d13;
  --slate-900: #0f141c; /* Primary Dark Background */
  --slate-850: #141b25;
  --slate-800: #1b2330; /* Dark Card Surface */
  --slate-700: #263345;
  --slate-600: #3b4d66;
  --slate-500: #5e718d;

  /* Neutral Light Palette */
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Semantic Colors */
  --bg-primary: var(--slate-900);
  --bg-secondary: var(--slate-850);
  --bg-card: var(--slate-800);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(197, 160, 89, 0.35);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing & Layout */
  --container-max: 1280px;
  --header-height: 84px;
  --header-height-scrolled: 70px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions & Shadows */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 8px 28px rgba(197, 160, 89, 0.25);
}

/* --------------------------------------------------------------------------
   2. Reset & Base Elements
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--slate-900);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   3. Typography & Utility Classes
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-gold {
  color: var(--gold-500);
}

.gradient-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding-top: 100px;
  padding-bottom: 100px;
  position: relative;
}

.section-light {
  background-color: var(--gray-50);
  color: var(--gray-800);
}

.section-light h2, 
.section-light h3, 
.section-light h4 {
  color: var(--gray-900);
}

.section-light .section-subtitle {
  color: var(--gold-600);
}

.section-light .section-desc {
  color: var(--gray-600);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 64px auto;
}

.section-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-500);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.section-subtitle::before,
.section-subtitle::after {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--gold-500);
  opacity: 0.7;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   4. Buttons & Badges
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  text-align: center;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--gold-gradient);
  color: var(--slate-950);
  font-weight: 700;
  box-shadow: 0 4px 16px var(--gold-glow);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(197, 160, 89, 0.4);
  color: var(--slate-950);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--gold-500);
  color: var(--gold-400);
  transform: translateY(-2px);
}

.btn-outline-gold {
  border: 1px solid var(--gold-500);
  color: var(--gold-500);
  background: transparent;
}

.btn-outline-gold:hover {
  background: var(--gold-500);
  color: var(--slate-950);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.badge-swiss {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(197, 160, 89, 0.4);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-300);
  letter-spacing: 0.04em;
}

.swiss-cross-icon {
  width: 14px;
  height: 14px;
  background: #e60000;
  position: relative;
  display: inline-block;
  border-radius: 2px;
}

.swiss-cross-icon::before,
.swiss-cross-icon::after {
  content: '';
  position: absolute;
  background: #ffffff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.swiss-cross-icon::before {
  width: 8px;
  height: 2.5px;
}

.swiss-cross-icon::after {
  width: 2.5px;
  height: 8px;
}

/* --------------------------------------------------------------------------
   5. Site Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(15, 20, 28, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  transition: height var(--transition-normal), background var(--transition-normal), box-shadow var(--transition-normal);
}

.site-header.scrolled {
  height: var(--header-height-scrolled);
  background: rgba(15, 20, 28, 0.96);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  border-bottom-color: rgba(197, 160, 89, 0.2);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.site-header.scrolled .brand-logo-img {
  height: 44px;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.03);
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--white);
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--gold-500);
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gray-300);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold-500);
  transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-400);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: rgba(197, 160, 89, 0.08);
  border: 1px solid rgba(197, 160, 89, 0.25);
  transition: all var(--transition-fast);
}

.header-phone:hover {
  background: rgba(197, 160, 89, 0.18);
  border-color: var(--gold-500);
  color: var(--gold-300);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--white);
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--white);
  transition: all var(--transition-normal);
}

.mobile-menu-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background: rgba(15, 20, 28, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  overflow-y: auto;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.mobile-nav-link {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-nav-link:hover {
  color: var(--gold-500);
}

.mobile-drawer-contact {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --------------------------------------------------------------------------
   6. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 80px;
  overflow: hidden;
  background-color: var(--slate-950);
}

.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.38) contrast(1.15);
  transform: scale(1.05);
  animation: heroZoom 24s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 30%, rgba(197, 160, 89, 0.12) 0%, transparent 60%),
              linear-gradient(to top, var(--slate-900) 0%, rgba(15, 20, 28, 0.8) 50%, rgba(15, 20, 28, 0.6) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 860px;
}

.hero-badge-wrap {
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  color: var(--gray-300);
  line-height: 1.7;
  margin-bottom: 38px;
  max-width: 720px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-bottom: 56px;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--gold-400);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--gray-400);
  margin-top: 4px;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   7. Highlights / Quick Pillars
   -------------------------------------------------------------------------- */
.highlights-bar {
  background: var(--slate-850);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 32px 0;
  position: relative;
  z-index: 10;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.highlight-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.highlight-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid rgba(197, 160, 89, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
}

.highlight-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.highlight-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   8. About Section
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.about-text-col {
  display: flex;
  flex-direction: column;
}

.lead-p {
  font-size: 1.22rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1.7;
  margin-bottom: 20px;
}

.body-p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: 1.02rem;
  line-height: 1.75;
}

.about-check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.98rem;
  color: var(--gray-200);
}

.check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(197, 160, 89, 0.15);
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0.8rem;
  font-weight: 800;
}

.about-image-col {
  position: relative;
}

.about-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.about-image-card img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.about-image-card:hover img {
  transform: scale(1.03);
}

.about-badge-card {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: var(--slate-850);
  border: 1px solid var(--gold-500);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-gold);
  max-width: 270px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-badge-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold-400);
  line-height: 1;
}

.about-badge-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   9. Services Section
   -------------------------------------------------------------------------- */
#dienstleistungen {
  background: var(--slate-900);
}

#dienstleistungen .section-title {
  color: #ffffff;
}

#dienstleistungen .section-desc {
  color: #cbd5e1;
}

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

/* Die CTA-Kachel läuft über die volle Breite, sonst bliebe sie nach dem
   Entfernen zweier Leistungen als einzelne Kachel in der letzten Reihe. */
.service-card-cta {
  grid-column: 1 / -1;
}

.service-card {
  background: #182230;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-500);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(197, 160, 89, 0.2);
}

.service-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-card:hover .service-img-wrap img {
  transform: scale(1.08);
}

.service-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(15, 20, 28, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(197, 160, 89, 0.45);
  color: var(--gold-400);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.service-body {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-title {
  font-size: 1.32rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.service-desc {
  font-size: 0.96rem;
  color: #e2e8f0 !important;
  line-height: 1.68;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.service-feature {
  font-size: 0.92rem;
  color: #ffffff !important;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-feature::before {
  content: '✓';
  color: var(--gold-400);
  font-weight: 800;
  font-size: 0.95rem;
}

.service-card-footer {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.service-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-400);
  transition: all var(--transition-fast);
}

.service-link-btn:hover {
  color: var(--gold-300);
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   10. Workflow / Process Section
   -------------------------------------------------------------------------- */
.process-section {
  background: var(--slate-850);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
}

.process-step {
  background: var(--slate-800);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  position: relative;
  transition: all var(--transition-normal);
}

.process-step:hover {
  border-color: var(--border-highlight);
  transform: translateY(-4px);
}

.step-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: rgba(197, 160, 89, 0.22);
  line-height: 1;
  position: absolute;
  top: 20px;
  right: 20px;
}

.step-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid rgba(197, 160, 89, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
  margin-bottom: 20px;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   11. Interactive Project Configurator / Quick Calculator
   -------------------------------------------------------------------------- */
.calculator-section {
  background: linear-gradient(180deg, var(--slate-900) 0%, var(--slate-850) 100%);
  position: relative;
}

.calc-card {
  background: var(--slate-800);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-lg);
  max-width: 960px;
  margin: 0 auto;
}

.calc-step-header {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.calc-step-header span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--slate-950);
  font-size: 0.82rem;
  font-weight: 800;
}

.calc-options-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}

.calc-option-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  text-align: center;
  transition: all var(--transition-fast);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.calc-option-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(197, 160, 89, 0.5);
}

.calc-option-btn.selected {
  background: rgba(197, 160, 89, 0.16);
  border-color: var(--gold-500);
  box-shadow: 0 0 16px rgba(197, 160, 89, 0.2);
}

.calc-option-icon {
  font-size: 1.4rem;
  color: var(--gold-400);
}

.calc-option-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
}

.calc-result-box {
  background: rgba(15, 20, 28, 0.7);
  border: 1px dashed var(--gold-500);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.calc-result-info h4 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.calc-result-info p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   12. Projects & Reference Gallery
   -------------------------------------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 380px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  group: pointer;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover img {
  transform: scale(1.06);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 13, 19, 0.95) 0%, rgba(10, 13, 19, 0.4) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  transition: all var(--transition-normal);
}

.project-loc {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-400);
  margin-bottom: 6px;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.project-tags {
  font-size: 0.85rem;
  color: var(--gray-300);
}

/* --------------------------------------------------------------------------
   13. Contact & Location Section
   -------------------------------------------------------------------------- */
.contact-section {
  position: relative;
  background: var(--slate-900);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-info-card {
  background: var(--slate-800);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid rgba(197, 160, 89, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
}

.contact-detail-body h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.contact-detail-body p,
.contact-detail-body a {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.contact-detail-body a:hover {
  color: var(--gold-400);
}

.hours-badge {
  display: inline-block;
  font-size: 0.78rem;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: rgba(79, 206, 106, 0.12);
  color: #4fce6a;
  border: 1px solid rgba(79, 206, 106, 0.25);
  margin-top: 4px;
  font-weight: 600;
}

/* Map Embed */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 240px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: contrast(1.05) opacity(0.9);
}

/* Contact Form Card */
.contact-form-card {
  background: var(--slate-800);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.form-header {
  margin-bottom: 28px;
}

.form-header h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.form-header p {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--gray-200);
}

.form-group label span.required {
  color: var(--gold-400);
}

.form-control {
  width: 100%;
  background: rgba(15, 20, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--white);
  font-size: 0.94rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
  background: rgba(15, 20, 28, 0.95);
}

.form-control::placeholder {
  color: var(--gray-500);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c5a059' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

select.form-control option {
  background-color: var(--slate-900);
  color: var(--white);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--gold-500);
  cursor: pointer;
}

.checkbox-group label {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
  cursor: pointer;
}

.checkbox-group label a {
  color: var(--gold-400);
  text-decoration: underline;
}

.form-status {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.55;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(79, 206, 106, 0.15);
  border: 1px solid rgba(79, 206, 106, 0.35);
  color: #a3f7b5;
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.form-status.pending {
  display: block;
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.32);
  color: var(--gold-400);
}

/* Honeypot: für Menschen unsichtbar, für Bots sichtbar */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Feldbezogene Fehlermeldungen des Servers */
.form-control.has-error {
  border-color: rgba(239, 68, 68, 0.65);
  background: rgba(239, 68, 68, 0.06);
}

.field-error {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: #fca5a5;
}

/* --------------------------------------------------------------------------
   13b. Visual Break / Image Band
   -------------------------------------------------------------------------- */
.image-band {
  position: relative;
  padding: 110px 0;
  background-image: url('../images/service-baumanagement.jpg');
  background-size: cover;
  /* Unten ausrichten: so bleiben Zeichnung und Werkzeug im Ausschnitt,
     waehrend der obere Bildteil ausserhalb des Rahmens liegt. */
  background-position: center bottom;
  background-repeat: no-repeat;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.image-band-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(10, 12, 16, 0.95) 0%,
    rgba(10, 12, 16, 0.86) 45%,
    rgba(10, 12, 16, 0.55) 100%
  );
}

.image-band-inner {
  position: relative;
  max-width: 660px;
}

.image-band-kicker {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.image-band-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 16px;
}

.image-band-text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* Parallax nur auf dem Desktop: iOS Safari stellt background-attachment:
   fixed fehlerhaft dar und auf Touch-Geraeten kostet es Scroll-Leistung. */
@media (min-width: 992px) and (hover: hover) {
  .image-band {
    background-attachment: fixed;
  }
}

@media (max-width: 768px) {
  .image-band {
    padding: 72px 0;
  }
  /* Hochkant deckt ein Verlauf von oben nach unten den Text besser ab. */
  .image-band-overlay {
    background: linear-gradient(
      180deg,
      rgba(10, 12, 16, 0.92) 0%,
      rgba(10, 12, 16, 0.84) 100%
    );
  }
}

/* --------------------------------------------------------------------------
   14. FAQ Accordion
   -------------------------------------------------------------------------- */
.faq-section {
  background: var(--slate-850);
  border-top: 1px solid var(--border-color);
}

.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--slate-800);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.open {
  border-color: var(--border-highlight);
}

.faq-question {
  width: 100%;
  padding: 22px 24px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
  font-size: 1.1rem;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--gold-500);
  color: var(--slate-950);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}

.faq-answer-inner {
  padding: 0 24px 22px 24px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   15. Floating Quick Action Dock
   -------------------------------------------------------------------------- */
.floating-contact-rail {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rail-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--slate-800);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  color: var(--white);
  position: relative;
  transition: all var(--transition-fast);
}

.rail-btn svg {
  width: 22px;
  height: 22px;
}

.rail-btn.whatsapp {
  background: #25d366;
  color: #ffffff;
  border: none;
}

.rail-btn.phone {
  background: var(--gold-500);
  color: var(--slate-950);
  border: none;
}

.rail-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.rail-tooltip {
  position: absolute;
  right: 60px;
  background: var(--slate-950);
  color: var(--white);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition-fast);
  border: 1px solid var(--border-color);
}

.rail-btn:hover .rail-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Scroll to top button */
.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--slate-800);
  border: 1px solid var(--border-color);
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 890;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

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

.scroll-top-btn:hover {
  background: var(--gold-500);
  color: var(--slate-950);
  border-color: var(--gold-500);
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   16. Cookie Notice Banner
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 2000;
  background: rgba(15, 20, 28, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--gold-500);
  padding: 18px 24px;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.5);
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-content {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-text {
  font-size: 0.88rem;
  color: var(--gray-300);
  max-width: 820px;
  line-height: 1.5;
}

.cookie-text a {
  color: var(--gold-400);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   17. Site Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--slate-950);
  border-top: 1px solid var(--border-color);
  padding-top: 80px;
  padding-bottom: 30px;
  position: relative;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

/* "WOLF GENERALUNTERNEHMUNG" ist deutlich länger als das frühere "WOLF GU".
   Kleiner gesetzt und mit Umbruch, damit es in der Footer-Spalte sauber
   neben dem Logo steht (notfalls zweizeilig). */
.footer-brand-name {
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  line-height: 1.25;
}

@media (max-width: 1100px) {
  .footer-brand-name {
    font-size: 1.1rem;
  }
}

.footer-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 320px;
}

.footer-col-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--gold-500);
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-link:hover {
  color: var(--gold-400);
  transform: translateX(3px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.footer-contact-icon {
  color: var(--gold-500);
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-legal-link {
  font-size: 0.84rem;
  color: var(--text-muted);
  cursor: pointer;
}

.footer-legal-link:hover {
  color: var(--gold-400);
}

/* --------------------------------------------------------------------------
   18. Legal Modals (Impressum & Datenschutz)
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 13, 19, 0.85);
  backdrop-filter: blur(8px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open {
  display: flex;
}

.modal-dialog {
  background: var(--slate-850);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
}

.modal-close-btn {
  font-size: 1.5rem;
  color: var(--gray-400);
  line-height: 1;
  padding: 4px;
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--white);
}

.modal-body {
  padding: 28px;
  overflow-y: auto;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.modal-body h4 {
  color: var(--white);
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.modal-body p {
  margin-bottom: 14px;
}

/* Listen im Rechtstext: globalen list-style-Reset gezielt aufheben */
.modal-body ul {
  list-style: disc;
  padding-left: 22px;
  margin: 0 0 14px;
}

.modal-body li {
  margin-bottom: 6px;
}

.modal-body a {
  color: var(--gold-400);
  text-decoration: underline;
}

.modal-body .legal-subhead {
  display: block;
  margin-bottom: 6px;
  color: var(--text-primary);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   19. Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .calc-options-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .main-nav,
  .header-actions {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-badge-card {
    position: static;
    margin-top: 16px;
    max-width: 100%;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .floating-contact-rail {
    right: 12px;
  }
}

@media (max-width: 640px) {
  .section {
    padding-top: 70px;
    padding-bottom: 70px;
  }
  .hero-stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .highlights-grid {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .calc-options-grid {
    grid-template-columns: 1fr;
  }
  .calc-card {
    padding: 24px 18px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .contact-form-card {
    padding: 24px 18px;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .cookie-content {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-actions {
    justify-content: flex-end;
  }
}
