/* =============================================================================
   Dialoga AI — One-Page-Website
   Dunkles, modernes SaaS-Theme. Mobile-first. Keine externen Ressourcen
   (System-Fonts, keine CDNs, keine Tracker) → schnell + DSGVO-freundlich.
   ============================================================================= */

:root {
  --bg:        #0a0d16;
  --bg-2:      #0c111e;
  --panel:     #121829;
  --panel-2:   #161d31;
  --border:    rgba(255, 255, 255, 0.09);
  --border-st: rgba(255, 255, 255, 0.16);
  --text:      #e8ecf6;
  --muted:     #a7b0c4;
  --accent:    #6c8cff;
  --accent-2:  #22d3ee;
  --accent-grad: linear-gradient(135deg, #7c5cff 0%, #22d3ee 100%);
  --ring:      #9bb6ff;
  --maxw:      1120px;
  --radius:    16px;
  --shadow:    0 18px 50px -20px rgba(0, 0, 0, 0.7);
}

/* ── Reset / Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
               Arial, "Noto Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(124, 92, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(34, 211, 238, 0.12), transparent 55%),
    var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.18rem; font-weight: 700; }
p  { margin: 0 0 1rem; }

/* Sichtbarer, klarer Fokus für Tastatur-Navigation (Barrierearmut) */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Skip-Link */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--text); color: var(--bg);
  padding: 0.7rem 1.1rem; border-radius: 0 0 10px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ── Layout-Helfer ───────────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.section { padding: 64px 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--border); }
@media (min-width: 768px) { .section { padding: 96px 0; } }

.eyebrow {
  display: inline-block;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 0.8rem;
}
.section__head { max-width: 680px; margin-bottom: 40px; }
.section__head p { color: var(--muted); font-size: 1.05rem; margin-bottom: 0; }

.lead { color: var(--muted); font-size: 1.12rem; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font: inherit; font-weight: 650; cursor: pointer;
  padding: 0.9rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary {
  background: var(--accent-grad); color: #061018;
  font-weight: 750;
  box-shadow: 0 10px 30px -10px rgba(34, 211, 238, 0.55);
}
.btn--primary:hover { box-shadow: 0 16px 38px -10px rgba(124, 92, 255, 0.6); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.04); color: var(--text);
  border-color: var(--border-st);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.09); }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }

/* ── Header / Nav ────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 13, 22, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-weight: 800; font-size: 1.18rem; letter-spacing: -0.02em; color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--accent-grad);
  display: grid; place-items: center; color: #06121a; font-weight: 900; font-size: 1rem;
  box-shadow: 0 6px 18px -6px rgba(34, 211, 238, 0.6);
}
.brand__mark span { transform: translateY(-1px); }

.nav__links {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 1.6rem;
}
.nav__links a { color: var(--muted); font-weight: 600; font-size: 0.97rem; }
.nav__links a:hover { color: var(--text); text-decoration: none; }
.nav__cta { margin-left: 0.4rem; }

.nav__toggle {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; background: transparent;
  border: 1px solid var(--border-st); border-radius: 11px; color: var(--text); cursor: pointer;
}
.nav__toggle svg { width: 22px; height: 22px; }
.nav__toggle .icon-close { display: none; }

/* Desktop-Nav ab 880px; darunter Burger-Menü */
.nav__menu { display: contents; }
@media (max-width: 879px) {
  .nav__menu {
    display: block;
    position: fixed; inset: 68px 0 auto 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    padding: 14px 20px 22px;
    transform: translateY(-130%); transition: transform 0.25s ease;
    box-shadow: var(--shadow);
  }
  .site-header.is-open .nav__menu { transform: translateY(0); }
  .site-header.is-open .nav__toggle .icon-open  { display: none; }
  .site-header.is-open .nav__toggle .icon-close { display: block; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0.2rem; }
  .nav__links a { display: block; padding: 0.85rem 0.4rem; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
  .nav__cta { margin: 0.9rem 0 0; }
  .nav__cta .btn { width: 100%; }
}
@media (min-width: 880px) { .nav__toggle { display: none; } }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { padding: 56px 0 40px; position: relative; overflow: hidden; }
@media (min-width: 768px) { .hero { padding: 96px 0 72px; } }
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; font-weight: 600; color: var(--muted);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border);
  padding: 0.4rem 0.9rem; border-radius: 999px; margin-bottom: 1.3rem;
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px rgba(34,211,238,0.18); }
.hero h1 { max-width: 16ch; }
.hero h1 .grad {
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { max-width: 56ch; font-size: 1.18rem; color: var(--muted); margin: 1.1rem 0 1.9rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero__trust { margin-top: 2.2rem; color: var(--muted); font-size: 0.92rem; }

/* ── Karten-Grids ────────────────────────────────────────────────────────── */
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 880px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; height: 100%;
}
.card:hover { border-color: var(--border-st); }
.card__icon {
  width: 48px; height: 48px; border-radius: 13px; margin-bottom: 16px;
  display: grid; place-items: center;
  background: rgba(124, 92, 255, 0.14); border: 1px solid rgba(124, 92, 255, 0.28);
  color: var(--accent-2);
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--muted); margin: 0; font-size: 0.99rem; }

/* Vorteile als Checkliste */
.benefits { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
.benefit { display: flex; gap: 0.9rem; align-items: flex-start; }
.benefit__check {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center; margin-top: 2px;
  background: rgba(34, 211, 238, 0.14); border: 1px solid rgba(34, 211, 238, 0.32); color: var(--accent-2);
}
.benefit__check svg { width: 17px; height: 17px; }
.benefit h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.benefit p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* ── Über uns ────────────────────────────────────────────────────────────── */
.about { display: grid; gap: 30px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 880px) { .about { grid-template-columns: 1.3fr 0.9fr; gap: 52px; } }
.about__aside {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
}
.about__aside dl { margin: 0; }
.about__aside dt { color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 1.1rem; }
.about__aside dt:first-child { margin-top: 0; }
.about__aside dd { margin: 0.2rem 0 0; font-weight: 650; }

/* ── Kontakt / CTA ───────────────────────────────────────────────────────── */
.cta-band {
  background:
    radial-gradient(600px 300px at 50% -40%, rgba(124, 92, 255, 0.28), transparent 70%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border-st); border-radius: 22px;
  padding: 44px 28px; text-align: center;
}
.cta-band h2 { margin-bottom: 0.5rem; }
.cta-band p { color: var(--muted); max-width: 52ch; margin: 0 auto 1.7rem; }
.cta-band .btn { margin: 0 auto; }
.cta-band__mail { margin-top: 1.3rem; font-size: 0.98rem; color: var(--muted); }
.cta-band__mail a { color: var(--text); font-weight: 650; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 48px 0 36px; }
.footer__grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer__brand p { color: var(--muted); font-size: 0.95rem; max-width: 40ch; margin-top: 0.8rem; }
.footer h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin: 0 0 0.9rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer ul li { margin-bottom: 0.55rem; }
.footer ul a { color: var(--text); font-weight: 550; font-size: 0.97rem; }
.footer ul a:hover { color: var(--accent-2); text-decoration: none; }
.footer__bottom {
  margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; align-items: center; justify-content: space-between;
  color: var(--muted); font-size: 0.9rem;
}
.footer__bottom nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer__bottom nav a { color: var(--muted); }
.footer__bottom nav a:hover { color: var(--text); }

/* ── Rechtsseiten (Impressum / Datenschutz) ──────────────────────────────── */
.legal { padding: 48px 0 72px; }
.legal__wrap { max-width: 760px; }
.legal h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin-bottom: 0.3rem; }
.legal h2 { font-size: 1.3rem; margin-top: 2.4rem; }
.legal h3 { margin-top: 1.6rem; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--text); }
.legal address { font-style: normal; color: var(--text); line-height: 1.8; }
.legal .back { display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 1.6rem; font-weight: 600; }
.legal .updated { color: var(--muted); font-size: 0.9rem; margin-top: 2.6rem; }
.legal .placeholder {
  background: rgba(124, 92, 255, 0.08); border-left: 3px solid var(--accent);
  padding: 0.4rem 0.9rem; border-radius: 6px; color: var(--text); font-size: 0.95rem;
}
