/* ============================================
   RG Tiefbau — Design System & Global Styles
   Aesthetic: Industrial Monumental
   ============================================ */

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

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

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* --- Design Tokens --- */
:root {
  --primary: #0D1117;
  --primary-light: #161B22;
  --surface: #1A1F28;
  --accent: #C8902E;
  --accent-hover: #B37D24;
  --accent-light: rgba(200, 144, 46, 0.1);
  --accent-glow: rgba(200, 144, 46, 0.25);
  --bg: #F5F0EB;
  --bg-warm: #EDE7DF;
  --bg-white: #FFFFFF;
  --text: #1A1A1A;
  --text-light: #555B63;
  --text-muted: #8A8F96;
  --border: #DDD8D2;
  --success: #16A34A;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 12px 40px rgba(0,0,0,0.06);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.08);
  --shadow-dramatic: 0 32px 80px rgba(0,0,0,0.12);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --nav-height: 90px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition: 0.4s var(--ease-out);
  --transition-slow: 0.7s var(--ease-out);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.05;
  color: var(--primary);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(3rem, 6.5vw, 5.5rem); font-weight: 800; }
h2 { font-size: clamp(2.25rem, 4vw, 3.5rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }

p {
  color: var(--text-light);
  font-size: 1.0625rem;
  line-height: 1.75;
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 140px 0;
  position: relative;
}

.section-label {
  display: inline-block;
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  position: relative;
  padding-left: 32px;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 20px;
  height: 2px;
  background: var(--accent);
}

.section-title {
  margin-bottom: 24px;
}

.section-subtitle {
  max-width: 580px;
  font-size: 1.125rem;
  color: var(--text-light);
  line-height: 1.8;
}

.section-header {
  margin-bottom: 72px;
}

.section-header.center {
  text-align: center;
}

.section-header.center .section-label::before {
  display: none;
}

.section-header.center .section-label {
  padding-left: 0;
}

.section-header.center .section-subtitle {
  margin: 0 auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 36px;
  font-family: 'Syne', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 0;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(200, 144, 46, 0.35);
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-ghost {
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
  backdrop-filter: blur(4px);
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
  transform: translateY(-3px);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

.btn-white {
  background: #fff;
  color: var(--primary);
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn svg,
.btn i {
  width: 18px;
  height: 18px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

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

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 70px;
  width: auto;
  transition: var(--transition);
}

.nav.scrolled .nav-logo-img {
  height: 56px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-family: 'Syne', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
}

.nav-links a:hover {
  color: #fff;
}

.nav.scrolled .nav-links a {
  color: rgba(255,255,255,0.65);
}

.nav.scrolled .nav-links a:hover {
  color: #fff;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 12px 28px !important;
  font-size: 0.8125rem !important;
  background: var(--accent);
  color: #fff !important;
  letter-spacing: 1.5px;
  border-radius: 0;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--accent-hover) !important;
  color: #fff;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  transition: var(--transition);
  border-radius: 0;
}

.nav.scrolled .nav-toggle span {
  background: #fff;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--primary);
  padding-bottom: 10px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  filter: saturate(0.3);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(13, 17, 23, 0.95) 0%,
    rgba(13, 17, 23, 0.65) 50%,
    rgba(13, 17, 23, 0.85) 100%
  );
  z-index: 2;
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 800px;
  padding-top: var(--nav-height);
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 36px;
}

.hero-label span {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 0;
  transform: rotate(45deg);
}

.hero h1 {
  color: #fff;
  margin-bottom: 32px;
  line-height: 0.95;
}

.hero h1 .highlight {
  color: var(--accent);
  font-style: italic;
}

.hero h1 .highlight-stroke {
  -webkit-text-stroke: 2px rgba(255,255,255,0.5);
  color: transparent;
}

.hero-text {
  font-size: 1.1875rem;
  color: rgba(255,255,255,0.55);
  max-width: 520px;
  margin-bottom: 48px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  position: relative;
  z-index: 4;
  display: flex;
  gap: 56px;
  margin-top: 96px;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.hero-stat h3 {
  font-family: 'Syne', sans-serif;
  color: #fff;
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-stat p {
  color: rgba(255,255,255,0.35);
  font-size: 0.8125rem;
  font-weight: 500;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Scroll line indicator */
.hero-scroll-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  z-index: 4;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; height: 60px; }
  50% { opacity: 1; height: 80px; }
}

/* --- About Section --- */
.about {
  background: var(--bg-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 96px;
  align-items: center;
}

.about-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.85);
  transition: var(--transition-slow);
}

.about-image:hover img {
  transform: scale(1.03);
  filter: saturate(1);
}

.about-image-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--accent);
  color: #fff;
  padding: 24px 32px;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.about-image-badge span {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  opacity: 0.85;
  letter-spacing: 0;
}

.about-content .section-subtitle {
  margin-bottom: 32px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.about-feature:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.about-feature-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-feature-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.about-feature h4 {
  color: var(--primary);
  margin-bottom: 4px;
  font-size: 1rem;
}

.about-feature p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* --- Services Section --- */
.services {
  background: var(--primary);
  overflow: hidden;
}

.services .section-label {
  color: var(--accent);
}

.services .section-label::before {
  background: var(--accent);
}

.services .section-title {
  color: #fff;
}

.services .section-subtitle {
  color: rgba(255,255,255,0.5);
}

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

.service-card {
  background: var(--surface);
  padding: 48px 36px;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, transparent 50%, rgba(200,144,46,0.05) 50%);
  transition: var(--transition);
}

.service-card:hover {
  background: var(--primary-light);
  transform: translateY(-4px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover::after {
  width: 120px;
  height: 120px;
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(200, 144, 46, 0.08);
  border: 1px solid rgba(200, 144, 46, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.service-icon svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

.service-card h3 {
  color: #fff;
  margin-bottom: 14px;
  font-size: 1.25rem;
}

.service-card p {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}

/* --- Why Us Section --- */
.why-us {
  background: var(--bg-white);
}

.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: center;
}

.why-us-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 48px;
}

.why-us-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.why-us-item:first-child {
  border-top: 1px solid var(--border);
}

.why-us-item:hover {
  padding-left: 16px;
  border-color: var(--accent);
}

.why-us-number {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  min-width: 56px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.why-us-item h4 {
  margin-bottom: 8px;
}

.why-us-item p {
  font-size: 0.9375rem;
  color: var(--text-light);
}

.why-us-image {
  overflow: hidden;
  aspect-ratio: 3/4;
}

.why-us-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8);
  transition: var(--transition-slow);
}

.why-us-image:hover img {
  transform: scale(1.03);
  filter: saturate(1);
}

/* --- Stats Section --- */
.stats {
  background: var(--primary);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.stats-grain {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

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

.stat-item {
  text-align: center;
  padding: 40px;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,0.08);
}

.stat-label {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.stat-item h3 {
  color: #fff;
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-item p {
  color: rgba(255,255,255,0.35);
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}

/* --- Projects Section --- */
.projects {
  background: var(--bg);
}

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

.project-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

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

.project-card:hover img {
  transform: scale(1.08);
  filter: saturate(1);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,17,23,0.95) 0%, rgba(13,17,23,0.3) 40%, transparent 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--accent);
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  width: fit-content;
}

.project-overlay h4 {
  color: #fff;
  font-size: 1.375rem;
  margin-bottom: 4px;
}

.project-overlay p {
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
}

/* --- Map Section --- */
.map-section {
  background: var(--bg-white);
}

.map-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: center;
}

.map-svg-wrapper {
  display: flex;
  justify-content: center;
}

.germany-map-container {
  position: relative;
  max-width: 500px;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  border: 2px solid var(--accent);
}

.germany-map-iframe {
  width: 100%;
  height: 500px;
  border: none;
  display: block;
}

.germany-map-img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.7) contrast(1.1);
}

.germany-map-fallback {
  max-width: 400px;
  width: 100%;
  height: auto;
}

.map-label-overlay {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.map-label-tag {
  background: var(--accent);
  color: #fff;
  padding: 10px 24px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(200, 144, 46, 0.4);
}

.map-svg-wrapper svg {
  max-width: 400px;
  width: 100%;
  height: auto;
}

.map-content .section-subtitle {
  margin-bottom: 40px;
}

.map-highlights {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.map-highlight {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.map-highlight:first-child {
  border-top: 1px solid var(--border);
}

.map-highlight-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  background: var(--accent);
  transform: rotate(45deg);
}

.map-highlight p {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
}

/* --- Testimonials --- */
.testimonials {
  background: var(--bg);
}

.testimonials-slider {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.6s var(--ease-out);
}

.testimonial-card {
  min-width: 100%;
  padding: 64px;
  background: var(--bg-white);
  text-align: center;
  border: 1px solid var(--border);
}

.testimonial-quote {
  font-size: 1.375rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto 40px;
}

.testimonial-quote::before {
  content: '\201E';
  font-family: 'Syne', sans-serif;
  font-size: 4rem;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
  font-style: normal;
  line-height: 0.5;
}

.testimonial-author {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.125rem;
}

.testimonial-role {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.testimonials-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.testimonials-nav button {
  width: 40px;
  height: 3px;
  border-radius: 0;
  background: var(--border);
  transition: var(--transition);
}

.testimonials-nav button.active {
  background: var(--accent);
  width: 60px;
}

/* --- Contact Section --- */
.contact {
  background: var(--bg-warm);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
}

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

.contact-info-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.contact-info-item h4 {
  margin-bottom: 4px;
}

.contact-info-item p {
  font-size: 0.9375rem;
}

.contact-form {
  background: var(--bg-white);
  padding: 48px;
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group label {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  transition: var(--transition);
  background: var(--bg);
  color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
  background: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 16px;
  text-align: center;
}

/* --- Footer --- */
.footer {
  background: var(--primary);
  padding: 80px 0 0;
}

.footer-logo-img {
  height: 72px;
  width: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand p {
  color: rgba(255,255,255,0.35);
  font-size: 0.9375rem;
  margin-top: 20px;
  max-width: 300px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.8125rem;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.35);
  font-size: 0.9375rem;
  margin-bottom: 12px;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.2);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.2);
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: rgba(255,255,255,0.5);
}

/* --- Live Chat Widget --- */
.chat-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
}

.chat-toggle {
  width: 56px;
  height: 56px;
  border-radius: 0;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(200, 144, 46, 0.35);
  transition: var(--transition);
  position: relative;
  z-index: 2;
}

.chat-toggle:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.chat-icon-close {
  display: none;
}

.chat-widget.open .chat-icon-open {
  display: none;
}

.chat-widget.open .chat-icon-close {
  display: block;
}

.chat-panel {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 380px;
  height: 500px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-dramatic);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  pointer-events: none;
  transition: var(--transition);
}

.chat-widget.open .chat-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-header {
  background: var(--primary);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.chat-header-avatar-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
  padding: 2px;
}

.chat-header h4 {
  color: #fff;
  font-size: 1rem;
}

.chat-status {
  color: #4ade80;
  font-size: 0.75rem;
  font-weight: 500;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-message {
  max-width: 85%;
}

.chat-message p {
  padding: 14px 18px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text);
}

.chat-message-bot p {
  background: var(--bg);
  border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
}

.chat-message-user {
  align-self: flex-end;
}

.chat-message-user p {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-md) 0 var(--radius-md) var(--radius-md);
}

.chat-time {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 4px;
  padding: 0 4px;
}

.chat-message-user .chat-time {
  text-align: right;
}

.chat-input-area {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-white);
}

.chat-input-area input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 0;
  font-family: inherit;
  font-size: 0.875rem;
  transition: var(--transition);
  background: var(--bg);
}

.chat-input-area input:focus {
  outline: none;
  border-color: var(--accent);
}

.chat-input-area button {
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.chat-input-area button:hover {
  background: var(--accent-hover);
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.9s var(--ease-out),
              transform 0.9s var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.stagger-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-out),
              transform 0.7s var(--ease-out);
}

.stagger-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

.stagger-item-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s var(--ease-out),
              transform 0.7s var(--ease-out);
}

.stagger-item-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* --- Legal Pages (Impressum, Datenschutz) --- */
.legal-page .section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  word-break: break-word;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .about-grid,
  .map-grid,
  .contact-grid,
  .why-us-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .services-grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stats {
    gap: 40px;
  }

  .why-us-image {
    order: -1;
    aspect-ratio: 16/9;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 96px 0;
  }

  .container {
    padding: 0 20px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--primary);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    padding: 40px;
    transition: var(--transition);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    color: rgba(255,255,255,0.65) !important;
    font-size: 1.25rem;
    letter-spacing: 3px;
  }

  .nav-toggle {
    display: flex;
  }

  .services-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    text-align: center;
    justify-content: center;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .testimonial-card {
    padding: 40px 24px;
  }

  .chat-panel {
    width: calc(100vw - 40px);
    right: -14px;
  }

  .contact-form {
    padding: 32px 20px;
  }

  .service-card {
    padding: 36px 28px;
  }

  .hero h1 .highlight-stroke {
    -webkit-text-stroke: 1px rgba(255,255,255,0.5);
  }
}
