/* =============================================
   BAROTECH — style.css
   Design System: Crescent modifiziert (Dunkel + ROT)
   Logo: "BARO" schwarz, "TECH" #E31E24 (Rot)
   ============================================= */

:root {
  /* Dark base (analog Navy bei Crescent) */
  --dark-900: #181c20;
  --dark-800: #1f2428;
  --dark-700: #282e35;
  --dark-300: #8b95a1;

  /* RED — Markenaküent statt Gold */
  --red-500:  #e31e24;
  --red-600:  #c41a1f;
  --red-700:  #a61518;
  --red-50:   rgba(227,30,36,.08);
  --red-100:  rgba(227,30,36,.15);

  /* Flächen & Text */
  --bg:        #f2f1ee;
  --surface:   #ffffff;
  --text:      #1a2028;
  --text-muted:#6b7480;
  --border:    #e4e1db;

  /* Fonts */
  --font-display: 'Poppins', sans-serif;
  --font-body:    'Manrope', sans-serif;
  --font-serif:   'Cormorant Garamond', serif;

  /* Spacing */
  --space-1: 4px;  --space-2: 8px;
  --space-3: 16px; --space-4: 24px;
  --space-5: 40px; --space-6: 64px;

  /* Radii */
  --radius-sm: 4px;  --radius-md: 8px;
  --radius-lg: 14px; --radius-full: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(24,28,32,.06);
  --shadow-md: 0 6px 20px rgba(24,28,32,.09);
  --shadow-lg: 0 18px 44px rgba(24,28,32,.16);

  --container: 1200px;
  --nav-h: 72px;
  --topbar-h: 38px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
::selection { background: var(--red-500); color: #fff; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- LAYOUT ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-red {
  background: var(--red-500);
  color: #fff;
}
.btn-red:hover { background: var(--red-600); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(227,30,36,.35); }

.btn-dark {
  background: var(--dark-900);
  color: #fff;
}
.btn-dark:hover { background: var(--dark-700); }

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.45);
}
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }

.btn-full { width: 100%; justify-content: center; }

/* ---- SECTION TYPOGRAPHY ---- */
.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red-500);
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 16px;
  color: var(--text);
}
.section-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 580px;
}
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .section-sub { margin: 0 auto; }

/* =============================================
   TOPBAR
   ============================================= */
.topbar {
  background: var(--dark-900);
  height: var(--topbar-h);
  display: flex;
  align-items: center;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,.55);
}
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar-left a, .topbar-right a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: color .2s;
}
.topbar-left a:hover { color: var(--red-500); }
.topbar-sep { opacity: .3; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  gap: 32px;
}
.nav-logo img {
  height: 38px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
  border-bottom-color: var(--red-500);
}
.nav-cta {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  background: var(--red-500);
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 22px;
  cursor: pointer;
  margin-left: auto;
  text-decoration: none;
  display: inline-block;
  transition: background .2s, transform .15s;
}
.nav-cta:hover { background: var(--red-600); transform: translateY(-1px); }

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 4px;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--surface);
  padding: 16px 32px 24px;
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.mobile-link:hover { color: var(--red-500); }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: calc(100vh - var(--topbar-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.hero:hover .hero-bg { transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(24,28,32,.88) 0%, rgba(24,28,32,.65) 50%, rgba(24,28,32,.4) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  padding-bottom: 80px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red-500);
  background: rgba(227,30,36,.12);
  border: 1px solid rgba(227,30,36,.3);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.08;
  letter-spacing: -.03em;
  color: #fff;
  max-width: 700px;
  margin-bottom: 20px;
}
.hero-accent { color: var(--red-500); }
.hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255,255,255,.75);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Stats Bar */
.hero-stats {
  position: relative;
  z-index: 2;
  background: rgba(24,28,32,.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(227,30,36,.2);
}
.hero-stats-inner {
  display: flex;
  align-items: center;
  padding: 20px 32px;
}
.stat { display: flex; flex-direction: column; align-items: center; flex: 1; padding: 8px 0; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  color: var(--red-500);
  line-height: 1;
}
.stat-label { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 4px; letter-spacing: .04em; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,.1); }

/* =============================================
   USP
   ============================================= */
.usp-section { padding: 72px 0; background: var(--surface); }
.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.usp-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.usp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.usp-card--featured {
  background: var(--dark-900);
  border-color: var(--red-500);
  color: #fff;
}
.usp-card--featured h3 { color: #fff; }
.usp-card--featured p { color: var(--dark-300); }
.usp-card--featured .usp-icon { background: var(--red-100); color: var(--red-500); }
.usp-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--red-50);
  color: var(--red-500);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.usp-icon svg { width: 24px; height: 24px; }
.usp-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 10px;
}
.usp-card p { font-size: 13px; line-height: 1.65; color: var(--text-muted); }

/* =============================================
   ÜBER UNS
   ============================================= */
.about-section { padding: 96px 0; background: var(--bg); }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-text p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.about-text .btn { margin-top: 12px; }
.about-highlight {
  font-weight: 700;
  color: var(--red-500) !important;
  font-size: 16px !important;
}
.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.feature-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.feature-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--red-50);
  color: var(--red-500);
  display: flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-item h4 { font-family: var(--font-display); font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.feature-item p { font-size: 13px; line-height: 1.65; color: var(--text-muted); }
.feature-link { color: var(--red-500); font-weight: 600; text-decoration: none; }
.feature-link:hover { text-decoration: underline; }

/* =============================================
   DIENSTLEISTUNGEN
   ============================================= */
.leistungen-section { padding: 96px 0; background: var(--dark-900); }
.leistungen-section .section-title { color: #fff; }
.leistungen-section .section-sub { color: var(--dark-300); }

.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.leistung-card {
  background: var(--dark-800);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.leistung-card:hover { border-color: rgba(227,30,36,.4); transform: translateY(-3px); }
.leistung-card--featured { border-color: rgba(227,30,36,.35); }

.leistung-img-wrap { height: 160px; overflow: hidden; }
.leistung-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.leistung-card:hover .leistung-img { transform: scale(1.06); }
.leistung-body { padding: 24px; }
.leistung-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--red-100);
  color: var(--red-500);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.leistung-icon svg { width: 20px; height: 20px; }
.leistung-card h4 { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: #fff; margin-bottom: 8px; }
.leistung-card p { font-size: 13px; line-height: 1.65; color: var(--dark-300); }

/* All-leistungen list */
.leistungen-list-wrap {
  background: var(--dark-800);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
}
.leistungen-list-wrap h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: #fff;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.leistungen-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
}
.leistungen-cols ul { list-style: none; }
.leistungen-cols li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--dark-300);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.leistungen-cols li:last-child { border-bottom: none; }
.leistungen-cols svg { width: 16px; height: 16px; color: var(--red-500); flex-shrink: 0; }

/* =============================================
   ABLAUF
   ============================================= */
.ablauf-section { padding: 96px 0; background: var(--surface); }
.ablauf-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.ablauf-step {
  padding: 0 32px;
  position: relative;
  text-align: center;
}
.ablauf-step:first-child { padding-left: 0; }
.ablauf-step:last-child { padding-right: 0; }
.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 48px;
  color: var(--red-500);
  line-height: 1;
  margin-bottom: 16px;
  opacity: .9;
}
.step-connector {
  position: absolute;
  top: 24px;
  right: -1px;
  width: 50%;
  height: 2px;
  background: linear-gradient(to right, var(--red-500), rgba(227,30,36,.2));
}
.step-body h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text);
}
.step-body p { font-size: 14px; line-height: 1.7; color: var(--text-muted); }

/* =============================================
   GALERIE
   ============================================= */
.galerie-section { padding: 96px 0; background: var(--bg); }

.galerie-filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.filter-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s;
}
.filter-btn:hover { border-color: var(--red-500); color: var(--red-500); }
.filter-btn.active { background: var(--red-500); border-color: var(--red-500); color: #fff; }

.galerie-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.galerie-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.galerie-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}
.galerie-item:hover img { transform: scale(1.07); }
.galerie-overlay {
  position: absolute;
  inset: 0;
  background: rgba(227,30,36,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
}
.galerie-item:hover .galerie-overlay { opacity: 1; }
.galerie-overlay span {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Hidden filter items */
.galerie-item.hidden { display: none; }

/* =============================================
   KONTAKT
   ============================================= */
.kontakt-section { padding: 96px 0; background: var(--dark-900); }
.kontakt-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.kontakt-details { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.kontakt-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--dark-300);
  font-size: 14px;
  line-height: 1.6;
}
.kontakt-detail-item svg { width: 18px; height: 18px; color: var(--red-500); flex-shrink: 0; margin-top: 2px; }
.kontakt-detail-item a { color: var(--dark-300); text-decoration: none; transition: color .2s; }
.kontakt-detail-item a:hover { color: var(--red-500); }

.kontakt-form-wrap {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.kontakt-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text); }
.form-group input,
.form-group textarea,
.form-group select {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: #faf9f7;
  color: var(--text);
  outline: none;
  transition: border-color .2s, background .2s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--red-500); background: #fff; }
.form-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-muted); }
.form-check input { flex-shrink: 0; margin-top: 2px; accent-color: var(--red-500); }
.form-check a { color: var(--red-600); }
.form-success {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--red-600);
  padding: 12px;
  background: rgba(227,30,36,.07);
  border-radius: var(--radius-md);
}

/* =============================================
   FOOTER
   ============================================= */
.footer { background: #0f1317; color: rgba(255,255,255,.6); padding: 72px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-logo { height: 36px; width: auto; margin-bottom: 14px; }
.footer-desc { font-size: 14px; line-height: 1.65; max-width: 260px; }
.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: rgba(255,255,255,.5); text-decoration: none; font-size: 14px; transition: color .2s; }
.footer-nav a:hover { color: var(--red-500); }
.footer-address { font-style: normal; font-size: 14px; line-height: 1.8; }
.footer-address a { color: rgba(255,255,255,.5); text-decoration: none; }
.footer-address a:hover { color: var(--red-500); }

.footer-bottom {
  padding: 18px 0;
  background: rgba(0,0,0,.3);
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: rgba(255,255,255,.28);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner, .kontakt-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .leistungen-grid { grid-template-columns: repeat(2, 1fr); }
  .galerie-grid { grid-template-columns: repeat(3, 1fr); }
  .ablauf-steps { grid-template-columns: 1fr; gap: 48px; }
  .step-connector { display: none; }
  .ablauf-step { padding: 0; text-align: left; display: flex; gap: 24px; align-items: flex-start; }
  .step-num { font-size: 36px; min-width: 60px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .topbar-right { display: none; }
  .usp-grid { grid-template-columns: 1fr; }
  .leistungen-grid { grid-template-columns: 1fr; }
  .galerie-grid { grid-template-columns: repeat(2, 1fr); }
  .leistungen-cols { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-title { font-size: 36px; }
  .kontakt-form-wrap { padding: 24px; }
  .hero-stats-inner { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .stat-divider { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .galerie-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}
