/* Janosevic – mv-jano.de */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --ink: #17212a;
  --ink-soft: #4d5a65;
  --paper: #f6f3ee;
  --paper-dark: #ebe6dd;
  --white: #fff;
  --blue: #3498db;
  --blue-deep: #1b6ea8;
  --green: #2ecc71;
  --line: rgba(23, 33, 42, .14);
  --head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 4.5vw, 56px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
h1, h2, h3 {
  font-family: var(--head);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0;
}
::selection { background: var(--green); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 200;
}
.skip:focus { left: 0; }

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

.site-header {
  position: fixed; inset: 0 0 auto 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, .96);
  z-index: 100;
  transition: box-shadow .25s, height .25s;
}
.site-header.is-stuck { box-shadow: 0 1px 0 var(--line), 0 8px 24px -18px rgba(23, 33, 42, .5); }
.site-header .wrap {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo img { width: 190px; height: auto; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 38px); }
.nav a {
  font-family: var(--head);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  padding: 6px 0;
  position: relative;
}
.nav a:not(.nav-phone)::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--green);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-phone {
  margin-left: 6px;
  padding: 10px 18px !important;
  border: 1.5px solid var(--ink);
  transition: background .2s, color .2s;
}
.nav-phone:hover { background: var(--ink); color: #fff; }

.burger {
  display: none;
  width: 46px; height: 46px;
  background: none; border: 0; padding: 0; cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink);
  transition: transform .25s, top .25s, opacity .2s;
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.nav-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

main { padding-top: var(--header-h); }

/* ---------- Buttons / links ---------- */

.btn {
  display: inline-block;
  font-family: var(--head);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 15px 26px;
  background: var(--green);
  color: var(--ink);
  border: 0;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn:hover { background: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--blue-deep); }

.more {
  font-family: var(--head);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--green);
  padding-bottom: 3px;
  white-space: nowrap;
}
.more::after { content: " \2192"; display: inline-block; transition: transform .2s; margin-left: 6px; }
.more:hover::after { transform: translateX(5px); }

.label {
  font-family: var(--head);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin: 0 0 18px;
}

/* ---------- Hero (Startseite) ---------- */

.hero {
  position: relative;
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  min-height: 520px;
  max-height: 900px;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 1.1s ease, visibility 0s 1.1s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.1s ease; }
.hero-bg {
  position: absolute; inset: -14% 0;
  will-change: transform;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(15, 22, 28, .82) 0%, rgba(15, 22, 28, .25) 55%, rgba(15, 22, 28, .1) 100%);
}
.hero-text {
  position: absolute; left: 0; right: 0; bottom: clamp(70px, 11vh, 120px);
  z-index: 2;
}
.hero-word {
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(3.1rem, 12.5vw, 10.5rem);
  line-height: .9;
  letter-spacing: -.045em;
  margin: 0 0 .22em -.04em;
}
.hero-sub {
  max-width: 30em;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.45;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, .92);
}
.hero-slide .hero-word,
.hero-slide .hero-sub,
.hero-slide .hero-actions { transform: translateY(26px); opacity: 0; transition: transform .9s cubic-bezier(.2, .7, .2, 1), opacity .9s; }
.hero-slide.is-active .hero-word,
.hero-slide.is-active .hero-sub,
.hero-slide.is-active .hero-actions { transform: none; opacity: 1; }
.hero-slide.is-active .hero-sub { transition-delay: .12s; }
.hero-slide.is-active .hero-actions { transition-delay: .22s; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.hero-actions .more { color: #fff; }

.hero-dots {
  position: absolute; z-index: 3;
  right: var(--gutter); bottom: clamp(24px, 5vh, 44px);
  display: flex; gap: 6px; align-items: center;
}
.hero-dots button {
  font-family: var(--head); font-weight: 600; font-size: .85rem;
  color: rgba(255, 255, 255, .55);
  background: none; border: 0; cursor: pointer;
  padding: 10px 4px;
  display: flex; align-items: center; gap: 10px;
}
.hero-dots button::after {
  content: ""; display: block; height: 2px; width: 22px;
  background: currentColor; transition: width .4s;
}
.hero-dots button[aria-current="true"] { color: #fff; }
.hero-dots button[aria-current="true"]::after { width: 64px; background: var(--green); }

/* ---------- Seitenkopf (Unterseiten) ---------- */

.page-head {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding: clamp(90px, 16vw, 190px) 0 clamp(36px, 5vw, 64px);
}
.page-head-bg { position: absolute; inset: -22% 0; will-change: transform; }
.page-head-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-head::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15, 22, 28, .86), rgba(15, 22, 28, .42));
}
.page-head .wrap { position: relative; z-index: 2; }
.page-head h1 {
  font-weight: 800;
  font-size: clamp(2.8rem, 9vw, 7rem);
  letter-spacing: -.04em;
  line-height: .95;
  margin-left: -.04em;
}
.crumbs { font-size: .95rem; margin: 0 0 14px; color: rgba(255, 255, 255, .75); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { margin: 0 8px; color: var(--green); }

/* ---------- Abschnitte ---------- */

.section { padding: clamp(64px, 9vw, 130px) 0; }
.section--tight { padding-top: 0; }
.section--white { background: var(--white); }
.section--dark { background: var(--ink); color: #fff; }
.section--dark .label { color: var(--green); }

.h-xl { font-size: clamp(2rem, 4.6vw, 3.7rem); }
.h-lg { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.55; color: var(--ink-soft); }
.section--dark .lead { color: rgba(255, 255, 255, .8); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: start;
}
.split--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

/* Intro */
.intro h2 { max-width: 15em; }
.intro h2 em { font-style: normal; box-shadow: inset 0 -.32em 0 rgba(46, 204, 113, .55); }

/* Leistungen – Liste */
.services { list-style: none; margin: clamp(36px, 5vw, 64px) 0 0; padding: 0; border-top: 1px solid var(--line); }
.service {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 4fr) minmax(0, 6fr) auto;
  gap: 12px clamp(20px, 4vw, 56px);
  align-items: baseline;
  padding: clamp(24px, 3.4vw, 42px) 0;
  border-bottom: 1px solid var(--line);
}
.services--plain { margin-top: 0; }
.services--plain .service { grid-template-columns: 4.5rem minmax(0, 1fr); }
.service-no { font-family: var(--head); font-weight: 600; font-size: .9rem; color: var(--blue-deep); }
.service h3 { font-size: clamp(1.6rem, 3.3vw, 2.7rem); }
.service p { margin: 0; color: var(--ink-soft); }
.service .more { align-self: center; }

/* Leistungen – Detail */
.service-block {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: center;
  padding: clamp(40px, 6vw, 84px) 0;
  border-bottom: 1px solid var(--line);
}
.service-block:first-of-type { padding-top: 0; }
.service-block:last-of-type { border-bottom: 0; padding-bottom: 0; }
.service-block:nth-of-type(even) .service-media { order: 2; }
.service-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-dark); }
.service-media img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.service-block h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin-bottom: 18px; }
.service-block ul { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.service-block li {
  font-size: .98rem;
  padding: 5px 14px;
  border: 1px solid var(--line);
  background: var(--white);
}

/* Referenzen – Vorschau Startseite */
.refs-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 60px); }
.refs-head h2 { max-width: 13em; }
.refs-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.8vw, 24px); }
.refs-col:nth-child(even) { margin-top: clamp(24px, 6vw, 80px); }
.shot { display: block; overflow: hidden; background: var(--paper-dark); will-change: transform; }
.shot img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.shot:hover img { transform: scale(1.045); }

/* Galerie */
.gallery { columns: 3; column-gap: clamp(10px, 1.6vw, 22px); }
.gallery a {
  display: block; break-inside: avoid;
  margin-bottom: clamp(10px, 1.6vw, 22px);
  overflow: hidden; background: var(--paper-dark);
  cursor: zoom-in;
}
.gallery img { width: 100%; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.gallery a:hover img { transform: scale(1.04); }

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(13, 19, 24, .95);
  display: none; align-items: center; justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); object-fit: contain; }
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer;
  font-family: var(--head); font-size: 2rem; line-height: 1;
  width: 56px; height: 56px;
}
.lightbox button:hover { color: var(--green); }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 6px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .7); font-size: .95rem; margin: 0; }

/* Parallax-Band */
.band {
  position: relative; overflow: hidden;
  color: #fff; background: var(--ink);
  padding: clamp(90px, 15vw, 220px) 0;
}
.band-bg { position: absolute; inset: -24% 0; will-change: transform; }
.band-bg img { width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: rgba(15, 22, 28, .56); }
.band .wrap { position: relative; z-index: 2; }
.band .label { color: var(--green); }
.band blockquote, .band .band-text {
  margin: 0; max-width: 21em;
  font-family: var(--head); font-weight: 600;
  font-size: clamp(1.45rem, 3.1vw, 2.5rem);
  line-height: 1.22; letter-spacing: -.015em;
}
.band .more { color: #fff; display: inline-block; margin-top: 34px; }

/* Über uns */
.about-figure { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-dark); }
.about-figure img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.about-text h2 { margin-bottom: 26px; }
.facts { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts span:first-child { color: var(--ink-soft); }
.facts span:last-child { font-family: var(--head); font-weight: 600; text-align: right; }

/* Kontakt */
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact-list li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-list small {
  display: block;
  font-family: var(--head); font-weight: 600; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue-deep);
  margin-bottom: 4px;
}
.contact-list a, .contact-list address {
  font-family: var(--head); font-weight: 600; font-style: normal;
  font-size: clamp(1.25rem, 2.3vw, 1.7rem); line-height: 1.25;
  text-decoration: none;
}
.contact-list a:hover { color: var(--blue-deep); }
.contact-list .more { font-size: 1rem; display: inline-block; margin-top: 12px; }
.section--dark .contact-list { border-color: rgba(255, 255, 255, .2); }
.section--dark .contact-list li { border-color: rgba(255, 255, 255, .2); }
.section--dark .contact-list small { color: var(--green); }
.section--dark .contact-list a:hover { color: var(--green); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: .95rem; font-weight: 600; margin-bottom: 6px; }
.form input, .form textarea {
  width: 100%;
  font: inherit; color: var(--ink);
  padding: 13px 14px;
  background: var(--white);
  border: 1px solid rgba(23, 33, 42, .28);
  border-radius: 0;
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 0; border-color: var(--blue-deep); box-shadow: 0 0 0 3px rgba(52, 152, 219, .2); }
.form .hp { position: absolute; left: -9999px; }
.form-note { font-size: .92rem; color: var(--ink-soft); margin: 0; }
.form-status { margin: 0; font-weight: 600; }
.form-status.ok { color: #15803d; }
.form-status.err { color: #b42318; }
.section--dark .form label { color: #fff; }
.section--dark .form-note { color: rgba(255, 255, 255, .65); }
.section--dark .form-status.ok { color: var(--green); }
.section--dark .form-status.err { color: #ff9c8f; }

.map {
  position: relative;
  aspect-ratio: 16 / 6; min-height: 300px;
  background: var(--paper-dark);
  display: grid; place-items: center; text-align: center;
  padding: 24px;
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map p { max-width: 30em; margin: 0 auto 18px; color: var(--ink-soft); font-size: 1rem; }

/* Rechtliches */
.legal { padding-top: clamp(40px, 6vw, 80px); }
.legal .crumbs { color: var(--ink-soft); }
.prose { max-width: 44em; margin-top: clamp(28px, 4vw, 48px); }
.prose h2 { font-size: 1.3rem; letter-spacing: -.01em; margin: 2.2em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose a, .form-note a { color: var(--blue-deep); text-underline-offset: 3px; }
.section--dark .form-note a { color: #fff; }
.cf-turnstile { min-height: 65px; }

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

.site-footer { background: var(--ink); color: rgba(255, 255, 255, .78); padding: clamp(56px, 7vw, 96px) 0 0; font-size: 1.02rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 2fr) minmax(0, 3fr); gap: clamp(28px, 6vw, 90px); }
.site-footer h2 { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green); font-weight: 600; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; color: #fff; }
.site-footer a:hover { color: var(--green); }
.site-footer address { font-style: normal; }
.footer-logo { display: inline-block; background: #fff; padding: 10px 14px; margin-bottom: 22px; }
.footer-logo img { width: 160px; }
.footer-about { max-width: 26em; }
.footer-bottom {
  margin-top: clamp(40px, 6vw, 72px);
  padding: 22px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font-size: .92rem; color: rgba(255, 255, 255, .55);
}
.footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; align-content: center; }
.notfound .big { font-family: var(--head); font-weight: 800; font-size: clamp(5rem, 22vw, 15rem); line-height: .85; letter-spacing: -.05em; color: var(--paper-dark); margin: 0 0 10px -.04em; }

/* ---------- Einblenden beim Scrollen ---------- */

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

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

@media (max-width: 980px) {
  .split, .split--flip { grid-template-columns: 1fr; }
  .service { grid-template-columns: 3rem minmax(0, 1fr); }
  .service p, .service .more { grid-column: 2; justify-self: start; }
  .service-block { grid-template-columns: 1fr; }
  .service-block:nth-of-type(even) .service-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about-col { grid-column: 1 / -1; }
  .about-figure { aspect-ratio: 16 / 11; }
}

@media (max-width: 860px) {
  :root { --header-h: 66px; }
  .logo img { width: 158px; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: var(--white);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 18px var(--gutter) 40px;
    overflow-y: auto;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .3s, opacity .3s, visibility 0s .3s;
  }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; transition: transform .3s, opacity .3s; }
  .nav a { width: 100%; font-size: 1.7rem; font-weight: 700; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.nav-phone)::after { display: none; }
  .nav a[aria-current="page"] { color: var(--blue-deep); }
  .nav-phone { margin: 28px 0 0; width: auto !important; font-size: 1.15rem !important; border-bottom: 1.5px solid var(--ink) !important; }
  .nav-open { overflow: hidden; }
  .gallery { columns: 2; }
}

@media (max-width: 640px) {
  body { font-size: 1.06rem; }
  .refs-row { grid-template-columns: 1fr 1fr; }
  .refs-col:nth-child(even) { margin-top: 28px; }
  .form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-dots { left: var(--gutter); right: auto; bottom: 14px; }
  .hero-text { bottom: 74px; }
  .map { aspect-ratio: auto; min-height: 340px; }
  .facts li { flex-direction: column; gap: 2px; }
  .facts span:last-child { text-align: left; }
}

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