/* CAD-Schmiede — Basis-Stylesheet (helles Design, angelehnt an bambulab.com/de-de) */

/* ---------- Inter (lokal eingebunden, kein Google-Fonts-CDN) ---------- */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-400.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-500.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-600.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-700.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/inter-800.ttf") format("truetype");
}

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f3;
  --color-surface: #ffffff;
  --color-border: #e7e6e2;
  --color-text: #16181c;
  --color-text-muted: #63666d;
  --color-accent: #ff6a13;
  --color-accent-hover: #e85c0a;
  --color-dark: #14262c;
  --color-dark-alt: #1c343c;
  --max-width: 1240px;
  --radius: 14px;
  --transition: 0.25s ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img { height: 40px; width: auto; }

.logo .logo-text {
  display: flex;
  flex-direction: column;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--color-dark);
  line-height: 1.15;
}

.logo .logo-text span {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--color-accent); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-dark);
  color: #fff !important;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}

.nav-cta:hover { background: var(--color-accent); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 100px;
  background: var(--color-bg-alt);
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 48px;
  align-items: start;
}

.eyebrow {
  display: inline-block;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 22px;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--color-dark);
}

.hero h1 em {
  font-style: normal;
  color: var(--color-accent);
}

.hero p.lead {
  font-size: 1.12rem;
  color: var(--color-text-muted);
  max-width: 48ch;
  margin: 0 0 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-dark);
  color: #fff;
}
.btn-primary:hover { background: var(--color-accent); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn-ghost:hover { border-color: var(--color-accent); color: var(--color-accent); }

.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 8px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
}

.hero-stats div {
  flex: 1;
  padding: 0 28px;
  border-left: 1px solid var(--color-border);
}

.hero-stats div:first-child {
  padding-left: 0;
  border-left: none;
}

.hero-stats div strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-dark);
  line-height: 1.1;
  margin-bottom: 6px;
}
.hero-stats div span {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(20, 38, 44, 0.35);
}

.hero-media--compact {
  max-width: 300px;
  width: 100%;
  justify-self: end;
  align-self: start;
}

.hero-media img,
.hero-media video { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }

.hero-media--art {
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, #ffffff 0%, #f2f1ed 100%);
}

.hero-media--art svg {
  width: 100%;
  height: 100%;
  display: block;
}

.flow-path {
  stroke-dasharray: 10 8;
  animation: dash-flow 3s linear infinite;
}

.flow-path-slow {
  stroke-dasharray: 6 10;
  animation: dash-flow 7s linear infinite;
}

@keyframes dash-flow {
  to { stroke-dashoffset: -120; }
}

.float-badge {
  animation: float-y 4.5s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.float-badge.delay1 { animation-delay: 0.8s; }
.float-badge.delay2 { animation-delay: 1.6s; }

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .flow-path, .flow-path-slow, .float-badge { animation: none; }
}

.hero-media .tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(255,255,255,0.95);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-dark);
}

/* ---------- Section base ---------- */

section { padding: 96px 0; }

.section-head {
  max-width: 640px;
  margin: 0 0 52px;
}

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head .eyebrow { margin-bottom: 12px; }

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--color-dark);
}

.section-head p {
  color: var(--color-text-muted);
  margin: 0;
}

.section-alt { background: var(--color-bg-alt); }

.section-dark {
  background: var(--color-dark);
  color: #fff;
}
.section-dark .section-head h2 { color: #fff; }
.section-dark .section-head p { color: rgba(255,255,255,0.65); }

/* ---------- Bereiche (Startseiten-Banner) ---------- */

.bereiche-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bereich-card {
  position: relative;
  display: block;
  min-height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-dark);
  transition: transform var(--transition), box-shadow var(--transition);
}

.bereich-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -20px rgba(20, 38, 44, 0.32);
}

.bereich-card--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.bereich-card--photo:hover img { transform: scale(1.06); }

.bereich-card--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,38,44,0.95), rgba(20,38,44,0.25) 55%, rgba(20,38,44,0.4));
}

.bereich-content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}

.bereich-badge {
  align-self: flex-start;
  background: rgba(255,255,255,0.16);
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bereich-badge--soon {
  background: var(--color-accent);
}

.bereich-icon {
  font-size: 2.2rem;
  margin: 18px 0 auto;
}

.bereich-card--icon .bereich-icon { margin-top: 18px; margin-bottom: 0; }

.bereich-bottom h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 8px;
}

.bereich-bottom p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.78);
  margin: 0 0 18px;
}

.bereich-arrow {
  font-weight: 700;
  font-size: 0.86rem;
}

.bereich-card--soon {
  background: var(--color-bg-alt);
  border-style: dashed;
}

.bereich-card--soon .bereich-content { color: var(--color-dark); }
.bereich-card--soon .bereich-bottom p { color: var(--color-text-muted); }
.bereich-card--soon .bereich-icon { color: var(--color-text-muted); }
.bereich-card--soon .bereich-badge { background: rgba(255,106,19,0.12); color: var(--color-accent); }

/* ---------- Leistungen ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -20px rgba(20,38,44,0.22);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 106, 19, 0.1);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 1.35rem;
}

.service-card h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--color-dark);
}

.service-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.96rem;
}

/* ---------- Referenzen / Gallery ---------- */

.ref-intro {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 30px 34px;
  margin-bottom: 44px;
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

.ref-intro .service-icon { flex-shrink: 0; margin-bottom: 0; }

.ref-intro p { margin: 0; color: var(--color-text-muted); }
.ref-intro strong { color: var(--color-dark); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  cursor: zoom-in;
  background: #fff;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px 18px;
  background: linear-gradient(to top, rgba(20,38,44,0.9), transparent);
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}

.gallery-caption span {
  display: block;
  font-weight: 400;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.78);
  margin-top: 2px;
}

/* ---------- Bauteil-Komponenten (SNAP-CORE) ---------- */

.family-banner {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-bottom: 48px;
  cursor: zoom-in;
}

.family-banner img { width: 100%; display: block; }

.family-banner--compact {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.component-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.component-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.component-card .thumb {
  aspect-ratio: 4/3;
  background: var(--color-bg-alt);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.component-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.4s ease;
}

.component-card .thumb img:hover { transform: scale(1.06); }

.component-card .thumb.icon-only {
  font-size: 2.1rem;
  color: var(--color-text-muted);
}

.component-body {
  padding: 18px 20px 22px;
}

.component-tag {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.component-card h4 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--color-dark);
}

.component-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--color-text-muted);
}

.more-projects {
  margin-top: 30px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 26px;
  background: #fff;
}

/* ---------- Kundenstimmen ---------- */

#bewertungen { padding-bottom: 72px; }

.reviews-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.reviews-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: reviews-scroll 30s linear infinite;
  padding: 4px 0;
}

.reviews-marquee:hover .reviews-track { animation-play-state: paused; }

@keyframes reviews-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.review-card {
  width: 320px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review-stars {
  color: #f5a623;
  letter-spacing: 2px;
  font-size: 0.85rem;
}

.review-quote {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-text);
  line-height: 1.55;
  flex: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.review-name {
  display: block;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--color-dark);
}

.review-role {
  display: block;
  font-size: 0.76rem;
  color: var(--color-text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .reviews-track { animation: none; }
  .reviews-marquee { overflow-x: auto; }
}

/* ---------- FunkFix: Problem/Lösung ---------- */

.problem-solution {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
  max-width: 1040px;
  margin: 0 auto;
}

.problem-solution > div {
  border-radius: var(--radius);
  padding: 32px 34px;
  background: #fff;
  border: 1px solid var(--color-border);
}

.problem-solution .problem {
  border-left: 4px solid #c8462f;
}

.problem-solution .solution {
  border-left: 4px solid var(--color-accent);
}

.problem-solution h3 {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.problem-solution .problem p {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.4;
}

.problem-solution .solution p {
  margin: 0;
  font-size: 1.02rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ---------- FunkFix: Video-Demo ---------- */

.video-demo-grid {
  display: grid;
  grid-template-columns: 0.62fr 1fr;
  gap: 64px;
  align-items: center;
}

.video-demo-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(20, 38, 44, 0.35);
}

.video-demo-media video {
  width: 100%;
  height: auto;
  max-height: 80vh;
  display: block;
}

.video-demo-copy h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-dark);
  margin: 0 0 18px;
  line-height: 1.25;
}

.video-demo-copy p {
  color: var(--color-text-muted);
  margin: 0 0 16px;
  font-size: 1.02rem;
}

/* ---------- FunkFix: Einsatzbereiche-Banner ---------- */

.usecase-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.usecase-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: usecase-scroll 55s linear infinite;
  padding: 4px 0;
}

.usecase-marquee:hover .usecase-track { animation-play-state: paused; }

@keyframes usecase-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.usecase-card {
  width: 190px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 3/4;
  box-shadow: 0 20px 40px -24px rgba(20, 38, 44, 0.35);
}

.usecase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.usecase-card span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px 12px;
  background: linear-gradient(to top, rgba(20,38,44,0.9), rgba(20,38,44,0));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

@media (prefers-reduced-motion: reduce) {
  .usecase-track { animation: none; }
  .usecase-marquee { overflow-x: auto; }
}

@media (max-width: 860px) {
  .problem-solution { grid-template-columns: 1fr; }
  .video-demo-grid { grid-template-columns: 1fr; }
  .video-demo-media { max-width: 320px; margin: 0 auto; }
}

/* ---------- FunkFix: Produkt-Showcase ---------- */

.product-showcase {
  padding: 80px 0;
}

.product-showcase .section-head { text-align: center; margin: 0 auto 40px; }

.product-showcase-media {
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
  cursor: zoom-in;
}

.product-showcase-media img { width: 100%; display: block; }

.product-showcase-caption {
  text-align: center;
  max-width: 640px;
  margin: 32px auto 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.02rem;
  line-height: 1.6;
}

.product-showcase-caption strong { color: #fff; }

/* ---------- Über mich ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.about-media img {
  border-radius: var(--radius);
  aspect-ratio: 4/5;
  object-fit: cover;
  box-shadow: 0 30px 60px -24px rgba(20, 38, 44, 0.35);
}

.about-copy p {
  color: var(--color-text-muted);
  font-size: 1.02rem;
}

.skill-tags {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tags li {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-dark);
}

/* ---------- Über uns / Prozess ---------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.process-step {
  border-top: 2px solid rgba(255,255,255,0.15);
  padding-top: 20px;
}

.process-step .num {
  color: var(--color-accent);
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 14px;
  display: block;
}

.process-step h4 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 700; }
.process-step p { margin: 0; color: rgba(255,255,255,0.65); font-size: 0.92rem; }

/* ---------- Kontakt ---------- */

.contact-panel {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 52px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-list a, .contact-list span {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.04rem;
  font-weight: 500;
}

.contact-list a { transition: color var(--transition); }
.contact-list a:hover { color: var(--color-accent); }

.contact-list .ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,106,19,0.1);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-visual {
  border-radius: var(--radius);
  overflow: hidden;
}

.contact-visual img,
.contact-visual video { aspect-ratio: 1/1; object-fit: cover; width: 100%; height: 100%; display: block; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 44px 0;
  background: var(--color-bg-alt);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--color-dark);
}
.footer-logo img { height: 28px; width: auto; }

.footer-links {
  display: flex;
  gap: 26px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer-links a:hover { color: var(--color-accent); }

.footer-note {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 14, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 40px;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 86vh;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: #fff;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* ---------- Reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Legal pages ---------- */

.legal-page {
  background: #fff;
  color: var(--color-text);
  min-height: 100vh;
}

.legal-header {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding: 0;
}

.legal-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 78px;
}

.legal-header a.back {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.legal-header a.back:hover { color: var(--color-accent); }

.legal-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 32px 110px;
}

.legal-content h1 {
  font-size: 2.1rem;
  margin-bottom: 8px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-dark);
}

.legal-content .updated {
  color: #8a8d94;
  font-size: 0.85rem;
  margin-bottom: 44px;
}

.legal-content h2 {
  font-size: 1.22rem;
  margin: 42px 0 12px;
  font-weight: 700;
  color: var(--color-dark);
}

.legal-content h3 {
  font-size: 1.03rem;
  margin: 26px 0 8px;
  font-weight: 700;
  color: var(--color-dark);
}

.legal-content p, .legal-content li {
  color: #4a4d54;
  font-size: 0.98rem;
}

.legal-content ul, .legal-content ol {
  padding-left: 20px;
}

.legal-content a { color: var(--color-accent); text-decoration: underline; }

.legal-note {
  margin-top: 50px;
  padding: 20px 22px;
  background: #fff3ea;
  border: 1px solid #ffd6b3;
  border-radius: 10px;
  font-size: 0.88rem;
  color: #7a4a1f;
}

.legal-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 30px 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-media--compact { max-width: 220px; justify-self: start; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .contact-panel { grid-template-columns: 1fr; padding: 36px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 320px; margin: 0 auto; }
  .bereiche-grid { grid-template-columns: 1fr 1fr; }
  .component-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 22px 32px;
    border-bottom: 1px solid var(--color-border);
    gap: 20px;
  }
  .site-header.open .nav-cta { display: inline-flex; margin-top: 8px; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .hero-stats div { padding: 0 0 0 16px; border-left: none; border-top: 1px solid var(--color-border); padding-top: 14px; }
  .hero-stats div:first-child { border-top: none; padding-top: 0; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .ref-intro { flex-direction: column; }
  .bereiche-grid { grid-template-columns: 1fr; }
  .component-grid { grid-template-columns: 1fr; }
}
