/* J&B Raumbiologie – gemeinsame Design-Basis für alle Seiten.
   Zwei Farbfamilien, sonst nichts:
   GRÜN  = Marke, Handlung, saubere Räume, gute Werte (der Tropfen)
   STAUB = grau-braun-schwarz, alles Negative: schlechte Werte, Schadstoffe (das Staubmonster)
   Dazu Weiß, Papier, Tinte. Keine weiteren Akzentfarben. */
:root {
  --green: #1F523A; --green-dark: #143826; --green-soft: #D9EAE0; --green-tint: #EEF5F0; --mint: #10B981;
  --ink: #132419; --muted: #4F6357; --line: #E3EAE6; --paper: #F4F7F5; --white: #FFFFFF;
  --dust: #6E4B31; --dust-dark: #2E1F14; --dust-soft: #EFE4D8; --dust-mid: #9A7250; --dust-tint: #F7F1EA;
  --ok: #10B981; --warn: #9A7250; --crit: #2E1F14;
  --radius: 14px; --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(19, 36, 25, 0.07);
  --font: 'Poppins', system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--white); color: var(--ink); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
mark { background: var(--green-soft); color: var(--green-dark); padding: 0 0.22em; border-radius: 4px; }
mark.dust { background: var(--dust-soft); color: var(--dust-dark); }

.container { width: 92%; max-width: 1080px; margin: 0 auto; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); margin-bottom: 0.9rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 60ch; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; background: var(--green); color: #fff; padding: 1rem 1.9rem; border-radius: var(--radius-sm); text-decoration: none; font-weight: 700; font-size: 1.02rem; border: 2px solid var(--green); cursor: pointer; font-family: inherit; line-height: 1.2; transition: background 0.15s, transform 0.15s, box-shadow 0.15s; }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(31, 82, 58, 0.25); text-decoration: none; }
.btn-outline { background: transparent; color: var(--green); }
.btn-outline:hover { background: var(--green-tint); border-color: var(--green); color: var(--green-dark); box-shadow: none; }
.btn-mint { background: var(--mint); border-color: var(--mint); color: var(--green-dark); }
.btn-mint:hover { background: #34D399; border-color: #34D399; color: var(--green-dark); box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3); }
.btn-lg { padding: 1.15rem 2.2rem; font-size: 1.1rem; }
.btn-group { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.center .btn-group { justify-content: center; }

/* Announcement */
.announce { background: var(--green-dark); color: #fff; text-align: center; font-size: 0.92rem; padding: 0.6rem 1rem; }
.announce a { color: #7FE0BA; font-weight: 700; text-decoration: none; }
.announce a:hover { text-decoration: underline; }

/* Header / Nav */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header nav { display: flex; justify-content: space-between; align-items: center; padding: 0.9rem 0; gap: 1rem; position: relative; }
.logo a { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.2rem; color: var(--green); text-decoration: none; letter-spacing: -0.02em; }
.logo img { width: 34px; height: 34px; border-radius: 8px; }
.nav-links { display: flex; gap: 1.6rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--green); }
.nav-links .btn { padding: 0.6rem 1.2rem; font-size: 0.92rem; color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 0.5rem 0.9rem; min-height: 44px; font-family: inherit; font-weight: 700; color: var(--green); cursor: pointer; }

/* Footer */
.site-footer { padding: 3rem 0 6rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; background: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-grid h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink); margin-bottom: 0.7rem; }
.footer-grid a { display: block; text-decoration: none; color: var(--muted); margin-bottom: 0.4rem; }
.footer-grid a:hover { color: var(--green); }
.footer-grid p a { display: inline; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 1.5rem; font-size: 0.82rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* Cookie banner */
.cookie-banner { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 1.5rem; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,0.4); display: none; flex-direction: column; gap: 1rem; z-index: 9999; width: 92%; max-width: 600px; }
.cookie-banner.show { display: flex; }
.cookie-text { font-size: 0.92rem; color: #D0E0D6; }
.cookie-text a { color: #7FE0BA; font-weight: 700; text-decoration: none; }
.cookie-buttons { display: flex; gap: 0.6rem; justify-content: flex-end; flex-wrap: wrap; }
.cookie-btn { background: var(--mint); color: var(--green-dark); border: none; padding: 0.65rem 1.1rem; border-radius: 6px; font-weight: 700; cursor: pointer; font-family: inherit; }
.cookie-btn.secondary { background: transparent; color: #fff; border: 1px solid #5C7364; }

/* Figuren: Staubmonster & Tropfen – Pixel-Art, immer klein, nie verzerrt. Keine Namen. */
.pix { image-rendering: pixelated; image-rendering: crisp-edges; width: 72px; height: 72px; flex-shrink: 0; }
.pix-sm { width: 48px; height: 48px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: -4.35%; right: -4.35%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 1rem 4%; gap: 0.2rem; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.7rem 0; }
  .nav-links .btn { margin-top: 0.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .btn-group .btn { width: 100%; }
}

/* ===== Animationen: bewusst wenig. ===== */
@keyframes zzz { 0% { transform: translate(0,0) scale(0.7); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(14px,-34px) scale(1.1); opacity: 0; } }
@keyframes peek { 0%,84%,100% { transform: rotate(0); } 90% { transform: rotate(-4deg); } 96% { transform: rotate(3deg); } }
.zzz { position: relative; display: inline-block; }
.zzz .z { position: absolute; left: 62%; top: 4%; font-weight: 700; color: var(--dust-mid); font-size: 0.9rem; line-height: 1; animation: zzz 3s ease-out infinite; pointer-events: none; }
.zzz .z:nth-child(2) { animation-delay: 1s; font-size: 1.1rem; }
.zzz .z:nth-child(3) { animation-delay: 2s; font-size: 1.3rem; }
.g-peek { animation: peek 7s ease-in-out infinite; transform-origin: 50% 85%; }
@media (prefers-reduced-motion: reduce) { .zzz .z, .g-peek { animation: none; } .zzz .z { opacity: 0.6; } }


/* ===== Erstgespräch-Anfrage (inc/funnel.php) – ein Formular, eine Karte, auf allen Seiten ===== */
.fun { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: 18px; box-shadow: 0 14px 40px rgba(19,36,25,0.08); width: 100%; max-width: 640px; margin: 0 auto; padding: 0.6rem 0 1.6rem; scroll-margin-top: 80px; }
.fun-bar { height: 5px; background: var(--line); }
.fun-bar i { display: block; height: 100%; width: 0; background: var(--green); transition: width 0.3s; }
.fun-head { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 2rem 0; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); min-height: 2.2rem; }
.fun-body { padding: 0.8rem 2rem 0; }
.fun .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.fun .screen { display: none; padding: 0; } .fun .screen.on { display: block; }
.fun .q { font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 0.4rem; }
.fun .hint { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.2rem; }
.fun .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.fun .tile { position: relative; display: flex; flex-direction: column; gap: 0.1rem; padding: 1rem 0.95rem; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; background: #FAFCFB; min-height: 72px; transition: border-color 0.15s, background 0.15s; -webkit-tap-highlight-color: transparent; }
.fun .tile:hover { border-color: var(--green-soft); }
.fun .tile input { position: absolute; opacity: 0; width: 0; height: 0; }
.fun .tile:has(input:checked) { border-color: var(--green); background: var(--green-tint); }
.fun .tile:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(31,82,58,0.15); }
.fun .tile-t { font-weight: 700; font-size: 1rem; line-height: 1.25; }
.fun .tile-s { font-size: 0.8rem; color: var(--muted); line-height: 1.3; }
.fun .field { margin-bottom: 0.9rem; }
.fun .field label { display: block; font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.4rem; color: var(--muted); }
.fun .field label small { font-weight: 500; text-transform: none; letter-spacing: 0; }
.fun .field input, .fun .field textarea { width: 100%; padding: 0.95rem 1.05rem; border: 2px solid var(--line); border-radius: 10px; background: #FAFCFB; font-family: inherit; font-size: 1.05rem; color: var(--ink); }
.fun .field input { min-height: 54px; }
.fun .field textarea { resize: vertical; min-height: 64px; line-height: 1.4; }
.fun .field input:focus, .fun .field textarea:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(31,82,58,0.1); }
.fun .next { width: 100%; margin-top: 1rem; }
.fun .next:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.fun .back { background: none; border: none; color: var(--muted); font-family: inherit; font-weight: 600; cursor: pointer; font-size: 0.9rem; }
.fun .check { display: flex; gap: 10px; font-size: 0.88rem; color: var(--muted); align-items: flex-start; margin: 0.4rem 0 0; cursor: pointer; }
.fun .check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green); flex-shrink: 0; }
.fun .check a { color: var(--green); font-weight: 700; }
.fun-note { text-align: center; font-size: 0.84rem; color: var(--muted); margin-top: 0.8rem; }
.fun .hp { position: absolute; left: -9999px; opacity: 0; width: 0; height: 0; }
.fun .error-box, .error-box { background: var(--dust-soft); border: 2px solid var(--dust-dark); color: var(--dust-dark); padding: 0.9rem; border-radius: 10px; margin-bottom: 1rem; font-weight: 600; text-align: center; }

/* Bestätigung „Angekommen" */
.fun .done h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.02em; margin: 0.3rem 0 0.4rem; }
.fun .done > p { color: var(--muted); margin-bottom: 1rem; }
.fun .done-steps { list-style: none; counter-reset: s; margin: 0 0 1rem; }
.fun .done-steps li { position: relative; padding: 0.55rem 0 0.55rem 2.4rem; border-top: 1px solid var(--line); font-size: 0.95rem; color: var(--muted); counter-increment: s; }
.fun .done-steps li:last-child { border-bottom: 1px solid var(--line); }
.fun .done-steps li::before { content: counter(s); position: absolute; left: 0; top: 0.6rem; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; }
.fun .done-steps b { color: var(--ink); }
.fun .done-tip { background: var(--green-tint); border-radius: 10px; padding: 0.8rem 1rem; font-size: 0.92rem; margin: 0 0 0.6rem; }
.fun .done-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin: 1rem 0 0.8rem; }
.fun .done-contact { font-size: 0.86rem; color: var(--muted); }
.fun .done-contact a { color: var(--green); font-weight: 700; }

@media (max-width: 760px) {
  .fun { border-radius: 14px; }
  .fun-head { padding: 0.7rem 1.1rem 0; }
  .fun-body { padding: 0.6rem 1.1rem 0; }
  .fun .grid2 { grid-template-columns: 1fr; gap: 0; }
  .fun .done-actions .btn { width: 100%; }
}
