/* ==========================================================================
   H. Vollmer Leichtmetallbau GmbH – statische Version
   Maße und Abstände orientieren sich 1:1 am bisherigen WordPress-Theme.
   ========================================================================== */

/* ---------- Fonts (lokal gehostet, keine Verbindung zu Google) ---------- */
@font-face { font-family: "Open Sans"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/open-sans-300.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/open-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/open-sans-600.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/open-sans-700.woff2") format("woff2"); }
@font-face { font-family: "Libre Baskerville"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/libre-baskerville-400.woff2") format("woff2"); }
@font-face { font-family: "Libre Baskerville"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/libre-baskerville-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Libre Baskerville"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/libre-baskerville-700.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --blue: #1f9ed2;
  --blue-2: #27a0d8;
  --blue-3: #1f9ed9;
  --green: #a3cf5c;
  --text: #333;
  --heading: #212121;
  --muted: #999;
  --light: #f5f5f5;
  --line: #ddd;
  --serif: "Libre Baskerville", Georgia, serif;
  --sans: "Open Sans", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.42857;
  color: var(--text);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-2); text-decoration: none; transition: color .5s ease-in; }
a:hover { color: var(--heading); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; }
p { margin: 0 0 10px; }

/* Bootstrap-3-Containerbreiten wie im Original */
.container { width: 100%; margin: 0 auto; padding: 0 15px; }
@media (min-width: 768px)  { .container { width: 750px; } }
@media (min-width: 992px)  { .container { width: 970px; } }
@media (min-width: 1200px) { .container { width: 1170px; } }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* ---------- Banner / Header ---------- */
.banner {
  position: relative;
  min-height: 750px;
  padding: 3em 0 0;
  background: #0d1a33 0 0 / cover no-repeat;
  color: #fff;
}
.banner > .container { position: relative; }

.header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.logo img { width: 210px; }
.mail-phone ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 36px; flex-wrap: wrap;
}
.mail-phone li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.mail-phone a { color: #fff; transition: color .5s ease-in; }
.mail-phone a:hover { color: var(--green); }
.mail-phone img { width: 156px; }

/* Kreis-Navigation */
.nav { margin-top: 160px; }
.nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 20px;
}
.nav a {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  color: #fff;
  font-family: var(--serif);
  font-size: 16px;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
}
.nav a::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--blue);
  transform: scale(0);
  transition: transform .3s ease-out;
  z-index: -1;
}
.nav a:hover::before, .nav a:focus-visible::before { transform: scale(1); }
.nav a:hover { color: #fff; }

/* Seitentitel auf Unterseiten */
.page-title {
  width: 500px;
  max-width: 100%;
  margin: 244px auto 0;
  text-align: center;
}
.page-title h1 { font-size: 36px; line-height: 50px; color: #fff; }

/* ---------- Section headings (mit „X“-Trenner wie p.qui im Original) ---------- */
.section { padding: 4em 0; }
#about { padding: 0; }
.section--light { background: var(--light); }
.section-head { text-align: center; margin-bottom: 3em; }
.section-head h3 { font-size: .7rem; color: var(--heading); }
.section-head p { font-size: 14px; color: var(--muted); margin: .5em 0 0; }
.divider {
  position: relative;
  height: 2em;
}
.divider::before, .divider::after,
.divider span::before, .divider span::after {
  content: ""; position: absolute; bottom: 0; height: 1px; background: var(--green);
}
.divider::before { left: 33%; width: 15%; }
.divider::after { right: 33%; width: 15%; }
.divider span::before { left: 48.5%; width: 3%; transform: rotate(45deg); }
.divider span::after { right: 48.5%; width: 3%; transform: rotate(-45deg); }

/* ---------- Über uns ---------- */
.about-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
.about-row + .about-row { margin-top: 30px; }
.about-text {
  padding: 6em 0 0 2em;
  text-align: center;
}
.about-text h3 { font-size: 1.3em; color: var(--blue); }
.about-text h3 span {
  display: block;
  font-size: 1.4em;
  color: var(--heading);
  margin-top: .5em;
}
.about-text .info-icon { display: block; color: var(--green); width: 24px; height: 24px; margin: 24px auto; }
.about-text p { font-size: 14px; line-height: 1.8em; color: var(--muted); }

.about-image {
  position: relative;
  height: 430px;
  background: 0 0 / cover no-repeat;
  overflow: hidden;
}
.about-row:not(.about-row--reverse) .about-image { margin-left: 15px; }
.about-row--reverse .about-image { margin-left: 15px; }
/* Blaues Eck-Dreieck, das sich beim Hover über das Bild ausbreitet */
.about-image .corner {
  position: absolute; inset: 0;
  background: #1f9ed9;
  opacity: .95;
  clip-path: polygon(100% calc(100% - 100px), 100% 100%, calc(100% - 100px) 100%);
  transition: clip-path .5s ease-out;
}
.about-image .corner span {
  position: absolute; right: 15px; bottom: 15px;
  color: #fff; font-size: 1em;
  transition: opacity .5s ease-out;
}
.about-image .overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 3em 3em 7em;
  text-align: center;
  color: #fff;
  opacity: 0;
  z-index: 1;
  transition: opacity .3s ease-out;
}
.about-image .overlay h2 {
  font-size: 2em;
  margin-bottom: 1em;
  padding-bottom: 12px;
  border-bottom: 1px solid #333;
}
.about-image .overlay p { font-size: 14px; line-height: 1.8em; color: #fff; }
.about-image:hover .corner,
.about-image:focus-within .corner,
.about-image.is-open .corner {
  clip-path: polygon(100% calc(100% - 515px), 100% 100%, calc(100% - 776px) 100%);
}
.about-image:hover .corner span,
.about-image:focus-within .corner span,
.about-image.is-open .corner span { opacity: 0; }
.about-image:hover .overlay,
.about-image:focus-within .overlay,
.about-image.is-open .overlay { opacity: 1; transition-delay: .3s; }
.about-image button {
  position: absolute; inset: 0; width: 100%; z-index: 2;
  background: none; border: 0; cursor: pointer;
}

/* ---------- Leistungen ---------- */
#services { padding-bottom: 0; }
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3em 0;
}
.service {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0;
  align-items: start;
  min-height: 198px;
}
.service--right { grid-template-columns: 1fr 2fr; }
.service-text { text-align: right; padding: 0 15px; }
.service--right .service-text { text-align: left; }
.service h4 { font-size: 1.2em; color: var(--blue-2); margin-bottom: 1em; transition: color .5s ease-in; }
.service p { font-size: 14px; line-height: 1.8em; color: var(--muted); }
.service .more { font-size: 14px; }
.service-img {
  width: 100px; height: 100px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid #5c5b5b;
  background: var(--light);
}
.service-img img { width: 100%; height: 100%; object-fit: cover; }
.service:hover h4 { color: var(--green); }

/* ---------- Referenzen / Galerie ---------- */
#referenzen > .container > .section-head { margin-bottom: 0; }
.gallery-group + .gallery-group { margin-top: 20px; }
.gallery-group .section-head { margin: 7px 0 20px; }
.gallery-group .section-head h3 { font-family: var(--sans); font-size: 14px; line-height: 20px; color: var(--muted); }
.gallery-group .divider { height: 28px; }
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.gallery a {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(0,0,0,.3);
}
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s ease-in-out;
}
.gallery a::after {
  content: attr(data-title);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 1em;
  text-align: center;
  color: #fff; font-size: 16px;
  background: rgba(0,0,0,.3);
  opacity: 0;
  transition: opacity .45s ease-in-out;
}
.gallery a:hover img { transform: scale(1.08); }
.gallery a:hover::after, .gallery a:focus-visible::after { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(10,10,10,.92);
  padding: 60px 70px;
}
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; text-align: center; max-width: 100%; max-height: 100%; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 160px); margin: 0 auto; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox figcaption { color: #fff; margin-top: 14px; font-size: 15px; }
.lightbox figcaption small { display: block; color: #aaa; font-size: 12px; margin-top: 4px; }
.lightbox button {
  position: absolute;
  background: rgba(255,255,255,.1);
  border: 0; color: #fff; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lightbox button:hover { background: var(--blue); }
.lightbox button svg { width: 22px; height: 22px; fill: currentColor; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Team ---------- */
#team .section-head { margin-bottom: 0; }
.team-photo { width: 100%; max-width: 720px; margin: 7px auto 0; }
#team .divider { margin-bottom: 20px; }
.team-members {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 733px;
  margin: 20px auto 0;
}
.member { text-align: center; padding: 0 15px 15px; margin: 10px 0; }
.member h4 { font-size: 1.2em; color: var(--blue-2); margin: 1em 0 .5em; }
.member .role { font-size: 14px; color: var(--muted); margin-bottom: 32px; }
.member dl { display: inline-grid; grid-template-columns: auto auto; gap: 0 6px; text-align: left; margin: 0; font-size: 16px; }
.member dt { color: var(--heading); }
.member dd { margin: 0; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; }
.contact-grid > * { padding: 0 15px; }
.contact-grid--split { grid-template-columns: 1fr 2fr; }
.contact h4.contact-title { font-size: 1.5em; color: var(--blue-3); margin-bottom: 48px; }
.contact-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap;
}
.contact-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 1em;
  align-items: center;
  align-content: start;
  min-width: 250px;
  margin-bottom: 1em;
  color: var(--heading);
  font-size: 1.1em;
}
.contact-list li:first-child { min-width: 330px; }
.contact-grid--split .contact-list { display: block; }
.contact-grid--split .contact-list li { min-width: 0; }
.contact-list .ci {
  width: 40px; height: 40px;
  border-radius: 60%;
  border: 1px solid var(--muted);
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
}
.contact-list .ci svg { width: 14px; height: 14px; fill: currentColor; }
.contact-list span:not(.ci), .contact-list a { grid-column: 2; font-size: 14px; line-height: 1.8em; color: var(--muted); }
.contact-list a:hover { color: var(--blue); }
.contact-note { font-size: 14px; color: var(--text); line-height: 20px; }

/* Karte (2-Klick-Lösung) */
.map { position: relative; height: 450px; background: #e5e3df; }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-consent {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  padding: 2em 16px;
  text-align: center;
  color: #fff;
  background: linear-gradient(rgba(20,30,45,.75), rgba(20,30,45,.75)), url("../images/gallery/moderne_architektur_mit_dach_und_wandelementen_31_1.jpg") center / cover;
}
.map-consent p { max-width: 560px; font-size: 14px; margin: 0; color: #ddd; }
.map-consent a { color: #fff; text-decoration: underline; }
.btn {
  display: inline-block;
  padding: .75em 1.8em;
  border: 0; border-radius: 3px;
  background: var(--blue);
  color: #fff;
  font: 600 14px var(--sans);
  cursor: pointer;
  transition: background .3s;
}
.btn:hover { background: var(--heading); color: #fff; }

/* ---------- Artikel (Unterseiten) ---------- */
.article { padding-top: 30px; padding-bottom: 30px; }
.article p { font-size: 14px; line-height: 20px; color: var(--text); margin: 0; }
.article p + p { margin-top: 10px; }
.article h2 { font-size: 1.2em; font-weight: 500; color: var(--text); margin: 30px 0 10px; }
.article ul { padding: 0; margin: 0; }
.article li { line-height: 2em; margin-left: 20px; }
.article a { word-break: break-word; color: #337ab7; }
.article a:hover { color: #23527c; }
/* „Weitere Artikel“ (z. B. Montage) zweispaltig wie im Original */
.article--columns { min-height: 430px; }
.article--columns p { column-count: 2; column-gap: 30px; padding: 20px; }
.article--columns p + p { margin-top: 0; }
.imprint dl { display: grid; grid-template-columns: max-content 1fr; gap: 0 1.5em; font-size: 14px; line-height: 20px; margin: 10px 0 0; }
.imprint dt { font-weight: 600; }
.imprint dd { margin: 0; }

/* ---------- Footer ---------- */
.footer { padding: 4em 0 0; text-align: center; line-height: 1.42857; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 0 2em; flex-wrap: wrap; }
.footer-links a { color: var(--heading); text-transform: uppercase; font-size: 1em; }
.footer-links a:hover { color: var(--blue-2); }
.footer address {
  font-style: normal;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.5em;
  color: var(--muted);
  margin-top: 2em;
  display: flex; flex-direction: column; align-items: center;
}
.footer address span { display: inline-flex; align-items: center; gap: 1.5em; }
.footer address .phone { margin: .5em 0 1em; }
.footer address .icon { width: 12px; height: 12px; }
.footer address a { display: inline-flex; align-items: center; gap: 1.5em; color: var(--heading); }
.footer address a:hover { color: var(--muted); }
.footer address .phone a { color: var(--muted); }
.copy-right { border-top: 1px solid var(--line); margin-top: 3em; padding: 3em 0 4em; text-align: center; }
.copy-right p { margin: 0; font-size: 14px; color: var(--muted); }

/* To-top */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue); color: #fff;
  opacity: 0; pointer-events: none;
  transition: opacity .3s, background .3s;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--heading); color: #fff; }
.to-top svg { width: 18px; height: 18px; fill: currentColor; }

/* Einblend-Animation */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s, transform .8s; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .about-text { padding: 3em 1.5em 0; }
  .services-grid { grid-template-columns: 1fr; }
  .service, .service--right { grid-template-columns: 110px 1fr; min-height: 0; }
  .service .service-img { order: -1; margin: 0; }
  .service-text { text-align: left; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .team-members { width: 100%; }
  .nav a { width: 120px; height: 120px; font-size: 13px; }
}

@media (max-width: 767px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .banner { min-height: 0; padding-bottom: 3em; background-position: center; }
  .banner::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.25); pointer-events: none; }
  .banner--home { min-height: 90vh; }
  .header { flex-direction: column; align-items: center; text-align: center; }
  .mail-phone ul { justify-content: center; gap: 12px 24px; }
  .nav { margin-top: 3em; }
  .nav ul { gap: 14px; }
  .nav a { width: 96px; height: 96px; font-size: 10px; }
  .page-title { margin-top: 4em; }
  .page-title h1 { font-size: 26px; line-height: 1.4; text-shadow: 0 2px 12px rgba(0,0,0,.7); }
  .banner--sub { padding-bottom: 5em; }
  .about-row { grid-template-columns: 1fr; }
  .about-row--reverse .about-image { order: 2; }
  .about-row .about-image { margin-left: 0 !important; height: 320px; margin-top: 2em; }
  .about-text { padding: 2.5em 1em 0; }
  .about-image .overlay { padding: 1.5em 1.5em 5em; }
  .about-image .overlay h2 { font-size: 1.4em; }
  .section { padding: 3.5em 0; }
  .team-members { grid-template-columns: 1fr; }
  .contact-grid--split { grid-template-columns: 1fr; }
  .contact-list li, .contact-list li:first-child { min-width: 100%; }
  .contact-note { margin-top: 1em; }
  .article--columns p { column-count: 1; padding: 0; }
  .article--columns p + p { margin-top: 10px; }
  .lightbox { padding: 60px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .imprint dl { grid-template-columns: 1fr; }
  .imprint dd { margin-bottom: .6em; }
}
