/* Joyce-Clean — Stylesheet
   Farben, Typografie und Komponenten. Systemschriften (keine externen Server). */

:root {
  --ink: #10262b;
  --ink-soft: #40575c;
  --ink-faint: #6a7c80;
  --bg: #ffffff;
  --bg-alt: #f2f7f7;
  --bg-deep: #0a343d;
  --line: #dfe9e9;
  --line-soft: #edf3f3;

  --brand: #0e5563;
  --brand-deep: #0a3d48;
  --brand-tint: #e6f1f2;

  --zone-red: #c1442e;
  --zone-blue: #2f6db5;
  --zone-green: #3e8e5a;
  --zone-yellow: #dfa22f;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16,38,43,.05), 0 12px 30px -18px rgba(16,38,43,.28);
  --maxw: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); font-weight: 800; }
p { margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Zone ribbon (signature) ---------- */
.zone-ribbon { display: flex; height: 4px; }
.zone-ribbon span { flex: 1; }
.zone-ribbon span:nth-child(1) { background: var(--zone-red); }
.zone-ribbon span:nth-child(2) { background: var(--zone-blue); }
.zone-ribbon span:nth-child(3) { background: var(--zone-green); }
.zone-ribbon span:nth-child(4) { background: var(--zone-yellow); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); font-size: 1.22rem; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; flex: none; box-shadow: inset 0 0 0 1px rgba(16,38,43,.06); }
.brand-mark i { display: block; }
.brand-mark i:nth-child(1) { background: var(--zone-red); }
.brand-mark i:nth-child(2) { background: var(--zone-blue); }
.brand-mark i:nth-child(3) { background: var(--zone-yellow); }
.brand-mark i:nth-child(4) { background: var(--zone-green); }
.brand b { font-weight: 800; }
.brand span { color: var(--brand); }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-soft); font-weight: 600; font-size: .96rem; padding: 8px 12px; border-radius: 8px; }
.nav-links a:hover { color: var(--ink); background: var(--bg-alt); text-decoration: none; }
.nav-links a.active { color: var(--brand); }
.nav-cta { margin-left: 6px; }

.menu-toggle { display: none; border: 1px solid var(--line); background: #fff; border-radius: 8px; width: 44px; height: 40px; cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: .2s; }
.menu-toggle span::before { content: ""; position: absolute; top: -6px; }
.menu-toggle span::after { content: ""; position: absolute; top: 6px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .98rem; padding: 13px 22px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, background .18s ease, color .18s ease, border-color .18s ease; line-height: 1; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); color: #fff; transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--brand-deep); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand); background: var(--brand-tint); transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--brand-deep); }
.btn-light:hover { background: #eef6f6; transform: translateY(-1px); }
.btn-lg { padding: 15px 26px; font-size: 1.02rem; }

/* ---------- Eyebrow / headings ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 9px; text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 700; color: var(--brand); margin: 0 0 18px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand); display: inline-block; }

.section { padding: clamp(3.6rem, 7vw, 6.4rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-deep { background: var(--bg-deep); color: #dbe9ea; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.55rem); }
.section-head p { margin-top: 16px; color: var(--ink-soft); font-size: 1.08rem; }
.section-deep .eyebrow, .section-deep .eyebrow::before { color: #7fd0d8; background-color: transparent; }
.section-deep .eyebrow::before { background: #7fd0d8; }
.section-deep h2 { color: #fff; }
.section-deep p { color: #a9c4c7; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 6vw, 5.4rem) 0 clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--line); background:
  radial-gradient(1200px 400px at 85% -10%, var(--brand-tint), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); }
.hero-sub { margin-top: 22px; font-size: 1.16rem; color: var(--ink-soft); max-width: 40ch; }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-tags { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-faint); font-size: .92rem; font-weight: 600; }
.hero-tags span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* credential card in hero */
.cred-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.cred-card h3 { font-size: 1.02rem; letter-spacing: 0; margin-bottom: 6px; }
.cred-card .cred-sub { color: var(--ink-faint); font-size: .9rem; margin-bottom: 18px; }
.cred-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cred-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--ink); font-size: .98rem; }
.cred-list svg { flex: none; margin-top: 1px; }
.cred-stats { display: flex; gap: 8px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.cred-stats div { flex: 1; }
.cred-stats b { display: block; font-size: 1.35rem; color: var(--brand-deep); letter-spacing: -0.02em; }
.cred-stats small { color: var(--ink-faint); font-size: .78rem; font-weight: 600; }

/* ---------- Trust bar ---------- */
.trust-bar { border-bottom: 1px solid var(--line); background: #fff; }
.trust-bar .container { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: space-between; align-items: center; padding-top: 22px; padding-bottom: 22px; }
.trust-item { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink-soft); font-size: .95rem; }
.trust-item svg { flex: none; color: var(--brand); }

/* ---------- Feature grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfe0e0; }
.card .ic { width: 44px; height: 44px; border-radius: 10px; background: var(--brand-tint); color: var(--brand-deep); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.card h3 { font-size: 1.14rem; letter-spacing: -0.01em; margin-bottom: 9px; }
.card p { color: var(--ink-soft); font-size: .98rem; }
.card ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.card ul li { position: relative; padding-left: 20px; color: var(--ink-soft); font-size: .95rem; }
.card ul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 2px; background: var(--brand); }
.card .tag { display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--brand); margin-bottom: 12px; }

/* ---------- Zones section (signature) ---------- */
.zones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.zone-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.zone-card .bar { height: 8px; }
.zone-card .body { padding: 22px; }
.zone-card .swatch { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.05rem; margin-bottom: 8px; }
.zone-card .swatch i { width: 14px; height: 14px; border-radius: 4px; }
.zone-card p { color: var(--ink-soft); font-size: .95rem; }
.z-red .bar, .z-red i { background: var(--zone-red); }
.z-blue .bar, .z-blue i { background: var(--zone-blue); }
.z-green .bar, .z-green i { background: var(--zone-green); }
.z-yellow .bar, .z-yellow i { background: var(--zone-yellow); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { padding: 30px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; position: relative; }
.step .num { font-size: .8rem; font-weight: 800; letter-spacing: .1em; color: var(--brand); margin-bottom: 16px; display: block; }
.step h3 { font-size: 1.14rem; margin-bottom: 9px; }
.step p { color: var(--ink-soft); font-size: .98rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--brand-deep); color: #fff; border-radius: 18px; padding: clamp(2.4rem, 5vw, 3.6rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); max-width: 22ch; }
.cta-band p { color: #a9c4c7; margin-top: 10px; max-width: 46ch; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.quote { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; background: #fff; display: flex; flex-direction: column; }
.stars { color: var(--zone-yellow); letter-spacing: 2px; font-size: .95rem; margin-bottom: 16px; }
.quote blockquote { margin: 0; color: var(--ink); font-size: 1.04rem; line-height: 1.6; }
.quote .who { display: flex; align-items: center; gap: 13px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.quote .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-deep); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .9rem; flex: none; }
.quote .who b { display: block; font-size: .98rem; }
.quote .who small { color: var(--ink-faint); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(2.8rem, 5vw, 4.4rem) 0 clamp(2.2rem, 4vw, 3.2rem); background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 20ch; }
.page-hero p { margin-top: 18px; color: var(--ink-soft); font-size: 1.12rem; max-width: 60ch; }

/* ---------- Stat row ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { border-left: 3px solid var(--brand); padding-left: 18px; }
.stat b { display: block; font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--brand-deep); letter-spacing: -0.02em; }
.stat small { color: var(--ink-soft); font-weight: 600; }

/* ---------- Split (about) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.prose p { color: var(--ink-soft); margin-top: 16px; }
.prose p:first-child { margin-top: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; align-items: start; }
.contact-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ic { width: 42px; height: 42px; border-radius: 10px; background: var(--brand-tint); color: var(--brand-deep); display: flex; align-items: center; justify-content: center; flex: none; }
.contact-list b { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); }
.contact-list a, .contact-list span { color: var(--ink); font-weight: 600; }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.field .req { color: var(--zone-red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin-top: 14px; color: var(--ink-faint); font-size: .86rem; }
.form-status { border-radius: 10px; padding: 14px 16px; font-weight: 600; margin-bottom: 20px; font-size: .95rem; }
.form-status.ok { background: #e8f5ec; color: #1f6b3a; border: 1px solid #bfe4cb; }
.form-status.err { background: #fbeae7; color: #9a3320; border: 1px solid #f0c8c0; }
.hidden { display: none; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 4px 22px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 700; color: var(--brand); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--ink-soft); padding: 0 0 18px; margin: 0; }

/* ---------- Legal ---------- */
.legal { max-width: 800px; }
.legal h2 { font-size: 1.3rem; margin: 40px 0 12px; letter-spacing: -0.01em; }
.legal h3 { font-size: 1.05rem; margin: 28px 0 8px; letter-spacing: 0; }
.legal p { color: var(--ink-soft); margin-top: 12px; }
.legal .addr { line-height: 1.9; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); color: #a9c4c7; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.site-footer .brand { color: #fff; }
.site-footer .about { margin-top: 16px; max-width: 34ch; color: #90b0b4; font-size: .95rem; }
.footer-col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a, .footer-col span { color: #a9c4c7; font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; color: #83a3a7; }
.footer-bottom a { color: #a9c4c7; }

/* ---------- Reveal animation ---------- */
/* Nur wenn JavaScript aktiv ist, werden Elemente zunächst ausgeblendet. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .grid-3, .steps, .zones { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 16px 18px; box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; }
  .nav-cta { margin: 6px 0 0; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .grid-3, .grid-2, .steps, .zones, .stat-row, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cred-stats { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* ---------- Brand logo image (replaces the coloured square mark) ---------- */
.brand-logo { height: 44px; width: auto; display: block; }
.site-footer .brand-logo { height: 40px; }
