/* Beitrag "Das aspect SwimBoard" – Layout-Baender (wie Spectra-Container im Original)
   + Widgets "swim-workout-features" und "aspect-pdf-auto-demo" (vom Betreiber, 1:1 portiert). */

/* ---------- Baender: brechen aus der schmalen Lesespalte auf max. 1340px aus ---------- */
.prose .swb-band {
  --bw: min(1340px, calc(100vw - 2 * var(--gutter)));
  width: var(--bw);
  margin: clamp(100px, 90px + 3vw, 138px) 0 0 calc(50% - var(--bw) / 2);
  position: relative;
}
.prose .swb-band:first-child { margin-top: 0; }
.prose .swb-band--navy, .prose .swb-band--dark, .prose .swb-band--white {
  padding: clamp(60px, 40px + 4vw, 100px) 0 clamp(50px, 30px + 5vw, 100px);
}
.prose .swb-band--navy { background: var(--navy-800); }
.prose .swb-band--dark { background: var(--navy-900); }
.prose .swb-band--white { background: #fff; margin-top: 19px; padding-bottom: 90px; }
.prose .swb-band--white + .swb-band--dark { margin-top: 19px; }
.prose .swb-band--tight { padding-bottom: clamp(60px, 40px + 5vw, 120px); }
.prose .swb-hero { padding-top: 50px; }

.swb-inner { width: min(90%, 1080px); margin-inline: auto; }
.swb-narrow { width: min(100% - 40px, 640px); margin-inline: auto; }

/* Fliesstext in dunklen Baendern (Original: 14-18px, Weiss 78 %) */
.swb-band--navy p, .swb-band--dark p {
  margin: 0; padding-bottom: 40px;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(14px, .875rem + ((1vw - 3.2px) * .392), 18px);
  line-height: 1.55;
}
.swb-band--navy p strong, .swb-band--dark p strong { color: rgba(255, 255, 255, .9); }
.swb-pdf p { padding-bottom: 20px; }

/* Fliesstext in hellen Bereichen (Original: has-medium-font-size) */
.swb-copy p { margin: 0 0 1.95em; font-size: clamp(16px, 15px + .25vw, 18px); line-height: 1.4; color: var(--ink); }
.swb-copy p:last-child { margin-bottom: 0; }

/* Ueberschriften */
.prose .swb-eyebrow {
  margin: 0; padding: 0 0 24px;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13px; font-weight: 600; line-height: 1; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
}
.prose .swb-title {
  margin: 0 0 24px; color: #fff;
  font-size: clamp(28px, 24px + 1.1vw, 40px); font-weight: 800; line-height: 1.1; letter-spacing: -.01em;
}
.prose .swb-title--xl { font-size: clamp(30px, 18px + 2.6vw, 56px); }
.prose .swb-title--md { color: var(--ink); font-size: clamp(28px, 26.5px + .4vw, 32px); line-height: 1.125; margin-bottom: 45px; }
.prose .swb-band--white .swb-title { color: #1b2226; text-align: center; margin-bottom: 40px; }
.prose .swb-subtitle { margin: 0 0 24px; color: #fff; font-size: 28px; font-weight: 800; line-height: 1.1; }

/* Buttons (Original: Pille, Akzentfarbe) */
.prose .swb-btn-row { padding: 0; margin: 0; text-align: center; }
.swb-hero .swb-btn-row { padding-bottom: 0; }
.prose .swb-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 18px 26px; border-radius: 50px; background: var(--accent); color: var(--ink);
  font-size: 16px; font-weight: 700; line-height: 1.4; text-decoration: none;
  transition: background-color .2s, transform .2s var(--ease);
}
.prose .swb-btn:hover { background: #e8a73f; color: var(--ink); transform: translateY(-2px); }
.swb-band--white .swb-btn-row { margin-top: -6px; }

/* Bild/Text-Bereiche */
.prose .swb-split { display: grid; gap: 40px; align-items: center; }
.swb-split__media img { width: 100%; height: auto; }
@media (min-width: 900px) {
  .prose .swb-split { width: min(var(--bw), 1200px); margin-left: calc(50% - min(var(--bw), 1200px) / 2); }
  .prose .swb-split--media-left { grid-template-columns: 420px minmax(0, 627px); column-gap: clamp(40px, 9vw, 123px); }
  .prose .swb-split--media-right { grid-template-columns: minmax(0, 560px) minmax(0, 560px); column-gap: clamp(40px, 6vw, 81px); }
}
@media (max-width: 899px) {
  .swb-split--media-right .swb-split__media { order: 2; }
  .swb-split .swb-split__text { padding-right: 30px; }
}

.prose .swb-intervals { margin-top: 19px; text-align: center; }
.prose .swb-intervals img { width: min(100%, 881px); height: auto; margin-inline: auto; border-radius: 0; }

/* Zwei Spalten im PDF-Band */
.swb-cols { display: grid; gap: 0 40px; align-items: start; }
.swb-cols + .swb-cols { margin-top: 38px; }
@media (min-width: 782px) { .swb-cols { grid-template-columns: 1fr 1fr; gap: 0 50px; } }

.swb-center .swb-copy p { color: var(--ink); }

/* ======================================================================
   Widget: Was in einem Schwimmworkout steckt (Original-CSS des Betreibers)
   ====================================================================== */
.swim-workout-features {
  --navy: #15354b; --ink: #18313f; --muted: #637783; --surface: #f4f8fb; --line: #dce8ee;
  width: 100%; max-width: 100%;
  margin: 16px 0 56px; padding: 44px;
  overflow: hidden; position: relative; border-radius: 24px;
  background: linear-gradient(135deg, #eef7fb 0%, #f8fbfd 48%, #edf6f8 100%);
  color: var(--ink);
}
.swim-workout-features, .swim-workout-features *, .swim-workout-features *::before, .swim-workout-features *::after { box-sizing: border-box; }
.swim-workout-features::before, .swim-workout-features::after { content: ""; position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; }
.swim-workout-features::before { width: 380px; height: 380px; top: -240px; right: -120px; background: radial-gradient(circle, rgba(47, 111, 237, .12), rgba(47, 111, 237, 0) 68%); }
.swim-workout-features::after { width: 320px; height: 320px; bottom: -250px; left: -130px; background: radial-gradient(circle, rgba(19, 168, 88, .11), rgba(19, 168, 88, 0) 70%); }
.swim-workout-features__intro, .swim-workout-features__grid { position: relative; z-index: 1; }
.swim-workout-features__intro { max-width: 690px; margin-bottom: 30px; }
.prose .swim-workout-features__title {
  margin: 0; color: var(--navy); font-size: clamp(1.75rem, 3vw, 2.55rem); font-weight: 400; line-height: 1.1; letter-spacing: -.035em;
}
.swb-band .swim-workout-features__intro p {
  margin: 14px 0 0; padding: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.65; font-weight: 300;
}
.swim-workout-features__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; min-width: 0; }
.swim-feature-card {
  position: relative; min-width: 0; min-height: 190px; padding: 25px 23px 22px; overflow: hidden;
  border: 1px solid rgba(210, 225, 233, .92); border-radius: 17px; background: rgba(255, 255, 255, .84);
  box-shadow: 0 10px 25px rgba(22, 57, 76, .055);
  opacity: 0; transform: translateY(20px);
  animation: swim-card-in .55s cubic-bezier(.2, .75, .3, 1) forwards; animation-delay: var(--delay);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.swim-feature-card::before {
  content: ""; position: absolute; top: 0; right: 0; left: 0; height: 4px; background: var(--accent);
  transform: scaleX(.25); transform-origin: left; transition: transform .25s ease;
}
.swim-feature-card:hover { z-index: 2; border-color: color-mix(in srgb, var(--accent) 36%, #dce8ee); box-shadow: 0 18px 35px rgba(22, 57, 76, .13); transform: translateY(-6px); }
.swim-feature-card:hover::before { transform: scaleX(1); }
.swim-feature-card__number { position: absolute; top: 18px; right: 20px; color: color-mix(in srgb, var(--accent) 27%, white); font-size: .78rem; font-weight: 800; letter-spacing: .08em; }
.swim-feature-card__icon { display: grid; width: 43px; height: 43px; margin-bottom: 18px; place-items: center; border-radius: 13px; color: var(--accent); background: color-mix(in srgb, var(--accent) 11%, white); }
.swim-feature-card__icon svg { width: 24px; height: 24px; }
.prose .swim-feature-card h4 { margin: 0 22px 7px 0; color: var(--navy); font-size: 1rem; font-weight: 400; line-height: 1.25; letter-spacing: 0; overflow-wrap: anywhere; }
.swb-band .swim-feature-card p { margin: 0; padding: 0; color: var(--muted); font-size: .9rem; font-weight: 300; line-height: 1.5; overflow-wrap: anywhere; }
.swim-feature-card--highlight { background: linear-gradient(135deg, #15354b, #214f66); border-color: #15354b; }
.prose .swim-feature-card--highlight h4 { color: #fff; }
.swb-band .swim-feature-card--highlight p { color: rgba(255, 255, 255, .76); }
.swim-feature-card--highlight .swim-feature-card__icon { color: #fff; background: rgba(255, 255, 255, .13); }
.swim-feature-card--highlight .swim-feature-card__number { color: rgba(255, 255, 255, .35); }
.swim-feature-card--highlight::before { background: #65c9ff; }
@keyframes swim-card-in { to { opacity: 1; transform: translateY(0); } }
@media (max-width: 860px) {
  .swim-workout-features { margin: 0 0 36px; padding: 32px 24px; border-radius: 20px; }
  .swim-workout-features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .swim-workout-features { padding: 24px 16px; border-radius: 18px; }
  .swim-workout-features__grid { grid-template-columns: minmax(0, 1fr); }
  .swim-feature-card { min-height: auto; padding: 22px 18px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .swim-feature-card { opacity: 1; transform: none; animation: none; transition: none; }
}

/* ======================================================================
   Widget: PDF-Erstellung (Original-CSS des Betreibers)
   ====================================================================== */
.aspect-pdf-auto-demo {
  --ap-navy: #15354b; --ap-blue: #2f6fed; --ap-green: #159b55; --ap-muted: #637783;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  max-width: 600px; margin: 0 auto; padding: clamp(22px, 4.5vw, 42px);
  overflow: hidden; position: relative;
  border: 1px solid #dce8ee; border-radius: 22px;
  background: radial-gradient(circle at 93% 8%, rgba(47, 111, 237, .11), transparent 30%), linear-gradient(135deg, #f3f9fc, #fbfdfe);
  color: var(--ap-navy);
}
.aspect-pdf-auto-demo::before {
  content: ""; position: absolute; width: 340px; height: 340px; right: -185px; bottom: -230px; border-radius: 50%;
  background: radial-gradient(circle, rgba(21, 155, 85, .12), transparent 68%); pointer-events: none;
}
.aspect-pdf-auto-demo__interface, .aspect-pdf-auto-demo__preview { position: relative; z-index: 1; width: 100%; }
.aspect-pdf-auto-demo__interface {
  box-sizing: border-box; max-width: 410px; padding: 22px;
  border: 1px solid rgba(212, 225, 232, .9); border-radius: 16px; background: rgba(255, 255, 255, .82);
  box-shadow: 0 12px 28px rgba(24, 61, 80, .07);
}
.aspect-pdf-auto-demo__title-row { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; color: var(--ap-navy); font-size: .95rem; font-weight: 780; line-height: 1.3; }
.aspect-pdf-auto-demo__file-icon { display: grid; flex-shrink: 0; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: #eaf1fd; color: var(--ap-blue); }
.aspect-pdf-auto-demo__file-icon svg { width: 17px; height: 17px; }
.aspect-pdf-auto-demo__button {
  display: flex; width: 100%; min-height: 49px; align-items: center; justify-content: center; gap: 9px;
  padding: 0 14px; border: 0; border-radius: 11px;
  background: linear-gradient(135deg, #e5a534, #d78b17); box-shadow: 0 9px 19px rgba(191, 125, 19, .22);
  color: #fff; cursor: pointer; font: inherit; font-size: .91rem; font-weight: 750;
  transition: transform .16s ease, filter .2s ease;
}
.aspect-pdf-auto-demo__button svg { width: 19px; height: 19px; flex-shrink: 0; }
.aspect-pdf-auto-demo__button.is-clicking { transform: scale(.965); filter: brightness(.96); }
.aspect-pdf-auto-demo__spinner {
  display: none; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .38); border-top-color: #fff; border-radius: 50%;
  animation: aspect-pdf-auto-spin .75s linear infinite;
}
.aspect-pdf-auto-demo.is-generating .aspect-pdf-auto-demo__spinner { display: block; }
.aspect-pdf-auto-demo__progress { height: 4px; margin: 15px 0 8px; overflow: hidden; border-radius: 99px; background: #e8eff3; }
.aspect-pdf-auto-demo__progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ap-blue), #54a8f4); }
.aspect-pdf-auto-demo.is-generating .aspect-pdf-auto-demo__progress span { animation: aspect-pdf-auto-progress 1.45s ease forwards; }
.aspect-pdf-auto-demo.is-ready .aspect-pdf-auto-demo__progress span { width: 100%; }
.swb-band .aspect-pdf-auto-demo__status { min-height: 1.3em; margin: 0; padding: 0; color: var(--ap-muted); font-size: .8rem; font-weight: 620; line-height: 1.4; }
.aspect-pdf-auto-demo__preview { display: grid; min-height: 375px; place-items: center; perspective: 1000px; }
.aspect-pdf-auto-demo__ripple {
  position: absolute; width: 310px; height: 310px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 111, 237, .19), rgba(47, 111, 237, 0) 68%);
  opacity: 0; transform: scale(.65);
}
.aspect-pdf-auto-demo__document {
  position: relative; z-index: 1; width: min(100%, 270px); overflow: hidden;
  border: 1px solid #cddae1; border-radius: 7px; background: #fff; box-shadow: 0 17px 37px rgba(20, 52, 70, .18);
  opacity: 0; transform: translateY(20px) rotateX(9deg) rotateZ(-3deg) scale(.8);
}
.aspect-pdf-auto-demo__document-header { display: flex; height: 8px; }
.aspect-pdf-auto-demo__document-header i:nth-child(1) { width: 38%; background: #2f6fed; }
.aspect-pdf-auto-demo__document-header i:nth-child(2) { width: 34%; background: #16a35a; }
.aspect-pdf-auto-demo__document-header i:nth-child(3) { width: 28%; background: #e52b2f; }
.prose .aspect-pdf-auto-demo__document img { display: block; width: 100%; height: auto; background: #f1f4f6; border-radius: 0; }
.aspect-pdf-auto-demo__done {
  position: absolute; z-index: 2; bottom: 8px; display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px; border: 1px solid #b7e6ca; border-radius: 999px; background: #f1fcf5;
  box-shadow: 0 8px 18px rgba(15, 102, 51, .1); color: #15713d; font-size: .8rem; font-weight: 760; line-height: 1.2;
  opacity: 0; transform: translateY(12px) scale(.9);
}
.aspect-pdf-auto-demo__done b { display: grid; width: 17px; height: 17px; place-items: center; border-radius: 50%; background: var(--ap-green); color: #fff; font-size: .69rem; }
.aspect-pdf-auto-demo__cursor {
  position: absolute; z-index: 5; top: 100px; left: calc(50% + 112px); width: 29px; height: 29px; color: #17394d;
  filter: drop-shadow(1px 2px 1px rgba(255, 255, 255, .9)) drop-shadow(0 2px 3px rgba(18, 48, 64, .24));
  opacity: 0; pointer-events: none;
}
.aspect-pdf-auto-demo__cursor svg { width: 100%; height: 100%; }
.aspect-pdf-auto-demo.is-cursor-moving .aspect-pdf-auto-demo__cursor { animation: aspect-pdf-auto-cursor 1s cubic-bezier(.3, .7, .35, 1) forwards; }
.aspect-pdf-auto-demo.is-ready .aspect-pdf-auto-demo__ripple { animation: aspect-pdf-auto-ripple .7s ease forwards; }
.aspect-pdf-auto-demo.is-ready .aspect-pdf-auto-demo__document { animation: aspect-pdf-auto-document .72s cubic-bezier(.17, .8, .25, 1) forwards; }
.aspect-pdf-auto-demo.is-ready .aspect-pdf-auto-demo__done { animation: aspect-pdf-auto-done .4s .48s cubic-bezier(.2, .8, .25, 1) forwards; }
@keyframes aspect-pdf-auto-cursor {
  0% { opacity: 0; transform: translate(25px, -20px) scale(.92); }
  16% { opacity: 1; }
  72% { opacity: 1; transform: translate(0, 0) scale(1); }
  80% { transform: translate(0, 0) scale(.82); }
  88% { transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(5px, 5px) scale(.98); }
}
@keyframes aspect-pdf-auto-progress { from { width: 0; } to { width: 100%; } }
@keyframes aspect-pdf-auto-spin { to { transform: rotate(360deg); } }
@keyframes aspect-pdf-auto-ripple { 0% { opacity: 0; transform: scale(.6); } 45% { opacity: 1; } 100% { opacity: .7; transform: scale(1); } }
@keyframes aspect-pdf-auto-document {
  0% { opacity: 0; transform: translateY(20px) rotateX(9deg) rotateZ(-3deg) scale(.8); }
  70% { opacity: 1; transform: translateY(-4px) rotateX(0) rotateZ(.4deg) scale(1.025); }
  100% { opacity: 1; transform: translateY(0) rotateX(0) rotateZ(0) scale(1); }
}
@keyframes aspect-pdf-auto-done { to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 460px) {
  .aspect-pdf-auto-demo { padding: 22px 16px; }
  .aspect-pdf-auto-demo__interface { padding: 18px; }
  .aspect-pdf-auto-demo__button { font-size: .84rem; }
  .aspect-pdf-auto-demo__preview { min-height: 330px; }
  .aspect-pdf-auto-demo__cursor { top: 92px; left: calc(50% + 82px); }
}
/* Ohne Animation: fertiges PDF direkt zeigen */
@media (prefers-reduced-motion: reduce) {
  .aspect-pdf-auto-demo.is-ready .aspect-pdf-auto-demo__document,
  .aspect-pdf-auto-demo.is-ready .aspect-pdf-auto-demo__done,
  .aspect-pdf-auto-demo.is-ready .aspect-pdf-auto-demo__ripple { animation: none; opacity: 1; transform: none; }
}
