/* aequitixx Site – Ergänzungen zum Prototyp-CSS (ax-proto.css). wwwewers, Pilot 2026. */

/* Hausschrift laut Lastenheft: IBM Plex, lokal ausgeliefert */
:root {
  --font: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.ax { font-family: var(--font); }
/* Breakdance setzt eigene Schriften auf Überschriften und Formularfelder: im .ax-Wrapper gilt die Hausschrift */
.ax.ax :is(h1, h2, h3, h4, h5, h6, p, li, a, button, input, select, textarea, label, blockquote, figcaption, summary) { font-family: inherit; }
/* Breakdance-Header-Vorlage: der Shortcode-Wrapper bleibt oben stehen */
body > .bde-shortcode:has(> .ax--header), .bde-header-builder:has(.ax--header) { position: sticky; top: 0; z-index: 60; }
.admin-bar > .bde-shortcode:has(> .ax--header) { top: 32px; }
@media (max-width: 782px) { .admin-bar > .bde-shortcode:has(> .ax--header) { top: 46px; } }
.ax :is(code, kbd, samp, .mono) { font-family: var(--mono); }
.ax--header, .ax--footer { display: block; }
/* Kopf bleibt oben stehen. In Breakdance zusätzlich im Header Builder „Sticky“ aktivieren, falls der Shortcode in einem Wrapper sitzt. */
.ax--header { position: sticky; top: 0; z-index: 60; }
.admin-bar .ax--header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ax--header { top: 46px; } }
.ax--global { display: contents; }

/* Breakdance: Bausteine dürfen volle Breite nutzen */
.breakdance .ax { width: 100%; }
.ax-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Ansprechpartner mit Foto statt Initialen */
.ax .ax-av--foto { padding: 0; overflow: hidden; background: var(--ink-2); }
.ax .ax-av--foto img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

/* Termin direkt wählen neben dem Formular */
.ax .ax-termin { margin-top: 16px; }
.ax .ax-termin .btn { gap: 10px; }

/* Werkzeuge im Rahmen */
.ax .ax-tool { width: 100%; }
.ax .ax-tool__f { display: block; width: 100%; border: 0; min-height: 600px; background: var(--paper); }

/* Mega-Menü Ergebnisse mit Fotos */
.ax .ax-mega-refs { padding-block: 26px 32px; }
.ax .ax-mega-refs__hd { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 14px; }
.ax .ax-mrefs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; }
.ax .ax-mref { display: grid; grid-template-rows: auto auto 1fr; gap: 4px; text-decoration: none; color: var(--ink); border-radius: var(--r-m); padding: 8px; margin: -8px; transition: background-color .15s; }
.ax .ax-mref:hover, .ax .ax-mref:focus-visible { background: var(--paper); }
.ax .ax-mref__img { display: block; aspect-ratio: 3 / 2; border-radius: var(--r-s); overflow: hidden; background: var(--ink-2); margin-bottom: 6px; }
.ax .ax-mref__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.ax .ax-mref:hover .ax-mref__img img { transform: scale(1.04); }
.ax .ax-mref b { font-size: .98rem; }
.ax .ax-mref span:not(.ax-mref__img) { font-size: .86rem; color: var(--muted); line-height: 1.4; }

/* Kontakt-Button, läuft beim Scrollen mit (ersetzt Servicehotline und mobile Leiste) */
.ax .axc { position: fixed; right: 24px; bottom: 24px; z-index: 70; display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .25s, transform .25s; }
.ax .axc.is-on { opacity: 1; transform: none; pointer-events: auto; }
.ax .axc__btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 22px 12px 18px; border-radius: 999px;
  background: var(--red); color: var(--white); border: 2px solid var(--red); font: 600 1rem/1 var(--font); cursor: pointer;
  box-shadow: 0 18px 40px -16px rgba(227, 6, 19, .65); transition: background-color .15s, transform .15s; }
.ax .axc__btn:hover { background: var(--red-d); border-color: var(--red-d); transform: translateY(-1px); }
.ax .axc__btn .ico { width: 22px; height: 22px; }
.ax .axc.is-open .axc__btn { background: var(--ink); border-color: var(--ink); box-shadow: none; }
.ax .axc__panel { position: relative; width: min(340px, calc(100vw - 32px)); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 22px 20px 18px; box-shadow: 0 34px 70px -30px rgba(28, 28, 27, .6); display: grid; gap: 10px; }
.ax .axc__panel[hidden] { display: none; }
.ax .axc__x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); border-radius: 50%; cursor: pointer; }
.ax .axc__x:hover { background: var(--paper); color: var(--ink); }
.ax .axc__who { display: flex; gap: 14px; align-items: center; margin-bottom: 6px; padding-right: 30px; }
.ax .axc__av { width: 56px; height: 56px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--ink); color: var(--white); font-weight: 700; letter-spacing: .04em; border: 2px solid var(--red); }
.ax .axc__k { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0; }
.ax .axc__n { font-weight: 600; color: var(--ink); margin: 2px 0 0; }
.ax .axc__r { font-size: .88rem; color: var(--muted); margin: 0; }
.ax .axc__panel .btn { width: 100%; }
.ax .axc__lines { display: grid; gap: 4px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line-3); }
.ax .axc__line { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: .95rem; padding: 6px 0; overflow-wrap: anywhere; }
.ax .axc__line:hover { color: var(--red-d); }
.ax .axc__line .ico { width: 18px; height: 18px; flex: none; color: var(--red); }
@media (max-width: 640px) {
  .ax .axc { right: 16px; bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); }
  .ax .axc__btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ax .axc__btn { padding: 14px; min-height: 56px; }
}
@media (prefers-reduced-motion: reduce) { .ax .axc { transition: none; } }
@media print { .ax .axc { display: none; } }
