/* WerkstattVision - clean dark agency style */

:root {
  --accent: #ef4136;
  --bg: #070707;
  --bg-2: #10100f;
  --panel: #151514;
  --panel-2: #1c1b1a;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f5f2ed;
  --muted: #b7b0a8;
  --quiet: #7d766e;
  --white: #fffdf7;
  --black: #030303;
  --font-display: "Manrope", "DM Sans", Arial, sans-serif;
  --font-body: "DM Sans", Arial, sans-serif;
  --nav-h: 76px;
  --max-w: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { background: none; border: 0; cursor: pointer; }

.container {
  margin: 0 auto;
  width: min(100% - 48px, var(--max-w));
}

.section {
  padding: clamp(5rem, 8vw, 8rem) 0;
  position: relative;
}

.section-label,
.eyebrow,
.panel-kicker {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1, h2, h3 { font-family: var(--font-display); letter-spacing: 0; text-wrap: balance; }
h1 {
  color: var(--white);
  font-size: clamp(4rem, 8.4vw, 7.4rem);
  font-weight: 800;
  line-height: 0.96;
  margin-top: 1.15rem;
  max-width: 1040px;
  width: 100%;
}
h1 span,
h1 small {
  display: block;
}
h1 span {
  line-height: 0.95;
  overflow-wrap: normal;
}
h1 small {
  color: var(--muted);
  font-size: clamp(1.55rem, 3.8vw, 3.45rem);
  font-weight: 700;
  line-height: 1.05;
  margin-top: 0.75rem;
  text-align: center;
}
h2 {
  color: var(--white);
  font-size: clamp(2.1rem, 5vw, 4.7rem);
  font-weight: 800;
  line-height: 1;
  margin-top: 0.8rem;
}
h3 {
  color: var(--white);
  font-size: 1.24rem;
  font-weight: 800;
  line-height: 1.25;
}
p { color: var(--muted); line-height: 1.75; }

.btn-primary,
.btn-ghost {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.2rem;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 18px 50px rgba(239, 65, 54, 0.24);
}
.btn-primary:hover { background: #ff463c; transform: translateY(-2px); }
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--white);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.36);
  transform: translateY(-2px);
}
.btn-full { width: 100%; }

.nav {
  align-items: center;
  display: flex;
  height: var(--nav-h);
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(1.4rem, 4vw, 3.2rem);
  position: fixed;
  right: 0;
  top: 0;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
  z-index: 100;
}
.nav.scrolled {
  background: rgba(7, 7, 7, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-logo { align-items: center; display: flex; min-width: 150px; }
.nav-logo-img { height: 38px; object-fit: contain; width: auto; }
.nav-logo-text,
.footer-logo-text {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 800;
}
.nav-logo-text em,
.footer-logo-text em { color: var(--accent); font-style: normal; }
.nav-links { align-items: center; display: flex; gap: clamp(1rem, 2.4vw, 2.1rem); }
.nav-links a {
  color: rgba(245, 242, 237, 0.72);
  font-size: 0.88rem;
  font-weight: 700;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links .nav-cta {
  background: rgba(239, 65, 54, 0.15);
  border: 1px solid rgba(239, 65, 54, 0.5);
  border-radius: 8px;
  color: var(--white);
  padding: 0.72rem 1rem;
}
.nav-burger { display: none; flex-direction: column; gap: 6px; padding: 10px; }
.nav-burger span { background: var(--text); display: block; height: 2px; width: 24px; }
.mobile-menu {
  background: rgba(7, 7, 7, 0.97);
  border-bottom: 1px solid var(--line);
  display: none;
  flex-direction: column;
  gap: 1.15rem;
  left: 0;
  padding: 1.5rem 2rem 2rem;
  position: fixed;
  right: 0;
  top: var(--nav-h);
  z-index: 99;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--white); font-weight: 700; }

.hero {
  min-height: 100vh;
  overflow: hidden;
  padding: calc(var(--nav-h) + 5rem) 0 5rem;
  position: relative;
}
.hero::before {
  background:
    radial-gradient(circle at 75% 18%, rgba(239,65,54,0.2), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.04), transparent 40%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}
.hero-grid {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 1fr);
  min-height: calc(100vh - var(--nav-h) - 10rem);
  position: relative;
  z-index: 1;
}
.hero-centered {
  max-width: 1180px;
}
.hero-copy {
  margin: 0 auto;
  max-width: 1040px;
  text-align: center;
  width: 100%;
}
.hero-copy .eyebrow {
  display: inline-block;
}
.hero-copy p {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  margin-left: auto;
  margin-right: auto;
  margin-top: 1.4rem;
  max-width: 760px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 2rem;
}
.hero-note {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  color: var(--quiet);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 700;
  justify-content: center;
  margin-top: 1.4rem;
  padding: 0.45rem 0.8rem;
}
.service-strip {
  background: var(--accent);
  color: var(--white);
  padding: 0.95rem 0;
}
.service-strip-inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.8rem;
  justify-content: center;
}
.service-strip span {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.service-strip span::after {
  content: "/";
  opacity: 0.55;
  padding-left: 1.8rem;
}
.service-strip span:last-child::after { display: none; }

.section-split {
  align-items: end;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.72fr);
  margin-bottom: 3rem;
}
.section-split > p {
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.leistungen { background: var(--bg); }
.leistungen-grid {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.leistung-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018));
  border: 1px solid var(--line);
  min-height: 290px;
  padding: clamp(1.25rem, 3vw, 2rem);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.leistung-card:first-child { border-radius: 12px 0 0 0; }
.leistung-card:nth-child(3) { border-radius: 0 12px 0 0; }
.leistung-card:nth-child(4) { border-radius: 0 0 0 12px; }
.leistung-card:last-child { border-radius: 0 0 12px 0; }
.leistung-card:hover {
  background: linear-gradient(180deg, rgba(239,65,54,0.13), rgba(255,255,255,0.03));
  border-color: rgba(239,65,54,0.52);
  transform: translateY(-4px);
}
.leistung-num {
  color: var(--accent);
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 2.9rem;
  text-transform: uppercase;
}
.leistung-card h3 { margin-bottom: 0.9rem; }
.leistung-card p { font-size: 0.96rem; }

.ablauf {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0)),
    var(--bg-2);
}
.ablauf-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.ablauf-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 230px;
  padding: 1.5rem;
}
.ablauf-card span {
  color: var(--accent);
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 2.6rem;
}
.ablauf-card h3 { margin-bottom: 0.75rem; }
.ablauf-card p { font-size: 0.94rem; }

.portfolio { background: var(--bg); }
.portfolio-header { align-items: end; }
.portfolio-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.5rem 0.9rem;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.filter-btn:hover,
.filter-btn.active {
  background: rgba(239, 65, 54, 0.14);
  border-color: rgba(239, 65, 54, 0.55);
  color: var(--white);
}
.portfolio-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.portfolio-loading,
.portfolio-empty {
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--quiet);
  grid-column: 1 / -1;
  padding: 4rem 1rem;
  text-align: center;
}
.portfolio-item {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #191817, #0d0d0c);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.portfolio-item img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease), opacity 0.25s var(--ease);
  width: 100%;
}
.portfolio-item.is-missing img { opacity: 0; }
.portfolio-item.is-missing::before {
  color: rgba(255,255,255,0.12);
  content: "WerkstattVision";
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 800;
  inset: 0;
  place-items: center;
  position: absolute;
  display: grid;
}
.portfolio-item:hover img { filter: contrast(1.05); transform: scale(1.05); }
.portfolio-overlay {
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.74) 100%);
  display: flex;
  flex-direction: column;
  inset: 0;
  justify-content: flex-end;
  padding: 1.15rem;
  position: absolute;
}
.portfolio-overlay-title {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
}
.portfolio-overlay-cat {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-top: 0.22rem;
  text-transform: uppercase;
}

.lightbox {
  align-items: center;
  background: rgba(3, 3, 3, 0.96);
  display: none;
  flex-direction: column;
  gap: 1rem;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 999;
}
.lightbox.open { display: flex; }
.lightbox-img { border-radius: 12px; max-height: 82vh; max-width: 90vw; object-fit: contain; }
.lightbox-caption { color: var(--muted); font-size: 0.9rem; }
.lightbox-close { color: var(--white); font-size: 2rem; opacity: 0.85; position: absolute; right: 1.5rem; top: 1rem; }

.ueber {
  background:
    radial-gradient(circle at 15% 20%, rgba(239,65,54,0.12), transparent 26%),
    var(--bg-2);
}
.ueber-grid {
  align-items: center;
  display: grid;
  gap: clamp(2.4rem, 6vw, 5rem);
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
}
.portrait-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem;
}
.portrait-frame {
  aspect-ratio: 4 / 5;
  background: #20201f;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.ueber-img { height: 100%; object-fit: cover; object-position: center; width: 100%; }
.img-placeholder::after {
  align-items: center;
  color: var(--quiet);
  content: "portrait.png hier ablegen";
  display: flex;
  font-size: 0.92rem;
  inset: 0;
  justify-content: center;
  padding: 1rem;
  position: absolute;
  text-align: center;
}
.portrait-meta {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0.2rem 0.2rem;
}
.portrait-meta strong { color: var(--white); font-size: 0.96rem; }
.portrait-meta span { color: var(--accent); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.ueber-text p { font-size: 1rem; margin-top: 1.15rem; max-width: 680px; }

.kontakt {
  background:
    radial-gradient(circle at 80% 30%, rgba(239,65,54,0.17), transparent 28%),
    var(--bg);
}
.kontakt-shell {
  align-items: start;
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: 0.9fr 1.1fr;
}
.kontakt-info p { font-size: 1rem; margin: 1.2rem 0 2rem; }
.kontakt-details {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.95rem;
  padding-top: 1.4rem;
}
.kontakt-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: 130px 1fr;
}
.kontakt-key {
  color: var(--quiet);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.kontakt-val { color: var(--white); font-size: 0.98rem; line-height: 1.5; }
a.kontakt-val:hover { color: var(--accent); }
.kontakt-form {
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025));
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.2rem, 3vw, 2rem);
}
.form-row { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hidden-field { display: none; }
.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-group label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.form-group input,
.form-group textarea {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--white);
  outline: 0;
  padding: 0.9rem 1rem;
  resize: vertical;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(239, 65, 54, 0.72);
  box-shadow: 0 0 0 3px rgba(239, 65, 54, 0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(183,176,168,0.54); }
.form-hint { color: var(--quiet); font-size: 0.78rem; line-height: 1.6; }
.form-success {
  background: rgba(239, 65, 54, 0.1);
  border: 1px solid rgba(239, 65, 54, 0.4);
  border-radius: 12px;
  display: none;
  padding: 1.5rem;
}
.form-success.show { display: block; }
.form-success strong { color: var(--white); }

.footer {
  background: var(--black);
  border-top: 1px solid var(--line);
  padding: 2rem 0;
}
.footer-inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}
.footer-logo-img { height: 30px; opacity: 0.85; width: auto; }
.footer-copy { color: var(--quiet); font-size: 0.82rem; }
.footer-links { display: flex; gap: 1.2rem; }
.footer-links a { color: var(--muted); font-size: 0.84rem; transition: color 0.2s var(--ease); }
.footer-links a:hover { color: var(--white); }

.reveal {
  filter: blur(4px);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease), filter 0.75s var(--ease);
}
.reveal.visible {
  filter: blur(0);
  opacity: 1;
  transform: translateY(0);
}
.leistung-card.reveal:nth-child(2),
.ablauf-card.reveal:nth-child(2) { transition-delay: 0.06s; }
.leistung-card.reveal:nth-child(3),
.ablauf-card.reveal:nth-child(3) { transition-delay: 0.12s; }
.leistung-card.reveal:nth-child(4),
.ablauf-card.reveal:nth-child(4) { transition-delay: 0.18s; }
.leistung-card.reveal:nth-child(5) { transition-delay: 0.08s; }
.leistung-card.reveal:nth-child(6) { transition-delay: 0.14s; }

.legal-page {
  padding: calc(var(--nav-h) + 4rem) 0 6rem;
}
.legal-page .container { max-width: 780px; }
.legal-page h1 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 0.95;
  margin-bottom: 3rem;
}
.legal-page h2 {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.4;
  margin: 2.4rem 0 0.8rem;
}
.legal-page p,
.legal-page address {
  color: var(--muted);
  font-style: normal;
  font-weight: 300;
  line-height: 1.85;
  margin-bottom: 1rem;
}
.legal-page a { color: var(--accent); }
.legal-note {
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 0.82rem;
  margin-top: 3rem;
  padding-top: 1.2rem;
}

.thanks-page {
  align-items: center;
  display: flex;
  min-height: 100vh;
}
.thanks-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(2rem, 5vw, 4rem);
}
.thanks-card h1 {
  margin-bottom: 1.4rem;
}
.thanks-card p {
  max-width: 620px;
}
.thanks-button,
.thanks-button:visited,
.thanks-button:hover,
.thanks-button:focus {
  color: var(--white);
  margin-top: 1.2rem;
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .hero-grid,
  .section-split,
  .ueber-grid,
  .kontakt-shell { grid-template-columns: 1fr; }
  .hero-grid { align-items: start; min-height: auto; }
  .hero-copy {
    max-width: 780px;
  }
  .leistungen-grid,
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ablauf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, var(--max-w)); }
  .nav {
    height: 68px;
    padding: 0 1rem;
  }
  .nav-logo { min-width: 0; }
  .nav-logo-text { font-size: 1.08rem; }
  .nav-logo-img { height: 32px; }
  .mobile-menu { top: 68px; }
  .hero {
    min-height: auto;
    overflow: visible;
    padding: calc(68px + 2.4rem) 0 3.5rem;
  }
  .hero-copy {
    max-width: 100%;
    text-align: center;
  }
  h1 {
    font-size: clamp(2.35rem, 11.7vw, 4.05rem);
    line-height: 1;
    margin-top: 0.9rem;
  }
  h1 small {
    font-size: clamp(1.05rem, 6.7vw, 2rem);
    line-height: 1.12;
    margin-top: 0.55rem;
  }
  h2 { font-size: clamp(2rem, 11vw, 3.4rem); }
  .hero-copy p {
    font-size: 1rem;
    line-height: 1.7;
    margin-top: 1.25rem;
  }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions a { width: 100%; }
  .hero-note {
    border-radius: 10px;
    width: 100%;
  }
  .service-strip { padding: 0.8rem 0; }
  .service-strip-inner {
    gap: 0.55rem 1rem;
    justify-content: center;
  }
  .service-strip span {
    font-size: 0.68rem;
    letter-spacing: 0.09em;
  }
  .service-strip span::after { padding-left: 1rem; }
  .section-split { margin-bottom: 2rem; }
  .leistungen-grid,
  .portfolio-grid,
  .ablauf-grid,
  .form-row { grid-template-columns: 1fr; }
  .leistung-card,
  .leistung-card:first-child,
  .leistung-card:nth-child(3),
  .leistung-card:nth-child(4),
  .leistung-card:last-child { border-radius: 12px; }
  .kontakt-row { grid-template-columns: 1fr; gap: 0.25rem; }
  .portrait-meta { align-items: flex-start; flex-direction: column; gap: 0.3rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .thanks-page {
    min-height: calc(100vh - 68px);
    padding-top: calc(68px + 1.5rem);
  }
  .thanks-card {
    border-radius: 14px;
    padding: 1.5rem;
  }
  .thanks-card h1 {
    font-size: clamp(2.35rem, 12vw, 3.25rem);
  }
  .thanks-button {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .container { width: min(100% - 22px, var(--max-w)); }
  h1 { font-size: clamp(2.05rem, 10.8vw, 2.55rem); }
  h1 small { font-size: clamp(0.98rem, 6.2vw, 1.35rem); }
  .hero-copy p { font-size: 0.94rem; }
  .btn-primary,
  .btn-ghost {
    min-height: 46px;
    padding: 0 0.9rem;
  }
}

@media (min-width: 1500px) {
  :root { --max-w: 1320px; }
  .hero-centered,
  .hero-copy {
    max-width: 1160px;
  }
  h1 { font-size: clamp(5rem, 7vw, 8.4rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { filter: none; opacity: 1; transform: none; }
}
