/* ═══════════════════════════════════════════════════════════════════
   SiteBakery – Public Stylesheet
   Mobile-first, custom properties, no framework dependencies
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Self-hosted Inter font (DSGVO-konform, kein Google-Request) ── */
@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: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-500.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');
}

/* ─── Design tokens ─────────────────────────────────────────────── */
:root {
  --color-bg:          #ffffff;
  --color-surface:     #f8f9fa;
  --color-border:      #e5e7eb;
  --color-text:        #111827;
  --color-text-muted:  #6b7280;
  --color-heading:     #0f172a;

  --color-primary:     #d97706;
  --color-primary-hover: #b45309;
  --color-primary-light: #fffbeb;

  --color-accent:      #16a34a;
  --color-accent-hover:#15803d;

  --color-error:       #dc2626;
  --color-warning:     #d97706;
  --color-success:     #16a34a;

  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-full: 9999px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.1);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.12);

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, monospace;

  --max-width: 1120px;
  --section-py: 5rem;
}

/* ─── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-sans); background: var(--color-bg); color: var(--color-text); line-height: 1.6; font-size: 1rem; }
img, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
h1,h2,h3,h4 { color: var(--color-heading); line-height: 1.25; }

/* ─── Utility ────────────────────────────────────────────────────── */
.container       { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
.text-muted      { color: var(--color-text-muted); font-size: .875rem; }
.section-title   { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; text-align: center; margin-bottom: .75rem; }
.section-sub     { text-align: center; color: var(--color-text-muted); max-width: 560px; margin: 0 auto 3rem; }

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font-weight: 600; border-radius: var(--radius-md); border: 2px solid transparent;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
  text-decoration: none; white-space: nowrap;
  padding: .6rem 1.25rem; font-size: .95rem;
}
.btn:hover { text-decoration: none; }
.btn-primary  { background: var(--color-primary); color: #fff; }
.btn-header {color: #fff !important;}
.btn-primary:hover { background: var(--color-primary-hover); }
.btn-ghost    { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn-ghost:hover { background: var(--color-surface); }
.btn-sm  { padding: .4rem .9rem; font-size: .85rem; }
.btn-lg  { padding: .8rem 1.75rem; font-size: 1rem; }
.btn-xl  { padding: 1rem 2.25rem; font-size: 1.1rem; }
.btn-xs  { padding: .25rem .65rem; font-size: .8rem; border-radius: var(--radius-sm); }
.btn-full { width: 100%; }

/* ─── Site Header ────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 1rem; }
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo__img { height: 68px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a { color: var(--color-text-muted); font-size: .9rem; font-weight: 500; }
.site-nav a:hover { color: var(--color-text); text-decoration: none; }

/* Nav dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown__toggle {
  background: none; border: none; cursor: pointer; font-family: inherit;
  color: var(--color-text-muted); font-size: .9rem; font-weight: 500;
  display: flex; align-items: center; gap: .3rem; padding: 0;
}
.nav-dropdown__toggle:hover { color: var(--color-text); }
.nav-dropdown__arrow { font-size: .65rem; transition: transform .2s; display: inline-block; }
.nav-dropdown__toggle[aria-expanded="true"] .nav-dropdown__arrow { transform: rotate(180deg); }
.nav-dropdown__menu {
  display: none; position: absolute; top: calc(100% + .75rem); left: 50%;
  transform: translateX(-50%); background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-md, 8px); box-shadow: var(--shadow-md); min-width: 140px;
  padding: .4rem 0; z-index: 200;
}
.nav-dropdown__menu.is-open { display: block; }
.nav-dropdown__menu a {
  display: block; padding: .5rem 1.1rem; font-size: .9rem;
  color: var(--color-text-muted); white-space: nowrap; border: none;
}
.nav-dropdown__menu a:hover { color: var(--color-text); background: var(--color-bg-alt, #f8f9fa); }

/* Kundenlogin separator */
.nav-kundenlogin { border-left: 1px solid var(--color-border); padding-left: 1.5rem; margin-left: -.25rem; }

/* Burger button (hidden on desktop) */
.burger {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px; background: none; border: none; cursor: pointer;
  padding: 4px; border-radius: var(--radius-sm); flex-shrink: 0;
}
.burger span {
  display: block; width: 22px; height: 2px; background: var(--color-text);
  border-radius: 2px; transition: transform .25s ease, opacity .2s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
@media (max-width: 766px) {
  .burger { display: flex; }
  .site-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--color-border);
    flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 1.5rem;
    gap: .25rem; box-shadow: var(--shadow-md);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .65rem 0; font-size: 1rem; border-bottom: 1px solid var(--color-border); }
  .site-nav > a:last-child { border-bottom: none; margin-top: .75rem; }
  .site-nav .btn-sm { text-align: center; padding: .75rem; font-size: .95rem; }
  /* Flatten dropdown in mobile burger menu */
  .nav-dropdown { display: contents; }
  .nav-dropdown__toggle { display: none; }
  .nav-dropdown__menu {
    display: flex !important; flex-direction: column; position: static;
    box-shadow: none; border: none; border-radius: 0; padding: 0;
    background: transparent; transform: none; min-width: 0;
  }
  .nav-dropdown__menu a { padding: .65rem 0; font-size: 1rem; border-bottom: 1px solid var(--color-border); }
  .nav-kundenlogin {
    border-left: none; padding-left: 0; margin-left: 0;
    margin-top: .5rem;
    font-size: .875rem; color: var(--color-text-muted);
  }
}

/* ─── Site Footer ────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--color-border); padding: 2rem 0; margin-top: 5rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-copy { color: var(--color-text-muted); font-size: .875rem; }
.footer-nav { display: flex; gap: 2.5rem; flex-wrap: wrap; align-items: flex-start; }
.footer-nav-group { display: flex; flex-direction: column; gap: .4rem; }
.footer-nav-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--color-text-muted); opacity: .6; margin-bottom: .15rem; }
.footer-nav a { color: var(--color-text-muted); font-size: .875rem; }

/* ─── Hero ───────────────────────────────────────────────────────── */
.hero { padding: 4rem 0 3rem; background: linear-gradient(160deg, #fff7ed 0%, #fff 60%); }
.hero-inner { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 768px) { .hero-inner { grid-template-columns: 1fr 1fr; } }

.hero-badge { display: inline-block; background: var(--color-primary-light); color: var(--color-primary); font-size: .8rem; font-weight: 600; padding: .25rem .75rem; border-radius: var(--radius-full); margin-bottom: 1rem; letter-spacing: .02em; text-transform: uppercase; }
.hero-headline { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; letter-spacing: -.02em; }
.hero-sub { font-size: 1.1rem; color: var(--color-text-muted); margin-bottom: 1.25rem; max-width: 480px; }
.hero-price { margin-bottom: 1.5rem; }
.hero-price strong { font-size: 1.15rem; }
.hero-price span { color: var(--color-text-muted); font-size: .9rem; display: block; margin-top: .15rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
/* Trust step flow */
.trust-steps { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 2.75rem; flex-wrap: wrap; }
.trust-step { font-size: .82rem; font-weight: 600; color: #15803d; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--radius-full); padding: .3rem .75rem; }
.trust-step-arrow { color: #86efac; font-size: .9rem; flex-shrink: 0; }

/* ─── Demo-Stack (Hero Visual) ───────────────────────────────────── */
@media (max-width: 767px) { .hero-visual { display: none; } .trust-steps { display: none; } }

.demo-stack {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 320px;
  margin: 0 auto;
  cursor: pointer;
  perspective: 1000px;
}

.demo-card {
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.75s ease, z-index 0s;
  will-change: transform;
}

/* Karten-Positionen */
.demo-card.is-active  { transform: translateY(0px)  rotate(0deg)   scale(1);    z-index: 4; opacity: 1; }
.demo-card.is-back-1  { transform: translateY(10px) rotate(3.5deg) scale(0.96); z-index: 3; opacity: 1; }
.demo-card.is-back-2  { transform: translateY(18px) rotate(-2deg)  scale(0.92); z-index: 2; opacity: 1; }
.demo-card.is-hidden  { transform: translateY(0px)  rotate(0deg)   scale(0.88); z-index: 1; opacity: 0; pointer-events: none; }

/* Browser-Bar der Karte */
.demo-card-bar {
  background: var(--color-surface);
  padding: .6rem .9rem;
  display: flex;
  gap: .4rem;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.demo-card-bar span { width: 9px; height: 9px; border-radius: 50%; }
.demo-card-bar span:nth-child(1) { background: #fca5a5; }
.demo-card-bar span:nth-child(2) { background: #fcd34d; }
.demo-card-bar span:nth-child(3) { background: #86efac; }
.demo-card-url {
  flex: 1; background: #fff; border: 1px solid var(--color-border);
  border-radius: 20px; padding: 3px 10px; font-size: .62rem;
  color: #94a3b8; text-align: center; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

/* Iframe-Bereich */
.demo-card-screen { position: relative; height: 240px; overflow: hidden; }
.demo-card-iframe {
  width: 1280px; height: 900px;
  transform: scale(0.328);
  transform-origin: top left;
  pointer-events: none; user-select: none;
  border: none;
}

/* Label unten */
.demo-card-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(255,255,255,.95) 60%, transparent);
  padding: .6rem 1rem .5rem;
  font-size: .78rem; font-weight: 600; color: var(--color-text-muted);
  text-align: center;
}

/* Klick-Hint */
.demo-stack::after {
  content: 'Klicken für nächste →';
  position: absolute;
  bottom: -1.6rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: .72rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  pointer-events: none;
}

/* ─── Steps ──────────────────────────────────────────────────────── */
.steps-section { padding: var(--section-py) 0; background: var(--color-surface); }
.steps-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps-grid { grid-template-columns: repeat(5, 1fr); } }

.step-card { background: var(--color-bg); border-radius: var(--radius-lg); padding: 1.5rem; border: 1px solid var(--color-border); }
.step-number { width: 36px; height: 36px; background: var(--color-primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; margin-bottom: 1rem; }
.step-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.step-card p { font-size: .875rem; color: var(--color-text-muted); }

/* ─── USP ────────────────────────────────────────────────────────── */
.usp-section { padding: var(--section-py) 0; }
.usp-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .usp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .usp-grid { grid-template-columns: repeat(3, 1fr); } }

.usp-card { border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.5rem; transition: box-shadow .2s; }
.usp-card:hover { box-shadow: var(--shadow-md); }
.usp-icon { font-size: 1.75rem; margin-bottom: .75rem; }
.usp-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.usp-card p { font-size: .875rem; color: var(--color-text-muted); }

/* ─── Pricing ────────────────────────────────────────────────────── */
.pricing-section { padding: var(--section-py) 0; background: var(--color-surface); text-align: center; }
.pricing-card { display: flex; align-items: flex-start; gap: 0; background: var(--color-bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; max-width: 760px; margin: 0 auto 1.5rem; border: 1px solid var(--color-border); flex-direction: column; }
@media (min-width: 640px) { .pricing-card { flex-direction: row; align-items: stretch; } }

.pricing-col { padding: 2rem; flex: 1; }
.pricing-col--setup   { border-bottom: 1px solid var(--color-border); }
@media (min-width: 640px) {
  .pricing-col--setup { border-bottom: none; border-right: 1px solid var(--color-border); }
}
.pricing-plus { display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; color: var(--color-text-muted); padding: .5rem; }
@media (min-width: 640px) { .pricing-plus { padding: 1rem; } }

.pricing-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--color-text-muted); margin-bottom: .4rem; }
.pricing-amount { font-size: 2.5rem; font-weight: 800; color: var(--color-heading); margin-bottom: .2rem; }
.pricing-amount span { font-size: 1rem; font-weight: 500; color: var(--color-text-muted); }
.pricing-desc { font-size: .875rem; color: var(--color-text-muted); margin-bottom: .4rem; }
.pricing-vat { font-size: .8rem; color: var(--color-text-muted); margin-bottom: 1.25rem; }
.pricing-vat small { opacity: .75; }
.price-vat-note { font-size: .75rem; font-weight: 400; color: var(--color-text-muted); margin-left: .25rem; }
.pricing-list { text-align: left; }
.pricing-list li { font-size: .875rem; padding: .3rem 0; color: var(--color-text); }
.pricing-list li::before { content: '✓ '; color: var(--color-accent); font-weight: 700; }
/* Risk reversal banner */
.risk-banner { background: #f0fdf4; border-top: 2px solid #bbf7d0; border-bottom: 2px solid #bbf7d0; padding: 1rem 0; }
.risk-banner__inner { display: flex; align-items: center; gap: .75rem; }
.risk-banner__icon { font-size: 1.4rem; flex-shrink: 0; }
.risk-banner__text { font-size: .95rem; color: #166534; margin: 0; line-height: 1.5; }
.risk-banner__text strong { font-weight: 700; }

/* Pricing guarantee box */
.pricing-guarantee { display: flex; align-items: flex-start; gap: 1rem; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--radius-md); padding: 1rem 1.25rem; max-width: 760px; margin: 0 auto 1.5rem; text-align: left; }
.pricing-guarantee__icon { font-size: 1.5rem; flex-shrink: 0; line-height: 1; margin-top: .1rem; }
.pricing-guarantee__body strong { display: block; color: #15803d; font-size: .95rem; font-weight: 700; margin-bottom: .2rem; }
.pricing-guarantee__body p { font-size: .875rem; color: #166534; margin: 0; }

.pricing-note { font-size: .825rem; color: var(--color-text-muted); margin-bottom: 1.5rem; }

/* ─── FAQ ────────────────────────────────────────────────────────── */
.faq-section { padding: var(--section-py) 0; }
.faq-section .section-title { margin-bottom: 2rem; }
.faq-list { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: .75rem; }
.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.faq-item summary { padding: 1rem 1.25rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.25rem; color: var(--color-text-muted); flex-shrink: 0; transition: transform .25s ease; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 1.25rem 1rem; color: var(--color-text-muted); font-size: .9rem; }
.faq-item[open] p { animation: faqOpen .25s ease; }
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Final CTA ──────────────────────────────────────────────────── */
.cta-section { background: var(--color-heading); color: #fff; padding: var(--section-py) 0; text-align: center; }
.cta-inner h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
.cta-inner p { color: rgba(255,255,255,.7); margin-bottom: 3.5rem; }
.cta-section p { color: rgba(255,255,255,.7); margin-bottom: 3.5rem; }
.cta-trust { margin-top: 1rem; font-size: .8rem; color: rgba(255,255,255,.5); }
.cta-section .btn-primary { background: #fff; color: var(--color-heading); }
.cta-section .btn-primary:hover { background: rgba(255,255,255,.9); }

/* ─── Multi-Step Form ────────────────────────────────────────────── */
.form-section { padding: 3rem 0 5rem; }
.form-container { max-width: 680px; margin: 0 auto; }

.form-progress { margin-bottom: 2.5rem; }
.progress-bar { height: 4px; background: var(--color-border); border-radius: var(--radius-full); overflow: hidden; margin-bottom: .5rem; }
.progress-fill { height: 100%; background: var(--color-primary); transition: width .4s ease; }
.progress-label { font-size: .8rem; color: var(--color-text-muted); font-weight: 500; }

.form-header { margin-bottom: 2rem; }
.form-header h1 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin-bottom: .4rem; }
.form-header p { color: var(--color-text-muted); }

.form-errors { background: #fef2f2; border: 1px solid #fca5a5; border-radius: var(--radius-md); padding: 1rem; margin-bottom: 1.5rem; color: var(--color-error); font-size: .875rem; }

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.label-hint    { font-weight: 400; color: var(--color-text-muted); font-size: .8rem; }
.label-optional { font-weight: 400; color: var(--color-text-muted); font-size: .8rem; }

.form-group input[type=text],
.form-group input[type=email],
.form-group input[type=tel],
.form-group input[type=url],
.form-group input[type=number],
.form-group textarea,
.form-group select {
  width: 100%; border: 1.5px solid var(--color-border); border-radius: var(--radius-md);
  padding: .65rem .9rem; background: var(--color-bg); color: var(--color-text);
  transition: border-color .15s, box-shadow .15s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none; border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

/* ─── Sonstiges custom input ──────────────────────────────────────── */
.industry-custom-wrap { display: none; }
.industry-custom-wrap.is-visible { display: block; }

.industry-custom-input {
  width: 100%; padding: .55rem .9rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-size: .9rem; font-family: inherit;
  color: var(--color-text);
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.industry-custom-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}
.industry-custom-input.input--error {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229,62,62,.15);
}
.field-error {
  margin: .35rem 0 0;
  font-size: .82rem;
  color: #e53e3e;
}

/* ─── Chip (checkbox/radio pill) ─────────────────────────────────── */
.chip-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; padding: .4rem .9rem; border: 1.5px solid var(--color-border); border-radius: var(--radius-full); cursor: pointer; font-size: .85rem; font-weight: 500; transition: border-color .15s, background .15s, color .15s; user-select: none; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
/* CSS-native highlight – no JS needed */
.chip:hover,
.chip:has(input:checked),
.chip--selected { border-color: var(--color-primary); background: var(--color-primary-light); color: var(--color-primary); }

/* ─── Goal cards (checkbox/radio cards) ─────────────────────────── */
.card-group { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .75rem; }
.card-group--3col { grid-template-columns: repeat(3, 1fr); }
.card-group--3col .goal-card { padding: .75rem .5rem; }
.card-group--3col .goal-label { font-size: .75rem; }
.goal-card { display: flex; flex-direction: column; align-items: center; padding: 1rem; border: 1.5px solid var(--color-border); border-radius: var(--radius-md); cursor: pointer; text-align: center; transition: border-color .15s, background .15s; user-select: none; }
.goal-card input { position: absolute; opacity: 0; pointer-events: none; }
.goal-card:hover,
.goal-card:has(input:checked),
.goal-card--selected { border-color: var(--color-primary); background: var(--color-primary-light); }
.goal-icon { font-size: 1.75rem; margin-bottom: .4rem; }
.goal-label { font-size: .8rem; font-weight: 600; color: var(--color-text); }

.char-count { font-size: .75rem; color: var(--color-text-muted); display: block; text-align: right; margin-top: .2rem; }

.form-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); }
.form-actions--center { justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* Two-column form row */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group--zip { max-width: 140px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } .form-group--zip { max-width: 100%; } }

/* ─── Radio cards (single select with description) ───────────────── */
.radio-card-group { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; }
.radio-card-group--3col { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.radio-card { display: flex; flex-direction: column; gap: .25rem; padding: .9rem 1rem; border: 1.5px solid var(--color-border); border-radius: var(--radius-md); cursor: pointer; transition: border-color .15s, background .15s; user-select: none; }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card strong { font-size: .875rem; color: var(--color-text); transition: color .15s; }
.radio-card span { font-size: .775rem; color: var(--color-text-muted); line-height: 1.4; }
.radio-card:hover,
.radio-card:has(input:checked),
.radio-card--selected { border-color: var(--color-primary); background: var(--color-primary-light); }
.radio-card:has(input:checked) strong,
.radio-card--selected strong { color: var(--color-primary); }
.term-badge {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  background: #dcfce7;
  color: #15803d;
  border-radius: 4px;
  padding: .1em .4em;
  vertical-align: middle;
  letter-spacing: .02em;
}
.savings-teaser {
  margin-top: .75rem;
  padding: .75rem 1rem;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--radius-md);
  font-size: .875rem;
  color: #15803d;
  line-height: 1.5;
}
.term-promo-banner {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: .9rem;
  padding: .85rem 1rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1.5px solid #86efac;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 4px rgba(22,163,74,.08);
}
.term-promo-icon { font-size: 1.6rem; flex-shrink: 0; line-height: 1; }
.term-promo-body { flex: 1; min-width: 0; }
.term-promo-body strong { display: block; font-size: .9rem; color: #15803d; margin-bottom: .15rem; }
.term-promo-body span  { font-size: .8rem; color: #166534; line-height: 1.4; }
.term-promo-badge {
  flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 3.2rem; height: 3.2rem;
  background: #16a34a;
  color: #fff;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}
.term-promo-badge small { font-size: .55rem; font-weight: 600; opacity: .9; text-transform: uppercase; letter-spacing: .04em; }

/* ─── Upload area ────────────────────────────────────────────────── */
.upload-area { margin-top: .75rem; }
.upload-dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .4rem; padding: 1.5rem 1rem;
  border: 2px dashed var(--color-border); border-radius: var(--radius-md);
  background: var(--color-bg); cursor: pointer; transition: border-color .15s, background .15s;
  text-align: center;
}
.upload-dropzone:hover, .upload-dropzone--over {
  border-color: var(--color-primary); background: var(--color-primary-light);
}
.upload-dropzone-icon { font-size: 1.75rem; line-height: 1; }
.upload-dropzone-label { font-size: .875rem; font-weight: 600; color: var(--color-text); }
.upload-dropzone-hint { font-size: .775rem; color: var(--color-text-muted); }
.upload-input { display: none; }
.upload-file-list { list-style: none; padding: 0; margin: .6rem 0 0; display: flex; flex-direction: column; gap: .3rem; }
.upload-file-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem; padding: .4rem .75rem; background: var(--color-primary-light);
  border: 1px solid var(--color-primary); border-radius: var(--radius-md); font-size: .8rem;
}
.upload-file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--color-text); }
.upload-file-remove {
  flex-shrink: 0; background: none; border: none; cursor: pointer;
  color: var(--color-text-muted); font-size: 1rem; line-height: 1; padding: 0 .15rem;
  transition: color .1s;
}
.upload-file-remove:hover { color: var(--color-error); }
.upload-existing { font-size: .8rem; color: var(--color-primary); margin-top: .4rem; font-weight: 500; }
.field-hint { font-size: .8rem; color: var(--color-text-muted); margin-top: .35rem; }

/* ─── Domain check ───────────────────────────────────────────────── */
.domain-conditional { margin-top: .75rem; }
.domain-input-wrap  { position: relative; }
.domain-input-wrap input { padding-right: 2.75rem; transition: border-color .2s; }
.domain-input-wrap input.domain--available { border-color: #16a34a; }
.domain-input-wrap input.domain--taken     { border-color: #dc2626; }
.domain-input-wrap input.domain--checking  { border-color: #9ca3af; }

.domain-status {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  line-height: 1;
  pointer-events: none;
}
.domain-status--available { color: #16a34a; }
.domain-status--taken     { color: #dc2626; }

.domain-hint {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  padding: 0 .75rem;
  border-radius: var(--radius-md);
  font-size: .85rem;
  font-weight: 500;
  transition: max-height .25s ease, opacity .2s ease, margin-top .2s ease, padding .2s ease;
}
.domain-hint.is-visible {
  max-height: 5rem;
  opacity: 1;
  margin-top: .5rem;
  padding: .5rem .75rem;
}
.domain-hint--available { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.domain-hint--taken     { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }
.domain-hint--invalid   { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }

.domain-spinner {
  display: inline-block;
  width: .9rem;
  height: .9rem;
  border: 2px solid #d1d5db;
  border-top-color: #6b7280;
  border-radius: 50%;
  animation: domain-spin .7s linear infinite;
  vertical-align: middle;
}
@keyframes domain-spin { to { transform: rotate(360deg); } }

/* Validation error state for groups */
.group-error { border: 1.5px solid var(--color-error) !important; border-radius: var(--radius-md); padding: .5rem; }
.field-error-msg { color: var(--color-error); font-size: .8rem; margin-top: .4rem; display: block; }

/* Color picker row */
.color-picker-row { display: flex; align-items: center; gap: .75rem; }
.color-picker-row input[type=color] { width: 44px; height: 44px; padding: 2px; border: 1.5px solid var(--color-border); border-radius: var(--radius-md); cursor: pointer; background: none; }
.color-hint { font-size: .85rem; color: var(--color-text-muted); }

/* Consent checkboxes */
.form-group--consent .checkbox-label { display: flex; align-items: flex-start; gap: .6rem; cursor: pointer; font-weight: 400; font-size: .875rem; line-height: 1.5; }
.form-group--consent input[type=checkbox] { width: 18px; height: 18px; flex-shrink: 0; margin-top: .15rem; accent-color: var(--color-primary); cursor: pointer; }

/* Field hint */
.field-hint { font-size: .775rem; color: var(--color-text-muted); margin-top: .35rem; }

/* Summary */
.summary-block { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.25rem 1.5rem; margin-bottom: 1.25rem; }
.summary-block__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
.summary-block__header h2 { font-size: 1rem; font-weight: 700; margin: 0; }
.summary-edit { font-size: .8rem; color: var(--color-primary); font-weight: 500; }
.summary-dl { display: grid; grid-template-columns: 1fr; gap: .4rem; }
.summary-dl > div { display: grid; grid-template-columns: 160px 1fr; gap: .5rem; font-size: .875rem; }
.summary-dl dt { color: var(--color-text-muted); font-weight: 500; }
.summary-dl dd { color: var(--color-text); }
@media (max-width: 480px) { .summary-dl > div { grid-template-columns: 1fr; gap: .1rem; } }
.submit-notice { text-align: center; font-size: .9rem; color: var(--color-text-muted); margin-bottom: 1.5rem; line-height: 1.6; }
.submit-notice strong { color: var(--color-text); }

/* Chip/card wrap modifiers */
.chip-group--wrap { flex-wrap: wrap; }
.card-group--wrap { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

/* ─── Thankyou ───────────────────────────────────────────────────── */
.thankyou-section { padding: 4rem 0 6rem; }
.thankyou-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
/* header */
.thankyou-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, #b45309 100%);
  color: #fff;
  padding: 2.5rem 2rem 2rem;
  text-align: center;
}
.thankyou-check {
  width: 64px; height: 64px;
  margin: 0 auto 1.25rem;
  color: #fff;
}
.thankyou-check svg { width: 100%; height: 100%; }
.thankyou-header h1 { color: #fff; font-size: 1.75rem; margin-bottom: .75rem; }
.thankyou-lead { color: rgba(255,255,255,.85); font-size: 1rem; margin: 0; line-height: 1.5; }
/* price estimate */
.thankyou-prices {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.75rem 2rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}
.thankyou-price-col { flex: 1; text-align: center; }
.thankyou-price-label { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: .35rem; }
.thankyou-price-value { font-size: 1.75rem; font-weight: 700; color: var(--color-heading); line-height: 1.1; }
.thankyou-per-month { font-size: 1rem; font-weight: 500; color: var(--color-text-muted); }
.thankyou-price-note { font-size: .7rem; color: var(--color-text-muted); margin-top: .25rem; }
.thankyou-price-sep { font-size: 1.5rem; font-weight: 700; color: var(--color-text-muted); flex: 0 0 auto; }
/* next steps */
.thankyou-steps { padding: 1.75rem 2rem; border-bottom: 1px solid var(--color-border); }
.thankyou-steps-title { font-size: 1rem; font-weight: 600; margin-bottom: 1.25rem; color: var(--color-heading); }
.thankyou-timeline { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.timeline-item { display: flex; gap: 1rem; align-items: flex-start; }
.timeline-marker {
  flex: 0 0 32px; height: 32px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: .85rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.timeline-body { padding-top: .3rem; font-size: .9rem; }
.timeline-body strong { display: block; color: var(--color-heading); font-weight: 600; margin-bottom: .2rem; }
.timeline-body span { color: var(--color-text-muted); line-height: 1.5; }
/* actions */
.thankyou-actions {
  padding: 1.5rem 2rem;
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
}
.thankyou-actions .btn { display: inline-flex; align-items: center; gap: .4rem; }
/* contact */
.thankyou-contact {
  padding: 1.25rem 2rem;
  font-size: .85rem;
  color: var(--color-text-muted);
  text-align: center;
  margin: 0;
}
@media (max-width: 540px) {
  .thankyou-header { padding: 2rem 1.25rem 1.5rem; }
  .thankyou-prices { flex-direction: column; gap: .75rem; }
  .thankyou-price-sep { transform: rotate(90deg); }
  .thankyou-steps, .thankyou-actions { padding-left: 1.25rem; padding-right: 1.25rem; }
  .thankyou-contact { padding-left: 1.25rem; padding-right: 1.25rem; }
  .thankyou-actions { flex-direction: column; }
  .thankyou-actions .btn { width: 100%; justify-content: center; }
}

/* ─── Print layout ───────────────────────────────────────────────── */
.print-body { background: #fff; }
.print-topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--color-primary);
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1.5rem;
  color: #fff;
}
.print-topbar-brand { font-weight: 700; font-size: 1rem; }
.print-topbar-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; color: var(--color-primary);
  border: none; border-radius: var(--radius-md);
  padding: .45rem .9rem; font-size: .875rem; font-weight: 600;
  cursor: pointer;
}
.print-topbar-btn:hover { background: rgba(255,255,255,.9); }
/* Print summary content */
.ps-wrap { max-width: 800px; margin: 0 auto; padding: 2rem 1.5rem 3rem; font-size: .9rem; }
.ps-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 2px solid var(--color-primary); }
.ps-header-brand { font-size: 1.25rem; font-weight: 700; color: var(--color-primary); }
.ps-header-logo { height: 44px; width: auto; display: block; max-height: 44px; }
.ps-header-meta { text-align: right; }
.ps-header-label { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--color-text-muted); }
.ps-header-date { font-size: .95rem; color: var(--color-heading); font-weight: 600; }
.ps-section { margin-bottom: 1.75rem; }
.ps-section-title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--color-primary); margin-bottom: .75rem; padding-bottom: .35rem; border-bottom: 1px solid var(--color-border); }
.ps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem 1.5rem; }
.ps-field { display: flex; flex-direction: column; gap: .15rem; }
.ps-field--full { grid-column: 1 / -1; }
.ps-label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--color-text-muted); }
.ps-val { font-size: .9rem; color: var(--color-text); }
.ps-color-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); vertical-align: middle; margin-left: .35rem; }
.ps-price-footer { margin-top: 2rem; background: var(--color-primary); border-radius: var(--radius-md); padding: 1.25rem 1.5rem; }
.ps-price-row { display: flex; gap: 2rem; }
.ps-price-col { flex: 1; }
.ps-price-label { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.75); margin-bottom: .25rem; }
.ps-price-num { font-size: 1.25rem; font-weight: 700; color: #fff; }
.ps-price-hint { font-size: .75rem; color: rgba(255,255,255,.7); margin-top: .2rem; }
.ps-footer { margin-top: 2rem; display: flex; justify-content: space-between; font-size: .75rem; color: var(--color-text-muted); padding-top: .75rem; border-top: 1px solid var(--color-border); }

@media print {
  .no-print, .print-topbar { display: none !important; }
  .print-body { background: #fff; }
  .ps-wrap { padding: 0; max-width: 100%; }
  .ps-header { border-bottom-color: #000; }
  .ps-section-title { color: #000; border-bottom-color: #ccc; }
  .ps-price-footer { background: #d97706; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ps-price-label, .ps-price-hint { color: rgba(255,255,255,.8); }
  .ps-price-num { color: #fff; }
  a { color: inherit; text-decoration: none; }
}

/* ─── Price widget ───────────────────────────────────────────────── */
.price-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: .875rem 1.125rem;
  min-width: 180px;
  max-width: 220px;
  text-align: center;
}
@media (max-width: 639px) {
  .price-widget {
    bottom: 1rem;
    right: 1rem;
    padding: .5rem .75rem;
    min-width: 0;
    max-width: 160px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: max-width .25s ease, padding .25s ease;
  }
  .price-widget__label { display: none; }
  .price-widget__price { font-size: 1.1rem; padding-top: .6rem; }
  .price-widget__sub   { display: none; }
  .price-widget__hint  { display: none; }

  /* Arrow indicator – points ↖ (upper-left) = expand away from corner */
  .price-widget__toggle-icon {
    display: block;
    position: absolute;
    top: 5px;
    left: 7px;
    width: 14px;
    height: 14px;
    opacity: .8;
    transition: transform .25s ease;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23d97706' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 12 L4 4 M4 9 V4 H9'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
  }

  /* Expanded state on mobile */
  .price-widget.is-expanded {
    padding: .875rem 1.125rem;
    max-width: 220px;
  }
  .price-widget.is-expanded .price-widget__label { display: block; }
  .price-widget.is-expanded .price-widget__price { font-size: 1.5rem; padding-top: 0; }
  .price-widget.is-expanded .price-widget__sub   { display: block; }
  .price-widget.is-expanded .price-widget__hint  { display: block; }
  .price-widget.is-expanded .price-widget__toggle-icon {
    transform: rotate(180deg);
  }
}
.price-widget__label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: .25rem;
}
.price-widget__price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}
.price-widget__vat {
  font-size: .7rem;
  color: var(--color-text-muted);
  margin-top: .15rem;
  font-weight: 500;
}
.price-widget__sub {
  font-size: .7rem;
  color: var(--color-text-muted);
  margin-top: .2rem;
}
.price-widget__extra {
  font-size: .7rem;
  color: var(--color-warning);
  margin-top: .35rem;
  font-weight: 500;
}
.price-widget__price-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1rem;
}
.price-widget__original {
  font-size: .85rem;
  color: #dc2626;
  text-decoration: line-through;
  opacity: .8;
}
.price-widget__hint {
  font-size: .73rem;
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: .4rem;
  padding: .25rem .5rem;
  margin-top: .4rem;
  text-align: center;
  font-weight: 500;
}
/* Footer-Kollision: Widgets ausblenden wenn Footer sichtbar */
#price-widget.is-footer-visible {
  visibility: hidden;
  pointer-events: none;
}
@media (max-width: 766px) {
  .chat-widget.is-footer-visible {
    visibility: hidden;
    pointer-events: none;
  }
}

/* ─── Beispiele ──────────────────────────────────────────────────── */
.beispiele-section { padding: var(--section-py) 0; background: var(--color-surface); }
.beispiele-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }

.beispiel-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.beispiel-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.1); transform: translateY(-3px); }

.beispiel-preview-link { display: block; text-decoration: none; }
.beispiel-preview-wrap { position: relative; width: 100%; height: 220px; overflow: hidden; background: #f1f5f9; }
.beispiel-iframe { width: 1280px; height: 900px; border: none; transform: scale(0.265); transform-origin: top left; pointer-events: none; }

.beispiel-meta { padding: 1rem 1.25rem; }
.beispiel-branche { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--color-text-muted); margin-bottom: .25rem; }
.beispiel-title { font-size: 1rem; font-weight: 700; color: var(--color-heading); margin-bottom: .5rem; }
.beispiel-link { font-size: .85rem; font-weight: 700; color: var(--color-primary); }
.beispiel-link:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .beispiele-grid { grid-template-columns: 1fr; }
  .beispiel-iframe { transform: scale(calc((100vw - 2.5rem) / 1280px)); }
}

/* ─── Startseite Pricing + Hero – Rabatt-Teaser ─────────────────── */
.pricing-discount-hint {
  display: block;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: .6rem;
  padding: .4rem .75rem;
  font-size: .82rem;
  color: #15803d;
  font-weight: 500;
  margin-top: .55rem;
  line-height: 1.4;
}
.pricing-discount-hint strong { font-weight: 700; }
.hero-discount-hint {
  display: block;
  font-size: .8rem;
  color: #15803d;
  font-weight: 500;
  margin-top: .3rem;
  opacity: .9;
}

/* ─── Price footnote (step6 + summary) ──────────────────────────── */
.price-footnote {
  font-size: .8rem;
  color: var(--color-text-muted);
  margin-top: 1.5rem;
  margin-bottom: .5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

/* ─── Step 3: Visuelle Vorschau-Elemente ────────────────────────── */

/* Stilrichtung: Mini-SVG-Mockup */
.card-preview {
  display: flex;
  margin-bottom: .2rem;
}
.card-preview svg {
  width: 60px;
  height: 44px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

/* Farbstimmung: Farbpaletten-Dots */
.color-swatches {
  display: flex;
  gap: .3rem;
  margin: .15rem 0 .1rem;
}
.color-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.12);
  flex-shrink: 0;
}
.color-swatch--rainbow {
  background: conic-gradient(#ef4444, #f97316, #eab308, #22c55e, #3b82f6, #a855f7, #ef4444);
  border-color: rgba(0,0,0,.08);
  width: 52px;
  border-radius: var(--radius-sm);
}
.color-swatch--sitebakery {
  background: linear-gradient(90deg, #fbbf24, #d97706, #f59e0b);
  border-color: rgba(217,119,6,.25);
  width: 52px;
  border-radius: var(--radius-sm);
}

/* Schriftstil: Typografie-Vorschau */
.font-preview {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: .3rem .6rem;
  margin: .2rem 0 .15rem;
  line-height: 1.3;
}
.font-preview--sans  { font-family: 'Inter', system-ui, sans-serif; }
.font-preview--serif { font-family: Georgia, 'Times New Roman', serif; }
.font-preview--mono  { font-family: ui-monospace, 'Courier New', monospace; font-weight: 400; font-size: .9rem; }

/* ─── Special wishes warning hint ───────────────────────────────── */
.field-hint--warn {
  color: var(--color-warning);
  font-weight: 500;
}

/* ─── Notice hint (info box) ─────────────────────────────────────── */
.field-hint--notice {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: .5rem .75rem;
  color: #92400e;
  font-weight: 500;
  margin-top: .6rem;
}

/* ─── Legal ──────────────────────────────────────────────────────── */
.legal-section { padding: 4rem 0; }
.legal-inner { max-width: 720px; }
.legal-inner h1 { font-size: 1.75rem; margin-bottom: 1.5rem; }
.legal-inner h2 { font-size: 1.1rem; margin-top: 2rem; margin-bottom: .5rem; }
.legal-inner p  { color: var(--color-text-muted); font-size: .95rem; margin-bottom: .75rem; }

/* ─── Glossar ───────────────────────────────────────────────────── */
.glossar-section { padding: 4rem 0; }
.glossar-layout { display: flex; gap: 3.5rem; align-items: flex-start; }

/* Sticky sidebar nav (desktop) */
.glossar-nav-wrap { flex-shrink: 0; align-self: stretch; }
.glossar-nav { width: 160px; position: sticky; top: calc(80px + 1.5rem); display: flex; flex-direction: column; gap: .25rem; }
.glossar-nav__label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--color-text-muted); margin-bottom: .5rem; }
.glossar-nav__link { font-size: .85rem; color: var(--color-text-muted); padding: .3rem .6rem; border-radius: var(--radius-sm); transition: background .12s, color .12s; }
.glossar-nav__link:hover { color: var(--color-text); background: var(--color-bg-alt, #f0f4f8); text-decoration: none; }
.glossar-nav__link.is-active { color: var(--color-primary, #2d5a8e); font-weight: 600; background: var(--color-bg-alt, #f0f4f8); }

/* Content column */
.glossar-content { flex: 1; min-width: 0; max-width: 680px; }
.glossar-content h1 { font-size: 1.75rem; margin-bottom: 1rem; }
.glossar-intro { color: var(--color-text-muted); font-size: .95rem; margin-bottom: 2rem; }
.glossar-entry { border-left: 3px solid var(--color-primary, #2d5a8e); padding-left: 1.25rem; margin-top: 2.5rem; scroll-margin-top: calc(80px + 1.5rem); }
.glossar-entry h2 { font-size: 1.1rem; margin-bottom: .5rem; }
.glossar-entry p { color: var(--color-text-muted); font-size: .95rem; margin-bottom: .75rem; }

/* Mobile: horizontal pill nav */
@media (max-width: 766px) {
  .glossar-layout { flex-direction: column; gap: 0; }
  .glossar-nav-wrap { position: relative; margin-bottom: 1.5rem; width: 100%; min-width: 0; overflow: hidden; }
  .glossar-nav-wrap::after {
    content: ''; position: absolute; top: 0; right: 0;
    width: 48px; height: calc(100% - 6px);
    background: linear-gradient(to right, transparent, #fff);
    pointer-events: none;
  }
  .glossar-nav {
    position: static; width: 100%; flex-direction: row; flex-wrap: nowrap;
    overflow-x: auto; gap: .4rem; padding-bottom: .5rem; margin-bottom: 0;
    scrollbar-width: thin; scrollbar-color: var(--color-border) transparent;
  }
  .glossar-nav::-webkit-scrollbar { height: 3px; }
  .glossar-nav::-webkit-scrollbar-track { background: transparent; }
  .glossar-nav::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 2px; }
  .glossar-nav__label { display: none; }
  .glossar-nav__link {
    white-space: nowrap; border: 1px solid var(--color-border);
    padding: .35rem .8rem; font-size: .8rem; flex-shrink: 0;
  }
}

/* ─── Über uns ──────────────────────────────────────────────────── */
.ueber-hero-section { background: var(--color-bg-alt, #f7f8fa); padding: 4rem 0; }
.ueber-hero {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 500px;
}
.ueber-hero__photo { overflow: hidden; border-radius: var(--radius-md, 12px); align-self: stretch; }
.ueber-hero__text  { min-width: 0; }
.ueber-hero__photo img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 15%; display: block;
  border-radius: var(--radius-md, 12px);
}
.ueber-hero__eyebrow {
  font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--color-primary, #2d5a8e);
  margin-bottom: .75rem;
}
.ueber-hero__name {
  font-size: 2.75rem; font-weight: 800; line-height: 1.1;
  margin-bottom: 1.25rem; color: var(--color-text);
}
.ueber-hero__lead {
  font-size: 1.1rem; color: var(--color-text-muted);
  line-height: 1.65; margin: 0;
}
.keks-mark {
  color: var(--color-primary);
  font-weight: 700;
  white-space: nowrap;
}
.keks-mark::after {
  content: ' ✦';
  font-size: .75em;
  vertical-align: middle;
  color: var(--color-primary);
}

.ueber-content-section { padding: 4rem 0 5rem; }
.ueber-content { max-width: 680px; margin: 0 auto; }
.ueber-block { margin-bottom: 2.5rem; }
.ueber-block h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: .6rem; }
.ueber-block p { color: var(--color-text-muted); font-size: .95rem; line-height: 1.7; margin-bottom: .75rem; }
.ueber-cta { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--color-border); }
.ueber-cta p { font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; }

@media (max-width: 900px) {
  .ueber-hero { grid-template-columns: 1fr; gap: 2rem; }
  .ueber-hero__photo { max-height: 420px; }
  .ueber-hero__name { font-size: 2rem; }
}
@media (max-width: 766px) {
  .ueber-hero-section { padding: 2.5rem 0; }
  .ueber-hero__photo { max-height: 300px; }
}

/* ─── Page Loader Overlay ────────────────────────────────────────── */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
#page-loader.is-visible {
  opacity: 1;
  pointer-events: all;
}
.page-loader__img {
  width: 180px;
  max-width: 55vw;
  height: auto;
  animation: loader-float 1.8s ease-in-out infinite;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.35));
}
.page-loader__text {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  padding: 0 1.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
  letter-spacing: .01em;
}
.page-loader__sub {
  color: rgba(255,255,255,.7);
  font-size: .82rem;
  text-align: center;
  margin-top: -.75rem;
}
@keyframes loader-float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ─── Chat Widget ──────────────────────────────────────────────────────── */
.chat-widget {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 900;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: .75rem;
}
.chat-widget__bubble {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  transition: background .15s, transform .15s;
  flex-shrink: 0;
}
.chat-widget__bubble:hover  { background: var(--color-primary-hover); transform: scale(1.06); }
.chat-widget__bubble--nudge { animation: chat-wiggle .7s ease; }
.chat-widget__bubble:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }
.chat-widget__icon { width: 1.4rem; height: 1.4rem; }
.chat-widget__icon--close { display: none; }
.chat-widget__bubble--open .chat-widget__icon--open  { display: none; }
.chat-widget__bubble--open .chat-widget__icon--close { display: block; }

.chat-widget__panel {
  width: min(22rem, calc(100vw - 2rem));
  background: #fff;
  border-radius: .75rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-widget__panel[hidden] { display: none; }

.chat-widget__nudge {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: .5rem;
  padding: .45rem .8rem;
  font-size: .875rem;
  font-weight: 500;
  color: #1f2937;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
  white-space: nowrap;
  position: relative;
  animation: chat-nudge-in .3s ease;
}
.chat-widget__nudge::after {
  content: '';
  position: absolute;
  bottom: -.5rem;
  left: 1rem;
  border-left: .5rem solid transparent;
  border-right: .5rem solid transparent;
  border-top: .5rem solid #fff;
}
.chat-widget__nudge::before {
  content: '';
  position: absolute;
  bottom: -.6rem;
  left: .93rem;
  border-left: .57rem solid transparent;
  border-right: .57rem solid transparent;
  border-top: .6rem solid #e5e7eb;
}
.chat-widget__nudge[hidden] { display: none; }

@keyframes chat-wiggle {
  0%,100% { transform: rotate(0deg); }
  20%     { transform: rotate(-14deg); }
  40%     { transform: rotate(12deg); }
  60%     { transform: rotate(-8deg); }
  80%     { transform: rotate(5deg); }
}
@keyframes chat-nudge-in {
  from { opacity: 0; transform: translateY(.5rem); }
  to   { opacity: 1; transform: translateY(0); }
}
.chat-widget__header {
  background: var(--color-primary);
  color: #fff;
  padding: .85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.chat-widget__title    { font-weight: 600; font-size: .95rem; }
.chat-widget__subtitle { font-size: .78rem; opacity: .85; }

.chat-widget__messages {
  flex: 1;
  overflow-y: auto;
  padding: .75rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  max-height: 16rem;
  min-height: 4rem;
}
.chat-widget__msg {
  max-width: 85%;
  padding: .5rem .75rem;
  border-radius: .65rem;
  font-size: .875rem;
  line-height: 1.45;
  word-break: break-word;
}
.chat-widget__msg--bot  {
  background: #f3f4f6;
  color: #1f2937;
  align-self: flex-start;
  border-bottom-left-radius: .15rem;
}
.chat-widget__msg--user {
  background: var(--color-primary);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: .15rem;
}
.chat-widget__msg--typing {
  display: flex;
  gap: .3rem;
  align-items: center;
  padding: .65rem .75rem;
}
.chat-widget__msg--typing span {
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: #9ca3af;
  animation: chat-dot .9s infinite both;
}
.chat-widget__msg--typing span:nth-child(2) { animation-delay: .15s; }
.chat-widget__msg--typing span:nth-child(3) { animation-delay: .30s; }
@keyframes chat-dot {
  0%,80%,100% { transform: scale(.7); opacity: .5; }
  40%         { transform: scale(1);  opacity: 1; }
}

.chat-widget__form {
  display: flex;
  border-top: 1px solid #e5e7eb;
  padding: .5rem;
  gap: .4rem;
}
.chat-widget__input {
  flex: 1;
  border: 1px solid #e5e7eb;
  border-radius: .4rem;
  padding: .45rem .65rem;
  font-size: .875rem;
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
}
.chat-widget__input:focus { border-color: var(--color-primary); }
.chat-widget__send {
  width: 2.1rem;
  height: 2.1rem;
  flex-shrink: 0;
  border: none;
  border-radius: .4rem;
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.chat-widget__send:hover { background: var(--color-primary-hover); }
.chat-widget__send svg   { width: 1rem; height: 1rem; }
}

/* ─── Blog / Gut zu wissen ──────────────────────────────────────────────── */

/* Listing page */
.blog-section { padding: var(--section-py) 0; background: var(--color-bg); }

.blog-header { text-align: center; margin-bottom: 3.5rem; }
.blog-header__badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: .25rem .75rem;
  border-radius: var(--radius-full);
  margin-bottom: .875rem;
}
.blog-header__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--color-heading);
  margin-bottom: .75rem;
}
.blog-header__sub {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Card grid */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
@media (min-width: 640px)  { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

/* Card */
.blog-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* Card image — colour-gradient placeholder, swap for real <img> later */
.blog-card__image-link { display: block; text-decoration: none; flex-shrink: 0; }
.blog-card__image {
  height: 180px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--card-color, #3b82f6) 70%, #fff 30%),
    color-mix(in srgb, var(--card-color, #3b82f6) 50%, #000 20%)
  );
  background-color: var(--card-color, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.blog-card__image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,.22) 0%, transparent 60%);
}
.blog-card__icon {
  width: 52px;
  height: 52px;
  position: relative;
  z-index: 1;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.2));
}
/* When a real image is supplied: add class blog-card__image--photo */
.blog-card__image--photo .blog-card__emoji { display: none; }
.blog-card__image img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

/* Card body */
.blog-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem;
  gap: .5rem;
}

.blog-card__category {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--color-text-muted);
}

.blog-card__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}
.blog-card__title a { color: var(--color-heading); text-decoration: none; }
.blog-card__title a:hover { color: var(--color-primary); }

.blog-card__teaser {
  font-size: .875rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  flex: 1;
}

.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: .5rem;
  padding-top: .75rem;
  border-top: 1px solid var(--color-border);
}

.blog-card__readtime {
  font-size: .78rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.blog-card__cta {
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
}
.blog-card__cta:hover { text-decoration: underline; }

/* ── Detail page hero ─────────────────────────────────────────────────── */
.blog-hero {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--card-color, #3b82f6) 65%, #fff 35%),
    color-mix(in srgb, var(--card-color, #3b82f6) 45%, #000 20%)
  );
  background-color: var(--card-color, #3b82f6);
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 65% 50%, rgba(255,255,255,.18) 0%, transparent 70%);
}
.blog-hero__inner { position: relative; z-index: 1; }

.blog-hero__icon {
  width: 96px;
  height: 96px;
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: .18;
  pointer-events: none;
  color: #fff;
}
@media (max-width: 639px) { .blog-hero__icon { width: 64px; height: 64px; right: .75rem; } }

.blog-breadcrumb { margin-bottom: 1rem; }
.blog-breadcrumb a {
  font-size: .85rem;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-weight: 500;
}
.blog-breadcrumb a:hover { color: #fff; text-decoration: underline; }

.blog-hero__category {
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.2);
  padding: .2rem .65rem;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: .6rem;
  font-size: .72rem;
  letter-spacing: .08em;
}

.blog-hero__title {
  color: #fff;
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: .75rem;
  max-width: 620px;
  text-shadow: 0 1px 6px rgba(0,0,0,.15);
}

.blog-hero__meta {
  color: rgba(255,255,255,.75);
  font-size: .875rem;
  font-weight: 500;
}

/* ── Article prose ────────────────────────────────────────────────────── */
.blog-article {
  max-width: 680px;
  margin: 3rem auto 5rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
}

.blog-article p { margin-bottom: 1.25rem; }

.blog-article h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-top: 2.5rem;
  margin-bottom: .75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

.blog-article h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-top: 1.75rem;
  margin-bottom: .5rem;
}

/* Lists */
.blog-list {
  margin: 0 0 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.blog-list:not(.blog-list--ordered) { list-style: disc; }
.blog-list--ordered { list-style: decimal; }
.blog-list li { font-size: .95rem; line-height: 1.6; }

/* Callout box */
.blog-callout {
  display: flex;
  gap: .875rem;
  align-items: flex-start;
  background: var(--color-primary-light);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1rem 1.25rem;
  margin: 2rem 0;
}
.blog-callout__icon { font-size: 1.2rem; line-height: 1.5; flex-shrink: 0; }
.blog-callout p { font-size: .9rem; color: #92400e; margin: 0; line-height: 1.6; }

/* CTA block */
.blog-cta {
  margin-top: 3.5rem;
  padding: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: center;
}
.blog-cta h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: .5rem;
  border: none;
  padding: 0;
  margin-top: 0;
}
.blog-cta p { color: var(--color-text-muted); font-size: .95rem; margin-bottom: 1.25rem; }

/* ─── Tools Page ──────────────────────────────────────────────────── */
.tools-hero { background: var(--color-surface); padding: 4rem 0 3rem; text-align: center; }
.tools-hero__title { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: .75rem; }
.tools-hero__sub { color: var(--color-text-muted); font-size: 1.05rem; }

.tools-nav { background: #fff; border-bottom: 1px solid var(--color-border); position: relative; }
@media (max-width: 767px) {
  .tools-nav::after {
    content: ''; position: absolute; top: 0; right: 0;
    width: 48px; height: calc(100% - 6px);
    background: linear-gradient(to right, transparent, #fff);
    pointer-events: none;
  }
}
.tools-nav__inner { display: flex; gap: 0; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--color-border) transparent; }
.tools-nav__inner::-webkit-scrollbar { height: 3px; }
.tools-nav__inner::-webkit-scrollbar-track { background: transparent; }
.tools-nav__inner::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 2px; }
@media (min-width: 768px) { .tools-nav__inner { justify-content: center; scrollbar-width: none; } }
@media (min-width: 768px) { .tools-nav__inner::-webkit-scrollbar { display: none; } }
.tools-nav__item { flex-shrink: 0; padding: .85rem 1rem; font-size: .8rem; font-weight: 600; color: var(--color-text-muted); background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; transition: color .15s, border-color .15s; white-space: nowrap; }
@media (min-width: 768px) { .tools-nav__item { font-size: .875rem; padding: .85rem 1.25rem; } }
.tools-nav__item:hover { color: var(--color-text); }
.tools-nav__item.is-active { color: var(--color-primary); border-bottom-color: var(--color-primary); }

.tools-section { padding: 4rem 0; }
.tools-section--alt { background: var(--color-surface); }

.tool-card { max-width: 620px; margin: 0 auto; }
.tool-card__eyebrow { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--color-primary); margin-bottom: .5rem; }
.tool-card__title { font-size: 1.5rem; font-weight: 700; margin-bottom: .4rem; }
.tool-card__desc { color: var(--color-text-muted); margin-bottom: 1.75rem; }

.tool-input-row { display: flex; gap: .5rem; }
.tool-input-row input {
  flex: 1; border: 1.5px solid var(--color-border); border-radius: var(--radius-md);
  padding: .65rem .9rem; background: var(--color-bg); color: var(--color-text); font: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.tool-input-row input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(217,119,6,.12); }

/* Domain check in tools page – reuses existing .domain-input-wrap + .domain-status etc. */
.tools-section .domain-input-wrap input {
  width: 100%; border: 1.5px solid var(--color-border); border-radius: var(--radius-md);
  padding: .65rem .9rem; padding-right: 2.75rem; background: var(--color-bg); color: var(--color-text);
  font: inherit; font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
.tools-section .domain-input-wrap input:focus {
  outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(217,119,6,.12);
}

#tools-domain-cta { margin-top: 1.25rem; }

/* Alternatives */
.tools-alts__label { font-size: .85rem; font-weight: 600; color: var(--color-text-muted); margin: 1.25rem 0 .6rem; }
.tools-alts__list { display: flex; flex-wrap: wrap; gap: .5rem; }
.tools-alt-tag {
  background: #fff; border: 1.5px solid var(--color-border); border-radius: var(--radius-full);
  padding: .3rem .85rem; font-size: .875rem; font-weight: 500; cursor: pointer;
  color: var(--color-text); transition: border-color .15s, background .15s, color .15s; font: inherit;
}
.tools-alt-tag:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-primary-light); }
.tools-alts-loading { font-size: .875rem; color: var(--color-text-muted); }

/* Website check results */
.tool-result-list { list-style: none; margin-top: 1.25rem; display: flex; flex-direction: column; gap: .6rem; }
.tool-result-item { display: flex; align-items: flex-start; gap: .75rem; padding: .75rem 1rem; border-radius: var(--radius-md); font-size: .925rem; }
.tool-result-item--ok   { background: #f0fdf4; }
.tool-result-item--fail { background: #fef2f2; }
.tool-result-item--warn { background: #fffbeb; }
.tool-result-icon { font-size: 1rem; line-height: 1.5; flex-shrink: 0; font-weight: 700; }
.tool-result-item--ok   .tool-result-icon { color: #16a34a; }
.tool-result-item--fail .tool-result-icon { color: #dc2626; }
.tool-result-item--warn .tool-result-icon { color: #92400e; }
.tool-result-cta { margin-top: 1.25rem; padding: 1rem 1.25rem; background: var(--color-primary-light); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.tool-result-cta p { font-size: .9rem; font-weight: 500; color: var(--color-heading); margin: 0; }
.tool-error { color: var(--color-error); font-size: .9rem; margin-top: .75rem; }

/* Mobile tool – link cards */
.tool-mobile-links { margin-top: 1.25rem; display: flex; flex-direction: column; gap: .6rem; }
.tool-mobile-link {
  display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem;
  border: 1.5px solid var(--color-border); border-radius: var(--radius-md);
  background: var(--color-bg); color: var(--color-text); text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.tool-mobile-link:hover { border-color: var(--color-primary); box-shadow: var(--shadow-sm); text-decoration: none; }
.tool-mobile-link__icon { flex-shrink: 0; color: var(--color-primary); display: flex; }
.tool-mobile-link strong { display: block; font-size: .95rem; }
.tool-mobile-link__sub { font-size: .8rem; color: var(--color-text-muted); }
.tool-mobile-link__arrow { margin-left: auto; font-size: 1.1rem; color: var(--color-text-muted); flex-shrink: 0; }

@media (max-width: 480px) {
  .tool-input-row { flex-direction: column; }
  .tool-input-row .btn { width: 100%; }
}

/* QR-Code Generator */
.qr-result { display: flex; gap: 2rem; align-items: flex-start; flex-wrap: wrap; margin-top: 1.5rem; }
.qr-image-wrap { background: #fff; border: 1.5px solid var(--color-border); border-radius: var(--radius-md); padding: 1rem; display: inline-flex; }
.qr-image-wrap img { display: block; }
.qr-actions { display: flex; flex-direction: column; gap: .75rem; justify-content: center; }
.qr-actions .btn { display: inline-flex; align-items: center; gap: .4rem; }
.qr-hint { font-size: .825rem; color: var(--color-text-muted); margin: 0; }

/* SERP Preview */
.serp-form { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.75rem; }
.serp-field { display: flex; flex-direction: column; gap: .35rem; position: relative; }
.serp-field label { font-size: .875rem; font-weight: 600; color: var(--color-heading); }
.serp-field input, .serp-field textarea {
  border: 1.5px solid var(--color-border); border-radius: var(--radius-md);
  padding: .6rem .9rem; background: var(--color-bg); color: var(--color-text);
  font: inherit; font-size: .95rem; transition: border-color .15s, box-shadow .15s; resize: vertical;
}
.serp-field input:focus, .serp-field textarea:focus {
  outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(217,119,6,.12);
}
.serp-counter { font-size: .78rem; color: var(--color-text-muted); align-self: flex-end; }
.serp-counter.is-warn { color: #d97706; font-weight: 600; }
.serp-counter.is-over { color: #dc2626; font-weight: 600; }
.serp-counter.is-good { color: #16a34a; font-weight: 600; }
.serp-preview { background: #fff; border: 1.5px solid var(--color-border); border-radius: var(--radius-md); padding: 1.25rem 1.5rem; }
.serp-preview__label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--color-text-muted); margin: 0 0 .85rem; }
.serp-result__breadcrumb { font-size: .8rem; color: #202124; margin-bottom: .2rem; font-family: Arial, sans-serif; }
.serp-result__title { font-size: 1.15rem; color: #1a0dab; font-family: Arial, sans-serif; font-weight: 400; margin-bottom: .25rem; }
.serp-result__title.is-truncated { color: #dc2626; }
.serp-result__desc { font-size: .85rem; color: #4d5156; font-family: Arial, sans-serif; line-height: 1.5; }
.serp-tips { margin-top: 1rem; padding: .85rem 1rem; background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius-md); }
.serp-tips ul { margin: 0; padding: 0 0 0 1.15rem; display: flex; flex-direction: column; gap: .35rem; }
.serp-tips li { font-size: .85rem; color: #78350f; }

/* Password generator */
.pw-output-wrap { position: relative; display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; padding: 1rem 1.25rem; background: var(--color-surface); border: 1.5px solid var(--color-border); border-radius: var(--radius-md); }
.pw-output { flex: 1; font-family: var(--font-mono); font-size: 1.1rem; letter-spacing: .05em; word-break: break-all; color: var(--color-heading); }
.pw-copy-btn { flex-shrink: 0; background: none; border: 1.5px solid var(--color-border); border-radius: var(--radius-sm); padding: .4rem .5rem; cursor: pointer; color: var(--color-text-muted); display: flex; align-items: center; transition: border-color .15s, color .15s; }
.pw-copy-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pw-controls { display: flex; flex-direction: column; gap: 1rem; }
.pw-length-wrap label { font-size: .9rem; font-weight: 500; display: block; margin-bottom: .4rem; }
.pw-range { width: 100%; accent-color: var(--color-primary); cursor: pointer; }
.pw-options { display: flex; flex-direction: column; gap: .4rem; }
.pw-option { display: flex; align-items: center; gap: .5rem; font-size: .9rem; cursor: pointer; }
.pw-option input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--color-primary); cursor: pointer; flex-shrink: 0; }
#pw-generate-btn { align-self: flex-start; margin-top: .25rem; }
.pw-copied { margin-top: .75rem; font-size: .875rem; font-weight: 600; color: var(--color-accent); }

/* ─── Info-Tooltips ──────────────────────────────────────────────── */
.info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--color-text-muted);
  color: #fff;
  font-size: 10px;
  font-style: italic;
  font-weight: 700;
  font-family: Georgia, serif;
  border: none;
  cursor: help;
  position: relative;
  margin-left: 6px;
  vertical-align: middle;
  flex-shrink: 0;
  line-height: 1;
  padding: 0;
  transition: background .15s;
}
.info-btn:hover { background: var(--color-primary); }
.tooltip-bubble {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  background: #1e293b;
  color: #f1f5f9;
  font-size: 0.8rem;
  line-height: 1.55;
  padding: 9px 13px;
  border-radius: 8px;
  z-index: 200;
  text-align: left;
  white-space: normal;
  font-weight: 400;
  font-style: normal;
  font-family: var(--font-base);
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
}
.tooltip-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1e293b;
}
.info-btn:hover .tooltip-bubble,
.info-btn.is-open .tooltip-bubble { display: block; }
.info-btn.flip-down .tooltip-bubble {
  bottom: auto;
  top: calc(100% + 8px);
}
.info-btn.flip-down .tooltip-bubble::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: #1e293b;
}
.info-btn.align-right .tooltip-bubble {
  left: 0;
  transform: none;
}
.info-btn.align-right .tooltip-bubble::after { left: 8px; transform: none; }
.info-btn.align-left .tooltip-bubble {
  left: auto;
  right: 0;
  transform: none;
}
.info-btn.align-left .tooltip-bubble::after { left: auto; right: 8px; transform: none; }


/* ─── Promo / Rabattcode Styles ──────────────────────────────────────────── */

/* Price widget promo badge */
.price-widget__promo {
  font-size: .73rem;
  color: #065f46;
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  border-radius: .4rem;
  padding: .25rem .5rem;
  margin-top: .4rem;
  text-align: center;
  font-weight: 600;
}

/* Promo input row */
.promo-input-row {
  display: flex;
  gap: .5rem;
  align-items: center;
}

/* Promo feedback message */
.promo-feedback {
  margin-top: .5rem;
  font-size: .85rem;
  font-weight: 500;
  padding: .4rem .6rem;
  border-radius: .4rem;
}
.promo-feedback--ok {
  color: #065f46;
  background: #d1fae5;
  border: 1px solid #6ee7b7;
}
.promo-feedback--error {
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fca5a5;
}

/* Auto-promo banner (creator link) */
.promo-auto-banner {
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  border-radius: .5rem;
  color: #065f46;
  padding: .65rem 1rem;
  font-size: .9rem;
  margin-bottom: 1.25rem;
  font-weight: 500;
}

/* Mobile: hide price-widget promo in collapsed state */
@media (max-width: 639px) {
  .price-widget__promo { display: none; }
  .price-widget.is-expanded .price-widget__promo { display: block; }
}
