.guide {
    padding: 4rem 0;
}

.guide h2 {
    text-align: center;
    margin-bottom: 0.75rem;
}

.guide {
    background: var(--theme-bg-secondary, var(--light));
}

.step {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--theme-bg-primary, var(--white));
    border: 1px solid var(--theme-border-color, var(--border-color));
    border-radius: var(--radius-lg, 12px);
}

.notes {
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.note {
    background: var(--theme-bg-primary, var(--white));
    border: 1px solid var(--theme-border-color, var(--border-color));
    border-radius: var(--radius, 8px);
    overflow: hidden;
}

.security {
    padding: 4rem 0;
}

.security h2 {
    text-align: center;
    margin-bottom: 0.75rem;
}

.compliance {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 1.5rem 1.75rem;
    background: var(--theme-bg-secondary, var(--light));
    border: 1px solid var(--theme-border-color, var(--border-color));
    border-radius: var(--radius-lg, 12px);
}

.security {
    position: relative;
    
    perspective: 900px;
    
    background: var(--theme-bg-secondary, var(--light));
}

.standard {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: var(--theme-bg-primary, var(--white));
    border: 1px solid var(--theme-border-color, var(--border-color));
    border-radius: var(--radius, 8px);
}

.hero--shop {
    position: relative;
    overflow: hidden;
    
    padding-bottom: 10.5rem;
}

.hero--shop > .container { position: relative; z-index: 3; }

.hero--shop:not(.hero--kulisse) .btn-outline {
    background: var(--theme-bg-primary, #fff);
}

.hero-rivy {
    position: relative;
    
    z-index: 3;
    display: inline-flex;
    align-items: flex-end;
    gap: 0.75rem;
    
    margin: 0.75rem auto 2.5rem;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    text-align: left;
}

.hero-rivy__bild {
    flex: 0 0 auto;
    width: 88px;
    height: 88px;
    transform-origin: 50% 85%;
    
    animation: rivy-winken 6s ease-in-out infinite;
}

@keyframes rivy-winken {
    0%, 62%, 100% { transform: rotate(0deg); }
    66%           { transform: rotate(-13deg); }
    70%           { transform: rotate(9deg); }
    74%           { transform: rotate(-9deg); }
    78%           { transform: rotate(6deg); }
    82%           { transform: rotate(0deg); }
}

.hero-rivy__blase {
    position: relative;
    padding: 0.75rem 1.1rem;
    border-radius: 14px 14px 4px 14px;
    background: var(--theme-bg-primary, #fff);
    border: 1px solid var(--theme-border-color, var(--border-color));
    box-shadow: var(--shadow);
    font-weight: 600;
    color: var(--theme-text-primary, var(--text-primary));
    white-space: nowrap;
    
    animation: blase-auf 0.4s ease-out 0.3s both;
}

@keyframes blase-auf {
    from { opacity: 0; transform: translateY(6px) scale(0.94); }
    to   { opacity: 1; transform: none; }
}

.hero-rivy__blase::after {
    content: "";
    position: absolute;
    right: -7px;
    bottom: 8px;
    width: 12px;
    height: 12px;
    background: inherit;
    border-right: 1px solid var(--theme-border-color, var(--border-color));
    border-bottom: 1px solid var(--theme-border-color, var(--border-color));
    transform: rotate(-45deg);
}

.hero-rivy__text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    vertical-align: bottom;
    
    box-sizing: content-box;
    padding-right: 1px;
    
    border-right: 2px solid var(--primary);
    animation:
        tippen 1.6s steps(22, end) 0.7s both,
        marke 0.6s step-end 0.7s 4,
        marke-weg 0.01s linear 3.1s forwards;
}

@keyframes tippen {
    from { width: 0; }
    to   { width: 100%; }
}

@keyframes marke {
    0%, 100% { border-color: var(--primary); }
    50%      { border-color: transparent; }
}

@keyframes marke-weg {
    to { border-color: transparent; }
}

.hero-rivy:hover .hero-rivy__blase,
.hero-rivy:focus-visible .hero-rivy__blase {
    border-color: var(--primary);
}

.hero-rivy:hover .hero-rivy__bild {
    animation: rivy-winken 1.2s ease-in-out infinite;
}

@media (max-width: 34rem) {
.hero-rivy {
        flex-direction: column-reverse;
        align-items: center;
        gap: 0.4rem;
    }
.hero-rivy__bild { width: 64px; height: 64px; }
.hero-rivy__blase {
        border-radius: 14px 14px 14px 4px;
        font-size: 0.92rem;
        white-space: normal;
        text-align: center;
    }
.hero-rivy__blase::after { right: auto; left: 12px; bottom: -7px; }
.hero-rivy__text {
        animation: none;
        border-right: 0;
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
.hero-rivy__bild,
    .hero-rivy__blase,
    .hero-rivy__text {
        animation: none !important;
    }
.hero-rivy__text { border-right: 0; }
}

.btn-spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: btn-dreht 0.7s linear infinite;
    vertical-align: -0.125em;
}

@keyframes btn-dreht {
    to { transform: rotate(360deg); }
}

.abschluss {
    padding: 4rem 0 5rem;
    background: var(--theme-bg-secondary, var(--light));
    text-align: center;
}

.abschluss h2 {
    margin-bottom: 0.75rem;
}

.abschluss p {
    max-width: 44rem;
    margin: 0 auto 1.75rem;
    color: var(--theme-text-secondary, var(--text-secondary));
    line-height: 1.65;
}

.abschluss__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.isolation {
    padding: 4rem 0;
}

.isolation h2 {
    text-align: center;
    margin-bottom: 0.75rem;
}

.bereich {
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--theme-bg-primary, var(--white));
    border: 1px solid var(--theme-border, var(--border-color));
}

.bereich ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.bereich li {
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--theme-text-secondary, var(--text-secondary));
}

.bereich li::before {
    content: "·";
    margin-right: 0.5rem;
    color: var(--marke-auf-dunkel, var(--primary));
    font-weight: 700;
}

.zahlenband {
    
    padding: 2.5rem 0 3.5rem;
    
    border-bottom: 1px solid var(--theme-border, var(--border-color));
    background: var(--theme-bg-secondary, var(--light));
}

.zahlenband__reihe {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
    gap: 1.5rem 2rem;
    margin: 0;
}

.zahlenband__zahl dt {
    margin-bottom: 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--theme-text-secondary, var(--text-secondary));
}

.zahlenband__zahl dd {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.zahlenband__zahl strong {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1;
    color: var(--marke-auf-dunkel, var(--primary));
    font-variant-numeric: tabular-nums;
}

.zahlenband__zahl dd > span {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--theme-text-secondary, var(--text-secondary));
}

.zahlenband__fuss {
    margin: 1.75rem 0 0;
    max-width: 46rem;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--theme-text-secondary, var(--text-secondary));
}

:root:not([data-theme="dark"]) {
    --theme-text-secondary: #687179;
}

:root[data-theme="light"] {
    --theme-text-secondary: #687179;
}

.zahlenband {
    background: var(--theme-bg-primary);
}

.abschluss {
    background: var(--theme-bg-primary);
}

.hero__title-text,
.hero__title-zusatz {
    display: block;
}

.hero__title-zusatz {
    font-size: 0.62em;
    font-weight: 600;
    color: var(--primary);
    margin-top: 0.3rem;
}

.menue-knopf {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.7rem;
    border: 1px solid var(--theme-border-color, #dee2e6);
    border-radius: 8px;
    background: transparent;
    color: var(--theme-text-primary);
    font: inherit;
    font-size: 0.86rem;
    cursor: pointer;
}

.menue-knopf:hover,
.menue-knopf:focus-visible {
    border-color: var(--primary);
}

.menue-knopf__striche {
    position: relative;
    display: block;
    width: 1.1rem;
    height: 2px;
    background: currentColor;
}

.menue-knopf__striche::before,
.menue-knopf__striche::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
}

.menue-knopf__striche::before { top: -6px; }

.menue-knopf__striche::after  { top: 6px; }

.menue-knopf[aria-expanded="true"] .menue-knopf__striche {
    background: transparent;
}

.menue-knopf[aria-expanded="true"] .menue-knopf__striche::before {
    top: 0;
    transform: rotate(45deg);
}

.menue-knopf[aria-expanded="true"] .menue-knopf__striche::after {
    top: 0;
    transform: rotate(-45deg);
}

.uebersichtsmenue {
    position: fixed;
    inset: 0;
    z-index: 1000;
    overflow-y: auto;
    background: rgba(11, 11, 15, 0.97);
    padding: 5rem 1rem 3rem;
}

.menue-offen,
.menue-offen body {
    overflow: hidden;
}

.uebersichtsmenue__inhalt {
    max-width: 1140px;
    margin: 0 auto;
}

.uebersichtsmenue__spalten {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr);
}

.menuespalte h2 {
    margin: 0 0 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
}

.menuespalte__zweiter {
    margin-top: 2rem !important;
}

.menuespalte ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.menuespalte li + li {
    margin-top: 0.1rem;
}

.uebersichtsmenue .menuespalte a {
    display: block;
    padding: 0.4rem 0;
    font-size: 1.05rem;
    color: #e9eaee;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.uebersichtsmenue .menuespalte a:hover,
.uebersichtsmenue .menuespalte a:focus-visible {
    color: #ffffff;
    border-bottom-color: var(--primary);
}

.uebersichtsmenue .menuespalte i {
    font-size: 0.78em;
    opacity: 0.7;
}

@media (min-width: 720px) {
.uebersichtsmenue__spalten {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 1000px) {
.uebersichtsmenue__spalten {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 860px) {
.menue-knopf__wort {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

:root {
    --keil: max(36px, calc(100vw * 0.05));
}

section:has(+ .bereiche),
section:has(+ .unterbau) {
    padding-bottom: calc(var(--keil) + 1.5rem);
}

.einleitung {
    position: relative;
    z-index: 2;
    
    padding: 2.5rem 0 calc(6rem + var(--keil));
    margin-bottom: calc(-1 * var(--keil));
    background: var(--theme-bg-secondary);
    clip-path: polygon(
        0 0,
        100% 0,
        100% calc(100% - var(--keil)),
        0 100%);
}

.einleitung .container {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 900px) {
.einleitung .container {
        grid-template-columns: 1.35fr 1fr;
        align-items: start;
        gap: 3.5rem;
    }
}

.einleitung__ueber {
    margin: 0 0 0.5rem;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.einleitung h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
    line-height: 1.2;
}

.einleitung__lead {
    margin: 0 0 1rem;
    font-size: 1.08rem;
    line-height: 1.6;
}

.einleitung__text p:last-child {
    margin: 0;
    color: var(--theme-text-secondary);
    line-height: 1.6;
}

.einleitung__punkte {
    display: grid;
    gap: 1.1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.einleitung__punkte li {
    display: grid;
    
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.85rem;
    align-items: baseline;
}

.einleitung__punkte i {
    grid-row: 1 / span 2;
    align-self: start;
    color: var(--primary);
    font-size: 1.25rem;
    line-height: 1.3;
}

.einleitung__punkte strong {
    font-size: 1rem;
}

.einleitung__punkte span {
    color: var(--theme-text-secondary);
    font-size: 0.93rem;
    line-height: 1.5;
}

.uebersichtsmenue__logo {
    display: inline-flex;
    align-items: center;
}
