/* ==========================================================================
   Rahmen „Zuckerstange“ – rot-weiß gestreifter Rand, Stechpalme in den Ecken.
   Unabhängig vom Design, generiert (SVG eingebettet).
   ========================================================================== */
.ac--deco-zuckerstange {
  --ac-deco-space: 14px;
  isolation: isolate;
}
/* Popup bekommt denselben Rahmen */
.ac--deco-zuckerstange .ac__dialog-inner {
  isolation: isolate;
  padding: calc(clamp(1rem, 4vw, 2rem) + var(--ac-deco-space) + 26px);
}
.ac--deco-zuckerstange::before,
.ac--deco-zuckerstange .ac__dialog-inner::before,
.ac--deco-zuckerstange::after,
.ac--deco-zuckerstange .ac__dialog-inner::after {
  content: '';
  position: absolute;
  z-index: 3;
  pointer-events: none;
}
.ac--deco-zuckerstange::before,
.ac--deco-zuckerstange .ac__dialog-inner::before {
  inset: 0;
  border: 10px solid transparent;
  border-image: repeating-linear-gradient(45deg, #C62828 0 9px, #FFFFFF 9px 18px) 10;
}
.ac--deco-zuckerstange::after,
.ac--deco-zuckerstange .ac__dialog-inner::after {
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27100%27 height=%27100%27 viewBox=%270 0 100 100%27%3E%3Cg transform=%27%27%3E %3Cpath d=%27M8 10 C22 8 30 14 36 20 C40 16 46 18 44 24 C50 26 52 32 46 36 C52 40 50 46 44 46 C40 50 34 48 34 42 C26 40 14 28 8 10 Z%27 fill=%27%231F6B3A%27/%3E %3Cpath d=%27M10 12 C20 22 30 32 42 42%27 stroke=%27%230F3D20%27 stroke-width=%271.6%27 fill=%27none%27/%3E %3Cpath d=%27M10 8 C8 22 14 34 20 40 C16 44 18 50 24 48 C26 54 32 56 36 50 C40 56 46 54 46 48 C50 44 48 38 42 38 C40 30 28 18 10 8 Z%27 fill=%27%232E8B4A%27 transform=%27rotate(-4 28 30) translate(22 4) scale(.9)%27/%3E %3Cpath d=%27M32 12 C34 26 40 38 54 46%27 stroke=%27%23185C30%27 stroke-width=%271.4%27 fill=%27none%27/%3E %3Ccircle cx=%2716%27 cy=%2716%27 r=%277%27 fill=%27%23C62828%27/%3E%3Ccircle cx=%2726%27 cy=%2712%27 r=%276.5%27 fill=%27%23D32F2F%27/%3E%3Ccircle cx=%2713%27 cy=%2727%27 r=%276%27 fill=%27%23B71C1C%27/%3E %3Ccircle cx=%2714%27 cy=%2714%27 r=%272%27 fill=%27%23fff%27 opacity=%27.55%27/%3E%3Ccircle cx=%2724%27 cy=%2710%27 r=%271.8%27 fill=%27%23fff%27 opacity=%27.55%27/%3E%3Ccircle cx=%2711%27 cy=%2725%27 r=%271.6%27 fill=%27%23fff%27 opacity=%27.5%27/%3E %3C/g%3E%3C/svg%3E") left top / 110px 110px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27100%27 height=%27100%27 viewBox=%270 0 100 100%27%3E%3Cg transform=%27translate(100 0) scale(-1 1)%27%3E %3Cpath d=%27M8 10 C22 8 30 14 36 20 C40 16 46 18 44 24 C50 26 52 32 46 36 C52 40 50 46 44 46 C40 50 34 48 34 42 C26 40 14 28 8 10 Z%27 fill=%27%231F6B3A%27/%3E %3Cpath d=%27M10 12 C20 22 30 32 42 42%27 stroke=%27%230F3D20%27 stroke-width=%271.6%27 fill=%27none%27/%3E %3Cpath d=%27M10 8 C8 22 14 34 20 40 C16 44 18 50 24 48 C26 54 32 56 36 50 C40 56 46 54 46 48 C50 44 48 38 42 38 C40 30 28 18 10 8 Z%27 fill=%27%232E8B4A%27 transform=%27rotate(-4 28 30) translate(22 4) scale(.9)%27/%3E %3Cpath d=%27M32 12 C34 26 40 38 54 46%27 stroke=%27%23185C30%27 stroke-width=%271.4%27 fill=%27none%27/%3E %3Ccircle cx=%2716%27 cy=%2716%27 r=%277%27 fill=%27%23C62828%27/%3E%3Ccircle cx=%2726%27 cy=%2712%27 r=%276.5%27 fill=%27%23D32F2F%27/%3E%3Ccircle cx=%2713%27 cy=%2727%27 r=%276%27 fill=%27%23B71C1C%27/%3E %3Ccircle cx=%2714%27 cy=%2714%27 r=%272%27 fill=%27%23fff%27 opacity=%27.55%27/%3E%3Ccircle cx=%2724%27 cy=%2710%27 r=%271.8%27 fill=%27%23fff%27 opacity=%27.55%27/%3E%3Ccircle cx=%2711%27 cy=%2725%27 r=%271.6%27 fill=%27%23fff%27 opacity=%27.5%27/%3E %3C/g%3E%3C/svg%3E") right top / 110px 110px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27100%27 height=%27100%27 viewBox=%270 0 100 100%27%3E%3Cg transform=%27translate(0 100) scale(1 -1)%27%3E %3Cpath d=%27M8 10 C22 8 30 14 36 20 C40 16 46 18 44 24 C50 26 52 32 46 36 C52 40 50 46 44 46 C40 50 34 48 34 42 C26 40 14 28 8 10 Z%27 fill=%27%231F6B3A%27/%3E %3Cpath d=%27M10 12 C20 22 30 32 42 42%27 stroke=%27%230F3D20%27 stroke-width=%271.6%27 fill=%27none%27/%3E %3Cpath d=%27M10 8 C8 22 14 34 20 40 C16 44 18 50 24 48 C26 54 32 56 36 50 C40 56 46 54 46 48 C50 44 48 38 42 38 C40 30 28 18 10 8 Z%27 fill=%27%232E8B4A%27 transform=%27rotate(-4 28 30) translate(22 4) scale(.9)%27/%3E %3Cpath d=%27M32 12 C34 26 40 38 54 46%27 stroke=%27%23185C30%27 stroke-width=%271.4%27 fill=%27none%27/%3E %3Ccircle cx=%2716%27 cy=%2716%27 r=%277%27 fill=%27%23C62828%27/%3E%3Ccircle cx=%2726%27 cy=%2712%27 r=%276.5%27 fill=%27%23D32F2F%27/%3E%3Ccircle cx=%2713%27 cy=%2727%27 r=%276%27 fill=%27%23B71C1C%27/%3E %3Ccircle cx=%2714%27 cy=%2714%27 r=%272%27 fill=%27%23fff%27 opacity=%27.55%27/%3E%3Ccircle cx=%2724%27 cy=%2710%27 r=%271.8%27 fill=%27%23fff%27 opacity=%27.55%27/%3E%3Ccircle cx=%2711%27 cy=%2725%27 r=%271.6%27 fill=%27%23fff%27 opacity=%27.5%27/%3E %3C/g%3E%3C/svg%3E") left bottom / 110px 110px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27100%27 height=%27100%27 viewBox=%270 0 100 100%27%3E%3Cg transform=%27translate(100 100) scale(-1 -1)%27%3E %3Cpath d=%27M8 10 C22 8 30 14 36 20 C40 16 46 18 44 24 C50 26 52 32 46 36 C52 40 50 46 44 46 C40 50 34 48 34 42 C26 40 14 28 8 10 Z%27 fill=%27%231F6B3A%27/%3E %3Cpath d=%27M10 12 C20 22 30 32 42 42%27 stroke=%27%230F3D20%27 stroke-width=%271.6%27 fill=%27none%27/%3E %3Cpath d=%27M10 8 C8 22 14 34 20 40 C16 44 18 50 24 48 C26 54 32 56 36 50 C40 56 46 54 46 48 C50 44 48 38 42 38 C40 30 28 18 10 8 Z%27 fill=%27%232E8B4A%27 transform=%27rotate(-4 28 30) translate(22 4) scale(.9)%27/%3E %3Cpath d=%27M32 12 C34 26 40 38 54 46%27 stroke=%27%23185C30%27 stroke-width=%271.4%27 fill=%27none%27/%3E %3Ccircle cx=%2716%27 cy=%2716%27 r=%277%27 fill=%27%23C62828%27/%3E%3Ccircle cx=%2726%27 cy=%2712%27 r=%276.5%27 fill=%27%23D32F2F%27/%3E%3Ccircle cx=%2713%27 cy=%2727%27 r=%276%27 fill=%27%23B71C1C%27/%3E %3Ccircle cx=%2714%27 cy=%2714%27 r=%272%27 fill=%27%23fff%27 opacity=%27.55%27/%3E%3Ccircle cx=%2724%27 cy=%2710%27 r=%271.8%27 fill=%27%23fff%27 opacity=%27.55%27/%3E%3Ccircle cx=%2711%27 cy=%2725%27 r=%271.6%27 fill=%27%23fff%27 opacity=%27.5%27/%3E %3C/g%3E%3C/svg%3E") right bottom / 110px 110px no-repeat;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .3));
}
/* im kleineren Popup etwas kleinere Stechpalme */
.ac--deco-zuckerstange .ac__dialog-inner::after { background-size: 80px 80px; }
/* Handy (auch quer): kleinere Ecken, damit sie nicht in Überschrift und Text ragen */
@media (max-width: 520px), (max-height: 520px) {
  .ac--deco-zuckerstange::after { background-size: 64px 64px; }
  .ac--deco-zuckerstange .ac__dialog-inner::after { background-size: 52px 52px; }
  .ac--deco-zuckerstange .ac__dialog-inner { padding: calc(1rem + var(--ac-deco-space) + 6px); }
}
