/* ============================================================
   MAQUADO SERVICES — THEME V2
   Markenwerte gemäß Master-Briefing (verbindlich):
   Graphit/Schwarz #0F1113 · Dynamic Red #F30613 · Off-White #F2F2F2
   Typografie: Montserrat (self-hosted, siehe /assets/fonts)
   ============================================================ */

@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/montserrat-400.woff2') format('woff2'),
       url('/assets/fonts/montserrat-400.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/montserrat-500.woff2') format('woff2'),
       url('/assets/fonts/montserrat-500.woff') format('woff');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/montserrat-600.woff2') format('woff2'),
       url('/assets/fonts/montserrat-600.woff') format('woff');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/montserrat-700.woff2') format('woff2'),
       url('/assets/fonts/montserrat-700.woff') format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/montserrat-800.woff2') format('woff2'),
       url('/assets/fonts/montserrat-800.woff') format('woff');
  font-weight: 800; font-style: normal; font-display: swap;
}

:root {
  --mq-graphite: #0F1113;
  --mq-graphite-soft: #1A1D20;
  --mq-line: #2A2E32;
  --mq-off-white: #F2F2F2;
  --mq-grey: #9A9DA0;
  --mq-red: #F30613;
  --mq-red-dark: #B0040D;
  --content-width: 1180px;
  --font-display: 'Montserrat', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--mq-graphite);
  color: var(--mq-off-white);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; margin: 0; }

.mq-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mq-red);
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

.mq-btn {
  display: inline-block;
  background: var(--mq-red);
  color: #fff;
  border: none;
  padding: 13px 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.mq-btn:hover { background: var(--mq-red-dark); transform: translateY(-1px); }
.mq-btn-outline {
  background: transparent;
  border: 1px solid rgba(242,242,242,0.35);
  color: var(--mq-off-white);
}
.mq-btn-outline:hover { border-color: var(--mq-red); background: transparent; }
.mq-btn-ghost {
  background: transparent;
  color: var(--mq-off-white);
  border: none;
  text-decoration: underline;
  padding: 0;
}
.mq-btn-ghost:hover { color: var(--mq-red); background: none; transform: none; }

/* ============================================================
   HEADER
   ============================================================ */
.mq2-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 32px;
  height: 76px;
  background: rgba(15,17,19,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--mq-line);
}
.mq2-logo img { height: 34px; width: auto; }

.mq2-nav { display: flex; align-items: center; gap: 26px; flex: 1; }
.mq2-nav-item {
  background: none; border: none; cursor: pointer;
  color: var(--mq-off-white); font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 500; padding: 0;
}
.mq2-nav-item:hover { color: var(--mq-red); }

.mq2-journey-switch { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; }
.mq2-journey-switch a { color: var(--mq-grey); }
.mq2-journey-switch a:hover, .mq2-journey-switch a.mq2-active { color: var(--mq-off-white); }
.mq2-journey-sep { color: var(--mq-line); }

.mq2-header-cta { padding: 10px 20px; font-size: 0.88rem; }

.mq2-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.mq2-burger span { width: 22px; height: 2px; background: var(--mq-off-white); display: block; }

@media (max-width: 960px) {
  .mq2-nav, .mq2-journey-switch, .mq2-header-cta { display: none; }
  .mq2-burger { display: flex; }
  .mq2-header { padding: 0 20px; }
}

/* ---------- Mega-Menu ---------- */
.mq-mega {
  position: absolute;
  top: 76px; left: 0; right: 0;
  background: var(--mq-graphite-soft);
  border-bottom: 1px solid var(--mq-line);
  display: none;
  z-index: 49;
}
.mq-mega.mq2-open { display: block; }
.mq-mega-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr) 220px;
  gap: 28px;
}
.mq-mega-col { display: flex; flex-direction: column; gap: 10px; }
.mq-mega-col-title {
  font-weight: 700; color: var(--mq-off-white); margin-bottom: 6px;
  font-size: 0.98rem;
}
.mq-mega-col a { color: var(--mq-grey); font-size: 0.9rem; }
.mq-mega-col a:hover { color: var(--mq-red); }
.mq-mega-teaser { text-align: center; }
.mq-mega-teaser img { border-radius: 3px; margin-bottom: 12px; aspect-ratio: 4/3; object-fit: cover; }
.mq-mega-teaser p { font-size: 0.85rem; color: var(--mq-grey); margin: 0 0 12px; }

@media (max-width: 960px) { .mq-mega { display: none !important; } }

/* ---------- Mobile Menu ---------- */
.mq2-mobile-menu {
  display: none;
  position: fixed; inset: 76px 0 0 0;
  background: var(--mq-graphite);
  z-index: 48;
  padding: 20px 24px;
  overflow-y: auto;
}
.mq2-mobile-menu.mq2-open { display: block; }
.mq2-mobile-journey { display: flex; gap: 18px; margin-bottom: 20px; font-weight: 600; }
.mq2-mobile-menu details { border-bottom: 1px solid var(--mq-line); padding: 14px 0; }
.mq2-mobile-menu summary { cursor: pointer; font-weight: 600; }
.mq2-mobile-menu details a { display: block; margin-top: 10px; color: var(--mq-grey); }
.mq2-mobile-link { display: block; padding: 14px 0; border-bottom: 1px solid var(--mq-line); }

/* ============================================================
   HERO
   ============================================================ */
.mq-hero {
  position: relative;
  height: 92vh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.mq-hero video, .mq-hero .mq-hero-poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.mq-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,17,19,0.35) 0%, rgba(15,17,19,0.55) 55%, rgba(15,17,19,0.95) 100%);
}
.mq-hero-content {
  position: relative; z-index: 2;
  padding: 0 24px 70px;
  max-width: var(--content-width);
  margin: 0 auto;
  width: 100%;
}
.mq-hero-content h1 {
  font-size: clamp(2.1rem, 5.5vw, 4.2rem);
  line-height: 1.05;
  max-width: 780px;
  margin-bottom: 26px;
}
.mq-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.mq-hero-dev-note {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  background: rgba(15,17,19,0.75); border: 1px solid var(--mq-line);
  color: var(--mq-grey); font-size: 0.72rem; padding: 5px 10px; border-radius: 3px;
}

/* ============================================================
   GESCHÄFTSFELDER
   ============================================================ */
.mq-fields {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--mq-line);
}
.mq-field-tile {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--mq-graphite-soft);
  display: flex; align-items: flex-end;
}
.mq-field-tile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
  opacity: 0.65;
}
.mq-field-tile:hover img { transform: scale(1.06); opacity: 0.85; }
.mq-field-tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15,17,19,0.92) 100%);
}
.mq-field-tile-content { position: relative; z-index: 2; padding: 26px 22px; }
.mq-field-tile-content h3 { font-size: 1.15rem; margin-bottom: 8px; }
.mq-field-tile-content ul {
  list-style: none; padding: 0; margin: 0 0 14px;
  font-size: 0.82rem; color: var(--mq-grey);
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
}
.mq-field-tile:hover .mq-field-tile-content ul { max-height: 140px; }
.mq-field-tile-content ul li { margin-bottom: 4px; }
.mq-field-tile-content a { font-size: 0.82rem; font-weight: 600; color: var(--mq-off-white); border-bottom: 1px solid var(--mq-red); }

@media (max-width: 900px) {
  .mq-fields { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .mq-fields { grid-template-columns: 1fr; }
  .mq-field-tile { aspect-ratio: 4/3; }
  .mq-field-tile-content ul { max-height: 140px; }
}

/* ============================================================
   SECTION SHELL
   ============================================================ */
.mq-section { padding: 90px 0; }
.mq-section-head { max-width: 640px; margin-bottom: 46px; }
.mq-section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 14px; }
.mq-section-head p { color: var(--mq-grey); margin: 0; }
.mq-section-alt { background: var(--mq-graphite-soft); }

/* ---------- Projekte-Galerie ---------- */
.mq-gallery {
  display: flex; gap: 18px; overflow-x: auto; padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}
.mq-gallery-item {
  flex: 0 0 340px; scroll-snap-align: start;
  background: var(--mq-graphite-soft); border: 1px solid var(--mq-line); border-radius: 4px; overflow: hidden;
}
.mq-gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.mq-gallery-caption { padding: 16px 18px; }
.mq-gallery-caption h4 { font-size: 0.98rem; margin: 0 0 4px; font-weight: 700; }
.mq-gallery-caption p { font-size: 0.82rem; color: var(--mq-grey); margin: 0; }
.mq-gallery-placeholder {
  flex: 0 0 340px; aspect-ratio: 4/3; border-radius: 4px;
  border: 1px dashed var(--mq-line); display: flex; align-items: center; justify-content: center;
  color: var(--mq-grey); font-size: 0.82rem; text-align: center; padding: 20px;
}

/* ---------- Journey (Firma|Privat) Teaser auf der Startseite ---------- */
.mq-journey-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--mq-line); }
.mq-journey-card {
  background: var(--mq-graphite); padding: 56px 44px;
  display: flex; flex-direction: column; gap: 18px;
}
.mq-journey-card h3 { font-size: 1.6rem; }
.mq-journey-card p { color: var(--mq-grey); margin: 0; max-width: 420px; }
@media (max-width: 800px) { .mq-journey-grid { grid-template-columns: 1fr; } .mq-journey-card { padding: 40px 26px; } }

/* ---------- Prozess ---------- */
.mq-process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; background: var(--mq-line); }
.mq-process-step { background: var(--mq-graphite); padding: 32px 22px; text-align: center; }
.mq-process-step .mq-process-num {
  font-family: var(--font-display); font-weight: 800; color: var(--mq-red);
  font-size: 1.6rem; margin-bottom: 10px; display: block;
}
.mq-process-step p { font-size: 0.88rem; color: var(--mq-grey); margin: 0; }
@media (max-width: 900px) { .mq-process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .mq-process { grid-template-columns: 1fr; } }

/* ---------- Arbeitsweise / Textblock ---------- */
.mq-text-block { max-width: 760px; }
.mq-text-block p { color: #D6D5D3; }
.mq-text-block ul { color: #D6D5D3; padding-left: 20px; }

/* ============================================================
   FOOTER
   ============================================================ */
.mq2-footer { border-top: 1px solid var(--mq-line); padding: 60px 32px 30px; margin-top: 40px; }
.mq2-footer-inner {
  max-width: var(--content-width); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
}
.mq2-footer-brand p { color: var(--mq-grey); font-size: 0.88rem; margin-top: 14px; max-width: 280px; }
.mq2-footer-col h4 { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mq-grey); margin-bottom: 14px; }
.mq2-footer-col a { display: block; color: var(--mq-grey); font-size: 0.9rem; margin-bottom: 9px; }
.mq2-footer-col a:hover { color: var(--mq-red); }
.mq2-copyright { max-width: var(--content-width); margin: 30px auto 0; padding-top: 20px; border-top: 1px solid var(--mq-line); color: var(--mq-grey); font-size: 0.78rem; }
@media (max-width: 800px) { .mq2-footer-inner { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   VIDEO MODAL ("Film ansehen")
   ============================================================ */
.mq-film-modal {
  display: none;
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15,17,19,0.95);
  align-items: center; justify-content: center;
  padding: 24px;
}
.mq-film-modal.mq2-open { display: flex; }
.mq-film-modal video { width: 100%; max-width: 1100px; max-height: 80vh; }
.mq-film-modal-close {
  position: absolute; top: 24px; right: 32px;
  background: none; border: none; color: var(--mq-off-white);
  font-size: 2rem; cursor: pointer; line-height: 1;
}

/* ============================================================
   PLACEHOLDER MEDIA SLOT (für auszutauschendes Bildmaterial)
   ============================================================ */
.mq-media-slot {
  position: relative;
  background: var(--mq-graphite-soft);
  border: 1px dashed var(--mq-line);
}
.mq-media-slot img { opacity: 0.5; }
.mq-media-slot-label {
  position: absolute; bottom: 10px; left: 10px;
  background: rgba(15,17,19,0.85); color: var(--mq-grey);
  font-size: 0.7rem; padding: 4px 8px; border-radius: 2px;
}

/* Utility */
.mq-cluster { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
