/* ============================================================
   QOM – Quit Ordinary Marketing · Design-System "Dark & Bold"
   Prototyp v2 · CI-Farben (QOM-Blau) · Juli 2026
   ============================================================ */

:root {
  --bg: #0a0e14;
  --surface: #0f1620;
  --surface-2: #141d2a;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f2f5f8;
  --muted: #9aa7b4;
  --accent: #36a9e2;      /* QOM Hellblau (Logo-Balken) */
  --accent-deep: #2e7cc2; /* QOM Blau (Logo-Grund) */
  --accent-ink: #ffffff;
  --grey: #9da3a8;        /* Logo-Grau */
  --radius: 20px;
  --radius-sm: 12px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --w: min(1200px, calc(100vw - 48px));
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.container { width: var(--w); margin: 0 auto; }

::selection { background: var(--accent); color: #fff; }

/* ---------- Scroll-Fortschritt ---------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  z-index: 200;
}

/* ---------- Cursor-Glow ---------- */

.cursor-dot {
  position: fixed;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(54, 169, 226, 0.10), transparent 65%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: opacity 0.3s;
}

@media (hover: none) { .cursor-dot { display: none; } }

/* ---------- Typografie ---------- */

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.display { font-size: clamp(3rem, 8.5vw, 6.5rem); }

.h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.h3 { font-size: clamp(1.35rem, 2.5vw, 1.8rem); }

.accent { color: var(--accent); }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--muted);
  max-width: 46ch;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}

.label::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--accent);
}

/* Zeilenweise Hero-Animation */
.line-reveal { display: block; overflow: hidden; }
.line-reveal span {
  display: block;
  transform: translateY(110%);
  animation: lineUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.line-reveal:nth-child(2) span { animation-delay: 0.12s; }
.line-reveal:nth-child(3) span { animation-delay: 0.24s; }

@keyframes lineUp { to { transform: translateY(0); } }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: rgba(10, 14, 20, 0.85);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  width: var(--w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  will-change: transform;
}

.btn-primary { background: var(--accent-deep); color: #fff; }
.btn-primary:hover { background: var(--accent); box-shadow: 0 8px 30px rgba(54, 169, 226, 0.35); }

.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-lg { padding: 17px 34px; font-size: 1.05rem; }

.burger { display: none; background: none; border: none; color: var(--text); font-size: 1.6rem; cursor: pointer; }

/* ---------- Hero ---------- */

.hero { padding: 170px 0 70px; position: relative; }

.hero-blob {
  position: absolute;
  top: -180px;
  right: -220px;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 124, 194, 0.28), transparent 62%);
  filter: blur(10px);
  animation: blobFloat 11s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes blobFloat {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-90px, 70px) scale(1.15); }
}

.hero .display { max-width: 13ch; position: relative; }

.hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

.hero-img {
  margin-top: 70px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.hero-img img { width: 100%; height: clamp(260px, 46vw, 540px); object-fit: cover; }

/* Bild-Reveal per Clip-Path */
.img-reveal { clip-path: inset(0 0 100% 0); transition: clip-path 1s cubic-bezier(0.22, 1, 0.36, 1); }
.img-reveal.visible { clip-path: inset(0 0 0% 0); }

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 18px 0;
  margin-top: 80px;
  white-space: nowrap;
}

.marquee-track {
  display: inline-block;
  animation: scroll 28s linear infinite;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--muted);
}

.marquee-track b { color: var(--accent); font-weight: 500; margin: 0 22px; }

@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding: 70px 0;
}

.stat { border-left: 1px solid var(--line); padding-left: 26px; }

.stat .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 4rem);
  color: var(--accent);
  line-height: 1;
}

.stat p { color: var(--muted); margin-top: 8px; font-size: 0.95rem; }

/* ---------- Sections ---------- */

.section { padding: 110px 0; position: relative; }
.section-tight { padding: 70px 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* ---------- Service-Rows (interaktive Liste) ---------- */

.service-rows { list-style: none; border-top: 1px solid var(--line); }

.service-row {
  display: grid;
  grid-template-columns: 90px 1.1fr 1.6fr 60px;
  align-items: center;
  gap: 30px;
  padding: 44px 10px;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.3s, padding-left 0.3s;
}

.service-row:hover { background: rgba(54, 169, 226, 0.05); padding-left: 26px; }

.service-row .num {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
}

.service-row h3 {
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  transition: color 0.3s;
}

.service-row:hover h3 { color: var(--accent); }

.service-row p { color: var(--muted); font-size: 0.98rem; max-width: 52ch; }

.service-row .arrow {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--muted);
  transition: transform 0.3s, color 0.3s;
}

.service-row:hover .arrow { transform: translateX(8px) rotate(-45deg); color: var(--accent); }

/* Schwebendes Vorschaubild folgt dem Cursor */
.row-preview {
  position: fixed;
  width: 300px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  pointer-events: none;
  z-index: 50;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85) rotate(-3deg);
  transition: opacity 0.25s, transform 0.25s;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.row-preview img { width: 100%; height: 100%; object-fit: cover; }

.row-preview.on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }

.service-row .mobile-img { display: none; }

/* ---------- Cards ---------- */

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  transform-style: preserve-3d;
  will-change: transform;
}

.card:hover { border-color: rgba(54, 169, 226, 0.5); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4); }

.card .num {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}

.card p { color: var(--muted); font-size: 0.98rem; }

.card .card-link {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
}

.card-img {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .card-img img { transform: scale(1.05); }

.tag {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(54, 169, 226, 0.4);
  border-radius: 999px;
  padding: 5px 14px;
  width: fit-content;
}

/* ---------- Team ---------- */

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.member { text-align: left; }

.member .photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  margin-bottom: 18px;
  background: var(--surface);
}

.member .photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(18%); transition: filter 0.3s, transform 0.4s; }
.member:hover .photo img { filter: grayscale(0); transform: scale(1.03); }

.member h4 { font-size: 1.15rem; margin-bottom: 4px; }
.member p { color: var(--muted); font-size: 0.92rem; }
.member a { color: var(--accent); font-size: 0.88rem; }

/* ---------- Listen / Features ---------- */

.feature-list { list-style: none; display: flex; flex-direction: column; }

.feature-list li {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 16px;
  color: var(--muted);
}

.feature-list li::before {
  content: "→";
  color: var(--accent);
  font-family: var(--font-display);
}

.feature-list b { color: var(--text); }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  text-align: left;
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
}

.faq-q::after { content: "+"; color: var(--accent); font-size: 1.5rem; transition: transform 0.25s; }

.faq-item.open .faq-q::after { transform: rotate(45deg); }

.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }

.faq-a p { color: var(--muted); padding: 0 0 26px; max-width: 68ch; }

/* ---------- Testimonials ---------- */

.quote-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quote-card p { color: var(--text); font-size: 1.05rem; }
.quote-card .who { color: var(--muted); font-size: 0.9rem; }
.quote-card .stars { color: var(--accent); letter-spacing: 3px; }

/* ---------- Regional (grosszügig, mit Bildern) ---------- */

.regio-section { padding: 130px 0; }

.regio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 64px;
}

.regio-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}

.regio-card:hover { transform: translateY(-6px); border-color: rgba(54, 169, 226, 0.5); }

.regio-card .regio-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-2);
}

.regio-card .regio-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.regio-card:hover .regio-img img { transform: scale(1.05); }

.regio-card .regio-body { padding: 30px 34px 36px; }

.regio-card h4 { font-size: 1.25rem; margin-bottom: 12px; }
.regio-card p { color: var(--muted); font-size: 0.96rem; }

/* ---------- CTA-Banner ---------- */

.cta-banner {
  background: linear-gradient(120deg, var(--accent-deep), var(--accent));
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(40px, 6vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.cta-banner::after {
  content: "";
  position: absolute;
  top: -60%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  animation: blobFloat 9s ease-in-out infinite alternate;
}

.cta-banner h2 { font-size: clamp(1.8rem, 4vw, 3rem); max-width: 18ch; position: relative; z-index: 1; }
.cta-banner p { max-width: 40ch; font-weight: 500; position: relative; z-index: 1; }

.btn-dark { background: #0a0e14; color: #fff; position: relative; z-index: 1; }
.btn-dark:hover { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35); }

/* ---------- Service-Seiten ---------- */

.page-hero { padding: 160px 0 60px; border-bottom: 1px solid var(--line); position: relative; }

.service-img {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.service-img img { width: 100%; height: clamp(240px, 34vw, 420px); object-fit: cover; }

.prose { max-width: 72ch; color: var(--muted); display: flex; flex-direction: column; gap: 18px; }
.prose b, .prose strong { color: var(--text); }

/* ---------- Footer ---------- */

footer { border-top: 1px solid var(--line); padding: 70px 0 40px; margin-top: 40px; }

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.footer-grid a { color: var(--muted); transition: color 0.2s; display: block; padding: 4px 0; }
.footer-grid a:hover { color: var(--accent); }

.footer-col h5 { font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); margin-bottom: 14px; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------- Legal ---------- */

.legal { padding: 160px 0 80px; }
.legal .prose { gap: 14px; }
.legal h2 { font-size: 1.5rem; margin-top: 34px; }
.notice {
  background: var(--surface);
  border: 1px solid rgba(54, 169, 226, 0.45);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 34px;
}

/* ---------- Reveal-Animation (gestaffelt) ---------- */

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

.cards-2 > .reveal:nth-child(2), .cards-3 > .reveal:nth-child(2), .team-grid > .reveal:nth-child(2), .regio-grid > .reveal:nth-child(2) { transition-delay: 0.1s; }
.cards-3 > .reveal:nth-child(3), .team-grid > .reveal:nth-child(3), .regio-grid > .reveal:nth-child(3) { transition-delay: 0.2s; }
.team-grid > .reveal:nth-child(4), .regio-grid > .reveal:nth-child(4) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .img-reveal { clip-path: none; }
}

/* ---------- Responsive ---------- */

/* Tablet gross (bis 1024px) */
@media (max-width: 1024px) {
  .section { padding: 90px 0; }
  .regio-section { padding: 100px 0; }
  .nav-links { gap: 24px; }
  .team-grid { gap: 16px; }
}

/* Tablet (bis 960px) */
@media (max-width: 960px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .regio-grid { grid-template-columns: 1fr; gap: 22px; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 54px 0; }
  .stat { padding-left: 18px; }

  .service-row { grid-template-columns: 60px 1fr 40px; padding: 34px 0; }
  .service-row:hover { padding-left: 0; }
  .service-row p { grid-column: 2 / 4; }
  .row-preview { display: none; }
  .service-row .mobile-img { display: block; grid-column: 1 / 4; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16 / 9; margin-top: 10px; }
  .service-row .mobile-img img { width: 100%; height: 100%; object-fit: cover; }

  .hero-blob { width: 480px; height: 480px; top: -120px; right: -180px; }
  .cursor-dot { display: none; }
}

/* Smartphone (bis 720px) */
@media (max-width: 720px) {
  :root { --w: calc(100vw - 36px); }
  body { font-size: 16px; }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 18px 26px;
    gap: 4px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 6px; font-size: 1.05rem; }
  .nav-links .btn { margin-top: 12px; justify-content: center; }
  .burger { display: block; padding: 10px; }

  .hero { padding: 120px 0 40px; }
  .hero-img { margin-top: 44px; }
  .hero-img img { height: 240px; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .marquee { margin-top: 48px; padding: 13px 0; }
  .marquee-track { font-size: 0.9rem; }

  .section { padding: 64px 0; }
  .section-tight { padding: 44px 0; }
  .regio-section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }

  .stats { grid-template-columns: 1fr; gap: 26px; padding: 44px 0; }

  .cards-2, .cards-3 { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 26px; }
  .quote-card { padding: 28px; }

  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .member .photo { margin-bottom: 12px; }
  .member h4 { font-size: 1rem; }

  .service-row { grid-template-columns: 44px 1fr 32px; gap: 14px; padding: 28px 0; }
  .service-row h3 { font-size: 1.5rem; }
  .service-row p { font-size: 0.92rem; }

  .regio-card .regio-body { padding: 22px 24px 28px; }

  .cta-banner { flex-direction: column; align-items: flex-start; text-align: left; }
  .cta-banner .btn { width: 100%; justify-content: center; }

  .footer-grid { flex-direction: column; gap: 30px; }
  .page-hero { padding: 120px 0 44px; }
  .legal { padding: 120px 0 60px; }

  .feature-list li { padding: 18px 0; }
  .faq-q { font-size: 1rem; padding: 20px 0; }
}

/* Kleine Smartphones (bis 400px) */
@media (max-width: 400px) {
  .display { font-size: 2.5rem; }
  .h2 { font-size: 1.7rem; }
  .team-grid { grid-template-columns: 1fr; }
}
