/* Q4 Cowork — q4cowork.de
   Designsystem: C:\claude\cowork\DESIGN.md (freigegeben 28.08.2026)
   Vorlage: design/Main.dc.html (Desktop) + design/Mobil.dc.html (Mobil) */

:root {
  --paper: #f4f5f1;
  --ink: #0e1a12;
  --muted: #3d4a41;
  --subtle: #7d8a80;
  --accent: #0E7C86;
  --accent-deep: #0a5e66;
  --accent-tint: rgba(14, 124, 134, 0.08);
  --accent-tint-strong: rgba(14, 124, 134, 0.16);
  --line: rgba(14, 26, 18, 0.1);
  --line-soft: rgba(14, 26, 18, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-shadow: 0 1px 2px rgba(14, 26, 18, 0.04), 0 12px 40px -18px rgba(14, 26, 18, 0.18);
  --dark-text: #b8c2ba;
  --pad-x: 72px;
  --display: 'Bricolage Grotesque', 'Arial Narrow', Impact, sans-serif;
  --ui: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* clip statt hidden, und auch auf html: mobile Browser (iOS) ignorieren
   overflow-x auf body allein — der Deko-Glow ragte sonst seitlich heraus. */
html { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--ui);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); }

img, svg { max-width: 100%; }

.display {
  font-family: var(--display);
  letter-spacing: -0.015em;
}
.display em { font-style: italic; font-weight: 400; color: var(--accent); }

.wrap { max-width: 1440px; margin: 0 auto; position: relative; }
.section { padding-left: var(--pad-x); padding-right: var(--pad-x); position: relative; }

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* Hintergrund-Akzent (radialer Petrol-Glow) */
/* right:0 statt negativem Offset — ein Element rechts außerhalb des Viewports
   erzeugt horizontalen Scroll (scrollWidth > clientWidth). Stattdessen endet die
   Box am Viewportrand und der Gradient-Kreis sitzt an derselben Stelle wie zuvor
   (Zentrum 180px vor dem rechten Rand, Radius 360px). */
.glow {
  position: absolute;
  top: -220px; right: 0;
  width: 540px; height: 720px;
  max-width: 100%;
  background: radial-gradient(360px at calc(100% - 180px) 50%, rgba(14, 124, 134, 0.14), rgba(14, 124, 134, 0));
  pointer-events: none;
  z-index: 0;
}

/* ---------- Chips & Buttons ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(14, 26, 18, 0.12);
  font-size: 14px; color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
}
.chip .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); display: inline-block; flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; font-weight: 600; font-size: 17px;
  padding: 16px 30px; border: 1.5px solid transparent;
  cursor: pointer; font-family: var(--ui);
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #17291d; color: var(--paper); transform: translateY(-1px); box-shadow: 0 10px 26px -14px rgba(14, 26, 18, 0.6); }
.btn-accent { background: var(--accent); color: #f6fbfb; font-weight: 650; }
.btn-accent:hover { background: var(--accent-deep); color: #f6fbfb; transform: translateY(-1px); box-shadow: 0 10px 26px -14px rgba(14, 124, 134, 0.75); }
.btn-ghost { border-color: rgba(14, 26, 18, 0.18); color: var(--ink); padding: 16px 26px; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-deep); transform: translateY(-1px); }
.btn-lg { padding: 20px 40px; font-size: 19px; }

/* ---------- Navigation ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px var(--pad-x); position: relative; z-index: 20;
}
.brand { font-family: var(--display); font-size: 22px; font-weight: 750; letter-spacing: 0.02em; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand span { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 36px; font-size: 15px; color: var(--muted); }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--accent-deep); }
.nav-cta {
  background: var(--accent); color: #f6fbfb;
  padding: 11px 22px; border-radius: 999px; font-weight: 600;
  transition: background-color .18s ease, transform .18s ease;
}
.nav-cta:hover { background: var(--accent-deep); color: #f6fbfb; transform: translateY(-1px); }

.nav-toggle {
  display: none; background: none; border: 0; padding: 4px; cursor: pointer; color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px; padding: 72px var(--pad-x) 88px; align-items: center; position: relative;
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.hero h1 { font-size: 84px; line-height: 0.98; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.hero-lead { font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 480px; margin: 0; }
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* App-Vignetten */
.vignettes { position: relative; height: 520px; }
.vig { position: absolute; }
.vig-doors { left: 24px; top: 36px; width: 300px; border-radius: 24px; padding: 22px; transform: rotate(-2deg); }
.vig-bell { right: 8px; top: 0; width: 280px; border-radius: 20px; padding: 18px; transform: rotate(1.5deg); }
.vig-office { right: 40px; bottom: 24px; width: 320px; border-radius: 24px; padding: 22px; transform: rotate(-1deg); }
.vig-label { font-size: 13px; color: var(--subtle); margin-bottom: 12px; letter-spacing: 0.04em; }

.door-row { display: flex; align-items: center; gap: 12px; border-radius: 16px; padding: 14px; }
.door-row.on { background: var(--accent-tint); }
.door-row.off { border: 1px solid var(--line-soft); }
.door-row .grow { flex-grow: 1; }
.door-name { font-weight: 650; font-size: 15px; }
.door-sub { font-size: 12.5px; color: var(--subtle); }
.pill-open { background: var(--accent); color: #f6fbfb; font-size: 13px; font-weight: 650; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.pill-open-ghost { border: 1.5px solid rgba(14, 26, 18, 0.14); font-size: 13px; font-weight: 650; padding: 8px 14px; border-radius: 999px; color: var(--muted); white-space: nowrap; }

.bell-icon { background: rgba(14, 124, 134, 0.1); border-radius: 12px; padding: 9px; flex: none; line-height: 0; }
.bar-track { height: 8px; border-radius: 999px; background: rgba(14, 26, 18, 0.08); }
.bar-fill { height: 8px; border-radius: 999px; background: var(--accent); }
.bar-fill.grey { background: #93a196; }
.bar-head { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 7px; }
.bar-head span:first-child { font-weight: 600; }
.bar-head span:last-child { color: var(--subtle); }

/* ---------- Beweisstreifen ---------- */
.proof {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  margin: 0 var(--pad-x); padding: 26px 40px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.proof-text { font-size: 15px; color: var(--muted); max-width: 360px; }
.proof-nums { display: flex; gap: 64px; flex-wrap: wrap; }
.proof-num { font-family: var(--display); font-size: 40px; font-weight: 700; line-height: 1.05; }
.proof-cap { font-size: 14px; color: var(--subtle); }

/* ---------- Abschnittsköpfe ---------- */
.h2 { font-size: 52px; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 12px; line-height: 1.02; }
.h2-sm { font-size: 44px; }
.sec-lead { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0 0 44px; line-height: 1.55; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.card { border-radius: 28px; padding: 32px; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(14, 26, 18, 0.04), 0 22px 50px -20px rgba(14, 26, 18, 0.24); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.card h3 { font-family: var(--display); font-size: 24px; font-weight: 650; margin: 16px 0 8px; letter-spacing: -0.01em; }
.card.span-2 h3 { font-size: 22px; }
.card p { font-size: 15.5px; line-height: 1.55; color: var(--muted); margin: 0; }
.card.span-2 p { font-size: 15px; line-height: 1.5; }

.matrix { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 20px; }
.matrix-lab { font-size: 12px; color: var(--subtle); }
.cell { height: 18px; border-radius: 6px; background: rgba(14, 26, 18, 0.08); }
.cell.on { background: var(--accent); }

.card-split { display: flex; gap: 24px; align-items: center; }
.phone-badge {
  width: 130px; height: 130px; border-radius: 20px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(14, 124, 134, 0.16), rgba(14, 124, 134, 0.05));
  display: flex; align-items: center; justify-content: center;
}
.invoice { border-top: 1px dashed rgba(14, 26, 18, 0.15); padding-top: 12px; margin-top: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.invoice div { display: flex; justify-content: space-between; gap: 16px; }
.invoice span:last-child { font-weight: 600; }

/* ---------- Dunkle Hardware-Sektion ---------- */
.dark-block {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px; align-items: center;
  background: var(--ink); border-radius: 32px; padding: 56px;
}
.dark-block h2 { font-family: var(--display); font-size: 44px; font-weight: 700; color: var(--paper); letter-spacing: -0.015em; margin: 0 0 14px; line-height: 1.05; }
.dark-block h2 em { font-style: italic; color: #22A3AE; font-weight: 400; }
.dark-block p { font-size: 17px; line-height: 1.6; color: var(--dark-text); margin: 0; }
.hw-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.hw-chip {
  border: 1px solid rgba(244, 245, 241, 0.22); color: #dde3de;
  border-radius: 999px; padding: 12px 22px; font-size: 15px;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.hw-chip:hover { border-color: rgba(34, 163, 174, 0.6); color: #f4f5f1; background: rgba(34, 163, 174, 0.1); }

/* ---------- Preise ---------- */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 900px; }
.price-card { border-radius: 28px; padding: 36px; }
.price-card.dashed { border: 1.5px dashed rgba(14, 26, 18, 0.18); }
.price-kicker { font-weight: 650; font-size: 18px; margin-bottom: 6px; }
.price-value { font-family: var(--display); font-size: 40px; font-weight: 700; margin-bottom: 4px; line-height: 1.05; }
.price-value small { display: block; margin-top: 6px; font-size: 17px; font-weight: 400; color: var(--subtle); font-family: var(--ui); }
.price-card p { font-size: 15px; color: var(--muted); line-height: 1.6; margin: 12px 0 0; }
.price-note { font-size: 14px; color: var(--subtle); margin-top: 24px; max-width: 900px; }

/* ---------- CTA ---------- */
.cta {
  margin: 0 var(--pad-x); border-top: 1px solid var(--line);
  padding: 72px 0; display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.cta h2 { font-family: var(--display); font-size: 48px; font-weight: 700; letter-spacing: -0.015em; margin: 0; line-height: 1.04; }
.cta h2 small { color: var(--subtle); font-weight: 400; font-size: 24px; font-family: var(--ui); letter-spacing: 0; display: block; margin-top: 10px; }

/* ---------- Footer ---------- */
.footer {
  padding: 28px var(--pad-x) 40px; display: flex; justify-content: space-between; gap: 24px;
  font-size: 14px; color: var(--subtle); border-top: 1px solid var(--line-soft); flex-wrap: wrap;
}
.footer a { color: var(--subtle); }
.footer a:hover { color: var(--accent-deep); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }

/* ---------- Innenseiten (Kontakt, Recht, 404) ---------- */
.page { padding: 56px var(--pad-x) 96px; position: relative; }
.page-narrow { max-width: 820px; }
.page h1 { font-family: var(--display); font-size: 56px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 16px; line-height: 1.0; }
.page-lead { font-size: 19px; line-height: 1.55; color: var(--muted); margin: 0 0 40px; max-width: 620px; }
.page h2 { font-family: var(--display); font-size: 26px; font-weight: 650; margin: 40px 0 10px; letter-spacing: -0.01em; }
.page h3 { font-size: 17px; font-weight: 650; margin: 24px 0 6px; }
.page p, .page li { font-size: 16px; line-height: 1.65; color: var(--muted); }
.page ul { padding-left: 20px; }
.page li { margin-bottom: 6px; }
.legal-card { border-radius: 24px; padding: 36px 40px; margin-bottom: 24px; }
.legal-card > *:first-child { margin-top: 0; }
.legal-meta { font-size: 14px; color: var(--subtle); margin-top: 40px; }

/* ---------- Formular ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--muted); }
.field .opt { font-weight: 400; color: var(--subtle); }
.field input, .field textarea {
  font-family: var(--ui); font-size: 16px; color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(14, 26, 18, 0.14);
  border-radius: 14px; padding: 13px 16px; width: 100%;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { min-height: 140px; resize: vertical; border-radius: 18px; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(14, 124, 134, 0.14);
}
.field input.bad, .field textarea.bad { border-color: #b6342b; background: rgba(182, 52, 43, 0.06); }
.field-error { font-size: 13.5px; color: #b6342b; font-weight: 600; }
.form-actions { display: flex; align-items: center; gap: 18px; margin-top: 26px; flex-wrap: wrap; }
.form-hint { font-size: 13.5px; color: var(--subtle); max-width: 380px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { border-radius: 18px; padding: 16px 20px; font-size: 15px; margin-bottom: 26px; line-height: 1.5; }
.notice-error { background: rgba(182, 52, 43, 0.08); color: #b6342b; border-left: 4px solid #b6342b; }
.notice-warn { background: rgba(168, 89, 15, 0.12); color: #8a4a0d; border-left: 4px solid #8a4a0d; }

.confirm { border-radius: 28px; padding: 48px; max-width: 640px; }
.confirm .mark {
  width: 56px; height: 56px; border-radius: 999px; background: rgba(63, 140, 108, 0.12);
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
}
.confirm h1 { font-size: 40px; margin-bottom: 12px; }
.confirm p { margin: 0 0 10px; }

.contact-side { display: flex; flex-direction: column; gap: 14px; }
.contact-item { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.contact-item svg { flex: none; margin-top: 2px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 56px; align-items: start; }

.err-code { font-family: var(--display); font-size: 120px; font-weight: 700; color: var(--accent); line-height: 1; letter-spacing: -0.03em; }

/* ---------- Scroll-Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .card:hover, .nav-cta:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  :root { --pad-x: 48px; }
  .hero h1 { font-size: 68px; }
  .h2 { font-size: 44px; }
  .h2-sm { font-size: 38px; }
  .cta h2 { font-size: 40px; }
  .proof-nums { gap: 40px; }
  .dark-block { padding: 44px; }
  .dark-block h2 { font-size: 38px; }
  .hw-chips { justify-content: flex-start; }
}

@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 40px; padding-bottom: 56px; }
  .hero-lead { max-width: none; }
  .vignettes { height: auto; display: flex; flex-direction: column; gap: 14px; }
  .vig { position: static; width: auto; transform: none; }
  .dark-block { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .price-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .proof { flex-direction: column; align-items: flex-start; gap: 24px; padding: 26px 0; }
  .proof-text { max-width: none; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-2, .span-3 { grid-column: span 1; }
  .card-split { flex-direction: row; }
}

@media (max-width: 760px) {
  :root { --pad-x: 24px; }
  .nav { padding: 22px var(--pad-x); }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: var(--pad-x); right: var(--pad-x);
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(255, 255, 255, 0.94); border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow); border-radius: 20px; padding: 12px; font-size: 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: 14px; }
  .nav-cta { text-align: center; }

  .hero h1 { font-size: 46px; line-height: 1.0; }
  .hero-lead { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-actions .btn { width: 100%; font-size: 16px; padding: 16px; }

  .glow { top: -140px; right: 0; width: 260px; height: 380px; background: radial-gradient(190px at calc(100% - 70px) 50%, rgba(14, 124, 134, 0.16), rgba(14, 124, 134, 0)); }

  .h2 { font-size: 32px; }
  .h2-sm { font-size: 30px; }
  .sec-lead { font-size: 16px; margin-bottom: 28px; }
  .bento { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .card { padding: 24px; border-radius: 22px; }
  .card h3, .card.span-2 h3 { font-size: 21px; }
  .card-split { flex-direction: column; align-items: flex-start; gap: 18px; }
  .phone-badge { width: 100%; height: 110px; }

  .proof-nums { gap: 28px 40px; }
  .proof-num { font-size: 32px; }

  .dark-block { padding: 32px 24px; border-radius: 26px; }
  .dark-block h2 { font-size: 30px; }
  .dark-block p { font-size: 16px; }
  .hw-chip { padding: 10px 18px; font-size: 14px; }

  .price-card { padding: 26px; border-radius: 22px; }
  .price-value { font-size: 32px; }

  .cta { flex-direction: column; align-items: flex-start; padding: 48px 0; }
  .cta h2 { font-size: 32px; }
  .cta h2 small { font-size: 18px; }
  .cta .btn { width: 100%; }

  .footer { flex-direction: column; gap: 12px; }

  .page { padding: 32px var(--pad-x) 64px; }
  .page h1 { font-size: 38px; }
  .page-lead { font-size: 17px; margin-bottom: 28px; }
  .legal-card { padding: 24px; border-radius: 20px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-actions .btn { width: 100%; }
  .confirm { padding: 30px 24px; }
  .confirm h1 { font-size: 30px; }
  .err-code { font-size: 84px; }
}

@media (min-width: 1441px) {
  body { display: flex; flex-direction: column; align-items: center; }
  body > * { width: 100%; max-width: 1440px; }
}
