:root {
  color-scheme: light;
  --paper: #f3f2e9;
  --paper-deep: #e6e9dc;
  --ink: #203b33;
  --ink-soft: #496459;
  --muted: #738278;
  --line: #cbd3c7;
  --lime: #d4e27a;
  --lime-dark: #9daf52;
  --clay: #c97959;
  --display: "Manrope", sans-serif;
  --body: "DM Sans", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 25.0px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--clay); outline-offset: 4px; }
::selection { color: var(--ink); background: var(--lime); }
.skip-link { position: absolute; top: -5rem; left: 1rem; z-index: 50; padding: .7rem 1rem; background: var(--lime); }
.skip-link:focus { top: 1rem; }
.hero { min-height:675px; height:min(840px,100svh); position:relative; isolation:isolate; overflow:hidden; color:#f4f4e8; background:#203d35; }
.hero-image,.hero-overlay { position:absolute; inset:0; z-index:-2; }
.hero-image { background-image:url("./assets/img/energieberatung-hero.webp"); background-size:cover; background-position:center 54%; transform:scale(1.01); }
.hero-overlay { z-index:-1; background:linear-gradient(90deg,rgba(18,42,39,.92) 0%,rgba(22,48,44,.82) 38%,rgba(23,45,42,.42) 70%,rgba(20,39,34,.2) 100%),linear-gradient(0deg,rgba(18,37,34,.65),transparent 25%); }
.hero-inner { height:100%; max-width:1600px; margin:0 auto; display:grid; grid-template-columns:minmax(0,1fr) 410px; align-items:center; gap:4.5vw; padding:28px 8.3vw 64px; }
.hero-copy { max-width:780px; animation:arrive .8s both; }
.eyebrow { margin:0 0 17px; color:#61786d; font-size:15.62px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; }
.eyebrow.light { color:#d5dfc8; }
.eyebrow-dot,.contact-dot { display:inline-block; width:7px; height:7px; margin-right:9px; border-radius:50%; background:var(--lime); vertical-align:1px; }
h1,h2,h3,p { margin-top:0; }
.hero h1 { margin:0 0 22px; font:600 clamp(44px,5.2vw,72px)/1.03 var(--display); letter-spacing:-.075em; }
h1 em,h2 em { font-style:normal; color:var(--lime); }
.hero-lede { max-width:510px; margin-bottom:28px; color:#e2e6da; font-size:21.88px; line-height:1.8; }
.button { min-height:50px; display:inline-flex; align-items:center; justify-content:space-between; gap:25px; padding:0 18px; font-size:17.19px; font-weight:700; transition:transform .2s,background .2s; }
.button:hover { transform:translateY(-2px); } .button-lime { color:var(--ink); background:var(--lime); } .button-lime:hover { background:#e1ec9a; }
.button span { font-size:25.0px; }
.hero-note { margin:16px 0 0; color:rgba(237,239,226,.7); font-size:14.06px; letter-spacing:.04em; }
.hero-panel { align-self:center; padding:23px 24px 18px; color:#f3f3e8; background:#1d2b4d; box-shadow:0 20px 55px rgba(9,30,25,.28); animation:arrive .8s .14s both; }
.panel-top { display:flex; justify-content:space-between; align-items:center; padding-bottom:17px; border-bottom:1px solid #41506d; }
.panel-index,.contact-index { color:#bdc9cf; font-size:10.0px; font-weight:700; letter-spacing:.14em; }
.pulse { width:8px; height:8px; border-radius:50%; background:var(--clay); box-shadow:0 0 0 5px #c9795920; }
.hero-panel h2 { max-width:245px; margin:20px 0 9px; font:700 25px/1.2 var(--display); letter-spacing:-.05em; }
.hero-panel p { margin-bottom:12.8px; color:#d0d8dc; font-size:12.5px; line-height:1.7; }
.form-visual { display:grid; gap:9px; margin:0 0 13px; }
.form-visual label { display:grid; gap:3.2px; color:#f1f2e9; font-size:14px; font-weight:600; letter-spacing:.04em; }
.form-visual input,.form-visual select { width:100%; min-height:28.8px; padding:5.6px 7.2px; border:0.8px solid #d3dbce; border-radius:0; color:#4f5f56; background:#fbfbf5; font:11.0px var(--body); }
.form-visual input::placeholder { color:#929c91; }
.form-visual input:disabled,.form-visual select:disabled { opacity:1; cursor:not-allowed; }
.panel-link { min-height:33.6px; display:flex; justify-content:space-between; align-items:center; padding:0 9.6px; color:var(--ink); background:var(--lime); font-size:13.75px; font-weight:700; }
.panel-link span { color:var(--ink); font-size:20.0px; }
.panel-disclaimer { display:block; margin-top:6.4px; color:#b8c3cb; font-size:11.25px; line-height:1.5; }
.panel-bottom { display:flex; align-items:center; gap:7.2px; margin-top:9.6px; color:#c4d0d2; font-size:10.0px; }
.sun-symbol { color:var(--clay); font-size:21.25px; }
.hero-bottom { position:absolute; left:0; right:0; bottom:25px; padding:0 max(8.3vw, calc((100% - 1600px)/2 + 8.3vw)); display:flex; justify-content:space-between; color:rgba(235,239,223,.75); font-size:12.5px; font-weight:700; letter-spacing:.14em; }
.trust-strip { display:grid; grid-template-columns:repeat(4,1fr); max-width:1240px; margin:0 auto; padding:29px 7vw; border-bottom:1px solid var(--line); }
.trust-item { display:flex; align-items:center; gap:12px; padding:0 18px; border-right:1px solid var(--line); color:#496257; font-size:12.5px; font-weight:700; letter-spacing:.02em; }
.trust-item:first-child { padding-left:0; } .trust-item:last-child { border:0; }
.trust-icon { color:#8b9c56; font:22.5px var(--display); }
.section-wrap { max-width:1240px; margin:0 auto; padding-right:7vw; padding-left:7vw; }
.intro { min-height:370px; display:grid; grid-template-columns:90px 1fr 1.05fr; align-items:center; gap:38px; padding-top:77px; padding-bottom:77px; }
.intro-stamp { width:74px; height:74px; display:grid; place-items:center; position:relative; border:1px solid #abb8a9; border-radius:50%; color:#687d6c; text-align:center; font:800 12.5px/1.3 var(--display); letter-spacing:.1em; transform:rotate(-13deg); }
.intro-stamp i { position:absolute; top:-15px; right:-13px; color:var(--clay); font-style:normal; font-size:28.12px; }
.intro h2,.section-heading h2,.process h2,.faq-heading h2,.audience h2 { margin:0; font:600 clamp(34px,4.2vw,56px)/1.08 var(--display); letter-spacing:-.07em; }
.intro h2 em,.section-heading h2 em,.process h2 em,.faq-heading h2 em,.audience h2 em { color:#78924c; }
.intro-copy { max-width:425px; padding-left:15px; }
.intro-copy p { margin-bottom:22px; color:#596c60; font-size:20.31px; line-height:1.85; }
.text-link { display:inline-flex; gap:14px; align-items:center; padding-bottom:5px; border-bottom:1px solid #aab6a5; font-size:15.62px; font-weight:700; }
.text-link span { color:var(--clay); font-size:25.0px; transition:transform .2s; } .text-link:hover span { transform:translateX(4px); }
.offers { padding-top:94px; padding-bottom:108px; background:#e5eadf; max-width:none; }
.section-heading { max-width:1100px; margin:0 auto 39px; display:flex; align-items:end; justify-content:space-between; gap:40px; }
.section-heading .eyebrow { margin-bottom:15px; }
.section-heading>p { max-width:290px; margin:0 1% 8px 0; color:#64746a; font-size:18.75px; line-height:1.8; }
.offer-grid { max-width:1100px; margin:0 auto; display:grid; grid-template-columns:repeat(3,1fr); gap:13px; }
.offer-card { min-height:275px; position:relative; overflow:hidden; padding:25px 25px 22px; background:#f3f4ec; }
.offer-featured { color:#f2f4e9; background:var(--ink); }
.offer-number { color:#829187; font:700 12.5px var(--body); letter-spacing:.12em; } .offer-featured .offer-number { color:#a8b9a8; }
.offer-icon { width:51px; height:51px; display:grid; place-items:center; margin:21px 0 15px; border:1px solid #c6d0bf; border-radius:50%; color:#78924c; font-size:28.12px; }
.offer-icon svg { display:block; width:24px; height:24px; }
.offer-featured .offer-icon { border-color:#60766c; color:var(--lime); }
.offer-card h3 { margin-bottom:9px; font:700 19px/1.25 var(--display); letter-spacing:-.04em; }
.offer-card p { max-width:310px; margin-bottom:19px; color:#69796d; font-size:15.62px; line-height:1.8; } .offer-featured p { color:#c0cdc0; }
.offer-card>a,.offer-wide>a { display:inline-flex; gap:13px; align-items:center; font-size:15.62px; font-weight:700; }
.offer-card>a span,.offer-wide>a span { color:var(--clay); font-size:23.44px; } .offer-featured>a span { color:var(--lime); }
.card-decoration { position:absolute; width:130px; height:130px; right:-35px; bottom:-68px; border:1px solid #688076; border-radius:50%; }
.card-decoration:before,.card-decoration:after { content:""; position:absolute; inset:12px; border:1px solid #536d63; border-radius:50%; } .card-decoration:after { inset:25px; }
.offer-wide { min-height:172px; grid-column:1/-1; display:grid; grid-template-columns:.7fr 2fr auto; gap:18px; align-items:center; padding:25px 28px; }
.offer-wide .offer-icon { display:inline-grid; margin:17px 0 0 14px; vertical-align:middle; }
.offer-wide h3 { margin-bottom:6px; } .offer-wide p { max-width:600px; margin:0; } .offer-wide>a { align-self:end; white-space:nowrap; margin-bottom:4px; }
.process { display:grid; grid-template-columns:.9fr 1.1fr; gap:10vw; padding-top:110px; padding-bottom:112px; }
.process-title>p:not(.eyebrow) { max-width:335px; margin:20px 0 24px; color:#67796d; font-size:18.75px; line-height:1.8; }
.steps { padding-top:3px; } .step { display:grid; grid-template-columns:55px 1fr; gap:17px; position:relative; min-height:132px; padding:0 0 30px; }
.step-no { padding-top:2px; color:#8b9b75; font:700 15.62px var(--body); letter-spacing:.1em; }
.step h3 { margin:0 0 7px; font:700 18px var(--display); letter-spacing:-.04em; } .step p { max-width:420px; margin:0; color:#69796e; font-size:17.19px; line-height:1.8; }
.step-line { position:absolute; top:24px; bottom:-2px; left:5px; width:1px; background:#c4cfc0; } .step-line:after { content:""; position:absolute; left:-3px; bottom:0; width:7px; height:7px; border-radius:50%; background:var(--lime-dark); }
.step:last-child { min-height:auto; padding-bottom:0; }
.gallery { padding:92px 7vw 96px; color:#f2f3e8; background:#233f36; }
.gallery-inner { max-width:1100px; margin:0 auto; }
.gallery-head { display:flex; align-items:end; justify-content:space-between; gap:30px; margin-bottom:36px; }
.gallery .eyebrow { color:#c2d2ae; } .gallery h2 { max-width:600px; margin:0; font:600 clamp(35px,4.4vw,57px)/1.08 var(--display); letter-spacing:-.07em; }
.gallery h2 em { color:var(--lime); font-style:normal; }
.gallery-head>p { max-width:265px; margin:0 0 4px; color:#c7d3c6; font-size:18.75px; line-height:1.8; }
.field-grid { display:grid; grid-template-columns:1.13fr .87fr .87fr; grid-template-rows:180px 180px; gap:12px; }
.field-card { position:relative; display:flex; flex-direction:column; justify-content:space-between; overflow:hidden; padding:21px; border:1px solid rgba(232,238,216,.2); background:#335448; }
.field-card:first-child { grid-row:span 2; background:#39594c; }
.field-card:nth-child(2) { background:#485e4e; } .field-card:nth-child(3) { background:#536650; } .field-card:nth-child(4) { background:#314b43; } .field-card:nth-child(5) { background:#40584a; }
.field-card:after { content:""; position:absolute; width:170px; height:170px; right:-46px; bottom:-83px; border:1px solid rgba(218,229,184,.25); border-radius:50%; box-shadow:0 0 0 19px rgba(218,229,184,.035),0 0 0 39px rgba(218,229,184,.035); }
.field-card:first-child:after { width:245px; height:245px; right:-70px; bottom:-100px; }
.field-tag { position:relative; z-index:1; color:#d2dfb0; font-size:10.94px; font-weight:700; letter-spacing:.15em; }
.field-card h3 { position:relative; z-index:1; max-width:220px; margin:0; font:600 22px/1.2 var(--display); letter-spacing:-.045em; }
.field-card:first-child h3 { font-size:30px; }
.field-card p { position:relative; z-index:1; max-width:250px; margin:9px 0 0; color:#cfdbd0; font-size:15.62px; line-height:1.7; }
.assurance { display:grid; grid-template-columns:1fr 1fr; gap:10vw; align-items:center; padding-top:90px; padding-bottom:90px; }
.assurance-title h2 { margin:0; font:600 clamp(35px,4vw,54px)/1.1 var(--display); letter-spacing:-.07em; }
.assurance-title h2 em { color:#78924c; font-style:normal; }
.assurance-copy { padding-left:27px; border-left:1px solid var(--line); }
.assurance-copy>p { color:#617367; font-size:20.31px; line-height:1.9; }
.assurance-list { display:grid; grid-template-columns:1fr 1fr; gap:15px 22px; margin:24px 0 0; padding:0; list-style:none; }
.assurance-list li { display:flex; gap:9px; align-items:baseline; color:#435b4f; font-size:15.62px; font-weight:600; }
.assurance-list li:before { content:"↗"; color:var(--clay); }
.faq { padding:87px 7vw 94px; background:#e6e9dc; }
.faq-inner { max-width:1100px; margin:0 auto; display:grid; grid-template-columns:.8fr 1.2fr; gap:9vw; }
.faq-heading h2 { font-size:clamp(38px,4.2vw,56px); }
.faq-heading>p:not(.eyebrow) { max-width:300px; margin-top:19px; color:#64746a; font-size:18.75px; line-height:1.8; }
.faq-list details { border-top:1px solid #c6d0c2; }
.faq-list details:last-child { border-bottom:1px solid #c6d0c2; }
.faq-list summary { display:flex; justify-content:space-between; gap:18px; padding:17px 0; cursor:pointer; list-style:none; font:700 20.31px/1.45 var(--display); }
.faq-list summary::-webkit-details-marker { display:none; }
.faq-list summary:after { content:"+"; color:#839552; font:22.5px/1 var(--body); }
.faq-list details[open] summary:after { content:"−"; }
.faq-list details p { max-width:590px; margin:0; padding:0 30px 18px 0; color:#65766a; font-size:17.19px; line-height:1.8; }
.audience { display:grid; grid-template-columns:.9fr 1.1fr; gap:8vw; align-items:center; padding-top:91px; padding-bottom:96px; }
.audience-intro>p:not(.eyebrow) { max-width:420px; margin:20px 0 0; color:#64746a; font-size:20.31px; line-height:1.85; }
.building-types { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.building-type { min-height:107px; display:flex; flex-direction:column; justify-content:space-between; padding:17px; border:1px solid var(--line); background:#f6f5ee; }
.building-type span:first-child { color:#839552; font:700 12.5px var(--body); letter-spacing:.12em; }
.building-type strong { font:700 18.75px var(--display); letter-spacing:-.02em; }
.closing { padding:72px 7vw 76px; color:#f3f3e7; background:#294b40; }
.closing-inner { max-width:1100px; margin:0 auto; display:flex; justify-content:space-between; align-items:center; gap:35px; }
.closing h2 { margin:0; font:600 clamp(38px,5vw,64px)/1.06 var(--display); letter-spacing:-.075em; }
.closing h2 em { color:var(--lime); font-style:normal; }
.closing-copy { max-width:320px; }
.closing-copy p { margin-bottom:18px; color:#d2ddd0; font-size:17.19px; line-height:1.8; }
.closing-copy .button { color:var(--ink); background:var(--lime); }
.site-footer { min-height:128px; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:26px 6.1vw; background:#e8ece2; }
.footer-brand { font-size:20.31px; } .footer-brand .brand-mark { transform:scale(.86) skewY(-24deg); } .footer-brand small { font-size:10.94px; color:#748177; }
.site-footer>p { margin:0; color:#758278; font-size:14.06px; }
.footer-links { display:flex; flex-wrap:wrap; gap:19px; color:#53675b; font-size:14.06px; }
.footer-meta { color:#8a968b; font-size:12.5px; }
@keyframes arrive { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; } }
@media (max-width:900px) {
  .hero-inner { grid-template-columns:minmax(0,1fr) 300px; gap:4vw; padding-right:6vw; padding-left:6vw; }
  .hero-bottom { padding:0 max(6vw, calc((100% - 1600px)/2 + 6vw)); }
  .hero h1 { font-size:clamp(47px,7.4vw,72px); }
  .intro { grid-template-columns:70px 1fr 1fr; gap:22px; } .intro-stamp { width:64px; height:64px; font-size:12.5px; }
  .section-wrap { padding-right:6vw; padding-left:6vw; } .offer-card { padding-right:19px; padding-left:19px; } .offer-wide { grid-template-columns:.55fr 1.7fr auto; }
  .process { gap:7vw; }
}
@media (max-width:680px) {
  body { font-size:23.44px; }
  .hero { height:auto; min-height:940px; } .hero-image { background-position:57% center; }
  .hero-overlay { background:linear-gradient(90deg,#122b29ed,#19383195),linear-gradient(0deg,#132d2ceF,transparent 75%); }
  .hero-inner { min-height:940px; grid-template-columns:1fr; align-content:center; gap:28px; padding:85px 24px 88px; }
  .hero h1 { font-size:clamp(47px,13vw,68px); } .hero-lede { max-width:430px; font-size:20.31px; }
  .hero-panel { width:min(100%,390px); padding:18px 19px 15px; } .hero-panel h2 { margin-top:17px; }
  .hero-bottom { padding:0 24px; bottom:17px; font-size:9.38px; letter-spacing:.1em; } .hero-bottom span:last-child { text-align:right; }
  .trust-strip { grid-template-columns:1fr 1fr; padding:22px 24px; gap:15px 4px; }
  .trust-item { min-height:30px; padding:0 10px; font-size:10.94px; } .trust-item:nth-child(2) { border:0; } .trust-item:nth-child(3) { padding-left:0; }
  .intro { min-height:unset; grid-template-columns:52px 1fr; gap:16px; padding:60px 24px; }
  .intro-stamp { width:50px; height:50px; font-size:10.94px; } .intro-stamp i { font-size:23.44px; } .intro .eyebrow { font-size:12.5px; }
   .intro h2,.section-heading h2,.process h2 { font-size:37px; } .intro-copy { grid-column:2; padding:0; } .intro-copy p { font-size:18.75px; }
  .offers { padding:64px 20px 69px; } .section-heading { display:block; margin-bottom:27px; } .section-heading>p { margin-top:16px; font-size:17.19px; }
  .offer-grid { grid-template-columns:1fr; gap:10px; } .offer-card { min-height:230px; padding:22px; } .offer-card h3 { font-size:20px; } .offer-card p { max-width:390px; font-size:14.06px; }
  .offer-icon { margin-top:16px; } .offer-wide { min-height:unset; grid-column:auto; grid-template-columns:1fr; gap:13px; align-items:start; } .offer-wide .offer-icon { margin-top:0; } .offer-wide>a { align-self:auto; }
  .process { grid-template-columns:1fr; gap:38px; padding:68px 24px 72px; } .process-title>p:not(.eyebrow) { font-size:17.19px; } .step { min-height:138px; } .step p { font-size:15.62px; } .step h3 { font-size:17px; }
  .gallery { padding:67px 22px 72px; } .gallery-head { display:block; margin-bottom:25px; } .gallery h2 { font-size:39px; } .gallery-head>p { margin-top:15px; font-size:17.19px; }
  .field-grid { grid-template-columns:1fr 1fr; grid-template-rows:190px 155px 155px; gap:9px; } .field-card { padding:16px; } .field-card:first-child { grid-row:span 1; grid-column:span 2; }
  .field-card:first-child h3 { font-size:26px; } .field-card h3 { font-size:18px; } .field-card p { font-size:14.06px; }
  .assurance { grid-template-columns:1fr; gap:23px; padding-top:65px; padding-bottom:67px; } .assurance-title h2 { font-size:40px; }
  .assurance-copy { padding:20px 0 0; border-top:1px solid var(--line); border-left:0; } .assurance-copy>p { font-size:18.75px; } .assurance-list { gap:13px 14px; } .assurance-list li { font-size:15.62px; }
  .faq { padding:65px 23px 70px; } .faq-inner { grid-template-columns:1fr; gap:25px; } .faq-heading h2 { font-size:40px; } .faq-heading>p:not(.eyebrow) { font-size:17.19px; }
  .faq-list summary { padding:15px 0; font-size:18.75px; } .faq-list details p { font-size:15.62px; }
  .audience { grid-template-columns:1fr; gap:25px; padding-top:66px; padding-bottom:70px; } .audience h2 { font-size:40px; } .audience-intro>p:not(.eyebrow) { font-size:18.75px; }
  .building-types { gap:8px; } .building-type { min-height:91px; padding:13px; } .building-type strong { font-size:17.5px; }
  .closing { padding:60px 24px 64px; } .closing-inner { display:block; } .closing h2 { font-size:clamp(40px,11.5vw,60px); } .closing-copy { margin-top:20px; } .closing-copy p { font-size:15.62px; }
  .site-footer { align-items:flex-start; flex-wrap:wrap; padding:24px; } .site-footer>p { width:calc(100% - 145px); text-align:right; padding-top:7px; font-size:12.5px; }
  .footer-links { order:3; width:100%; gap:16px; } .footer-meta { order:4; width:100%; }
}
/* ============ Kontaktformular (echte 1Grain.Connect-Anbindung) ============ */
.contact-form { display:grid; gap:14px; margin-top:2px; }
.cf-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.cf-field { margin:0; display:grid; gap:4px; }
.cf-field label { color:#eef2e6; font-size:14.06px; font-weight:700; letter-spacing:.04em; }
.cf-field input,.cf-field textarea { width:100%; min-height:50px; padding:10px 12px; border:1px solid var(--line); border-radius:0; color:#4f5f56; background:#fbfbf5; font:13.75px var(--body); }
.cf-field textarea { min-height:120px; resize:vertical; }
.cf-field input::placeholder,.cf-field textarea::placeholder { color:#929c91; }
.cf-field input:focus-visible,.cf-field textarea:focus-visible { outline:3px solid var(--clay); outline-offset:2px; }
.cf-consent { display:flex; gap:10px; align-items:baseline; color:#c9d5c7; font-size:15.62px; line-height:1.6; }
.cf-consent input { width:15px; height:15px; flex:none; margin-top:2px; accent-color:var(--lime); }
.cf-submit { justify-content:space-between; width:100%; color:var(--ink); background:var(--lime); }
.cf-submit:hover { background:#e1ec9a; }
.cf-submit:disabled { opacity:.7; cursor:not-allowed; }
.cf-status { min-height:20px; margin:0; color:#c9d5c7; font-size:15.62px; line-height:1.6; }
.cf-status.is-ok { color:#d4e27a; }
.cf-status.is-error { color:#f2c2b0; }
.closing-copy { max-width:460px; }
.booking-block { max-width:1100px; margin:56px auto 0; }
.booking-head h3 { margin:0; font:600 clamp(26px,3.4vw,40px)/1.1 var(--display); letter-spacing:-.075em; }
.booking-head h3 em { color:var(--lime); font-style:normal; }
.booking-card { margin-top:24px; padding:22px; border:1px solid var(--line); background:#f6f5ee; color:var(--ink); }
.booking-note { margin:0 0 16px; color:#64756a; font-size:17.19px; line-height:1.6; }
.booking-fallback { display:inline-flex; align-items:center; gap:10px; margin-top:16px; min-height:42px; padding:0 12px; color:var(--ink); background:var(--lime); font-size:17.19px; font-weight:700; }
.booking-fallback span { font-size:25.0px; }
.booking-fallback:hover { background:#e1ec9a; }
@media (max-width:680px) {
  .cf-row { grid-template-columns:1fr; }
}

/* Chat-Widget (Lead-Capture) — Standard-Look nach freigegebenem Entwurf */
.chat-widget { position:fixed; right:20px; bottom:20px; z-index:60; }

/* Runde Bubble mit Icon, Puls-Ring, Benachrichtigungs-Punkt */
.cw-bubble { position:relative; display:grid; place-items:center; width:60px; height:60px; padding:0; border:none; border-radius:50%; cursor:pointer; color:var(--lime); background:var(--ink); box-shadow:0 8px 24px rgba(16,32,25,.32); transition:transform .18s ease, box-shadow .18s ease; }
.cw-bubble:hover { transform:translateY(-2px); box-shadow:0 12px 28px rgba(16,32,25,.4); }
.cw-bubble svg { width:27px; height:27px; display:block; }
.cw-dot { position:absolute; top:2px; right:2px; width:14px; height:14px; border-radius:50%; background:var(--clay); border:2.5px solid var(--paper); }
.cw-halo { position:absolute; inset:0; border-radius:50%; border:2px solid var(--lime); opacity:.5; animation:cw-halo 2.4s ease-out infinite; pointer-events:none; }
@keyframes cw-halo { 0% { transform:scale(1); opacity:.5; } 70% { transform:scale(1.5); opacity:0; } 100% { opacity:0; } }
.cw-bubble[aria-expanded="true"] .cw-dot,
.cw-bubble[aria-expanded="true"] .cw-halo { display:none; }

/* Greeting-Teaser */
.cw-teaser { position:absolute; right:0; bottom:74px; width:250px; padding:13px 34px 13px 14px; border:1px solid var(--line); border-radius:14px 14px 2px 14px; background:#fff; box-shadow:0 10px 30px rgba(16,32,25,.22); animation:cw-pop .45s cubic-bezier(.2,.9,.3,1.4) both; }
@keyframes cw-pop { from { opacity:0; transform:translateY(8px) scale(.96); } to { opacity:1; transform:none; } }
.cw-teaser-t { margin:0 0 3px; font:700 16.88px var(--body); color:var(--ink); }
.cw-teaser-s { margin:0; font:400 15.62px var(--body); line-height:1.45; color:var(--muted); }
.cw-teaser-x { position:absolute; top:7px; right:9px; padding:3px; border:0; background:transparent; color:var(--muted); font-size:18.75px; line-height:1; cursor:pointer; }

/* Panel mit Kopfzeile */
.cw-panel { position:absolute; right:0; bottom:74px; width:352px; max-height:430px; display:flex; flex-direction:column; overflow:hidden; border:1px solid var(--line); border-radius:14px; background:#fbfbf5; color:var(--ink); box-shadow:0 20px 48px rgba(16,32,25,.3); }
.cw-panel[hidden] { display:none; }
.cw-head { flex:none; display:flex; gap:11px; align-items:center; padding:15px 16px; background:var(--ink); color:var(--paper); }
.cw-ava { flex:none; display:grid; place-items:center; width:38px; height:38px; border-radius:50%; background:var(--lime); color:var(--ink); font:800 18.75px var(--display); }
.cw-head-text { min-width:0; }
.cw-title { margin:0; font:700 17.5px var(--body); }
.cw-sub { margin:2px 0 0; font-size:14.38px; line-height:1.4; color:#bcd0c6; }
.cw-sub .cw-on { display:inline-block; width:7px; height:7px; margin-right:5px; border-radius:50%; background:var(--lime); vertical-align:0; }
.cw-close { flex:none; margin-left:auto; padding:0; border:0; background:transparent; color:#bcd0c6; font-size:22.5px; line-height:1; cursor:pointer; }
.cw-close:hover { color:var(--lime); }

.cw-scroll { display:grid; gap:11px; align-content:start; overflow-y:auto; padding:16px; background:#f6f5ee; }
.cw-msg { max-width:88%; margin:0; padding:11px 13px; border:1px solid var(--line); border-radius:12px 12px 12px 3px; background:#fff; font:400 16.25px/1.5 var(--body); color:var(--ink); }
.cw-msg b { color:var(--ink); }
.cw-foot { margin:0; padding:0 4px; font:400 13.12px var(--body); color:var(--muted); text-align:center; }

.cw-form { display:grid; gap:11px; margin:0; }
.cw-row { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.cw-field { margin:0; display:grid; gap:4px; }
.cw-field label { color:var(--ink-soft); font-size:14.38px; font-weight:600; }
.cw-field input,.cw-field textarea { width:100%; min-height:36px; padding:9px 10px; border:1px solid var(--line); border-radius:3px; color:var(--ink); background:#fff; font:400 16.25px var(--body); }
.cw-field textarea { min-height:64px; resize:vertical; }
.cw-field input::placeholder,.cw-field textarea::placeholder { color:#929c91; }
.cw-field input:focus-visible,.cw-field textarea:focus-visible { outline:3px solid var(--clay); outline-offset:2px; }
.cw-consent { display:flex; gap:8px; align-items:flex-start; color:var(--ink-soft); font-size:14.38px; line-height:1.45; }
.cw-consent input { width:14px; height:14px; flex:none; margin-top:2px; accent-color:var(--lime-dark); }
.cw-submit { display:flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:12px; border:none; border-radius:3px; cursor:pointer; color:var(--ink); background:var(--lime); font:700 16.88px var(--body); transition:background .2s; }
.cw-submit:hover { background:var(--lime-dark); }
.cw-submit[disabled] { opacity:.6; cursor:default; }
.cw-submit span { font-size:20.0px; }
.cw-status { min-height:18px; margin:0; color:var(--ink-soft); font-size:14.38px; line-height:1.55; }
.cw-status.is-ok { color:var(--lime-dark); }
.cw-status.is-error { color:#b3502f; }
.cw-success { display:grid; justify-items:center; text-align:center; gap:4px; padding:40px 8px; margin:auto 0; }
.cw-form[hidden], .cw-msg[hidden], .cw-success[hidden] { display:none !important; }
.cw-success:focus { outline:none; }
.cw-success-icon { display:grid; place-items:center; width:56px; height:56px; margin-bottom:10px; border-radius:50%; background:var(--lime); color:var(--ink); }
.cw-success-icon svg { width:26px; height:26px; display:block; }
.cw-success-t { margin:0; font:700 21.25px var(--display); color:var(--ink); }
.cw-success-s { margin:0; color:var(--ink-soft); font-size:16.25px; line-height:1.5; }
.cw-success-m { margin:0 0 4px; color:var(--muted); font-size:15.0px; }
.cw-success-again { margin-top:12px; padding:9px 14px; border:1px solid var(--ink); border-radius:3px; background:transparent; color:var(--ink); font:600 15.62px var(--body); cursor:pointer; transition:background .2s,color .2s; }
.cw-success-again:hover { background:var(--ink); color:var(--paper); }

@media (max-width:680px) {
  .chat-widget { right:14px; bottom:14px; }
  .cw-panel { position:fixed; right:14px; bottom:76px; left:14px; width:auto; max-height:430px; }
  .cw-row { grid-template-columns:1fr; }
}
/* ===== Task #47: Hero-Aktionen + Panel bedingter CTA ===== */
.hero-actions { display:flex; flex-wrap:wrap; align-items:center; gap:14px; }
.hero-actions .button { white-space:nowrap; }
.button-ghost { color:#e2e6da; background:transparent; border:1px solid rgba(235,239,223,.55); }
.button-ghost:hover { background:rgba(235,239,223,.08); }
.cal-icon { margin-right:8px; vertical-align:-2px; }
.panel-hint { margin:4px 0 0; color:#b8c3cb; font-size:11.25px; line-height:1.5; }
.panel-hint[hidden] { display:none; }
.panel-escape { display:block; margin-top:8px; color:#bdc9cf; font-size:12px; font-weight:400; letter-spacing:.04em; }
.panel-escape strong { color:#e8ecdf; font-weight:700; }
.panel-escape:hover strong { text-decoration:underline; }
.optional-hint { color:rgba(241,242,233,.75); font-weight:400; font-size:11.5px; }
.form-visual label[for="vorhaben"] select:not([disabled]):hover, .form-visual label[for="frage"] input:hover { border-color:#b8c3cb; }
.panel-link[hidden] { display:none; }


/* ===== Task #47: Panel-Select Lesbarkeit (Zielgruppe 45+) ===== */
#vorhaben { font:500 16px/1.4 var(--body); color:#203b33; background:#fbfbf5; min-height:48px;
            padding:11px 44px 11px 12px; appearance:none;
            background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23203b33' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
            background-repeat:no-repeat; background-position:right 12px center; }
#vorhaben:hover { border-color:#203b33; }
#vorhaben:focus-visible { outline:2px solid #203b33; outline-offset:2px; }
#vorhaben option { font-size:16px; font-family:var(--body); color:#203b33; background:#fbfbf5; padding:8px 12px; }
#vorhaben option:checked, #vorhaben option:hover { background:var(--lime); color:#203b33; }

/* ===== Textarea 'Was beschäftigt Sie?' (Hero-Panel) ===== */
.form-visual textarea { width:100%; min-height:96px; padding:12px 14px; border:1px solid #d3dbce;
  border-radius:0; color:#4f5f56; background:#fbfbf5; font:16px/1.4 var(--body);
  resize:none; }
.form-visual textarea::placeholder { color:#929c91; }
.form-visual textarea:focus { outline:2px solid var(--clay); outline-offset:0; }

/* ===== KI-Chat-Widget Stufe 2 (nur data-variant="ai") =====
   Werte 1:1 aus ~/.hermes/design-refs/ki-chat-widget-stufe2-rules.md
   (Mock: ki-chat-widget-stufe2-mock.html, freigegeben 12.11.2026). */

/* Panel-Hoehe + Scroll-Aufteilung (Regel-Block 1.5 / Ziffer 6) */
.chat-widget[data-variant="ai"] .cw-panel { max-height: min(560px, 100dvh - 28px); }
.chat-widget[data-variant="ai"] .cw-scroll { flex: 1; min-height: 0; }

/* Auswahl-Bubbles (1.1 / 1.2) */
.cw-opts { display: grid; gap: 8px; }
.cw-opts[hidden] { display: none !important; }
.cw-opt { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--ink);
  font: 600 16.25px/1.35 var(--body); text-align: left; cursor: pointer;
  transition: background .2s, border-color .2s; }
.cw-opt:hover { background: var(--lime); border-color: var(--lime); }
.cw-opt:active { background: var(--lime-dark); border-color: var(--lime-dark); }
.cw-opt:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; }
.cw-opt span { flex: none; color: var(--clay); font-size: 18.75px; line-height: 1; }

/* Sprechblasen (1.3) - .cw-turn--bot erbt die .cw-msg-Basis unveraendert */
.cw-turn--user { justify-self: end; background: var(--ink); border-color: var(--ink); color: var(--paper);
  border-radius: 12px 12px 3px 12px; }
.cw-turn--user b { color: var(--paper); }
.cw-turn--error a { color: var(--ink); font-weight: 600; text-decoration: underline; }

/* Tipp-Indikator (1.4) */
.cw-typing { justify-self: start; display: inline-flex; align-items: center; gap: 5px; padding: 14px 16px; }
.cw-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime-dark);
  animation: cw-typing 1.2s infinite ease-in-out; }
.cw-typing i:nth-child(2) { animation-delay: .15s; }
.cw-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes cw-typing { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .cw-typing i { animation: none; opacity: .6; } }

/* Eingabezeile (1.5) */
.cw-inputbar { flex: none; display: grid; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: #fbfbf5; }
.cw-inputbar[hidden] { display: none !important; }
.cw-inputrow { display: flex; gap: 8px; align-items: center; }
.cw-chat-input { flex: 1; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 3px; background: #fff; color: var(--ink); font: 400 16.25px var(--body); }
.cw-chat-input::placeholder { color: #929c91; }
.cw-chat-input:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; }
.cw-send { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: none; border-radius: 3px;
  background: var(--lime); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; transition: background .2s; }
.cw-send:hover { background: var(--lime-dark); }
.cw-send[disabled] { opacity: .6; cursor: default; }
.cw-send:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; }

/* Kontaktformular: Feld "Thema" als Checkbox-Chips (1.6) */
.cf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cf-field label.cf-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 3px; background: #fbfbf5; color: #4f5f56;
  font: 600 15.62px/1.3 var(--body); letter-spacing: 0; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s; }
.cf-field label.cf-chip:hover { border-color: var(--ink-soft); }
.cf-field label.cf-chip input { width: 15px; height: 15px; min-height: 0; flex: none; margin: 0; padding: 0;
  border: 0; border-radius: 0; accent-color: var(--lime); }
.cf-field label.cf-chip:has(input:checked) { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.cf-field label.cf-chip:focus-within { outline: 3px solid var(--clay); outline-offset: 2px; }
.cf-chips-hint { margin: 0; color: #c9d5c7; font: 400 12.5px/1.5 var(--body); }

/* Formular-Fusszeile nur sichtbar, wenn das Formular sichtbar ist */
.cw-foot[hidden] { display: none !important; }

/* Termin-CTA aus der n8n-Antwort (gleiche Schaltflaeche wie der Formular-Submit) */
.cw-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  padding: 12px; border: none; border-radius: 3px; color: var(--ink); background: var(--lime);
  font: 700 16.88px var(--body); text-decoration: none; transition: background .2s; }
.cw-cta:hover { background: var(--lime-dark); }
.cw-cta:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; }
.cw-cta span { font-size: 20px; }
.chat-widget[data-variant="ai"] .cw-scroll .cw-cta { justify-self: start; max-width: 100%; }
