/* =================================== */
/* DSGVO / Datenschutz Styling         */
/* =================================== */

body {
    margin: 0;
    color: var(--text-800);
    background: #0f1920;
}

.legal-page {
    position: relative;
    min-height: 100vh;
    background: radial-gradient(circle at 20% 20%, rgba(0,150,215,0.18), transparent 32%),
                radial-gradient(circle at 80% 0%, rgba(255,255,255,0.08), transparent 30%),
                linear-gradient(180deg, #0b1a22, #0f1f2a 40%, #0c171f);
}

.legal-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: linear-gradient(180deg, rgba(12,22,31,0.65), rgba(12,22,31,0.85)), url('/scr/strandspaziergang_2560_q78.jpg');
    background-size: cover;
    background-position: 68% center; /* Paar steht rechts der Bildmitte */
    opacity: 0.55;
    pointer-events: none;
    z-index: -1;
}

/* .material-symbols-outlined icon style is defined globally in global.css */

.legal-main {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto 96px;
    padding: 32px 20px 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: calc(var(--header-height, 56px) + 16px);
}

.legal-anchor {
    position: relative;
    top: -120px;
    height: 1px;
    width: 1px;
    display: block;
}

.legal-hero {
    color: var(--text-900);
    background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.92));
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: var(--shadow-md);
    padding: clamp(22px, 4vw, 32px);
    display: grid;
    gap: 18px;
}

.legal-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(0,150,215,0.12);
    border-radius: var(--radius-pill);
    color: var(--brand-accent-700);
    font-weight: 700;
    letter-spacing: 0.2px;
    width: fit-content;
}

.legal-hero__titles h1 {
    margin: 4px 0 6px;
    color: var(--text-900);
    font-size: clamp(2rem, 3vw, 2.6rem);
}

.legal-lead {
    margin: 0;
    color: var(--text-700);
    font-size: 1.05rem;
    max-width: 720px;
}

.legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(15,35,45,0.06);
    border: 1px solid rgba(15,35,45,0.12);
    border-radius: 12px;
    font-weight: 600;
    color: var(--text-800);
}

.meta-link {
    color: var(--brand-accent-700);
    text-decoration: none;
}

.meta-link:hover { text-decoration: underline; }

.legal-hero__support {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-chip {
    padding: 10px 14px;
    background: #0f232b;
    color: #fff;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 10px 28px rgba(15,35,45,0.16);
}

.legal-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.legal-card {
    background: var(--bg-elev-1);
    padding: 20px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: var(--shadow-sm);
}

.legal-card h2,
.legal-card h3 { margin-top: 0; color: var(--text-900); }

.legal-card--toc {
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(0,150,215,0.22);
    box-shadow: var(--shadow-md);
}

.toc-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.toc-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--brand-accent);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 10px 24px rgba(0,150,215,0.28);
    letter-spacing: 0.1px;
}

.toc-pill:hover {
    background: var(--brand-accent-600);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0,150,215,0.32);
}

.legal-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.legal-block {
    background: rgba(255,255,255,0.96);
    border-radius: 16px;
    padding: clamp(20px, 3vw, 28px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

.block-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.block-kicker {
    display: inline-flex;
    padding: 6px 10px;
    background: rgba(0,150,215,0.08);
    color: var(--brand-accent-700);
    border-radius: 10px;
    font-weight: 700;
    width: fit-content;
}

.legal-block h2 {
    margin: 0;
    color: var(--text-900);
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
}

.legal-block h3 {
    margin-bottom: 8px;
    margin-top: 14px;
    color: var(--text-900);
}

.legal-block p {
    line-height: 1.7;
    color: var(--text-700);
}

.legal-bullets {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.legal-bullets li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--text-800);
}

.legal-bullets li::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand-accent);
    position: absolute;
    left: 0;
    top: 8px;
    box-shadow: 0 0 0 6px rgba(0,150,215,0.10);
}

.sub-block {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(0,150,215,0.16);
    background: rgba(0,150,215,0.03);
    margin-top: 8px;
}

.sub-block h4 {
    margin: 14px 0 6px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand-accent-700);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.legal-note {
    background: rgba(15,35,45,0.04);
    border-left: 4px solid var(--brand-accent);
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text-700);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 10px;
}

.contact-card {
    background: rgba(0,150,215,0.06);
    border: 1px solid rgba(0,150,215,0.12);
    border-radius: 12px;
    padding: 14px;
    color: var(--text-800);
}

.contact-label {
    font-weight: 700;
    color: var(--text-900);
    display: block;
    margin-bottom: 6px;
}

.contact-text { margin: 0; line-height: 1.6; }

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-800);
}

.contact-link {
    color: var(--brand-accent-700);
    font-weight: 700;
    text-decoration: none;
}

.contact-link:hover { text-decoration: underline; }

.contact-list--inline {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 18px;
}

.legal-rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin: 12px 0 6px;
}

.right-card {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.06);
    background: rgba(255,255,255,0.92);
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.right-card p { margin: 6px 0 0; color: var(--text-700); }

.legal-block strong { color: var(--brand-accent-700); }
.legal-block a { color: var(--brand-accent-700); text-decoration: none; }
.legal-block a:hover { text-decoration: underline; }

/* Footer */
footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    text-align: center;
    background: #18262f;
    color: #ffffff;
    bottom: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
    position: relative;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
}

footer::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(24, 38, 47, 0), rgba(24, 38, 47, 0.3) 40%, rgba(24, 38, 47, 0.7) 70%, #18262f);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: none;
}

.footer_separator {
    width: 100%;
    max-width: 1200px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 20px auto 25px;
}

.footer_bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    column-gap: 30px;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 40px 20px;
    box-sizing: border-box;
    margin: 0 auto;
    position: relative;
}

.footer_copyright {
    color: white;
    font-size: 13px;
    text-align: left;
    flex-shrink: 0;
    line-height: 1.4;
    grid-column: 1;
}

.footer_social {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

.footer_social_icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer_social_icon:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

.container_disclaimer {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Icons auf einer Hoehe, auch bei zweizeiligem Text */
    gap: 30px;
    margin: 0;
    box-sizing: border-box;
    flex-shrink: 0;
    grid-column: 2;
}

.feature_icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    color: white;
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.feature_icon:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

.container_disclaimer .material-symbols-outlined {
    color: white !important;
    font-size: 20px;
}

.feature_card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.2s ease-in-out;
    margin: 0;
}

.feature_card h4 {
    margin: 0;
    font-size: 0.95em;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    padding-top: 8px;
    letter-spacing: 0.3px;
    white-space: nowrap; /* "Widerruf der Polizze" einzeilig */
}

.feature_card:hover h4 { color: #ffffff; }

@media (max-width: 768px) {
    footer::before { height: 60px; top: -60px; }
    .footer_separator { margin: 15px auto 12px; opacity: 0.4; }
    .footer_bottom { display: flex; flex-direction: column; gap: 18px; padding: 0 20px 20px; text-align: center; }
    .container_disclaimer { order: 1; gap: 20px; }
    .footer_copyright { position: static; text-align: center; font-size: 12px; order: 3; }
    .feature_card h4 { font-size: 1.05em; font-weight: 500; padding-top: 9px; }
    .feature_icon { width: 42px; height: 42px; border-width: 1.5px; }
    .footer_social { order: 2; }
}

@media (max-width: 480px) {
    footer::before { height: 40px; top: -40px; }
    .footer_separator { width: calc(100% - 20px); margin: 12px auto 10px; }
    .footer_bottom { width: calc(100% - 20px); gap: 16px; }
    .container_disclaimer { gap: 18px; }
    .feature_card { max-width: 100px; }
    .feature_card h4 { font-size: 0.95em; padding-top: 8px; white-space: normal; }
    .feature_icon { width: 40px; height: 40px; }
    .container_disclaimer .material-symbols-outlined { font-size: 20px; }
    .footer_copyright { font-size: 11px; }
    .footer_social_icon { width: 38px; height: 38px; border-width: 1.5px; }
    .footer_social { gap: 10px; }
}

/* Support Modal */
.support_popup {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.support_popup_content {
    background: #fff;
    color: #0f1f2a;
    padding: 2em;
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(0,0,0,0.18);
    min-width: 280px;
    max-width: 90vw;
    text-align: center;
    position: relative;
}

.support_popup_close {
    position: absolute;
    top: 12px; right: 16px;
    font-size: 1.5em;
    cursor: pointer;
}

.support_popup_actions {
    margin-top: 1.5em;
    display: flex;
    gap: 1em;
    justify-content: center;
}

.support_popup_btn {
    background: #0096D7;
    color: #fff;
    padding: 0.7em 1.2em;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.2s;
}

.support_popup_btn:hover { background: #007FB7; }

.scroll_to_top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.3s ease, bottom 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.scroll_to_top.visible { opacity: 1; visibility: visible; }

.scroll_to_top:hover {
    transform: translateY(-5px);
    background-color: rgba(0, 150, 215, 0.2);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.scroll_to_top::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%) rotate(-135deg);
    width: 10px;
    height: 10px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
}

@media (max-width: 900px) {
    .legal-main { padding: 20px 16px 0; }
    .legal-hero { padding: 20px; }
    .legal-overview { grid-template-columns: 1fr; }
    .contact-list--inline { flex-direction: column; }
}

@media (max-width: 640px) {
    .legal-page::before { opacity: 0.75; }
    .hero-chip { width: 100%; }
    .legal-meta { flex-direction: column; align-items: flex-start; }
    .legal-anchor { top: -90px; }
    .scroll_to_top { bottom: 20px; right: 20px; width: 45px; height: 45px; }
    .scroll_to_top::after { bottom: 13px; width: 9px; height: 9px; }
}
