/* Table of contents
––––––––––––––––––––––––––––––––––––––––––––––––––

- Avatar
- Social icons
- Buttons (alle einheitlich in Petrol, unabhängig vom Button-Typ)
- Button icons

*/


/* Avatar
–––––––––––––––––––––––––––––––––––––––––––––––––– */

/* LinkStack setzt auf dem Avatar nur id="avatar" (nicht immer die Klasse .rounded-avatar)
   und gibt ihm inline width:auto; min-width:128px – daher !important. */
.rounded-avatar,
#avatar {
  width: 112px !important;
  min-width: 0 !important;
  height: 112px !important;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #f9f3dc;
  background-color: #7aa1b8;
  box-shadow: 0 6px 18px rgba(14, 55, 73, 0.22);
}


/* Social icons
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.social-icon-div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding-bottom: 22px;
}
.social-icon-div a {
  width: 44px;
  height: 44px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #0e3749;
  border-radius: 50%;
  color: #0e3749;
}
.social-icon-div a:hover,
.social-icon-div a:focus-visible {
  background-color: #0e3749;
  color: #f9f3dc;
}
.social-icon-div a:hover .social-icon,
.social-icon-div a:focus-visible .social-icon {
  color: #f9f3dc;
}
.social-icon {
  font-size: 20px;
  padding: 0;
  color: #0e3749;
}


/* Buttons
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.button,
button.button {
  position: relative;
  display: flex !important;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 58px;
  margin: 0 0 12px 0;
  padding: 8px 18px;
  text-align: left;
  text-decoration: none;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  line-height: 21px;
  letter-spacing: 0;
  border: 1px solid #7aa1b8;
  border-radius: 16px;
  background-color: #0e3749;
  background-image: none;
  color: #f9f3dc;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(14, 55, 73, 0.18);
  -webkit-tap-highlight-color: transparent;
}

/* Pfeil rechts */
.button::after {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-left: auto;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6'/%3E%3C/svg%3E") center / 22px 22px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6'/%3E%3C/svg%3E") center / 22px 22px no-repeat;
}

@media (hover: hover) {
  .button:hover {
    filter: brightness(1.18);
    color: #f9f3dc;
  }
}
.button:active {
  filter: brightness(1.1);
}
.button:focus-visible {
  outline: 3px solid #e18b23;
  outline-offset: 2px;
}


/* Button icons
–––––––––––––––––––––––––––––––––––––––––––––––––– */

/* Icon im Kreis */
.button .icon,
.button i,
.button svg {
  position: static;
  flex: none;
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  margin: 0 14px 0 0;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  font-size: 16px;
  color: inherit;
  fill: currentColor;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
/* Bild-Icons (SVG/PNG) werden hell eingefärbt */
.button img.icon {
  filter: brightness(0) invert(1);
}

/* Hover-Effekt der Standard-Vorlage (Ring um das Icon) bewusst abgeschaltet */
.button:hover > .icon {
  box-shadow: none;
  background-color: transparent !important;
}

/* Klicks auf das Icon zählen für LinkStack als Klick auf den Button:
   Das Tracking-Skript wertet nur Klicks aus, deren Ziel der Button selbst ist. */
.button > .icon,
.button > i,
.button > svg,
.button > img {
  pointer-events: none;
}
