/* ============ Fonts (lokal, DSGVO) ============ */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/inter-700.woff2') format('woff2');
}

/* ============ Reset + Tokens ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-card: #ffffff;
  --bg-deep: #0f172a;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --text: #0f172a;
  --text-mid: #475569;
  --text-light: #94a3b8;
  --accent: #2563eb;
  --accent-dk: #1d4ed8;
  --accent-soft: #bfdbfe;
  --accent-bg: #eff6ff;
  --accent-deep: #1e3a8a;
  --success: #10b981;
  --danger: #ef4444;
  --shadow: 0 1px 3px rgba(15,23,42,.05), 0 8px 24px rgba(15,23,42,.04);
  --shadow-lg: 0 4px 12px rgba(37,99,235,.08), 0 16px 40px rgba(15,23,42,.08);
  --r: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --t: .2s ease;
  --max: 1100px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-dk); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ============ Domain-Verkauf Sticky-Banner ============ */
.sale-banner {
  background: var(--bg-deep);
  color: #fff;
  padding: 16px 0;
  font-size: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--accent);
}
.sale-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  text-align: center;
}
.sale-banner-text { color: #fff; line-height: 1.4; }
.sale-banner-text strong { color: var(--accent-soft); }
.sale-banner-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: var(--r);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}
.sale-banner-cta:hover { background: #fff; color: var(--accent-dk) !important; }
@media (max-width: 640px) {
  .sale-banner { font-size: 15px; padding: 14px 0; }
  .sale-banner-inner { gap: 12px; }
  .sale-banner-cta { padding: 9px 16px; font-size: 14px; }
}

/* ============ Header / Navigation ============ */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  gap: 20px;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}
.site-logo-img {
  height: 36px;
  width: auto;
  display: block;
}
@media (max-width: 540px) {
  .site-logo-img { height: 30px; }
}
.site-nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.site-nav a {
  color: var(--text-mid);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--r);
  transition: background-color var(--t), color var(--t);
  position: relative;
}
.site-nav a:hover {
  color: var(--accent-dk);
  background-color: var(--accent-bg);
}
.site-nav a[aria-current="page"] {
  color: var(--accent-dk);
  background-color: var(--accent-bg);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--accent);
}
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; margin-right: -10px; }
.menu-toggle svg { display: block; width: 28px; height: 28px; stroke: var(--text); }
@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    z-index: 90;
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 17px;
    width: 100%;
  }
  .site-nav a:last-child { border-bottom: 0; }
}

/* ============ Hero ============ */
.hero {
  padding: 64px 0 56px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, var(--accent-bg) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--line);
}
.hero h1 {
  font-size: clamp(32px, 5vw, 50px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.12;
  margin-bottom: 18px;
  max-width: 820px;
}
.hero .lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-mid);
  max-width: 740px;
  margin-bottom: 26px;
}
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.cta-row .btn { flex: 1 1 220px; max-width: 280px; justify-content: center; text-align: center; }

/* CRM-Pipeline-Eyebrow im Hero (kleine Pipeline-Visualisierung) */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dk);
  letter-spacing: .08em;
  text-transform: uppercase;
  background: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--accent-soft);
  margin-bottom: 18px;
}
.hero-eyebrow .pipeline-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.hero-eyebrow .pipeline-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-soft);
}
.hero-eyebrow .pipeline-dots span:last-child { background: var(--accent); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--t);
  font-family: inherit;
}
.btn-primary {
  background: var(--accent);
  color: #fff !important;
  border-color: var(--accent);
  box-shadow: 0 1px 2px rgba(37,99,235,.2);
}
.btn-primary:hover {
  background: var(--accent-dk);
  border-color: var(--accent-dk);
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(37,99,235,.25);
  transform: translateY(-1px);
}
.btn-secondary {
  background: #fff;
  color: var(--text) !important;
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-dk) !important; }

/* ============ Sections ============ */
.section { padding: 60px 0; }
.section h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 16px;
  margin-top: 0;
}
.section h3 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  margin: 28px 0 10px;
  letter-spacing: -.01em;
}
.section p { color: var(--text); margin-bottom: 16px; }
.section ul, .section ol { padding-left: 22px; margin-bottom: 16px; color: var(--text); }
.section li { margin-bottom: 6px; }

.section-alt { background: var(--bg-soft); }

.section-title-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dk);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

/* CRM-Pipeline-Trenner zwischen Sektionen */
.pipeline-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 0 4px;
}
.pipeline-divider span {
  width: 8px; height: 8px;
  background: var(--accent-soft);
  border-radius: 50%;
}
.pipeline-divider span:nth-child(2) { background: var(--accent); width: 24px; border-radius: 4px; }
.pipeline-divider span:nth-child(3) { background: var(--accent-dk); }

/* ============ Card-Grid ============ */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 24px 0;
}
/* Eine Spalte voller Breite (z.B. fuer "Wie geht's weiter"-Listen) */
.card-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 24px 0;
}
.card-stack .card { width: 100%; }
@media (min-width: 540px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; }
  .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; }
  .card-grid:not(.cols-3):not(.cols-4) { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
  position: relative;
  border-left: 3px solid var(--line);
}
.card:hover {
  border-color: var(--accent-soft);
  border-left-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.card h3 { margin-top: 0; font-size: 18px; }
.card p { font-size: 15px; color: var(--text-mid); margin-bottom: 0; }
.card .card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--accent-bg);
  color: var(--accent-dk);
  border-radius: var(--r);
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 700;
}
.card a.card-link {
  color: var(--accent-dk);
  font-weight: 600;
  font-size: 14px;
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ============ Inline-Highlight ============ */
.highlight-box {
  background: var(--accent-bg);
  border-left: 4px solid var(--accent);
  padding: 18px 22px;
  border-radius: 0 var(--r) var(--r) 0;
  margin: 24px 0;
  font-size: 16px;
}
.highlight-box strong { color: var(--accent-dk); }

.note-box {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  padding: 16px 20px;
  border-radius: 0 var(--r) var(--r) 0;
  margin: 24px 0;
  font-size: 15px;
  color: #92400e;
}

/* ============ Tabellen ============ */
.table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: var(--r-lg); }
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.table-wrap th, .table-wrap td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap th {
  font-weight: 600;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 14px;
  letter-spacing: .01em;
}
.table-wrap tbody tr:hover td { background: var(--accent-bg); }
.table-wrap .badge-yes { color: var(--success); font-weight: 600; }
.table-wrap .badge-no { color: var(--text-light); }

/* ============ FAQ Akkordeon ============ */
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin: 12px 0;
  background: var(--bg-card);
  overflow: hidden;
}
.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  margin-left: auto;
  font-size: 22px;
  color: var(--accent-dk);
  transition: transform var(--t);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 20px 18px; color: var(--text-mid); font-size: 15px; line-height: 1.7; }

/* ============ Bilder + Figures ============ */
figure {
  margin: 24px 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
figure img { width: 100%; display: block; }
figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-light);
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}

/* ============ Forms ============ */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-family: inherit;
  font-size: 16px;
  background: var(--bg-card);
  color: var(--text);
  transition: border-color var(--t), box-shadow var(--t);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-group textarea { min-height: 160px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 13px; color: var(--text-light); margin-top: 6px; }
.form-privacy { font-size: 13px; color: var(--text-light); margin-top: 18px; line-height: 1.6; }
.msg-ok { background: var(--accent-bg); border: 1px solid var(--accent-soft); padding: 14px 18px; margin-bottom: 22px; border-radius: var(--r); color: var(--accent-dk); font-size: 15px; }
.msg-err { background: #fef2f2; border: 1px solid #fecaca; padding: 14px 18px; margin-bottom: 22px; border-radius: var(--r); color: #991b1b; font-size: 15px; }

/* ============ Breadcrumb ============ */
.crumbs {
  font-size: 14px;
  color: var(--text-light);
  padding: 16px 24px 0;
}
.crumbs a { color: var(--text-mid); }
.crumbs .sep { margin: 0 6px; }

/* ============ AdSense-Wrapper ============ */
.ad-slot {
  margin: 36px 0;
  padding: 8px 0;
  text-align: center;
  min-height: 90px;
}
.ad-slot .ad-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-light);
  margin-bottom: 6px;
}
.ad-slot.ad-placeholder {
  background: repeating-linear-gradient(45deg, var(--bg-soft), var(--bg-soft) 10px, var(--line-soft) 10px, var(--line-soft) 20px);
  border: 1px dashed var(--line);
  border-radius: var(--r);
  padding: 30px;
  color: var(--text-light);
  font-size: 13px;
}

/* ============ Sources / Sources-List ============ */
.sources {
  margin-top: 28px;
  padding: 20px 22px;
  background: var(--bg-soft);
  border-radius: var(--r);
  border: 1px solid var(--line-soft);
  font-size: 14px;
}
.sources h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-mid);
  margin-bottom: 10px;
}
.sources ol { margin: 0; padding-left: 22px; color: var(--text-mid); }
.sources li { margin-bottom: 4px; line-height: 1.5; }

/* ============ Footer ============ */
.site-footer {
  background: var(--bg-deep);
  color: #cbd5e1;
  padding: 48px 0 24px;
  margin-top: 80px;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 28px;
}
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: #94a3b8; font-size: 14px; }
.site-footer a:hover { color: var(--accent-soft); }
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #64748b;
}

/* ============ Accessibility ============ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--r);
  z-index: 200;
  font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 8px; }

/* ============ Print ============ */
@media print {
  .sale-banner, .ad-slot, .menu-toggle, .site-nav, .site-footer { display: none !important; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; text-decoration: underline; }
}
