/* Kontolux AI — gemeinsames Stylesheet für alle Unterseiten
   (Integrationen, Ratgeber, Hilfe-Center). Farben/Fonts identisch zur index.html. */
:root {
  --ink: #0f1f2e;
  --blue-deep: #0a2d4a;
  --blue: #1d5d96;
  --blue-pale: #dde9f4;
  --paper: #f4f7fa;
  --line: #d0dcea;
  --white: #ffffff;
  --gray: #5a6a7a;
  --gray-light: #8a9aaa;
  --green: #0e7a4f;
  --green-pale: #e6f4ee;
  --amber: #8a6416;
  --amber-pale: #fff6e0;
  --serif: 'Iowan Old Style', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 84px; }
body { font-family: var(--sans); background: var(--white); color: var(--ink); -webkit-font-smoothing: antialiased; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
code { font-family: var(--mono); font-size: 0.88em; background: var(--paper); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; word-break: break-word; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 200; background: var(--white); padding: 8px 12px; }

/* ── BREADCRUMB ── */
.breadcrumb { max-width: 1160px; margin: 0 auto; padding: 16px 16px 0; font-size: 13px; color: var(--gray); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: '›'; margin-right: 6px; color: var(--gray-light); }
.breadcrumb a { color: var(--gray); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); text-decoration: underline; }
@media (min-width: 900px) { .breadcrumb { padding: 20px 32px 0; } }

/* ── HERO ── */
.page-hero { padding: 32px 16px 48px; border-bottom: 1px solid var(--line); }
.page-hero-inner { max-width: 1160px; margin: 0 auto; display: grid; gap: 32px; align-items: center; }
.eyebrow { font-size: 12px; font-weight: 700; color: var(--blue); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px; }
.page-hero h1 { font-family: var(--serif); font-size: clamp(30px, 6vw, 50px); line-height: 1.12; font-weight: 700; letter-spacing: -0.4px; margin-bottom: 18px; }
.lead { font-size: 18px; color: var(--gray); line-height: 1.7; max-width: 640px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-block; padding: 14px 26px; border-radius: 12px; font-size: 16px; font-weight: 700; text-decoration: none; text-align: center; transition: transform 0.15s, box-shadow 0.15s, background 0.15s; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 4px 20px rgba(29,93,150,0.25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(29,93,150,0.32); }
.btn-secondary { border: 1.5px solid var(--line); color: var(--ink); background: var(--white); }
.btn-secondary:hover { background: var(--blue-pale); }
.hero-note { font-size: 13px; color: var(--gray-light); margin-top: 14px; }
.facts { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.facts h2 { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gray); margin-bottom: 14px; font-family: var(--sans); }
.facts dl { display: grid; gap: 12px; }
.facts dt { font-size: 12px; font-weight: 700; color: var(--gray); }
.facts dd { font-size: 15px; color: var(--ink); }
@media (min-width: 900px) {
  .page-hero { padding: 40px 32px 72px; }
  .page-hero-inner { grid-template-columns: 1.4fr 1fr; gap: 56px; }
  .page-hero-inner.single { grid-template-columns: 1fr; }
}

/* ── LAYOUT ── */
.section { padding: 56px 16px; }
.section--paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wrap { max-width: 1160px; margin: 0 auto; }
.narrow { max-width: 760px; margin: 0 auto; }
@media (min-width: 900px) { .section { padding: 80px 32px; } }

/* ── PROSE ── */
.prose h2 { font-family: var(--serif); font-size: clamp(24px, 4vw, 34px); line-height: 1.2; margin: 0 0 16px; }
.prose h3 { font-size: 19px; line-height: 1.35; margin: 32px 0 10px; }
.prose p { font-size: 17px; color: #2c3d4e; margin-bottom: 16px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 18px; }
.prose li { font-size: 17px; color: #2c3d4e; margin-bottom: 8px; }
.prose strong { color: var(--ink); }
.prose .section-block + .section-block { margin-top: 56px; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 15px; }
.table-scroll { overflow-x: auto; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 12px; }
.table-scroll table { margin: 0; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--paper); font-size: 13px; font-weight: 700; color: var(--gray); white-space: nowrap; }
.prose tr:last-child td { border-bottom: none; }

/* Kurzantwort-Box (TL;DR, für Leser und KI-Suchsysteme) */
.wichtigste { background: var(--white); border: 1.5px solid var(--blue); border-radius: 12px; padding: 18px 20px 10px; margin-bottom: 24px; }
.wichtigste .wichtigste-label { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--blue); margin: 0 0 8px; }
.wichtigste ol { margin: 0 0 8px 20px; padding: 0; }
.wichtigste li { font-size: 16px; color: var(--ink); margin-bottom: 6px; }
.section-block.klapp .faq { margin-top: 0; }
.section-block.klapp summary h2 { margin: 0; font-size: 20px; }
.answer { background: var(--blue-pale); border-left: 4px solid var(--blue); border-radius: 12px; padding: 18px 20px; margin-bottom: 40px; }
.answer p { margin: 0; font-size: 17px; color: var(--ink); }
.answer .answer-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }

.callout { border-radius: 12px; padding: 16px 18px; margin: 20px 0; font-size: 15px; line-height: 1.6; }
.callout p { font-size: 15px; margin: 0; }
.callout--info { background: var(--paper); border: 1px solid var(--line); }
.callout--warn { background: var(--amber-pale); border: 1px solid #f0d58c; color: #4d3a0b; }
.callout--warn p { color: #4d3a0b; }
.callout--ok { background: var(--green-pale); border: 1px solid #a8d8c0; }

/* ── FLOW (Webhook → Beleg) ── */
.flow { list-style: none; display: grid; gap: 12px; margin: 24px 0 32px; padding: 0 !important; counter-reset: flow; }
.flow li { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 0 !important; position: relative; }
.flow li strong { display: block; font-size: 15px; margin-bottom: 4px; }
.flow li span { font-size: 14px; color: var(--gray); display: block; line-height: 1.55; }
.flow li::before { counter-increment: flow; content: counter(flow); position: absolute; top: 16px; right: 16px; width: 26px; height: 26px; border-radius: 50%; background: var(--blue-pale); color: var(--blue); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
@media (min-width: 760px) { .flow { grid-template-columns: repeat(3, 1fr); } }

/* ── STEPS ── */
.steps { list-style: none; padding: 0 !important; counter-reset: step; margin: 24px 0; }
.steps > li { position: relative; padding: 0 0 28px 56px !important; margin: 0 !important; }
.steps > li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.steps > li::after { content: ''; position: absolute; left: 18px; top: 44px; bottom: 6px; width: 2px; background: var(--line); }
.steps > li:last-child::after { display: none; }
.steps h3 { margin: 6px 0 6px !important; font-size: 18px; }
.steps p { margin-bottom: 8px; }

/* ── CARDS ── */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } .cards--4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 22px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(15,31,46,0.09); border-color: #b5c9dd; }
.card h3 { font-size: 17px; margin: 0 !important; line-height: 1.35; }
.card p { font-size: 14.5px !important; color: var(--gray) !important; margin: 0 !important; line-height: 1.6; }
.card .card-more { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; color: var(--blue); }
.card-tag { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; padding: 3px 10px; border-radius: 20px; background: var(--blue-pale); color: var(--blue); }

/* ── FAQ ── */
.faq { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.faq details { background: var(--white); border: 1.5px solid var(--line); border-radius: 14px; }
.faq details[open] { border-color: var(--blue); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--gray); flex-shrink: 0; }
.faq details[open] summary::after { content: '–'; }
.faq .faq-a { padding: 0 22px 18px; }
.faq .faq-a p { font-size: 16px; color: var(--gray); margin-bottom: 10px; }

/* ── CTA BAND ── */
.cta-band { padding: 64px 16px; background: linear-gradient(155deg, #071e35 0%, #0f3a5f 50%, #1a5490 100%); color: #fff; text-align: center; }
.cta-band h2 { font-family: var(--serif); font-size: clamp(28px, 5vw, 42px); line-height: 1.2; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.72); font-size: 17px; max-width: 560px; margin: 0 auto 28px; }
.cta-band .btn-primary { background: #fff; color: var(--blue-deep); }
.cta-band .cta-note { font-size: 13px; color: rgba(255,255,255,0.5); margin: 16px 0 0; }

/* ── HELP ── */
.help-search { margin-top: 24px; max-width: 560px; }
.help-search input { width: 100%; padding: 14px 16px; font-size: 16px; border: 1.5px solid var(--line); border-radius: 12px; font-family: inherit; }
.help-search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-pale); }
.help-group + .help-group { margin-top: 48px; }
.help-group h2 { font-family: var(--serif); font-size: 26px; margin-bottom: 16px; }
.help-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.help-layout > .help-aside { order: 2; }
.help-layout > article { order: 1; }
.help-aside { font-size: 14px; }
.help-aside h2 { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--gray); margin-bottom: 10px; font-family: var(--sans); }
.help-aside ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.help-aside a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.help-aside a:hover { background: var(--paper); }
.help-aside a[aria-current="page"] { background: var(--blue-pale); color: var(--blue-deep); font-weight: 600; }
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 36px; }
.toc h2 { font-family: var(--sans) !important; font-size: 13px !important; letter-spacing: 1px; text-transform: uppercase; color: var(--gray); margin: 0 0 8px !important; }
.toc ol { margin: 0 !important; }
.toc li { font-size: 15px !important; margin-bottom: 4px !important; }
.meta-line { font-size: 13px; color: var(--gray-light); margin-top: 16px; }
@media (min-width: 1000px) {
  .help-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 56px; }
  .help-layout > .help-aside { order: 0; }
  .help-aside nav { position: sticky; top: 84px; }
}

/* ── VIDEO ── */
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ── UTIL ── */
.mt-0 { margin-top: 0 !important; }
.center { text-align: center; }
.section-head { max-width: 680px; margin: 0 auto 36px; text-align: center; }
.section-head h2 { font-family: var(--serif); font-size: clamp(26px, 4vw, 38px); line-height: 1.2; margin-bottom: 12px; }
.section-head p { font-size: 17px; color: var(--gray); }
.pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0 !important; }
.pill-list li { font-size: 13px !important; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 5px 12px; margin: 0 !important; color: var(--ink) !important; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
[hidden] { display: none !important; }
