/* ==========================================================================
   kunden-per-post.de — Design-System
   Stilbasis: PlusCall-Webseite (.ITMarketing) — Inter, Orange #E94E1B,
   Dunkel #191E22, grosse Radien, Ambient-Blobs, Scroll-Fade-Ins.
   Vanilla CSS, kein Build-Step (Hausstandard).
   ========================================================================== */

/* ---------- Fonts (self-hosted, DSGVO) ---------- */
@font-face { font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/Inter-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/Inter-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/Inter-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/Inter-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 800; font-style: normal; font-display: swap; src: url('../fonts/Inter-ExtraBold.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 900; font-style: normal; font-display: swap; src: url('../fonts/Inter-Black.woff2') format('woff2'); }

/* ---------- Tokens ---------- */
:root {
  --orange: #E94E1B;
  --orange-dark: #d44419;
  --dark: #191E22;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / .25);
}

/* ---------- Reset & Basis ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  color: var(--dark);
  background: #fff;
  line-height: 1.625;
  font-size: 1.0625rem;
  overflow-x: hidden;
}
::selection { background: rgba(233, 78, 27, .2); color: var(--dark); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-weight: 900; letter-spacing: -0.03em; line-height: 1.15; color: var(--dark); }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); letter-spacing: -0.045em; line-height: 1.05; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h1 .accent, h2 .accent { color: var(--orange); }

/* ---------- Layout ---------- */
.container { max-width: 80rem; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.container-narrow { max-width: 52rem; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
section { padding: 5rem 0; position: relative; }
section.tight { padding: 3.5rem 0; }
.bg-gray { background: var(--gray-50); }
.bg-dark { background: var(--dark); color: var(--gray-200); }
.bg-dark h2, .bg-dark h3 { color: #fff; }

/* Ambient-Blobs (Signatur) */
.blob-wrap { position: relative; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none; z-index: 0; }
.blob-orange { width: 600px; height: 600px; background: rgba(233, 78, 27, .05); }
.blob-gray { width: 500px; height: 500px; background: var(--gray-200); filter: blur(80px); opacity: .6; }
section > .container, section > .container-narrow { position: relative; z-index: 1; }

/* Subtiles Grid-Pattern */
.grid-pattern {
  background-image: linear-gradient(to right, #80808008 1px, transparent 1px),
                    linear-gradient(to bottom, #80808008 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4.25rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 900; font-size: 1.05rem; color: var(--dark); letter-spacing: -0.02em; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 2.1rem; height: 2.1rem; border-radius: .6rem; flex-shrink: 0;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.brand-mark svg { width: 1.2rem; height: 1.2rem; }
.brand .tld { color: var(--orange); }
.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a { color: var(--gray-600); font-weight: 600; font-size: .95rem; text-decoration: none; transition: color .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--orange); }
.nav-cta {
  background: var(--dark); color: #fff !important; font-weight: 700;
  padding: .6rem 1.2rem; border-radius: .75rem; transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--orange); transform: translateY(-2px); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; color: var(--dark); }
.nav-toggle svg { width: 1.6rem; height: 1.6rem; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow-lg);
    padding: .5rem 1.5rem 1rem;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .7rem 0; border-bottom: 1px solid var(--gray-100); }
  .nav-cta { margin-top: .75rem; text-align: center; border-bottom: 0 !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  font-weight: 700; font-size: 1.05rem; border-radius: var(--radius-lg);
  padding: 1.05rem 2rem; cursor: pointer; border: 0; text-decoration: none !important;
  transition: all .25s ease;
}
.btn svg { width: 1.25rem; height: 1.25rem; transition: transform .25s; }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--dark); color: #fff; }
.btn-primary:hover { background: var(--orange); transform: translateY(-3px); }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 4px 20px rgba(233, 78, 27, .35); }
.btn-orange:hover { background: var(--orange-dark); transform: translateY(-3px); }
.btn-outline { background: #fff; color: var(--dark); border: 2px solid var(--dark); }
.btn-outline:hover { background: var(--dark); color: #fff; transform: translateY(-3px); }
.btn-white { background: #fff; color: var(--orange); }
.btn-white:hover { background: var(--gray-50); transform: translateY(-3px); }
.btn-ghost-white { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-ghost-white:hover { background: rgba(255, 255, 255, .1); }
.btn-sm { padding: .7rem 1.3rem; font-size: .95rem; }

/* ---------- Pills / Badges ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem 1rem; border-radius: 999px;
  background: var(--gray-100); border: 1px solid var(--gray-200);
  font-size: .875rem; font-weight: 600; color: var(--gray-700);
}
.eyebrow svg, .eyebrow .dot { color: var(--orange); }
.eyebrow .dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--orange); animation: kpp-pulse 2s infinite; }
@keyframes kpp-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(233, 78, 27, .4); }
  50% { box-shadow: 0 0 0 6px rgba(233, 78, 27, 0); }
}
.badge-solid {
  display: inline-flex; padding: .25rem .75rem; border-radius: 999px;
  background: var(--orange); color: #fff; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
}

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 2px solid var(--gray-200); border-radius: var(--radius-xl);
  padding: 2rem; transition: border-color .25s, box-shadow .25s, transform .25s;
}
.card:hover { border-color: var(--orange); box-shadow: var(--shadow-xl); }
.card h3 { margin-bottom: .6rem; }
.icon-box {
  width: 3.5rem; height: 3.5rem; border-radius: .75rem; margin-bottom: 1.2rem;
  background: rgba(233, 78, 27, .1); color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, color .25s;
}
.icon-box svg { width: 1.6rem; height: 1.6rem; }
.card:hover .icon-box { background: var(--orange); color: #fff; }

/* Glow-Card (Hero-Signatur) */
.glow-wrap { position: relative; }
.glow-wrap::before {
  content: ''; position: absolute; inset: -4px; z-index: 0;
  background: linear-gradient(90deg, var(--orange), var(--gray-400));
  border-radius: calc(var(--radius-xl) + 4px); filter: blur(10px); opacity: .2;
  transition: opacity .3s;
}
.glow-wrap:hover::before { opacity: .4; }
.glow-wrap > .card, .glow-wrap > .glow-inner { position: relative; z-index: 1; }

/* ---------- Ampel-Vergleich (Telefon/E-Mail/Brief) ---------- */
.ampel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
@media (max-width: 860px) { .ampel-grid { grid-template-columns: 1fr; } }
.ampel-card { background: #fff; border: 2px solid var(--gray-200); border-radius: var(--radius-xl); padding: 2rem; position: relative; }
.ampel-card .status {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  padding: .35rem .85rem; border-radius: 999px; margin-bottom: 1.2rem;
}
.ampel-rot .status { background: rgba(239, 68, 68, .1); color: #dc2626; }
.ampel-gelb .status { background: rgba(245, 158, 11, .12); color: #b45309; }
.ampel-gruen .status { background: rgba(16, 185, 129, .12); color: #047857; }
.ampel-gruen { border-color: var(--green); box-shadow: 0 10px 30px -10px rgba(16, 185, 129, .25); }
.ampel-card .paragraf { font-size: .85rem; color: var(--gray-500); margin-top: 1rem; }
.status-dot { width: .6rem; height: .6rem; border-radius: 50%; flex-shrink: 0; }
.ampel-rot .status-dot { background: var(--red); }
.ampel-gelb .status-dot { background: var(--amber); }
.ampel-gruen .status-dot { background: var(--green); }

/* ---------- Funnel-Schritte ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem; }
@media (max-width: 1020px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .steps-grid { grid-template-columns: 1fr; } }
.step-card { position: relative; background: #fff; border: 2px solid var(--gray-200); border-radius: var(--radius-xl); padding: 2rem 1.6rem 1.6rem; transition: border-color .25s, transform .25s, box-shadow .25s; }
.step-card:hover { border-color: var(--orange); transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.step-num {
  position: absolute; top: -1.1rem; left: 1.4rem;
  width: 2.2rem; height: 2.2rem; border-radius: .7rem;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff; font-weight: 900; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(233, 78, 27, .35);
}
.step-card h3 { font-size: 1.15rem; margin: .4rem 0 .5rem; }
.step-card p { font-size: .95rem; color: var(--gray-600); }

/* ---------- CTA-Box (Leadmagnet) ---------- */
.cta-box {
  background: var(--orange); border-radius: var(--radius-xl); padding: 2.75rem;
  color: #fff; box-shadow: var(--shadow-2xl); position: relative; overflow: hidden;
}
.cta-box::after {
  content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px;
  background: rgba(255, 255, 255, .08); border-radius: 50%; pointer-events: none;
}
.cta-box h3, .cta-box h2 { color: #fff; margin-bottom: .6rem; }
.cta-box p { color: rgba(255, 255, 255, .9); }
.cta-box .badge-solid { background: #fff; color: var(--orange); margin-bottom: 1rem; }
.cta-inline { margin: 3rem 0; }

/* ---------- Formular ---------- */
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-top: 1.6rem; }
@media (max-width: 640px) { .lead-form { grid-template-columns: 1fr; } }
.lead-form .full { grid-column: 1 / -1; }
.lead-form label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: .3rem; }
.lead-form input, .lead-form select {
  width: 100%; padding: .85rem 1rem; border-radius: .75rem; font: inherit; font-size: .98rem;
  border: 2px solid transparent; background: #fff; color: var(--dark);
}
.lead-form input:focus, .lead-form select:focus { outline: none; border-color: var(--dark); }
.lead-form .btn { width: 100%; }
.form-note { font-size: .8rem; color: rgba(255, 255, 255, .85); line-height: 1.5; }
.form-note a { color: #fff; text-decoration: underline; }
/* Honeypot */
.lead-form .hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Formular auf hellem Grund (Squeeze-Page) */
.lead-form-light input, .lead-form-light select { border-color: var(--gray-200); background: #fff; }
.lead-form-light input:focus, .lead-form-light select:focus { border-color: var(--orange); }
.lead-form-light .form-note { color: var(--gray-500); }
.lead-form-light .form-note a { color: var(--orange); }

.form-error {
  grid-column: 1 / -1; background: #fff; color: #dc2626; border-left: 4px solid var(--red);
  padding: .8rem 1rem; border-radius: .6rem; font-size: .92rem; font-weight: 600;
}

/* ---------- Artikel / Ratgeber ---------- */
.article-header { padding: 4.5rem 0 3rem; }
.article-header .eyebrow { margin-bottom: 1.4rem; }
.article-header p.lead { font-size: 1.2rem; color: var(--gray-600); margin-top: 1.4rem; max-width: 46rem; }
.article-body { padding-bottom: 4rem; }
.article-body h2 { font-size: 1.75rem; margin: 3rem 0 1rem; }
.article-body h3 { font-size: 1.3rem; margin: 2.2rem 0 .8rem; }
.article-body p { margin-bottom: 1.2rem; color: var(--gray-700); }
.article-body ul, .article-body ol { margin: 0 0 1.2rem 1.4rem; color: var(--gray-700); }
.article-body li { margin-bottom: .5rem; }
.article-body strong { color: var(--dark); }
.article-body .direct-answer {
  background: var(--gray-50); border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 1.4rem 1.6rem; margin: 0 0 2.5rem; font-size: 1.08rem;
}
.article-body .direct-answer p { margin: 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0 2rem; font-size: .95rem; }
.article-body th, .article-body td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--gray-200); vertical-align: top; }
.article-body th { background: var(--gray-50); font-weight: 800; }
.table-scroll { overflow-x: auto; }
.related-links { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--gray-200); }
.related-links h3 { margin-bottom: 1rem; }
.related-links a { font-weight: 600; }
.disclaimer { font-size: .85rem; color: var(--gray-500); margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--gray-200); }

/* ---------- FAQ (echtes Accordion via <details>) ---------- */
.faq-list { margin-top: 2.5rem; display: grid; gap: .9rem; }
.faq-list details { background: #fff; border: 2px solid var(--gray-200); border-radius: var(--radius-lg); transition: border-color .25s; }
.faq-list details[open], .faq-list details:hover { border-color: var(--orange); }
.faq-list summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-weight: 700; padding: 1.2rem 1.4rem; font-size: 1.05rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-size: 1.5rem; font-weight: 400; color: var(--orange); transition: transform .25s; flex-shrink: 0; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .faq-a { padding: 0 1.4rem 1.3rem; color: var(--gray-600); }
.faq-list .faq-a p { margin-bottom: .8rem; }

/* ---------- Checkliste ---------- */
.check-list { list-style: none !important; margin-left: 0 !important; }
/* Icon absolut statt Flex: sonst werden <strong> und Folgetext eigene
   Flex-Items und brechen als getrennte Spalten um */
.check-list li { position: relative; padding-left: 2.05rem; margin-bottom: .7rem; }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: .2rem; width: 1.35rem; height: 1.35rem;
  background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpath d='M22 4 12 14.01l-3-3'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpath d='M22 4 12 14.01l-3-3'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- Footer ---------- */
.site-footer { background: #fff; margin-top: 2rem; }
.footer-divider { height: 1px; background: linear-gradient(to right, transparent, var(--gray-200), transparent); }
.site-footer .container { padding-top: 3rem; padding-bottom: 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.site-footer h4 { font-size: .95rem; margin-bottom: .9rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: var(--gray-600); text-decoration: none; font-size: .95rem; transition: color .2s; }
.site-footer a:hover { color: var(--orange); }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--gray-200);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: .85rem; color: var(--gray-500);
}
.footer-claim { color: var(--gray-600); font-size: .95rem; max-width: 24rem; margin-top: .8rem; }

/* ---------- Scroll-Fade-Ins ---------- */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.section-intro { max-width: 46rem; }
.section-intro.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-intro p { color: var(--gray-600); font-size: 1.15rem; margin-top: 1rem; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; } .mt-6 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.muted { color: var(--gray-500); }
.small { font-size: .9rem; }
