/* =====================================================================
   CaRD GmbH — Corporate Website
   Plain, dependency-free stylesheet. No external fonts, no trackers.
   Brand: CaRD corporate blue. System font stack (fully local).
   ===================================================================== */

:root {
  --navy:      #0a2640;
  --navy-800:  #0e3357;
  --blue:      #0e6cb4;   /* CaRD blue */
  --blue-700:  #0a5290;
  --blue-300:  #6fb2e0;
  --blue-50:   #eaf4fc;
  --accent:    #ff7a00;
  --accent-600:#e56d00;
  --ink:       #1b2733;
  --muted:     #5a6b7b;
  --line:      #e2e9f0;
  --bg:        #ffffff;
  --bg-soft:   #f4f8fc;
  --bg-navy:   #0a2640;
  --ok:        #1f9d55;
  --radius:    14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(10,38,64,.06), 0 2px 8px rgba(10,38,64,.05);
  --shadow:    0 10px 30px rgba(10,38,64,.10);
  --shadow-lg: 0 24px 60px rgba(10,38,64,.16);
  --maxw:      1160px;
  --font:      system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4 { color: var(--navy); line-height: 1.18; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.15rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.15rem; }
li { margin: .3rem 0; }
strong { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue-300); outline-offset: 2px; border-radius: 4px; }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 76px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--bg-navy); color: #d8e6f2; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--tight { padding: 54px 0; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue-700); margin-bottom: .6rem;
}
.section--navy .eyebrow { color: var(--blue-300); }
.lead { font-size: 1.16rem; color: var(--muted); max-width: 62ch; }
.section--navy .lead { color: #b9cde0; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.mt0{margin-top:0}.mb0{margin-bottom:0}

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 18px; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand img { height: 38px; width: auto; }
.brand .sub { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 9px 13px; border-radius: 8px; color: var(--navy);
  font-weight: 600; font-size: .96rem;
}
.nav-links a:hover { background: var(--blue-50); text-decoration: none; }
.nav-links a.active { color: var(--blue-700); }
.has-sub { position: relative; }
.submenu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 8px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .16s ease;
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { padding: 9px 11px; font-size: .92rem; font-weight: 600; }
.submenu a small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; gap: 2px; align-items: center; font-size: .82rem; font-weight: 700; }
.lang a { padding: 5px 8px; border-radius: 7px; color: var(--muted); }
.lang a.on { background: var(--navy); color: #fff; }
.lang a:hover { text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; cursor: pointer;
  padding: 13px 22px; border-radius: 10px; font-weight: 700; font-size: .98rem;
  border: 1px solid transparent; transition: .15s ease; text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(255,122,0,.28); }
.btn-primary:hover { background: var(--accent-600); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(14,108,180,.28); }
.btn-blue:hover { background: var(--blue-700); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue-300); background: var(--blue-50); }
.btn-light { background: #fff; color: var(--navy); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(14,108,180,.18), transparent 60%),
    radial-gradient(900px 460px at 0% 110%, rgba(255,122,0,.10), transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--line);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; padding-top: 70px; padding-bottom: 70px; }
.hero h1 span { color: var(--blue-700); }
.hero .lead { margin-bottom: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .92rem; color: var(--muted); font-weight: 600; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 24px 50px rgba(10,38,64,.18)); }
.hero-art img.photo { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* badges */
.tick { color: var(--ok); }
.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  font-size: .85rem; font-weight: 700; color: var(--navy); box-shadow: var(--shadow-sm);
}

/* ---------- stat band ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.stat { text-align: center; }
.stat b { display: block; font-size: clamp(1.9rem,4vw,2.6rem); color: var(--blue-700); font-weight: 800; line-height: 1; }
.section--navy .stat b { color: var(--blue-300); }
.stat span { font-size: .92rem; color: var(--muted); font-weight: 600; }
.section--navy .stat span { color: #aac4dc; }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: .18s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #d2e2f0; }
.card .ico {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue-700); margin-bottom: 16px;
}
.card .ico svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); margin-bottom: .6rem; font-size: .98rem; }
.card .more { font-weight: 700; font-size: .92rem; color: var(--blue-700); display: inline-flex; gap: 5px; align-items: center; }
.card-link { display: block; color: inherit; }
.card-link:hover { text-decoration: none; }

/* feature list with check */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 30px; margin: .55rem 0; color: var(--ink); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .38em; width: 18px; height: 18px;
  background: var(--ok); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/14px no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/14px no-repeat;
}

/* split content */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split.rev .split-media { order: 2; }
.split-media svg, .split-media img { width: 100%; border-radius: var(--radius); }
.split-media img.photo { aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
.media-caption { font-size: .76rem; color: var(--muted); margin: 8px 2px 0; }
.service-banner { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.service-media .card { margin-top: 18px; }
.split.split--top { align-items: start; }
.split--top .prose > :first-child { margin-top: 0; }

/* CTA band with a photographic background (kept readable via overlay) */
.cta-band.cta-photo { background-blend-mode: normal; position: relative; }
.cta-band.cta-photo::before {
  content: ""; position: absolute; inset: 0; border-radius: 20px;
  background: linear-gradient(120deg, rgba(10,38,64,.86), rgba(10,82,144,.80));
}
.cta-band.cta-photo > * { position: relative; }

/* ---------- partner / logo strip ---------- */
.logos-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px 56px; }
.logos-strip img { height: 46px; width: auto; opacity: .85; filter: grayscale(100%); transition: .2s; }
.logos-strip img:hover { opacity: 1; filter: none; }
.logos-strip.color img { filter: none; opacity: 1; }

/* partner / tech logo badges (clean white cards, background-agnostic) */
.tech-logos { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center; gap: 18px; }
.tech-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-sm); padding: 16px 26px; min-height: 84px; min-width: 156px; flex: 0 0 auto;
}
.tech-badge img { height: 38px; width: auto; max-width: 180px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--blue-700) 100%);
  color: #fff; border-radius: 20px; padding: 48px; text-align: center;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe1f0; max-width: 60ch; margin: 0 auto 24px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- breadcrumb / page hero ---------- */
.page-hero {
  background:
    radial-gradient(800px 320px at 85% -30%, rgba(14,108,180,.16), transparent 60%),
    linear-gradient(180deg,#fff,var(--bg-soft));
  border-bottom: 1px solid var(--line); padding: 56px 0 46px;
}
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.page-hero h1 { margin-bottom: .35em; }
.page-hero .lead { font-size: 1.12rem; }

/* prose */
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: .4rem 0; }

/* faq */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 4px 22px; margin-bottom: 12px; box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--navy); padding: 16px 0;
  list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--blue); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details p { color: var(--muted); padding: 14px 0 6px; margin: 0; }

/* ---------- contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: .98rem; color: var(--ink); background: #fff; transition: .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(14,108,180,.14); }
.field textarea { min-height: 140px; resize: vertical; }
.field-check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.field-check input { width: auto; margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .82rem; color: var(--muted); }
.contact-info { }
.contact-info .info-item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-info .info-item .ico { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 11px; background: var(--blue-50); color: var(--blue-700); display: grid; place-items: center; }
.contact-info .info-item .ico svg { width: 22px; height: 22px; }
.contact-info b { display: block; color: var(--navy); }
.alert { padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; font-weight: 600; font-size: .95rem; }
.alert-ok { background: #e7f6ee; color: #14663a; border: 1px solid #b6e2c8; }
.alert-err { background: #fdecec; color: #9a2222; border: 1px solid #f4c5c5; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #aebfd0; padding: 60px 0 26px; font-size: .94rem; }
.site-footer a { color: #cfe0ee; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-grid h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: .45rem 0; }
.footer-brand img { height: 34px; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: .95; }
.footer-brand p { color: #93a8bd; max-width: 32ch; font-size: .9rem; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.footer-badge { display: inline-flex; align-items: center; justify-content: center; background: #fff; border-radius: 8px; padding: 9px 16px; box-shadow: var(--shadow-sm); min-width: 120px; min-height: 56px; }
.footer-badge img { height: 36px; width: auto; filter: none; opacity: 1; display: block; margin: 0 auto; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  font-size: .85rem; color: #8aa0b6;
}
.footer-bottom a { color: #8aa0b6; }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.trademark { font-size: .78rem; color: #6f879e; margin-top: 8px; max-width: 70ch; }

/* utilities */
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.tag { display:inline-block; background: var(--blue-50); color: var(--blue-700); font-weight:700; font-size:.78rem; padding:4px 10px; border-radius:999px; }
hr.soft { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 30px; }
  .hero-art { max-width: 460px; margin: 0 auto; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .split.rev .split-media { order: 0; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .stats { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px; gap: 2px; box-shadow: var(--shadow);
  }
  .nav.open .nav-links a { padding: 12px; }
  .nav.open .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding-left: 12px; }
  .cta-band { padding: 34px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
