.angebot--cards { container: cards / inline-size; }

.cb {
  --polster: clamp(18px, 3.2vw, 44px);          
  --handy-b: min(232px, 66cqw);
  position: relative; overflow: hidden;         
  overflow: clip;                               
  padding: var(--polster);
}
.cb__knoepfe { flex-direction: column; align-items: flex-start; margin-top: 0; }

.cb__handy {
  position: relative; flex: none;
  width: var(--handy-b);
  height: calc(var(--handy-b) * 1.82);         
  margin: 4px auto calc(-1 * var(--polster));
}
.cb__handy::before {                            
  content: ""; position: absolute; inset: -18% -34% -10%;
  background: radial-gradient(closest-side, rgba(213, 187, 130, 0.13), rgba(213, 187, 130, 0) 100%);
  pointer-events: none;
}
.cb__geraet { position: absolute; top: 0; left: 0; width: 100%; max-width: none; height: auto; }

.cb__schirm {
  position: absolute; left: 5.95%; right: 5.6%; top: calc(var(--handy-b) * 0.054);
  container-type: inline-size;
  display: grid; justify-items: center; align-content: start;
}
.cb__status {
  width: 100%; height: 13cqw; padding: 0 9cqw 0 11cqw;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 4.7cqw; line-height: 1; font-weight: 600; letter-spacing: -0.01em; color: #fff;
}
.cb__status svg { width: 17cqw; height: 4.6cqw; }

.cb__wahl { width: 100%; min-width: 0; margin: 0; padding: 0; border: 0; }
.cb__legende, .cb__knopf { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cb__knopf { top: 45cqw; left: 50cqw; opacity: 0; pointer-events: none; }   

.cb__karten { position: relative; height: 279cqw; margin-top: 3.5cqw; }   
.cb__karte {
  --platz: 1;
  position: absolute; top: 0; left: 5cqw; width: 90cqw; z-index: var(--platz);
  translate: 0 calc(109.5cqw + var(--platz) * 16.5cqw);   
  border-radius: 5cqw; overflow: hidden;                   
  box-shadow: 0 -1.2cqw 3.5cqw rgba(0, 0, 0, 0.6);
  cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.cb__karte > img, .cb__karte > .cb__pass { display: block; width: 100%; max-width: none; height: auto; aspect-ratio: 3 / 4; }

.cb__karte > img { display: none; }
.cb__karte--2 { --platz: 2; }
.cb__karte--3, .cb__karte--4 { --platz: 3; }

#cb-k1:checked ~ .cb__karten .cb__karte--2 { --platz: 1; }
#cb-k1:checked ~ .cb__karten .cb__karte--3, #cb-k2:checked ~ .cb__karten .cb__karte--3 { --platz: 2; }

#cb-k1:checked ~ .cb__karten .cb__karte--1, #cb-k2:checked ~ .cb__karten .cb__karte--2,
#cb-k3:checked ~ .cb__karten .cb__karte--3, #cb-k4:checked ~ .cb__karten .cb__karte--4 {
  --platz: 0; translate: 0 0; cursor: default;
  box-shadow: 0 5cqw 10cqw -4cqw rgba(0, 0, 0, 0.9);
}

#cb-k1:focus-visible ~ .cb__karten .cb__karte--1, #cb-k2:focus-visible ~ .cb__karten .cb__karte--2,
#cb-k3:focus-visible ~ .cb__karten .cb__karte--3, #cb-k4:focus-visible ~ .cb__karten .cb__karte--4 {
  outline: 2px solid var(--gold); outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .cb__karte > * { transition: transform 180ms var(--ruhig); }
  .cb__karte:hover > * { transform: translateY(-2.2cqw); }
  
  #cb-k1:checked ~ .cb__karten .cb__karte--1:hover > *, #cb-k2:checked ~ .cb__karten .cb__karte--2:hover > *,
  #cb-k3:checked ~ .cb__karten .cb__karte--3:hover > *, #cb-k4:checked ~ .cb__karten .cb__karte--4:hover > * { transform: none; }
}

@container cards (min-width: 540px) {
  .cb {
    --handy-b: clamp(196px, 37cqw, 244px);
    display: grid; grid-template-columns: minmax(0, 1fr) var(--handy-b); grid-template-rows: auto auto 1fr;
    column-gap: var(--a-3);
  }
  .cb__kopf, .cb__oben { grid-column: 1 / -1; }   
  .cb__text { grid-column: 1; grid-row: 2; }
  .cb__knoepfe { grid-column: 1; grid-row: 3; align-self: end; }
  .cb__handy { grid-column: 2; grid-row: 2 / 4; margin: 0 0 calc(-1 * var(--polster)); }
}

@media (prefers-reduced-motion: no-preference) {
  html.js:not(.ruhe) .auf .cb__handy { translate: 0 26%; transition: translate 700ms cubic-bezier(.2, .8, .2, 1) 120ms; }
  html.js:not(.ruhe) .auf.da .cb__handy { translate: 0 0; }

  
  html:not(.ruhe) .cb__karte { transition: translate 380ms cubic-bezier(.3, .75, .25, 1), z-index 0s linear 0s; }
  html:not(.ruhe) #cb-k1:checked ~ .cb__karten .cb__karte--1, html:not(.ruhe) #cb-k2:checked ~ .cb__karten .cb__karte--2,
  html:not(.ruhe) #cb-k3:checked ~ .cb__karten .cb__karte--3, html:not(.ruhe) #cb-k4:checked ~ .cb__karten .cb__karte--4 {
    transition: translate 380ms cubic-bezier(.3, .75, .25, 1), z-index 0s linear 300ms;
  }
}

@media (max-width: 1239px), (hover: none) and (max-width: 1400px) {
  .angebot--cards .cb { display: flex; }
  .angebot--cards .cb__knoepfe { align-self: auto; }   
  
  .angebot--cards .cb__handy { width: 85%; max-width: 340px; height: auto; margin: 4px auto 0; }
  html.js:not(.ruhe) .auf .angebot--cards .cb__handy { translate: none; }   
  .angebot--cards .cb__geraet, .angebot--cards .cb__status { display: none; }
  
  .angebot--cards .cb__karte > .cb__pass { display: flex; }          
  .angebot--cards .cb__schirm { position: static; display: block; }
  .angebot--cards .cb__karten { height: 85.34cqw; margin-top: 0; }          
  .angebot--cards .cb__karte {
    left: auto; right: 0; width: 64cqw; border-radius: 3.6cqw;
    z-index: calc(4 - var(--platz));                                        
    translate: calc(var(--platz) * -11.5cqw) 0;                             
    scale: calc(1 - var(--platz) * 0.08); transform-origin: 0 50%;          
    box-shadow: -2cqw 0 5cqw -1cqw rgba(0, 0, 0, 0.7);
  }
}

.cb__pfeil { display: none; }
@media (max-width: 1239px), (hover: none) and (max-width: 1400px) {
  html.js .angebot--cards .cb__handy { width: min(85%, 340px, 100% + 2 * var(--polster) - 92px); }
  html.js .angebot--cards .cb__pfeil {
    position: absolute; top: 50%; z-index: 1; display: grid; place-items: center;
    width: 44px; height: 44px; margin: -22px 0 0; padding: 0; border: 0; border-radius: 50%;
    background: none; color: var(--text-2); cursor: pointer; -webkit-tap-highlight-color: transparent;
    transition: color 160ms var(--ruhig);
  }
  html.js .angebot--cards .cb__pfeil--zurueck { right: calc(100% + 2px); }
  html.js .angebot--cards .cb__pfeil--weiter { left: calc(100% + 2px); }
  html.js .angebot--cards .cb__pfeil:hover, html.js .angebot--cards .cb__pfeil:focus-visible { color: var(--gold); }
  html.js .angebot--cards .cb__pfeil:focus-visible { outline-offset: -4px; border-radius: 50%; }   
  .cb__pfeil svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
}
@media (max-width: 1239px) and (prefers-reduced-motion: no-preference), (hover: none) and (max-width: 1400px) and (prefers-reduced-motion: no-preference) {
  
  html:not(.ruhe) .angebot--cards .cb__karte,
  html:not(.ruhe) #cb-k1:checked ~ .cb__karten .cb__karte--1, html:not(.ruhe) #cb-k2:checked ~ .cb__karten .cb__karte--2,
  html:not(.ruhe) #cb-k3:checked ~ .cb__karten .cb__karte--3, html:not(.ruhe) #cb-k4:checked ~ .cb__karten .cb__karte--4 {
    transition: translate 420ms cubic-bezier(.3, .75, .25, 1), scale 420ms cubic-bezier(.3, .75, .25, 1), z-index 0s;
  }
}

@container cards (min-width: 540px) {
  .cb__haken { grid-column: 1; grid-row: 2; align-self: start; }
}

.cb__vielfalt { display: none; }
@media (max-width: 1239px), (hover: none) and (max-width: 1400px) {
  .angebot--cards .cb__vielfalt { display: block; margin: 0; color: var(--text-2); font-size: 0.9375rem; line-height: 1.55; }
}

