/* ============================================================
   Fugen-Rubitzsch GmbH - gemeinsames Design-System
   Wird von allen Seiten eingebunden (index, leistungen, referenzen,
   ueber-uns, kontakt, karriere). Nur hier ändern, nicht pro Seite!
   ============================================================ */

:root{
  color-scheme: light;

  /* Marken-/Rollenfarben - Original-Farbschema Fugen-Rubitzsch GmbH */
  --navy-950: #0c2338;
  --navy-900: #123350;
  --navy-800: #163c5e;
  --navy-700: #1a456f;
  --navy-600: #2a567f;
  --navy-500: #3d72a3;
  --red-600:  #a01329;
  --red-500:  #c61833;
  --red-400:  #dd4a60;

  --page:           #f2f2f2;
  --surface-1:      #ffffff;
  --surface-2:      #e8eef4;
  --text-primary:   #2c2c2a;
  --text-secondary: #5f5e5a;
  --muted:          #8b8b86;
  --border:         rgba(44,44,42,0.10);
  --border-strong:  rgba(44,44,42,0.18);
  --shadow-soft:    0 8px 30px rgba(18,51,80,0.10);
  --shadow-lift:    0 20px 50px rgba(18,51,80,0.20);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --ease: cubic-bezier(.16,.84,.44,1);
  --dur-fast: .25s;
  --dur-med: .5s;
  --dur-slow: .9s;

  --header-h: 76px;
}

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

html{ scroll-behavior: smooth; }

body{
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--page);
  color: var(--text-primary);
  line-height:1.55;
  -webkit-font-smoothing: antialiased;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; cursor:pointer; }

.wrap{ max-width:1240px; margin:0 auto; padding:0 28px; }

/* ---------- Sticky Header ---------- */
.site-header{
  position: fixed; top:0; left:0; right:0; z-index:1000;
  height: var(--header-h);
  display:flex; align-items:center;
  background: rgba(12,35,56,0.28);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background var(--dur-fast) var(--ease), backdrop-filter var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.site-header.is-scrolled{
  background: rgba(12,35,56,0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  border-bottom-color: rgba(255,255,255,0.12);
}
.site-header .wrap{
  display:flex; align-items:center; justify-content:space-between; width:100%;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:800; font-size:17px; letter-spacing:.01em; color:#fff;
}
.brand .mark{
  display:flex; align-items:center; justify-content:center;
  flex: 0 0 auto;
  height:38px;
}
.brand .mark img{
  height:100%; width:auto; object-fit:contain; display:block;
}
.site-header .brand .mark{ height:34px; }
.main-nav{ display:flex; align-items:center; gap:6px; }
.main-nav a{
  position:relative; color: rgba(255,255,255,0.82); font-size:14.5px; font-weight:600;
  padding:9px 14px; border-radius:999px; transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.main-nav a:hover{ color:#fff; background: rgba(255,255,255,0.10); }
.main-nav a.is-active{ color:#fff; background: rgba(255,255,255,0.14); }
.nav-cta{
  margin-left:8px; background: linear-gradient(135deg, var(--red-500), var(--red-600));
  color:#fff !important; padding:10px 18px !important; border-radius:999px !important;
  box-shadow: 0 6px 18px rgba(198,24,51,0.35);
}
.nav-cta:hover{ filter:brightness(1.08); transform: translateY(-1px); }
.nav-toggle{ display:none; background:none; border:0; color:#fff; font-size:22px; }

@media (max-width: 880px){
  .main-nav{
    position:fixed; top:var(--header-h); left:0; right:0; bottom:0;
    flex-direction:column; align-items:stretch; gap:2px;
    background: rgba(12,35,56,0.97); backdrop-filter: blur(20px);
    padding:18px; transform: translateY(-8px); opacity:0; pointer-events:none;
    transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  }
  .main-nav.is-open{ opacity:1; pointer-events:auto; transform:translateY(0); }
  .main-nav a{ padding:14px 16px; font-size:16px; }
  .nav-toggle{ display:block; }
}

/* ---------- Hero (shared base) ---------- */
.hero{
  position:relative; overflow:hidden;
  min-height: 92vh;
  display:flex; align-items:center;
  padding-top: var(--header-h);
  background-image:
    linear-gradient(160deg, rgba(12,35,56,0.88), rgba(18,51,80,0.80) 45%, rgba(42,86,127,0.72)),
    url("https://images.unsplash.com/photo-1620626011761-996317b8d101?w=1400&q=65&auto=format&fit=crop");
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  color:#fff;
}
.hero::before{
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(60% 50% at 15% 20%, rgba(61,114,163,0.35), transparent 60%),
    radial-gradient(50% 45% at 85% 80%, rgba(198,24,51,0.28), transparent 60%);
  animation: heroDrift 16s ease-in-out infinite alternate;
}
@keyframes heroDrift{
  0%{ transform: scale(1) translate(0,0); }
  100%{ transform: scale(1.08) translate(-2%, 2%); }
}
.hero .wrap{ position:relative; z-index:2; }
.hero-eyebrow{
  display:inline-flex; align-items:center; gap:8px; font-size:12.5px; font-weight:700;
  letter-spacing:.08em; text-transform:uppercase; color: #f3c4cb;
  background: rgba(255,255,255,0.10); border:1px solid rgba(255,255,255,0.16);
  padding:6px 14px; border-radius:999px; margin-bottom:22px;
}
.hero h1{
  font-size: clamp(34px, 5.2vw, 62px); font-weight:800; line-height:1.06; margin:0 0 22px;
  max-width: 820px; letter-spacing:-.01em;
}
.hero h1 span{
  background: linear-gradient(120deg, #e0435c, var(--red-400));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero p.lead{ font-size:18px; color: rgba(255,255,255,0.78); max-width:560px; margin:0 0 34px; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }

.btn{
  display:inline-flex; align-items:center; gap:8px; font-weight:700; font-size:15px;
  padding:14px 26px; border-radius:999px; border:0; transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), filter var(--dur-fast) var(--ease);
}
.btn-primary{
  background: linear-gradient(135deg, var(--red-500), var(--red-600)); color:#fff;
  box-shadow: 0 10px 26px rgba(198,24,51,0.38);
}
.btn-primary:hover{ transform: translateY(-2px) scale(1.02); box-shadow: 0 14px 34px rgba(198,24,51,0.48); }
.btn-ghost{
  background: rgba(255,255,255,0.08); color:#fff; border:1px solid rgba(255,255,255,0.28);
}
.btn-ghost:hover{ background: rgba(255,255,255,0.16); transform: translateY(-2px); }
.btn-dark{ background: var(--navy-900); color:#fff; box-shadow: var(--shadow-soft); }
.btn-dark:hover{ transform: translateY(-2px); box-shadow: var(--shadow-lift); }

/* ---------- Section scaffolding ---------- */
section{ position:relative; }
.section{ padding: 100px 0; }
.section-tight{ padding: 70px 0; }
.section-head{ max-width:660px; margin:0 0 48px; }
.eyebrow{
  font-size:12.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color: var(--red-600); margin:0 0 12px;
}
.section-head h2{ font-size: clamp(26px, 3.4vw, 40px); font-weight:800; margin:0 0 14px; letter-spacing:-.01em; }
.section-head p{ color: var(--text-secondary); font-size:16px; margin:0; }
.section-alt{ background: var(--surface-2); }
.section-dark{ background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); color:#fff; }
.section-dark .section-head p{ color: rgba(255,255,255,0.75); }

/* Scroll-reveal */
.reveal{ opacity:0; transform: translateY(28px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.reveal.is-visible{ opacity:1; transform:none; }
.reveal-stagger > *{ transition-delay: calc(var(--i, 0) * 90ms); }

/* ---------- Trust bar / counters ---------- */
.trust-bar{
  display:grid; grid-template-columns: repeat(2, 1fr); max-width:520px; margin-left:auto; margin-right:auto; gap:1px;
  background: var(--border); border:1px solid var(--border);
  border-radius: var(--radius-md); overflow:hidden; margin-top:-56px; position:relative; z-index:3;
  box-shadow: var(--shadow-lift);
}
.trust-item{ background: var(--surface-1); padding:28px 22px; text-align:center; }
.trust-item .num{ font-size: clamp(26px, 3vw, 36px); font-weight:800; color: var(--navy-800); }
.trust-item .num .unit{ font-size:0.55em; color: var(--red-600); margin-left:2px; }
.trust-item .num.trust-text{ font-size: clamp(17px, 1.6vw, 21px); line-height:1.2; }
.trust-item .label{ font-size:13px; color: var(--text-secondary); margin-top:4px; }
@media (max-width:760px){ .trust-bar{ margin-top:24px; } }

/* ---------- Cards / grid ---------- */
.card-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap:22px; }

.flip-card{ perspective: 1400px; height:280px; }
.flip-card-inner{
  position:relative; width:100%; height:100%; transition: transform .7s var(--ease);
  transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner{ transform: rotateY(180deg); }
.flip-face{
  position:absolute; inset:0; backface-visibility:hidden; border-radius: var(--radius-md);
  padding:28px; display:flex; flex-direction:column; justify-content:flex-start;
  box-shadow: var(--shadow-soft); border:1px solid var(--border);
}
.flip-front{ background: var(--surface-1); }
.flip-front .icon{
  width:52px; height:52px; border-radius:14px; margin-bottom:14px;
  background: linear-gradient(135deg, var(--navy-600), var(--navy-800));
  display:flex; align-items:center; justify-content:center; font-size:24px; color:#fff;
}
.flip-front h3{ font-size:18px; margin:14px 0 6px; }
.flip-front p{ font-size:13.5px; color:var(--muted); margin:0; }
.flip-back{
  background: linear-gradient(150deg, var(--navy-800), var(--navy-950));
  color:#fff; transform: rotateY(180deg); justify-content:center;
}
.flip-back h4{ margin:0 0 10px; font-size:16px; }
.flip-back p{ font-size:13.5px; color:rgba(255,255,255,0.8); margin:0; }

/* ---------- Referenzen slider (drag) ---------- */
.ref-slider-viewport{ overflow:hidden; cursor:grab; border-radius: var(--radius-lg); }
.ref-slider-viewport.dragging{ cursor:grabbing; }
.ref-slider-track{ display:flex; gap:20px; will-change: transform; }
.ref-card{
  flex: 0 0 320px; background:var(--surface-1); border-radius: var(--radius-md);
  border:1px solid var(--border); box-shadow: var(--shadow-soft); overflow:hidden; user-select:none;
}
.ref-card .thumb{ height:180px; background-size:cover; background-position:center; }
.ref-card .body{ padding:20px; }
.ref-card h4{ margin:0 0 6px; font-size:15.5px; }
.ref-card p{ margin:0; font-size:13px; color:var(--text-secondary); }
.ref-card .stars{ color: var(--red-500); font-size:13px; margin-bottom:8px; }

/* ---------- CTA banner ---------- */
.cta-banner{
  position:relative; overflow:hidden; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--red-600), var(--navy-900));
  padding:64px 48px; text-align:center; color:#fff;
}
.cta-banner::before{
  content:""; position:absolute; inset:0; opacity:.5;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 22px);
  animation: ctaShift 12s linear infinite;
}
@keyframes ctaShift{ from{ background-position:0 0; } to{ background-position:220px 220px; } }
.cta-banner h2{ position:relative; font-size: clamp(24px,3.2vw,34px); margin:0 0 14px; }
.cta-banner p{ position:relative; color:rgba(255,255,255,0.85); margin:0 0 26px; }
.cta-banner .btn-primary{ position:relative; background:#fff; color: var(--red-600); box-shadow:none; }
.cta-banner .btn-primary:hover{ box-shadow: 0 10px 26px rgba(0,0,0,0.25); }

/* ---------- Footer ---------- */
.site-footer{ background: var(--navy-950); color: rgba(255,255,255,0.7); padding:56px 0 26px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap:32px; margin-bottom:40px; }
.footer-brand p{ font-size:13.5px; color:rgba(255,255,255,0.55); max-width:280px; }
.footer-col h5{ color:#fff; font-size:13.5px; margin:0 0 14px; letter-spacing:.03em; text-transform:uppercase; }
.footer-col a{ display:block; font-size:13.5px; padding:5px 0; color:rgba(255,255,255,0.62); transition: color var(--dur-fast); }
.footer-col a:hover{ color:#fff; }
.social-icons{ display:flex; gap:10px; margin-top:16px; }
.social-icons a{
  width:36px; height:36px; border-radius:50%; background: rgba(255,255,255,0.08);
  display:flex; align-items:center; justify-content:center; font-size:15px;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.social-icons a:hover{ background: var(--red-500); transform: translateY(-3px); }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,0.1); padding-top:22px; font-size:12.5px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; color:rgba(255,255,255,0.45);
}
@media (max-width:820px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }

/* ---------- Page header (subpages) ---------- */
.page-hero{
  padding: calc(var(--header-h) + 64px) 0 64px;
  background: linear-gradient(160deg, var(--navy-950), var(--navy-700));
  color:#fff;
}
.page-hero .eyebrow{ color:#f3c4cb; }
.page-hero h1{ font-size: clamp(28px, 4vw, 44px); font-weight:800; margin:0 0 12px; }
.page-hero p{ color: rgba(255,255,255,0.78); max-width:600px; font-size:16px; margin:0; }
.breadcrumb{ font-size:13px; color:rgba(255,255,255,0.6); margin-bottom:16px; display:flex; gap:8px; }
.breadcrumb a:hover{ color:#fff; }

/* ---------- Accordion / Tabs (Leistungen) ---------- */
.tabs{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:30px; }
.tab-btn{
  background: var(--surface-1); border:1px solid var(--border); padding:11px 18px; border-radius:999px;
  font-size:14px; font-weight:600; color:var(--text-secondary); transition: all var(--dur-fast) var(--ease);
}
.tab-btn:hover{ border-color: var(--navy-500); color: var(--navy-700); }
.tab-btn.is-active{ background: var(--navy-800); color:#fff; border-color:var(--navy-800); }

.accordion-item{
  background: var(--surface-1); border:1px solid var(--border); border-radius: var(--radius-md);
  margin-bottom:14px; overflow:hidden; box-shadow: var(--shadow-soft);
}
.accordion-head{
  display:flex; align-items:center; gap:16px; padding:20px 24px; background:none; border:0; width:100%; text-align:left;
}
.accordion-head .icon{
  width:44px; height:44px; border-radius:12px; flex:0 0 auto;
  background: linear-gradient(135deg, var(--navy-600), var(--navy-900));
  color:#fff; display:flex; align-items:center; justify-content:center; font-size:20px;
  transition: transform var(--dur-med) var(--ease);
}
.accordion-item:hover .accordion-head .icon{ transform: rotate(-8deg) scale(1.06); }
.accordion-head h3{ margin:0; font-size:16.5px; flex:1; }
.accordion-head .chev{ transition: transform var(--dur-fast) var(--ease); color:var(--muted); font-size:18px; }
.accordion-item.is-open .accordion-head .chev{ transform: rotate(180deg); }
.accordion-panel{
  max-height:0; overflow:hidden; transition: max-height var(--dur-med) var(--ease);
}
.accordion-panel-inner{ padding:0 24px 26px; display:grid; grid-template-columns: 1.1fr 1fr; gap:26px; }
.accordion-panel-inner p{ color:var(--text-secondary); font-size:14.5px; margin:0; }
@media (max-width:760px){ .accordion-panel-inner{ grid-template-columns:1fr; } }

/* Vorher/Nachher Slider */
.ba-slider{ position:relative; border-radius: var(--radius-md); overflow:hidden; aspect-ratio: 4/3; user-select:none; box-shadow: var(--shadow-soft); }
.ba-slider img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.ba-before{ filter: grayscale(1) brightness(.78) contrast(1.05); }
.ba-after{ clip-path: inset(0 0 0 50%); }
.ba-handle{
  position:absolute; top:0; bottom:0; left:50%; width:3px; background:#fff;
  transform:translateX(-50%); box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}
.ba-handle::after{
  content:"⇔"; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:40px; height:40px; border-radius:50%; background:#fff; color:var(--navy-800);
  display:flex; align-items:center; justify-content:center; font-size:16px; box-shadow: var(--shadow-soft);
}
.ba-label{ position:absolute; bottom:10px; font-size:11.5px; font-weight:700; letter-spacing:.04em;
  text-transform:uppercase; background:rgba(11,18,32,0.65); color:#fff; padding:4px 10px; border-radius:6px; }
.ba-label.before{ left:10px; } .ba-label.after{ right:10px; }
.ba-input{ position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:ew-resize; margin:0; }

/* Einzelbild ohne Vorher/Nachher-Vergleich (gleiche Bildfläche wie .ba-slider) */
.single-photo{ position:relative; border-radius: var(--radius-md); overflow:hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-soft); }
.single-photo img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }

/* Detailliste für Spezial-/Industrieleistungen ohne Bildvergleich */
.service-detail-list{
  background: var(--surface-2); border:1px solid var(--border); border-radius: var(--radius-md);
  padding:22px 24px;
}
.service-detail-list h4{ margin:0 0 12px; font-size:13.5px; text-transform:uppercase; letter-spacing:.04em; color:var(--navy-700); }
.service-detail-list ul{ display:flex; flex-direction:column; gap:9px; }
.service-detail-list li{
  display:flex; gap:9px; align-items:flex-start; font-size:13.5px; color:var(--text-secondary); line-height:1.45;
}
.service-detail-list li::before{ content:"✓"; flex:0 0 auto; color: var(--red-600); font-weight:800; margin-top:1px; }

/* ---------- Referenzen/Projekte Galerie ---------- */
.filter-bar{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:32px; }
.filter-btn{
  background: var(--surface-1); border:1px solid var(--border); padding:10px 18px; border-radius:999px;
  font-size:13.5px; font-weight:600; color:var(--text-secondary); transition: all var(--dur-fast) var(--ease);
}
.filter-btn:hover{ border-color: var(--red-500); color: var(--red-600); }
.filter-btn.is-active{ background: var(--red-500); border-color:var(--red-500); color:#fff; }

.masonry{ column-count:3; column-gap:20px; }
.masonry-item{
  break-inside: avoid; margin-bottom:20px; border-radius: var(--radius-md); overflow:hidden;
  position:relative; box-shadow: var(--shadow-soft); border:1px solid var(--border);
  transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
  cursor:zoom-in; background: var(--surface-1);
}
.masonry-item.is-hidden{ display:none; }
.masonry-item img{ width:100%; display:block; transition: transform var(--dur-med) var(--ease); }
.masonry-item:hover img{ transform: scale(1.05); }
.masonry-item .tag{
  position:absolute; top:12px; left:12px; background:rgba(11,18,32,0.7); color:#fff;
  font-size:11px; font-weight:700; padding:4px 10px; border-radius:999px; text-transform:uppercase; letter-spacing:.03em;
}
@media (max-width:900px){ .masonry{ column-count:2; } }
@media (max-width:560px){ .masonry{ column-count:1; } }

.lightbox{
  position:fixed; inset:0; background:rgba(6,10,20,0.92); z-index:2000; display:flex;
  align-items:center; justify-content:center; opacity:0; pointer-events:none; transition: opacity var(--dur-fast) var(--ease);
}
.lightbox.is-open{ opacity:1; pointer-events:auto; }
.lightbox img{
  max-width:88vw; max-height:82vh; border-radius: var(--radius-md); transform: scale(.9); transition: transform var(--dur-med) var(--ease);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.lightbox.is-open img{ transform: scale(1); }
.lightbox-close{
  position:absolute; top:26px; right:32px; color:#fff; font-size:30px; background:none; border:0;
}

/* ---------- Timeline (Über uns) ---------- */
.timeline{ position:relative; max-width:760px; margin:0 auto; }
.timeline::before{
  content:""; position:absolute; left:20px; top:0; bottom:0; width:2px; background: var(--border-strong);
}
.timeline-item{ position:relative; padding:0 0 44px 60px; }
.timeline-item::before{
  content:""; position:absolute; left:12px; top:2px; width:18px; height:18px; border-radius:50%;
  background: var(--surface-1); border:3px solid var(--red-500); transition: background var(--dur-fast), transform var(--dur-fast);
}
.timeline-item.is-visible::before{ background: var(--red-500); transform: scale(1.15); }
.timeline-year{ font-size:13px; font-weight:800; color:var(--red-600); letter-spacing:.03em; margin-bottom:6px; }
.timeline-item h4{ margin:0 0 6px; font-size:16.5px; }
.timeline-item p{ margin:0; color:var(--text-secondary); font-size:14px; }

.team-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap:22px; }
.team-card{
  position:relative; border-radius: var(--radius-md); overflow:hidden; aspect-ratio: 3/3.6;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-950));
}
.team-card .photo{
  position:absolute; inset:0; background-size:cover; background-position:center;
  transition: opacity var(--dur-med) var(--ease);
}
.team-card:hover .photo{ opacity:.18; }
.team-card .info{
  position:absolute; inset:0; display:flex; flex-direction:column; justify-content:flex-end; padding:22px;
  color:#fff; opacity:0; transform: translateY(10px); transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
}
.team-card:hover .info{ opacity:1; transform:none; }
.team-card .name{ font-size:16px; font-weight:700; }
.team-card .role{ font-size:12.5px; color: var(--red-400); margin-bottom:10px; }
.team-card .contact{ font-size:12px; color:rgba(255,255,255,0.75); }
.team-card .base-name{ position:absolute; left:22px; bottom:22px; color:#fff; font-weight:700; font-size:15px; }
.team-card:hover .base-name{ display:none; }

.milestone-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(160px,1fr)); gap:20px; margin-top:48px; }
.milestone{ text-align:center; }
.milestone .num{ font-size:clamp(28px,3vw,38px); font-weight:800; color: var(--navy-800); }
.milestone .label{ font-size:13px; color:var(--text-secondary); margin-top:4px; }

/* ---------- Kontaktformular (multi-step) ---------- */
.form-shell{
  max-width:640px; margin:0 auto; background: var(--surface-1); border-radius: var(--radius-lg);
  border:1px solid var(--border); box-shadow: var(--shadow-lift); padding:40px;
}
.progress-track{ height:6px; border-radius:999px; background: var(--surface-2); overflow:hidden; margin-bottom:34px; }
.progress-fill{
  height:100%; width:33.3%; border-radius:999px;
  background: linear-gradient(90deg, var(--red-500), var(--navy-600));
  transition: width var(--dur-med) var(--ease);
}
.progress-steps{ display:flex; justify-content:space-between; margin-bottom:8px; font-size:12px; color:var(--muted); font-weight:600; }
.progress-steps span.is-active{ color: var(--red-600); }

.form-step{ display:none; }
.form-step.is-active{ display:block; animation: stepIn .4s var(--ease); }
@keyframes stepIn{ from{ opacity:0; transform: translateX(16px); } to{ opacity:1; transform:none; } }

.field{ position:relative; margin-bottom:26px; }
.field input, .field select, .field textarea{
  width:100%; padding:18px 16px 8px; border-radius: var(--radius-sm); border:1.5px solid var(--border-strong);
  font-size:15px; background: var(--surface-1); color:var(--text-primary); transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.field textarea{ min-height:110px; resize:vertical; padding-top:22px; }
.field label{
  position:absolute; left:16px; top:17px; font-size:15px; color:var(--muted); pointer-events:none;
  transition: all var(--dur-fast) var(--ease);
  background: var(--surface-1); padding:0 4px;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color: var(--navy-500); box-shadow: 0 0 0 4px rgba(61,114,163,0.14);
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field.has-value label{
  top:-9px; left:12px; font-size:11.5px; font-weight:700; color: var(--navy-700);
}
.service-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:10px; margin-bottom:10px; }
.service-pill{
  border:1.5px solid var(--border-strong); border-radius:12px; padding:14px; text-align:center;
  font-size:13.5px; font-weight:600; color:var(--text-secondary); transition: all var(--dur-fast) var(--ease);
}
.service-pill:hover{ border-color: var(--navy-500); }
.service-pill.is-selected{ background: var(--navy-800); border-color:var(--navy-800); color:#fff; }
.map-embed{
  position:relative; height:220px; border-radius: var(--radius-md); overflow:hidden; margin-top:16px;
  background: linear-gradient(135deg, var(--surface-2), #e6e6e0);
}
.map-embed .grid-lines{
  position:absolute; inset:0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 28px 28px;
}
.map-marker{
  position:absolute; top:50%; left:50%; transform: translate(-50%,-100%);
}
.map-marker .pin{
  width:34px; height:34px; border-radius:50% 50% 50% 0; background: var(--red-500); transform: rotate(-45deg);
  box-shadow: 0 6px 16px rgba(198,24,51,0.4); animation: pinDrop .6s var(--ease);
}
.map-marker .ring{
  position:absolute; left:50%; bottom:-4px; width:26px; height:8px; border-radius:50%;
  background: rgba(11,18,32,0.15); transform:translateX(-50%);
}
@keyframes pinDrop{ from{ transform: translateY(-30px) rotate(-45deg); opacity:0; } to{ transform: translateY(0) rotate(-45deg); opacity:1; } }
.map-marker::after{ content:"Fugen-Rubitzsch GmbH"; position:absolute; top:-30px; left:50%; transform:translateX(-50%);
  background:#fff; padding:4px 10px; border-radius:6px; font-size:11.5px; font-weight:700; white-space:nowrap; box-shadow: var(--shadow-soft); }

.form-nav{ display:flex; justify-content:space-between; margin-top:10px; }

.success-panel{ display:none; text-align:center; padding:20px 0; }
.success-panel.is-active{ display:block; animation: stepIn .5s var(--ease); }
.check-circle{
  width:84px; height:84px; border-radius:50%; margin:0 auto 22px; background: var(--surface-2);
  display:flex; align-items:center; justify-content:center;
}
.check-circle svg{ width:44px; height:44px; }
.check-circle path{
  stroke: var(--navy-700); stroke-width:3; fill:none; stroke-linecap:round; stroke-linejoin:round;
  stroke-dasharray:60; stroke-dashoffset:60; animation: drawCheck .6s var(--ease) .1s forwards;
}
@keyframes drawCheck{ to{ stroke-dashoffset:0; } }
.success-panel h3{ margin:0 0 8px; font-size:20px; }
.success-panel p{ color:var(--text-secondary); margin:0; }
.request-number-box{
  background:var(--surface-2); border-radius:var(--radius-md); padding:16px 22px;
  display:inline-block; margin-top:18px;
}
.request-number-label{ font-size:12px; text-transform:uppercase; letter-spacing:.04em; color:var(--text-secondary); font-weight:700; margin-bottom:4px; }
.request-number-value{ font-size:22px; font-weight:800; color:var(--navy-800); letter-spacing:.02em; }
.request-number-hint{ margin-top:14px !important; font-size:13px; }

/* ---------- Karriere ---------- */
.job-card{
  position:relative; background: var(--surface-1); border:1px solid var(--border); border-radius: var(--radius-md);
  padding:26px; overflow:hidden; box-shadow: var(--shadow-soft); transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.job-card::before{
  content:""; position:absolute; inset:0; opacity:0; background: linear-gradient(120deg, var(--red-500), var(--navy-700));
  transition: opacity var(--dur-med) var(--ease); z-index:0;
}
.job-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.job-card:hover::before{ opacity:1; }
.job-card > *{ position:relative; z-index:1; transition: color var(--dur-med) var(--ease); }
.job-card:hover > *{ color:#fff; }
.job-card .type{
  display:inline-block; font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:.04em;
  background: var(--surface-2); padding:4px 10px; border-radius:999px; margin-bottom:14px; color: var(--navy-700);
  transition: background var(--dur-med) var(--ease), color var(--dur-med) var(--ease);
}
.job-card:hover .type{ background: rgba(255,255,255,0.2); color:#fff; }
.job-card h3{ margin:0 0 8px; font-size:17px; }
.job-card p{ margin:0 0 18px; font-size:13.5px; color:var(--text-secondary); }
.job-card:hover p{ color:rgba(255,255,255,0.85); }
.job-card .apply{ font-size:13.5px; font-weight:700; color: var(--red-600); }
.job-card:hover .apply{ color:#fff; }

.why-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:24px; }
.why-item{ text-align:center; padding:10px; }
.why-item .icn{
  width:58px; height:58px; margin:0 auto 16px; border-radius:16px;
  background: linear-gradient(135deg, var(--navy-600), var(--navy-900)); color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:26px;
}
.why-item h4{ margin:0 0 8px; font-size:15.5px; }
.why-item p{ margin:0; font-size:13px; color:var(--text-secondary); }

@media (max-width:640px){
  .section{ padding:70px 0; }
  .masonry{ column-count:1; }
}

/* ===== Chatbot Widget (Konzept-Demo, kein echtes Backend) ===== */
.chatbot-launcher{
  position:fixed; right:22px; bottom:22px; z-index:1001; transition: bottom .2s ease;
  width:60px; height:60px; border-radius:50%; border:none; cursor:pointer;
  background: linear-gradient(135deg, var(--red-500), var(--navy-800));
  color:#fff; font-size:26px; display:flex; align-items:center; justify-content:center;
  box-shadow: var(--shadow-lift); transition: transform .2s ease;
}
.chatbot-launcher:hover{ transform: translateY(-3px) scale(1.04); }
.chatbot-launcher .badge{
  position:absolute; top:-4px; right:-4px; background: var(--red-600); color:#fff;
  font-size:11px; font-weight:700; border-radius:50%; width:20px; height:20px;
  display:flex; align-items:center; justify-content:center; border:2px solid #fff;
}
.chatbot-panel{
  position:fixed; right:22px; bottom:94px; z-index:1001; transition: bottom .2s ease, opacity .2s ease, transform .2s ease;
  width:min(360px, calc(100vw - 32px)); max-height:min(520px, calc(100vh - 140px));
  background: var(--surface-1); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift);
  border:1px solid var(--border); display:flex; flex-direction:column; overflow:hidden;
  opacity:0; transform: translateY(16px) scale(.98); pointer-events:none;
  transition: opacity .2s ease, transform .2s ease;
}
.chatbot-panel.is-open{ opacity:1; transform:translateY(0) scale(1); pointer-events:auto; }
.chatbot-head{
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color:#fff;
  padding:16px 18px; display:flex; align-items:center; gap:10px;
}
.chatbot-head .avatar{
  width:34px; height:34px; border-radius:50%; background:#fff; display:flex; align-items:center;
  justify-content:center; font-size:16px; flex:0 0 auto; padding:4px;
}
.chatbot-head .avatar img{ width:100%; height:100%; object-fit:contain; }
.chatbot-head-text h4{ margin:0; font-size:14.5px; }
.chatbot-head-text span{ font-size:12px; opacity:.85; }
.chatbot-close{
  margin-left:auto; background:none; border:none; color:#fff; font-size:20px; cursor:pointer; line-height:1;
  opacity:.85;
}
.chatbot-close:hover{ opacity:1; }
.chatbot-body{ flex:1; overflow-y:auto; padding:16px 14px; display:flex; flex-direction:column; gap:10px; background: var(--surface-2); }
.chatbot-msg{ max-width:82%; font-size:13.5px; line-height:1.5; padding:10px 13px; border-radius:14px; }
.chatbot-msg.bot{ background:#fff; border:1px solid var(--border); align-self:flex-start; border-bottom-left-radius:4px; }
.chatbot-msg.user{ background: var(--navy-800); color:#fff; align-self:flex-end; border-bottom-right-radius:4px; }
.chatbot-quick-replies{ display:flex; flex-wrap:wrap; gap:8px; padding:0 14px 12px; background: var(--surface-2); }
.chatbot-quick-replies button{
  border:1px solid var(--border-strong); background:#fff; color: var(--navy-800); font-size:12.5px;
  padding:7px 12px; border-radius:999px; cursor:pointer; transition: background .15s ease, color .15s ease;
}
.chatbot-quick-replies button:hover{ background: var(--navy-800); color:#fff; border-color: var(--navy-800); }
.chatbot-foot{
  padding:12px 14px; border-top:1px solid var(--border); font-size:11.5px; color: var(--muted); text-align:center;
  background:#fff;
}
.chatbot-foot a{ color: var(--red-600); font-weight:600; }
@media (max-width:480px){
  .chatbot-panel{ right:16px; bottom:86px; }
  .chatbot-launcher{ right:16px; bottom:16px; }
}
body.has-consent-banner .chatbot-launcher{ bottom:132px; }
body.has-consent-banner .chatbot-panel{ bottom:204px; }
@media (max-width:480px){
  body.has-consent-banner .chatbot-launcher{ bottom:186px; }
  body.has-consent-banner .chatbot-panel{ bottom:258px; }
}

/* ---------- Chatbot: Freitext-Eingabe & Mini-Formulare ---------- */
.chatbot-textform{
  display:flex; gap:8px; padding:10px 14px; background:#fff; border-top:1px solid var(--border);
}
.chatbot-textform input[type="text"]{
  flex:1; border:1px solid var(--border-strong); border-radius:999px; padding:9px 14px;
  font-size:13px; font-family:inherit; outline:none;
}
.chatbot-textform input[type="text"]:focus{ border-color: var(--navy-600); }
.chatbot-textform button{
  border:none; background: var(--navy-800); color:#fff; border-radius:999px; padding:0 16px;
  font-size:13px; font-weight:700; cursor:pointer; transition: background .15s ease;
}
.chatbot-textform button:hover{ background: var(--navy-700); }
.chatbot-inline-form{
  background:#fff; border:1px solid var(--border); border-radius:14px; padding:12px; margin-top:4px;
  display:flex; flex-direction:column; gap:8px; align-self:stretch;
}
.chatbot-inline-form input{
  border:1px solid var(--border-strong); border-radius:8px; padding:8px 10px; font-size:13px; font-family:inherit;
}
.chatbot-inline-form .row{ display:flex; gap:8px; }
.chatbot-inline-form button{
  border:none; background: var(--red-500); color:#fff; border-radius:8px; padding:9px 12px;
  font-size:13px; font-weight:700; cursor:pointer; transition: background .15s ease;
}
.chatbot-inline-form button:hover{ background: var(--red-600); }
.chatbot-inline-form .hint{ font-size:11.5px; color:var(--muted); }
.chatbot-inline-form .field-error{ font-size:11.5px; color:var(--red-600); display:none; }

/* ---------- Cookie-Consent-Banner ---------- */
.consent-banner{
  position:fixed; left:0; right:0; bottom:0; z-index:1000;
  background: var(--navy-950); color:#fff; box-shadow: 0 -10px 40px rgba(0,0,0,0.25);
}
.consent-inner{
  max-width:1100px; margin:0 auto; padding:18px 24px; display:flex; align-items:center; gap:24px; flex-wrap:wrap;
}
.consent-text{ flex:1 1 420px; font-size:13px; line-height:1.6; color:rgba(255,255,255,0.82); margin:0; }
.consent-text a{ color:#fff; text-decoration:underline; }
.consent-actions{ display:flex; gap:10px; flex-wrap:wrap; }
.consent-details{
  max-width:1100px; margin:0 auto; padding:0 24px 20px; display:flex; flex-direction:column; gap:12px;
  border-top:1px solid rgba(255,255,255,0.12); padding-top:16px;
}
.consent-details[hidden]{ display:none; }
.consent-banner[hidden]{ display:none; }
.consent-option{ display:flex; gap:10px; align-items:flex-start; font-size:13px; color:rgba(255,255,255,0.82); cursor:pointer; }
.consent-option input{ margin-top:3px; }
.consent-option span strong{ color:#fff; }
.consent-details > button{ align-self:flex-start; }
@media (max-width:640px){
  .consent-inner{ padding:16px; }
  .consent-details{ padding:0 16px 16px; }
}

/* ---------- Footer: Cookie-Einstellungen-Link ---------- */
.footer-link-btn{
  background:none; border:none; color:rgba(255,255,255,0.45); font-size:12.5px; cursor:pointer;
  padding:0; text-decoration:underline; font-family:inherit;
}
.footer-link-btn:hover{ color:#fff; }

/* ---------- Google-Maps-Einbettung (Kontaktseite, consent-gated) ---------- */
.map-embed{
  position:relative; border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-soft);
  aspect-ratio:16/9; background: var(--surface-2);
}
.map-embed iframe{ width:100%; height:100%; border:0; display:block; }
.map-embed-placeholder{
  position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:12px; text-align:center; padding:24px; background: var(--surface-2);
}
.map-embed-placeholder p{ margin:0; font-size:13.5px; color:var(--text-secondary); max-width:360px; }
.map-embed.is-loaded .map-embed-placeholder{ display:none; }

/* ---------- Formular: Fehlermeldung beim Versand ---------- */
.form-error-box{
  display:none; background:#fdeceb; border:1px solid rgba(198,24,51,0.3); color: var(--red-600);
  border-radius:var(--radius-sm); padding:14px 16px; font-size:13.5px; margin-top:16px; line-height:1.6;
}
.form-error-box.is-active{ display:block; }
.form-error-box a{ color: var(--red-600); font-weight:700; }
