/* Q/OS-CalQ – Webseite im Stil „Technisches Büro“ (Graphit, Weiß, Rot).
   Alle Pfade sind relativ, damit der Ordner ohne Änderung auf eine eigene Domain umziehen kann. */
:root {
  --graphite: #202322;
  --graphite-2: #2c302f;
  --graphite-3: #3a3f3d;
  --paper: #ffffff;
  --paper-2: #f4f4f3;
  --ink: #1d1f1e;
  --muted: #5f6462;
  --line: #dcdedd;
  --red: #df2029;
  --red-dark: #b8161e;
  --max: 1120px;
  --shadow: 0 24px 60px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.25);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-dark); text-underline-offset: 3px; }
.wrap { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }

/* Technischer Hintergrund: feines Raster wie Millimeterpapier */
.grid-bg {
  background-color: var(--graphite);
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
}

/* Kopf */
.top { background: var(--graphite); color: #fff; position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(255,255,255,.08); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: .2px; }
.brand img { width: 38px; height: 38px; }
.brand small { font-weight: 500; color: #b9bdbb; font-size: .85rem; }
.top nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.top nav a { color: #e6e8e7; text-decoration: none; font-size: .95rem; }
.top nav a:hover, .top nav a[aria-current] { color: #fff; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.top nav a.cta { background: var(--red); color: #fff; padding: 8px 14px; border-radius: 5px; font-weight: 600; text-decoration: none; }
.top nav a.cta:hover { background: var(--red-dark); }

/* Einstieg */
.hero { color: #fff; padding: 64px 0 0; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 140px; background: linear-gradient(to bottom, transparent, var(--paper)); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero-text { max-width: 720px; }
.hero h1 { margin: 0 0 16px; font-size: clamp(2.1rem, 5.6vw, 3.6rem); line-height: 1.05; letter-spacing: -.025em; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero p.lead { max-width: 620px; margin: 0 0 28px; color: #d3d6d5; font-size: 1.15rem; }
.badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 5px 12px; border: 1px solid #4a4f4d; border-radius: 999px; color: #e6e8e7; font-size: .85rem; background: rgba(0,0,0,.25); }
.badge b { color: #fff; background: var(--red); font-weight: 700; padding: 1px 8px; border-radius: 999px; font-size: .78rem; letter-spacing: .04em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 6px; font-weight: 600; text-decoration: none; border: 1px solid transparent; font-size: 1.02rem; }
.button svg { width: 20px; height: 20px; }
.button.primary { background: var(--red); color: #fff; box-shadow: 0 8px 24px rgba(223,32,41,.35); }
.button.primary:hover { background: var(--red-dark); }
.button.secondary { border-color: #5a5f5d; color: #fff; background: rgba(0,0,0,.2); }
.button.secondary:hover { border-color: #fff; }
.button.dark { background: var(--graphite); color: #fff; }
.button.dark:hover { background: var(--graphite-3); }
.hint { color: #b9bdbb; font-size: .9rem; margin: 14px 0 0; }

/* Bildschirmfotos im Rahmen */
.hero-shot { position: relative; margin: 44px auto 0; max-width: 820px; }
.window { background: #15181700; border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid rgba(255,255,255,.12); }
.window-bar { height: 34px; background: #2a2e2c; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #4b514f; }
.window-bar i:first-child { background: var(--red); }
.window-bar span { margin-left: 10px; color: #b9bdbb; font-size: .78rem; }
.phone { position: absolute; right: -4%; bottom: -8%; width: clamp(110px, 17%, 170px); border-radius: 22px; border: 6px solid #151817; box-shadow: var(--shadow); overflow: hidden; background: #151817; z-index: 2; }
.phone img { width: 100%; }

/* Leiste mit Stichworten */
.strip { background: var(--paper); padding: 28px 0 8px; }
.strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 14px; justify-content: center; }
.strip li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .92rem; color: var(--ink); background: var(--paper); }
.strip li svg { width: 16px; height: 16px; color: var(--red); }

/* Inhalt */
main section { padding: 72px 0; }
main section.alt { background: var(--paper-2); }
.eyebrow { display: block; color: var(--red-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: 8px; }
h2 { margin: 0 0 10px; font-size: clamp(1.6rem, 3.4vw, 2.2rem); line-height: 1.15; letter-spacing: -.015em; }
h2 + p.sub { margin: 0 0 36px; color: var(--muted); max-width: 680px; font-size: 1.08rem; }
h3 { margin: 0 0 6px; font-size: 1.1rem; }

/* Bild-Text-Reihen */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 40px; }
.feature:first-of-type { margin-top: 0; }
.feature.flip .feature-img { order: 2; }
.feature-img { max-width: 480px; width: 100%; justify-self: center; border-radius: 8px; box-shadow: 0 18px 50px rgba(0,0,0,.18), 0 1px 3px rgba(0,0,0,.12); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.feature-text h3 { font-size: 1.5rem; margin-bottom: 10px; }
.feature-text p { color: var(--muted); margin: 0 0 14px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 4px; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/13px no-repeat; }

/* Karten */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.card p { margin: 0; color: var(--muted); }
.card .ico { width: 40px; height: 40px; border-radius: 8px; background: var(--graphite); color: #fff; display: grid; place-items: center; margin-bottom: 14px; }
.card .ico svg { width: 22px; height: 22px; }
.card.price { text-align: center; }
.card.price .amount { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 2px; }
.card.price .amount small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.card.price.best { border-color: var(--red); box-shadow: 0 0 0 3px rgba(223,32,41,.12); }
.card.price .tag { display: inline-block; margin-bottom: 8px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--red-dark); }

/* Ablauf – dunkle Bahn */
.steps-band { color: #fff; }
.steps-band h2, .steps-band .eyebrow { color: #fff; }
.steps-band h2 + p.sub { color: #c9cdcb; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.steps li { counter-increment: step; position: relative; padding: 24px 22px 22px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; color: var(--red); font-weight: 800; font-size: 1.6rem; letter-spacing: -.02em; margin-bottom: 8px; }
.steps li strong { display: block; font-size: 1.1rem; margin-bottom: 6px; }
.steps li span { color: #c9cdcb; }

/* App-Galerie */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 190px)); justify-content: center; gap: 22px; margin: 8px 0 32px; }
.gallery figure { margin: 0; }
.gallery .shot { border-radius: 18px; border: 5px solid #151817; background: #151817; overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,.22); }
.gallery figcaption { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 10px; }
.tablet { max-width: 720px; margin: 24px auto 0; border-radius: 14px; border: 8px solid #151817; background: #151817; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.25); }

/* Vergleich */
.compare { width: 100%; border-collapse: collapse; font-size: .97rem; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare th { background: var(--graphite); color: #fff; font-weight: 600; }
.compare th:nth-child(2) { color: #fff; background: var(--red); }
.compare td.yes { color: var(--ink); font-weight: 700; }
.compare td.yes::before { content: "✓ "; color: var(--red); }
.compare td.no { color: var(--muted); }
.table-scroll { overflow-x: auto; }

/* Abschluss / Download */
.cta-band { color: #fff; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta-band p { color: #c9cdcb; max-width: 600px; margin: 0 auto 26px; font-size: 1.08rem; }
.cta-band .actions { justify-content: center; }
.cta-band .logo { width: 84px; height: 84px; margin: 0 auto 18px; }
.status { padding: 14px 18px; border-left: 4px solid var(--red); background: var(--paper-2); color: var(--ink); border-radius: 0 6px 6px 0; }

/* Rechtstexte */
.legal { max-width: 780px; padding: 40px 0 56px; }
.legal h1 { margin: 0 0 6px; font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.15; }
.legal .stand { color: var(--muted); margin: 0 0 28px; }
.legal h2 { margin: 32px 0 8px; font-size: 1.2rem; padding-left: 10px; border-left: 3px solid var(--red); }
.legal p, .legal ul { margin: 0 0 14px; }
.legal address { font-style: normal; }

/* Fuß */
footer { background: var(--graphite); color: #b9bdbb; padding: 32px 0; font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: #e6e8e7; }

@media (max-width: 860px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 22px; }
  .feature.flip .feature-img { order: 0; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 170px)); }
}
@media (max-width: 560px) {
  .top .wrap { flex-direction: column; align-items: flex-start; padding: 12px 0; }
  .top nav { gap: 14px; }
  .hero { padding-top: 36px; }
  main section { padding: 52px 0; }
  .phone { display: none; }
  .window-bar span { display: none; }
}
