/* QMessage Kunden-Website — TASK-575
 *
 * Colour palette verified against cucos.de (2026-07-15), not guessed:
 *   #399320  primary green   — stacks_page_page10.css:11853 (15 occurrences)
 *   #2E8419  hover/active    — stacks_page_page10.css:7629
 *   #68D83F / #58BF36 / #45A12B — the three faces of the logo cube,
 *                                 CUCOS_Nur_Bildmarke.svg (.st1/.st0/.st2)
 * The logo greens are lighter than the website primary. Do not mix them.
 *
 * No external fonts or CDNs: loading Google Fonts leaks the visitor IP to
 * Google and requires consent (LG Muenchen 3 O 17493/20). System stack only.
 */

:root {
  --green: #399320;
  --green-hover: #2e8419;
  --green-light: #58bf36;
  --green-bright: #68d83f;
  --green-dark: #45a12b;

  --ink: #1c1f1a;
  --body: #454b43;
  --muted: #6c7268;
  --line: #e2e6de;
  --surface: #ffffff;
  --surface-alt: #f4f7f1;
  --hero: #16200f;

  --radius: 14px;
  --maxw: 1120px;
  --gutter: clamp(20px, 5vw, 40px);

  --shadow-sm: 0 1px 3px rgba(22, 32, 15, 0.08);
  --shadow-md: 0 6px 24px rgba(22, 32, 15, 0.1);
  --shadow-lg: 0 18px 50px rgba(22, 32, 15, 0.16);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f5ef;
    --body: #c2c9bc;
    --muted: #8b937f;
    --line: #2c3327;
    --surface: #12170e;
    --surface-alt: #1a2115;
    --hero: #0d1408;
    --green: #58bf36;
    --green-hover: #68d83f;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--body);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.18rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--green); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--green-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section--alt { background: var(--surface-alt); }
.lede { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--body); max-width: 62ch; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--green);
  margin: 0 0 0.9em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-hover); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--green); color: var(--green); }
.btn--onDark { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn--onDark:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }
.btn--sm { padding: 0.55em 1.1em; font-size: 0.92rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.brand img { width: 32px; height: 32px; }
.brand__name { font-weight: 700; color: var(--ink); font-size: 1.16rem; letter-spacing: -0.02em; }
.brand__by { display: block; font-size: 0.68rem; color: var(--muted); font-weight: 400; letter-spacing: 0; }

.nav { display: flex; gap: 26px; align-items: center; }
.nav a { color: var(--body); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav a:hover { color: var(--green); }
@media (max-width: 860px) { .nav { display: none; } }

/* ---------- language switch ----------
 * Plain <details>: works without JavaScript and without cookies, so the page
 * stays consent-free. */
.langsw { position: relative; }
.langsw summary {
  list-style: none;
  cursor: pointer;
  padding: 0.45em 0.7em;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--body);
  user-select: none;
  white-space: nowrap;
}
.langsw summary::-webkit-details-marker { display: none; }
.langsw summary::after {
  content: "";
  display: inline-block;
  margin-left: 0.5em;
  width: 6px; height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.langsw[open] summary { border-color: var(--green); color: var(--green); }
.langsw ul {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  min-width: 150px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
}
.langsw li a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--body);
  font-size: 0.92rem;
}
.langsw li a:hover { background: var(--surface-alt); color: var(--green); }
.langsw li a[aria-current="true"] { color: var(--green); font-weight: 600; }

.legal-note {
  background: var(--surface-alt);
  border-left: 3px solid var(--green);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.6em;
}

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(120% 120% at 82% 8%, rgba(88, 191, 54, 0.22) 0%, transparent 55%),
    var(--hero);
  color: #fff;
  padding: clamp(60px, 9vw, 108px) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
}
.hero h1 { color: #fff; max-width: 15ch; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero__lede { color: rgba(255, 255, 255, 0.82); font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__note { margin-top: 22px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }
.hero__shot { display: flex; justify-content: center; }
.hero__shot img {
  width: min(280px, 78vw);
  border-radius: 26px;
  border: 7px solid #05080a;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
}

/* ---------- generic grids ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.section--alt .card { background: var(--surface); }
.card__icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--green) 12%, transparent);
  color: var(--green);
  margin-bottom: 16px;
}
.card__icon svg { width: 22px; height: 22px; }
.card p { margin-bottom: 0; font-size: 0.97rem; }

/* ---------- split (text + screenshot) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.split--flip .split__media { order: -1; }
.split__media { display: flex; justify-content: center; }
.split__media img {
  width: min(260px, 70vw);
  border-radius: 24px;
  border: 6px solid var(--ink);
  box-shadow: var(--shadow-md);
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
}

/* ---------- checklist ---------- */
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 13px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; }
.checks li::before {
  content: "";
  flex: 0 0 20px;
  height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--green) 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.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- security band ---------- */
.band {
  background: var(--hero);
  color: #fff;
  border-radius: 20px;
  padding: clamp(30px, 5vw, 52px);
}
.band h2 { color: #fff; }
.band .lede { color: rgba(255, 255, 255, 0.8); }
.band .checks li { color: rgba(255, 255, 255, 0.9); }
.band__foot {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.62);
}

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  padding: 18px 40px 18px 0;
  position: relative;
  list-style: none;
  font-size: 1.03rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px; top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 18px; margin: 0; font-size: 0.97rem; }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta__phone {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  margin-top: 8px;
}
.cta__phone:hover { color: var(--green); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  padding: 52px 0 30px;
  font-size: 0.92rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 34px;
}
@media (max-width: 720px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--ink); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--body); text-decoration: none; }
.site-footer a:hover { color: var(--green); text-decoration: underline; }
.site-footer__bar {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.86rem;
}

/* ---------- legal pages ---------- */
.legal { max-width: 760px; }
.legal h2 { margin-top: 1.8em; font-size: 1.4rem; }
.legal h3 { margin-top: 1.4em; }
.legal table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: 0.93rem; }
.legal th, .legal td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; vertical-align: top; }
.legal th { background: var(--surface-alt); color: var(--ink); font-weight: 600; }
.table-scroll { overflow-x: auto; }

.skip {
  position: absolute;
  left: -9999px;
  background: var(--green);
  color: #fff;
  padding: 10px 18px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; top: 0; }
