/* Oligschläger Software — Website
   Corporate Identity: Teal #00afce / Aubergine #70154e (aus dem Original-Logo) */

:root {
  --blue: #00afce;
  --blue-deep: #06819c;   /* dunkleres Teal für Links/Buttons (Weißschrift lesbar) */
  --magenta: #70154e;
  --magenta-soft: #c76aa0; /* aufgehellte CI-Farbe für dunklen Hintergrund */

  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --bg-card: #ffffff;
  --fg: #16212b;
  --fg-muted: #566575;
  --line: #dde5ec;
  --shadow: 0 1px 2px rgba(16, 33, 45, .06), 0 12px 32px -12px rgba(16, 33, 45, .18);
  --radius: 16px;
  --maxw: 1140px;
  --header-h: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1319;
    --bg-alt: #121b23;
    --bg-card: #16212b;
    --fg: #e8eef4;
    --fg-muted: #97a6b5;
    --line: #24323f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .7);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
@media (prefers-color-scheme: dark) { a { color: var(--blue); } }

h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; }

.brand { display: flex; align-items: center; text-decoration: none; color: inherit; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand img { height: 36px; width: auto; }
@media (max-width: 420px) { .brand img { height: 30px; } }

nav.main { margin-left: auto; }
nav.main ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
nav.main a {
  display: block; padding: 8px 13px; border-radius: 999px; white-space: nowrap;
  color: var(--fg-muted); font-size: .94rem; font-weight: 500;
}
nav.main a:hover { background: var(--bg-alt); color: var(--fg); text-decoration: none; }
nav.main a[aria-current="page"] { color: var(--fg); background: var(--bg-alt); }

/* Untermenü Produkte */
nav.main .has-sub { position: relative; }
nav.main .has-sub > a::after { content: " ▾"; font-size: .8em; opacity: .7; }
nav.main .has-sub > ul {
  position: absolute; top: 100%; left: 0; min-width: 220px; display: none;
  flex-direction: column; gap: 2px; padding: 8px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
nav.main .has-sub:hover > ul, nav.main .has-sub:focus-within > ul { display: flex; }
nav.main .has-sub > ul a { border-radius: 8px; }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 42px; height: 42px; cursor: pointer; color: var(--fg);
  align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  nav.main {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px; display: none; box-shadow: var(--shadow);
  }
  nav.main.open { display: block; }
  nav.main ul { flex-direction: column; gap: 2px; }
  nav.main a { padding: 12px 14px; }
  nav.main .has-sub > ul {
    position: static; display: flex; border: 0; box-shadow: none; background: none;
    padding: 0 0 0 14px; min-width: 0;
  }
  nav.main .has-sub > a::after { content: ""; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: .97rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue-deep); color: #fff; box-shadow: 0 8px 24px -10px var(--blue-deep); }
.btn-primary:hover { background: #056377; color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--fg); background: var(--bg-card); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 8vw, 96px); }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 120%;
  background:
    radial-gradient(48% 55% at 18% 22%, color-mix(in srgb, var(--blue) 26%, transparent), transparent 70%),
    radial-gradient(42% 50% at 82% 12%, color-mix(in srgb, var(--magenta) 18%, transparent), transparent 70%);
  pointer-events: none; z-index: -1;
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 36px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue-deep); background: color-mix(in srgb, var(--blue) 12%, transparent);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--blue); } }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--fg-muted); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-visual {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow); padding: 26px;
}
.hero-visual h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--fg-muted); }
.hero-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 22px 20px; margin-top: 20px; align-items: start;
}
.hero-stats div span {
  display: block; font-size: 1.7rem; font-weight: 700; line-height: 1.15;
  color: var(--blue); letter-spacing: -.03em; margin-bottom: 4px;
}
/* Wort statt Zahl (z. B. "modular") — etwas kleiner, damit es die Zahlen nicht erschlägt */
.hero-stats div span.word { font-size: 1.25rem; letter-spacing: -.01em; }
/* Zahlenbereich (z. B. "60 bis 1.000+") — knapper gesetzt, damit er einzeilig bleibt */
.hero-stats div span.range { font-size: 1.35rem; white-space: nowrap; }
.hero-stats div small {
  display: block; color: var(--fg-muted); font-size: .88rem; line-height: 1.4;
  text-wrap: balance;
}

/* ---------- Sections ---------- */
section { padding: clamp(52px, 7vw, 88px) 0; }
section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head p { color: var(--fg-muted); margin-bottom: 0; }

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

.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease;
  display: flex; flex-direction: column;
}
a.card { color: inherit; text-decoration: none; }
a.card:hover { transform: translateY(-3px); border-color: var(--blue); text-decoration: none; }
.card p { color: var(--fg-muted); }
.card .more { margin-top: auto; font-weight: 600; color: var(--blue-deep); font-size: .95rem; }
@media (prefers-color-scheme: dark) { .card .more { color: var(--blue); } }

.icon {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue-deep);
}
.icon.magenta { background: color-mix(in srgb, var(--magenta) 14%, transparent); color: var(--magenta); }
@media (prefers-color-scheme: dark) {
  .icon { color: var(--blue); }
  .icon.magenta { color: var(--magenta-soft); }
}
.icon svg { width: 22px; height: 22px; }

.badge {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--magenta) 14%, transparent); color: var(--magenta);
  margin-bottom: 14px;
}
@media (prefers-color-scheme: dark) { .badge { color: var(--magenta-soft); } }

/* Feature list */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; color: var(--fg-muted); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 16px; height: 9px; border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue);
  transform: rotate(-45deg);
}
.checks li strong { color: var(--fg); font-weight: 600; }

/* Split feature block */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { margin-bottom: 0; flex: 0 0 auto; width: 40px; height: 40px; }
.contact-list small { display: block; color: var(--fg-muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }

.form-grid { display: grid; gap: 14px; }
.form-grid label { font-size: .88rem; font-weight: 600; }
.form-grid input, .form-grid textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .97rem;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--fg);
}
.form-grid input:focus, .form-grid textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }

/* ---------- CTA band ---------- */
.cta {
  background: linear-gradient(120deg, var(--blue-deep), var(--magenta));
  color: #fff; border-radius: 22px; padding: clamp(32px, 5vw, 56px);
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
.cta h2, .cta p { color: #fff; margin: 0; }
.cta p { opacity: .9; }
.cta .btn { background: #fff; color: var(--blue-deep); }
.cta .btn:hover { background: #f1f6fa; color: var(--blue-deep); }

/* ---------- App-Screenshots (Handy) ---------- */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 980px) { .shots { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .shots { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; } }
.shots figure { margin: 0; cursor: zoom-in; }
.shots img {
  width: 100%; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); background: #fff;
  transition: transform .18s ease, border-color .18s ease;
}
.shots figure:hover img { transform: translateY(-3px); border-color: var(--blue); }
.shots figcaption { margin-top: 12px; font-size: .92rem; font-weight: 600; }
.shots figcaption small { display: block; font-weight: 400; color: var(--fg-muted); margin-top: 2px; }

/* ---------- FAQ ---------- */
.faq { max-width: 840px; margin-inline: auto; }
.faq details {
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg-card);
  margin-bottom: 12px; box-shadow: var(--shadow);
}
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 22px; gap: 16px;
  font-weight: 600; font-size: 1.05rem; color: var(--fg);
  display: flex; align-items: center; justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: 0 0 auto; font-size: 1.6rem; font-weight: 400; line-height: 1;
  color: var(--blue-deep);
}
.faq details[open] summary { color: var(--blue-deep); }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 12px; }
.faq .faq-body { padding: 0 22px 20px; }
.faq .faq-body p { color: var(--fg-muted); margin: 0; }
@media (prefers-color-scheme: dark) {
  .faq summary::after, .faq details[open] summary { color: var(--blue); }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 48px 0 32px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--fg-muted); margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--fg-muted); }
.site-footer a:hover { color: var(--blue); }
.footer-bottom {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--fg-muted); font-size: .87rem;
}

/* ---------- Legal / text pages ---------- */
.page-head { padding: clamp(40px, 6vw, 72px) 0 8px; }
.prose { max-width: 74ch; }
.prose h2 { margin-top: 1.8em; font-size: 1.35rem; }
.prose h3 { margin-top: 1.4em; font-size: 1.08rem; }
.prose ul { padding-left: 1.2em; color: var(--fg-muted); }
.prose li { margin-bottom: .4em; }

/* ---------- Screenshots ---------- */
figure.shot { margin: 0; }
figure.shot img {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); background: #fff;
}
figure.shot figcaption { margin-top: 10px; font-size: .88rem; color: var(--fg-muted); }

.photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.photo img { width: 100%; display: block; }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .gallery { grid-template-columns: 1fr; } }
.gallery figure { margin: 0; cursor: zoom-in; }
.gallery img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  transition: transform .18s ease, border-color .18s ease;
}
.gallery figure:hover img { transform: translateY(-3px); border-color: var(--blue); }
.gallery figcaption { margin-top: 10px; font-size: .9rem; font-weight: 600; }
.gallery figcaption small { display: block; font-weight: 400; color: var(--fg-muted); }

.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(8, 14, 19, .92); padding: 24px;
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 10px; background: #fff; }
.lightbox button {
  position: absolute; top: 18px; right: 22px; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08);
  color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.lightbox .cap {
  position: absolute; left: 0; right: 0; bottom: 18px; text-align: center;
  color: #cfd9e3; font-size: .92rem; padding: 0 24px;
}

/* ---------- Länderliste ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tags li {
  font-size: .9rem; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-card); color: var(--fg-muted);
}

.cols-2 { columns: 2; column-gap: 32px; }
@media (max-width: 620px) { .cols-2 { columns: 1; } }
.cols-2 li { break-inside: avoid; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
