/*
  ASLAN Haustechnik — Main Stylesheet
  ────────────────────────────────────
  Fonts: Google Fonts (loaded in header.php)
  For GDPR-compliant production: self-host fonts using
  https://google-webfonts-helper.herokuapp.com/
  and replace the @import in header.php with local @font-face declarations.
*/

/* ══════════════════════════════════════
   CSS Custom Properties
   ══════════════════════════════════════ */
:root {
  --red:        #8B1A1A;
  --red-cta:    #9B2020;
  --red-hover:  #7A1515;
  --red-light:  rgba(139,26,26,.08);
  --red-border: rgba(139,26,26,.25);

  --white:      #FFFFFF;
  --cream:      #F9F6F1;
  --cream-dark: #F2EDE4;
  --text-dark:  #0F0F0F;
  --text-body:  #2C2C2C;
  --text-gray:  #6B6B6B;
  --text-light: #9B9588;
  --border:     #E5E0D8;

  --shadow-sm:  0 2px 8px rgba(0,0,0,.06);
  --shadow-md:  0 4px 24px rgba(0,0,0,.10);
  --shadow-lg:  0 12px 48px rgba(0,0,0,.15);

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', 'Helvetica Neue', Arial, sans-serif;

  --space-xs:   8px;
  --space-sm:   16px;
  --space-md:   24px;
  --space-lg:   48px;
  --space-xl:   80px;
  --space-2xl:  120px;

  --radius:     2px;
  --tr:         0.3s ease;
  --container:  1200px;
  --side-pad:   clamp(20px, 5vw, 48px);
}

/* ══════════════════════════════════════
   Reset & Base
   ══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

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

body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; transition: color var(--tr); }
button { cursor: pointer; font-family: var(--font-sans); }
ul, ol { list-style: none; }
input, textarea, select { font-family: var(--font-sans); }

/* ══════════════════════════════════════
   Skip link (accessibility)
   ══════════════════════════════════════ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--red);
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
  font-size: 14px;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ══════════════════════════════════════
   Layout helpers
   ══════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--side-pad);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════
   Typography
   ══════════════════════════════════════ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--space-sm);
}
.section-label::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1.5px;
  background: var(--red);
  flex-shrink: 0;
}

h1, h2, h3 { font-family: var(--font-serif); line-height: 1.15; color: var(--text-dark); }
h1 { font-size: clamp(36px, 6vw, 72px); font-weight: 700; }
h2 { font-size: clamp(28px, 4vw, 52px); font-weight: 700; }
h3 { font-size: clamp(20px, 2.5vw, 28px); font-weight: 600; }
h4 { font-family: var(--font-sans); font-size: 18px; font-weight: 600; color: var(--text-dark); }

p { color: var(--text-body); max-width: 65ch; }

.lead { font-size: 18px; line-height: 1.7; color: var(--text-gray); }
.small { font-size: 13px; color: var(--text-gray); }

/* ══════════════════════════════════════
   Buttons
   ══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--tr), color var(--tr), border-color var(--tr), transform var(--tr), box-shadow var(--tr);
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.btn-primary {
  background: var(--red-cta);
  color: #fff;
  border-color: var(--red-cta);
}
.btn-primary:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  box-shadow: 0 4px 16px rgba(139,26,26,.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text-dark);
  border-color: var(--text-dark);
}
.btn-secondary:hover {
  background: var(--text-dark);
  color: #fff;
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.15);
  border-color: #fff;
}

.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-lg { padding: 18px 36px; font-size: 15px; }

/* Text link with arrow */
.link-arrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--tr), color var(--tr);
}
.link-arrow:hover { gap: 10px; color: var(--red-hover); }

/* ══════════════════════════════════════
   Navigation
   ══════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--tr), box-shadow var(--tr);
  padding: 0 var(--side-pad);
}

/* transparent when over hero */
.site-nav.nav-transparent {
  background: transparent;
}
.site-nav.nav-transparent .nav-links a,
.site-nav.nav-transparent .nav-logo-text strong,
.site-nav.nav-transparent .nav-logo-text small {
  color: #fff;
}
.site-nav.nav-transparent .nav-icon path { stroke: #fff; fill: #fff; }

/* solid when scrolled or not on hero page */
.site-nav.nav-solid,
.site-nav:not(.nav-transparent) {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--container);
  margin-inline: auto;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 44px;
  width: auto;
  display: block;
  /* On dark/hero backgrounds the logo is mostly white-background — keep it readable */
}
/* Nav always solid — logo has white bg, looks clean */

/* Desktop links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-dark);
  letter-spacing: .02em;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--red);
  transition: width var(--tr);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 2px solid var(--red);
  min-width: 240px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity var(--tr), transform var(--tr);
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  color: var(--text-body);
  border-bottom: 1px solid var(--border);
  transition: background var(--tr), color var(--tr);
}
.nav-dropdown-menu a:last-child { border-bottom: none; }
.nav-dropdown-menu a:hover { background: var(--cream); color: var(--red); }

/* CTA button in nav */
.nav-cta { margin-left: 12px; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: transform var(--tr), opacity var(--tr), background var(--tr);
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  overflow-y: auto;
  padding: var(--space-md) var(--side-pad);
  z-index: 999;
}
.nav-mobile-menu.open { display: block; }
.nav-mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 18px;
  font-weight: 400;
  border-bottom: 1px solid var(--border);
  color: var(--text-dark);
}
.nav-mobile-menu .mobile-section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-gray);
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}
.nav-mobile-menu .btn { margin-top: var(--space-md); width: 100%; justify-content: center; }

@media (max-width: 1024px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
}

/* ══════════════════════════════════════
   Hero Section
   ══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--text-dark);
  margin-top: 72px; /* compensate for fixed nav */
}

.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: 0;
  transform: scale(1.03);
  transition: transform 6s ease;
}
.hero:hover .hero-bg { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0,0,0,.68) 0%,
    rgba(0,0,0,.42) 55%,
    rgba(0,0,0,.18) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px var(--side-pad) 80px;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: 20px;
  line-height: 1.8;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(42px, 7vw, 88px);
  font-weight: 700;
  color: #fff;
  line-height: 1.08;
  max-width: 700px;
  margin-bottom: 24px;
  opacity: 0;
  animation: heroFadeUp .9s .1s ease forwards;
}

.hero-subtitle {
  font-size: clamp(15px, 1.8vw, 18px);
  color: rgba(255,255,255,.82);
  margin-bottom: 40px;
  letter-spacing: .04em;
  opacity: 0;
  animation: heroFadeUp .9s .3s ease forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: heroFadeUp .9s .5s ease forwards;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.5);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}
.hero-scroll-hint svg { width: 16px; height: 16px; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ══════════════════════════════════════
   Feature Bar
   ══════════════════════════════════════ */
.feature-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: var(--space-md) var(--side-pad);
}
.feature-bar-inner {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border-right: 1px solid var(--border);
}
.feature-item:last-child { border-right: none; }
.feature-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: var(--red);
}
.feature-item-text strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dark);
  line-height: 1.3;
}
.feature-item-text span {
  font-size: 11px;
  color: var(--text-gray);
}

@media (max-width: 1024px) {
  .feature-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .feature-item:nth-child(2) { border-right: none; }
  .feature-item:nth-child(1),
  .feature-item:nth-child(2) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 480px) {
  .feature-bar-inner { grid-template-columns: 1fr; }
  .feature-item { border-right: none; border-bottom: 1px solid var(--border); }
  .feature-item:last-child { border-bottom: none; }
}

/* ══════════════════════════════════════
   Sections
   ══════════════════════════════════════ */
.section { padding: var(--space-xl) var(--side-pad); }
.section-sm { padding: var(--space-lg) var(--side-pad); }
.section-inner { max-width: var(--container); margin-inline: auto; }
.section-cream { background: var(--cream); }
.section-dark { background: var(--text-dark); color: #fff; }
.section-red { background: var(--red); color: #fff; }

.section-header { margin-bottom: var(--space-lg); }
.section-header-split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
}
.section-header-split p { max-width: 400px; color: var(--text-gray); }

/* ══════════════════════════════════════
   Service Cards
   ══════════════════════════════════════ */
.service-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.service-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .6s ease;
}
.service-card:hover .service-card-img { transform: scale(1.04); }
.service-card-body { padding: var(--space-sm) 0; }
.service-card-body h3 { font-size: 22px; margin-bottom: 8px; }
.service-card-body p  { font-size: 15px; color: var(--text-gray); margin-bottom: 16px; }

/* ══════════════════════════════════════
   Promise / Split Section
   ══════════════════════════════════════ */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}
.split-image {
  overflow: hidden;
  position: relative;
}
.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2xl) var(--space-xl);
  background: var(--cream);
}
.split-content h2 { margin-bottom: var(--space-sm); }
.split-content p { margin-bottom: var(--space-md); max-width: 46ch; }
.split-content .split-actions { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 1024px) {
  .split-section { grid-template-columns: 1fr; }
  .split-image { min-height: 380px; }
  .split-content { padding: var(--space-lg) var(--side-pad); }
}

/* ══════════════════════════════════════
   Process Steps
   ══════════════════════════════════════ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  counter-reset: steps;
}
.step-item { position: relative; padding-top: var(--space-md); }
.step-item::before {
  counter-increment: steps;
  content: "0" counter(steps);
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 700;
  color: var(--red-light);
  line-height: 1;
  display: block;
  margin-bottom: 16px;
}
.step-item h4 { margin-bottom: 8px; }
.step-item p { font-size: 15px; color: var(--text-gray); max-width: 28ch; }

@media (max-width: 1024px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .steps-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════
   CTA Banner
   ══════════════════════════════════════ */
.cta-banner {
  background: var(--red);
  padding: var(--space-xl) var(--side-pad);
  text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: var(--space-sm); }
.cta-banner p  { color: rgba(255,255,255,.75); margin-inline: auto; margin-bottom: var(--space-md); }
.cta-banner-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-white {
  background: #fff;
  color: var(--red);
  border-color: #fff;
}
.btn-white:hover { background: var(--cream); border-color: var(--cream); }

/* ══════════════════════════════════════
   Project Gallery
   ══════════════════════════════════════ */
.project-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}
.filter-btn {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-gray);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--tr);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--text-dark);
  border-color: var(--text-dark);
  color: #fff;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.project-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--cream-dark);
}
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.project-card:hover img { transform: scale(1.05); }
.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--tr);
  display: flex;
  align-items: flex-end;
  padding: 24px;
}
.project-card:hover .project-card-overlay { opacity: 1; }
.project-card-overlay h4 { color: #fff; font-size: 16px; }
.project-card-overlay small { color: rgba(255,255,255,.7); font-size: 12px; }
.project-cat-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius);
}

@media (max-width: 768px) { .project-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .project-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════
   Service Detail Page
   ══════════════════════════════════════ */
.page-hero {
  position: relative;
  height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--text-dark);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.2) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 1;
  padding: 48px var(--side-pad);
  max-width: var(--container);
  margin-inline: auto;
  width: 100%;
}
.page-hero-content .section-label { color: rgba(255,255,255,.6); }
.page-hero-content .section-label::after { background: rgba(255,255,255,.6); }
.page-hero-content h1 { color: #fff; font-size: clamp(32px, 5vw, 56px); }

/* ══════════════════════════════════════
   Feature List
   ══════════════════════════════════════ */
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: var(--space-md) 0; }
.feature-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
}
.feature-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--red-light);
  border: 1.5px solid var(--red-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.feature-check svg { width: 10px; height: 10px; color: var(--red); }
@media (max-width: 600px) { .feature-list { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════
   Contact info block
   ══════════════════════════════════════ */
.contact-block { display: flex; flex-direction: column; gap: var(--space-sm); }
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: var(--space-sm) var(--space-md);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--tr), box-shadow var(--tr);
}
.contact-item:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-sm);
}
.contact-item-icon {
  width: 40px;
  height: 40px;
  background: var(--red-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  flex-shrink: 0;
}
.contact-item-text small {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-gray);
  margin-bottom: 2px;
}
.contact-item-text strong { font-size: 15px; font-weight: 500; }

/* ══════════════════════════════════════
   Forms
   ══════════════════════════════════════ */
.form-group { margin-bottom: var(--space-sm); }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 6px;
  letter-spacing: .02em;
}
.form-label .required { color: var(--red); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--tr), box-shadow var(--tr);
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(139,26,26,.1);
}
.form-control::placeholder { color: var(--text-light); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6B6B' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-hint { font-size: 12px; color: var(--text-gray); margin-top: 4px; }
.form-error { font-size: 12px; color: #c0392b; margin-top: 4px; }
.form-control.has-error { border-color: #c0392b; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* Checkbox */
.form-check { display: flex; align-items: flex-start; gap: 10px; }
.form-check input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--red);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}
.form-check label { font-size: 14px; color: var(--text-body); cursor: pointer; }

/* ══════════════════════════════════════
   Wizard
   ══════════════════════════════════════ */
.wizard-wrap {
  background: var(--cream);
  min-height: 100vh;
  padding: 100px var(--side-pad) var(--space-xl);
}
.wizard-inner {
  max-width: 760px;
  margin-inline: auto;
  background: var(--white);
  border: 1px solid var(--border);
  padding: var(--space-xl) clamp(24px, 6vw, 64px);
}

/* Step indicators */
.wizard-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: var(--space-xl);
  overflow-x: auto;
  padding-bottom: 4px;
}
.wizard-step-item {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  min-width: 0;
}
.wizard-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-gray);
  flex-shrink: 0;
  transition: all var(--tr);
  z-index: 1;
}
.wizard-step-item.active .wizard-step-dot {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}
.wizard-step-item.done .wizard-step-dot {
  border-color: var(--red);
  background: var(--red-light);
  color: var(--red);
}
.wizard-step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  transition: background var(--tr);
}
.wizard-step-item.done + .wizard-step-item .wizard-step-line,
.wizard-step-item.done .wizard-step-line { background: var(--red); }
.wizard-step-label {
  font-size: 11px;
  color: var(--text-gray);
  text-align: center;
  margin-top: 6px;
  white-space: nowrap;
}
.wizard-step-item.active .wizard-step-label { color: var(--red); font-weight: 600; }

/* Wizard panels */
.wizard-panel { display: none; }
.wizard-panel.active { display: block; }

.wizard-panel h2 { font-size: 28px; margin-bottom: 8px; }
.wizard-panel .lead { margin-bottom: var(--space-md); }

/* Service selection tiles */
.service-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: var(--space-md);
}
.service-tile {
  border: 1.5px solid var(--border);
  padding: 20px 16px;
  cursor: pointer;
  text-align: center;
  transition: all var(--tr);
  border-radius: var(--radius);
  position: relative;
}
.service-tile:hover { border-color: var(--red); background: var(--red-light); }
.service-tile.selected {
  border-color: var(--red);
  background: var(--red-light);
}
.service-tile.selected::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 11px;
  color: var(--red);
  font-weight: 700;
}
.service-tile svg { width: 28px; height: 28px; color: var(--red); margin: 0 auto 10px; }
.service-tile strong { display: block; font-size: 13px; font-weight: 600; color: var(--text-dark); }

/* Project type cards */
.type-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.type-card {
  border: 1.5px solid var(--border);
  padding: 20px;
  cursor: pointer;
  transition: all var(--tr);
  border-radius: var(--radius);
}
.type-card:hover { border-color: var(--red); }
.type-card.selected { border-color: var(--red); background: var(--red-light); }
.type-card svg { width: 24px; height: 24px; color: var(--red); margin-bottom: 8px; }
.type-card strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.type-card span { font-size: 12px; color: var(--text-gray); }

/* File upload zone */
.file-upload-zone {
  border: 2px dashed var(--border);
  padding: var(--space-md);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--tr), background var(--tr);
  border-radius: var(--radius);
}
.file-upload-zone:hover, .file-upload-zone.dragover {
  border-color: var(--red);
  background: var(--red-light);
}
.file-upload-zone p { font-size: 14px; color: var(--text-gray); margin-bottom: 8px; }
.file-upload-zone input[type="file"] { display: none; }

.file-preview-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.file-preview-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.file-preview-item img { width: 36px; height: 36px; object-fit: cover; border-radius: 2px; }
.file-preview-item span { flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-preview-item button { background: none; border: none; color: var(--text-gray); font-size: 18px; line-height: 1; padding: 0; }
.file-preview-item button:hover { color: #c0392b; }

/* Wizard navigation */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

/* Summary table */
.summary-table { width: 100%; border-collapse: collapse; margin-bottom: var(--space-md); }
.summary-table tr { border-bottom: 1px solid var(--border); }
.summary-table tr:last-child { border-bottom: none; }
.summary-table td { padding: 12px 0; font-size: 14px; vertical-align: top; }
.summary-table td:first-child { color: var(--text-gray); width: 40%; }
.summary-table td:last-child { font-weight: 500; }

/* Wizard success */
.wizard-success { text-align: center; padding: var(--space-lg) 0; }
.wizard-success svg { width: 56px; height: 56px; color: var(--red); margin: 0 auto var(--space-sm); }
.vorgangsnummer-badge {
  display: inline-block;
  font-size: 22px;
  font-weight: 700;
  color: var(--red);
  background: var(--red-light);
  border: 1px solid var(--red-border);
  padding: 12px 28px;
  border-radius: var(--radius);
  margin: var(--space-sm) 0;
  letter-spacing: .06em;
}

@media (max-width: 600px) {
  .service-tiles  { grid-template-columns: 1fr 1fr; }
  .type-cards     { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════
   Footer
   ══════════════════════════════════════ */
.site-footer {
  background: #0F0F0F;
  color: rgba(255,255,255,.65);
  padding: var(--space-xl) var(--side-pad) 0;
}
.footer-inner {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo { margin-bottom: var(--space-sm); }
.footer-logo .nav-logo-text strong { color: #fff; }
.footer-logo .nav-logo-text small  { color: rgba(255,255,255,.4); }
.footer-col h5 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: var(--space-sm);
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  transition: color var(--tr);
}
.footer-col ul li a:hover { color: #fff; }
.footer-desc { font-size: 14px; line-height: 1.7; margin-bottom: var(--space-sm); max-width: 30ch; }
.footer-contact { font-size: 14px; line-height: 2; }
.footer-contact a { color: rgba(255,255,255,.65); }
.footer-contact a:hover { color: #fff; }

.footer-bottom {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: rgba(255,255,255,.4); transition: color var(--tr); }
.footer-bottom-links a:hover { color: rgba(255,255,255,.8); }

@media (max-width: 1024px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px)  { .footer-inner { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════
   Flash messages
   ══════════════════════════════════════ */
.flash {
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 10px;
}
.flash-success { background: #d4edda; color: #155724; border-left: 4px solid #28a745; }
.flash-error   { background: #f8d7da; color: #721c24; border-left: 4px solid #dc3545; }

/* ══════════════════════════════════════
   Breadcrumb
   ══════════════════════════════════════ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-gray); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb-sep { color: var(--border); }

/* ══════════════════════════════════════
   Scroll animations
   ══════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in.delay-1 { transition-delay: .1s; }
.fade-in.delay-2 { transition-delay: .2s; }
.fade-in.delay-3 { transition-delay: .3s; }

/* ══════════════════════════════════════
   Legal pages (Impressum, Datenschutz)
   ══════════════════════════════════════ */
.legal-content { max-width: 720px; }
.legal-content h2 { font-size: 24px; margin-top: var(--space-lg); margin-bottom: var(--space-sm); }
.legal-content h3 { font-size: 18px; margin-top: var(--space-md); margin-bottom: 8px; }
.legal-content p, .legal-content li { font-size: 15px; line-height: 1.75; margin-bottom: 12px; }
.legal-content ul { list-style: disc; padding-left: var(--space-md); }
.todo-badge {
  display: inline-block;
  background: #FFF3CD;
  color: #856404;
  border: 1px solid #FFEAA7;
  padding: 2px 10px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-sans);
}

/* ══════════════════════════════════════
   Loading spinner
   ══════════════════════════════════════ */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════
   Customer portal
   ══════════════════════════════════════ */
.portal-wrap { max-width: 800px; margin-inline: auto; padding: 100px var(--side-pad) var(--space-xl); }
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
}
.status-neu              { background: #E3F2FD; color: #0D47A1; }
.status-in_bearbeitung   { background: #FFF8E1; color: #E65100; }
.status-angebot_versendet{ background: #F3E5F5; color: #6A1B9A; }
.status-auftrag_bestaetigt { background: #E8F5E9; color: #1B5E20; }
.status-abgeschlossen    { background: #ECEFF1; color: #37474F; }
.status-abgelehnt        { background: #FFEBEE; color: #B71C1C; }

.message-thread { display: flex; flex-direction: column; gap: 12px; margin: var(--space-md) 0; }
.message-item { padding: 14px 18px; border-radius: var(--radius); max-width: 90%; }
.message-item.from-admin { background: var(--cream); align-self: flex-start; }
.message-item.from-kunde { background: var(--red-light); align-self: flex-end; border: 1px solid var(--red-border); }
.message-meta { font-size: 11px; color: var(--text-gray); margin-bottom: 6px; }
.message-text { font-size: 14px; }
