:root{
  --bg: #ffffff;
  --bg-weak: #F7F8FA;
  --text: #0E0F10;
  --muted: #6D727A; /* edler Grauton */
  --accent: #8AC640; /* Markenakzent */
  --accent-2: #3F6C9A; /* Sekundärakzent (Ingenieursblau) */
  --accent-ink: #17210B;
  --line: #E6E8EB;

  --hero-dark: var(--img, linear-gradient(135deg,#0a0a0a 0%,#141414 70%));
  --hero-light: var(--img, linear-gradient(135deg,#f6f7f8 0%,#ffffff 70%));
  --hero-img: var(--hero-dark);
  --hero-color: #f8fafc;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);

  --font-sans: 'Roboto', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'Roboto', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
/* Local fonts disabled until woff2 files are added locally.
@font-face{font-family:'Roboto';font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url('./assets/fonts/roboto-400.woff2') format('woff2')}
@font-face{font-family:'Roboto';font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url('./assets/fonts/roboto-700.woff2') format('woff2')}
@font-face{font-family:'Roboto Mono';font-style:normal;font-weight:400;font-display:swap;src:local('Roboto Mono'),local('RobotoMono-Regular'),url('./assets/fonts/roboto-mono-400.woff2') format('woff2')}
@font-face{font-family:'Roboto Mono';font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Mono Bold'),local('RobotoMono-Bold'),url('./assets/fonts/roboto-mono-700.woff2') format('woff2')}
*/

/* Theme-Umschaltung entfernt: Light ist Standard über :root-Variablen */

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Sticky footer layout */
body{ min-height: 100vh; display:flex; flex-direction: column; }
.site-header{ flex: 0 0 auto; }
main{ flex: 1 0 auto; padding-top: 97px; }
.site-footer{ flex: 0 0 auto; margin-top: auto; }
a[href]{ cursor: pointer }
img{max-width:100%;display:block}
.container{
  width:min(1160px, 92vw);
  margin-inline:auto;
  padding-inline: 0;
}

/* Nav */
.site-header .nav{
  display:grid; align-items:center; grid-template-columns: auto 1fr auto; column-gap: 16px;
  padding:16px 0;
  transition: padding .3s ease;
}
.site-header{ position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 9999; background: var(--bg); border-bottom: 1px solid var(--line); transition: padding .25s ease, background .25s ease, border-color .25s ease; }
.site-header.is-stuck .nav{ padding: 8px 0; }
.brand{ position: relative; display: grid; align-items: center; justify-content: start }
.brand-wrap{ display:flex; align-items:center; gap:10px; transition: opacity .32s ease, transform .32s ease, filter .32s ease; position: relative; z-index: 1; }
.site-header .header-tel{ justify-self: center }
.site-header .primary-nav{ justify-self: end }
.brand-logo{ will-change: opacity, transform, filter; filter: blur(0); transition: opacity .35s ease, transform .35s ease, height .25s ease, filter .35s ease; }
/* Logo bleibt beim Scrollen sichtbar */
.site-header.is-stuck .brand-wrap{ opacity: 1; transform: none; filter: none; pointer-events: auto }
/* Mark-Logo entfällt – Hauptlogo bleibt auch im Sticky-Zustand sichtbar */
.brand{display:grid; align-items:center; gap:0; text-decoration:none; color:inherit; width: 220px; transition: width .3s ease;}
.brand-logo{height:65px; width: 220px; display:block; grid-area: 1 / 1; will-change: opacity, filter; transition: opacity .35s ease, filter .35s ease, height .3s ease, width .3s ease}
.site-header.is-stuck .brand{ width: 160px; }
.site-header.is-stuck .brand-logo{ height: 47px; width: 160px; }
/* Standard: dunkles Logo sichtbar, helles vorbereitet */
.brand-logo--dark{ opacity:1; filter: none }
.brand-logo--light{ opacity:0; filter: blur(.4px) }
/* Logo bleibt beim Scrollen gleich (kein Wechsel zu hellem Logo) */
.site-header.is-stuck .brand-logo--dark{ opacity:1; filter: none }
.site-header.is-stuck .brand-logo--light{ opacity:0; filter: blur(.4px) }
.brand-text{display:none}

/* Toggle when header sits on light background (optional) */
/* Theme-Umschaltung entfernt: Standard ist dunkles Logo auf hellem Hintergrund */

/* Force dark-on-light/ light-on-dark variants via base color hint */
/* header basecolor override removed; keep defaults to avoid hiding primary menu */

/* Visually hidden helper */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,1px,1px);white-space:nowrap;border:0}

/* Logo switching by theme */
/* Datenattribut-Theme entfernt */
.primary-nav ul{
  list-style:none; margin:0; padding:0; display:flex; gap:24px; align-items:center; flex-wrap: nowrap;
}
.primary-nav a{color:inherit; text-decoration:none; cursor: pointer}
/* Ensure clear pointer on all menu links */
.primary-nav > ul > li > a{ display:inline-block; padding: 8px 8px; cursor: pointer; font-size: 20px; white-space: nowrap; font-weight: 400; transition: font-size .3s ease, padding .3s ease; }
.site-header.is-stuck .primary-nav > ul > li > a{ font-size: 16px; padding: 6px 6px; }
.primary-nav .has-submenu > a{ cursor: pointer; white-space: nowrap }
.primary-nav .btn{ white-space: nowrap }
.primary-nav .sub-menu li > a{ cursor: pointer }
.nav-toggle{display:none}
/* Defensive: Falls noch ein alter QR im Header dom bleibt, ausblenden */
.site-header img[alt="vCard QR"],
.site-header img[src*="qrcode_vcf_1.svg"]{
  display:none !important;
}

/* QR-Code im Header entfernt */

/* Header‑Telefonnummer: bleibt ausgeblendet */
.header-tel{
  display:none !important; align-items:center; gap:6px;
  padding: 6px 12px; border-radius:0;
  border:1px solid rgba(255,255,255,.18); background: #000;
  color: #fff; text-decoration:none; font-weight:600; font-size: 14px;
  opacity:0; filter: blur(10px); transform: translateY(-2px);
  /* Beim Ausblenden (hochscrollen): zuerst blur, dann leichte Fade-Verzögerung */
  transition: filter .28s ease 0s,
              opacity .28s ease .08s,
              transform .28s ease 0s,
              background .18s ease,
              border-color .18s ease;
  /* pointer-events:auto sofort - nicht warten auf has-mini */
  pointer-events:auto;
  will-change: opacity, filter, transform;
  /* Z-index erhöhen, um sicherzustellen, dass Tel-Button über brand-wrap liegt */
  position: relative;
  z-index: 10;
}
.header-tel:hover{ background: #0d0d0d; border-color: rgba(255,255,255,.28) }
/* Logo im Telefon-Link */
.header-tel .tel-logo{ height:45px; width:auto; margin-right:8px; display:block; flex: 0 0 auto; filter: none }
/* Sticky und Mini-Logo Visibility */
@media (min-width: 980px){
  .site-header.is-stuck .header-tel{ display:inline-flex }
  .site-header.has-mini .header-tel{ display:inline-flex }
}
.site-header.has-mini .header-tel{
  opacity:1; filter: blur(0); transform:none;
  /* Beim Einblenden (runterscrollen): minimales Delay auf Opacity für weichen Blur→scharf-Effekt */
  transition: filter .32s ease 0s,
              opacity .28s ease .06s,
              transform .28s ease 0s,
              background .18s ease,
              border-color .18s ease;
}
/* Mini-Logo exakt an die Brand-Position (linke Zelle) setzen */
.site-header.has-mini .header-tel{ grid-column: 1 / 2; justify-self: start }

/* Header: moderne, reduzierte Buttons für Ingenieurs-Zielgruppe */
.site-header .btn:not(.btn-accent){ background:#000; color:#fff; border-color: rgba(255,255,255,.18); box-shadow:none }
.site-header .btn:not(.btn-accent):hover{ background:#0d0d0d }
.site-header .btn-gray{
  background:#000; color:#fff; border-color: rgba(255,255,255,.18);
}
.site-header .btn-gray:hover{
  background:#0d0d0d; border-color: rgba(255,255,255,.28); transform: translateY(-1px);
}
.site-header .btn-gray:active{ transform: translateY(0) }
.site-header .btn-ghost{ background:#000; color:#fff; border-color: rgba(255,255,255,.18); box-shadow:none }
.site-header .btn-ghost:hover{ background:#0d0d0d; border-color: rgba(255,255,255,.28); transform: translateY(-1px) }

/* Ausnahme: Outline-Akzent im Header soll wie auf der Startseite wirken */
.site-header .btn-outline-accent{
  /* Angleichen an Submenu‑Links: schwarze Kachel, weiße Schrift */
  background: #000 !important;
  color: #fff;
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 10px 24px rgba(0,0,0,.18), 0 1px 0 rgba(255,255,255,.05) inset;
  border-radius: 10px;
  padding: 10px 12px;
}
.site-header .btn-outline-accent:hover{
  background: #0d0d0d;
  color: #ffffff;
  border-color: rgba(255,255,255,.28);
  box-shadow: inset 3px 0 0 var(--accent), 0 12px 28px rgba(0,0,0,.2), 0 1px 0 rgba(255,255,255,.06) inset;
  transform: none;
}
.site-header .btn-ghost:active{ transform: translateY(0) }

/* Kompaktere Buttons im Header (btn-accent behält Standard-Padding) */
.site-header .btn:not(.btn-accent){ padding: 8px 14px; }
.site-header .btn{ border-radius: 0; font-weight: 400; transition: font-size .3s ease, padding .3s ease; }

/* Header: Kontakt-Button wie "Projekt starten" (grüner Accent-Button) */
.site-header .btn-accent{
  background: var(--accent) !important;
  border-color: transparent !important;
  color: #07120d !important;
  box-shadow: 0 8px 24px rgba(138,198,64,.35) !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  font-size: 20px;
}
.site-header.is-stuck .btn-accent{
  font-size: 16px !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  padding-left: 18px !important;
  padding-right: 18px !important;
}
.site-header .btn-accent:hover{
  filter: saturate(1.06);
  box-shadow: 0 10px 26px rgba(138,198,64,.42) !important;
  transform: translateY(-1px) !important;
  color: #ffffff !important;
  background: var(--accent) !important;
  border-color: transparent !important;
}

/* Header: Hover ohne vertikales Springen (außer btn-accent) */
.site-header .btn:not(.btn-accent):hover{ transform: none }

.nav-cta{display:flex; gap:10px; align-items:center}
/* Theme-Toggle entfernt */
/* Hover action: show up-arrow button to scroll top */
/* removed go-top hover arrow */

/* Dropdown */
.primary-nav li{position:relative}
.primary-nav .has-submenu > a::after{
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease, width 0.3s ease, height 0.3s ease, border-width 0.3s ease;
}
.site-header.is-stuck .primary-nav .has-submenu > a::after{
  width: 6px;
  height: 6px;
  border-width: 1.5px;
}
.primary-nav .has-submenu:hover > a::after{
  transform: rotate(45deg) translateY(0px);
}
.primary-nav .has-submenu:hover > a{ cursor: pointer }
.primary-nav .sub-menu{
  position:absolute; top: 100%; left:0; min-width: 240px; margin-top:8px;
  display:flex; flex-direction: column; gap:8px; align-items: stretch; text-align:left;
  visibility:hidden; opacity:0; pointer-events:none;
  transform: translateY(-8px) scale(.98); transform-origin: top center; will-change: transform, opacity;
  padding: 10px; border-radius: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 36px rgba(0,0,0,.16);
  z-index: 30;
}
/* Force left alignment in submenu rows */
.primary-nav .sub-menu li{ text-align:left }
/* Theme-spezifischer Submenu-Backdrop entfernt */
.primary-nav .sub-menu a{color: #000000}
.primary-nav .sub-menu li > a{
  display:flex; align-items:center; justify-content:flex-start; white-space:nowrap;
  width:100%;
  padding: 10px 12px;
  font-size: 15px; line-height: 1.2; font-weight: 400;
  transition: color .25s ease;
}
.primary-nav .sub-menu li > a:hover{
  color: var(--accent);
  font-weight: 600;
}
/* Theme-spezifische Submenu-Varianten entfernt */
.primary-nav .sub-menu a{white-space:nowrap; text-align:left}
.primary-nav .has-submenu.open > .sub-menu,
.primary-nav .has-submenu:hover > .sub-menu,
.primary-nav .has-submenu:focus-within > .sub-menu{
  visibility:visible; opacity:1; pointer-events:auto; transform: none;
  animation: menuDrop .28s cubic-bezier(.2,.7,.25,1.3);
}
@keyframes menuDrop{
  0%{ opacity:0; transform: translateY(-10px) scale(.96); }
  60%{ opacity:1; transform: translateY(0) scale(1.02); }
  100%{ opacity:1; transform: translateY(0) scale(1); }
}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  border-radius: 0; padding:10px 20px; font-weight:600;
  border:1px solid var(--line); text-decoration:none; color:inherit;
  transition: transform .12s ease,
              background .45s ease-in-out,
              color .45s ease-in-out,
              border-color .45s ease-in-out,
              box-shadow .45s ease-in-out;
  will-change: transform;
}
.btn:hover{transform: translateY(-1px)}
.btn:hover{cursor:pointer}
/* Leicht gehobene Ghost-Variante (heller Chip) */
.btn-ghost{
  background: linear-gradient(180deg, #ffffff, #f7f8fa);
  border-color: rgba(15,18,20,.08);
  box-shadow: 0 1px 0 rgba(255,255,255,.75) inset, 0 8px 18px rgba(0,0,0,.06);
}
.btn-ghost:hover{ box-shadow: 0 1px 0 rgba(255,255,255,.85) inset, 0 10px 22px rgba(0,0,0,.10); transform: translateY(-1px) }
.btn-ghost:active{ transform: translateY(0); box-shadow: 0 6px 14px rgba(0,0,0,.10) inset }
/* Dark-Variante für .btn-ghost entfernt */
.btn-accent{
  background: var(--accent); border-color: transparent; color: #07120d;
  box-shadow: 0 8px 24px rgba(138,198,64,.35);
}
.btn-accent:hover{
  filter:saturate(1.06);
  box-shadow: 0 10px 26px rgba(138,198,64,.42);
  transform: translateY(-1px);
  color:#ffffff;
}
.btn-accent:active{ transform: translateY(0); box-shadow: 0 6px 18px rgba(138,198,64,.28) }
.btn-accent:focus-visible{ outline: 2px solid rgba(138,198,64,.5); outline-offset: 2px }
/* Orange CTA button for 3D Upload */
.btn-orange{
  --orange: #FFC107; /* match stars */
  background: var(--orange);
  border-color: transparent;
  color: #0E0F10;
  box-shadow: 0 8px 24px rgba(255,193,7,.32);
}
.btn-orange:hover{
  filter: saturate(1.06);
  box-shadow: 0 10px 26px rgba(255,193,7,.42);
  transform: translateY(-1px);
  color: #ffffff;
}
.btn-orange:active{ transform: translateY(0); box-shadow: 0 6px 18px rgba(255,193,7,.28) }
.btn-orange:focus-visible{ outline: 2px solid rgba(255,193,7,.5); outline-offset: 2px }

/* Sekundärer Akzent-Button (technisches Blau) */
.btn-accent-2{
  background: var(--accent-2);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent-2) 35%, transparent);
}
.btn-accent-2:hover{
  filter: saturate(1.06);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--accent-2) 42%, transparent);
  transform: translateY(-1px);
}
.btn-accent-2:active{ transform: translateY(0); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent-2) 28%, transparent) }
.btn-accent-2:focus-visible{ outline: 2px solid color-mix(in srgb, var(--accent-2) 50%, transparent); outline-offset: 2px }

.btn-secondary{
  background: transparent;
  border-color: color-mix(in srgb, var(--accent-2) 65%, transparent);
  color: var(--accent-2);
  box-shadow: none;
}
.btn-secondary:hover{
  background: color-mix(in srgb, var(--accent-2) 12%, transparent);
  border-color: color-mix(in srgb, var(--accent-2) 85%, transparent);
  transform: translateY(-1px);
}
.btn-secondary:active{ transform: translateY(0) }
.btn-secondary:focus-visible{ outline: 2px solid color-mix(in srgb, var(--accent-2) 45%, transparent); outline-offset: 2px }
/* Subtiler, edler Grauton-Button */
.btn-gray{
  color: var(--text);
  border-color: rgba(15,18,20,.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(245,247,250,.94)),
    var(--bg-weak);
  box-shadow:
    0 1px 0 rgba(255,255,255,.75) inset,
    0 8px 22px rgba(0,0,0,.08);
}
.btn-gray:hover{
  filter: saturate(1.03);
  border-color: rgba(15,18,20,.12);
  box-shadow:
    0 1px 0 rgba(255,255,255,.85) inset,
    0 12px 28px rgba(0,0,0,.12);
  transform: translateY(-1px);
}
.btn-gray:active{
  transform: translateY(0);
  box-shadow:
    0 0 0 rgba(255,255,255,0) inset,
    0 6px 16px rgba(0,0,0,.10) inset,
    0 4px 14px rgba(0,0,0,.10);
}
.btn-gray:focus-visible{ outline: 2px solid rgba(138,198,64,.35); outline-offset: 2px }
/* Outline accent button */
.btn-outline-accent{
  background: transparent; color: var(--text);
  border-color: var(--accent);
}
.btn-outline-accent:hover{
  background: var(--accent); color:#ffffff; border-color: var(--accent);
  box-shadow: 0 10px 26px rgba(138,198,64,.42);
}
.btn-outline-accent:active{ transform: translateY(0); box-shadow: 0 6px 18px rgba(138,198,64,.28) }
.btn-outline-accent:focus-visible{ outline: 2px solid rgba(138,198,64,.5); outline-offset: 2px }
/* Improve contrast on dark hero background (even in light theme) */
.hero[data-basecolor="black"] .btn-outline-accent{ color: #f5f7fa; }

/* WhatsApp button (contact page) */
.btn-whatsapp{
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  padding: 10px; line-height: 0;
}
.btn-whatsapp:hover{ transform: translateY(-1px) }
.btn-whatsapp:active{ transform: translateY(0) }
.btn-whatsapp:focus-visible{ outline: 2px solid rgba(37,211,102,.5); outline-offset: 2px; border-radius: 0 }
.wa-icon{ width: 22px; height: 22px; display:block }

/* Hero */
.hero{
  position:relative;
  min-height: 36vh;
  display:grid; place-items:center;
  background: var(--hero-img);
  background-repeat: no-repeat;
  background-size: var(--hero-bg-size, cover);
  background-position: center;
  color: var(--hero-color);
}
/* Hide hero for subpages when flagged */
body[data-no-hero="true"] .hero{ display:none !important }
/* Provide comfortable offset below the header nav */
main .hero{ padding-top: clamp(24px, 6vh, 96px) }
main .hero.hero--home{ padding-top: 0 }
.hero .hero-bg{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position: var(--hero-video-pos, center); opacity:0; transition: opacity .6s ease;
  pointer-events:none; z-index:0;
  filter: none;
  transform: none;
  will-change: opacity, transform, filter;
}
.hero .hero-bg.visible{opacity:1}
.hero::before{z-index:1}
.hero-content{position:relative; z-index:2; container-type: inline-size}
/* Weiße 45°-Ecke unten rechts im Hero */
.hero::after{
  content:""; position:absolute; right:0; bottom:0; z-index:1; pointer-events:none;
  width: clamp(200px, 38vw, 620px); height: 60px;
  background: linear-gradient(315deg, #ffffff 0 50%, transparent 50% 100%);
}
@media (max-width: 640px){
  .hero::after{ width: clamp(160px, 55vw, 420px); height: 48px; }
}
/* Bewertungen innerhalb des Heros unter dem Text */
.hero .hero-reviews{
  margin-top: 14px; width: 45%; min-width: 400px; float:right; position: relative;
  background: rgba(20, 22, 24, .32);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  padding: 10px;
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,.18), 0 1px 0 rgba(255,255,255,.05) inset;
  overflow: hidden;
  min-height: 325px;
  max-height: 1000px;
  transition: max-height .35s ease, opacity .3s ease, transform .3s ease, padding .3s ease, margin .3s ease, border-width .3s ease;
}
.hero .hero-reviews.is-hiding{ opacity:0; transform: translateY(-6px); max-height: 0; padding-top:0; padding-bottom:0; margin-top:0 !important; border-width: 0; }
.hero .hero-reviews.hidden{ display:none !important }
.hero-content::after{ content:""; display:block; clear:both; }
/* Kachel-Layout für Bewertungen */
.reviews-tiles .tiles{ display:grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.review-card{ border:1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--bg); color: var(--text); box-shadow: var(--shadow); }
.review-card .review-head{ display:flex; align-items:center; gap:10px; margin-bottom: 6px; }
.review-card .avatar{ width:32px; height:32px; border-radius:999px; object-fit:cover; background:#ddd }
.review-card .name{ font-weight:600; font-size: 14px; }
.review-card .stars{ position:relative; width:6.6em; height:1.1em; font-size: 1.1em; line-height:1; }
.review-card .stars-bg{ color:#d0d4da }
.review-card .stars-fg{ position:absolute; inset:0 auto 0 0; color: #FFC107; white-space:nowrap; overflow:hidden }
.review-card .review-text{ margin: 6px 0 0; font-size: 14px; line-height:1.45 }
.review-card .meta{ font-size: 12px; color: var(--muted); margin-top: 6px }

/* Glassmorphism: Kacheln im Hero mit Blur und transparenter Fläche */
.hero .review-card{
  background: rgba(20, 22, 24, .32);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--hero-color);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,.18), 0 1px 0 rgba(255,255,255,.05) inset;
}
.hero .review-card .stars-bg{ color: rgba(255,255,255,.45) }
.hero .review-card .meta{ color: rgba(255,255,255,.8) }
/* Fertigungsverfahren: Kacheln */
.tiles-grid{ display:grid; grid-template-columns: 1fr; gap: 14px; }
.tiles-grid .tile{ opacity: 1; transform: none; }
@media (min-width: 640px){ .tiles-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px){
  .tiles-grid{ grid-template-columns: repeat(3, 1fr); }
  [class*="tile--wide"]{ min-height: 380px; }
}
.tile{ position:relative; display:block; min-height: 240px; border:1px solid var(--line); border-radius:0; overflow:hidden; background:
  linear-gradient(135deg, rgba(0,0,0,.40), rgba(0,0,0,.10)),
  var(--img) center/cover no-repeat;
  color:#fff; text-decoration:none; box-shadow: 0 10px 30px rgba(0,0,0,.10);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, filter .2s ease;
}
.tile:hover{ transform: translateY(-3px); box-shadow: 0 18px 44px rgba(0,0,0,.16); border-color: rgba(255,255,255,.25); filter: saturate(1.05); }
.tile:active{ transform: translateY(-1px); }
.tile .tile-top{ position:absolute; top:10px; left:10px; right:10px; display:flex; align-items:center; gap:8px; z-index:2 }
.tile .tile-icon{ display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:999px; background: rgba(0,0,0,.42); border:1px solid rgba(255,255,255,.2); backdrop-filter: saturate(140%) blur(6px); }
.tile .tile-icon svg{ color:#fff }
.tile .tile-content{ position:absolute; inset:auto 0 0 0; padding:14px; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.35) 42%, rgba(0,0,0,.70) 100%); z-index:1 }
.tile .tile-content h3{ margin:0 0 4px; font-size: 1.2rem; letter-spacing:.2px; }
.tile .tile-content p{ margin:0 0 8px; font-size: .95rem; opacity:.9 }
.tile .tile-cta{ display:none }
[class*="tile--wide"]{ min-height: 320px; }
/* Theme-Varianten für .tile entfernt */
/* Fixe Höhe für den Hero-Textblock auf der Startseite */
#hero-copy{ height: 350px; }
/* Startseiten-Hero größer darstellen */
.hero.hero--home{ min-height: 68vh; }
/* Home-Hero kompakter */

/* Bei kleineren Browserhöhen mehr Abstand zum fixed Header */
@media (max-height: 1400px){
  main .hero.hero--home{ padding-top: 120px; }
}
@media (max-height: 900px){
  main .hero.hero--home{ padding-top: 100px; }
}
@media (max-height: 700px){
  main .hero.hero--home{ padding-top: 80px; }
}


/* Hero Split Layout (Startseite): links Text, rechts Bewertungen */
.hero .hero-split{ width: min(1160px, 92vw); display:block; }
.hero .hero-left{ max-width: 720px; }
.hero .hero-right{ width:50%; margin-left:auto; }
.hero .hero-right{ margin-top: 10px; }
.hero .hero-reviews .reviews{ padding: 10px 0 8px; }
.hero .hero-reviews .reviews-body{ gap: 18px; }
.hero .hero-reviews .reviews-count{ color: var(--hero-color); font-size: clamp(36px, 5vw, 52px); font-weight: 800; line-height: 1; }
.hero .hero-reviews .reviews-rating{ gap: 6px; }
.hero .hero-reviews .reviews-text{ color: var(--hero-color); font-size: 14px; font-weight: 500; line-height: 1.3; }
.hero .hero-reviews .stars-bg{ color: rgba(255,255,255,.4); white-space: nowrap; }
.hero .hero-reviews .stars-fg{ color: #FFC107; white-space: nowrap; }
.hero .hero-reviews .stars{ font-size: 2.4em; height: 1.2em; white-space: nowrap; overflow: hidden; }
/* Slider im Hero ohne Kasten-Hintergrund */
.hero .hero-reviews .reviews-slider{ position: static; }
.hero .hero-reviews .slider-viewport{
  position: static;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 10px;
}
.hero .hero-reviews .slider-progress{ position:absolute; left:0; right:0; bottom:0; height:1px; background: var(--line); }
.hero .hero-reviews .slider-progress .bar{ height:100%; background: var(--accent); }
.hero .hero-reviews .slider-progress{ background: rgba(255,255,255,.18); height: 2px; }
.hero .hero-reviews .slider-progress .bar{ height: 100%; }
.hero .hero-reviews .slider-track{ gap: 0; }
.hero .hero-reviews .review-slide{ min-width:100%; padding: 6px 0; gap:6px; }
.hero .hero-reviews .review-text{ margin: 0; font-size: 13px; line-height: 1.35; }
.hero .hero-reviews .meta{ font-size: 12px; opacity:.85 }
.hero .hero-reviews .reviews-source{ display:flex; align-items:center; justify-content:flex-end; gap: 10px; margin-top: 4px; }
.hero .hero-reviews .reviews-source .review-when{ font-size: 12px; opacity:.9; color: rgba(255,255,255,.85) }
/* Theme-Variante für review-when entfernt */
.hero .hero-reviews .reviews-source .icon-world{ width:16px; height:16px; vertical-align:middle; margin-right:6px; }
.hero .hero-reviews .slider-dots{ display:flex; gap:10px; justify-content:flex-end; margin-top:6px; }
.hero .hero-reviews .slider-dots .dot{
  width:14px; height:14px; border-radius:999px;
  border:2px solid var(--line); background: rgba(255,255,255,.25);
  padding:0; cursor:pointer;
}
.hero .hero-reviews .slider-dots .dot:hover{ filter:saturate(1.1); transform: scale(1.1); }
.hero .hero-reviews .slider-dots .dot.active{ background: var(--accent); border-color: var(--accent); }
/* Theme-Variante für slider dots entfernt */
@media (max-width: 980px){ .hero .hero-right{ width:100%; margin-left:0; } }

/* Mirrored hero background (content corrected back) */
.hero.hero--flip{ transform: scaleX(-1); }
.hero.hero--flip .hero-content{ transform: scaleX(-1); }

/* Hamburger button */
.nav-toggle{ display:none; align-items:center; justify-content:center; width:42px; height:42px; border:1px solid var(--line); background: var(--bg); border-radius:0; padding:0 }
.nav-toggle .burger{ position:relative; width:22px; height:2px; background: var(--text); border-radius:0; transition: background .2s ease, transform .2s ease }
.nav-toggle .burger::before, .nav-toggle .burger::after{ content:""; position:absolute; left:0; width:22px; height:2px; background: var(--text); border-radius:0; transition: transform .2s ease, top .2s ease, bottom .2s ease }
.nav-toggle .burger::before{ top:-7px }
.nav-toggle .burger::after{ bottom:-7px }
.primary-nav[data-open="true"] .nav-toggle .burger{ background: transparent }
.primary-nav[data-open="true"] .nav-toggle .burger::before{ top:0; transform: rotate(45deg) }
.primary-nav[data-open="true"] .nav-toggle .burger::after{ bottom:0; transform: rotate(-45deg) }

@media (max-width: 640px){
  .hero .hero-bg{ filter: none; transform: none; }
}
/* Default hero overlay disabled globally; enable selectively for videos */
.hero::before{
  content:""; position:absolute; inset:0; pointer-events:none; display:none;
}
/* Darkening overlay for hero videos: top-left to bottom-right */
.hero.hero--has-video::before{
  display:block !important;
  background:
    linear-gradient(135deg,
      rgba(0,0,0,.55) 0%,
      rgba(0,0,0,.38) 45%,
      rgba(0,0,0,.18) 100%
    );
}
/* Theme-Variante für hero--has-video entfernt */

/* Hero with static background image */
.hero.hero--has-image{
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero.hero--has-image::before{
  display:block !important;
  background:
    linear-gradient(135deg,
      rgba(0,0,0,.55) 0%,
      rgba(0,0,0,.38) 45%,
      rgba(0,0,0,.18) 100%
    );
}
.hero-content{text-align:left}
.hero h1{font-size: clamp(40px, 6vw, 64px); line-height:1.05; margin:0 0 10px; color: #8AC640; text-transform: uppercase}
.hero h1 .title-news{ color: #ffffff; }
.hero p{font-size: clamp(16px, 2.5vw, 20px); color:#d1d5db; margin:0 0 22px}
/* Theme-Variante für .hero p entfernt */

/* Container-queried Typografie im Hero: skaliert dynamisch mit der Boxbreite */
@supports (container-type: inline-size){
  .hero .hero-content h1{ font-size: clamp(32px, 10cqw, 72px); }
  .hero .hero-content p{ font-size: clamp(15px, 4cqw, 24px); }
  .hero .hero-content .hero-cta .btn{
    font-size: clamp(13px, 2.8cqw, 18px);
    padding: clamp(9px, 1.8cqw, 14px) clamp(14px, 3.2cqw, 24px);
  }
}

/* Allow overriding hero text color when on dark media */
.hero[data-basecolor="black"]{ --hero-color: #f5f7fa; }
.hero[data-basecolor="black"] p{ color: #e6e9ef }
.hero-cta{display:flex; gap:12px; flex-wrap:wrap}
/* Chat anchor marker */
.msg.anchor .msg-bubble{ text-align:center; opacity:.75; font-size:14px }
.msg.anchor .down-arrow{ display:inline-block; font-size:18px; line-height:1; }
/* Chat typing indicator */
.typing .typing-bubble{
  filter: blur(0);
  animation: thinkPulse 1.4s ease-in-out infinite;
  opacity: .85;
}
@keyframes thinkPulse{
  0%{ filter: blur(0px); opacity:.72; transform: translateY(0) scale(1); }
  50%{ filter: blur(1.5px); opacity:1; transform: translateY(0) scale(1.02); }
  100%{ filter: blur(0px); opacity:.8; transform: translateY(0) scale(1); }
}
/* Ask box (laser green) */
.ask-box{
  margin-top:12px; padding:10px; border:2px solid var(--accent); border-radius:12px;
  background: var(--bg); color: var(--text);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent), 0 10px 24px color-mix(in srgb, var(--accent) 18%, transparent);
  transform: translateY(6px) scale(.98); opacity:0; pointer-events:none; filter: blur(8px);
  transition: transform .28s ease, opacity .28s ease, filter .28s ease;
  position:relative; overflow:hidden;
}
.ask-box::after{
  content:""; position:absolute; top:-2px; left:-30%; width:40%; height:2px;
  background: linear-gradient(90deg, rgba(0,0,0,0), var(--accent), rgba(0,0,0,0));
  animation: ask-laser 1.6s linear infinite;
}
.ask-box.open{transform:none; opacity:1; pointer-events:auto; filter: blur(0)}
.ask-form{display:flex; gap:10px; align-items:center}
.ask-form input{
  flex:1; padding:12px 12px; border-radius:10px; border:1px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent);
}
.ask-form input:focus{outline:2px solid color-mix(in srgb, var(--accent) 35%, transparent); border-color: color-mix(in srgb, var(--accent) 55%, transparent)}
.ask-close{white-space:nowrap}
@keyframes ask-laser{0%{left:-30%}100%{left:120%}}

/* Mobile sizing for ask input */
@media (max-width: 640px){
  .ask-box{padding:14px}
  .ask-form{flex-wrap:wrap; gap:8px}
  .ask-form input{
    flex: 1 1 100%;
    font-size: 16px; /* prevents iOS zoom */
    padding: 14px 14px;
  }
  .ask-form .btn{flex: 1 1 auto}
}

/* white corner removed for flexibility */

/* Sections */
.section{padding: 72px 0;}
.section-head h2{margin:0 0 8px; font-size: clamp(28px, 4.5vw, 36px)}
.section-head p{margin:0; color: var(--muted)}

/* Content links (global, non-button) */
main a:not(.btn):not(.social){
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
main a:not(.btn):not(.social):hover{ border-color: var(--accent) }
main a:not(.btn):not(.social):focus-visible{
  outline: 2px solid rgba(138,198,64,.45);
  outline-offset: 2px;
  border-color: var(--accent);
}

/* Technical headings (mono) */
h1, h2, h3, h4, h5, h6{
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: .2px;
}

/* Cards */
.cards{
  margin-top:24px;
  display:grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.card{
  background: var(--bg-weak); border:1px solid var(--line); border-radius: var(--radius);
  padding:20px; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
}
.card:hover{transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,.12)}
.card h3{margin:10px 0 6px}
.card p{margin:0; color: var(--muted)}
.icon-wrap{
  width:44px; height:44px; border-radius:10px;
  display:grid; place-items:center;
  background: radial-gradient(100% 100% at 20% 10%, #e6f3c9, var(--accent));
  color:#07120d;
  box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.14), 0 6px 18px rgba(138,198,64,.35);
  position: absolute; top: 12px; right: 12px;
}
.icon-wrap svg{width:24px; height:24px}

/* Works */
.section-works{
  background: #0b0b0b; color:#fff;
  background-image: radial-gradient(80% 60% at 20% 10%, rgba(138,198,64,.08), rgba(0,0,0,0) 60%);
}
.works-grid{
  display:grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top:24px;
}
.work{
  position:relative; aspect-ratio: 4/3; overflow:hidden; border-radius: 0;
  background: #111; border:1px solid rgba(255,255,255,.08);
}
.work::before{
  content:"";
  position:absolute; inset:0;
  background-image: var(--img), linear-gradient(#0c0c0c,#0c0c0c);
  background-size: cover; background-position:center;
  filter: contrast(1.1) saturate(0) brightness(.9);
  transition: transform .6s ease;
}
.work::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(0deg, rgba(138,198,64,.24), rgba(138,198,64,.0) 50%);
  mix-blend-mode: screen;
  opacity:.9; transition: opacity .3s ease;
}
.work:hover::before{transform: scale(1.06)}
.work:hover::after{opacity:1}
.work figcaption{
  position:absolute; inset:auto 12px 12px 12px;
  display:flex; align-items:center; gap:10px;
  font-weight:600; letter-spacing:.2px;
}
.chip{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 10px; border-radius:0; font-size:12px;
  background: rgba(138,198,64,.18); color:#e8f6cf;
  border: 1px solid rgba(138,198,64,.35);
}
.chip svg{width:14px; height:14px}

/* Timeline */
.timeline{list-style:none; margin: 22px 0 0; padding:0; display:grid; gap: 16px;}
.timeline li{
  display:flex; align-items:center; gap:12px;
  background: var(--bg-weak); border:1px solid var(--line);
  padding:16px; border-radius: var(--radius);
}
.badge{
  width:36px; height:36px; border-radius:10px; display:grid; place-items:center;
  background: #0b0b0b; color:#d8f0b0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.badge svg{width:18px; height:18px}

/* About */
.about-split{display:grid; grid-template-columns: 1.2fr .8fr; gap: 28px; margin-top: 14px; align-items: start}
/* Ensure both columns start at the same vertical position */
.about-split > *{ align-self: start }
.about-split > * > :first-child{ margin-top: 0 }
.about-split h2:first-child{ margin-top: 0 }
.muted{color: var(--muted)}
.bullets{margin:0; padding-left: 18px}

/* Dropzone for upload */
.dropzone{
  border: 2px dashed color-mix(in srgb, var(--accent) 40%, var(--line));
  border-radius: 12px;
  background:
    radial-gradient(120% 80% at 10% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 60%),
    var(--bg-weak);
  padding: 16px; text-align:center;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, filter .2s ease;
}
.dropzone .dz-icon{ font-size: 22px; margin-bottom: 6px; color: var(--accent); opacity: .95; display: flex; align-items: center; justify-content: center }
.dropzone .dz-text{ margin: 4px 0 }
.dropzone .btn-small{ padding:6px 10px; font-size: .9em }
.dropzone.is-hover{
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(138,198,64,.20);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 12%, #ffffff), #f7fbef 60%);
  filter: saturate(1.02);
}
/* Theme-Varianten für Dropzone entfernt */
/* subtle upload pulse */
.dropzone.uploaded{ animation: dzPulse .6s ease-in-out 2; border-color: var(--accent); }
@keyframes dzPulse{ 0%{ transform: scale(1) } 50%{ transform: scale(1.01) } 100%{ transform: scale(1) } }

/* XL dropzone for 3D Upload */
.dropzone--xl{ min-height: 420px; display:flex; align-items:center; justify-content:center }
.dropzone--xl .dz-icon{ font-size: 54px; }
.dropzone--xl .dz-icon svg{ width: 64px; height: 64px; }
.dropzone--xl .dz-text{ font-size: 1.15rem }
.viewer-wrap{ margin-top: 16px; border:1px solid var(--line); border-radius: 12px; overflow:hidden; background: var(--bg) }
.viewer-head{ padding:10px 12px; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between }
.viewer-canvas{ width:100%; height: 420px; display:block; background: radial-gradient(100% 80% at 50% 0%, rgba(138,198,64,.06), transparent 55%), var(--bg-weak); }
.viewer-hint{ padding: 8px 12px; color: var(--muted); font-size: 13px }

/* Upload: Dateiliste mit Previews */
.file-list{ display:grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; padding: 12px }
.file-card{ border:1px solid var(--line); border-radius: 12px; overflow:hidden; background: var(--bg); box-shadow: var(--shadow) }
.file-card .file-head{ padding:10px 12px; border-bottom:1px solid var(--line); display:flex; flex-direction:column; gap:4px }
.file-card .file-name{ font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.file-card .file-preview{ height: 240px; background: var(--bg-weak); display:block }
.file-card .file-options{ padding: 10px 12px; display:grid; gap: 10px; border-top:1px solid var(--line) }
.file-card .opt-row{ display:grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: center }
.file-card .opt-row.opt-notes{ grid-template-columns: 1fr; }
.file-card .opt-notes-text{ display:none; margin-top:8px; }
.file-card.show-notes .opt-notes-text{ display:block; }
.file-card input[type="number"],
.file-card select,
.file-card textarea{ width:100%; border-radius:10px; border:1px solid var(--line); padding:8px 10px; background: var(--bg); color: var(--text); font: inherit }

/* Kontakt */
.contact-form{display:grid; gap: 14px; margin-top: 14px;}
.contact-form .row{display:grid; grid-template-columns: 1fr 3fr; gap: 12px}
.contact-form label{ align-self: center; }
/* Schwarzes Panel für Kontaktformular (Kontakt-Seite) */
.contact-panel{
  /* Schwarzes "Glass"-Panel (noch dunkler) */
  position: relative;
  overflow: hidden;
  background: rgba(6,8,10,.82);
  color: #f2f4f7;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 16px;
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 14px 36px rgba(0,0,0,.32), 0 1px 0 rgba(255,255,255,.03) inset;
}
/* Diffuser Accent-Dot zur Auflockerung */
.contact-panel::before{
  content: "";
  position: absolute;
  right: -120px; bottom: -120px;
  width: 360px; height: 360px;
  background:
    radial-gradient(closest-side,
      color-mix(in srgb, var(--accent) 55%, transparent) 0,
      transparent 70%
    );
  filter: blur(28px);
  opacity: .28;
  pointer-events: none;
}
.contact-panel label{ color: #e5e7eb }
.contact-panel .form-hint, .contact-panel #contact-status{ color: #ffffff !important }
/* Buttons im schwarzen Kontakt-Panel: Text dunkel halten für Kontrast auf hellem Button */
.contact-panel .btn-ghost,
.contact-panel .btn-gray{
  color: #0E0F10;
}
input, textarea{
  width:100%; border-radius: 10px; border:1px solid var(--line); padding:12px 12px;
  background: var(--bg); color: var(--text); font: inherit;
}
/* Force contact form fields to white bg + black text */
.contact-form input,
.contact-form textarea{
  background: #ffffff !important;
  color: #000000 !important;
}
input::placeholder, textarea::placeholder{ color: var(--muted) }
input:focus, textarea:focus{outline:2px solid rgba(138,198,64,.35); border-color: rgba(138,198,64,.45)}
.form-hint{margin:.25rem 0 0; color: var(--muted); font-size: 12px}
.contact-form #contact-status{ margin-top: 8px }
/* Contact success panel */
.success-panel{ margin-top:14px; padding:16px; border:1px solid var(--line); border-left: 4px solid var(--accent); border-radius:12px; background: var(--bg-weak); box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.success-panel .success-title{ display:flex; align-items:center; gap:10px; margin:0 0 6px; font-size: 1.2rem; font-weight: 800 }
.success-panel .success-ref{ margin-top:6px; font-family: var(--font-sans); font-weight:700; display:inline-block; padding:6px 8px; border:1px solid var(--line); border-radius:8px; background: var(--bg) }
.success-panel .success-ref-row{ margin-top:6px; display:flex; align-items:center; gap:8px; flex-wrap:wrap }
/* Generic small button */
.btn-small{ padding:6px 10px; font-size: .9em }

/* Compact state after successful upload */
.dropzone.is-compact{ min-height: 0 !important; padding: 10px; border-style: solid; display:block; background: var(--bg); border-color: color-mix(in srgb, var(--accent) 25%, var(--line)); }
.dropzone.is-compact .dz-icon{ font-size: 28px; }
.dropzone.is-compact .dz-icon svg{ width: 32px; height: 32px; }
.dropzone.is-compact .dz-text{ font-size: .98rem }
.dropzone.is-compact .dz-hint{ display:none }

/* Footer */
.newsletter-bar{
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 60%), var(--bg);
  border-top: 1px solid var(--line);
  /* Untere Linie entfernt, damit die Footer-Kante nicht gebrochen wird */
  border-bottom: none;
  padding: 22px 0;
}
.nl-wrap{ display:flex; align-items:center; justify-content:space-between; gap: 16px; flex-wrap: wrap }
.nl-copy{ min-width: 280px }
.nl-title{ margin:0; font-size: clamp(18px, 3vw, 22px) }
.nl-sub{ margin:6px 0 0; color: var(--muted); font-size: 14px }
.newsletter-form{ display:flex; align-items:center; gap: 10px; flex: 1 }
.newsletter-form input[type="email"]{ flex: 1 1 320px }
/* Center the newsletter button */
.newsletter-bar .nl-wrap{ justify-content: center; }
.newsletter-bar .nl-copy{ text-align: center; }
.newsletter-form{ justify-content: center; flex: 0 0 auto }
/* Newsletter background image removed */
.newsletter-bar{ position: relative }
.newsletter-bar .container{ position: relative; z-index: 1 }

@media (max-width: 640px){
  .newsletter-form{ width:100%; }
  .newsletter-form input[type="email"]{ flex: 1 1 auto }
}
.site-footer{padding: 36px 0; background: #000000; color: #f2f4f7; position: relative; overflow: visible}
.site-footer .footer-head{ color: #ffffff }
.site-footer .footer-company{ color: #ffffff }
.site-footer .footer-address{ color: #e5e7eb }
.site-footer .footer-address .addr-line{ color: #e5e7eb }
.site-footer .footer-address .addr-icon{ color: #ffffff; opacity: .9 }
.site-footer .footer-grid > nav,
.site-footer .footer-grid > .legal{ border-left: 1px solid rgba(255,255,255,.12) }
.site-footer .footer-bottom{ color: #cbd5e1 }
.site-footer::before{
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(200px, 38vw, 620px);
  height: 60px;
  pointer-events: none;
  /* 45° Kante, harte Trennung: rechter oberer Bereich in Footer-Farbe, links/transparenter Auslauf */
  background: linear-gradient(225deg, #ffffff 0 50%, transparent 50% 100%);
}
@media (max-width: 640px){
  .site-footer::before{ width: clamp(160px, 55vw, 420px); height: 48px; top: -48px; }
}
.footer-grid{display:grid; grid-template-columns: 1.2fr .8fr .6fr .8fr; align-items:start; gap: 28px;}
.footer-grid > *{width:100%}
.footer-logo{height:100px; width:auto; display:block}
.brand--footer .brand-mark{display:none}
.brand--footer .brand-text{display:none}
.slogan{font-weight:600; letter-spacing:.2px; margin:8px 0; text-align:center; font-size: clamp(1em, 1em + 1vw, 1.2em); color: var(--accent)}

.footer-brandline{display:flex; align-items:center; gap:12px}
.footer-company{font-weight:800; letter-spacing:.35px; font-size: clamp(26px, 2.0vw, 35px); text-transform: none}
/* Theme-Varianten für Footer-Company entfernt */

/* Decorative separators */
.footer-sep{height:1px; width:100%; margin:10px 0; background: linear-gradient(90deg, rgba(0,0,0,0), rgba(138,198,64,.6), rgba(0,0,0,0))}
.qr-flex{ display:flex; align-items:center; gap: 12px }
.qr-flex .footer-qr{ display:inline-flex; flex-direction:column; align-items:center; text-align:center }
.qr-flex .footer-wa{ display:inline-flex }
/* Contact page QR row + WhatsApp icon */
.qr-row{ display:flex; align-items:center; gap: 14px; flex-wrap: wrap }
.wa-qr{ width:150px; height:150px; display:block }
.footer-sep--soft{opacity:.5}

/* Column dividers */
.footer-grid > nav{border-left:1px dashed var(--line); padding-left:20px}
.footer-grid > .qr-col{ justify-self: end; text-align: center; }
.footer-grid > .legal{border-left:1px dashed var(--line); padding-left:20px}

@media (max-width: 980px){
  .footer-grid{gap:18px}
  .footer-grid{grid-template-columns: 1fr 1fr}
  .footer-grid > nav,
  .footer-grid > .legal{border-left:none; padding-left:0}
}

/* Social buttons */
.social-links{display:flex; gap:10px; margin-top:8px}
.social{
  display:inline-grid; place-items:center; width:36px; height:36px; border-radius:999px;
  /* Edles Grau auf schwarzem Footer */
  border:1px solid rgba(255,255,255,.18);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  color: #e5e7eb;
  box-shadow: 0 6px 16px rgba(0,0,0,.28), 0 1px 0 rgba(255,255,255,.04) inset;
  transition: transform .12s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.social:hover{transform: translateY(-1px)}
.social--fb:hover, .social--ig:hover{background: var(--accent); color:#07120d; border-color: transparent}
.legal{display:flex; gap: 8px; align-items:flex-start; flex-direction:column}
.footer-bottom{margin-top: 18px; text-align:center; opacity:.5}

/* Footer link styles */
.site-footer nav a{ color: var(--accent); text-decoration:none; border-bottom:1px solid transparent; transition: color .2s ease, border-color .2s ease }
.site-footer .legal a{ color: var(--accent); text-decoration:none; border-bottom:1px solid transparent; transition: color .2s ease, border-color .2s ease }
.site-footer nav{display:flex; flex-direction:column; gap:8px; align-items:flex-start}
/* Keep social buttons horizontal */
.site-footer nav.social-links{flex-direction:row; align-items:center; gap:10px}
.footer-address{font-style: normal; color: var(--muted); line-height:1.4; margin:4px 0 8px}
.footer-address a{color: var(--accent); text-decoration:none; border-bottom:1px solid transparent}
.footer-address a:hover{border-color: var(--accent)}
.footer-address .addr-line{display:flex; align-items:flex-start; gap:10px; margin-top:10px; color: var(--text)}
.footer-address .addr-icon{width:16px; height:16px; color: var(--text); opacity:.9; display:block; margin-top:2px; flex: 0 0 16px}
.footer-address .addr-line span,
.footer-address .addr-line a{ line-height: 1.35; display:inline-block }

/* Pseudo QR link */
.footer-qr{display:inline-flex; flex-direction:column; align-items:center; gap:6px; text-decoration:none; color: var(--muted); margin: 6px 0 10px}
.qr-svg{width:120px; height:120px; color: var(--text); background: transparent; border:0; border-radius:0; box-shadow: none}
.footer-qr:hover .qr-svg{ box-shadow: none }
.footer-qr[data-tip]{ position: relative }
.footer-qr[data-tip]::after{
  content: attr(data-tip);
  position: absolute;
  left: 50%; bottom: 100%; transform: translate(-50%, -8px);
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 8px; font-size: 12px; line-height: 1.3; width: max-content; max-width: 62vw;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.footer-qr[data-tip]:hover::after,
.footer-qr[data-tip]:focus::after,
.footer-qr[data-tip]:focus-visible::after{ opacity:1; transform: translate(-50%, -12px); }
.qr-caption{font-size:12px}
.qr-hint{font-size:12px; margin-top:6px}
/* QR row layout (QR left, hint right) */
.qr-row{ display:flex; flex-direction:column; align-items:flex-start; gap:6px }
.qr-row .footer-qr{ margin: 0 }
.qr-row .qr-hint{ margin: 6px 0 0; max-width: 420px; text-align:left }
.site-footer nav a:hover{ border-color: var(--accent) }
.site-footer .legal a:hover{ border-color: var(--accent) }
.site-footer nav a:focus-visible,
.site-footer .legal a:focus-visible{
  outline: 2px solid rgba(138,198,64,.45);
  outline-offset: 2px;
  border-color: var(--accent);
}

/* Footer heading */
.site-footer .footer-head{
  margin: 0 0 6px;
  font-family: var(--font-sans);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .35px;
  font-size: clamp(16px, 2.2vw, 18px);
  color: var(--text);
}

/* Marketing-Style für Arbeiten-Intro */
section#arbeiten .section-head{ position: relative }
section#arbeiten .section-head h2{
  font-weight: 900;
  letter-spacing: .4px;
  text-transform: uppercase;
  font-size: clamp(24px, 3.2vw, 34px);
}
section#arbeiten .section-head p{
  margin-top: 8px;
  font-weight: 600;
  letter-spacing: .2px;
  line-height: 1.45;
  font-size: clamp(16px, 2.0vw, 20px);
}
/* Spiegelung der Footer-Kante: weiße 45°-Ecke oben rechts an der Arbeiten-Section */
section#arbeiten::before{
  content: ""; position:absolute; top: -48px; right: 0; height: 48px;
  width: clamp(160px, 32vw, 520px);
  background: linear-gradient(225deg, #ffffff 0 50%, transparent 50% 100%);
  pointer-events: none;
}

/* Toleranzen-Tabelle – volle Breite, saubere Lesbarkeit */
.toleranzen-vereinbarung .table-wrap{
  margin: 12px 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: auto;
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
}
.toleranzen-vereinbarung table{ width:100%; border-collapse: collapse; min-width: 560px }
.toleranzen-vereinbarung thead th{
  background: var(--accent);
  color: #07120d;
  text-align: left;
  padding: 12px 14px;
  font-weight: 800;
}
.toleranzen-vereinbarung tbody td{
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}
.toleranzen-vereinbarung tbody tr:nth-child(even){ background: var(--bg-weak) }
/* Light theme: Footer trotzdem dunkel/schwarz darstellen */
/* Theme-Varianten für Site-Footer entfernt */

/* Reveal animations */
.reveal{opacity:0; transform: translateY(14px); transition: .6s ease}
.reveal.in-view{opacity:1; transform:none}


/* Reviews strip */
.section-reviews .reviews{border:1px solid var(--line); border-radius:14px; padding:14px; box-shadow: 0 10px 28px rgba(0,0,0,.06); background: var(--bg)}
.reviews-header h2{margin:0 0 8px; font-size: clamp(18px, 1.6vw, 22px)}
.reviews-body{display:grid; grid-template-columns: auto 1fr; align-items:center; gap:20px}
.reviews-count{font-weight:800; font-size: clamp(28px, 3vw, 42px); letter-spacing:.3px; line-height:1}
.reviews-count .plus{color: var(--accent)}
.reviews-rating{display:flex; flex-direction:column; gap:6px; justify-content:center}
.stars{position:relative; display:inline-block; font-size: 20px; line-height:1}
.stars-bg{color:#cbd5e1}
.stars-fg{position:absolute; inset:0 auto 0 0; color:#FFC107; overflow:hidden; white-space:nowrap}
.reviews-text{color: var(--muted); font-size: 14px; margin:0}

/* Responsive */
@media (max-width: 980px){
  .cards{grid-template-columns: 1fr 1fr}
  .works-grid{grid-template-columns: 1fr 1fr}
  .about-split{grid-template-columns: 1fr}
  .contact-form .row{grid-template-columns:1fr}
  .hero-corner{width:46vw}
  /* Bewertungen auf Tablet/Mobil: volle Breite und kein Float */
  .hero .hero-reviews{ max-width: 100%; float: none; margin-top: 110px; }
  .hero .hero-reviews .slider-dots{ justify-content: center; }
}

/* CTA mit Video (Startseite) - Hero-Style */
.section-cta{
  position: relative;
  min-height: 50vh;
  display: grid;
  place-items: center;
  padding: 80px 0;
  background: #000;
  overflow: hidden;
}
.cta-wrap{
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}
.cta-copy{
  position: relative;
  z-index: 2;
  padding: 48px 40px;
  background: rgba(20, 22, 24, .85);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 16px 48px rgba(0,0,0,.25), 0 1px 0 rgba(255,255,255,.08) inset;
}
.cta-copy h2{
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 48px);
  color: var(--accent);
  font-weight: 800;
}
.cta-copy p {
  font-size: clamp(16px, 2.5vw, 20px);
  line-height: 1.6;
  margin: 0 0 32px;
  color: #d1d5db;
}
.cta-actions{
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-media{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cta-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
}
.section-cta::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(0,0,0,.15) 0%,
    rgba(0,0,0,.08) 42%,
    rgba(0,0,0,.15) 100%);
  z-index: 1;
}
@media (max-width: 980px){
  .section-cta{ min-height: 45vh; }
}
@media (max-width: 640px){
  .section-cta{ min-height: 40vh; padding: 60px 0; }
  .cta-copy{ padding: 32px 24px; }
  .cta-copy h2{ font-size: 28px; }
  .cta-actions{ flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto; }
  .cta-actions .btn{ width: 100%; justify-content: center; }
  .footer-grid{grid-template-columns: 1fr}
  .primary-nav ul{display:none}
  .nav-toggle{display:inline-flex; align-items:center; gap:8px; border:1px solid var(--line); background:#fff; border-radius:0; padding:8px 12px}
  .primary-nav[data-open="true"] ul{
    position:absolute; top:64px; left:0; right:0; width:100%; display:flex; flex-direction:column; gap:4px;
    align-items: flex-start;
    background:#fff; border:1px solid var(--line); border-radius:0; padding:8px 10px; box-shadow: var(--shadow);
    z-index: 1;
  }
  /* Dark mode: mobile menu background black */
  /* Theme-Varianten für Mobile-Menü entfernt */
  .primary-nav[data-open="true"] ul li{ width:100%; }
  .primary-nav[data-open="true"] ul a{ display:block; width:100%; text-align:left; padding:10px 12px; border-radius:0; }
  .primary-nav[data-open="true"] ul a:hover{ background: var(--bg-weak); }
  .primary-nav .has-submenu > a::after{content:""}
  .primary-nav[data-open="true"] .has-submenu > .sub-menu{
    position: static; display:block; padding:6px 8px; border-radius:0; border:1px dashed var(--line);
  }
  .cards{grid-template-columns: 1fr}
  .works-grid{grid-template-columns: 1fr}
}

/* Larger QR on desktop */
@media (min-width: 980px){
  .qr-svg{width:120px; height:120px}
}

/* Desktop: Menu left-aligned and max 25% width */
@media (min-width: 981px){
  .footer-grid > .legal{
    justify-self: start;
    text-align: left;
    align-items: flex-start;
    max-width: 25%;
    width: 100%;
  }
}

/* Larger logo on desktop */
@media (min-width: 980px){
  .brand-logo{height:65px}
}
/* Theme-Variante .btn-ghost entfernt */

/* Global pointer for interactive elements */
a:hover, button:hover, [role="button"]:hover, .social:hover, .nav-toggle:hover { cursor: pointer }


/* Font orb UI removed; pulldown handled via JS */

/* Chat panel moved to chat theme */
.is-hidden{display:none !important}
/* moved to chat theme: .chat-panel */
/* moved to chat theme: .chat-panel.visible */
/* moved to chat theme: header/messages/msg/bubbles */
/* moved to chat theme: markdown styles */
/* chat ill moved to theme */

/* Comic-style tooltip for chat illustration */
.chat-ill-wrap[data-tip]{cursor: help}
.chat-ill-wrap[data-tip]::after{
  content: attr(data-tip);
  position:absolute; right: 100%; top: -6px; transform: translateX(-10px) translateY(0) scale(.78);
  transform-origin: right center;
  max-width: 240px; white-space: normal;
  background: 
    radial-gradient(100px 60px at 20% 30%, rgba(138,198,64,.18), rgba(138,198,64,0) 60%),
    radial-gradient(120px 70px at 80% 70%, rgba(0,180,255,.16), rgba(0,180,255,0) 60%),
    radial-gradient(90px 50px at 50% 50%, rgba(255,0,128,.14), rgba(255,0,128,0) 60%),
    var(--bg);
  color: var(--text);
  border: 3px solid var(--accent);
  border-radius: 16px;
  padding: 10px 12px;
  box-shadow: 0 8px 26px rgba(0,0,0,.18), 0 0 0 2px rgba(255,255,255,.05) inset;
  z-index: 5; pointer-events:none; opacity:0; transition: .18s ease;
}
.chat-ill-wrap[data-tip]::before{
  content:""; position:absolute; right: calc(100% - 6px); top: 20px; width:16px; height:16px;
  background: var(--bg);
  border: 3px solid var(--accent);
  border-left: none; border-bottom: none; transform: rotate(45deg);
  box-shadow: 4px -4px 16px rgba(0,0,0,.08);
  z-index: 4; opacity:0; transition: .18s ease;
}
.chat-ill-wrap:hover::after, .chat-ill-wrap:focus-visible::after{opacity:1; animation: tip-pop .22s cubic-bezier(.2,.9,.2,1.02) forwards}
.chat-ill-wrap:hover::before, .chat-ill-wrap:focus-visible::before{opacity:1; animation: tip-pop-arrow .22s cubic-bezier(.2,.9,.2,1.02) forwards}

@keyframes tip-pop{
  0%{ transform: translateX(-10px) translateY(0) scale(.75); opacity:0 }
  60%{ transform: translateX(-10px) translateY(0) scale(1.06); opacity:1 }
  100%{ transform: translateX(-10px) translateY(0) scale(1); opacity:1 }
}
@keyframes tip-pop-arrow{
  0%{ transform: rotate(45deg) scale(.7); opacity:0 }
  60%{ transform: rotate(45deg) scale(1.05); opacity:1 }
  100%{ transform: rotate(45deg) scale(1); opacity:1 }
}
/* moved to chat theme: table styles inside bubble */

/* Modal */
.modal-overlay{position:fixed; inset:0; background: rgba(0,0,0,.5); display:flex; align-items:center; justify-content:center; z-index:2000; opacity:0; pointer-events:none; transition: opacity .2s ease}
.modal-overlay.visible{opacity:1; pointer-events:auto}
.modal{background: var(--bg); color: var(--text); width:min(540px, 92vw); border:1px solid var(--line); border-radius:14px; box-shadow: 0 18px 46px rgba(0,0,0,.22)}
.modal header{padding:14px 16px; border-bottom:1px solid var(--line); font-weight:700}
.modal .modal-body{padding:16px}
.modal .modal-actions{display:flex; gap:10px; justify-content:flex-end; padding:12px 16px; border-top:1px solid var(--line)}
.modal .btn-danger{background:#e11d48; color:#fff; border-color: transparent}
.modal .btn-danger:hover{filter:brightness(.95)}

/* moved to chat theme: countdown number */


/* Header h1 color */
.section-head h1{ color: var(--accent) }
/* Reviews slider */
.section-reviews{ background: var(--bg-weak); }
.reviews{ display:flex; align-items:center; justify-content:space-between; gap:20px; padding: 18px 0; }
.reviews .reviews-count{ font-weight: 800; font-size: clamp(36px, 6vw, 64px); line-height:1; }
.reviews .reviews-count .plus{ color: var(--accent) }
.reviews .stars{ position:relative; width: 8.5em; height: 1.2em; font-size: 1.2em; line-height:1; }
.reviews .stars-bg{ color:#d0d4da; }
.reviews .stars-fg{ position:absolute; inset:0 auto 0 0; color: #FFC107; white-space:nowrap; overflow:hidden }

.reviews-slider{ margin-top: 10px; }
.reviews-slider .slider-viewport{ position:relative; overflow:hidden; border:1px solid var(--line); border-radius: 14px; background: var(--bg); }
.reviews-slider .slider-track{ display:flex; transition: transform .4s ease; will-change: transform; }
.review-slide{ min-width: 100%; padding: 18px 20px; display:grid; gap:10px; }
.review-slide .review-head{ display:flex; align-items:center; gap:12px; }
.review-slide .avatar{ width:36px; height:36px; border-radius:999px; background:#ddd; object-fit:cover }
.review-slide .who .name{ font-weight:600 }
.review-slide .who .rating{ color: #FFC107 }
.review-slide .review-text{ margin:0; color: var(--text) }
.reviews-slider .slider-nav{ display:flex; justify-content: flex-end; gap:8px; padding:8px 0; }
.reviews-slider .slider-nav button{ border:1px solid var(--line); background: var(--bg); color: var(--text); border-radius: 0; padding: 6px 12px; cursor:pointer }
.reviews-slider .slider-nav button:hover{ background: var(--bg-weak) }
.reviews-slider .reviews-source{ font-size: 12px; color: var(--muted); padding-top: 6px; }
.reviews-slider .reviews-source a{ color: inherit; text-decoration: none; border-bottom: 1px dashed var(--line) }

/* Fortschrittsleiste am unteren Rand */
.reviews-slider .slider-progress{ position:absolute; left:0; right:0; bottom:0; height:3px; background: var(--line); }
.reviews-slider .slider-progress .bar{ width:0%; height:100%; background: var(--accent); box-shadow: 0 0 0 1px rgba(0,0,0,.03) inset; }
/* Kunden-Logos Slider */
.customers{ padding: 48px 0; background: var(--bg-weak); }
.customers .track{ display:flex; align-items:center; gap: 0; overflow:hidden; white-space: nowrap; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent) }
.customers .row{ display:inline-flex; flex-wrap: nowrap; align-items:center; gap: 60px; flex: 0 0 auto; will-change: transform }
.customers.is-ready .row{ animation: slideRight 40s linear infinite }
.customers .logo-frame{
  width: 220px; height: 220px; border-radius: 0;
  display:grid; place-items:center;
  background: var(--bg); border: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.customers .logo-frame img{
  width: 85%; height: 85%; object-fit: contain; display:block;
  filter: grayscale(80%) contrast(1.02) brightness(1.05) opacity(0.85);
  transition: filter .3s ease, transform .3s ease;
  image-rendering: high-quality;
}
.customers .logo-frame:hover{
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
}
.customers .logo-frame:hover img{
  filter: grayscale(0%) contrast(1) brightness(1) opacity(1);
  transform: scale(1.03);
}
@media (max-width: 640px){
  .customers{ padding: 32px 0; }
  .customers .logo-frame{ width: 140px; height: 140px; border-radius: 0; }
  .customers .row{ gap: 40px; }
}
@keyframes slideRight{ 0%{ transform: translateX(-50%) } 100%{ transform: translateX(0) } }
/* Full-screen starfield background on upload page */
/* removed screen-wide starfield on upload page */
/* Diffuser Accent-Dot im Seitenhintergrund (nur Kontakt-Seite) */
body[data-page="kontakt"]{
  background:
    radial-gradient(closest-side,
      color-mix(in srgb, var(--accent) 22%, transparent) 0,
      transparent 78%
    ) no-repeat right -180px bottom -220px,
    var(--bg);
}

/* Chatbot auf Wissenswertes-Seite (zentriert, direkt nach Hero) */
.section-chatbot {
  background: var(--bg);
  padding: 48px 0;
}
.chatbot-wrapper-centered {
  max-width: 900px;
  margin: 0 auto;
}
.chatbot-messages {
  max-height: 450px;
  min-height: 200px;
  overflow-y: auto;
  padding: 16px;
  background: var(--bg);
  border: none;
  border-radius: 12px;
  margin-bottom: 16px;
}
/* Message-Boxen in Chatbot ohne Abstände */
.chatbot-messages .msg {
  display: flex;
  margin: 0;
  padding: 0;
}
.chatbot-messages .msg.bot {
  justify-content: flex-start;
}
.chatbot-messages .msg.user {
  justify-content: flex-end;
}
.chatbot-messages .msg-bubble {
  max-width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-weak);
  border: 1px solid var(--line);
  color: var(--text);
  margin: 8px 0;
}
.chatbot-messages .msg.user .msg-bubble {
  background: rgba(138,198,64,.18);
  border-color: rgba(138,198,64,.35);
}
.chatbot-messages::-webkit-scrollbar {
  width: 6px;
}
.chatbot-messages::-webkit-scrollbar-track {
  background: var(--bg-weak);
}
.chatbot-messages::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 3px;
}
.chatbot-messages::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}
.chatbot-form-centered {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  max-width: 750px;
  margin: 0 auto;
}
.chatbot-form-centered input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 8%, transparent);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.chatbot-form-centered input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}
.chatbot-form-centered .btn {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .section-chatbot {
    padding: 32px 0;
  }
  .chatbot-messages {
    max-height: 350px;
    min-height: 150px;
  }
  .chatbot-form-centered {
    flex-direction: column;
    gap: 10px;
  }
  .chatbot-form-centered input {
    width: 100%;
    font-size: 16px; /* prevents iOS zoom */
  }
  .chatbot-form-centered .btn {
    width: 100%;
  }
}


/* Fertigungsverfahren Pages */
.section-title {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  margin-bottom: 32px;
  text-align: center;
}

.lead {
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1.5;
  margin-bottom: 12px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.process-step {
  text-align: center;
  padding: 24px 16px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: white;
  font-size: 20px;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 16px;
}

.process-step h4 {
  margin: 0 0 8px;
  font-size: 18px;
}

.process-step p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.bg-alt, [style*="bg-alt"] {
  --bg-alt: #f8f9fa;
}
