/* ============================================================
   BEOO Werbung – statische OnePage
   Palette (Live computed): charcoal #3B3C3A · gold #D09902
   Font: Open Sans (lokal, assets/fonts/opensans.css)
   ============================================================ */

:root {
  --charcoal: #3b3c3a;
  --charcoal-dark: #2f302e;
  --grey: #707070;
  --grey-box: #7a7a7a;
  --gold: #d09902;
  --gold-dark: #b8850a;
  --light: #ececec;
  --light-2: #e2e2e2;
  --mid: #8a8a8a;
  --white: #ffffff;
  --text: #ffffff;
  --text-dark: #222222;
  --font: "Open Sans", Arial, Helvetica, sans-serif;
  --container: 1240px;
  --box: 1480px;
  --header-h: 140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: #232420;
  -webkit-font-smoothing: antialiased;
}

/* Boxed layout – zentrierter Content mit dunklem Rahmen (wie Live, etwas breiter) */
.site-box {
  max-width: var(--box); margin: 0 auto; background: var(--grey);
  box-shadow: 0 0 70px rgba(0,0,0,.55); overflow: hidden; position: relative;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-dark); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Section framework ---------- */
.section { padding: 70px 0; }
.section--charcoal { background: transparent; color: #fff; }
.section--light { background: var(--light); color: var(--text-dark); }
.section--gold { background: var(--gold); color: #fff; }
.section--slim { padding: 34px 0; }

.section-head { text-align: center; margin-bottom: 34px; }
h1, h2, h3, h4 { font-family: var(--font); margin: 0 0 .4em; }
h2.section-title {
  font-size: 40px; font-weight: 800; color: var(--gold);
  letter-spacing: .5px; margin: 0 0 10px;
}
.section--gold h2.section-title,
.section--charcoal.title-white h2.section-title { color: #fff; }
.divider-dots {
  color: inherit; opacity: .5; letter-spacing: 4px; font-size: 14px;
  margin: 4px 0 22px; text-align: center; line-height: 1;
}
.section-text { max-width: 900px; margin: 0 auto; }
.section-text p { margin: 0 0 14px; }
.section--gold .section-text, .section--charcoal .section-text { color: rgba(255,255,255,.92); }
.section--light .section-text { color: #333; }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding: 14px 0;
  background: var(--charcoal); transition: box-shadow .3s, padding .3s;
}
.header.scrolled {
  box-shadow: 0 2px 14px rgba(0,0,0,.4); padding: 8px 0;
}
/* Inhalt boxed (wie Original wrapper960), Hintergrund full-width */
.header-inner {
  max-width: var(--box); margin: 0 auto; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.header .brand { display: flex; align-items: center; text-decoration: none; }

/* ---- Logo (Original via Runware vektorisiert, inline SVG) ---- */
/* viewBox 2048x409, Kreis-Höhe ≈ .9 der Elementhöhe → --lh 124px ≈ 110px Kreis */
.logo-svg { --lh: 124px; height: var(--lh); width: auto; aspect-ratio: 2048/409; display: block; transition: height .3s; }
.header.scrolled .logo-svg { --lh: 92px; }

/* Buchstaben-Animation B → E → O → O beim Laden (Paths inkl. Counter je Buchstabe) */
.logo-svg .l { opacity: 0; transform-box: view-box; transform: translateY(30px) scale(.5); animation: beoo-in .42s cubic-bezier(.2,.8,.3,1.4) forwards; }
.logo-svg .l-b  { transform-origin: 66px 203px; animation-delay: .25s; }
.logo-svg .l-e  { transform-origin: 136px 204px; animation-delay: .48s; }
.logo-svg .l-o1 { transform-origin: 209px 204px; animation-delay: .71s; }
.logo-svg .l-o2 { transform-origin: 292px 205px; animation-delay: .94s; }
@keyframes beoo-in { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .logo-svg .l { opacity: 1; transform: none; animation: none; }
}

.nav-list { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  color: #fff; font-weight: 600; font-size: 15px; letter-spacing: .5px;
  text-transform: uppercase; padding: 6px 2px; position: relative;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--gold); transition: width .25s;
}
.nav-list a:hover { color: var(--gold); }
.nav-list a:hover::after { width: 100%; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent;
  cursor: pointer; padding: 10px; z-index: 1001;
}
.nav-toggle span { display: block; height: 3px; background: #fff; border-radius: 2px; transition: .3s; }
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); opacity: 0; visibility: hidden;
  transition: .3s; z-index: 890;
}
.nav-overlay.active { opacity: 1; visibility: visible; }

/* ---------- Hintergrundbild-Band: hoch, läuft nach unten in die BG-Farbe aus ---------- */
.slideshow-strip {
  margin-top: var(--header-h);
  height: 620px;
  background: var(--charcoal);
  position: relative; overflow: hidden;
}
/* Bild leicht geblurrt (AI-hochskaliert, --strip-img via Inline-Style) */
.slideshow-strip::before {
  content: ""; position: absolute; inset: -14px;
  background: var(--strip-img) center 30%/cover no-repeat;
  filter: blur(4px);
}
.slideshow-strip::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(35,36,32,0) 0%, rgba(35,36,32,0) 48%,
    rgba(35,36,32,.35) 72%, rgba(35,36,32,.85) 92%, #232420 100%);
}
/* site-box schiebt sich ins Bild, Fade endet auf Teaser-Höhe */
.slideshow-strip + .site-box { margin-top: -370px; }

/* ---------- Intro (volle Container-Breite) + Teaser (wie Original top1-Block) ---------- */
.intro { padding: 56px 0 66px; }
.intro-text { max-width: 1040px; margin: 0 auto 42px; text-align: center; }
.intro-text h1 { font-size: 39px; font-weight: 700; color: #fff; margin: 0 0 6px; }
.intro-text .divider-dots { margin: 6px 0 20px; }
.intro-text p { color: rgba(255,255,255,.92); margin: 0 0 12px; }

/* ---------- Leistungs-Teaser (5) ---------- */
.teaser-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
}
.hover-card { position: relative; overflow: hidden; background: #fff; cursor: pointer; margin: 0; }
.hover-card > img { width: 100%; display: block; transition: opacity .35s ease; }
.hover-card figcaption {
  position: absolute; inset: 0; padding: 24px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  color: #000; background: #fff; opacity: 0; transform: translateY(15%);
  transition: opacity .35s ease, transform .35s ease;
}
.hover-card figcaption h3 { font-size: 18px; font-weight: 800; text-transform: uppercase; margin: 0 0 6px; color: #111; }
.hover-card figcaption p { font-size: 14px; color: #333; margin: 0; }
.hover-card:hover > img,
.hover-card.is-open > img { opacity: 0; }
.hover-card:hover figcaption,
.hover-card.is-open figcaption { opacity: 1; transform: translateY(0); }

/* ---------- Galleries ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px;
}
.gallery.gallery--wide { grid-template-columns: repeat(6, 1fr); }
.gallery-item { position: relative; overflow: hidden; cursor: pointer; aspect-ratio: 1/1; background: #222; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: filter .25s, transform .4s; }
.gallery-item:hover img { filter: brightness(1.12); transform: scale(1.04); }

/* Print grid (hover-cards, larger) */
.print-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.print-grid .hover-card { aspect-ratio: 1/1; background: #fff; }
.print-grid .hover-card > img { height: 100%; object-fit: cover; }

/* Two-column section (text + media) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split .col-text { max-width: 560px; }
/* Überschrift + Punkte mittig über dem Text (wie Original), Absätze linksbündig */
.split .col-text h2.section-title,
.split .col-text .divider-dots { text-align: center; }

/* Webdesign mockup */
.webdesign-media img { width: 100%; max-width: 560px; margin: 0 auto; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); }

/* ---------- CTA bands (Tel + E-Mail) ---------- */
.cta {
  position: relative; padding: 64px 0; text-align: center; overflow: hidden;
  background: var(--charcoal-dark) center/cover no-repeat; background-attachment: fixed;
}
.cta::before { content: ""; position: absolute; inset: 0; background: rgba(28,29,27,.80); }
.cta .container { position: relative; z-index: 2; }
.cta-title { font-size: 26px; font-weight: 700; color: #fff; margin: 0 0 8px; }
.cta-sub { color: rgba(255,255,255,.8); margin: 0 0 24px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px;
  font-family: var(--font); font-weight: 700; font-size: 16px; line-height: 1;
  border-radius: 4px; border: 2px solid var(--gold); cursor: pointer; transition: .2s; white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.btn-tel { background: var(--gold); color: #fff; }
.btn-tel:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }
.btn-mail { background: transparent; color: #fff; }
.btn-mail:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
@media (max-width: 900px) {
  .cta { background-attachment: scroll; padding: 48px 0; }
  .cta-title { font-size: 21px; }
  .btn { width: 100%; max-width: 320px; justify-content: center; }
}

/* ---------- Footer ---------- */
.footer { background: #262626; color: #cfcfcf; padding: 56px 0 26px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 50px; }
.footer h3 { color: #e6e6e6; font-size: 18px; font-weight: 700; text-transform: uppercase; margin: 0 0 16px; position: relative; padding-bottom: 8px; }
.footer h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 46px; height: 3px; background: var(--gold); }
.footer .addr p { margin: 0 0 6px; }
.footer .addr .strong { font-weight: 700; color: #fff; }
.footer .fon { font-size: 22px; color: #fff; margin: 16px 0 10px; }
.footer .fon strong { font-weight: 700; }
.partners-list { list-style: none; margin: 0 0 18px; padding: 0; }
.partners-list li { margin-bottom: 4px; }
.partners-list a { font-style: italic; color: var(--gold); }
.partners-list a:hover { color: #fff; }
.clients { color: #9a9a9a; line-height: 1.9; }
.footer-bottom { text-align: center; margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); color: #8a8a8a; }
.footer-bottom a { color: #9a9a9a; }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- Subheader (Impressum/Datenschutz) ---------- */
.subheader {
  padding: calc(var(--header-h) + 46px) 0 34px; background: var(--charcoal);
  text-align: center; color: #fff;
}
.subheader .section-title { color: var(--gold); margin: 0 0 6px; }

/* ---------- Legal pages ---------- */
.legal { padding-top: 48px; }
.legal .container { max-width: 1100px; }
.legal-content { max-width: none; color: #2b2b2b; }
.legal-content h2 { color: var(--charcoal); font-size: 26px; font-weight: 800; margin: 26px 0 12px; }
.legal-content h3 { color: var(--charcoal); font-size: 19px; font-weight: 700; margin: 24px 0 8px; }
.legal-content h4 { color: var(--charcoal); font-size: 16px; font-weight: 700; margin: 18px 0 6px; }
.legal-content p { margin: 0 0 12px; }
.legal-content a { color: var(--gold-dark); word-break: break-word; }
.legal-content a:hover { color: var(--gold); }

/* ---------- Scroll-to-top ---------- */
.scroll-top {
  position: fixed; right: 18px; bottom: 18px; width: 48px; height: 48px; z-index: 800;
  display: grid; place-content: center; background: var(--charcoal); color: var(--gold);
  border: 1px solid var(--gold); border-radius: 4px; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s;
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: none; }
.scroll-top:hover { background: var(--gold); color: #fff; }
.scroll-top svg { width: 22px; height: 22px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; background: rgba(15,15,15,.94);
  display: none; align-items: center; justify-content: center; padding: 30px;
}
.lightbox.active { display: flex; }
.lightbox-img { max-width: 92vw; max-height: 88vh; object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; cursor: pointer;
  width: 52px; height: 52px; font-size: 26px; border-radius: 4px; transition: background .2s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--gold); }
.lightbox-close { top: 22px; right: 22px; }
.lightbox-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 22px; top: 50%; transform: translateY(-50%); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .gallery { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 900px) {
  :root { --header-h: 92px; }
  .logo-svg { --lh: 65px; aspect-ratio: 990/409; }
  .header.scrolled .logo-svg { --lh: 58px; }
  .logo-svg .svg-badges { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .header-inner { padding: 0 6px 0 18px; }
  .header-inner > nav { position: absolute; width: 0; }
  .nav-list {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(300px, 82vw);
    flex-direction: column; align-items: flex-start; gap: 6px; justify-content: flex-start;
    background: var(--charcoal); padding: 88px 30px 40px; z-index: 1000;
    transform: translateX(100%); transition: transform .3s ease; box-shadow: -8px 0 30px rgba(0,0,0,.4);
  }
  .nav-list.active { transform: translateX(0); }
  .nav-list a { font-size: 18px; width: 100%; padding: 8px 0; }
  .teaser-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .gallery, .gallery.gallery--wide { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  h2.section-title { font-size: 30px; }
  .intro-text h1 { font-size: 28px; }
  .slideshow-strip { height: 340px; }
  .slideshow-strip + .site-box { margin-top: -190px; }
  /* Mobiles Menü: Bildmarke über den Links, Close-Button fix oben rechts */
  .nav-list::before {
    content: ""; display: block; width: 76px; height: 85px;
    background: url('../img/logo_mark.svg') center/contain no-repeat;
    margin-bottom: 22px;
  }
  .nav-toggle.active { position: fixed; top: 20px; right: 20px; }
}
@media (max-width: 560px) {
  .teaser-grid { grid-template-columns: 1fr; }
  .gallery, .gallery.gallery--wide { grid-template-columns: repeat(2, 1fr); }
  .print-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
}
