/* ============================================================
   KLEMPNEREI MEHLER – style.css
   Design: Industriell-präzise, Schwarz/Weiß + Zinkgrau-Akzent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=Barlow:wght@300;400;500;600&display=swap');

/* ---- Variables ---- */
:root {
  --black:       #0a0a0a;
  --black-2:     #111111;
  --black-3:     #1a1a1a;
  --dark:        #222222;
  --mid:         #444444;
  --muted:       #888888;
  --light:       #cccccc;
  --white:       #ffffff;
  --zinc:        #6b7a8d;    /* Zinkgrau – der einzige Farbakzent */
  --zinc-light:  #8fa0b4;
  --zinc-dark:   #4a5568;
  --border:      rgba(255,255,255,0.08);
  --border-light:rgba(0,0,0,0.1);
  --max-w:       1400px;
  --radius:      2px;
  --tr:          0.28s ease;
  --shadow:      0 4px 24px rgba(0,0,0,0.18);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Barlow', sans-serif;
  font-size: 18px;
  line-height: 1.75;
  color: var(--dark);
  background: var(--white);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--zinc); text-decoration: none; transition: color var(--tr); }
a:hover { color: var(--zinc-dark); }
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }

/* ---- Container ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- Section ---- */
.section { padding: 5rem 0; }
.section--dark {
  background: var(--black-2);
  color: var(--light);
}
.section--dark h2,
.section--dark h3 { color: var(--white); }
.section--dark p { color: var(--light); }
.section--grey { background: #f4f4f4; }

.sec-head { margin-bottom: 3rem; }
.sec-label {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--zinc);
  margin-bottom: 0.6rem;
}
.sec-head h2 { margin-bottom: 0.5rem; }
.sec-rule {
  width: 40px; height: 3px;
  background: var(--zinc);
  margin-top: 0.8rem;
}
.sec-rule--center { margin: 0.8rem auto 0; }

/* ====================================================
   HEADER
   ==================================================== */
#site-header {
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 900;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo text-based (no image needed) */
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo__name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}
.logo__sub {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--zinc);
  font-weight: 600;
}
.logo__year {
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-top: 1px;
}

#main-nav ul {
  display: flex;
  gap: 0.1rem;
  align-items: center;
}
#main-nav a {
  color: var(--light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  transition: background var(--tr), color var(--tr);
}
#main-nav a:hover { background: var(--dark); color: var(--white); }
#main-nav a.active-nav { color: var(--zinc); }

.nav-cta {
  background: var(--zinc) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.1rem !important;
}
.nav-cta:hover { background: var(--zinc-dark) !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--light); border-radius: 1px;
  transition: all var(--tr);
}

/* ====================================================
   HERO
   ==================================================== */
#hero {
  position: relative;
  width: 100%;
  height: 88vh;
  min-height: 500px;
  max-height: 900px;
  overflow: hidden;
  background: var(--black);
}
#hero img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  opacity: 0.55;
}
.hero-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  padding-bottom: 5rem;
}
.hero-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}
.hero-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--zinc);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px; height: 2px;
  background: var(--zinc);
}
.hero-title {
  color: var(--white);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  max-width: 800px;
}
.hero-title span { color: var(--zinc); }
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  max-width: 480px;
  margin-bottom: 2rem;
  font-weight: 300;
  letter-spacing: 0.02em;
}
.hero-badges {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-badge {
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--zinc);
  padding-left: 0.8rem;
}
.hero-badge__num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.hero-badge__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--zinc);
  font-weight: 600;
}

/* ====================================================
   LEISTUNGEN
   ==================================================== */
.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.leistung-card {
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--tr), transform var(--tr);
}
.leistung-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.leistung-card img {
  width: 100%; height: 200px;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter var(--tr);
}
.leistung-card:hover img { filter: grayscale(0%); }
.leistung-card__body {
  padding: 1.4rem 1.5rem 1.8rem;
}
.leistung-card__icon {
  width: 36px; height: 36px;
  background: var(--zinc);
  margin-bottom: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1rem;
}
.leistung-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  color: var(--black);
}
.leistung-card p {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.65;
}

/* ====================================================
   ZAHLEN / STATS
   ==================================================== */
.stats-bar {
  background: var(--black);
  padding: 3.5rem 0;
}
.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.stat-item {
  text-align: center;
  border-right: 1px solid var(--border);
  padding: 0 1.5rem;
}
.stat-item:last-child { border-right: none; }
.stat-item__num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-item__num span { color: var(--zinc); }
.stat-item__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 600;
}

/* ====================================================
   ÜBER UNS
   ==================================================== */
.ueber-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.ueber-text p {
  color: #444;
  margin-bottom: 1.2rem;
  font-size: 1rem;
}
.ueber-list {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.ueber-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: #333;
  font-weight: 500;
}
.ueber-list li::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--zinc);
  flex-shrink: 0;
}
.ueber-img {
  position: relative;
}
.ueber-img img {
  width: 100%; height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  filter: grayscale(15%);
}
.ueber-img::before {
  content: 'SEIT\A1927';
  white-space: pre;
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: var(--zinc);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1.2rem 1.5rem;
  line-height: 1.3;
  z-index: 1;
}

/* ====================================================
   GALERIE
   ==================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.gallery-grid .gallery-item:nth-child(1),
.gallery-grid .gallery-item:nth-child(6) {
  grid-column: span 2;
}
.gallery-item {
  position: relative; overflow: hidden;
  cursor: pointer; background: var(--black);
  aspect-ratio: 1;
}
.gallery-item:nth-child(1),
.gallery-item:nth-child(6) { aspect-ratio: 2/1; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(30%);
  transition: transform .5s ease, filter .4s ease, opacity .4s ease;
}
.gallery-item:hover img {
  transform: scale(1.07);
  filter: grayscale(0%);
  opacity: 0.85;
}
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: rgba(255,255,255,0.9);
  font-size: 0.78rem; letter-spacing: 0.06em;
  text-transform: uppercase; font-weight: 600;
  padding: 2rem 1rem 0.8rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* ====================================================
   KONTAKT
   ==================================================== */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.kontakt-info h2 { color: var(--white); margin-bottom: 0.5rem; }
.kontakt-info .sec-rule { margin-bottom: 2rem; }
.kontakt-data {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.kontakt-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.kontakt-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--zinc);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 0.95rem;
}
.kontakt-row p { color: var(--light); font-size: 0.95rem; line-height: 1.5; }
.kontakt-row a { color: var(--zinc-light); font-weight: 600; }
.kontakt-row a:hover { color: var(--white); }

.kontakt-right {
  padding: 2.5rem;
  background: var(--dark);
  border: 1px solid var(--border);
}
.kontakt-right h3 { color: var(--white); margin-bottom: 1.2rem; font-size: 1.1rem; }
.kontakt-right p { color: var(--light); font-size: 0.9rem; line-height: 1.7; margin-bottom: 0.8rem; }
.kontakt-highlight {
  border-left: 3px solid var(--zinc);
  padding-left: 1rem;
  margin-top: 1.5rem;
}
.kontakt-highlight p { color: var(--muted); font-size: 0.85rem; }

/* ====================================================
   FOOTER
   ==================================================== */
#site-footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 0;
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand .logo { margin-bottom: 1.2rem; }
.footer-brand p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 320px;
}
.footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--zinc);
  margin-bottom: 1.1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { color: var(--muted); font-size: 0.88rem; transition: color var(--tr); }
.footer-col a:hover { color: var(--white); }
.footer-col li { color: var(--muted); font-size: 0.88rem; }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #555;
}
.footer-bottom a { color: #555; margin-left: 1.2rem; transition: color var(--tr); }
.footer-bottom a:hover { color: var(--light); }

/* ====================================================
   LIGHTBOX
   ==================================================== */
#lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999; align-items: center; justify-content: center; flex-direction: column;
}
#lightbox.open { display: flex; }
#lightbox img {
  max-width: 90vw; max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 0 60px rgba(0,0,0,0.8);
}
#lightbox-caption {
  color: var(--muted); margin-top: 0.8rem;
  font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.1em; text-align: center;
}
#lightbox-close {
  position: fixed; top: 1.2rem; right: 1.6rem;
  background: none; border: none;
  color: var(--muted); font-size: 2rem; cursor: pointer;
  line-height: 1; transition: color var(--tr);
}
#lightbox-close:hover { color: var(--white); }
.lb-btn {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  color: var(--muted); font-size: 1.6rem;
  width: 50px; height: 50px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background var(--tr), color var(--tr);
}
.lb-btn:hover { background: var(--zinc); color: var(--white); }
#lb-prev { left: 1.5rem; }
#lb-next { right: 1.5rem; }

/* ====================================================
   LEGAL OVERLAYS
   ==================================================== */
.legal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 8000; align-items: flex-start; justify-content: center;
  padding: 2rem 1rem; overflow-y: auto;
}
.legal-overlay.open { display: flex; }
.legal-box {
  background: var(--white); color: var(--dark);
  padding: 2.5rem 3rem; max-width: 760px; width: 100%;
  position: relative; margin: auto;
}
.legal-box h2 { margin-bottom: 1.2rem; color: var(--black); }
.legal-box h3 { margin: 1.4rem 0 .5rem; font-size: 0.95rem; color: var(--black); }
.legal-box p, .legal-box li { font-size: 0.88rem; line-height: 1.75; color: #555; }
.legal-close {
  position: absolute; top: 1rem; right: 1.2rem;
  background: none; border: none; font-size: 1.8rem;
  cursor: pointer; color: #999; line-height: 1;
}
.legal-close:hover { color: var(--black); }

/* ====================================================
   SCROLL TOP
   ==================================================== */
#scroll-top {
  position: fixed; bottom: 1.8rem; right: 1.8rem;
  width: 44px; height: 44px;
  background: var(--zinc); color: var(--white); border: none;
  cursor: pointer; font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  opacity: 0; pointer-events: none;
  transition: opacity var(--tr), background var(--tr);
  z-index: 500;
}
#scroll-top.visible { opacity: 1; pointer-events: auto; }
#scroll-top:hover { background: var(--zinc-dark); }

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 1100px) {
  .leistungen-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid .gallery-item:nth-child(1),
  .gallery-grid .gallery-item:nth-child(6) { grid-column: span 1; aspect-ratio: 1; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; }
  .stat-item:nth-child(2n) { border-bottom-color: transparent; }
}
@media (max-width: 900px) {
  .ueber-grid { grid-template-columns: 1fr; gap: 3rem; }
  .ueber-img::before { left: 0; bottom: -1rem; }
  .kontakt-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  #main-nav {
    display: none; position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--black-2);
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border);
  }
  #main-nav.open { display: block; }
  #main-nav ul { flex-direction: column; gap: 0.2rem; }
  #main-nav a { display: block; padding: .6rem .8rem; }
  .hamburger { display: flex; }
  .leistungen-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .hero-badges { gap: 1.2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
  .legal-box { padding: 2rem 1.5rem; }
  #hero { height: 75vh; }
  .hero-title { font-size: clamp(2.2rem,10vw,4rem); }
}
@media (max-width: 440px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr; }
}
