/* Ergänzungen zur gespiegelten Baukasten-Optik (handyengel.de) */

/* Desktop- und Handy-Variante (Original: eigenes HTML je Gerät, Umschaltung bei 768 px) */
@media (max-width: 768px) {
  .v-desktop { display: none !important; }
  .con-kit-component-grid-list--columns-2 .con-kit-component-grid-list-item,
  .con-kit-component-grid-list--columns-3 .con-kit-component-grid-list-item,
  .con-kit-component-grid-list--columns-4 .con-kit-component-grid-list-item { width: 100%; }
}
@media (min-width: 769px) {
  .v-mobile { display: none !important; }
}

/* Sprungziele unter der festen Kopfzeile */
section[id] { scroll-margin-top: 90px; }

/* Statische Karte statt nachgeladener Kartenkacheln */
.con-kit-component-map { position: relative; overflow: hidden; border-radius: var(--one-kit-radius, 8px); background: #eef0f3; }
.con-kit-component-map .static-map { position: absolute; inset: 0; display: block; }
.con-kit-component-map .static-map img { width: 100%; height: 100%; object-fit: cover; display: block; }
.con-kit-component-map .static-map__attr {
  position: absolute; right: 0; bottom: 0; z-index: 1; padding: 2px 6px; font-size: 11px; line-height: 1.4;
  background: rgba(255, 255, 255, .8); color: #333; border-top-left-radius: 4px;
}
.con-kit-component-map .static-map__attr a { color: inherit; text-decoration: underline; }

/* Links, die vorher Buttons waren, sehen genauso aus */
a.con-kit-link-button, a.con-kit-atom-menu-v2-item-inside { text-decoration: none; }

.he-mobile-menu, .he-modal { font-family: var(--font-kit-text-font, 'Inter', sans-serif); }

/* Handy-Menü (Burger) */
.he-mobile-menu {
  position: fixed; inset: 0; z-index: 100000; background: #fff; color: rgb(46, 46, 51);
  display: flex; flex-direction: column; padding: 24px 24px 40px; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
}
.he-mobile-menu.is-open { opacity: 1; visibility: visible; }
.he-mobile-menu__top { display: flex; align-items: center; justify-content: space-between; min-height: 70px; padding: 0 20px 0 44px; }
.he-mobile-menu__top .con-kit-component-logo { --component-logo__size: 116px !important; }
.he-mobile-menu__close {
  appearance: none; border: 0; background: none; cursor: pointer; width: 40px; height: 40px;
  display: grid; place-items: center; color: inherit; font-size: 0;
}
.he-mobile-menu__close svg { width: 16px; height: 16px; }
.he-mobile-menu__nav { list-style: none; margin: 32px 0 0; padding: 0; }
.he-mobile-menu__nav a {
  display: block; padding: 22px 0; font-family: var(--font-kit-header-font, inherit); font-weight: 600;
  font-size: 18px; color: inherit; text-decoration: none;
}
.he-mobile-menu__extras { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 16px; }
.he-mobile-menu__extras > * { position: static !important; transform: none !important; }
body.he-menu-open { overflow: hidden; }

/* Termin-Fenster (Calendly, Laden erst nach Zustimmung – wie im Original) */
.he-modal {
  position: fixed; inset: 0; z-index: 100001; display: flex; align-items: center; justify-content: center;
  background: rgba(46, 46, 51, .55); padding: 24px; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.he-modal.is-open { opacity: 1; visibility: visible; }
.he-modal__box {
  position: relative; background: #fff; border-radius: 4px; width: min(1000px, 100%); max-height: calc(100vh - 48px);
  overflow: auto; padding: 32px;
}
.he-modal__close {
  position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff;
  background: rgb(46, 46, 51); color: #fff; cursor: pointer; display: grid; place-items: center;
}
.he-modal__close svg { width: 14px; height: 14px; }
.he-consent {
  max-width: 440px; margin: 24px auto; padding: 24px; text-align: center; border: 1px solid #ddd; border-radius: 4px;
  background: #f4f4f5; color: rgb(46, 46, 51); font-size: 13px; line-height: 1.5;
}
.he-consent strong { display: block; font-size: 14px; margin: 8px 0 6px; }
.he-consent p { margin: 0 0 14px; opacity: .8; }
.he-consent button {
  appearance: none; border: 1px solid #ccc; background: #e9e9eb; border-radius: 20px; padding: 7px 16px;
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; color: inherit;
}
.he-consent a { color: inherit; }
.he-calendly { min-width: 320px; height: 700px; }
