/* ═══════════════════════════════════════════════════════════════
   hamora-studio.de · gemeinsame Komponenten (alle Seiten)
   Buttons · Cookie-Banner · Kontaktformular · Logo
   Farb-/Schrift-Tokens (--accent, --text, --sans …) kommen aus dem
   Seiten-Stylesheet; hier nur Komponenten.
   ═══════════════════════════════════════════════════════════════ */

/* ─── Logo-Strich ─────────────────────────────────────────────── */
.logo-dash { display: inline-block; width: 0.55em; height: max(1px, 0.06em); background: currentColor; vertical-align: middle; margin: 0 0.3em 0 0; position: relative; top: -0.08em; opacity: 0.9; }

/* ─── Buttons ──────────────────────────────────────────────────── */
.btn {
  --btn-h: 52px; --btn-px: 34px; --btn-fs: 0.78rem;
  --btn-bg: #233038; --btn-fg: #fbf9f5; --btn-bd: transparent;
  --btn-dot: #bd8a2e; --btn-glow: rgba(226,173,68,0.26); --btn-ring: #bd8a2e;
  --btn-shadow: 0 12px 30px rgba(35,48,56,0.22);
  --mx: 50%; --my: 50%; --tx: 0px; --ty: 0px; --btn-s: 1;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: var(--btn-h); padding: 0 var(--btn-px);
  border-radius: 999px; border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--sans, 'DM Sans', system-ui, sans-serif); font-size: var(--btn-fs); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; line-height: 1; text-decoration: none; white-space: nowrap;
  cursor: pointer; appearance: none; -webkit-appearance: none; user-select: none;
  box-shadow: var(--btn-shadow);
  transform: translate3d(var(--tx), var(--ty), 0) scale(var(--btn-s));
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
  overflow: hidden; -webkit-tap-highlight-color: transparent;
}
.btn:hover { --btn-shadow: 0 16px 40px rgba(35,48,56,0.28); }
.btn:active { --btn-s: 0.97; transition-duration: 0.12s; }
.btn:focus { outline: none; }
.btn:focus-visible { outline: 2px solid var(--btn-ring); outline-offset: 3px; }

/* Größen */
.btn--sm { --btn-h: 44px; --btn-px: 22px; --btn-fs: 0.72rem; }
.btn--md { --btn-h: 48px; --btn-px: 28px; }
.btn--lg { --btn-h: 56px; --btn-px: 40px; }
.btn--block { width: 100%; }

/* Varianten (Kontrast geprüft: primary ≈ 12:1, secondary ≈ 4.6:1, outline ≈ 12:1) */
.btn--primary   { }
.btn--secondary { --btn-bg: #a3741d; --btn-fg: #ffffff; --btn-dot: #fbf9f5; --btn-glow: rgba(255,255,255,0.28); --btn-shadow: 0 12px 30px rgba(163,116,29,0.30); }
.btn--outline   { --btn-bg: transparent; --btn-fg: #233038; --btn-bd: rgba(35,48,56,0.28); --btn-shadow: none; --btn-glow: rgba(189,138,46,0.18); }
.btn--outline:hover { --btn-bd: rgba(189,138,46,0.6); --btn-shadow: 0 10px 26px rgba(35,48,56,0.08); }
.btn--outline-light { --btn-bg: rgba(255,255,255,0.06); --btn-fg: #f6f2ea; --btn-bd: rgba(255,255,255,0.28); --btn-shadow: none; --btn-glow: rgba(255,255,255,0.18); }
.btn--outline-light:hover { --btn-bg: rgba(255,255,255,0.12); --btn-bd: rgba(255,255,255,0.5); }
.btn--dark      { --btn-bg: #1b2429; --btn-fg: #f6f2ea; }
.btn--light     { --btn-bg: #fbf9f5; --btn-fg: #233038; --btn-bd: rgba(35,48,56,0.12); --btn-glow: rgba(189,138,46,0.22); --btn-shadow: 0 10px 26px rgba(35,48,56,0.10); }

/* Innenleben */
.btn__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--btn-dot); flex: none; transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.btn:hover .btn__dot { transform: scale(1.5); }
.btn__label { position: relative; }
.btn__icon { display: inline-flex; flex: none; }
.btn__icon svg { width: 16px; height: 16px; display: block; transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.btn:hover .btn__icon--arrow svg { transform: translateX(3px) rotate(-45deg); }
.btn__icon--phone svg { animation: btnPulse 2.2s ease-in-out infinite; }
.btn:hover .btn__icon--phone svg { animation: none; transform: rotate(-12deg); }
@keyframes btnPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }

/* Cursor-Glow: folgt --mx/--my, bleibt durch overflow:hidden im Button */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0;
  background: radial-gradient(150px circle at var(--mx) var(--my), var(--btn-glow), transparent 68%);
  transition: opacity 0.35s ease;
}
.btn[data-glow]:hover::before { opacity: 1; }

/* Zustände */
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; box-shadow: none; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading .btn__icon, .btn.is-loading .btn__dot { visibility: hidden; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--btn-fg); border-top-color: transparent; animation: btnSpin 0.8s linear infinite;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }

@media (hover: none), (pointer: coarse) {
  .btn { --tx: 0px; --ty: 0px; }
  .btn[data-glow]:hover::before { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .btn::before, .btn__icon svg, .btn__dot { transition: none !important; animation: none !important; }
  .btn { --tx: 0px !important; --ty: 0px !important; }
  .btn:hover .btn__icon--arrow svg { transform: none; }
}
@media (max-width: 768px) {
  .btn--lg { --btn-h: 52px; --btn-px: 28px; }
  .btn--mobile-block { width: 100%; max-width: 360px; }
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ─── Logo (Bildmarke im Header und Footer, alle Seiten) ────────── */
.nav-logo img { height: 28px; width: auto; display: block; }
body > nav .nav-logo { padding: 1px 0; line-height: 0; }
.footer-logo img { height: 26px; width: auto; display: block; }
@media (max-width: 768px) { .nav-logo img { height: 23px; } body > nav.menu-open .nav-logo { position: relative; z-index: 200; } }

/* ─── Pill-Header (mittig, freistehend, alle Seiten) ─────────────── */
body > nav {
  top: 16px; left: 16px; right: 16px; bottom: auto;
  width: auto; max-width: 1220px; margin: 0 auto;
  padding: 8px 8px 8px 26px; gap: 22px; align-items: center;
  border-radius: 999px;
  background: rgba(251,249,245,0.82);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(35,48,56,0.10); border-bottom: 1px solid rgba(35,48,56,0.10);
  box-shadow: 0 10px 40px rgba(35,48,56,0.10);
  transition: top 0.35s ease, padding 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}
body > nav.scrolled {
  top: 8px; padding: 7px 7px 7px 24px;
  background: rgba(251,249,245,0.92);
  border-bottom: 1px solid rgba(35,48,56,0.10);
  box-shadow: 0 14px 44px rgba(35,48,56,0.14);
}
body > nav .nav-logo, body > nav.scrolled .nav-logo { color: #233038; text-shadow: none; font-size: 1.05rem; letter-spacing: 0.3em; white-space: nowrap; flex: none; }
body > nav .nav-logo span, body > nav.scrolled .nav-logo span { color: #bd8a2e; }
body > nav .nav-links { gap: 24px; margin: 0; padding: 0; min-width: 0; flex: 0 1 auto; justify-content: flex-end; align-items: center; }
body > nav .nav-links a, body > nav.scrolled .nav-links a { color: #5b6770; text-shadow: none; padding: 4px 0; font-size: 0.72rem; white-space: nowrap; display: inline-flex; align-items: center; }
body > nav .nav-links a:hover, body > nav .nav-links a.active, body > nav.scrolled .nav-links a:hover { color: #a3741d; }
body > nav .nav-links a.nav-cta, body > nav.scrolled .nav-links a.nav-cta {
  background: #233038; color: #fbf9f5 !important; padding: 9px 15px !important; border-radius: 999px; box-shadow: none; margin-left: 4px;
  font-size: 0.66rem; letter-spacing: 0.08em; line-height: 1; flex: none;
  transition: background 0.3s, transform 0.3s;
}
body > nav .nav-links a.nav-cta:hover { background: #a3741d; transform: translateY(-1px); }
body > nav .nav-burger span { background: #233038; }
@media (min-width: 1141px) and (max-width: 1280px) {
  body > nav .nav-links { gap: 16px; }
  body > nav .nav-links a { font-size: 0.7rem; letter-spacing: 0.1em; }
}
@media (min-width: 901px) and (max-width: 1140px) {
  body > nav { padding: 7px 7px 7px 18px; gap: 14px; }
  body > nav .nav-logo { font-size: 0.9rem; letter-spacing: 0.2em; }
  body > nav .nav-links { gap: 14px; }
  body > nav .nav-links a { font-size: 0.68rem; letter-spacing: 0.1em; }
  body > nav .nav-links a.nav-cta { padding: 8px 12px !important; margin-left: 0; }
}
@media (max-width: 900px) {
  body > nav .nav-links { display: none; }
  body > nav .nav-burger { display: flex; }
  body > nav.menu-open { background: #fbf9f5; backdrop-filter: none; -webkit-backdrop-filter: none; transition: none; }
  body > nav.menu-open .nav-links { display: flex; flex-direction: column; position: fixed; inset: 0; background: #fbf9f5; justify-content: center; align-items: center; gap: 40px; z-index: 150; }
  body > nav.menu-open .nav-links a { font-size: 1.4rem; letter-spacing: 0.18em; color: #233038; white-space: normal; text-align: center; }
  body > nav.menu-open .nav-links a.nav-cta { font-size: 0.8rem; }
  body > nav.menu-open .nav-burger { z-index: 200; }
  body > nav.menu-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body > nav.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
  body > nav.menu-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 768px) {
  body > nav { top: 10px; left: 10px; right: 10px; padding: 5px 5px 5px 16px; gap: 12px; }
  body > nav.scrolled { top: 8px; }
  body > nav .nav-logo { font-size: 0.95rem; letter-spacing: 0.26em; }
  body > nav.menu-open { background: #fbf9f5; backdrop-filter: none; -webkit-backdrop-filter: none; transition: none; }
}

/* ─── Cookie-Banner ────────────────────────────────────────────── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 8000;
  background: rgba(255,255,255,0.97); border-top: 1px solid rgba(189,138,46,0.30);
  padding: 22px 48px; display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 -8px 30px rgba(35,48,56,0.08);
  transform: translateY(0); transition: transform 0.5s ease;
}
.cookie-banner.hidden { transform: translateY(100%); pointer-events: none; }
.cookie-text { flex: 1; min-width: 260px; font-size: 0.82rem; color: #67737c; line-height: 1.6; }
.cookie-text strong { color: #233038; font-weight: 600; }
.cookie-text a { color: #a3741d; text-decoration: none; }
.cookie-text a:hover { text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }
.cookie-btn {
  min-height: 44px; padding: 0 22px; border-radius: 100px; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid transparent; cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s; font-family: var(--sans, 'DM Sans', system-ui, sans-serif);
}
.cookie-btn-accept { background: #233038; color: #fbf9f5; }
.cookie-btn-accept:hover { background: #1b2429; }
.cookie-btn-decline { background: transparent; color: #67737c; border-color: rgba(35,48,56,0.14); }
.cookie-btn-decline:hover { border-color: #67737c; color: #233038; }
.cookie-btn-settings { background: transparent; color: #67737c; border-color: rgba(35,48,56,0.14); }
.cookie-btn-settings:hover { border-color: #bd8a2e; color: #a3741d; }
.cookie-btn:focus-visible { outline: 2px solid #bd8a2e; outline-offset: 2px; }
@media (max-width: 768px) {
  .cookie-banner { padding: 12px 16px; flex-direction: column; align-items: stretch; gap: 10px; }
  .cookie-text { font-size: 0.76rem; line-height: 1.45; min-width: 0; }
  .cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
  .cookie-btn { padding: 0 14px; flex: 1 1 auto; text-align: center; }
}

/* ─── Overflow-Schutz (Tabellen, Formulare, lange Labels) ───────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.table-wrap table { min-width: 480px; }
.form-group, .form-row > * , .contact-grid > *, .contact-item { min-width: 0; }
.form-input { min-width: 0; max-width: 100%; }
.contact-item a { overflow-wrap: anywhere; }
@media (max-width: 768px) {
  .btn { white-space: normal; text-align: center; line-height: 1.25; padding-top: 12px; padding-bottom: 12px; }
}

/* ─── Kontaktformular ──────────────────────────────────────────── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-row .form-group { margin-bottom: 0; }
.form-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #67737c; }
.form-required { color: #a3741d; }
.form-input {
  background: #fbf9f5; border: 1px solid rgba(35,48,56,0.12); border-radius: 12px; color: #233038;
  font-family: var(--sans, 'DM Sans', system-ui, sans-serif); font-size: 0.95rem; font-weight: 300;
  padding: 14px 18px; outline: none; transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
  width: 100%; min-height: 48px; appearance: none; -webkit-appearance: none;
}
.form-input::placeholder { color: rgba(103,115,124,0.55); }
.form-input:focus { border-color: #bd8a2e; background: #fff; box-shadow: 0 0 0 3px rgba(226,173,68,0.18); }
.form-input[aria-invalid="true"] { border-color: #c0392b; }
.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2367737c' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.form-select option { background: #fff; color: #233038; }
.form-textarea { resize: vertical; min-height: 110px; }
.form-hint { font-size: 0.78rem; color: #67737c; font-weight: 300; margin-top: -4px; }
.form-check-group { display: flex; gap: 14px; align-items: flex-start; padding: 22px 0 26px; border-top: 1px solid rgba(35,48,56,0.12); border-bottom: 1px solid rgba(35,48,56,0.12); margin-bottom: 26px; }
.form-check { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; accent-color: #bd8a2e; cursor: pointer; }
.form-check-label { font-size: 0.82rem; color: #67737c; line-height: 1.6; font-weight: 300; cursor: pointer; }
.form-link { background: none; border: none; color: #a3741d; font-family: inherit; font-size: inherit; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 2px; }
.form-error { font-size: 0.82rem; color: #c0392b; margin-bottom: 16px; padding: 12px 16px; border: 1px solid rgba(192,57,43,0.3); border-radius: 12px; background: rgba(192,57,43,0.05); }
.form-success { text-align: center; padding: 48px 0 24px; }
.form-success-icon { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, #e2ad44, #bd8a2e); color: #fff; font-size: 1.6rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; box-shadow: 0 10px 26px rgba(189,138,46,0.28); }
.form-success h3 { font-family: var(--serif, 'Cormorant Garamond', Georgia, serif); font-size: 1.9rem; font-weight: 500; margin-bottom: 12px; }
.form-success p { font-size: 0.9rem; color: #67737c; line-height: 1.7; }
.form-success a { color: #a3741d; }
.modal-box { max-height: 92vh; overflow-y: auto; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; gap: 0; margin-bottom: 0; } .form-row .form-group { margin-bottom: 20px; } }

/* ─── Einwand-Liste (Startseite / Leistungsseiten) ─────────────── */
.objections { display: grid; gap: 12px; max-width: 840px; }
.objection { border: 1px solid rgba(35,48,56,0.12); border-radius: 18px; background: #fff; overflow: hidden; transition: border-color 0.3s, box-shadow 0.3s; }
.objection[open] { border-color: rgba(189,138,46,0.30); box-shadow: 0 4px 18px rgba(35,48,56,0.06); }
.objection summary { cursor: pointer; list-style: none; padding: 20px 26px; font-family: var(--serif, 'Cormorant Garamond', Georgia, serif); font-size: 1.25rem; font-weight: 500; color: #233038; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.objection summary::-webkit-details-marker { display: none; }
.objection summary::before { content: "„"; color: #bd8a2e; font-size: 1.6rem; line-height: 0; margin-right: 2px; }
.objection summary::after { content: "+"; font-family: var(--sans, 'DM Sans', system-ui, sans-serif); font-size: 1.5rem; line-height: 1; color: #bd8a2e; transition: transform 0.3s; flex-shrink: 0; margin-left: auto; }
.objection[open] summary::after { transform: rotate(45deg); }
.objection p { padding: 0 26px 22px; margin: 0; color: #67737c; line-height: 1.75; font-size: 0.97rem; font-weight: 300; }
.objection p strong { color: #233038; font-weight: 600; }

/* ─── Artikel (Ratgeber) ───────────────────────────────────────── */
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.78rem; color: #67737c; margin-bottom: 36px; }
.article-meta a { color: #a3741d; text-decoration: none; }
.article-lead { font-size: 1.15rem; font-weight: 300; color: #233038; line-height: 1.75; max-width: 720px; margin-bottom: 36px; padding: 22px 26px; border-left: 3px solid #bd8a2e; background: #f4efe6; border-radius: 0 18px 18px 0; }
.article-body { max-width: 720px; }
.article-body p { font-size: 1.02rem; font-weight: 300; color: #3b4852; line-height: 1.9; margin-bottom: 22px; }
.article-body p strong { color: #233038; font-weight: 600; }
.article-body h2 { font-family: var(--serif, 'Cormorant Garamond', Georgia, serif); font-size: 1.9rem; font-weight: 500; line-height: 1.2; margin: 48px 0 16px; color: #233038; }
.article-body h3 { font-family: var(--serif, 'Cormorant Garamond', Georgia, serif); font-size: 1.45rem; font-weight: 500; margin: 34px 0 12px; color: #233038; }
.article-body ul, .article-body ol { margin: 0 0 24px 22px; }
.article-body li { font-size: 1rem; font-weight: 300; color: #3b4852; line-height: 1.8; margin-bottom: 8px; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin: 10px 0 28px; }
.article-body th, .article-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(35,48,56,0.12); vertical-align: top; }
.article-body th { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: #67737c; font-weight: 600; }
.article-body .table-wrap { overflow-x: auto; }
.article-note { font-size: 0.86rem; color: #67737c; background: #f4efe6; border-radius: 12px; padding: 14px 18px; margin: 0 0 24px; }
.article-note strong { color: #233038; }
.article-cta { margin: 48px 0 0; padding: 32px; border: 1px solid rgba(189,138,46,0.30); border-radius: 18px; background: #fff; max-width: 720px; }
.article-cta h3 { font-family: var(--serif, 'Cormorant Garamond', Georgia, serif); font-size: 1.5rem; font-weight: 500; margin: 0 0 8px; }
.article-cta p { margin: 0 0 18px; color: #67737c; font-weight: 300; line-height: 1.7; }
.author-box { display: flex; gap: 18px; align-items: center; margin-top: 44px; padding: 22px 24px; background: #f4efe6; border-radius: 18px; max-width: 720px; }
.author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid rgba(189,138,46,0.30); }
.author-box strong { display: block; font-family: var(--serif, 'Cormorant Garamond', Georgia, serif); font-size: 1.2rem; font-weight: 500; }
.author-box span { font-size: 0.86rem; color: #67737c; font-weight: 300; line-height: 1.6; }
.article-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.article-card { display: block; background: #fff; border: 1px solid rgba(35,48,56,0.12); border-radius: 18px; padding: 28px; text-decoration: none; color: #233038; transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s; }
.article-card:hover { transform: translateY(-3px); box-shadow: 0 14px 44px rgba(35,48,56,0.09); border-color: rgba(189,138,46,0.30); }
.article-card small { display: block; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: #a3741d; font-weight: 600; margin-bottom: 10px; }
.article-card strong { display: block; font-family: var(--serif, 'Cormorant Garamond', Georgia, serif); font-size: 1.45rem; font-weight: 500; line-height: 1.2; margin-bottom: 10px; }
.article-card span { font-size: 0.9rem; color: #67737c; font-weight: 300; line-height: 1.65; }
@media (max-width: 800px) { .article-list { grid-template-columns: 1fr; } }

/* ─── Scroll-Reveal für Sektionen (.reveal → .visible per site.js) ─────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.visible { opacity: 1; transform: none; }
/* Überschriften: Label, Headline, Untertitel nacheinander; Akzent-Unterstrich zeichnet sich */
.section-label.anim, .section-heading.anim, .section-sub.anim, .services-sub.anim, .answer.anim, .cta-label.anim, .cta-heading.anim, .cta-sub.anim { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.section-heading.anim, .cta-heading.anim { transition-delay: 0.12s; }
.section-sub.anim, .services-sub.anim, .answer.anim, .cta-sub.anim { transition-delay: 0.26s; }
.anim.is-in { opacity: 1; transform: none; }
.section-heading em { background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-size: 0% 2px; background-position: 0 96%; transition: background-size 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s; }
.section-heading.is-in em { background-size: 100% 2px; }
/* Ablauf: Nummern poppen, Ergebnis-Pille rutscht nach */
.stagger > .phase .phase-num { transform: scale(0.6); opacity: 0; transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.3), opacity 0.4s ease; }
.stagger.is-in > .phase .phase-num { transform: scale(1); opacity: 1; }
.stagger > .phase .phase-result { opacity: 0; transform: translateX(-8px); transition: opacity 0.6s ease 0.5s, transform 0.6s ease 0.5s; }
.stagger.is-in > .phase .phase-result { opacity: 1; transform: none; }
.stagger > :nth-child(2) .phase-num { transition-delay: 0.3s; } .stagger > :nth-child(3) .phase-num { transition-delay: 0.75s; } .stagger > :nth-child(4) .phase-num { transition-delay: 1.2s; } .stagger > :nth-child(5) .phase-num { transition-delay: 1.65s; } .stagger > :nth-child(6) .phase-num { transition-delay: 2.1s; }
.stagger > .phases-track { opacity: 1; transform: none; transition: none; }
/* Qualität: Listenpunkte nacheinander */
.stagger .quality-col li { opacity: 0; transform: translateX(-10px); transition: opacity 0.5s ease, transform 0.5s ease; }
.stagger.is-in .quality-col li { opacity: 1; transform: none; }
.stagger.is-in .quality-col li:nth-child(1) { transition-delay: 0.4s; } .stagger.is-in .quality-col li:nth-child(2) { transition-delay: 0.55s; } .stagger.is-in .quality-col li:nth-child(3) { transition-delay: 0.7s; } .stagger.is-in .quality-col li:nth-child(4) { transition-delay: 0.85s; } .stagger.is-in .quality-col li:nth-child(5) { transition-delay: 1s; } .stagger.is-in .quality-col li:nth-child(n+6) { transition-delay: 1.15s; }
/* Team: Fotos zoomen sanft rein */
.stagger .founder-photo { transform: scale(1.12); transition: transform 1.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.stagger.is-in .founder-photo { transform: scale(1); }
/* Pakete: empfohlene Karte bekommt einen langsamen Lichtstreif */
.pkg-card--featured { position: relative; overflow: hidden; }
.pkg-card--featured::after { content: ''; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,0.08), transparent); transform: skewX(-16deg); animation: pkgShine 7s ease-in-out infinite; pointer-events: none; }
@keyframes pkgShine { 0%, 70% { left: -60%; } 100% { left: 160%; } }
/* CTA: Hintergrundglühen atmet */
.cta-section::before { animation: ctaGlow 10s ease-in-out infinite alternate; transform-origin: 50% 40%; }
@keyframes ctaGlow { from { transform: scale(1) translateX(0); opacity: 0.85; } to { transform: scale(1.18) translateX(3%); opacity: 1; } }
/* Aufklapp-Antworten gleiten auf */
.faq-item[open] > :not(summary), .objection[open] > :not(summary) { animation: openDown 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes openDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
/* Kennzahlen: Kacheln nacheinander */
.stats-inner.stagger > * { transform: translateY(14px); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .anim, .stagger > .phase .phase-num, .stagger > .phase .phase-result, .stagger .quality-col li, .stagger .founder-photo { opacity: 1; transform: none; transition: none; }
  .section-heading em { background-size: 100% 2px; transition: none; }
  .pkg-card--featured::after, .cta-section::before { animation: none; }
  .faq-item[open] > :not(summary), .objection[open] > :not(summary) { animation: none; }
}

/* ─── Animationen (Scroll-Reveal gestaffelt, Zähler, Chart) ────────── */
.anim { --d: 0ms; }
.stagger > * { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.stagger.visible > *, .stagger.is-in > * { opacity: 1; transform: none; }
.stagger > :nth-child(1) { transition-delay: 0.05s; } .stagger > :nth-child(2) { transition-delay: 0.15s; } .stagger > :nth-child(3) { transition-delay: 0.25s; }
.stagger > :nth-child(4) { transition-delay: 0.35s; } .stagger > :nth-child(5) { transition-delay: 0.45s; } .stagger > :nth-child(6) { transition-delay: 0.55s; }
.stagger > :nth-child(7) { transition-delay: 0.65s; } .stagger > :nth-child(n+8) { transition-delay: 0.75s; }
[data-count] { font-variant-numeric: tabular-nums; }

.chart { --chart-a: #a3741d; --chart-b: #2b74b5; --chart-ink: #233038; --chart-muted: #67737c; --chart-grid: rgba(35,48,56,0.10); --chart-surface: #fbf9f5;
  margin: 0; max-width: 840px; background: #fff; border: 1px solid rgba(35,48,56,0.12); border-radius: 18px; padding: 22px 22px 16px; }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.chart-legend { display: flex; gap: 18px; font-size: 0.78rem; color: var(--chart-ink); font-weight: 500; }
.chart-legend span { display: inline-flex; align-items: center; gap: 8px; }
.c-key { width: 18px; height: 2px; border-radius: 2px; display: inline-block; }
.c-key--a { background: var(--chart-a); } .c-key--b { background: var(--chart-b); }
.chart-note { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--chart-muted); }
.chart svg { width: 100%; height: auto; display: block; font-family: var(--sans, 'DM Sans', system-ui, sans-serif); }
.c-grid line { stroke: var(--chart-grid); stroke-width: 1; }
.c-grid .c-base { stroke: rgba(35,48,56,0.22); }
.c-ylabel { font-size: 11px; fill: var(--chart-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.c-xticks text { font-size: 11px; fill: var(--chart-muted); }
.c-line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.c-line--a { stroke: var(--chart-a); } .c-line--b { stroke: var(--chart-b); }
.c-area { fill: var(--chart-a); opacity: 0; }
.c-dot { fill: var(--chart-a); stroke: var(--chart-surface); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0.4); }
.c-dot--b { fill: var(--chart-b); }
.c-end { font-size: 12px; fill: var(--chart-ink); font-weight: 500; opacity: 0; }
.chart figcaption { margin-top: 12px; font-size: 0.82rem; color: var(--chart-muted); font-weight: 300; line-height: 1.6; }
/* Einblend-Sequenz */
.chart.is-in .c-line--b { animation: cDraw 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards; }
.chart.is-in .c-line--a { animation: cDraw 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards; }
.chart.is-in .c-area { animation: cFade 0.9s ease 1.4s forwards; }
.chart.is-in .c-dot { animation: cPop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.3) forwards; animation-delay: calc(0.6s + var(--i) * 0.12s); }
.chart.is-in .c-end { animation: cFade 0.6s ease 2.0s forwards; }
@keyframes cDraw { to { stroke-dashoffset: 0; } }
@keyframes cFade { to { opacity: 0.12; } }
.chart.is-in .c-end { animation-name: cFadeIn; } @keyframes cFadeIn { to { opacity: 1; } }
@keyframes cPop { to { opacity: 1; transform: scale(1); } }
@media (max-width: 600px) { .chart { padding: 14px 12px 12px; } .chart-note { display: none; } .c-end { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) {
  .stagger > * { opacity: 1; transform: none; transition: none; }
  .c-line { stroke-dashoffset: 0; } .c-area { opacity: 0.12; } .c-dot { opacity: 1; transform: none; } .c-end { opacity: 1; }
  .chart.is-in * { animation: none !important; }
}

/* ─── Leistungs-Visuals: animierte Mini-Szenen in den Service-Karten ─── */
.sv { --sv-ink: #233038; --sv-muted: #67737c; --sv-gold: #a3741d; --sv-gold-soft: #f1e6cf; --sv-line: rgba(35,48,56,0.12); --sv-bar: #ddd8cd;
  position: relative; height: 156px; margin-bottom: 22px; border-radius: 14px; border: 1px solid var(--sv-line); background: linear-gradient(180deg, #f8f5ef, #f2ede3); overflow: hidden;
  font-family: var(--sans, 'DM Sans', system-ui, sans-serif); font-size: 10.5px; line-height: 1.2; color: var(--sv-ink); user-select: none; pointer-events: none; }
.sv i, .sv b, .sv span, .sv em, .sv small { display: block; }
.sv b { font-weight: 600; } .sv em { font-style: normal; }
.sv-win { position: absolute; background: #fff; border-radius: 8px; border: 1px solid var(--sv-line); box-shadow: 0 6px 18px rgba(35,48,56,0.10); overflow: hidden; }
.sv-win__bar { height: 12px; background: #f0ede6; display: flex; gap: 3px; align-items: center; padding: 0 6px; }
.sv-win__bar i { width: 4px; height: 4px; border-radius: 50%; background: #cfc9bc; }
.stagger.is-in > .service-card:hover, .stagger.is-in > .link-card:hover { transform: translateY(-4px); }

/* 1 · Anzeigen: Anzeige links, wachsende Balken rechts */
.sv-ad { position: absolute; left: 16px; top: 20px; width: 112px; background: #fff; border: 1px solid var(--sv-line); border-radius: 8px; padding: 9px 10px 10px; box-shadow: 0 6px 18px rgba(35,48,56,0.08); opacity: 0; transform: translateY(8px); transition: opacity 0.5s ease, transform 0.5s ease; }
.sv-ad__tag { font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sv-muted); margin-bottom: 6px; }
.sv-ad__t { height: 6px; width: 80%; border-radius: 3px; background: var(--sv-ink); margin-bottom: 6px; }
.sv-ad__l { height: 4px; width: 100%; border-radius: 2px; background: var(--sv-bar); margin-bottom: 4px; }
.sv-ad__l--s { width: 70%; }
.sv-ad__btn { display: inline-block; margin-top: 7px; font-size: 8.5px; padding: 4px 9px; border-radius: 999px; background: var(--sv-gold); color: #fff; }
.sv-bars { position: absolute; left: 146px; right: 18px; bottom: 30px; height: 88px; display: flex; align-items: flex-end; gap: 7px; border-bottom: 1px solid rgba(35,48,56,0.25); }
.sv-bars i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #bd8a2e, #a3741d); transform-origin: bottom; transform: scaleY(0); }
.sv-bars__lbl { position: absolute; left: 0; bottom: -18px; font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sv-muted); }
.sv-ad { transition-duration: 0.8s, 0.8s; }
.is-in .sv-ad { opacity: 1; transform: none; }
.is-in .sv-bars i { animation: svGrow 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; animation-delay: calc(0.7s + var(--n) * 0.25s); }
@keyframes svGrow { to { transform: scaleY(1); } }

/* 2 · Landingpage je Projektart: Tabs wechseln durch */
.sv-lp .sv-win { left: 22px; right: 22px; top: 16px; bottom: -12px; }
.sv-tabs { display: flex; gap: 4px; padding: 7px 8px 0; }
.sv-tabs span { font-size: 9px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--sv-line); color: var(--sv-muted); background: #fff; }
.sv-lp__body { padding: 9px 10px 0; display: grid; grid-template-columns: 1fr 78px; gap: 10px; }
.sv-lp__h { height: 7px; width: 85%; border-radius: 3px; background: var(--sv-ink); margin: 4px 0 8px; }
.sv-lp__l { height: 4px; width: 95%; border-radius: 2px; background: var(--sv-bar); margin-bottom: 4px; }
.sv-lp__form { border: 1px solid var(--sv-line); border-radius: 6px; padding: 6px; background: #faf8f3; }
.sv-lp__form i { height: 9px; border-radius: 3px; background: #fff; border: 1px solid var(--sv-line); margin-bottom: 4px; }
.sv-lp__form b { font-size: 8px; text-align: center; padding: 4px 2px; border-radius: 4px; background: var(--sv-gold); color: #fff; }
.is-in .sv-tabs span { animation: svTab 9s infinite; }
.is-in .sv-tabs span:nth-child(2) { animation-delay: 3s; } .is-in .sv-tabs span:nth-child(3) { animation-delay: 6s; }
.is-in .sv-lp__h { animation: svHead 9s infinite; }
@keyframes svTab { 0%, 30% { background: var(--sv-ink); color: #fff; border-color: var(--sv-ink); } 34%, 100% { background: #fff; color: var(--sv-muted); border-color: var(--sv-line); } }
@keyframes svHead { 0%, 30% { width: 85%; } 34%, 63% { width: 60%; } 67%, 100% { width: 72%; } }

/* 3 · Vorqualifizierung: Anfragen fallen durch den Filter, passende bleiben */
.sv .d { width: 12px; height: 12px; border-radius: 50%; background: #aab3ba; position: relative; }
.sv .d--ok { background: var(--sv-gold); }
.sv-filter__in { position: absolute; top: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; }
.sv-filter__bar { position: absolute; z-index: 1; top: 66px; left: 18px; right: 18px; height: 26px; border-radius: 999px; background: var(--sv-ink); color: #fbf9f5; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 8.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.sv-filter__out { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 8px; }
.sv-filter__out .d { opacity: 0; transform: scale(0.4); }
.sv-filter__out .d::after { content: ''; position: absolute; left: 4px; top: 2px; width: 3px; height: 6px; border-right: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(45deg); }
.sv-filter__out span { font-size: 9.5px; margin-left: 4px; opacity: 0; }
.is-in .sv-filter__in .d { animation: svDrop 1.8s cubic-bezier(0.4, 0, 0.6, 1) forwards; animation-delay: calc(0.4s + var(--i) * 0.16s); }
.is-in .sv-filter__out .d { animation: svPopIn 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.3) forwards; animation-delay: calc(2.6s + var(--i) * 0.3s); }
.is-in .sv-filter__out span { animation: svFadeIn 0.7s ease 3.6s forwards; }
@keyframes svDrop { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(50px); opacity: 1; } 100% { transform: translateY(62px); opacity: 0; } }
@keyframes svPopIn { to { opacity: 1; transform: scale(1); } }
@keyframes svFadeIn { to { opacity: 1; } }

/* 4 · Lead-Tracking: Tabelle füllt sich Zeile für Zeile */
.sv-track { padding: 12px 16px; display: flex; flex-direction: column; gap: 5px; }
.sv-row { display: grid; grid-template-columns: 1.2fr 1fr 60px; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--sv-line); border-radius: 6px; padding: 4px 9px; font-size: 9.5px; opacity: 0; transform: translateX(-10px); }
.sv-row--h { background: transparent; border: 0; padding: 0 9px; font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sv-muted); opacity: 1; transform: none; }
.sv-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv .p { font-size: 7.5px; letter-spacing: 0.06em; text-transform: uppercase; text-align: center; padding: 3px 4px; border-radius: 999px; background: #eeeae1; color: var(--sv-ink); }
.sv .p--1 { background: #e4ecf3; color: #2b4f70; } .sv .p--2 { background: var(--sv-gold-soft); color: #7a5512; } .sv .p--3 { background: var(--sv-gold); color: #fff; }
.is-in .sv-row:not(.sv-row--h) { animation: svSlide 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; animation-delay: calc(0.4s + var(--i) * 0.4s); }
@keyframes svSlide { to { opacity: 1; transform: none; } }

/* 5 · Website: Desktop + Smartphone, Cursor klickt die Anfrage */
.sv-web__desk { left: 18px; top: 16px; width: 150px; height: 150px; opacity: 0; transform: translateY(8px); transition: opacity 0.8s ease, transform 0.8s ease; }
.sv-web__hero { padding: 10px 10px 8px; background: #fbf9f5; }
.sv-web .h { height: 6px; width: 75%; border-radius: 3px; background: var(--sv-ink); margin-bottom: 5px; }
.sv-web .l { height: 3px; width: 90%; border-radius: 2px; background: var(--sv-bar); margin-bottom: 3px; }
.sv-web__cta { display: inline-block; margin-top: 5px; font-size: 8px; padding: 3px 8px; border-radius: 999px; background: var(--sv-ink); color: #fff; }
.sv-web__cols { display: flex; gap: 6px; padding: 8px 10px; }
.sv-web__cols i { flex: 1; height: 28px; border-radius: 4px; background: #f0ede6; }
.sv-web__phone { position: absolute; right: 22px; top: 24px; width: 54px; height: 108px; border-radius: 10px; background: #fff; border: 2px solid var(--sv-ink); padding: 12px 6px 6px; box-shadow: 0 8px 20px rgba(35,48,56,0.12); opacity: 0; transform: translateY(8px); transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s; }
.sv-web__phone .h { width: 85%; } .sv-web__phone b { height: 10px; border-radius: 999px; background: var(--sv-gold); margin-top: 6px; }
.sv-cursor { position: absolute; width: 14px; height: 14px; left: 44px; top: 76px; opacity: 0; z-index: 2; }
.is-in .sv-web__desk, .is-in .sv-web__phone { opacity: 1; transform: none; }
.is-in .sv-cursor { animation: svCursor 3.2s cubic-bezier(0.3, 0.7, 0.3, 1) 1s forwards; }
.is-in .sv-web__cta { animation: svClick 0.7s ease 3.6s forwards; }
@keyframes svCursor { 0% { opacity: 0; transform: translate(70px, 50px); } 15% { opacity: 1; } 70%, 100% { opacity: 1; transform: translate(0, 0); } }
@keyframes svClick { 0%, 40% { background: var(--sv-ink); transform: scale(1); } 50% { transform: scale(0.88); } 60%, 100% { background: var(--sv-gold); transform: scale(1); } }

/* 6 · Google-Sichtbarkeit: der eigene Betrieb klettert auf Platz 1 */
.sv-rank__search { position: absolute; left: 16px; right: 16px; top: 14px; height: 26px; border-radius: 999px; background: #fff; border: 1px solid var(--sv-line); display: flex; align-items: center; gap: 7px; padding: 0 10px; font-size: 9.5px; color: var(--sv-muted); }
.sv-rank__search svg { width: 11px; height: 11px; stroke: var(--sv-muted); fill: none; stroke-width: 2; flex-shrink: 0; }
.sv-rank__slots { position: absolute; left: 18px; top: 50px; }
.sv-rank__slots small { height: 28px; margin-bottom: 4px; display: flex; align-items: center; font-size: 9px; color: var(--sv-muted); }
.sv-rank__list { position: absolute; left: 32px; right: 16px; top: 50px; height: 92px; }
.sv-rank__row { position: absolute; left: 0; right: 0; height: 28px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border-radius: 7px; background: #fff; border: 1px solid var(--sv-line); font-size: 9.5px; }
.sv-rank__row:nth-child(1) { top: 0; } .sv-rank__row:nth-child(2) { top: 32px; } .sv-rank__row:nth-child(3) { top: 64px; }
.sv-rank__row i { width: 26px; height: 5px; border-radius: 3px; background: var(--sv-bar); } .sv-rank__row i + i { width: 52px; }
.sv-rank__row--you { background: var(--sv-ink); color: #fbf9f5; border-color: var(--sv-ink); z-index: 2; box-shadow: 0 8px 20px rgba(35,48,56,0.18); }
.sv-rank__row--you .pin { width: 8px; height: 8px; border-radius: 50%; background: var(--sv-gold); flex-shrink: 0; }
.sv-rank__row--you em { font-size: 8px; opacity: 0.7; margin-top: 1px; }
.is-in .sv-rank__row--you { animation: svUp 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) 1.6s forwards; }
.is-in .sv-rank__row:not(.sv-rank__row--you) { animation: svDown 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) 1.6s forwards; }
@keyframes svUp { to { transform: translateY(-64px); } }
@keyframes svDown { to { transform: translateY(32px); } }

@media (max-width: 400px) { .sv-bars { left: 140px; } .sv-filter__bar { gap: 8px; font-size: 8px; } }
@media (prefers-reduced-motion: reduce) {
  .sv * { animation: none !important; transition: none !important; }
  .sv-ad, .sv-web__desk, .sv-web__phone, .sv-filter__out .d, .sv-filter__out span, .sv-row { opacity: 1; transform: none; }
  .sv-bars i { transform: scaleY(1); } .sv-filter__in { display: none; } .sv-cursor { display: none; }
  .sv-tabs span:first-child { background: var(--sv-ink); color: #fff; border-color: var(--sv-ink); }
  .sv-rank__row--you { transform: translateY(-64px); } .sv-rank__row:not(.sv-rank__row--you) { transform: translateY(32px); }
  .sv-web__cta { background: var(--sv-gold); }
}

/* ─── Kontaktseite ─────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.contact-card { background: #fff; border: 1px solid rgba(35,48,56,0.12); border-radius: 18px; padding: 32px; }
.contact-aside { display: grid; gap: 16px; }
.contact-item { padding: 22px 24px; background: #f4efe6; border-radius: 18px; }
.contact-item small { display: block; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: #a3741d; font-weight: 600; margin-bottom: 6px; }
.contact-item a { color: #233038; text-decoration: none; font-family: var(--serif, 'Cormorant Garamond', Georgia, serif); font-size: 1.3rem; font-weight: 500; }
.contact-item p { margin: 6px 0 0; font-size: 0.88rem; color: #67737c; font-weight: 300; line-height: 1.6; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
