/* ==========================================================================
   constructsolution — Ismail Korkmaz
   ========================================================================== */

:root {
  --bg: #f5f4f1;
  --bg-alt: #ece7de;
  --card: #ffffff;
  --ink: #1c1f24;
  --ink-soft: #55585f;
  --line: #ddd7cb;

  --dark: #2c3542;
  --dark-soft: #3d4756;
  --on-dark: #f2efe9;
  --on-dark-soft: #d3d1c6;

  --accent: #b9702f;
  --accent-dark: #93591f;
  --accent-light: #e2a565;
  --steel: #5b7480;
  --logo-navy: #003a75;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px -12px rgba(15, 15, 12, 0.25);
  --maxw: 1160px;

  --font: "Helvetica Neue", Arial, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

p { margin: 0 0 1em; color: var(--ink-soft); }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark p { color: var(--on-dark-soft); }
.section--dark .eyebrow { color: var(--accent-light); }
.section--dark + .section--dark { border-top: 1px solid rgba(238,242,247,0.1); }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.accent { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border-color: currentColor; background: transparent; }
.section--dark .btn-ghost { border-color: rgba(243,239,231,0.4); color: var(--on-dark); }
.section--dark .btn-ghost:hover { border-color: var(--on-dark); }
.btn-ghost:not(.section--dark *):hover { border-color: var(--ink); }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(44, 53, 66, 0.97);
  border-bottom: 1px solid rgba(238,242,247,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 66px; width: auto; display: block; }
.logo-text {
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-transform: lowercase;
}
.logo-text .accent { font-weight: 800; }

.main-nav ul {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav > ul > li { position: relative; }

.main-nav a {
  display: block;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  color: var(--on-dark);
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav > ul > li > a:hover { background: rgba(238,242,247,0.1); color: var(--on-dark); }
.main-nav a.is-active { background: var(--accent-light); color: var(--dark); }
.main-nav a.nav-cta { background: var(--accent); color: #fff; }
.main-nav a.nav-cta:hover { background: var(--accent-dark); color: #fff; }

.has-dropdown > a::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 8px;
  opacity: 0.6;
}

.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: -14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 320px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 28px;
  width: 12px;
  height: 12px;
  background: var(--card);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: rotate(45deg);
  border-radius: 2px 0 0 0;
}

.has-dropdown:hover .dropdown,
.has-dropdown.is-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown .dropdown-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  color: var(--ink);
}
.dropdown-link:hover,
.dropdown-link.is-active { background: var(--bg-alt); }

.dropdown-link-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--bg-alt);
  color: var(--accent);
  transition: background 0.15s ease, color 0.15s ease;
}
.dropdown-link-icon svg { width: 18px; height: 18px; }
.dropdown-link:hover .dropdown-link-icon,
.dropdown-link.is-active .dropdown-link-icon { background: var(--accent); color: #fff; }

.dropdown-link-text { display: flex; flex-direction: column; gap: 2px; padding-top: 2px; }
.dropdown-link-text strong { font-size: 0.94rem; font-weight: 600; color: var(--ink); }
.dropdown-link-text small { font-size: 0.8rem; font-weight: 400; color: var(--ink-soft); }

.dropdown .dropdown-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  padding: 10px;
  border-top: 1px solid var(--line);
  border-radius: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}
.dropdown-all svg { width: 15px; height: 15px; transition: transform 0.15s ease; }
.dropdown .dropdown-all:hover { color: var(--accent-dark); }
.dropdown-all:hover svg { transform: translateX(3px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--on-dark);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  background: var(--dark);
  color: var(--on-dark);
  overflow: hidden;
  padding-top: 10px;
  min-height: calc(100vh - 93px);
  display: flex;
  flex-direction: column;
}

/* Blueprint-board backdrop: a scanning technical-drawing grid instead of
   an abstract particle network — reads as engineering, not aerospace. */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
  padding-bottom: 12px;
  flex: 1 0 auto;
  align-content: center;
}
.hero h1 { font-size: clamp(1.5rem, 2.1vw, 1.5625rem); margin-bottom: 0.4em; }
.hero .lede { color: var(--on-dark-soft); font-size: 0.9rem; line-height: 1.45; }
.hero .btn-row { margin-top: 16px; }

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

/* Large live 3D part — a real engineered component, freely rotating */
.hero-model {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 1 / 1;
  touch-action: none;
}
.hero-model canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.hero-model canvas:active { cursor: grabbing; }

.hero-visual-label {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--on-dark-soft);
}

/* Viewfinder corners framing the live model (no box, just reticle marks) */
.cad-corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 2px solid var(--accent-light);
  opacity: 0.4;
  pointer-events: none;
}
.cad-corner--tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.cad-corner--tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.cad-corner--bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.cad-corner--br { bottom: 0; right: 0; border-left: none; border-top: none; }

.hero-model-tag {
  position: absolute;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  color: var(--accent-light);
  background: rgba(13,27,46,0.5);
  border: 1px solid rgba(226,165,101,0.3);
  border-radius: 4px;
  padding: 3px 7px;
  pointer-events: none;
  animation: tagPulse 4s ease-in-out infinite;
}
.hero-model-tag--1 { top: 8%; left: 4%; }
.hero-model-tag--2 { bottom: 12%; right: 4%; animation-delay: 1.4s; }
@keyframes tagPulse {
  0%, 100% { opacity: 0.55; box-shadow: none; }
  8% { opacity: 1; box-shadow: 0 0 10px 1px rgba(226,165,101,0.5); }
  16% { opacity: 0.7; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-model-tag { animation: none; opacity: 0.85; }
}

/* Unified showcase panel: completed-projects teaser + tool logo band, one field */
.hero-showcase {
  position: relative;
  z-index: 1;
  background: var(--dark-soft);
  border-top: 3px solid var(--accent);
  padding: 12px 0 12px;
}
.hero-schwerpunkte { text-align: center; }
.hero-schwerpunkte > .eyebrow { margin-bottom: 12px; }
.schwerpunkt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}
.schwerpunkt-card {
  display: block;
  transition: transform 0.2s ease;
  cursor: pointer;
}
.schwerpunkt-card:hover { transform: translateY(-3px); }
.schwerpunkt-card img {
  width: 100%;
  aspect-ratio: 20 / 10;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-sm);
}
.schwerpunkt-card .schwerpunkt-model {
  width: 100%;
  aspect-ratio: 20 / 7.6;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.16);
}
.schwerpunkt-card h3 {
  font-size: 0.96rem;
  line-height: 1.25;
  margin: 10px 0 0;
  color: var(--on-dark);
  font-weight: 700;
}

.hero-showcase-logos {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(238,242,247,0.1);
  text-align: center;
}
.hero-logos-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--on-dark-soft);
  text-align: center;
  max-width: 46ch;
  margin: 0 auto 16px;
  animation: logoFadeUp 0.5s ease both;
  animation-delay: 0.15s;
}
.logo-row--compact { gap: 18px; margin-top: 0; }
.logo-row--compact .tool-logo {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  font-size: 0.85rem;
  animation: logoFadeUp 0.5s ease both;
}
.logo-row--compact .tool-logo:nth-child(1) { animation-delay: 0.20s; }
.logo-row--compact .tool-logo:nth-child(2) { animation-delay: 0.25s; }
.logo-row--compact .tool-logo:nth-child(3) { animation-delay: 0.30s; }
.logo-row--compact .tool-logo:nth-child(4) { animation-delay: 0.35s; }
.logo-row--compact .tool-logo:nth-child(5) { animation-delay: 0.40s; }
.logo-row--compact .tool-logo:nth-child(6) { animation-delay: 0.45s; }
.logo-row--compact .tool-logo:nth-child(7) { animation-delay: 0.50s; }
.logo-row--compact .tool-logo:nth-child(8) { animation-delay: 0.55s; }
.logo-row--compact .tool-logo:nth-child(9) { animation-delay: 0.60s; }

@keyframes logoFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Page header (for sub-pages) */
.page-hero {
  background: var(--dark);
  color: var(--on-dark);
  padding: 80px 0 96px;
}

/* Section seams: a crisp angled cut instead of a colour blend — no
   gradient, so there's no muddy midtone. The section overlaps the one
   above by the same amount its top-left corner is clipped away, so the
   previous section's flat colour shows through the wedge. */
.diag-top {
  border-top: 3px solid var(--accent);
}
.page-hero .lede { color: var(--on-dark-soft); }
.breadcrumb {
  font-size: 0.85rem;
  color: var(--on-dark-soft);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--accent-light); font-weight: 600; }

/* ==========================================================================
   Cards / Grids
   ========================================================================== */

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(185, 112, 47, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; }

.card h3 { font-size: 1.15rem; }
.card p:last-child { margin-bottom: 0; }

/* Service grid (Dienstleistungen) — full-bodied cards, two per row */
.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.service-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service-item-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.service-item-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: rgba(185, 112, 47, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-item-icon svg { width: 26px; height: 26px; }
.service-item-title { flex: 1; min-width: 0; font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.service-item-body p { margin: 0; color: var(--ink-soft); }

@media (max-width: 760px) {
  .service-list { grid-template-columns: minmax(0, 1fr); }
}

/* Project cards */
.project-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project-thumb {
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 28% 22%, rgba(226,165,101,0.22), transparent 55%),
    var(--dark-soft);
  border-bottom: 1px solid rgba(238,242,247,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--on-dark-soft);
}
.project-thumb span { font-size: 0.78rem; font-weight: 600; }
.project-card-top {
  background: var(--dark);
  color: var(--on-dark);
  padding: 28px 28px 22px;
  height: 156px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.project-card-top .eyebrow { margin-bottom: 8px; min-height: 2.5em; }
.project-card-body { padding: 20px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.project-card-link {
  margin-top: auto;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.project-card-link svg { width: 16px; height: 16px; transition: transform 0.15s ease; }
.project-card:hover .project-card-link svg { transform: translateX(4px); }

/* Logo strip ("Unsere Systemlandschaft") */
.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 36px;
}
.tool-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: -0.02em;
  box-shadow: 0 2px 10px rgba(0,0,0,0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tool-logo img { width: 60%; height: 60%; object-fit: contain; display: block; }
.tool-logo--sw { color: #c8102e; }
.logo-row a:hover .tool-logo,
.tool-logo:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.3);
}


/* USP cards ("Warum constructsolution?") */
.usp-grid { margin-top: 8px; }
.usp-card {
  background: var(--dark-soft);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}
.usp-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(226,165,101,0.18);
  color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.usp-icon svg { width: 26px; height: 26px; }
.usp-card h3 { font-size: 1.1rem; color: var(--on-dark); }
.usp-card p { margin: 0; }

/* Client logo badges (project thumbnails) */
.client-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.client-logo--se { background: #00888a; }
.client-logo--sam { background: #4a5a6a; }
.client-logo--ibj { background: #3a5a78; }
.client-logo--dp { background: #8a1f2b; }
.client-logo--asel { background: #55606e; }

.client-logo-img { max-width: 74%; max-height: 78px; width: auto; object-fit: contain; }
.client-logo-duo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; }
.client-logo-duo .client-logo-img { max-height: 40px; max-width: 68%; }
.client-logo-group { display: flex; align-items: center; gap: 10px; }
.client-logo-sep { font-size: 1.4rem; font-weight: 300; color: var(--on-dark-soft); }

/* Case study blocks (project detail pages): Herausforderung / Lösung / Ergebnis */
.case-study {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 36px;
}
.case-study-block { border-top: 3px solid var(--accent); padding-top: 16px; }
.case-study-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.case-study-block p { margin: 0; color: var(--ink-soft); }

/* Compact technical summary card */
.tech-info-box {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.section--alt .tech-info-box { background: var(--card); }
.tech-info-row { display: flex; flex-direction: column; gap: 4px; min-width: 200px; flex: 1; }
.tech-info-box--stacked { flex-direction: column; gap: 20px; align-self: start; }
.tech-info-box--stacked .tech-info-row { min-width: 0; }
.tech-info-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.tech-info-row span:last-child { font-weight: 600; color: var(--ink); font-size: 0.92rem; }

@media (max-width: 760px) {
  .case-study { grid-template-columns: 1fr; gap: 24px; }
}

/* Project detail: timeline + 3D model viewer */
.project-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

/* Seamless model — no box, the part floats directly on the page */
.model-viewer {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  touch-action: none;
}

/* Blueprint-grid box: technical-drawing backdrop for the project-detail
   3D models — a white drafting-paper raster instead of a plain/transparent panel. */
.model-blueprint {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background-color: #ffffff;
  background-image:
    linear-gradient(rgba(93, 78, 55, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 78, 55, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(93, 78, 55, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 78, 55, 0.18) 1px, transparent 1px);
  background-size: 16px 16px, 16px 16px, 80px 80px, 80px 80px;
  overflow: hidden;
}
.model-viewer canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.model-viewer canvas:active { cursor: grabbing; }

.model-viewer-hint {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 0.74rem;
  pointer-events: none;
  opacity: 0.7;
}
.model-viewer-hint svg { width: 14px; height: 14px; }

.model-viewer-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 2;
}
.model-viewer-overlay.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.model-viewer-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(120, 120, 120, 0.25);
  border-top-color: var(--accent);
  animation: modelSpin 0.9s linear infinite;
}
.model-viewer-error { color: var(--on-dark-soft); font-size: 0.85rem; padding: 0 24px; text-align: center; line-height: 1.6; }
.model-viewer-error code {
  background: rgba(242, 239, 233, 0.12);
  color: var(--on-dark);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.82em;
}
@keyframes modelSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .model-viewer-spinner { animation-duration: 1.8s; }
}

@media (max-width: 900px) {
  .project-detail-grid { grid-template-columns: 1fr; gap: 28px; }
  .project-detail-grid .model-viewer { order: -1; }
}

/* Quote block */
.quote {
  border-left: 4px solid var(--accent);
  padding-left: 24px;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  max-width: 60ch;
}

/* CTA band */
.cta-band {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0; }
.cta-band .btn-primary { background: #fff; color: var(--accent-dark); }
.cta-band .btn-primary:hover { background: var(--dark); color: #fff; }

/* Contact page */
.contact-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.contact-info {
  background: var(--dark);
  color: var(--on-dark);
  padding: 48px 40px;
  border-top: 3px solid var(--accent);
}
.contact-info h2 { color: var(--on-dark); }
.contact-form-panel { background: var(--card); padding: 48px 40px; }

.contact-list { list-style: none; margin: 24px 0 0; padding: 0; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(238,242,247,0.1);
}
.contact-list li:last-child { border-bottom: none; padding-bottom: 0; }
.contact-list .contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(226,165,101,0.14);
  color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-list svg { width: 20px; height: 20px; }
.contact-list strong { display: block; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--on-dark-soft); font-weight: 600; }
.contact-list a, .contact-list span.value { font-weight: 700; font-size: 1rem; color: var(--on-dark); }
.contact-list a:hover { color: var(--accent-light); }

form.contact-form { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.contact-form label { font-weight: 700; font-size: 0.85rem; margin-bottom: -10px; }
.contact-form input, .contact-form textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(185,112,47,0.15);
}
.contact-form textarea { resize: vertical; min-height: 140px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--dark);
  color: var(--on-dark-soft);
  padding: 64px 0 0;
  border-top: 3px solid var(--accent);
}
.site-footer p { color: var(--on-dark-soft); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(243,239,231,0.1);
}
.footer-logo { margin-bottom: 14px; }
.footer-logo .logo-text { color: var(--on-dark); }
.footer-contact p { margin: 0 0 10px; display: block; color: var(--on-dark-soft); }
.footer-contact a:hover { color: var(--on-dark); }
.footer-bottom {
  padding: 22px 0;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: var(--on-dark-soft); }
.footer-legal a:hover { color: var(--on-dark); }

.footer-credit { padding: 0 24px 22px; }
.footer-credit p { margin: 0; font-size: 0.76rem; color: var(--on-dark-soft); opacity: 0.75; }
.footer-credit a { color: var(--on-dark-soft); text-decoration: underline; text-underline-offset: 2px; }
.footer-credit a:hover { color: var(--on-dark); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .contact-panel { grid-template-columns: 1fr; }
  .contact-info, .contact-form-panel { padding: 32px 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 420px; }
  .schwerpunkt-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--dark);
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { padding: 14px 16px; font-size: 1.05rem; }
  .has-dropdown > a::after { float: right; margin-top: 6px; }
  .main-nav .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    width: auto;
    display: none;
    margin: 6px 0 0;
    padding: 6px;
  }
  .main-nav .dropdown::before { display: none; }
  .has-dropdown.is-open .dropdown { display: flex; }
  .dropdown-link-text strong { color: var(--ink); }

  .hero { padding: 72px 0 0; }
  .section { padding: 64px 0; }
  .grid-3, .grid-2, .grid-4, .schwerpunkt-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .cta-band { padding: 36px; flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Scroll reveal (JS-gated, see js/main.js)
   ========================================================================== */

.js-ready .card,
.js-ready .project-card,
.js-ready .usp-card,
.js-ready .section-head,
.js-ready .case-study-block {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-ready .card.is-visible,
.js-ready .project-card.is-visible,
.js-ready .usp-card.is-visible,
.js-ready .section-head.is-visible,
.js-ready .case-study-block.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .js-ready .card,
  .js-ready .project-card,
  .js-ready .usp-card,
  .js-ready .section-head,
  .js-ready .case-study-block {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
