/* ================================================
   KRAFT.BAU — Industrial Command Center
   ================================================ */

:root {
  --bg: #0A0A0C;
  --bg-2: #111114;
  --bg-3: #16161A;
  --bg-4: #1C1C22;
  --accent: #F5A623;
  --accent-bright: #FFB938;
  --accent-glow: rgba(245,166,35,0.15);
  --accent-hot: #FF6B2B;
  --text: #FFFFFF;
  --text-2: #C8C8D0;
  --text-3: #8A8A96;
  --text-4: #55555F;
  --steel: #2A2A32;
  --concrete: #3A3A42;
  --green: #22C55E;
  --red: #EF4444;
  --yellow: #EAB308;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --font-condensed: 'Barlow Condensed', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--steel); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

a { color: inherit; text-decoration: none; }

/* ---- Under Construction Banner ---- */
.uc-banner {
  background: var(--accent);
  color: var(--bg);
  text-align: center;
  padding: 0.35rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

/* ---- Particles Canvas ---- */
#sparks {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ---- Header ---- */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 2rem;
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
}

#header.scrolled {
  background: rgba(10,10,12,0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(245,166,35,0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  height: 80px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  display: flex;
  align-items: baseline;
}

.logo-k { color: var(--text); }
.logo-dot { color: var(--accent); margin: 0 1px; }
.logo-b { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-condensed);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-3);
  transition: color 0.3s;
}

.phone-link:hover { color: var(--accent); }

.phone-icon { font-size: 1.1rem; }

.btn-header {
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  padding: 0.6rem 1.5rem;
  background: var(--accent);
  color: var(--bg);
  border: none;
  transition: background 0.3s, transform 0.2s;
}

.btn-header:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(10,10,12,0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  padding: 2rem;
  gap: 1.5rem;
  border-bottom: 1px solid rgba(245,166,35,0.1);
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  font-family: var(--font-condensed);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--steel);
}

.btn-mobile-cta {
  background: var(--accent) !important;
  color: var(--bg) !important;
  text-align: center;
  padding: 1rem !important;
  border: none !important;
  font-weight: 600 !important;
}

/* ---- Hero ---- */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 2rem 80px;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,166,35,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,166,35,0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 50%, black 20%, transparent 70%);
}

.hero-accent-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: center;
}

.hero-left { position: relative; }

.hero-eyebrow {
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: block;
}

.hero-title {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.hero-number {
  font-family: var(--font-display);
  font-size: clamp(6rem, 16vw, 12rem);
  line-height: 0.9;
  color: var(--text);
  position: relative;
}

.hero-number .plus {
  color: var(--accent);
}

.hero-word {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: 0.15em;
  color: var(--text-3);
  margin-top: -0.2rem;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-availability {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.2rem;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 2px;
  margin-bottom: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--green);
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
}

.live-badge {
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  background: rgba(34,197,94,0.15);
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.15em;
  padding: 1rem 2.5rem;
  background: var(--accent);
  color: var(--bg);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before { left: 100%; }

.btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(245,166,35,0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 1rem 1.5rem;
  border: 1px solid var(--steel);
  transition: border-color 0.3s, color 0.3s;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-phone-icon { font-size: 1.2rem; }

/* Hero Right - Trade Display */
.hero-right { position: relative; }

.trade-display {
  background: rgba(17,17,20,0.8);
  border: 1px solid var(--steel);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
}

.trade-display-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--steel);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-4);
}

.td-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.td-dot.green { background: var(--green); box-shadow: 0 0 6px var(--green); }
.td-dot.red { background: var(--red); }
.td-dot.yellow { background: var(--yellow); }

.td-label { text-transform: uppercase; }

.trade-list {
  padding: 0.5rem 0;
}

.trade-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.25rem;
  transition: background 0.2s;
  font-size: 0.85rem;
}

.trade-item:hover {
  background: rgba(245,166,35,0.04);
}

.trade-item-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ti-check {
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 700;
}

.ti-name {
  font-family: var(--font-condensed);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--text-2);
}

.ti-status-badge {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  color: var(--green);
  padding: 0.15rem 0.4rem;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.15);
}

.trade-display-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--steel);
}

.td-line {
  flex: 1;
  height: 1px;
  background: var(--steel);
}

.td-count {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-4);
}

/* Hero Scroll Indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}

.hero-scroll span {
  font-family: var(--font-condensed);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--text-4);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-pulse 2s ease infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Hero Animations */
.anim-word {
  opacity: 0;
  transform: translateY(40px);
  animation: wordIn 0.8s calc(var(--d) * 0.15s + 0.3s) cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes wordIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Ticker ---- */
.ticker-wrap {
  position: relative;
  z-index: 2;
  background: var(--accent);
  overflow: hidden;
  padding: 0.8rem 0;
}

.ticker {
  display: flex;
  width: max-content;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  animation: ticker-scroll 30s linear infinite;
  white-space: nowrap;
}

.ticker-track span {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: var(--bg);
  padding: 0 1rem;
}

.ticker-sep {
  font-size: 0.4rem !important;
  opacity: 0.4;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- Stats ---- */
#stats {
  position: relative;
  z-index: 2;
  padding: 4rem 2rem;
  background: var(--bg-2);
  border-bottom: 1px solid rgba(245,166,35,0.08);
}

.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  flex: 1;
  min-width: 180px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--accent);
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
}

.stat-label {
  display: block;
  font-family: var(--font-condensed);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-4);
  margin-top: 0.5rem;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: var(--steel);
}

/* ---- Sections Global ---- */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: 0.03em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-title .highlight {
  color: var(--accent);
}

.section-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--text-3);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

/* ---- Reveal Animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Hero Background Overlay ---- */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,12,0.75);
  z-index: 1;
}

#hero .hero-grid-bg { z-index: 2; }
#hero .hero-accent-line { z-index: 2; }

/* ---- Gewerke ---- */
#gewerke {
  position: relative;
  z-index: 2;
  padding: 8rem 0;
  background: var(--bg);
}

.gewerke-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--steel);
}

.gewerk-card {
  background-color: var(--bg);
  background-size: cover;
  background-position: center center;
  padding: 2rem;
  transition: transform 0.3s;
  position: relative;
  cursor: default;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.gewerk-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3;
}

.gewerk-card:hover::before { width: 100%; }

.gw-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,12,0.35) 0%, rgba(10,10,12,0.80) 100%);
  transition: background 0.5s;
  z-index: 1;
}

.gewerk-card:hover .gw-overlay {
  background: linear-gradient(180deg, rgba(10,10,12,0.25) 0%, rgba(10,10,12,0.70) 100%);
}

.gw-content {
  position: relative;
  z-index: 2;
}

.gw-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: rgba(255,255,255,0.35);
  line-height: 1;
  transition: color 0.4s;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

.gewerk-card:hover .gw-num { color: var(--accent); }

.gw-name {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  color: #FFFFFF;
  margin: 0.75rem 0 0.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.4);
}

.gw-desc {
  font-size: 0.88rem;
  color: #FFFFFF;
  font-weight: 600;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.4);
}

.gw-count {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  padding: 0.25rem 0.6rem 0.25rem 1.2rem;
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.25);
  backdrop-filter: blur(4px);
  display: inline-block;
  position: relative;
}

.gw-count::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}

/* ---- Projekte ---- */
#projekte {
  position: relative;
  z-index: 2;
  padding: 8rem 0;
  background: var(--bg-2);
}

.projekte-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 1px;
  background: var(--steel);
}

.projekt-card {
  position: relative;
  background: var(--bg-2);
  padding: 3rem 2rem;
  overflow: hidden;
  transition: background 0.4s;
  min-height: 300px;
}

.projekt-large {
  /* Same as other cards — no special sizing */
}

.projekt-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,12,0.10);
  transition: background 0.5s;
}

.projekt-card:hover .projekt-overlay {
  background: rgba(10,10,12,0.20);
}

.projekt-content {
  position: relative;
  z-index: 1;
}

.projekt-tag {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: #fff;
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.3rem 0.75rem;
  background: rgba(245,166,35,0.85);
  border: none;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.projekt-card h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.05em;
  color: #FFFFFF;
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7), 0 1px 3px rgba(0,0,0,0.5);
}

/* projekt-large has same styling as other cards */

.projekt-card p {
  font-size: 0.95rem;
  color: #FFFFFF;
  font-weight: 700;
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7), 0 1px 3px rgba(0,0,0,0.5);
}

.projekt-link {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--accent-bright);
  transition: letter-spacing 0.3s, color 0.3s;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.projekt-link:hover {
  letter-spacing: 0.25em;
  color: var(--accent-bright);
}

/* ---- Technologie / AI Agents ---- */
#technologie {
  position: relative;
  z-index: 2;
  padding: 8rem 0;
  background: var(--bg);
}

.ai-agents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--steel);
  margin-bottom: 3rem;
}

.ai-agent-card {
  background: var(--bg);
  background-size: cover;
  background-position: center;
  padding: 2rem;
  position: relative;
  transition: transform 0.4s;
  overflow: hidden;
}

.ai-agent-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,12,0.72);
  transition: background 0.5s;
  z-index: 1;
}

.ai-agent-card:hover .ai-agent-overlay {
  background: rgba(10,10,12,0.58);
}

.ai-agent-content {
  position: relative;
  z-index: 2;
}

.ai-agent-card.agent-featured {
  grid-column: 1 / -1;
  padding: 3rem;
}

.ai-agent-card.agent-featured .ai-agent-content {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto 1fr auto;
  gap: 0 2rem;
}

.agent-featured .ai-agent-content .agent-status { grid-column: 1 / -1; }
.agent-featured .ai-agent-content .agent-icon {
  grid-row: 2 / 5;
  font-size: 4rem;
  align-self: center;
}
.agent-featured .ai-agent-content .agent-name { grid-column: 2; }
.agent-featured .ai-agent-content .agent-role { grid-column: 2; }
.agent-featured .ai-agent-content .agent-tasks { grid-column: 2; }
.agent-featured .ai-agent-content .agent-metric { grid-column: 3; grid-row: 2 / 5; align-self: center; }

.agent-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--green);
  margin-bottom: 1rem;
}

.agent-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 2s ease infinite;
}

.agent-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.agent-name {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.agent-role {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.agent-tasks {
  list-style: none;
  padding: 0;
}

.agent-tasks li {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  padding: 0.3rem 0;
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.agent-tasks li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.agent-metric {
  text-align: center;
  padding: 1.5rem;
  background: rgba(245,166,35,0.06);
  border: 1px solid rgba(245,166,35,0.12);
}

.am-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.am-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-4);
  letter-spacing: 0.05em;
}

/* AI Summary Bar */
.ai-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--steel);
}

.ai-summary-stat {
  background: var(--bg-2);
  text-align: center;
  padding: 2rem 1rem;
}

.ais-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.ais-label {
  font-family: var(--font-condensed);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--text-4);
  text-transform: uppercase;
}

/* ---- Prozess ---- */
#prozess {
  position: relative;
  z-index: 2;
  padding: 8rem 0;
  background: var(--bg-2);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  padding: 2rem;
  position: relative;
}

.step-number {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--bg-4);
  line-height: 1;
  margin-bottom: 1rem;
  transition: color 0.4s;
}

.step:hover .step-number { color: var(--accent); }

.step-content h3 {
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-3);
  line-height: 1.7;
}

.step-line {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: var(--steel);
}

.step:last-child .step-line { display: none; }

/* ---- Vertrauen ---- */
#vertrauen {
  position: relative;
  z-index: 2;
  padding: 6rem 0;
  background: var(--bg);
  border-top: 1px solid rgba(245,166,35,0.06);
  border-bottom: 1px solid rgba(245,166,35,0.06);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.trust-item {
  text-align: center;
  padding: 2rem 1rem;
}

.trust-icon {
  display: block;
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.trust-item h4 {
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.trust-item p {
  font-size: 0.85rem;
  color: var(--text-3);
  line-height: 1.6;
}

/* ---- Kontakt ---- */
#kontakt {
  position: relative;
  z-index: 2;
  padding: 8rem 0;
  background: var(--bg-2);
}

.kontakt-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.kontakt-sub {
  font-size: 1.1rem;
  color: var(--text-3);
  margin-bottom: 2.5rem;
}

.kontakt-direct {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.kontakt-phone, .kontakt-email {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--steel);
  background: var(--bg-3);
  transition: border-color 0.3s, background 0.3s;
}

.kontakt-phone:hover, .kontakt-email:hover {
  border-color: var(--accent);
  background: var(--bg-4);
}

.kp-icon {
  font-size: 1.5rem;
  color: var(--accent);
}

.kp-label {
  display: block;
  font-family: var(--font-condensed);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-4);
  text-transform: uppercase;
}

.kp-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  margin-top: 0.2rem;
}

/* Form */
.kontakt-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: var(--font-condensed);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-4);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--steel);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-4);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238A8A96' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1.1rem 2rem;
  background: var(--accent);
  color: var(--bg);
  border: none;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-submit:hover::before { left: 100%; }

.btn-submit:hover {
  background: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(245,166,35,0.25);
}

.btn-arrow {
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.btn-submit:hover .btn-arrow {
  transform: translateX(4px);
}

/* ---- Footer ---- */
#footer {
  position: relative;
  z-index: 2;
  padding: 4rem 2rem 2rem;
  background: var(--bg);
  border-top: 1px solid var(--steel);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  margin-bottom: 3rem;
}

.footer-brand .logo-k { font-size: 1.5rem; }
.footer-brand .logo-b { font-size: 1.5rem; }

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-4);
  margin-top: 0.5rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--steel);
}

.footer-col h5 {
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-3);
  padding: 0.3rem 0;
  transition: color 0.3s;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-4);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.75rem;
  color: var(--text-4);
  transition: color 0.3s;
}

.footer-legal a:hover { color: var(--text-3); }

.footer-credit {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: var(--accent);
  text-align: center;
  width: 100%;
}

.footer-credit a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.footer-credit a:hover {
  color: var(--accent-bright);
  text-decoration: underline;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-right { order: -1; }

  .trade-display { max-width: 400px; }

  .ai-agents-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ai-agent-card.agent-featured {
    padding: 2rem;
  }

  .ai-agent-card.agent-featured .ai-agent-content {
    display: block;
  }

  .agent-featured .ai-agent-content .agent-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .agent-featured .ai-agent-content .agent-metric {
    margin-top: 1.5rem;
  }

  .ai-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .projekte-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projekt-large {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .nav-links, .header-cta { display: none; }
  .mobile-toggle { display: flex; margin-left: 0.75rem; }

  .lang-toggle {
    margin-left: auto;
  }

  /* Hero - show main text first on mobile */
  .hero-right { order: 1; }

  /* AI Agents - single column, no complex grid */
  .ai-agents-grid {
    grid-template-columns: 1fr;
  }

  .ai-agent-card {
    padding: 1.5rem;
    min-height: auto;
  }

  .ai-agent-card.agent-featured {
    padding: 1.5rem;
    grid-column: 1;
  }

  .ai-agent-card.agent-featured .ai-agent-content {
    display: flex;
    flex-direction: column;
  }

  .agent-featured .ai-agent-content .agent-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }

  .agent-featured .ai-agent-content .agent-metric {
    margin-top: 1.25rem;
    text-align: center;
  }

  .agent-name {
    font-size: 1rem;
  }

  .agent-role {
    font-size: 0.8rem;
  }

  .agent-tasks li {
    font-size: 0.78rem;
  }

  .ai-summary {
    grid-template-columns: 1fr 1fr;
  }

  .ais-num {
    font-size: 2rem;
  }

  .ais-label {
    font-size: 0.6rem;
  }

  /* Hero */
  .hero-number {
    font-size: clamp(5rem, 20vw, 8rem);
  }

  .hero-word {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-sub {
    font-size: 1rem;
  }

  /* Gewerke - 2 columns on tablet, keep images visible */
  .gewerke-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gewerk-card {
    min-height: 200px;
    padding: 1.25rem;
  }

  .gw-num {
    font-size: 2rem;
  }

  .gw-name {
    font-size: 1rem;
    margin: 0.5rem 0 0.3rem;
  }

  .gw-desc {
    font-size: 0.78rem;
    margin-bottom: 0.75rem;
  }

  /* Projekte */
  .projekte-grid {
    grid-template-columns: 1fr;
  }

  .projekt-card {
    min-height: 250px;
    padding: 2rem 1.5rem;
  }

  .projekt-card h3 {
    font-size: 1.6rem;
  }

  .projekt-card p {
    font-size: 0.85rem;
  }

  /* Prozess */
  .process-steps {
    grid-template-columns: 1fr;
  }

  .step-line {
    right: auto;
    left: 2rem;
    top: auto;
    bottom: 0;
    width: 60%;
    height: 1px;
    transform: none;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .kontakt-layout {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .stats-inner {
    gap: 2rem;
  }

  .stat-divider { display: none; }

  .stat-item { min-width: 140px; }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ---- Qualification Funnel ---- */
.funnel-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5,5,7,0.97);
  backdrop-filter: blur(30px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  overflow-y: auto;
}

.funnel-overlay.open {
  display: flex;
  opacity: 1;
}

.funnel-inner {
  position: relative;
  width: 100%;
  max-width: 720px;
  padding: 3rem 2rem;
  margin: auto;
}

.funnel-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: 1px solid var(--steel);
  color: var(--text-3);
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
  line-height: 1;
}

.funnel-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Progress */
.funnel-progress {
  position: relative;
  height: 3px;
  background: var(--steel);
  margin-bottom: 3rem;
  overflow: visible;
}

.funnel-progress-bar {
  height: 100%;
  background: var(--accent);
  width: 20%;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 12px rgba(245,166,35,0.4);
}

.funnel-step-label {
  position: absolute;
  right: 0;
  top: 10px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-4);
  letter-spacing: 0.1em;
}

/* Questions */
.funnel-q {
  display: none;
}

.funnel-q.active {
  display: block;
  animation: funnelIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes funnelIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

.funnel-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 0.03em;
  line-height: 1.15;
  margin-bottom: 2rem;
}

.funnel-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.funnel-opt {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: var(--bg-2);
  border: 1px solid var(--steel);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.3s, background 0.3s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.funnel-opt::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 0.3s;
}

.funnel-opt:hover {
  border-color: var(--accent);
  background: var(--bg-3);
  transform: translateX(4px);
}

.funnel-opt:hover::before {
  transform: scaleY(1);
}

.fo-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 2.5rem;
  text-align: center;
}

.fo-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--accent);
  flex-shrink: 0;
  width: 5rem;
  text-align: center;
  line-height: 1;
}

.fo-label {
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
  display: block;
}

.fo-hint {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-4);
  display: block;
  margin-top: 0.15rem;
}

/* Funnel Results */
.funnel-result {
  animation: funnelIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.result-badge {
  display: inline-block;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  padding: 0.4rem 1rem;
  margin-bottom: 1.5rem;
}

.result-badge.hot {
  background: rgba(245,166,35,0.15);
  border: 1px solid rgba(245,166,35,0.3);
  color: var(--accent);
}

.result-badge.warm {
  background: rgba(138,138,150,0.1);
  border: 1px solid var(--steel);
  color: var(--text-3);
}

.result-desc {
  font-size: 1rem;
  color: var(--text-3);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 540px;
}

.result-desc strong {
  color: var(--accent);
}

.result-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.result-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.35rem 0.75rem;
  background: var(--bg-3);
  border: 1px solid var(--steel);
  color: var(--text-3);
}

.result-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.result-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.result-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.result-form label {
  font-family: var(--font-condensed);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-4);
}

.result-form input {
  background: var(--bg);
  border: 1px solid var(--steel);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.result-form input:focus {
  border-color: var(--accent);
}

.result-form input::placeholder {
  color: var(--text-4);
}

@media (max-width: 600px) {
  .funnel-inner {
    padding: 2rem 1.25rem;
  }

  .result-form .form-row {
    grid-template-columns: 1fr;
  }

  .fo-num {
    width: 3.5rem;
    font-size: 1.4rem;
  }

  .funnel-opt {
    padding: 1rem 1.25rem;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .gewerke-grid {
    grid-template-columns: 1fr;
  }

  .gewerk-card {
    min-height: 180px;
    padding: 1.25rem;
  }

  .gw-num {
    font-size: 1.8rem;
  }

  .gw-name {
    font-size: 0.95rem;
  }

  .gw-desc {
    font-size: 0.75rem;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  /* AI agent mobile small */
  .ai-summary {
    grid-template-columns: 1fr 1fr;
    gap: 1px;
  }

  .ai-summary-stat {
    padding: 1.25rem 0.75rem;
  }

  .ais-num {
    font-size: 1.8rem;
  }

  .agent-metric {
    padding: 1rem;
  }

  .am-num {
    font-size: 2rem;
  }

  /* Projekte mobile small */
  .projekt-card {
    min-height: 220px;
    padding: 1.5rem 1.25rem;
  }

  .projekt-card h3 {
    font-size: 1.4rem;
  }

  .section-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .lang-toggle {
    margin-right: 0;
  }
}

/* ---- Language Toggle ---- */
.lang-toggle {
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.7rem;
  background: transparent;
  color: var(--text-3);
  border: 1px solid var(--steel);
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
  text-transform: uppercase;
  line-height: 1;
}

.lang-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(245,166,35,0.08);
}
