/* v2 preview overlay - AI placeholder badge + extended slot styles. Removable when real photos arrive. */

/* ---------- AI badge core (reused from v1, refined) ---------- */
.ai-placeholder { position: relative; overflow: hidden; }
.ai-placeholder::after {
  content: "Beispielbild - wird durch Ihr Foto ersetzt";
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(20, 20, 20, 0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 11px;
  border-radius: 2px;
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  pointer-events: none;
  z-index: 5;
  text-transform: uppercase;
}
.ai-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.12) 100%);
  pointer-events: none;
  z-index: 4;
}
.ai-placeholder.compact::after {
  bottom: 8px;
  left: 8px;
  font-size: 10px;
  padding: 4px 8px;
}
@media (max-width: 540px) {
  .ai-placeholder::after {
    font-size: 10px;
    padding: 5px 9px;
    bottom: 8px;
    left: 8px;
  }
}

/* ---------- Service page hero (v1 carryover) ---------- */
.service-hero-photo {
  position: relative;
  max-width: 1280px;
  margin: 0 auto 56px;
  padding: 0 24px;
}
.service-hero-photo .photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 2px;
  background: #1a1a1a;
  box-shadow: 0 30px 80px rgba(20, 18, 15, 0.18);
}
.service-hero-photo .photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 720px) {
  .service-hero-photo .photo-frame { aspect-ratio: 4 / 3; }
  .service-hero-photo { margin-bottom: 36px; padding: 0 14px; }
}

/* ---------- v2 Section image backgrounds ---------- */

/* Trust strip: subtle plaster texture under text */
.trust-strip {
  position: relative;
  overflow: hidden;
}
.trust-strip .trust-bg-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.trust-strip .trust-bg-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: contrast(1.05) saturate(0.78);
}
.trust-strip .trust-bg-photo::after {
  content: "Beispielbild";
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(20, 20, 20, 0.7);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 2px;
  font-family: "Manrope", system-ui, sans-serif;
  text-transform: uppercase;
  z-index: 3;
}
.trust-strip .trust-grid { position: relative; z-index: 1; }

/* Leistungen section: hallway photo as left visual column */
.section-with-photo {
  position: relative;
}
.section-leistungen-visual {
  position: relative;
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: stretch;
}
.section-leistungen-visual .leistungen-photo {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  border-radius: 2px;
  box-shadow: 0 30px 80px rgba(20, 18, 15, 0.18);
}
.section-leistungen-visual .leistungen-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.section-leistungen-visual .leistungen-photo .caption-overlay {
  position: absolute;
  left: 22px;
  bottom: 22px;
  right: 22px;
  z-index: 2;
  color: #fff;
}
.section-leistungen-visual .leistungen-photo .caption-overlay::before {
  content: "";
  position: absolute;
  inset: -22px;
  background: linear-gradient(0deg, rgba(20, 18, 15, 0.62), transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.section-leistungen-visual .leistungen-photo .caption-overlay strong {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 6px;
  font-weight: 500;
}
.section-leistungen-visual .leistungen-photo .caption-overlay span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.04em;
}

/* Material board v2: photo tiles */
.material-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.material-tile {
  position: relative;
  min-height: 240px;
  padding: 0;
  display: block;
  overflow: hidden;
  background: var(--graphite, #242424);
  border-radius: 2px;
}
.material-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.88) contrast(1.04);
}
.material-tile .tile-label {
  position: absolute;
  left: 18px;
  bottom: 18px;
  right: 18px;
  z-index: 2;
  color: #fff;
}
.material-tile .tile-label::before {
  content: "";
  position: absolute;
  inset: -18px -18px -18px -18px;
  background: linear-gradient(0deg, rgba(20, 18, 15, 0.72), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.material-tile .tile-label strong {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
}
.material-tile .tile-label span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

/* Ablauf dark section with atmospheric bg */
.section.dark.with-bg {
  position: relative;
  overflow: hidden;
}
.section.dark .ablauf-bg-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.42;
}
.section.dark .ablauf-bg-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.1) brightness(0.85);
}
.section.dark .ablauf-bg-photo::after {
  content: "Beispielbild";
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(20, 20, 20, 0.78);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 2px;
  font-family: "Manrope", system-ui, sans-serif;
  text-transform: uppercase;
  z-index: 3;
}
.section.dark .wrap { position: relative; z-index: 1; }

/* Reference grid v2: real photos */
.reference-item.with-photo {
  padding: 0;
  background: transparent;
  position: relative;
  overflow: hidden;
}
.reference-item.with-photo::before { display: none; }
.reference-item.with-photo .ref-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.reference-item.with-photo .ref-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92);
}
.reference-item.with-photo .ref-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20, 18, 15, 0.78) 0%, rgba(20, 18, 15, 0.18) 55%, transparent 100%);
  z-index: 1;
}
.reference-item.with-photo .ref-photo::before {
  content: "Beispielbild";
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(20, 20, 20, 0.78);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 2px;
  font-family: "Manrope", system-ui, sans-serif;
  text-transform: uppercase;
  z-index: 3;
}
.reference-item.with-photo span {
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: #171615;
  font-weight: 700;
  position: relative;
  z-index: 2;
}
.reference-item.with-photo h3,
.reference-item.with-photo p {
  position: relative;
  z-index: 2;
  color: #fff;
}
.reference-item.with-photo h3 {
  font-family: "Fraunces", Georgia, serif;
}
.reference-item.with-photo p {
  color: rgba(255, 255, 255, 0.78);
}
.reference-item.with-photo:hover {
  transform: translateY(-4px);
  transition: transform 240ms ease-out;
}

/* Servicegebiet visual */
.area-with-photo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
  margin-top: 28px;
}
.area-with-photo .area-photo {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border-radius: 2px;
}
.area-with-photo .area-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.area-with-photo .area-photo .photo-caption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  color: #fff;
  z-index: 2;
}
.area-with-photo .area-photo .photo-caption::before {
  content: "";
  position: absolute;
  inset: -18px;
  background: linear-gradient(0deg, rgba(20, 18, 15, 0.62), transparent 65%);
  z-index: -1;
}
.area-with-photo .area-photo .photo-caption strong {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 18px;
  font-weight: 500;
}
.area-with-photo .area-photo .photo-caption span {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.78);
  text-transform: uppercase;
}

/* Atelier note (measurement card refinement v2) */
.measurement {
  font-family: "Fraunces", Georgia, serif;
  border: none;
  border-left: 3px solid var(--copper, #a45d38);
}
.measurement b {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.measurement p {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 400;
}

/* ---------- v3 Leistungen dropdown nav ---------- */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-dropdown .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 12px;
  border-radius: 4px;
  color: #3f3c36;
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}
.nav-dropdown .dropdown-toggle:hover,
.nav-dropdown .dropdown-toggle.is-active,
.nav-dropdown:hover .dropdown-toggle,
.nav-dropdown:focus-within .dropdown-toggle {
  background: rgba(164, 93, 56, 0.11);
  color: #171615;
}
.nav-dropdown .caret {
  font-size: 10px;
  line-height: 1;
  margin-top: 2px;
  color: #a45d38;
  transition: transform 200ms ease;
}
.nav-dropdown:hover .caret,
.nav-dropdown:focus-within .caret {
  transform: rotate(180deg);
}
.nav-dropdown .dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 320px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: #fbfaf6;
  border: 1px solid rgba(23, 22, 21, 0.14);
  box-shadow: 0 30px 80px rgba(20, 18, 15, 0.22);
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease, visibility 0s linear 220ms;
  z-index: 60;
}
.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 220ms ease, transform 220ms ease, visibility 0s linear 0s;
}
.nav-dropdown .dropdown-panel a {
  padding: 12px 14px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
  color: #3f3c36;
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.nav-dropdown .dropdown-panel a:hover,
.nav-dropdown .dropdown-panel a.is-active {
  background: rgba(164, 93, 56, 0.11);
  color: #171615;
}
.nav-dropdown .dropdown-panel a.is-active {
  position: relative;
}
.nav-dropdown .dropdown-panel a.is-active::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 16px;
  background: #a45d38;
  border-radius: 2px;
}

@media (max-width: 1060px) {
  .nav-dropdown {
    display: block;
    width: 100%;
  }
  .nav-dropdown .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    border-bottom: 1px solid rgba(23, 22, 21, 0.14);
  }
  .nav-dropdown .caret { display: none; }
  .nav-dropdown .dropdown-panel {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: block;
    min-width: auto;
    padding: 6px 0 6px 14px;
    background: transparent;
    border: 0;
    box-shadow: none;
    transition: none;
  }
  .nav-dropdown .dropdown-panel a {
    padding: 12px 12px;
    border-bottom: 1px solid rgba(23, 22, 21, 0.06);
  }
  .nav-dropdown .dropdown-panel a:last-child { border-bottom: 0; }
}

/* ---------- v3 Leistungen grouped categories ---------- */
.leistungen-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line, rgba(23,22,21,0.14));
  border: 1px solid var(--line, rgba(23,22,21,0.14));
}
.leistungen-group {
  position: relative;
  padding: 30px 28px;
  background: var(--paper, #fbfaf6);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.leistungen-group .group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(23, 22, 21, 0.1);
}
.leistungen-group .group-head h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.008em;
  font-variation-settings: "opsz" 32;
}
.leistungen-group .group-head .group-link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--copper, #a45d38);
  white-space: nowrap;
}
.leistungen-group .group-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.leistungen-group .group-list li {
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--muted, #6f6a61);
  padding: 6px 0;
  border-bottom: 1px dashed rgba(23, 22, 21, 0.06);
}
.leistungen-group .group-list li:last-child { border-bottom: 0; }
.leistungen-group .group-list li strong {
  display: block;
  font-weight: 700;
  color: var(--ink, #171615);
  margin-bottom: 1px;
  font-size: 14px;
}
.leistungen-group.is-headline {
  background: var(--ink, #171615);
  color: #fff;
}
.leistungen-group.is-headline .group-head h3,
.leistungen-group.is-headline .group-list li strong {
  color: #fff;
}
.leistungen-group.is-headline .group-list li {
  color: rgba(255, 255, 255, 0.72);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
.leistungen-group.is-headline .group-head .group-link {
  color: var(--copper-2, #c88752);
}
.leistungen-group.is-headline .group-head {
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

@media (max-width: 1060px) {
  .leistungen-groups { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .leistungen-groups { grid-template-columns: 1fr; }
  .leistungen-group { padding: 24px 20px; }
}

/* ---------- v2 page-load + scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 760ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 760ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 60ms; }
.reveal[data-delay="2"] { transition-delay: 130ms; }
.reveal[data-delay="3"] { transition-delay: 220ms; }
.reveal[data-delay="4"] { transition-delay: 310ms; }
.reveal[data-delay="5"] { transition-delay: 410ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Mobile adjustments ---------- */
@media (max-width: 1060px) {
  .section-leistungen-visual { grid-template-columns: 1fr; }
  .section-leistungen-visual .leistungen-photo { min-height: 320px; }
  .area-with-photo { grid-template-columns: 1fr; gap: 14px; }
  .area-with-photo .area-photo { min-height: 280px; }
}
@media (max-width: 720px) {
  .material-board { grid-template-columns: 1fr; }
  .material-tile { min-height: 180px; }
  .section-leistungen-visual .leistungen-photo { min-height: 260px; }
  .area-with-photo .area-photo { min-height: 220px; }
}

/* ---------- Kamil: echte Projektfotos + mobile touch (2026-06-10) ---------- */
/* Echte Fotos statt Platzhalter: kein "Beispielbild"-Badge mehr */
.reference-item.with-photo .ref-photo::before { content: none; display: none; }

/* Mobile: groessere, klar getrennte Touch-Targets im Menue (Kamil Feedback) */
@media (max-width: 1060px) {
  .nav-links {
    max-height: calc(100vh - 92px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 6px;
    gap: 3px;
  }
  .nav-links > a,
  .nav-dropdown .dropdown-toggle {
    min-height: 54px;
    padding: 16px 14px;
    font-size: 16px;
    display: flex;
    align-items: center;
  }
  .nav-dropdown .dropdown-panel {
    padding: 4px 0 4px 10px;
  }
  .nav-dropdown .dropdown-panel a {
    min-height: 50px;
    padding: 15px 16px;
    font-size: 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(23, 22, 21, 0.08);
  }
}
