/* ============================================================
   EDV für Arztpraxen — Design-System „Modern Gradient"
   Look: helles SaaS-Design, Blau→Violett-Verläufe, weiche
   farbige Schatten (angelehnt an Impreza-Theme-Ästhetik)
   ============================================================ */

:root {
  --blau: #2E6BF6;
  --blau-tief: #1D4ED8;
  --violett: #7C3AED;
  --violett-hell: #A855F7;
  --grad: linear-gradient(120deg, #2E6BF6 0%, #7C3AED 100%);
  --grad-soft: linear-gradient(120deg, rgba(46,107,246,.09), rgba(124,58,237,.09));
  --ink: #10162B;
  --text: #2A3245;
  --text-soft: #5C6577;
  --bg: #FFFFFF;
  --bg-alt: #F6F8FC;
  --linie: #E7ECF5;
  --white: #FFFFFF;
  --gruen: #16A34A;

  --font-display: "Manrope", "Inter", -apple-system, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 16px;
  --radius-s: 10px;
  --shadow: 0 1px 2px rgba(16, 22, 43, .04), 0 10px 30px rgba(16, 22, 43, .07);
  --shadow-lift: 0 4px 10px rgba(46, 107, 246, .10), 0 22px 55px rgba(46, 107, 246, .16);
  --maxw: 1160px;
  --maxw-text: 800px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Typografie ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.14; color: var(--ink); letter-spacing: -0.022em; }
h1 { font-size: clamp(2.2rem, 4.8vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .6em; }
h3 { font-size: 1.16rem; font-weight: 700; margin-bottom: .35em; }
h4 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 700; color: var(--ink); margin-bottom: .3em; }
p  { margin-bottom: 1em; }
a  { color: var(--blau); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: var(--ink); }
:focus-visible { outline: 3px solid var(--blau); outline-offset: 2px; border-radius: 4px; }

.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--blau);
  margin-bottom: .9em;
}
.lead { font-size: 1.17rem; color: var(--text-soft); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--maxw-text); }

section { padding: 84px 0; }
section.tight { padding: 54px 0; }
.section-blaugrau { background: var(--bg-alt); }
.section-white { background: var(--bg); }
.center { text-align: center; }
.center .eyebrow { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .97rem; font-weight: 700;
  padding: 15px 30px;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
  text-decoration: none !important;
}
.btn-primary {
  background: var(--grad); color: var(--white);
  box-shadow: 0 8px 24px rgba(46, 107, 246, .35);
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(124, 58, 237, .4); }
.btn-secondary { background: var(--white); color: var(--blau); border-color: rgba(46,107,246,.35); }
.btn-secondary:hover { border-color: var(--blau); background: rgba(46,107,246,.05); transform: translateY(-2px); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linie);
}
.header-inner {
  display: flex; align-items: center; gap: 28px;
  max-width: var(--maxw); margin: 0 auto; padding: 13px 24px;
}
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none !important; }
.logo-mark { width: 42px; height: 42px; flex: 0 0 42px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.08; }
.logo .wordmark { font-family: var(--font-display); font-weight: 800; font-size: 1.28rem; color: var(--ink); letter-spacing: -0.02em; white-space: nowrap; }
.logo .wordmark span {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--blau);
}
.logo .claim { font-size: .67rem; letter-spacing: .13em; text-transform: uppercase; color: var(--text-soft); }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav > .nav-item { position: relative; }
.main-nav a.nav-link, .main-nav button.nav-link {
  display: inline-block; padding: 9px 13px;
  font-family: var(--font-body); font-size: .95rem; font-weight: 500;
  color: var(--text); background: none; border: none; cursor: pointer;
  border-radius: 9px; text-decoration: none !important;
}
.main-nav a.nav-link:hover, .main-nav button.nav-link:hover,
.main-nav .nav-item.open > .nav-link { background: var(--bg-alt); color: var(--blau); }
.nav-caret { font-size: .62em; margin-left: 4px; opacity: .6; }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 300px;
  background: var(--white);
  border: 1px solid var(--linie);
  border-radius: 14px;
  box-shadow: var(--shadow-lift);
  padding: 8px;
  display: none;
}
.nav-item.open .dropdown { display: block; }
.dropdown a {
  display: block; padding: 9px 12px; border-radius: 9px;
  font-size: .93rem; color: var(--text); text-decoration: none !important;
}
.dropdown a:hover { background: var(--grad-soft); color: var(--blau); }
.dropdown a small { display: block; color: var(--text-soft); font-size: .8rem; }
.dropdown .dd-head {
  padding: 9px 12px 4px; font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--blau);
}

.header-cta { margin-left: 8px; padding: 10px 22px; font-size: .9rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--linie); border-radius: 9px; padding: 8px 11px; font-size: 1.1rem; cursor: pointer; color: var(--ink); }

@media (max-width: 1040px) {
  .main-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--linie);
    box-shadow: var(--shadow-lift); padding: 10px 16px 18px;
  }
  .main-nav.open { display: flex; }
  .dropdown { position: static; display: block; border: none; box-shadow: none; padding: 0 0 6px 10px; min-width: 0; }
  .header-cta { margin: 10px 0 0; text-align: center; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 96px 0 84px; overflow: hidden;
  background:
    radial-gradient(52rem 30rem at 110% -12%, rgba(124, 58, 237, .12), transparent 60%),
    radial-gradient(46rem 28rem at -14% 112%, rgba(46, 107, 246, .12), transparent 60%),
    var(--bg);
}
.hero .container { position: relative; z-index: 2; max-width: 920px; }
.hero-curve { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero h1 { margin-bottom: .5em; }
.trustline { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 32px; padding: 0; list-style: none; font-size: .93rem; color: var(--text-soft); font-weight: 500; }
.trustline li::before { content: "✓"; color: var(--blau); font-weight: 800; margin-right: 8px; }

/* ---------- Karten & Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.card { display: block; color: inherit; text-decoration: none !important; }
a.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: rgba(46,107,246,.35); }
.card .card-link {
  display: inline-block; margin-top: 12px; font-weight: 700; font-size: .93rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--blau);
}
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: var(--white);
  font-size: 1.35rem; margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(46, 107, 246, .3);
}
.card-blaugrau { background: var(--grad-soft); border-color: transparent; box-shadow: none; }

/* Problem-Karten */
.problem-card { border-top: 4px solid transparent; border-image: linear-gradient(120deg, #2E6BF6, #7C3AED) 1; border-left: 1px solid var(--linie); }
.problem-card h3 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 700; }

/* ---------- Dunkle Sektion (Erreichbarkeit) ---------- */
.section-dark {
  background:
    radial-gradient(50rem 30rem at 90% -20%, rgba(124, 58, 237, .35), transparent 60%),
    radial-gradient(40rem 26rem at -10% 120%, rgba(46, 107, 246, .3), transparent 60%),
    linear-gradient(160deg, #131A38 0%, #0D1226 100%);
  color: #C7D2E8;
  position: relative; overflow: hidden;
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark strong { color: #A5B9FF; }
.section-dark .servicezeiten {
  display: inline-block; margin-top: 8px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  padding: 13px 20px; font-size: .95rem;
}
.quote {
  margin-top: 34px; padding: 28px 30px;
  background: rgba(255,255,255,.06);
  border-left: 4px solid var(--violett-hell);
  border-radius: 0 14px 14px 0;
  font-style: italic; font-size: 1.05rem;
}
.quote cite { display: block; margin-top: 12px; font-style: normal; font-size: .88rem; opacity: .75; }

.quote-light {
  padding: 28px 30px; background: var(--white);
  border-left: 4px solid; border-image: linear-gradient(#2E6BF6, #7C3AED) 1;
  border-top: 1px solid var(--linie); border-right: 1px solid var(--linie); border-bottom: 1px solid var(--linie);
  border-radius: 0 14px 14px 0;
  box-shadow: var(--shadow); font-style: italic;
}
.quote-light cite { display: block; margin-top: 12px; font-style: normal; font-size: .88rem; color: var(--text-soft); }

/* ---------- Schritte ---------- */
.steps { display: grid; gap: 22px; counter-reset: step; }
.steps-3 { grid-template-columns: repeat(3, 1fr); }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .steps-3, .steps-4 { grid-template-columns: 1fr; } }
.step { position: relative; background: var(--white); border: 1px solid var(--linie); border-radius: var(--radius); padding: 28px 26px 26px; box-shadow: var(--shadow); }
.step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--grad); color: var(--white);
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem;
  margin-bottom: 16px;
  box-shadow: 0 8px 18px rgba(46, 107, 246, .3);
}
.step h3 { font-family: var(--font-body); font-size: 1.03rem; font-weight: 700; }
.step p { margin-bottom: 0; font-size: .95rem; color: var(--text-soft); }

/* ---------- Zahlen ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat .num {
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--blau);
}
.stat .lbl { font-size: .9rem; color: var(--text-soft); }

/* ---------- Fakten-Kasten ---------- */
.factbox {
  position: relative;
  background: var(--white);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 30px 32px 30px 36px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.factbox::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--grad); }
.factbox .factbox-label {
  font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--blau);
  margin-bottom: 10px;
}
.factbox p:last-child { margin-bottom: 0; }

.checklist { list-style: none; margin: 0 0 1em; }
.checklist li { padding-left: 32px; position: relative; margin-bottom: 11px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--blau); font-weight: 800; }
.crosslist li::before { content: "→"; color: var(--violett); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--white);
  border: 1px solid var(--linie);
  border-radius: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color .2s ease;
}
.faq details[open] { border-color: rgba(46,107,246,.4); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 19px 54px 19px 24px;
  font-weight: 600; color: var(--ink);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.45rem; font-weight: 500;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--blau);
}
.faq details[open] summary::after { content: "–"; }
.faq .faq-a { padding: 0 24px 22px; color: var(--text-soft); }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* ---------- CTA-Band ---------- */
.cta-band {
  background:
    radial-gradient(40rem 22rem at 85% -30%, rgba(255,255,255,.14), transparent 60%),
    var(--grad);
  color: var(--white);
  position: relative; overflow: hidden;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,.9); max-width: 640px; margin-left: auto; margin-right: auto; }
.cta-band .btn-primary { background: var(--white); color: var(--blau-tief); box-shadow: 0 10px 26px rgba(13, 18, 38, .3); }
.cta-band .btn-primary:hover { filter: none; background: #F0F4FF; }
.cta-band .tel { display: inline-block; margin-top: 14px; font-size: .95rem; color: rgba(255,255,255,.85); }
.cta-band .tel strong { color: var(--white); }

/* ---------- Ansprechpartner ---------- */
.contact-module {
  display: flex; align-items: center; gap: 22px;
  background: var(--white); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: 26px 30px;
  box-shadow: var(--shadow); max-width: 640px; margin: 0 auto;
}
.avatar {
  flex: 0 0 78px; width: 78px; height: 78px; border-radius: 22px;
  background: var(--grad);
  color: var(--white); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 800;
  box-shadow: 0 10px 24px rgba(46, 107, 246, .32);
}
.contact-module .cm-name { font-weight: 800; color: var(--ink); font-family: var(--font-display); }
.contact-module .cm-role { font-size: .88rem; color: var(--text-soft); margin-bottom: 6px; }
.contact-module .cm-quote { font-style: italic; font-size: .95rem; margin-bottom: 6px; }
.contact-module .cm-reach { font-size: .9rem; color: var(--text-soft); }
@media (max-width: 560px) { .contact-module { flex-direction: column; text-align: center; } }

/* ---------- Prose ---------- */
.breadcrumb { font-size: .85rem; color: var(--text-soft); padding: 18px 0 0; }
.prose h2 { margin-top: 1.7em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1.1em 1.3em; }
.prose li { margin-bottom: .45em; }
.prose ul.checklist, .prose ul.crosslist { margin-left: 0; }

.further {
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid var(--linie);
  font-size: .93rem; color: var(--text-soft);
}
.further a { font-weight: 700; }

.notice {
  background: var(--grad-soft); border: 1px solid rgba(46,107,246,.15);
  border-radius: 14px;
  padding: 20px 24px; font-size: .95rem; color: var(--text);
}

/* ---------- Formular ---------- */
.form-grid { display: grid; gap: 18px; }
label { font-size: .9rem; font-weight: 600; color: var(--ink); display: block; margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; padding: 13px 15px;
  font-family: var(--font-body); font-size: 1rem; color: var(--text);
  background: var(--bg-alt); border: 1px solid var(--linie); border-radius: 10px;
  transition: border-color .15s ease, background .15s ease;
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(46,107,246,.25); border-color: var(--blau); background: var(--white); }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--text-soft); }
.checkbox-row input { width: auto; margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: #0D1226; color: #93A1BF; font-size: .92rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px;
  padding: 62px 0 42px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--white); font-size: .8rem; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: #93A1BF; display: inline-block; margin-bottom: 8px; }
.site-footer a:hover { color: var(--white); }
.footer-logo { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; color: var(--white); letter-spacing: -0.02em; }
.footer-logo span {
  background: linear-gradient(120deg, #6E9BFF, #B07CFF);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: #6E9BFF;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0; display: flex; flex-wrap: wrap; gap: 10px 26px;
  justify-content: space-between; font-size: .85rem;
}

/* ---------- Kleinkram ---------- */
.badge {
  display: inline-block; font-size: .78rem; font-weight: 700;
  background: var(--grad-soft); color: var(--blau);
  border: 1px solid rgba(46,107,246,.18);
  border-radius: 999px; padding: 4px 13px; margin-bottom: 14px;
}
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
