/* Clemens Plaschke – 1:1-Nachbau der Elementor-Seite (Maße aus der Originalseite bei 1440 px gemessen).
   Umbrüche wie Elementor: Handy bis 767 px, Tablet bis 1024 px (data-aiom-devices="767 1024"). */
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/Roboto-latin-var.woff2") format("woff2"); }

:root {
  --elza: elza, "Helvetica Neue", Arial, sans-serif;
  --system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --ink: #000; --text: #333; --grey: #7a7a7a; --line: #a09f9f;
  --side: 50px; --header-h: 90px; --header-h-s: 64px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font-family: var(--system); font-size: 16px; line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #000; color: #fff; padding: 10px 16px; text-decoration: none; font-family: var(--elza); }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid #000; outline-offset: 3px; }

/* ---------------------------------------------------------------- Kopf */
/* Kopf (18.11.2026, Andi): fest oben, Glas statt Weiß (50 % Weiß + Unschärfe), beim Scrollen kleiner.
   Der Platz im Seitenfluss bleibt über body padding-top gleich – beim Verkleinern springt nichts.
   Unschärfe auf ::before, damit das Handy-Menü (position: fixed) sich am Fenster ausrichtet, nicht am Kopf. */
body { padding-top: var(--header-h); }
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--header-h); padding: 0 40px 0 var(--side);
  display: flex; align-items: center; justify-content: space-between; transition: height .35s var(--ease-out); }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0); transition: box-shadow .35s var(--ease-out); }
.site-header.is-scrolled { height: var(--header-h-s); }
.site-header.is-scrolled::before { box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .site-header::before { background: rgba(255, 255, 255, .94); } }
.logo { display: block; line-height: 0; transform-origin: left center; transition: transform .35s var(--ease-out); }
.site-header.is-scrolled .logo { transform: scale(.8); }
.logo img { width: var(--logo-w, 127px); height: 40px; }
.nav { display: flex; align-items: center; gap: 40px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.nav-main a { display: block; margin: 0 10px; padding: 20px 10px; font-family: var(--elza); font-weight: 300; font-size: 16px; line-height: 16px;
  color: #000; text-decoration: none; transition: opacity .2s; }
.nav-main a:hover { opacity: .6; }
.nav-social { display: flex; width: 60px; height: 60px; align-items: center; justify-content: center; color: #000; transition: opacity .2s; }
.nav-social:hover { opacity: .6; }
.nav-social svg { width: 20px; height: 20px; padding: 1px; }
.menu-btn { display: none; }
html { scroll-padding-top: var(--header-h); }

/* ---------------------------------------------------------------- Bewegung (18.11.2026, Andi): ruhig, kurz, nur mit Skript */
.rv-on .rv:not(.is-in):not(.tile):not(.g-item), .rv-on .tile.rv:not(.is-in) > :not(.tile-link), .rv-on .g-item.rv:not(.is-in) > img { opacity: 0; transform: translateY(26px); }
.rv-on .rv:not(.tile):not(.g-item), .rv-on .tile.rv > :not(.tile-link), .rv-on .g-item.rv > img {
  transition: opacity .7s var(--ease-out) var(--rv-d, 0ms), transform .9s var(--ease-out) var(--rv-d, 0ms); }
.rv-on .tile.rv > .tile-title { transition-delay: calc(var(--rv-d, 0ms) + 80ms); }
/* Projektkacheln: Bild zoomt beim Darüberfahren leicht */
.tile-media img { transition: transform .8s var(--ease-out); }
.tile:hover .tile-media img { transform: scale(1.045); }
/* Slideshow: aktuelles Bild bewegt sich ganz langsam (Ken Burns) */
.slideshow img { transform: scale(1); transition: transform 3.6s linear; }
.slideshow li.is-on img { transform: scale(1.05); }

/* ---------------------------------------------------------------- Start */
.home-hero { display: flex; justify-content: center; align-items: center; height: 620px; }   /* Abschnitt fest, Bildhöhe per Regler (Kunde), mittig */
.slideshow { position: relative; list-style: none; margin: 0; padding: 0; width: 1140px; max-width: calc(100% - 2 * var(--side)); height: min(var(--ss-h, 620px), 620px); overflow: hidden; background: #f2f2f2; }
.slideshow li { position: absolute; inset: 0; opacity: 0; transition: opacity .5s linear; }
.slideshow li.is-on { opacity: 1; }
/* Laden: vor dem Skript nur das erste Bild, danach nur aktuelles, vorheriges (Ausblenden) und nächstes (Vorladen) */
.slideshow li { display: none; }
.slideshow li:first-child, .slideshow.is-run li.is-on, .slideshow.is-run li.is-vis { display: block; }
.slideshow.is-run li:first-child:not(.is-on):not(.is-vis) { display: none; }
.slideshow img { width: 100%; height: 100%; object-fit: cover; }
.home-contact { text-align: center; padding: 62px 0 110px; }
.home-contact h2 { font-family: var(--elza); font-weight: 600; font-size: 18px; line-height: 1; }
.home-contact a { color: #000; text-decoration: none; }
.home-contact a:hover { opacity: .6; }

/* ---------------------------------------------------------------- Masonry (Übersicht + Galerie) */
.masonry { position: relative; }
.masonry.is-laid > * { position: absolute; top: 0; left: 0; }
.no-js .masonry, .masonry:not(.is-laid) { columns: 3; column-gap: 0; }
.masonry:not(.is-laid) > * { break-inside: avoid; }

.grid-section { padding: 130px var(--side) 80px; }
.tiles { margin: 0 -10px; }
.tile { padding: 10px 10px 3px; }
.tile-media { position: relative; overflow: hidden; }
.tile-media img { width: 100%; }
.tile-media::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .48); opacity: 0; transition: opacity .3s ease; }
.tile:hover .tile-media::after { opacity: 1; }
.tile-title { margin: 5px 0 0 5px; font-family: var(--elza); font-weight: 600; font-size: 18px; line-height: 32px; color: #000; }
.sub { font-weight: 300; }
.sub:empty { display: none; }
.sub::before { content: "| "; font-weight: 600; }
.tile { position: relative; }
.masonry.is-laid > .tile { position: absolute; }
.tile-link { position: absolute; inset: 10px; z-index: 1; font-size: 0; color: transparent; overflow: hidden; }
.tile-link:focus-visible { outline-offset: 0; }

/* ---------------------------------------------------------------- Projektseite */
.project { padding: 130px var(--side) 80px; }
.project-title { font-family: var(--system); font-weight: 700; font-size: 32px; line-height: 32px; color: #000; padding: 1px 0; }
.project-title .sub { font-weight: 300; }
.project-text { margin-top: 20px; font-family: var(--elza); font-weight: 400; font-size: 16px; line-height: 24px; color: #000; }
.project-text:empty { display: none; }
.gallery { margin-top: 40px; }
.g-item { display: block; width: 33.333%; padding: 0 5px 10px; border: 0; background: none; cursor: zoom-in; }
.g-item img { width: 100%; transition: opacity .25s ease; }
.g-item:hover img { opacity: .85; }

.video { position: relative; margin-top: 20px; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.video > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.video-poster { object-fit: cover; opacity: .55; }
.video iframe { border: 0; display: none; }
.video iframe[src] { display: block; }
.video-gate { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; text-align: center; color: #fff;
  font-family: var(--elza); font-size: 16px; line-height: 24px; }
.video-gate p { max-width: 520px; }
.video:has(iframe[src]) .video-gate, .video.is-loaded .video-gate, .video:has(iframe[src]) .video-poster, .video.is-loaded .video-poster { display: none; }
.btn { display: inline-block; padding: 14px 22px; background: #fff; color: #000; text-decoration: none; font-family: var(--elza); font-weight: 600;
  font-size: 14px; letter-spacing: 2px; text-transform: uppercase; transition: opacity .2s; }
.btn:hover { opacity: .8; }
.credits { margin-top: 20px; font-family: var(--elza); font-weight: 400; font-size: 16px; line-height: 24px; color: #000; }

/* ---------------------------------------------------------------- About */
.about { display: grid; grid-template-columns: 454px 454px; column-gap: 100px; justify-content: center; align-items: center; padding: 110px var(--side) 120px; }
.about .round { width: 454px; aspect-ratio: 454 / 449; object-fit: cover; border-radius: 50%; }
.about h2 { margin-top: 21px; text-align: center; font-family: "Roboto", sans-serif; font-weight: 600; font-size: 32px; line-height: 32px; color: #000; }
.about-right p { font-family: var(--elza); font-weight: 300; font-size: 18px; line-height: 30px; color: #000; }
.about-right p + p { margin-top: 14px; }
.about-right .muted { color: var(--grey); }

/* ---------------------------------------------------------------- Kontakt */
.contact { display: grid; grid-template-columns: 454px 454px; column-gap: 100px; justify-content: center; align-items: center; padding: 11px var(--side) 120px; }
.contact-img img { width: 454px; aspect-ratio: 454 / 680; object-fit: cover; }
.contact h1 { font-family: var(--elza); font-weight: 600; font-size: 40px; line-height: 30px; color: #000; margin-bottom: 34px; }
#kontakt-form { display: flex; flex-wrap: wrap; column-gap: 28px; row-gap: 15px; }
.field { display: block; }
.field label { display: block; font-family: var(--elza); font-weight: 600; font-size: 16px; line-height: 16px; color: #000; }
.field input, .field textarea { display: block; width: 100%; margin: 0; padding: 8px 16px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: #fff; font-family: var(--elza); font-weight: 400; font-size: 16px; line-height: 24px; color: #000; outline-offset: 0; }
.field input { height: 41px; }
.field textarea { height: 113px; margin-bottom: 4px; resize: vertical; }
.field.is-bad input, .field.is-bad textarea { border-bottom-color: #c00; }
.f-full { flex: 0 0 100%; }
.f-half { flex: 0 0 calc(50% - 14px); max-width: 211px; }
.f-subject { flex: 0 0 357px; max-width: 100%; }
.f-message { flex: 0 0 369px; max-width: 100%; }
.submit { margin-top: 29px; width: 150px; height: 64px; padding: 20px; background: #000; color: #fff; border: 1px solid var(--line); cursor: pointer;
  font-family: var(--elza); font-weight: 600; font-size: 15px; line-height: 22.5px; letter-spacing: 2px; transition: opacity .2s; }
.submit:hover { opacity: .8; }
.submit:disabled { opacity: .6; cursor: progress; }
.hp { position: absolute; left: -9999px; }
.form-msg { flex: 0 0 100%; padding: 12px 16px; font-family: var(--elza); font-size: 15px; line-height: 22px; border: 1px solid var(--line); }
.form-msg.ok { border-color: #46b450; }
.form-msg.bad { border-color: #dc3232; }
.form-msg--static { display: none; }
.form-msg--static:target { display: block; }

/* ---------------------------------------------------------------- Rechtstexte */
.legal-page { padding: 130px var(--side) 100px; }
.prose { max-width: 1140px; margin: 0 auto; font-family: var(--elza); font-weight: 300; font-size: 16px; line-height: 26px; color: #000; }
.prose h1 { font-family: var(--elza); font-weight: 600; font-size: 32px; line-height: 1.2; margin-bottom: 30px; }
.prose h2 { font-weight: 600; font-size: 20px; line-height: 1.3; margin: 30px 0 10px; }
.prose p { margin-bottom: 16px; }
.prose strong { font-weight: 600; }
.prose .note { padding: 10px 14px; background: #f4f4f4; }

/* ---------------------------------------------------------------- Fuß */
.site-footer { background: #000; color: #fff; }
.foot-top { position: relative; height: 253px; padding: 0 var(--side); }
.foot-logo { position: absolute; left: var(--side); top: 96px; line-height: 0; }
.foot-logo img { width: 191px; height: 60px; }
.foot-social { position: absolute; right: var(--side); top: 70px; display: flex; flex-direction: column; gap: 16px; }
.foot-social a { display: block; width: 25px; height: 25px; color: #fff; transition: opacity .2s; }
.foot-social a:hover { opacity: .6; }
.foot-social svg { width: 25px; height: 25px; padding: 3px; }
.foot-bottom { padding: 0 150px; text-align: center; }
.clients-title { font-family: var(--elza); font-weight: 600; font-size: 20px; line-height: 30px; color: #fff; }
.clients { max-width: 1140px; margin: 34px auto 0; overflow: hidden; }
.clients-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 100px; height: 168px; align-items: center; }
.clients-track li { flex: 0 0 148px; display: flex; align-items: center; justify-content: center; }
.clients-track img { width: 148px; height: auto; max-height: 132px; }
.legal { margin-top: 20px; font-family: "Roboto", sans-serif; font-weight: 300; font-size: 14px; line-height: 21px; color: var(--grey); }
.legal a { color: #fff; text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.copy { margin-top: 35px; font-family: var(--elza); font-weight: 300; font-size: 14px; line-height: 21px; color: #5a5a5a; }
.aiom { display: inline-block; width: 60px; margin-top: 15px; padding: 20px 0 19px; line-height: 0; }
.aiom svg { width: 60px; height: auto; }

/* ---------------------------------------------------------------- Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .92);
  opacity: 0; transition: opacity .2s ease; }
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; object-fit: contain; user-select: none; }
.lightbox button { position: absolute; border: 0; background: none; color: #fff; cursor: pointer; font-size: 44px; line-height: 1; padding: 16px; opacity: .8; transition: opacity .2s; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 8px; right: 12px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); font-size: 64px !important; }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); font-size: 64px !important; }
.lb-count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #ccc; font-family: var(--elza); font-size: 14px; }

/* ---------------------------------------------------------------- Tablet */
@media (max-width: 1024px) {
  :root { --side: 30px; }
  .about, .contact { grid-template-columns: 1fr 1fr; column-gap: 50px; }
  .about .round, .contact-img img { width: 100%; }
  .foot-bottom { padding: 0 var(--side); }
  .clients-track { gap: 60px; }
}
@media (max-width: 1024px) and (min-width: 768px) {
  .no-js .masonry, .masonry:not(.is-laid) { columns: 2; }
  .g-item { width: 50%; }
}

/* ---------------------------------------------------------------- Handy */
@media (max-width: 767px) {
  :root { --side: 19px; --header-h: 110px; --header-h-s: 72px; }
  .site-header { padding: 0 18px 0 var(--side); }
  .logo img { width: var(--logo-w, 170px); height: 40px; }
  .site-header.is-scrolled .logo { transform: scale(.78); }
  /* Hamburger (18.11.2026, Andi): zwei feine Linien, werden beim Öffnen zum X */
  .menu-btn { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; padding: 0;
    border: 0; background: none; cursor: pointer; color: #000; -webkit-tap-highlight-color: transparent; }
  /* Übergang: Seiten, die noch nicht neu veröffentlicht sind, tragen die alten Symbole */
  .menu-btn svg { width: 24px; height: 24px; }
  .menu-close, .menu-btn[aria-expanded="true"] .menu-open { display: none; }
  .menu-btn[aria-expanded="true"] .menu-close { display: block; line-height: 0; }
  .burger { position: relative; display: block; width: 24px; height: 8px; }
  .burger::before, .burger::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; border-radius: 1px; background: currentColor;
    transition: transform .35s var(--ease-out), top .35s var(--ease-out); }
  .burger::before { top: 0; }
  .burger::after { top: 6.5px; }
  .menu-btn[aria-expanded="true"] .burger::before { top: 3.25px; transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] .burger::after { top: 3.25px; transform: rotate(-45deg); }
  /* Menü: ganze Fläche, Glas wie der Kopf, große ruhige Schrift, Einträge kommen nacheinander */
  .nav { position: fixed; inset: 0; z-index: -2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px;
    padding: var(--header-h) var(--side) 40px; background: rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
    visibility: hidden; opacity: 0; transition: opacity .3s var(--ease-out), visibility 0s .3s; }
  .nav.is-open { visibility: visible; opacity: 1; transition: opacity .3s var(--ease-out); }
  .nav-main { flex-direction: column; align-items: center; gap: 6px; }
  .nav-main a { margin: 0; padding: 10px 0; font-size: 28px; line-height: 1.2; letter-spacing: .01em; text-align: center; }
  .nav-main li, .nav-icons { opacity: 0; transform: translateY(12px); transition: opacity .25s ease, transform .25s ease; }
  .nav.is-open .nav-main li, .nav.is-open .nav-icons { opacity: 1; transform: none; transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
  .nav.is-open .nav-main li:nth-child(2) { transition-delay: 40ms; }
  .nav.is-open .nav-main li:nth-child(3) { transition-delay: 80ms; }
  .nav.is-open .nav-main li:nth-child(4) { transition-delay: 120ms; }
  .nav.is-open .nav-main li:nth-child(5) { transition-delay: 160ms; }
  .nav.is-open .nav-main li:nth-child(6) { transition-delay: 200ms; }
  .nav.is-open .nav-icons { transition-delay: 240ms; }
  .nav-icons { justify-content: center; gap: 4px; }
  .nav-icons .nav-social { width: 48px; height: 48px; }
  html.menu-open { overflow: hidden; }
  .home-hero { height: 486px; }
  .slideshow { height: min(var(--ss-h, 486px), 486px); max-width: calc(100% - 2 * var(--side)); }
  .home-contact { padding: 37px 0 80px; }
  .home-contact h2 { font-size: 20px; }
  .grid-section, .project, .legal-page { padding-top: 40px; }
  .no-js .masonry, .masonry:not(.is-laid) { columns: 1; }
  .tiles { margin: 0 -5px; }
  .tile-title { font-size: 18px; }
  .g-item { width: 100%; padding: 0 0 10px; }
  .project-title { font-size: 26px; line-height: 30px; }
  .about, .contact { grid-template-columns: 1fr; row-gap: 40px; padding-top: 30px; }
  .about-right p { text-align: center; }
  .contact h1 { margin-top: 0; }
  .f-half, .f-subject, .f-message { flex: 0 0 100%; }
  .foot-top { height: auto; padding: 50px var(--side) 40px; display: flex; justify-content: space-between; align-items: center; }
  .foot-logo, .foot-social { position: static; }
  .foot-logo img { width: 150px; height: auto; }
  .clients-track { gap: 40px; height: 120px; }
  .clients-track li { flex-basis: calc((100vw - 2 * var(--side) - 40px) / 2); }
  .clients-track img { width: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  .slideshow li, .lightbox, .nav, .tile-media::after, .site-header, .site-header::before, .logo, .burger::before, .burger::after,
  .nav-main li, .nav-icons, .tile-media img, .slideshow img { transition: none !important; }
  .tile:hover .tile-media img, .slideshow li.is-on img { transform: none; }
}
