/* ==========================================================================
   ABPortal – Landingpage Stylesheet
   Eigenständiges, framework-freies CSS. Mobile-first, mit Fokus auf
   Barrierefreiheit (Kontrast, Fokus-Stile, reduzierte Bewegung) und
   Performance (Systemschriften, keine externen Requests).
   ========================================================================== */

:root {
  /* Markenfarben, aus dem echten ABPortal-Logo gemessen */
  --blue: #0188b7;
  --blue-dark: #026e94;
  --blue-darker: #045573;
  --blue-50: #eef7fb;
  --blue-100: #dcf0f7;

  --ink: #171b1f;
  --text: #333b44;
  --text-muted: #5b6572;
  --border: #e3e8ee;
  --bg: #ffffff;
  --bg-soft: #f6f9fb;
  --bg-deep: #0d2230;

  --green: #1a8f5e;
  --amber: #b9760b;
  --red: #c0392b;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 3px rgba(13, 34, 48, 0.08);
  --shadow: 0 8px 30px rgba(13, 34, 48, 0.1);
  --shadow-lg: 0 24px 60px rgba(13, 34, 48, 0.18);

  --container: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --- Reset & Grundlagen -------------------------------------------------- */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.15rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

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

section { padding: 88px 0; }
@media (max-width: 700px) { section { padding: 56px 0; } }

/* Keep anchor targets from disappearing under the sticky header */
section[id], #demo-zugang { scroll-margin-top: 90px; }

.section-soft { background: var(--bg-soft); }
.section-deep { background: var(--bg-deep); color: #dbe7ee; }
.section-deep h2, .section-deep h3 { color: #fff; }
.section-deep p { color: #b9cbd6; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.section-deep .eyebrow { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.15); color: #8fd7ef; }

.section-head { max-width: 700px; margin: 0 0 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.lede { font-size: 1.15rem; color: var(--text-muted); }
.section-deep .lede { color: #b9cbd6; }

/* --- Sichtbarkeit / Fokus / Skip-Link ------------------------------------ */

.visually-hidden {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

.skip-link {
  position: absolute;
  left: 12px; top: -50px;
  background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: var(--radius-sm);
  z-index: 1000; transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
  line-height: 1.1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--blue-dark); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-darker); }

.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

.btn-outline { background: #fff; border-color: var(--border); color: var(--ink); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue-dark); }

.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* --- Header / Navigation -------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 28px; width: auto; }
.brand-sub { font-size: 0.72rem; color: var(--text-muted); font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.main-nav a:hover { color: var(--blue-dark); text-decoration: none; }
.main-nav a[aria-current] { color: var(--blue-dark); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 10px; cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; }

@media (max-width: 860px) {
  .main-nav {
    position: absolute; top: 74px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 12px 24px 20px; box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 0; width: 100%; }
  .header-actions .btn-outline { display: none; }
  .nav-toggle { display: block; }
}

/* --- Hero ------------------------------------------------------------------ */

.hero {
  padding: 72px 0 100px;
  background:
    radial-gradient(1100px 500px at 85% -10%, var(--blue-100), transparent 60%),
    #fff;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 64px; }
}

.hero h1 { margin-bottom: 20px; }
.hero .lede { font-size: 1.2rem; max-width: 560px; }

.trust-line {
  margin-top: 34px;
  display: flex; flex-wrap: wrap; gap: 18px 28px;
  font-size: 0.88rem; color: var(--text-muted); font-weight: 600;
}
.trust-line li { display: flex; align-items: center; gap: 8px; list-style: none; }
.trust-line svg { flex-shrink: 0; color: var(--green); }

/* Browser-mockup frame for real product screenshots */
.browser-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.browser-frame .browser-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; background: #eef1f4; border-bottom: 1px solid var(--border);
}
.browser-frame .browser-bar span {
  width: 10px; height: 10px; border-radius: 50%; background: #d7dee4;
}
.browser-frame img { width: 100%; height: auto; }

.hero-shot { position: relative; }

/* --- Problem / Chaos section ---------------------------------------------- */

.problem .container { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .problem .container { grid-template-columns: 1fr; } }
.problem img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.pain-list { display: grid; gap: 14px; margin-top: 24px; }
.pain-list li { list-style: none; display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.pain-list li svg { flex-shrink: 0; margin-top: 3px; color: var(--red); }

/* --- Feature grid (Warum ABPortal) ---------------------------------------- */

.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
}
.feature-card .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--blue-50); color: var(--blue-dark);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); margin: 0; font-size: 0.96rem; }

/* --- Split / showcase sections (KI, GoBD, Anpassbar) ----------------------- */

.showcase .container, .showcase-rev .container {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.showcase-rev .container { direction: rtl; }
.showcase-rev .container > * { direction: ltr; }
@media (max-width: 960px) {
  .showcase .container, .showcase-rev .container { grid-template-columns: 1fr; direction: ltr; }
}

.check-list { display: grid; gap: 14px; margin: 22px 0 0; }
.check-list li { list-style: none; display: flex; gap: 12px; align-items: flex-start; }
.check-list li svg { flex-shrink: 0; margin-top: 3px; color: var(--green); }
.section-deep .check-list li svg { color: #6fe3b4; }
.section-deep .check-list li { color: #dbe7ee; }

.callout {
  margin-top: 26px; padding: 18px 20px; border-radius: var(--radius);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15);
  display: flex; gap: 14px; align-items: flex-start;
}
.callout .flag { font-size: 1.4rem; line-height: 1; }
.callout strong { color: #fff; }
.callout p { margin: 4px 0 0; color: #b9cbd6; font-size: 0.94rem; }

.callout-light {
  margin-top: 26px; padding: 18px 20px; border-radius: var(--radius);
  background: var(--blue-50); border: 1px solid var(--blue-100);
  display: flex; gap: 14px; align-items: flex-start;
}
.callout-light .flag { font-size: 1.4rem; line-height: 1; }
.callout-light p { margin: 4px 0 0; color: var(--text); font-size: 0.94rem; }

/* Simple chain / process visual for GoBD-Modul (no screenshot exists) */
.chain-visual {
  display: flex; align-items: center; justify-content: center; gap: 0;
  flex-wrap: wrap; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 34px 22px; box-shadow: var(--shadow);
}
.chain-step {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: 130px; text-align: center;
}
.chain-step .badge-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--blue-50); color: var(--blue-dark);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--blue-100);
}
.chain-step span { font-size: 0.82rem; font-weight: 700; color: var(--ink); }
.chain-link {
  color: var(--border); width: 34px; flex-shrink: 0;
}
@media (max-width: 700px) {
  .chain-link { transform: rotate(90deg); width: 24px; }
}

/* --- Module grid ------------------------------------------------------------ */

.module-category { margin-bottom: 20px; }
.module-category summary {
  cursor: pointer; list-style: none; font-weight: 700; font-size: 1.15rem;
  padding: 18px 22px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: space-between;
  color: var(--ink);
}
.module-category summary::-webkit-details-marker { display: none; }
.module-category summary::after {
  content: "+"; font-size: 1.6rem; font-weight: 400; color: var(--blue-dark); line-height: 1;
}
.module-category[open] summary::after { content: "–"; }
.module-category summary .cat-count { font-weight: 500; font-size: 0.85rem; color: var(--text-muted); margin-left: 10px; }

.module-list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  padding: 22px 6px 6px;
}
@media (max-width: 700px) { .module-list { grid-template-columns: 1fr; } }
.module-item { list-style: none; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bg-soft); }
.module-item strong { display: block; color: var(--ink); margin-bottom: 3px; }
.module-item span { font-size: 0.92rem; color: var(--text-muted); }
.module-item .new-tag {
  display: inline-block; font-size: 0.68rem; font-weight: 800; text-transform: uppercase;
  color: var(--blue-dark); background: var(--blue-50); border-radius: 999px;
  padding: 1px 8px; margin-left: 8px; vertical-align: middle;
}
.module-feature-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.module-feature-list li {
  position: relative; padding-left: 14px; font-size: 0.86rem; color: var(--text-muted);
}
.module-feature-list li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--blue);
}

/* --- Preise ------------------------------------------------------------------ */

.pricing-tiers {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 36px; align-items: stretch;
}
@media (max-width: 1100px) { .pricing-tiers { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .pricing-tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .pricing-tiers { grid-template-columns: 1fr; } }

.tier-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 20px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; text-align: center; position: relative;
}
.tier-card h3 { margin-bottom: 4px; }
.tier-target { color: var(--text-muted); font-size: 0.85rem; min-height: 2.6em; margin-bottom: 14px; }
.tier-price { font-size: 1.55rem; font-weight: 800; color: var(--ink); margin: 0 0 18px; white-space: nowrap; }
.tier-price span { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }
.tier-features { list-style: none; margin: 0 0 22px; padding: 0; text-align: left; flex-grow: 1; }
.tier-features li { padding: 8px 0; border-top: 1px solid var(--border); color: var(--text); font-size: 0.9rem; }
.tier-features li:first-child { border-top: none; }

.tier-highlight { border-color: var(--blue); box-shadow: var(--shadow); }
.tier-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--blue-dark); color: #fff; font-size: 0.68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.04em; padding: 4px 14px; border-radius: 999px;
}

.price-note { text-align: center; margin-top: 26px; color: var(--text-muted); font-size: 0.85rem; }

/* --- Logos / integrations strip -------------------------------------------- */

.integration-strip {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px;
}
.integration-strip span {
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 16px; font-weight: 700; font-size: 0.88rem; color: var(--text);
}

/* --- Demo / CTA banner ------------------------------------------------------ */

.demo-banner {
  background: linear-gradient(135deg, var(--blue-darker), var(--blue-dark));
  color: #fff; border-radius: var(--radius-lg); padding: 52px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
}
@media (max-width: 900px) { .demo-banner { grid-template-columns: 1fr; padding: 34px; } }
.demo-banner h2 { color: #fff; }
.demo-banner p { color: #d5eaf2; }
.demo-creds {
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius); padding: 20px 22px; font-size: 0.95rem;
}
.demo-creds dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 16px; }
.demo-creds dt { color: var(--blue-100); font-weight: 600; }
.demo-creds dd { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #fff; }

/* --- FAQ --------------------------------------------------------------------- */

.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius); background: #fff;
  padding: 4px 22px;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--blue-dark); flex-shrink: 0; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding-bottom: 18px; color: var(--text-muted); margin: 0; }

/* --- Final CTA ---------------------------------------------------------------- */

.final-cta { text-align: center; }
.final-cta .cta-row { justify-content: center; }

/* --- Footer -------------------------------------------------------------------- */

.site-footer { background: var(--bg-deep); color: #a9bccb; padding: 64px 0 28px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer li { list-style: none; }
.site-footer a { color: #a9bccb; }
.site-footer a:hover { color: #fff; }
.footer-brand img { margin-bottom: 14px; filter: brightness(0) invert(1); opacity: 0.95; }
.footer-brand p { color: #7f93a3; font-size: 0.9rem; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.85rem; color: #7f93a3;
}

/* --- Misc utility ---------------------------------------------------------------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
