/* Separate Entwurfsfassung. Die Originaldateien in preview/ bleiben unverändert.
   Konzept: ein Bild, zwei gleichwertige Einstiege, Weiß / Navy / Bronze. */
.design-v2 {
  /* Verbindliche Logofarben aus der Kundenvorlage vom 24.09.2026. */
  --brand-bronze: #5d3a1c;
  --brand-navy: #192435;
  --hero-bronze: #cfaa76;
  --header-height: 86px;
  --header-bg: #ffffff;
  --header-ink: #141821;
  --header-line: #e2e6ec;
}

.design-v2 .site-nav a[data-nav="security"] { color: var(--brand-navy); }
.design-v2 .site-nav a[data-nav="services"] { color: var(--brand-bronze); }
.design-v2 .site-nav a::after { background: #a87c43; }
.design-v2 .site-nav a[data-nav]::after { background: currentColor; }
.design-v2 .header-cta {
  display: inline-flex;
  min-height: 46px;
  padding: 0 18px;
  color: #785226;
  background: transparent;
  border: 1px solid #a7773d;
  border-radius: 5px;
  box-shadow: none;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}
.design-v2 .header-cta:hover { color: #081422; background: #e9c18d; }
.design-v2 .header-cta-short, .design-v2 .nav-language { display: none; }
.design-v2 .brand { min-width: 220px; }
.design-v2 .brand img { display: block; width: 220px; height: auto; filter: none; }
.design-v2 .language-switcher { border: 0; background: transparent; padding: 0; }
.design-v2 .language-switcher a { border-radius: 0; background: none; }
.design-v2 .language-switcher a[aria-current="true"] {
  color: #785226;
  box-shadow: inset 0 -2px #a87c43;
}
.design-v2 .nav-toggle { border: 0; border-radius: 4px; }

.unified-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 36px;
  padding: 48px max(24px, calc((100vw - 1240px) / 2));
  color: #fff;
  background: #081422;
}
.unified-hero-media {
  position: relative;
  order: 2;
  width: 100%;
  aspect-ratio: 1.45;
  overflow: hidden;
  border-radius: 8px;
}
.unified-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 68%;
  transform: scale(1.5);
  transform-origin: 52% 68%;
}
.unified-hero-inner {
  position: relative;
  order: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}
.unified-hero-copy { max-width: 720px; }
.unified-hero h1 {
  max-width: 740px;
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 4.2vw, 60px);
  line-height: 1.04;
  letter-spacing: -.045em;
  font-weight: 750;
}
.unified-hero h1 > span { display: block; max-width: 520px; }
.unified-hero h1 strong {
  display: block;
  margin-top: 10px;
  color: var(--hero-bronze);
  font-size: .70em;
  line-height: 1.15;
  letter-spacing: -.035em;
  font-weight: 650;
}
.unified-hero-copy > p {
  max-width: 540px;
  margin: 20px 0 0;
  color: #f0f2f4;
  font-size: 18px;
  line-height: 1.55;
}
.hero-routes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 30px;
}
.hero-route {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-top: 2px solid var(--hero-bronze);
  border-bottom: 1px solid rgba(255, 255, 255, .17);
  color: #fff;
  background: rgba(255, 255, 255, .035);
  text-decoration: none;
  transition: background 180ms ease;
}
.hero-route strong {
  display: block;
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -.025em;
  font-weight: 650;
}
.hero-route small { display: block; margin-top: 5px; font-size: 15px; color: #dbe1e7; }
.hero-route .icon { flex: 0 0 26px; width: 26px; height: 26px; transition: transform 180ms ease; }
.hero-route:hover { color: #fff; background: rgba(207, 170, 118, .13); }
.hero-route:hover .icon { transform: translateX(4px); }
.hero-route:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.hero-quick-contact { display: none; }
/* Das Hochformat darf die Grid-Zeile nicht auf seine natürliche Höhe ziehen.
   Der Bildrahmen folgt dem Text; der Ausschnitt hält Schuhe und Kamerastempel draußen. */
.design-v2 .page-hero-media { overflow: hidden; }
.design-v2 .page-hero-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.design-v2 .security-hero .page-hero-media img {
  object-position: center 28%;
  transform: scale(1.12);
  transform-origin: center 28%;
}
.design-v2 .services-hero .page-hero-media img {
  object-position: center 14%;
  transform: scale(1.5);
  transform-origin: center 14%;
}
.design-v2 .mobile-hero-title { display: none; }
.homepage-v2 .trust-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.homepage-v2 .trust-item { min-height: 86px; padding: 18px 24px; gap: 14px; border: 0; }
.homepage-v2 .trust-item + .trust-item { border-left: 1px solid #e2e6ec; }
.homepage-v2 .trust-icon { color: #0b1728; background: none; border-radius: 0; width: 30px; height: 30px; flex-basis: 30px; }
.homepage-v2 .trust-item strong { font-size: 14px; font-weight: 550; }

/* Im Footer wird dasselbe unverzerrte Markenlogo wie im Header verwendet. */
.design-v2 .footer-brand .footer-brand-mark {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  margin-bottom: 16px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
}
.design-v2 .footer-brand .footer-brand-logo {
  display: block;
  width: 220px;
  height: auto;
  margin: 0;
  filter: none;
}

@media (min-width: 901px) {
  .design-v2 .header-inner { gap: 16px; }
  .design-v2 .site-nav { gap: clamp(13px, 1.5vw, 23px); }
  .design-v2 .site-nav a { font-size: 14px; }
}
@media (min-width: 901px) and (max-width: 1080px) {
  .design-v2 .nav-toggle { display: inline-flex; }
  .design-v2 .site-nav {
    display: grid;
    position: fixed;
    z-index: 1001;
    top: calc(var(--header-height) + 8px);
    right: 14px;
    width: min(320px, calc(100vw - 28px));
    align-content: start;
    justify-content: stretch;
    gap: 2px;
    max-height: calc(100dvh - var(--header-height) - 24px);
    padding: 10px;
    overflow-y: auto;
    background: var(--header-bg);
    border: 1px solid var(--header-line);
    border-radius: 16px;
    box-shadow: 0 18px 46px rgba(6, 17, 31, .25);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(.98);
    transform-origin: top right;
    transition: opacity 160ms ease, transform 180ms ease, visibility 180ms ease;
  }
  .design-v2 .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
  .design-v2 .site-nav a { padding: 12px 14px; }
  .design-v2 .site-nav a::after { display: none; }
}
@media (max-width: 1080px) {
  /* The dropdown leaves the grid: keep exactly two columns at every menu width. */
  .design-v2 .header-inner {
    position: relative;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .design-v2 .header-actions { justify-self: end; gap: 6px; }
  .design-v2 .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(320px, calc(100vw - 36px));
  }
  .design-v2 .header-cta { display: none; }
  .design-v2 .header-actions > .language-switcher {
    display: inline-flex;
    gap: 0;
    padding: 2px;
    background: #fff;
    border: 1px solid var(--header-line);
    border-radius: 7px;
  }
  .design-v2 .header-actions > .language-switcher a {
    min-width: 31px;
    min-height: 38px;
    padding: 0 5px;
    border-radius: 5px;
    font-size: 12px;
  }
  .design-v2 .header-actions > .language-switcher a[aria-current="true"] {
    background: #f0f4f8;
    box-shadow: none;
  }
  .design-v2 .nav-language { display: none; }
  .design-v2 .nav-toggle { width: 44px; height: 44px; }
}
@media (max-width: 900px) {
  .design-v2 { --header-height: 76px; }
  .design-v2 .header-inner { min-height: 76px; }
  .design-v2 .brand { min-width: 0; }
  .design-v2 .brand img { width: 150px; }
  .design-v2 .site-nav a:hover, .design-v2 .site-nav a:focus-visible,
  .design-v2 .site-nav a[aria-current="page"] { background: #f0f4f8; }
  .unified-hero { grid-template-columns: 1fr; gap: 28px; padding: 28px 24px; }
  .unified-hero-media { order: 0; max-width: 680px; justify-self: center; }
  .unified-hero-inner { max-width: 680px; justify-self: center; }
  .unified-hero h1 { font-size: 46px; }
  .hero-routes { gap: 16px; }
  .hero-route { padding-inline: 16px; }
  .hero-route strong { font-size: 20px; }
  .homepage-v2 .trust-item { padding-inline: 12px; gap: 9px; }
  .homepage-v2 .action-bar { display: flex; }
  .hero-quick-contact { display: none; }
  .homepage-v2 .action-bar-item { width: 44px; height: 44px; min-height: 44px; }
}
@media (max-width: 640px) {
  .homepage-v2 .container { width: calc(100% - 36px); }
  .design-v2 .brand img { width: 142px; }
  .design-v2 .footer-brand .footer-brand-logo { width: 184px; }
  .unified-hero { padding: 18px 18px 14px; gap: 24px; }
  .homepage-v2 .unified-hero-inner { width: 100%; }
  .unified-hero h1 { font-size: clamp(32px, 9.3vw, 42px); line-height: 1.05; }
  .unified-hero h1 > span { max-width: 360px; }
  .unified-hero h1 strong { margin-top: 7px; font-size: .70em; }
  .unified-hero-copy > p { margin-top: 16px; font-size: 15px; line-height: 1.5; }
  .hero-routes { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
  .hero-route { min-height: 72px; padding: 12px 4px; }
  .hero-route strong { font-size: 19px; }
  .hero-route small { margin-top: 3px; font-size: 13px; line-height: 1.3; }
  .hero-route .icon { width: 24px; height: 24px; flex-basis: 24px; }
  /* Auf den Detailseiten wird das Foto zum eigentlichen mobilen Einstieg:
     erst Bild und Titel, anschließend Erklärung, Aktionen und Nachweise. */
  .design-v2 .page-hero-grid { display: flex; flex-direction: column; }
  .design-v2 .page-hero-media {
    order: -1;
    width: calc(100% - 36px);
    height: clamp(330px, 96vw, 390px);
    min-height: 0;
    margin: 18px 18px 0;
    border-radius: 12px;
  }
  .design-v2 .page-hero-media::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 38% 0 0;
    background: linear-gradient(0deg, rgba(5, 14, 26, .9), rgba(5, 14, 26, .55) 48%, transparent);
    pointer-events: none;
  }
  .design-v2 .mobile-hero-title {
    display: block;
    position: absolute;
    z-index: 2;
    right: 20px;
    bottom: 22px;
    left: 20px;
    color: #fff;
    font-size: clamp(1.75rem, 8vw, 2.35rem);
    font-weight: 750;
    line-height: 1.03;
    letter-spacing: -.04em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .55);
  }
  .design-v2 .page-hero-copy { padding-top: 28px; }
  .design-v2 .page-hero-copy > .eyebrow { margin-bottom: 12px; }
  .design-v2 .page-hero-copy > h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .design-v2 .security-hero .page-hero-copy .button-secondary[href^="tel:"] {
    display: none;
  }
  .homepage-v2 .trust-grid { width: calc(100% - 24px); }
  .homepage-v2 .trust-item { min-height: 76px; padding: 14px 7px; gap: 6px; }
  .homepage-v2 .trust-item strong { font-size: 10px; line-height: 1.35; overflow-wrap: normal; }
  .homepage-v2 .trust-icon { width: 21px; height: 24px; flex-basis: 21px; }
  .homepage-v2 .trust-icon .icon { width: 21px; height: 24px; }
  /* Im Hero sind Kontakte im normalen Fluss, erst danach schweben sie. */
  .homepage-v2 .action-bar { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 360px) {
  .homepage-v2 .container { width: calc(100% - 28px); }
  .design-v2 .brand img { width: 122px; }
  .design-v2 .header-cta { padding-inline: 9px; font-size: 12px; }
}
@media (max-width: 640px) and (max-height: 700px) {
  .unified-hero-media { height: 210px; }
  .unified-hero-inner { padding-top: 202px; padding-bottom: 14px; }
  .unified-hero h1 { font-size: 32px; }
  .unified-hero-copy > p { margin-top: 12px; font-size: 14px; }
  .hero-routes { margin-top: 18px; gap: 9px; }
  .hero-route { min-height: 64px; padding-block: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-route, .hero-route .icon { transition: none; }
}

/* Dedicated terrace and garden-house entry points, 2026-09-27. */
.design-v2 .outdoor-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.design-v2 .project-service-link > a { display: block; height: 100%; }
.design-v2 .project-service-link > a:focus-visible { outline: 3px solid #5d3a1c; outline-offset: -3px; }
.design-v2 .project-service-link .project-label { pointer-events: none; }
.design-v2 .project-service-details { display: block; margin-top: 0.75rem; }
.design-v2 .service-item .text-link { display: inline-block; margin-top: 0.8rem; }
@media (max-width: 700px) { .design-v2 .outdoor-services { grid-template-columns: 1fr; } }


/* Keep mobile service links in the text column beside the icon. */
@media (max-width: 640px) {
  .design-v2 .service-item > .text-link { grid-column: 2; min-width: 0; margin-top: 0; }
}
