/* ==========================================================
   PORTFOLIO – Hauptstyles
   Farben zentral hier ändern:
   ========================================================== */
:root {
  --bg: #faf8f5;
  --bg-alt: #f1ede6;
  --text: #1a1a1a;
  --muted: #6b6560;
  --accent: #ff5a36;      /* Hauptfarbe – hier deine Markenfarbe eintragen */
  --accent-2: #2d2bff;
  --card: #ffffff;
  --border: #e4ded4;
  --radius: 18px;
  --shadow: 0 10px 40px -12px rgba(30, 20, 10, .18);
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--text);
  color: #fff;
  padding: .9em 1.6em;
  border-radius: 999px;
  border: 2px solid var(--text);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); background: var(--accent); border-color: var(--accent); }
.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { color: #fff; }
.btn--small { padding: .5em 1.1em; font-size: .9rem; }

.eyebrow {
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 .8em;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 245, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.is-scrolled { border-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__logo img { height: 36px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav__links a:not(.btn):hover { color: var(--accent); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 6px 0; transition: .3s; }

@media (max-width: 800px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden;
    transition: max-height .35s ease;
  }
  .nav__links a { padding: 16px; width: 100%; text-align: center; }
  .nav__links .btn { width: auto; margin: 8px 0 20px; }
  .nav.is-open .nav__links { max-height: 420px; }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 110px 0 120px; }
.hero__inner { position: relative; z-index: 1; }
.hero__title { font-size: clamp(2.6rem, 7vw, 5.4rem); letter-spacing: -.03em; max-width: 14ch; }
.highlight {
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--accent) 35%, transparent) 62%);
}
.hero__text { font-size: 1.2rem; color: var(--muted); max-width: 52ch; margin: 0 0 2em; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 48px; list-style: none; padding: 0; margin: 70px 0 0; flex-wrap: wrap; }
.hero__stats strong { display: block; font-family: var(--font-head); font-size: 2.2rem; }
.hero__stats span { color: var(--muted); font-size: .9rem; }
.hero__blob {
  position: absolute; right: -180px; top: -120px;
  width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent), transparent 60%),
              radial-gradient(circle at 70% 70%, var(--accent-2), transparent 55%);
  filter: blur(70px); opacity: .35;
  animation: float 14s ease-in-out infinite alternate;
}
@keyframes float { to { transform: translate(-60px, 60px) scale(1.1); } }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section--alt { background: var(--bg-alt); }
.section__title { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -.02em; }
.section__lead { color: var(--muted); font-size: 1.1rem; max-width: 60ch; margin: 0 0 2.5em; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 40px; }
.service {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 30px;
  transition: transform .3s, box-shadow .3s;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service__icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.5rem;
  background: var(--accent); color: #fff; margin-bottom: 22px;
}
.service p { color: var(--muted); margin: 0; }

/* ---------- Filter ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter {
  font: inherit; font-size: .9rem; font-weight: 500;
  padding: .55em 1.2em; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card);
  cursor: pointer; transition: .2s;
}
.filter:hover { border-color: var(--text); }
.filter.is-active { background: var(--text); color: #fff; border-color: var(--text); }

/* ---------- Projekte ---------- */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 28px; }
.project {
  display: block; text-decoration: none;
  background: var(--card); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border);
  transition: transform .35s, box-shadow .35s;
}
.project:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.project.is-hidden { display: none; }
.project__preview {
  position: relative; aspect-ratio: 16 / 11; overflow: hidden;
  background: var(--bg-alt); border-bottom: 1px solid var(--border);
}
.project__preview iframe {
  position: absolute; top: 0; left: 0;
  width: 400%; height: 400%;
  transform: scale(.25); transform-origin: 0 0;
  border: 0; pointer-events: none;
}
.project__bar { position: absolute; top: 0; left: 0; right: 0; height: 22px; background: rgba(255,255,255,.9); display: flex; gap: 5px; align-items: center; padding-left: 10px; z-index: 2; }
.project__bar i { width: 8px; height: 8px; border-radius: 50%; background: #ddd; }
.project__preview::after {
  content: "Live ansehen →"; position: absolute; inset: 0; z-index: 3;
  display: grid; place-items: center;
  background: rgba(20, 15, 10, .55); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem;
  opacity: 0; transition: opacity .3s;
}
.project:hover .project__preview::after { opacity: 1; }
.project__body { padding: 20px 22px 24px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.project__body h3 { font-size: 1.25rem; margin: 0 0 .2em; }
.project__body p { margin: 0; color: var(--muted); font-size: .9rem; }
.project__tag {
  font-size: .75rem; font-weight: 600; white-space: nowrap;
  padding: .3em .8em; border-radius: 999px;
  background: var(--bg-alt);
}

/* ---------- Galerie ---------- */
.gallery { columns: 3 280px; column-gap: 20px; }
.gallery__item {
  break-inside: avoid; margin: 0 0 20px;
  border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid var(--border);
  cursor: zoom-in; position: relative;
}
.gallery__item.is-hidden { display: none; }
.gallery__item img { width: 100%; transition: transform .5s; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item figcaption {
  padding: 12px 16px; font-size: .9rem; display: flex; justify-content: space-between; gap: 8px;
}
.gallery__item figcaption span { color: var(--muted); font-size: .8rem; text-transform: capitalize; }
.gallery__placeholder {
  display: grid; place-items: center; text-align: center;
  color: var(--muted); font-size: .9rem; padding: 20px;
  background: repeating-linear-gradient(45deg, var(--bg-alt), var(--bg-alt) 12px, var(--bg) 12px, var(--bg) 24px);
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 8, 6, .92);
  display: none; place-items: center; padding: 30px; cursor: zoom-out;
}
.lightbox.is-open { display: grid; }
.lightbox img { max-height: 88vh; max-width: 100%; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox p { color: #fff; text-align: center; margin-top: 14px; }

/* ---------- Über mich ---------- */
.about { display: grid; grid-template-columns: 1fr 1.3fr; gap: 70px; align-items: center; }
.about__photo {
  aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-size: 1.3rem;
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__text p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 24px 0 0; }
.tags li { background: var(--card); border: 1px solid var(--border); padding: .35em .9em; border-radius: 999px; font-size: .85rem; }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; gap: 40px; } .about__photo { max-width: 360px; } }

/* ---------- Kontakt ---------- */
.contact__inner { max-width: 760px; }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: .9rem; }
.form input, .form select, .form textarea {
  font: inherit; padding: .85em 1em; border-radius: 12px;
  border: 1px solid var(--border); background: var(--card); color: var(--text);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.form .btn { justify-self: start; }
.contact__links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 40px; }
.contact__links a { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--accent); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 30px 0; font-size: .9rem; color: var(--muted); }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--accent); }

/* ---------- Scroll-Animation ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s, transform .8s; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero__blob { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Rechtliches ---------- */
.legal { padding: 80px 0; max-width: 760px; }
.legal h1 { font-size: 2.6rem; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
