/* Online-Berater Einbruchschutz – nutzt Farben/Schriften aus stil.css */
.berater-abschnitt { background: linear-gradient(180deg, var(--hell) 0%, #fff 100%); }
.ber-start { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; }
.ber-start h2 { margin-top: 0; }
.ber-start-schritte { list-style: none; padding: 0; margin: 14px 0 20px; display: grid; gap: 8px; }
.ber-start-schritte li { display: flex; gap: 10px; align-items: center; }
.ber-start-schritte b { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--akzent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-family: 'Montserrat', sans-serif; font-size: .85rem; }
.ber-start-knopf { font-size: 1.05rem; padding: 14px 26px; border: 0; cursor: pointer; }
.ber-start-knopf:disabled { opacity: .6; cursor: wait; }
.ber-start-vorschau { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ber-start-vorschau picture, .ber-start-vorschau img { display: block; width: 100%; height: auto; border-radius: 12px; }
.ber-start-vorschau .ber-start-blase { position: absolute; left: -12px; bottom: 14px; background: #fff; border-radius: 14px 14px 14px 3px;
  padding: 10px 14px; box-shadow: 0 6px 22px rgba(0,0,0,.14); font-size: .92rem; max-width: 78%; }
.ber-start-klein { font-size: .85rem; color: var(--text-hell); margin-top: 10px; }

#berater-app { display: none; }
.ber-offen #berater-app { display: block; }
.ber-offen .ber-start { display: none; }

.ber-app { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(250px, 1fr); gap: 18px; height: min(720px, calc(100vh - 130px)); min-height: 480px; position: relative; }
.ber-chat, .ber-merk { background: #fff; border: 1px solid var(--rand); border-radius: 16px; box-shadow: 0 10px 34px rgba(38,43,51,.08);
  display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.ber-kopf { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--rand); background: var(--hero-hintergrund); color: #fff; }
.ber-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--akzent); display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif; font-weight: 700; position: relative; }
.ber-avatar::after { content: ""; position: absolute; right: 0; bottom: 1px; width: 10px; height: 10px; border-radius: 50%; background: #3ecf6e; border: 2px solid var(--hero-hintergrund); }
.ber-kopf-text { flex: 1; line-height: 1.25; }
.ber-kopf-text strong { font-family: 'Montserrat', sans-serif; display: block; }
.ber-kopf-text small { opacity: .75; font-size: .8rem; }
.ber-neu, .ber-zu { background: none; border: 0; color: #fff; font-size: 1.35rem; cursor: pointer; width: 36px; height: 36px; border-radius: 8px; opacity: .8; }
.ber-neu:hover, .ber-zu:hover { background: rgba(255,255,255,.12); opacity: 1; }

.ber-verlauf { flex: 1; overflow-y: auto; padding: 16px 14px 6px; scroll-behavior: smooth; overscroll-behavior: contain; }
.ber-msg { max-width: 86%; margin: 0 0 10px; }
.ber-msg p { margin: 0; }
.ber-ki { background: var(--hell); border: 1px solid var(--rand); border-radius: 16px 16px 16px 4px; padding: 10px 14px; }
.ber-kunde { margin-left: auto; width: fit-content; background: var(--akzent); color: #fff; border-radius: 16px 16px 4px 16px; padding: 8px 14px; }
.ber-foto-msg { padding: 5px; display: flex; flex-direction: column; gap: 3px; align-items: flex-end; }
.ber-foto-msg img { max-width: 170px; border-radius: 12px; display: block; }
.ber-foto-msg small { padding: 0 6px 2px; opacity: .9; }
.ber-foto-platz { font-size: 2rem; padding: 10px 20px; }
.ber-tippt { display: inline-flex; gap: 5px; padding: 14px 16px; }
.ber-tippt span { width: 7px; height: 7px; border-radius: 50%; background: var(--akzent-neutral); animation: ber-punkt 1.1s infinite ease-in-out; }
.ber-tippt span:nth-child(2) { animation-delay: .15s; } .ber-tippt span:nth-child(3) { animation-delay: .3s; }
@keyframes ber-punkt { 0%, 80%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-5px); opacity: 1; } }
.ber-neu-ein { animation: ber-ein .35s ease-out both; }
@keyframes ber-ein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.ber-galerie { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 0 6px; scroll-snap-type: x mandatory; }
.ber-karte { flex: 0 0 min(205px, 62%); scroll-snap-align: start; background: #fff; border: 1px solid var(--rand); border-radius: 14px; overflow: hidden;
  cursor: pointer; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.ber-karte:hover, .ber-karte:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.1); outline: none; }
.ber-karte-bild { position: relative; aspect-ratio: 4 / 3; background: var(--hell); }
.ber-karte-bild picture, .ber-karte-bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ber-karte strong { font-family: 'Montserrat', sans-serif; font-size: .95rem; padding: 8px 11px 0; color: var(--dunkel); }
.ber-karte small { padding: 2px 11px 0; line-height: 1.4; color: var(--text-hell); font-size: .82rem; flex: 1; }
.ber-mehr { padding: 6px 11px 10px; font-size: .82rem; color: var(--akzent); font-weight: 600; }
.ber-herz { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95);
  box-shadow: 0 2px 8px rgba(0,0,0,.2); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ber-herz span::before { content: "♡"; font-size: 1.35rem; color: var(--akzent); line-height: 1; }
.ber-herz[aria-pressed="true"] span::before { content: "♥"; }
.ber-herz.ber-puls { animation: ber-puls .45s ease-out; }
@keyframes ber-puls { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

.ber-bilder { display: flex; gap: 8px; margin: 0 0 10px; max-width: 92%; }
.ber-bild { margin: 0; flex: 1; max-width: 220px; cursor: zoom-in; }
.ber-bild picture, .ber-bild img { display: block; width: 100%; height: auto; border-radius: 12px; }
.ber-bild figcaption { font-size: .78rem; color: var(--text-hell); line-height: 1.35; margin-top: 3px; }

.ber-knoepfe { display: flex; flex-wrap: wrap; gap: 7px; padding: 6px 14px 8px; }
.ber-knoepfe:empty { display: none; }
.ber-knopf { font: 600 .9rem 'Open Sans', sans-serif; background: #fff; color: var(--akzent); border: 1.5px solid var(--akzent); border-radius: 22px;
  padding: 7px 14px; cursor: pointer; transition: background .15s, color .15s; line-height: 1.3; }
.ber-knopf:hover { background: var(--akzent); color: #fff; }
.ber-knopf-haupt { background: var(--akzent); color: #fff; }
.ber-knopf-haupt:hover { background: var(--akzent-dunkel); border-color: var(--akzent-dunkel); }
.ber-knopf:disabled { opacity: .6; cursor: wait; }
.ber-breit { width: 100%; padding: 11px; font-size: 1rem; border-radius: 10px; }
.ber-leiste { display: flex; gap: 6px; align-items: center; padding: 8px 10px; border-top: 1px solid var(--rand); }
.ber-eingabe { flex: 1; min-width: 0; border: 1px solid var(--rand); border-radius: 22px; padding: 9px 14px; font: inherit; font-size: 16px; background: var(--hell); }
.ber-eingabe:focus { outline: 2px solid var(--akzent-neutral); outline-offset: 0; background: #fff; }
.ber-kamera, .ber-senden { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; font-size: 1.1rem; }
.ber-kamera { background: var(--hell); }
.ber-senden { background: var(--akzent); color: #fff; }
.ber-hinweis { font-size: .72rem; color: var(--text-hell); margin: 0; padding: 0 14px 8px; }
.ber-hinweis a { color: inherit; }
.ber-kontakt .ber-leiste .ber-eingabe, .ber-fertig .ber-leiste { display: none; }
.ber-kontakt .ber-leiste { justify-content: flex-start; }

.ber-merk-kopf { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 8px; }
.ber-merk h3 { margin: 0; font-size: 1.05rem; }
.ber-merk h3 span { color: var(--akzent); }
.ber-merk-zu { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; }
.ber-merk-liste { flex: 1; overflow-y: auto; padding: 0 16px; }
.ber-merk-leer { color: var(--text-hell); font-size: .9rem; border: 2px dashed var(--rand); border-radius: 12px; padding: 18px; text-align: center; }
.ber-merk-eintrag { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rand); }
.ber-merk-bild { flex: 0 0 64px; height: 50px; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--hell); }
.ber-merk-bild picture, .ber-merk-bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ber-merk-text { flex: 1; line-height: 1.3; display: flex; flex-direction: column; }
.ber-merk-text strong { font-size: .92rem; color: var(--dunkel); }
.ber-preis { color: var(--akzent); font-weight: 700; font-size: .88rem; }
.ber-merk-text small { color: var(--text-hell); font-size: .75rem; }
.ber-merk-weg { background: none; border: 0; color: var(--text-hell); font-size: 1.2rem; cursor: pointer; width: 30px; height: 30px; }
.ber-merk-fuss { font-size: .75rem; color: var(--text-hell); margin: 10px 0; }
.ber-merk-aktionen { padding: 10px 16px 16px; display: grid; gap: 8px; }
.ber-merk-aktionen .ber-knopf { border-radius: 10px; padding: 10px; }
.ber-merk-leiste { display: none; }
.ber-vertrauen { list-style: none; margin: 0; padding: 12px 16px 14px; border-top: 1px solid var(--rand); background: var(--hell); font-size: .8rem; color: var(--text-hell); display: grid; gap: 3px; }
.ber-vertrauen li::before { content: "✓ "; color: var(--akzent-neutral); font-weight: 700; }
.ber-vertrauen b { color: #e5a100; }
@media (max-height: 700px) { .ber-vertrauen { display: none; } }

.ber-miniform, .ber-pruef { background: #fff; border: 1px solid var(--rand); border-radius: 14px; padding: 12px; margin: 0 0 10px auto; max-width: 92%;
  display: flex; flex-wrap: wrap; gap: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.05); }
.ber-feld { flex: 1 1 100%; display: flex; flex-direction: column; gap: 3px; font-size: .82rem; color: var(--text-hell); }
.ber-feld.ber-halb { flex: 1 1 40%; }
.ber-feld input { border: 1px solid var(--rand); border-radius: 9px; padding: 9px 11px; font: inherit; font-size: 16px; color: var(--text); }
.ber-feld input:focus { outline: 2px solid var(--akzent-neutral); outline-offset: 0; }
.ber-feld-fehler { color: var(--akzent); font-size: .78rem; min-height: 0; }
.ber-feld-fehler:empty { display: none; }
.ber-miniform > .ber-knopf { margin-left: auto; border-radius: 10px; padding: 9px 20px; }
.ber-form-fehler { color: var(--akzent); font-size: .85rem; margin: 0; flex-basis: 100%; }
.ber-pruef { flex-direction: column; flex-wrap: nowrap; }
.ber-pruef dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: .9rem; }
.ber-pruef dt { color: var(--text-hell); }
.ber-pruef dd { margin: 0; font-weight: 600; word-break: break-word; }
.ber-check { display: flex; gap: 8px; align-items: flex-start; font-size: .82rem; line-height: 1.45; }
.ber-check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.ber-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; }
.ber-link-knopf { background: none; border: 0; color: var(--text-hell); text-decoration: underline; cursor: pointer; font-size: .85rem; align-self: center; }
.ber-danke { text-align: center; background: var(--hell); border: 1px solid var(--rand); border-radius: 16px; padding: 20px; margin: 0 0 10px; }
.ber-danke h3 { margin: 6px 0; }
.ber-haken { width: 52px; height: 52px; margin: 0 auto; border-radius: 50%; background: #2e9e5b; color: #fff; font-size: 1.7rem; display: flex; align-items: center; justify-content: center;
  animation: ber-puls .6s ease-out; }

.ber-overlay { position: fixed; inset: 0; background: rgba(20,24,30,.62); z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px;
  animation: ber-ein .2s ease-out; }
.ber-overlay-box { background: #fff; border-radius: 16px; max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 18px; position: relative; }
.ber-overlay-zu { position: absolute; top: 8px; right: 8px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95);
  box-shadow: 0 1px 6px rgba(0,0,0,.2); font-size: 1.4rem; cursor: pointer; z-index: 2; }
.ber-overlay-box h3 { margin: 12px 0 6px; }
.ber-detail-bilder picture, .ber-detail-bilder img, .ber-bild-gross picture, .ber-bild-gross img { display: block; width: 100%; height: auto; border-radius: 12px; }
.ber-fakten { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: .92rem; margin: 10px 0; }
.ber-fakten dt { color: var(--text-hell); }
.ber-fakten dd { margin: 0; }
.ber-detail-aktionen { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.ber-link { font-size: .88rem; }
.ber-vergleich-box .ber-overlay-box { max-width: 820px; }
.ber-vergleich-rahmen { overflow-x: auto; }
.ber-vergleich { width: 100%; border-collapse: collapse; font-size: .88rem; }
.ber-vergleich th, .ber-vergleich td { border-bottom: 1px solid var(--rand); padding: 8px; text-align: left; vertical-align: top; min-width: 130px; }
.ber-vergleich tr:first-child th { font-family: 'Montserrat', sans-serif; color: var(--dunkel); }
.ber-vergleich th:first-child { color: var(--text-hell); font-weight: 600; min-width: 90px; }
.ber-vergleich picture, .ber-vergleich img { display: block; width: 100%; max-width: 180px; border-radius: 8px; }
.ber-toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--hero-hintergrund); color: #fff; padding: 10px 18px;
  border-radius: 24px; font-size: .9rem; z-index: 10001; box-shadow: 0 6px 20px rgba(0,0,0,.25); animation: ber-ein .25s ease-out; transition: opacity .5s; max-width: 90vw; }
.ber-toast-weg { opacity: 0; }

@media (max-width: 900px) {
  .ber-start { grid-template-columns: 1fr; }
  .ber-start-vorschau { order: -1; }
}
@media (max-width: 760px) {
  html.ber-ist-offen, html.ber-ist-offen body { overflow: hidden; }
  .ber-offen #berater-app { position: fixed; inset: 0; z-index: 9999; background: #fff; }
  .ber-app { display: block; height: 100%; height: 100dvh; }
  .ber-chat { height: 100%; border: 0; border-radius: 0; box-shadow: none; padding-bottom: 0; }
  .ber-hat-merk .ber-chat { padding-bottom: 50px; }
  .ber-merk-leiste { display: none; position: absolute; left: 0; right: 0; bottom: 0; height: 50px; z-index: 3; border: 0; background: var(--hero-hintergrund); color: #fff;
    font: 600 .95rem 'Montserrat', sans-serif; align-items: center; justify-content: space-between; padding: 0 18px; cursor: pointer;
    padding-bottom: env(safe-area-inset-bottom); }
  .ber-hat-merk .ber-merk-leiste { display: flex; }
  .ber-merk-leiste span[aria-hidden] { color: #ff6b75; }
  .ber-merk-leiste-pfeil { opacity: .8; font-size: .85rem; }
  .ber-wackeln { animation: ber-wackeln .5s ease-out; }
  @keyframes ber-wackeln { 0%, 100% { transform: none; } 30% { transform: translateY(-6px); } 60% { transform: translateY(2px); } }
  .ber-merk { position: absolute; left: 0; right: 0; bottom: 0; max-height: 82%; z-index: 4; border-radius: 18px 18px 0 0; transform: translateY(105%);
    transition: transform .3s ease; box-shadow: 0 -10px 40px rgba(0,0,0,.25); }
  .ber-merk-offen .ber-merk { transform: none; }
  .ber-merk-zu { display: block; }
  .ber-msg { max-width: 90%; }
  .ber-karte { flex-basis: 64%; }
  .ber-toast { bottom: 70px; }
  .whatsapp { z-index: 50; }
  html.ber-ist-offen .whatsapp, html.ber-ist-offen #cookie-banner:not([hidden]) ~ .whatsapp { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ber-neu-ein, .ber-herz.ber-puls, .ber-wackeln, .ber-haken, .ber-overlay, .ber-toast, .ber-tippt span { animation: none !important; }
  .ber-merk { transition: none; }
}
.ber-app [hidden], .ber-overlay [hidden] { display: none !important; }
