.privacy-page {
    background: var(--bg-white);
    padding-top: 16px;
}

.privacy-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    padding: 8rem 5% 5rem;
    border-bottom: 1px solid #eef2f7;
}

.privacy-hero::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -160px;
    top: -170px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(3,147,44,0.14), transparent 64%);
    pointer-events: none;
}

.privacy-hero::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    left: -150px;
    bottom: -170px;
    border-radius: 50%;
    background: radial-gradient(circle at 70% 40%, rgba(227,96,104,0.13), transparent 65%);
    pointer-events: none;
}

.privacy-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
}

.privacy-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.4rem;
    color: var(--secondary);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.privacy-kicker::before {
    content: "";
    width: 34px;
    height: 3px;
    border-radius: 999px;
    background: var(--secondary);
}

.privacy-hero h1 {
    max-width: 900px;
    margin-bottom: 1.3rem;
    color: var(--text-dark);
    font-size: clamp(2.7rem, 7vw, 6.5rem);
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: -0.055em;
}

.privacy-hero-text {
    max-width: 860px;
    color: var(--text-light);
    font-size: clamp(1.08rem, 2vw, 1.35rem);
    line-height: 1.65;
}

.privacy-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.privacy-pill {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0.6rem 1rem;
    border: 1px solid #e7eef7;
    border-radius: 999px;
    background: rgba(255,255,255,0.82);
    box-shadow: 0 10px 30px rgba(15,23,42,0.04);
    color: var(--text-dark);
    font-size: 0.92rem;
    font-weight: 700;
}


.privacy-layout {
    max-width: 1440px;
    margin: 0 auto;
    padding: 4rem clamp(2rem, 4vw, 4rem);
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 2.5rem;
}

.privacy-toc {
    align-self: start;
    position: sticky;
    top: 118px;
}

.privacy-toc-card,
.privacy-card {
    background: var(--bg-white);
    border: 1px solid #eef2f7;
    border-radius: 24px;
    box-shadow: 0 16px 42px rgba(15,23,42,0.055);
}

.privacy-toc-card {
    overflow: hidden;
    padding: 1.4rem;
}

.privacy-toc-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.privacy-toc-title::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 7px rgba(3,147,44,0.09);
}

.privacy-toc ol {
    display: grid;
    gap: 0.2rem;
    margin: 0;
    padding: 0;
    padding-right: 0.3rem;
    list-style: none;
    counter-reset: privacy-toc;
}

.privacy-toc li {
    counter-increment: privacy-toc;
}

.privacy-toc a {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.55rem;
    padding: 0.55rem 0.55rem;
    border-radius: 13px;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1.35;
    transition: var(--transition);
}

.privacy-toc a::before {
    content: counter(privacy-toc, decimal-leading-zero);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 900;
}

.privacy-toc a:hover {
    background: var(--bg-light);
    color: var(--text-dark);
    transform: translateX(3px);
}

.privacy-content {
    max-width: none;
    width: 100%;
}

.privacy-card {
    position: relative;
    overflow: hidden;
}

.privacy-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
}


.privacy-card,
.privacy-article {
    max-width: none;
    width: 100%;
}

.privacy-section {
    padding: 2.4rem clamp(1.4rem, 4vw, 3rem);
    border-bottom: 1px solid #eef2f7;
    scroll-margin-top: 120px;
}

.privacy-section:last-child {
    border-bottom: 0;
}

.privacy-section h2 {
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: clamp(1.45rem, 3vw, 2.15rem);
    line-height: 1.16;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.privacy-section h3 {
    margin: 1.7rem 0 0.7rem;
    color: var(--text-dark);
    font-size: 1.18rem;
    line-height: 1.25;
    font-weight: 850;
}

.privacy-section p {
    margin: 0 0 1rem;
    color: var(--text-light);
    line-height: 1.78;
}

.privacy-section strong {
    color: var(--text-dark);
    font-weight: 850;
}

.privacy-section a:not(.privacy-button) {
    color: var(--primary);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.22em;
}

.privacy-section ul,
.privacy-section ol {
    margin: 1rem 0 1.2rem;
    padding-left: 1.2rem;
    color: var(--text-light);
}

.privacy-section ul {
    list-style: disc;
}

.privacy-section ol {
    list-style: decimal;
}

.privacy-section li {
    margin: 0.35rem 0;
    padding-left: 0.2rem;
    line-height: 1.7;
}

.privacy-note,
.privacy-example,
.privacy-address,
.privacy-code {
    margin: 1.2rem 0;
    border-radius: 20px;
}

.privacy-note {
    padding: 1.1rem 1.2rem;
    border: 1px solid rgba(3,147,44,0.16);
    background: rgba(3,147,44,0.055);
}

.privacy-note p:last-child,
.privacy-address p:last-child {
    margin-bottom: 0;
}

.privacy-example {
    padding: 1rem 1.1rem;
    border: 1px solid #eef2f7;
    background: var(--bg-light);
    color: var(--text-dark);
    font-weight: 750;
}

.privacy-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.2rem 0;
}

.privacy-address {
    padding: 1.2rem;
    border: 1px solid #eef2f7;
    background: var(--bg-light);
}

.privacy-address p {
    color: var(--text-dark);
    line-height: 1.65;
}

.privacy-code {
    display: block;
    overflow-x: auto;
    padding: 1rem 1.1rem;
    background: #0f172a;
    color: rgba(255,255,255,0.9);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.88rem;
    line-height: 1.7;
}

.privacy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin: 0.3rem 0 1rem;
    padding: 0.75rem 1.2rem;
    border: 0;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 25px rgba(3,147,44,0.18);
    cursor: pointer;
    font: inherit;
    font-weight: 850;
    transition: var(--transition);
}

.privacy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(3,147,44,0.22);
}

.privacy-small {
    font-size: 0.92rem;
}

@media (min-width: 1500px) {
    .privacy-layout {
        max-width: 1600px;
        grid-template-columns: 300px minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .privacy-toc a,
    .privacy-button {
        transition: none !important;
        transform: none !important;
    }
}

@media (max-width: 1050px) {
    .privacy-layout {
        grid-template-columns: 1fr;
        padding-top: 3rem;
    }

    .privacy-toc {
        position: static;
    }

    .privacy-toc ol {
        max-height: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .privacy-layout {
        grid-template-columns: 1fr;
        max-width: 100%;
        padding: 2.5rem 1.25rem;
    }
}

@media (max-width: 768px) {
    .privacy-page {
        padding-top: 80px;
    }

    .privacy-hero {
        padding: 5.5rem 5% 3.5rem;
    }

    .privacy-layout {
        gap: 1.5rem;
        padding: 2.5rem 5%;
    }

    .privacy-toc ol,
    .privacy-contact-grid {
        grid-template-columns: 1fr;
    }

    .privacy-section {
        padding: 1.7rem 1.25rem;
    }
}

.toc-scroll {
    max-height: calc(100vh - 220px);
    overflow-y: hidden;
    scrollbar-width: thin;
    overscroll-behavior: contain;
    padding-right: 0.15rem;
}

.toc-scroll::-webkit-scrollbar {
    width: 0;
}

.toc-panel:hover .toc-scroll::-webkit-scrollbar {
    width: 8px;
}

.toc-scroll::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.24);
    border-radius: 999px;
}

.toc-scroll::-webkit-scrollbar-track {
    background: transparent;
}

/* NUR wenn Maus drüber (oder Fokus per Tastatur) => TOC wird scrollbar */
.toc-panel:hover .toc-scroll,
.toc-panel:focus-within .toc-scroll{
  overflow-y: auto;
}

@media (max-width: 900px) {
  .toc-panel,
  .toc-scroll {
    overscroll-behavior-y: auto;
    touch-action: pan-y;
  }
}