/* ------------------------------------------------------------------
   AAE Digital – Politur
   Bewusst zurueckhaltend: aendert keine Farben, Schriften oder Abstaende
   des bestehenden Designs, sondern ergaenzt nur Zustaende und Feinschliff.
   Laesst sich komplett abschalten, indem man die Zeile
   <link rel="stylesheet" href="/aae-polish.css"> entfernt.
   ------------------------------------------------------------------ */

:root {
  --aae-accent: #595cef;   /* Markenviolett aus dem Wix-Theme */
}

/* 1. LinkedIn raus – AAE Digital hat keinen Account.
      Der Link zeigte auf das Wix-Studio-Profil (Template-Rest). */
[id*="comp-lyla3oom"] {
  display: none !important;
}

/* 2. Bildkacheln: sanfter Zoom beim Hover ----------------------------- */
a.YX2qkL {
  display: block;
  overflow: hidden;
}

a.YX2qkL img {
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
  will-change: transform;
}

a.YX2qkL:hover img,
a.YX2qkL:focus-visible img {
  transform: scale(1.045);
}

/* 3. Buttons: weicher Uebergang statt hartem Umschalten --------------- */
.wixui-button,
a[class*="StylableButton"],
button[class*="StylableButton"] {
  transition: background-color .22s ease,
              border-color .22s ease,
              color .22s ease,
              transform .22s ease;
}

.wixui-button:hover,
a[class*="StylableButton"]:hover {
  transform: translateY(-1px);
}

/* 4. Textlinks: Unterstrich wachsen lassen statt sofort anzeigen ------- */
.wixui-rich-text__text a {
  transition: color .2s ease, opacity .2s ease;
}

.wixui-rich-text__text a:hover {
  color: var(--aae-accent);
}

/* 5. Sichtbarer Fokus fuer Tastaturbedienung --------------------------
      Wix setzt hier fast nichts – ohne Maus war die Seite kaum nutzbar. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--aae-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Fokusring nicht bei reinem Mausklick zeigen */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* 6. Formularfelder: Fokus deutlicher machen -------------------------- */
form input:focus,
form textarea:focus {
  border-color: var(--aae-accent) !important;
  box-shadow: 0 0 0 3px rgba(89, 92, 239, .22);
}

form input,
form textarea {
  transition: border-color .2s ease, box-shadow .2s ease;
}

/* 7. Textmarkierung in Markenfarbe ------------------------------------ */
::selection {
  background: rgba(89, 92, 239, .85);
  color: #fff;
}

/* 8. Nach-oben-Button -------------------------------------------------- */
.aae-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 2147482000;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: rgba(10, 10, 20, .72);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}

.aae-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.aae-top:hover {
  background: var(--aae-accent);
  border-color: var(--aae-accent);
}

@media (max-width: 750px) {
  .aae-top { right: 14px; bottom: 14px; }
  body.aae-nav-open .aae-top { display: none; }
}

/* 9. Bilder nie verzerrt ---------------------------------------------- */
img {
  max-width: 100%;
}

/* 10. Ruecksicht auf Reduced-Motion ----------------------------------- */
@media (prefers-reduced-motion: reduce) {
  a.YX2qkL img,
  .wixui-button,
  a[class*="StylableButton"] {
    transition: none !important;
  }
  a.YX2qkL:hover img { transform: none; }
}

/* 11. Impressum-Seite -------------------------------------------------
      !important noetig: Wix setzt Schriftgroesse und -staerke ueber einen
      ID-Selektor (#comp-... :is(p,h1,h2,...)) und gewinnt sonst.
      font-weight allein bringt hier nichts: die Theme-Schrift heisst
      poppins-extralight und hat keinen echten Fettschnitt. Fuer Fettes
      nimmt das Theme poppins-semibold - dieselbe Schrift wie die H1. */
.aae-impressum h2 {
  margin: 2.4em 0 .6em !important;
  font-family: "poppins-semibold", poppins, sans-serif !important;
  font-size: 1.3em !important;
  line-height: 1.3 !important;
}

.aae-impressum h2:first-child {
  margin-top: 0;
}

.aae-impressum p {
  margin: 0 0 1em;
}

.aae-impressum a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.aae-impressum-adressen {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6em 3.5em;
  margin: 1.6em 0 .5em;
}

.aae-impressum-adressen address {
  font-style: normal;
  line-height: 1.7;
}

.aae-impressum strong,
.aae-impressum-adressen strong {
  font-family: "poppins-semibold", poppins, sans-serif !important;
}

@media (max-width: 750px) {
  .aae-impressum-adressen {
    gap: 1.4em;
  }
  .aae-impressum-adressen address {
    flex: 1 1 100%;
  }
}
