/* Regionale Leistungsseiten: echte Projektfotos als visuelle Hero-Ergaenzung. */
html:has(link[rel="canonical"][href*="/metallbau/"]) main > section:first-child > div:nth-child(2) {
  position: relative;
  display: flex;
  align-self: stretch;
  min-height: 30rem;
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: #121516;
  background-position: center;
  background-size: cover;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

html:has(link[rel="canonical"][href*="/metallbau/"]) main > section:first-child > div:nth-child(2)::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(7, 9, 10, 0.04) 30%, rgba(7, 9, 10, 0.9) 100%);
  pointer-events: none;
}

html:has(link[rel="canonical"][href*="/metallbau/"]) main > section:first-child > div:nth-child(2) > .metal-panel {
  position: relative;
  z-index: 1;
  width: calc(100% - 2rem);
  margin: 1rem;
  background: rgba(13, 16, 17, 0.84);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

html:has(link[rel="canonical"][href$="/metallbau/uder/"]) main > section:first-child > div:nth-child(2) {
  --city-image: url("/projects/region-m8.webp");
  background-image: url("/projects/region-m8.webp");
}

html:has(link[rel="canonical"][href$="/metallbau/eichsfeld/"]) main > section:first-child > div:nth-child(2) {
  --city-image: url("/projects/region-m9.webp");
  background-image: url("/projects/region-m9.webp");
}

html:has(link[rel="canonical"][href$="/metallbau/heilbad-heiligenstadt/"]) main > section:first-child > div:nth-child(2) {
  --city-image: url("/projects/region-m4.webp");
  background-image: url("/projects/region-m4.webp");
}

html:has(link[rel="canonical"][href$="/metallbau/goettingen/"]) main > section:first-child > div:nth-child(2) {
  --city-image: url("/projects/region-m3.webp");
  background-image: url("/projects/region-m3.webp");
}

html:has(link[rel="canonical"][href$="/metallbau/kassel/"]) main > section:first-child > div:nth-child(2) {
  --city-image: url("/projects/region-m7.webp");
  background-image: url("/projects/region-m7.webp");
}

html:has(link[rel="canonical"][href$="/metallbau/eschwege/"]) main > section:first-child > div:nth-child(2) {
  --city-image: url("/projects/region-m6.webp");
  background-image: url("/projects/region-m6.webp");
}

html:has(link[rel="canonical"][href$="/metallbau/muehlhausen/"]) main > section:first-child > div:nth-child(2) {
  --city-image: url("/projects/region-m1.webp");
  background-image: url("/projects/region-m1.webp");
}

html:has(link[rel="canonical"][href$="/metallbau/eisenach/"]) main > section:first-child > div:nth-child(2) {
  --city-image: url("/projects/region-m2.webp");
  background-image: url("/projects/region-m2.webp");
}

@media (max-width: 1023px) {
  html:has(link[rel="canonical"][href*="/metallbau/"]) main > section:first-child > div:nth-child(2) {
    min-height: 26rem;
  }

  body > main {
    padding-top: 3rem;
  }

  .mobile-nav-direct {
    position: fixed;
    z-index: 55;
    top: 5rem;
    right: 0;
    left: 0;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 12, 13, 0.97);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .mobile-nav-direct a {
    display: flex;
    min-width: 0;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    color: #d7dcde;
    font-size: clamp(0.55rem, 2.5vw, 0.68rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.15;
    text-align: center;
    text-transform: uppercase;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(243, 183, 95, 0.2);
  }

  .mobile-nav-direct a:first-child {
    border-left: 0;
  }

  .mobile-nav-direct a:focus-visible,
  .mobile-nav-direct a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f3b75f;
  }
}

@media (min-width: 1024px) {
  .fallback-mobile-menu {
    display: none !important;
  }

  .mobile-nav-direct {
    display: none !important;
  }
}

@media (max-width: 639px) {
  html:has(link[rel="canonical"][href*="/metallbau/"]) main > section:first-child > div:nth-child(2) {
    display: block;
    min-height: 0;
    background-image: none;
  }

  html:has(link[rel="canonical"][href*="/metallbau/"]) main > section:first-child > div:nth-child(2)::before {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    background:
      linear-gradient(180deg, rgba(7, 9, 10, 0.02), rgba(7, 9, 10, 0.2)),
      var(--city-image) center / cover no-repeat;
  }

  html:has(link[rel="canonical"][href$="/metallbau/heilbad-heiligenstadt/"]) main > section:first-child > div:nth-child(2) {
    --city-image: url("/projects/region-m5.webp");
  }

  html:has(link[rel="canonical"][href*="/metallbau/"]) main > section:first-child > div:nth-child(2) > .metal-panel {
    width: 100%;
    margin: 0;
    padding: 1.25rem;
    border-width: 1px 0 0;
    background: rgba(18, 21, 22, 0.98);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* Zweiter Gestaltungsdurchgang: Stadt-Hero, Bewertungen, FAQ und Footer. */
.city-hero-title {
  max-width: 42rem;
  margin-top: 1.25rem;
  color: #fff;
  font-size: clamp(2.35rem, 3.2vw, 3.55rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 0.98;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: normal;
  hyphens: none;
}

.city-hero-subtitle {
  max-width: 39rem;
  margin-top: 1.15rem;
  color: #d7dcde;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1.45;
  overflow-wrap: normal;
  text-transform: uppercase;
  text-wrap: balance;
  word-break: normal;
  hyphens: none;
}

.trust-region-section {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.trust-region-intro {
  max-width: 64rem;
}

.trust-region-intro h2,
.section-heading-row h2 {
  max-width: 58rem;
  margin-top: 1.25rem;
  color: #fff;
  font-family: var(--font-display), Arial, sans-serif;
  font-size: clamp(2.25rem, 4.3vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 0.98;
  text-transform: uppercase;
  text-wrap: balance;
}

.trust-region-intro > p:last-of-type,
.section-heading-row > div > p:last-child {
  max-width: 52rem;
  margin-top: 1.5rem;
  color: #969fa3;
  font-size: 1.05rem;
  line-height: 1.9;
}

.city-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.city-chip-list a {
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: #d7dcde;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: 180ms ease;
}

.city-chip-list a:hover,
.city-chip-list a:focus-visible {
  border-color: rgba(242, 181, 92, 0.75);
  color: #fff;
}

.customer-reviews,
.faq-section {
  margin-top: 5.5rem;
}

.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.review-text-link {
  flex: 0 0 auto;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(242, 181, 92, 0.65);
  color: #f2b55c;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.review-card,
.faq-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    #111415;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
}

.review-card {
  min-height: 15rem;
  padding: 1.75rem;
}

.review-stars {
  color: #f2b55c;
  font-size: 1rem;
  letter-spacing: 0.18em;
}

.review-card blockquote {
  margin-top: 1.5rem;
  color: #f6f7f7;
  font-size: 1.08rem;
  line-height: 1.8;
}

.review-author {
  margin-top: 1.5rem;
  color: #f2b55c;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.review-note {
  margin-top: 0.55rem;
  color: #7e878b;
  font-size: 0.76rem;
  line-height: 1.5;
}

.review-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.review-primary-link {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  background: #f2b55c;
  color: #111415;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: 180ms ease;
}

.review-primary-link:hover,
.review-primary-link:focus-visible {
  background: #ffd087;
  transform: translateY(-1px);
}

.review-actions span {
  color: #7e878b;
  font-size: 0.78rem;
  line-height: 1.5;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.faq-card {
  padding: 1.6rem;
}

.faq-card h3 {
  color: #fff;
  font-family: var(--font-display), Arial, sans-serif;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  text-wrap: balance;
}

.faq-card p {
  margin-top: 0.9rem;
  color: #969fa3;
  font-size: 0.9rem;
  line-height: 1.75;
}

.site-footer {
  padding-top: 4.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #060707;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.8fr) minmax(0, 1.35fr) minmax(0, 0.95fr);
  gap: 3rem;
  align-items: start;
}

.site-footer-brand {
  color: #fff;
  font-family: var(--font-display), Arial, sans-serif;
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

.site-footer-copy {
  max-width: 26rem;
  margin-top: 1.1rem;
  color: #969fa3;
  font-size: 0.88rem;
  line-height: 1.8;
}

.footer-contact-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.4rem;
  color: #d7dcde;
  font-size: 0.86rem;
  line-height: 1.55;
}

.footer-contact-list a,
.site-footer-nav a,
.site-footer-bottom a {
  transition: color 160ms ease;
}

.footer-contact-list a:hover,
.footer-contact-list a:focus-visible,
.site-footer-nav a:hover,
.site-footer-nav a:focus-visible,
.site-footer-bottom a:hover,
.site-footer-bottom a:focus-visible {
  color: #f2b55c;
}

.site-footer-nav,
.site-footer-nav > nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.68rem;
  color: #969fa3;
  font-size: 0.84rem;
  line-height: 1.5;
}

.site-footer-heading {
  margin-bottom: 0.35rem;
  color: #f2b55c;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-region-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.68rem 1.25rem;
}

.site-footer-partner {
  margin-top: 1.35rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.site-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: #747d80;
  font-size: 0.75rem;
}

@media (max-width: 1100px) {
  .site-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .review-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .review-card {
    min-height: auto;
  }
}

@media (max-width: 639px) {
  .city-hero-title {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  .city-hero-subtitle {
    font-size: 0.95rem;
  }

  .trust-region-section {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .customer-reviews,
  .faq-section {
    margin-top: 4rem;
  }

  .review-actions,
  .site-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .review-primary-link {
    width: 100%;
  }

  .site-footer {
    padding-top: 3.5rem;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-region-links {
    grid-template-columns: 1fr;
  }
}

/* Kompaktere Startseite nach visueller Prüfung am 23.07.2026 */
.home-compact main > section:nth-of-type(2),
.home-compact main > section:nth-of-type(3),
.home-compact main > section:nth-of-type(4) {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

.home-compact .trust-region-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.home-compact .customer-reviews,
.home-compact .faq-section {
  margin-top: 3.5rem;
}

.home-compact main > section:nth-of-type(6) {
  padding-top: 3.5rem !important;
  padding-bottom: 3.5rem !important;
}

.site-footer {
  padding-top: 3rem;
}

.site-footer-bottom {
  margin-top: 2.75rem;
}

@media (min-width: 768px) {
  .home-compact main > section:nth-of-type(2),
  .home-compact main > section:nth-of-type(3),
  .home-compact main > section:nth-of-type(4) {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }

  .home-compact .trust-region-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .home-compact main > section:nth-of-type(6) {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }
}

/* Ruhigere Desktop-Ueberschriften nach Seitenvergleich am 23.07.2026 */
@media (min-width: 1024px) {
  .home-compact .hero-title {
    font-size: clamp(3.35rem, 3.55vw, 4.25rem) !important;
    line-height: 1.02;
  }

  .home-compact main > section:nth-of-type(2) h2.headline-balance,
  .home-compact main > section:nth-of-type(3) h2.headline-balance,
  .home-compact main > section:nth-of-type(4) h2 {
    font-size: 3.375rem !important;
    line-height: 1;
  }

  .home-compact .trust-region-intro h2,
  .home-compact .section-heading-row h2 {
    font-size: clamp(2.75rem, 3vw, 3.5rem);
    line-height: 1;
  }

  .home-compact main > section:nth-of-type(6) h2 {
    font-size: 3.25rem !important;
    line-height: 1;
  }

  body:not(.home-compact) h1.headline-balance {
    font-size: 3.375rem !important;
    line-height: 1;
  }
}

/* Lange Unterseiten-Ueberschriften ohne unruhige Worttrennung auf Mobilgeraeten */
@media (max-width: 639px) {
  body:not(.home-compact) h1.headline-balance {
    font-size: 2rem !important;
    line-height: 1;
  }
}
