.legal-story-page{--story-accent:#4f59dd;--story-soft:#e7e9ff;position:relative;overflow-x:hidden}.legal-story-page::before,.legal-story-page::after{content:"";position:fixed;z-index:-1;border:1px solid rgba(79,89,221,.11);border-radius:50%;pointer-events:none;animation:story-drift 16s ease-in-out infinite alternate}.legal-story-page::before{width:460px;height:460px;right:-250px;top:18vh}.legal-story-page::after{width:280px;height:280px;left:-170px;bottom:8vh;animation-delay:-7s}.agb-story{--story-accent:#31388f;--story-soft:#eef0ff}.story-progress{position:fixed;z-index:20;left:0;top:72px;width:4px;height:calc(100vh - 72px);background:rgba(79,89,221,.08)}.story-progress span{display:block;width:100%;height:0;background:var(--story-accent);transition:height .15s linear}.legal-story-main{width:min(1120px,calc(100% - 48px));padding-top:70px}.legal-story-hero{position:relative;min-height:540px;display:grid;grid-template-columns:1.05fr .95fr;gap:7vw;align-items:center;border-bottom:1px solid var(--line)}.legal-story-hero h1{font-size:clamp(58px,7.7vw,104px)}.legal-story-hero .legal-intro{margin-bottom:0}.story-meta{display:flex;gap:9px;flex-wrap:wrap;margin-top:28px}.story-meta span{padding:8px 11px;border:1px solid var(--line);border-radius:999px;color:var(--muted);font-size:9px;font-weight:750;text-transform:uppercase;letter-spacing:.1em}.story-visual{position:relative;justify-self:center;width:min(39vw,430px);aspect-ratio:1;border:1px dashed rgba(79,89,221,.26);border-radius:50%;animation:story-float 7s ease-in-out infinite}.story-visual::before,.story-visual::after{content:"";position:absolute;border:1px dashed rgba(79,89,221,.2);border-radius:50%}.story-visual::before{inset:14%}.story-visual::after{inset:29%}.story-core{position:absolute;inset:34%;z-index:2;border-radius:50%;display:grid;place-content:center;text-align:center;background:var(--blue-ink);color:white;box-shadow:0 24px 70px rgba(27,35,86,.2)}.story-core strong{font-size:clamp(17px,2vw,25px)}.story-core small{color:#bfc5ff;font-size:8px;text-transform:uppercase;letter-spacing:.15em}.story-node{position:absolute;z-index:3;min-width:72px;padding:12px 14px;border:1px solid var(--line);background:white;box-shadow:0 14px 35px rgba(31,39,99,.1);color:var(--blue-dark);font-size:9px;font-weight:800;text-align:center}.story-node.n1{left:-4%;top:21%}.story-node.n2{right:-5%;top:38%}.story-node.n3{left:8%;bottom:7%}.story-node.n4{right:8%;bottom:2%}.story-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:65px;padding-top:72px}.chapter-rail{position:sticky;top:112px;height:max-content;padding:18px;border:1px solid var(--line);background:rgba(248,248,244,.86);backdrop-filter:blur(14px)}.chapter-rail p{margin:0 0 14px;color:var(--blue);font-size:8px;font-weight:850;text-transform:uppercase;letter-spacing:.15em}.chapter-rail a{display:flex;gap:9px;padding:9px 0;border-top:1px solid var(--line);color:var(--muted);font-size:10px;line-height:1.35;text-decoration:none}.chapter-rail a::before{content:"";flex:0 0 6px;width:6px;height:6px;margin-top:4px;border:1px solid var(--blue);border-radius:50%}.chapter-rail a.is-current{color:var(--ink);font-weight:750}.chapter-rail a.is-current::before{background:var(--blue)}.story-content{min-width:0}.story-chapter{position:relative;padding:54px 0 60px}.story-chapter::before{content:attr(data-number);position:absolute;right:0;top:40px;color:rgba(79,89,221,.065);font-size:76px;font-weight:850;letter-spacing:-.08em;pointer-events:none}.story-chapter h2{position:relative;z-index:1;max-width:690px;font-size:clamp(25px,3.2vw,42px);line-height:1.05}.story-chapter p,.story-chapter li{position:relative;z-index:1}.story-chapter p{max-width:760px;color:#3e435d;font-size:14px;line-height:1.78}.story-chapter ul{margin:22px 0;padding:0;display:grid;gap:8px;list-style:none}.story-chapter ul li{padding:13px 15px 13px 38px;border:1px solid var(--line);background:rgba(255,255,255,.7);color:#3e435d;font-size:12px;line-height:1.5}.story-chapter ul li::before{content:"";position:absolute;left:16px;top:19px;width:7px;height:7px;border-radius:50%;background:var(--blue)}.story-chapter a:not(.legal-mail-link){color:var(--blue-dark);text-underline-offset:3px}.chapter-note{margin:25px 0;padding:22px 24px;border-left:4px solid var(--blue);background:var(--story-soft);color:var(--blue-ink)!important}.provider-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:25px}.provider-card{padding:20px;border:1px solid var(--line);background:white}.provider-card span{display:block;margin-bottom:8px;color:var(--blue);font-size:8px;font-weight:850;text-transform:uppercase;letter-spacing:.13em}.provider-card strong{display:block;margin-bottom:8px;font-size:17px}.provider-card p{margin:0;font-size:11px;line-height:1.55}.rights-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:22px 0}.rights-grid div{padding:17px;background:var(--story-soft);font-size:12px;font-weight:720}.story-reveal{opacity:0;transform:translateY(20px);transition:opacity .7s ease,transform .7s cubic-bezier(.22,1,.36,1)}.story-reveal.is-visible{opacity:1;transform:none}@keyframes story-float{50%{transform:translateY(-9px) rotate(1deg)}}@keyframes story-drift{to{transform:translate3d(-30px,24px,0) scale(1.08)}}
@media(max-width:850px){.legal-story-main{width:min(100% - 34px,760px)}.legal-story-hero{min-height:auto;grid-template-columns:1fr;padding:64px 0 70px}.story-visual{width:min(76vw,360px)}.story-layout{grid-template-columns:1fr;gap:0;padding-top:0}.chapter-rail{position:relative;top:auto;margin:36px 0 5px;display:grid;grid-template-columns:repeat(2,1fr);gap:0 16px}.chapter-rail p{grid-column:1/-1}.story-chapter{padding:42px 0 48px}.provider-grid{grid-template-columns:1fr}}
@media(max-width:600px){.story-progress{top:62px;height:calc(100vh - 62px)}.legal-story-hero h1{font-size:49px}.legal-story-hero{padding-top:50px}.story-meta{margin-top:22px}.story-visual{width:min(78vw,300px)}.story-node{min-width:64px;padding:9px;font-size:8px}.chapter-rail{grid-template-columns:1fr}.story-chapter h2{padding-right:46px;font-size:28px}.story-chapter::before{font-size:58px}.story-chapter p{font-size:12px;line-height:1.7}.provider-grid,.rights-grid{grid-template-columns:1fr}.chapter-note{padding:18px}.story-reveal{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.story-visual,.legal-story-page::before,.legal-story-page::after{animation:none}.story-reveal{opacity:1;transform:none;transition:none}}@media print{.chapter-rail,.story-progress,.story-visual{display:none!important}.legal-story-main{width:100%;padding:36px 0}.legal-story-hero{min-height:0;display:block}.story-layout{display:block;padding:0}.story-reveal{opacity:1;transform:none}.story-chapter{break-inside:avoid;padding:24px 0}.legal-footer{background:white;color:black;border-top:1px solid #aaa}}

/* Strukturierte AGB und Ausfalltabelle */
.story-chapter{scroll-margin-top:96px}
.clause-list,.story-chapter .subclause-list{margin:0;padding:0;display:block;list-style:none}.clause-list>li,.story-chapter .subclause-list>li{display:grid;grid-template-columns:52px minmax(0,1fr);gap:12px;padding:15px 0;margin:0;border:0;border-top:1px solid var(--line);background:transparent;color:#3e435d;font-size:13px;line-height:1.72}.clause-list>li:first-child{border-top:0}.clause-number{color:var(--blue);font-size:10px;font-weight:850;letter-spacing:.04em}.story-chapter .subclause-list{margin:13px 0}.story-chapter .subclause-list>li{grid-template-columns:54px minmax(0,1fr);padding:11px 0;font-size:12px}.story-chapter .subclause-list>li::before{display:none}.story-chapter .subclause-list>li:last-child{border-bottom:1px solid var(--line)}.pending-chapters .draft-note{margin-bottom:0}.absence-table-shell{overflow:auto;margin:28px 0 42px;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:0 24px 65px rgba(31,39,99,.08);outline:none;scrollbar-color:#7d86ef rgba(79,89,221,.08);scrollbar-width:thin}.absence-table{width:100%;min-width:760px;border-collapse:separate;border-spacing:0;table-layout:fixed}.absence-table caption{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.absence-table th,.absence-table td{position:relative;padding:22px 19px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);color:#3e435d;font-size:13px;line-height:1.55;text-align:left;vertical-align:top;transition:background .18s ease,color .18s ease,transform .18s ease}.absence-table thead th{background:#f1f2f8;color:var(--ink);font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.11em}.absence-table tbody th{width:38%;color:var(--ink);font-weight:720}.absence-table tr:last-child>*{border-bottom:0}.absence-table tr>*:last-child{border-right:0}.absence-table small{color:var(--muted);font-size:10px}.absence-table .is-row-active{background:rgba(79,89,221,.055)}.absence-table .is-col-active{background:rgba(79,89,221,.09)}.absence-table .is-row-active.is-col-active{background:rgba(79,89,221,.14)}.absence-table .is-cell-active{z-index:2;background:#dfe3ff!important;color:var(--blue-ink)!important;box-shadow:0 0 0 2px rgba(79,89,221,.42) inset,0 8px 26px rgba(31,39,99,.11);transform:translateY(-1px)}.absence-table td:focus-visible,.absence-table th:focus-visible{outline:2px solid var(--blue);outline-offset:-4px}
@media(max-width:600px){.clause-list>li{grid-template-columns:44px minmax(0,1fr);gap:8px;font-size:12px}.story-chapter .subclause-list>li{grid-template-columns:50px minmax(0,1fr);font-size:11px}.absence-table-shell{border-radius:16px}.absence-table th,.absence-table td{padding:17px 14px;font-size:12px}.absence-table tr>*:first-child{position:sticky;left:0;z-index:3;background:#f8f8f4;box-shadow:8px 0 18px rgba(31,39,99,.08)}.absence-table thead tr>*:first-child{z-index:5;background:#f1f2f8}.absence-table tr>*:first-child.is-row-active{background:#eff1ff}.absence-table tr>*:first-child.is-cell-active{background:#dfe3ff!important}}
@media print{.story-chapter{break-inside:auto}.story-chapter h2,.clause-list>li,.absence-table-shell{break-inside:avoid}.absence-table-shell{overflow:visible;box-shadow:none}.absence-table{min-width:0}.absence-table th,.absence-table td{padding:10px;font-size:9px}}

/* Finale AGB-Fassung */
.provider-strip{display:flex;justify-content:space-between;gap:32px;padding:24px 0;border-bottom:1px solid var(--line)}
.provider-strip p{margin:0;color:var(--muted);font-size:11px;line-height:1.7}
.provider-strip p:last-child{text-align:right}
.provider-strip a{color:var(--blue-dark);font-weight:720;text-underline-offset:3px}
.story-chapter h3{margin:34px 0 12px;color:var(--blue-ink);font-size:15px;letter-spacing:-.01em}
.service-table{min-width:920px}
.service-table th:first-child{width:22%}
.service-table th:nth-child(2){width:62%}
.service-table th:last-child{width:16%}
.price-terms-table{min-width:980px;table-layout:auto}
.price-terms-table th:first-child{min-width:155px}
.price-terms-table th:nth-child(4){min-width:125px}
.price-terms-table td:nth-child(n+5){white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:700px){.provider-strip{display:block}.provider-strip p:last-child{margin-top:8px;text-align:left}.service-table{min-width:820px}}
