/* =====================================================================
   CaRD Plan – Produktseite. Ohne externe Schriften, ohne Skripte von
   Dritten, ohne Cookies. Farben wie die Anwendung (CaRD-Werkzeugschema).
   ===================================================================== */
:root {
  --navy: #123C6C;
  --navy-800: #0e3357;
  --blue: #1B5494;
  --blue-700: #164477;
  --blue-tint: #e8eef7;
  --orange: #E8770D;
  --orange-600: #cf6707;
  --green: #2e8b3d;
  --yellow: #d9a400;
  --red: #c62828;
  --ink: #1f2937;
  --muted: #5c6b7a;
  --line: #dfe3ea;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(18,60,108,.06), 0 2px 8px rgba(18,60,108,.06);
  --shadow: 0 12px 34px rgba(18,60,108,.14);
  --maxw: 1160px;
  /* Häkchen und Pfeil aus dem Icon-Set (branding/icons/icons.json: check, chevron-down) */
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5l4.8 4.8L19.5 7'/%3E%3C/svg%3E");
  --i-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::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.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
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(1.9rem, 3.6vw, 2.75rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.15rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-800) 100%); color: #d8e6f2; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: #c5d6e6; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: .6rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 1000; }

/* ---------- Kopf ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 16px; min-height: 66px; }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0 0 0 auto; padding: 0; }
/* Einträge brechen nie in sich um („Cas d’usage“, „FR ⌄“) – was nicht in eine Zeile passt, kommt ins Hamburger-Menü */
.nav-links a:not(.btn) { display: block; padding: 8px 10px; border-radius: 8px; color: var(--navy); text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap; }
.nav-links a:not(.btn):hover { background: var(--blue-tint); }
.nav-cta { margin-left: 12px; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: 12px 20px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 1px solid transparent; transition: .15s; white-space: nowrap; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(232,119,13,.28); }
.btn-primary:hover { background: var(--orange-600); color: #fff; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--blue-tint); }
.btn-sm { padding: 8px 14px; font-size: .9rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; background: radial-gradient(1200px 500px at 15% -10%, var(--blue-tint) 0%, transparent 60%), #fff; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 36px; align-items: center; }   /* Bild größer als Text */
.hero .lead { font-size: 1.2rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 20px; }
.hero-facts { display: flex; gap: 18px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: .95rem; }
.hero-facts li::before { content: ""; display: inline-block; width: 1em; height: 1em; margin-right: .35em; vertical-align: -0.15em; background: var(--green); -webkit-mask: var(--i-check) center / contain no-repeat; mask: var(--i-check) center / contain no-repeat; }
.shot { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; overflow: hidden; }
.shot img { width: 100%; }
.shot-caption { font-size: .85rem; color: var(--muted); margin-top: 10px; }

/* ---------- Karten ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); border-top: 4px solid var(--blue); }
.card--orange { border-top-color: var(--orange); }
.card--green { border-top-color: var(--green); }
.card .icon { line-height: 0; margin-bottom: 14px; color: var(--blue); }
.card .icon .ic { width: 34px; height: 34px; }
.card--orange .icon { color: var(--orange); }
.card--green .icon { color: var(--green); }
.features h3 .ic { width: 1.15em; height: 1.15em; vertical-align: -0.2em; margin-right: .2em; color: var(--orange); }
.card h3 { margin-bottom: .4rem; }
.card p { margin: 0; color: var(--muted); }
.card p + p { margin-top: .5rem; }

/* ---------- Ablauf ---------- */
.step { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: center; padding: 36px 0; border-top: 1px solid var(--line); }
.step:first-of-type { border-top: 0; }
.step.reverse .step-text { order: 2; }
.step-no { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; margin-bottom: 12px; }
.step ul { padding-left: 1.2rem; color: var(--muted); margin: 0; }
.step li { margin: .25rem 0; }

/* ---------- Funktionen ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.features h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; }
.features ul { list-style: none; padding: 0; margin: 0; }
.features li { padding: 7px 0 7px 26px; position: relative; border-top: 1px solid var(--line); color: var(--ink); font-size: .95rem; }
.features li::before { content: "•"; color: var(--orange); position: absolute; left: 8px; font-weight: 800; }
.features li:first-child { border-top: 0; }

/* ---------- Einsatzgebiete ---------- */
.uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.use { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.use h3 { font-size: 1.05rem; }
.use p { color: var(--muted); margin: 0; font-size: .95rem; }
.use .tag { display: inline-block; font-size: .75rem; font-weight: 700; color: var(--blue); background: var(--blue-tint); padding: 2px 8px; border-radius: 999px; margin-bottom: 8px; }

/* ---------- Mobil ---------- */
.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.phone { border-radius: 26px; border: 8px solid #0f1b2a; background: #0f1b2a; box-shadow: var(--shadow); overflow: hidden; max-width: 320px; margin: 0 auto; }
.phone img { width: 100%; }
.phone-caption { text-align: center; font-size: .9rem; color: var(--muted); margin-top: 10px; }

/* ---------- Betrieb ---------- */
.hosting { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.hosting .card { border-top-color: var(--orange); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { background: var(--blue-tint); color: var(--navy); font-weight: 600; font-size: .85rem; padding: 6px 12px; border-radius: 999px; }
.section--navy .chip { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Zahlen ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.stat { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-sm); padding: 18px 20px; }
.stat b { display: block; font-size: 1.7rem; color: #fff; }
.stat span { color: #c5d6e6; font-size: .9rem; }

/* ---------- Kontakt ---------- */
.cta { text-align: center; }
.cta .btn { font-size: 1.05rem; }
.contact-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; max-width: 720px; margin: 0 auto; box-shadow: var(--shadow-sm); }

/* ---------- Fuß ---------- */
.site-footer { background: var(--navy-800); color: #b9cde0; padding: 40px 0 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: .6rem; }
.site-footer a { color: #e6eef7; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 4px 0; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.14); margin-top: 24px; padding-top: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; }

/* ---------- Text-Seiten ---------- */
.page-hero { background: var(--bg-soft); padding: 40px 0 28px; border-bottom: 1px solid var(--line); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.prose { max-width: 820px; }
.prose h2 { font-size: 1.35rem; margin-top: 2rem; }
.prose h3 { font-size: 1.05rem; margin-top: 1.4rem; }
.prose ul { padding-left: 1.3rem; }

/* ---------- Lightbox (nur CSS, kein Skript) ---------- */
.lb { position: fixed; inset: 0; background: rgba(10,26,42,.86); display: none; align-items: center; justify-content: center; padding: 24px; z-index: 100; }
.lb:target { display: flex; }
.lb img { max-width: min(96vw, 1500px); max-height: 92vh; width: auto; height: auto; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.5); background: #fff; }
.lb .lb-close { position: absolute; top: 14px; right: 18px; color: #fff; font-size: 2rem; text-decoration: none; line-height: 1; }
.lb .lb-hint { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #c5d6e6; font-size: .85rem; }
a.zoom { display: block; cursor: zoom-in; }

/* ---------- Responsiv ---------- */
@media (max-width: 960px) {
  .hero-grid, .step, .hosting, .footer-grid { grid-template-columns: 1fr; }
  .step.reverse .step-text { order: 0; }
  .grid-3, .features, .uses, .phones { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .section { padding: 52px 0; }
  .hero { padding: 40px 0 28px; }
  .grid-3, .grid-2, .features, .uses, .phones { grid-template-columns: 1fr; }
}

/* ---------- Sprachwechsel, FAQ, Bild-Container (Generator tools/website/build.mjs) ---------- */
figure { margin: 0; }
section[id], .faq-item[id] { scroll-margin-top: 78px; }   /* Sprungziele unter der fixierten Kopfzeile */
/* Sprachwahl: fünf Sprachen als Aufklappliste (<details>, ohne Skript) */
.nav-lang { position: relative; display: flex; align-items: center; }
.lang-menu > summary { list-style: none; white-space: nowrap; cursor: pointer; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; margin-left: 6px; font-size: .8rem; font-weight: 600; letter-spacing: .06em; color: var(--navy); user-select: none; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary::after { content: ""; display: inline-block; width: .85em; height: .85em; margin-left: .3em; vertical-align: -0.1em; background: currentColor; -webkit-mask: var(--i-chevron) center / contain no-repeat; mask: var(--i-chevron) center / contain no-repeat; }
.lang-menu > summary:hover, .lang-menu[open] > summary { background: var(--blue-tint); }
.lang-menu > ul { position: absolute; right: 0; top: calc(100% + 8px); list-style: none; margin: 0; padding: 6px; min-width: 160px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 24px rgba(18,60,108,.12); z-index: 30; }
.nav-links .lang-menu a:not(.btn) { padding: 6px 10px; border-radius: 6px; font-size: .9rem; }
.nav-links .lang-menu a[aria-current="true"] { color: var(--orange); }
.footer-grid .lang-line a { display: inline; }
.faq { max-width: 860px; margin-left: auto; margin-right: auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 4px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1.05rem; }
.faq-item summary::after { content: "+"; color: var(--orange); font-weight: 800; font-size: 1.4rem; line-height: 1; flex-shrink: 0; }
.faq-item[open] summary::after { content: "–"; }
.faq-a { padding: 0 4px 18px; color: var(--muted); max-width: 760px; }
.faq-a p { margin: 0; }
/* Navigation: unter 1180 px als Hamburger-Menü. Gemessen (Segoe UI) braucht die Kopfzeile ohne Umbruch bis zu 1065 px
   (Französisch, Deutsch 1036 px) von 1120 px Platz; der Rest ist Reserve für breitere Systemschriften (macOS). Darunter
   passen nicht mehr alle Sprachen in eine Zeile. */
@media (max-width: 1180px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 66px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(18,60,108,.12); padding: 10px 20px 16px; margin: 0; z-index: 20; }
  .nav.open .nav-cta { margin: 10px 0 0; }
  .nav.open .nav-cta .btn { display: inline-flex; }
  .nav.open .nav-lang { display: block; margin: 6px 0 0; }
  .nav.open .lang-menu > summary { display: inline-block; margin-left: 0; }
  .nav.open .lang-menu > ul { position: static; box-shadow: none; border: 0; padding: 4px 0 0; min-width: 0; }
}

/* ---------- Abstände als Klassen (Generator) ----------
   Die Seite schickt die CSP style-src 'self' – style-Attribute im HTML würden vom Browser verworfen. */
.mt-24 { margin-top: 24px; }
.mt-28 { margin-top: 28px; }
.mt-36 { margin-top: 36px; }
.pad-24 { padding: 24px; }
.footer-logo { margin-bottom: 12px; }
.footer-legal.footer-legal--bare { border-top: 0; margin-top: 0; padding-top: 0; }
.lead.lead--cta { margin: 0 auto 24px; }
.shot img.pdf-preview, img.pdf-preview { max-height: 560px; width: auto; margin: 0 auto; }

/* ---------- Landingpages je Einsatzgebiet und Verweise darauf (Generator) ---------- */
.footer-grid.footer-grid--4 { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.use h3 a { color: inherit; text-decoration: none; }
.use h3 a:hover { color: var(--blue); text-decoration: underline; }
.use .use-more { display: inline-block; margin-top: 10px; font-weight: 700; font-size: .9rem; color: var(--blue); text-decoration: none; }
.use .use-more:hover { text-decoration: underline; }
.use.use--cta { background: var(--blue-tint); border: 1px dashed var(--blue); }
.use.use--cta .tag { background: #fff; }
.page-hero .btn { margin-top: 8px; }
.solution-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.solution-grid .prose h2:first-child { margin-top: 0; }
.solution-shot { position: sticky; top: 88px; }
h2.center { text-align: center; }
@media (max-width: 960px) {
  .solution-grid, .footer-grid.footer-grid--4 { grid-template-columns: 1fr; }
  .solution-shot { position: static; }
}

/* Startseite: Aufhänger-Frage zwischen Kopfzeile und Hauptüberschrift (für alle Zielgruppen, nicht nur IT) */
.hero-hook { margin: 0 0 .6rem; font-size: 1.15rem; font-weight: 700; line-height: 1.35; color: var(--blue); }
@media (max-width: 560px) { .hero-hook { font-size: 1.02rem; } }

/* ---------- KI-Assistent: Abschnitt auf der Startseite und eigene Seite (Generator) ---------- */
.card--list ul { margin: .5rem 0 0; padding-left: 1.1rem; color: var(--muted); }
.card--list li + li { margin-top: .4rem; }
.chips--center { justify-content: center; }
.checklist { list-style: none; padding: 0; max-width: 48rem; margin-left: auto; margin-right: auto; }
.checklist li { position: relative; padding-left: 1.6rem; margin-bottom: .55rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.05em; height: 1.05em; background: var(--green); -webkit-mask: var(--i-check) center / contain no-repeat; mask: var(--i-check) center / contain no-repeat; }

/* ---------- Kontaktformular (kontakt.php je Sprache, Generator) ---------- */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.form-grid { gap: 0 16px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--navy); margin-bottom: 4px; }
.field input, .field select, .field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; color: var(--ink); background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field textarea { min-height: 160px; resize: vertical; }
.field .input-short { max-width: 140px; }
.field-check { display: flex; gap: 10px; align-items: flex-start; }
.field-check input { width: auto; margin-top: 5px; flex: none; }
.field-check label { font-weight: 500; color: var(--ink); }
.form-note { font-size: .85rem; color: var(--muted); margin: 12px 0 0; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; }
.alert ul { margin: .4rem 0 0 1.1rem; padding: 0; }
.alert-ok { background: #e8f5eb; color: #1d5b2a; border: 1px solid #b9dfc2; }
.alert-err { background: #fdecec; color: #8a1c1c; border: 1px solid #f2c4c4; }
.contact-aside { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contact-aside h2 { font-size: 1.25rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
