/* moebel-messe-manufactur.de – statische Seite, keine externen Ressourcen */
:root {
  color-scheme: dark;
  --red: #df1c24;
  --red-dark: #b8141b;
  --ink: #1b1b1b;
  --bg: #2b2b2b;
  --bg-2: #333333;
  --panel: #232323;
  --line: #444444;
  --text: #ececec;
  --muted: #a9a9a9;
  --max: 1160px;
  --font: "Century Gothic", "Avenir Next", "Avenir", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--panel);
  border-bottom: 2px solid var(--red);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 48px; height: 48px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 19px; letter-spacing: .01em; }
.brand-sub { font-size: 10.5px; color: var(--muted); letter-spacing: .02em; margin-top: 3px; }

.nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.nav a {
  text-decoration: none; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s;
}
.nav a:hover { border-color: var(--red); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

/* Hero */
.hero { position: relative; min-height: 72vh; display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.75) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-bottom: 64px; padding-top: 120px; }
.hero h1 { font-weight: 400; font-size: clamp(30px, 5vw, 56px); line-height: 1.1; margin: 0 0 14px; max-width: 18ch; }
.hero p { margin: 0; color: #dcdcdc; font-size: clamp(15px, 2vw, 19px); }
.hero .accent { display: block; width: 64px; height: 4px; background: var(--red); margin-bottom: 24px; }

/* Sections */
section { padding: 88px 0; }
section.alt { background: var(--bg-2); }
.section-head { margin-bottom: 40px; }
.section-head h2 { font-weight: 400; font-size: clamp(26px, 3.4vw, 38px); margin: 0; }
.section-head h2::after { content: ""; display: block; width: 48px; height: 3px; background: var(--red); margin-top: 14px; }

/* Leistungen */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--panel); overflow: hidden; border-bottom: 3px solid var(--red); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s; }
.card:hover img { transform: scale(1.04); }
.card h3 { font-weight: 400; font-size: 18px; margin: 0; padding: 18px 20px 20px; }

/* Referenzen */
.ref-group + .ref-group { margin-top: 48px; }
.ref-group h3 { font-weight: 400; font-size: 18px; color: var(--muted); letter-spacing: .04em; margin: 0 0 16px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: var(--ink); cursor: zoom-in; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .4s, opacity .3s; opacity: .92; }
.gallery button:hover img { transform: scale(1.05); opacity: 1; }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.contact .map { padding: 0; }
.contact .map img { width: 100%; }
.contact address { font-style: normal; font-size: 18px; line-height: 1.75; }
.contact dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 24px 0 32px; font-size: 18px; }
.contact dt { color: var(--muted); }
.contact dd { margin: 0; }
.contact a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact a:hover { border-color: var(--red); }
.btn {
  display: inline-block; background: var(--red); color: #fff !important; text-decoration: none; border: 0 !important;
  padding: 14px 34px; font-size: 16px; letter-spacing: .03em; transition: background .2s;
}
.btn:hover { background: var(--red-dark); }

/* Footer */
.site-footer { background: #141518; color: var(--muted); padding: 40px 0; font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.site-footer nav a { text-decoration: none; margin-left: 24px; }
.site-footer nav a:first-child { margin-left: 0; }
.site-footer a:hover { color: #fff; }

/* Rechtstexte */
.legal { padding: 64px 0 88px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-weight: 400; font-size: clamp(28px, 4vw, 40px); margin: 0 0 32px; }
.legal h2 { font-weight: 400; font-size: 21px; margin: 40px 0 10px; color: #fff; }
.legal h3 { font-size: 17px; margin: 24px 0 6px; }
.legal p, .legal li { color: #d6d6d6; }
.legal a { color: #fff; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,10,10,.94); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; padding: 12px 18px; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* Responsive */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .contact { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--panel); border-bottom: 2px solid var(--red); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 24px 16px; }
  .nav a { display: block; padding: 12px 0; }
  .brand-sub { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .site-footer nav a { margin: 0 18px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
