/* =========================================================
   DATENSCHUTZ - SFWV Zwickau
========================================================= */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.datenschutz-page {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #333333;
    background: #f5f7fa;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: #d70000;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 90%;
    max-width: 1100px;
    min-width: 0;
    margin: 0 auto;
}

/* Header */

header{
    position:fixed;
    top:0;
    left:0;
    width:100%;

    background:rgba(255,255,255,.85);

    backdrop-filter:blur(15px);

    border-bottom:1px solid #e5e7eb;

    z-index:1000;
}

.navbar {
    position: relative;

    height: 110px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.mobile-menu-button {
    display: none;
}

/* Logo */

.logo {
    display: flex;
    align-items: center;
    gap: 18px;

    color: inherit;
    text-decoration: none;
}

.logo:hover,
.logo:focus,
.logo:focus-visible {
    color: inherit;
    text-decoration: none;
}

.logo:focus-visible {
    outline: 3px solid #e30613;
    outline-offset: 4px;
    border-radius: 6px;
}

.logo-icon img {
    display: block;

    width: auto;
    height: 120px;

    object-fit: contain;

    transition: transform 0.3s ease;
}

.logo-icon img:hover {
    transform: scale(1.05);
}

.logo-text h3 {
    margin: 0;
    text-transform:uppercase;

    color: #e30613;
    font-size: 18px;
    line-height: 1;
}
.logo-text span {
    color: #000000;
    font-size: 16px;
}

/* Desktop-Navigation */

#hauptnavigation ul {
    display: flex;
    align-items: center;
    gap: 40px;

    margin: 0;
    padding: 0;

    list-style: none;
}

#hauptnavigation a {
    color: #222222;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;

    transition: color 0.3s ease;
}

#hauptnavigation a:hover,
#hauptnavigation a:focus-visible {
    color: #d70000;
    text-decoration: none;
}

#hauptnavigation a:focus-visible {
    outline: 3px solid #e30613;
    outline-offset: 4px;
    border-radius: 3px;
}
/* =========================
   Mobile Navigation
========================= */


@media (max-width: 1000px) {
    .navbar {
        height: auto;
        min-height: 90px;

        flex-direction: row;

        padding-top: 15px;
        padding-bottom: 15px;
    }

    .navbar .logo {
        min-width: 0;
        gap: 10px;
    }

    .navbar .logo-icon img {
        width: 65px;
        height: auto;
    }

    .navbar .logo-text h3 {
        margin: 0;
        font-size: 12px;
    }

    .navbar .logo-text span {
        font-size: 12px;
    }

    .mobile-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        flex-shrink: 0;

        margin-left: auto;
        padding: 12px 16px;

        border: 0;
        border-radius: 10px;

        background: #e30613;
        color: #ffffff;

        font: inherit;
        font-weight: 700;

        cursor: pointer;
    }

    .mobile-menu-button:focus-visible {
        outline: 3px solid #222222;
        outline-offset: 3px;
    }

    .navbar #hauptnavigation {
        position: absolute;
        top: 100%;
        right: 0;
        z-index: 1000;

        display: none;

        width: min(280px, 100%);
        padding: 12px;

        background: #ffffff;
        border-radius: 0 0 16px 16px;

        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    }

    .navbar #hauptnavigation.is-open {
        display: block;
    }

    .navbar #hauptnavigation ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;

        width: 100%;
        margin: 0;
        padding: 0;

        list-style: none;
    }

    .navbar #hauptnavigation a {
        display: block;

        width: 100%;
        padding: 14px 16px;

        border-radius: 8px;

        color: #222222;
        font-weight: 600;
        text-decoration: none;
        text-transform: uppercase;

        overflow-wrap: anywhere;
    }

    .navbar #hauptnavigation a:hover,
    .navbar #hauptnavigation a:focus-visible {
        background: #fff0f1;
        color: #e30613;
    }
}

/* Hero */
.datenschutz-hero {
    padding: 85px 0 65px;
    background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%);
    border-bottom: 1px solid #e5e7eb;
}

.section-tag {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 16px;
    color: #d70000;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.4;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.datenschutz-hero h1 {
    max-width: 100%;
    margin: 0;
    color: #222222;
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.datenschutz-hero p {
    max-width: 760px;
    margin-top: 20px;
    color: #666666;
    font-size: 20px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

/* Inhalt */
.datenschutz-inhalt {
    padding: 70px 0;
}

.datenschutz-dokument {
    padding: 50px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.datenschutz-dokument h1,
.datenschutz-dokument h2 {
    margin: 45px 0 20px;
    color: #222222;
    font-size: 30px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.datenschutz-dokument h1:first-child,
.datenschutz-dokument h2:first-child {
    margin-top: 0;
}

.datenschutz-dokument h3 {
    margin: 30px 0 15px;
    color: #d70000;
    font-size: 23px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.datenschutz-dokument p {
    margin-bottom: 18px;
    color: #555555;
    font-size: 17px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.datenschutz-dokument ul,
.datenschutz-dokument ol {
    margin: 20px 0;
    padding-left: 26px;
}

.datenschutz-dokument li {
    margin-bottom: 10px;
    color: #555555;
    font-size: 17px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.datenschutz-dokument strong {
    color: #222222;
}

.datenschutz-dokument blockquote {
    margin: 30px 0 0;
    padding: 22px 24px;
    background: #fff4f4;
    border-left: 5px solid #e30613;
    border-radius: 0 14px 14px 0;
}

.datenschutz-dokument blockquote p {
    margin: 0;
    color: #333333;
}

.datenschutz-dokument a {
    font-weight: 700;
    overflow-wrap: anywhere;
}

/* =========================
         Footer
========================= */

.site-footer {
    padding: 28px 0;
    background: #111827;
    color: #ffffff;
}

.site-footer .footer-inhalt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-copyright,
.footer-ersteller {
    margin: 0;
    color: #d1d5db;
    font-size: 14px;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}

.footer-rechtliches {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-footer a,
.site-footer a:visited {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: #ff626c;
    text-decoration: none;
}

.site-footer a:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
    border-radius: 2px;
}

.footer-trenner,
.footer-haupttrenner {
    color: #6b7280;
}

.footer-ersteller a {
    margin-left: 4px;
}

/* Tablet */
@media (max-width: 850px) {
    .site-footer .footer-inhalt {
        flex-direction: column;
        justify-content: center;
        gap: 14px;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 16px;
    }
}

/* Smartphone */
@media (max-width: 550px) {
    .site-footer {
        padding: 24px 0;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    .footer-haupttrenner {
        display: none;
    }

    .footer-copyright,
    .footer-ersteller,
    .site-footer a {
        font-size: 13px;
    }
}
/* Tablet */
@media (max-width: 800px) {
    .container {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    .datenschutz-navbar {
        min-height: auto;
        padding: 18px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .datenschutz-navbar nav ul {
        flex-wrap: wrap;
        gap: 8px 20px;
    }

    .datenschutz-hero {
        padding: 60px 0 45px;
    }

    .datenschutz-hero h1 {
        font-size: clamp(34px, 9vw, 48px);
    }

    .datenschutz-hero p {
        font-size: 18px;
    }

    .datenschutz-inhalt {
        padding: 45px 0;
    }

    .datenschutz-dokument {
        padding: 34px 28px;
        border-radius: 16px;
    }

    .datenschutz-dokument h1,
    .datenschutz-dokument h2 {
        font-size: 27px;
    }

    .datenschutz-footer .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
}

/* Smartphone */
@media (max-width: 480px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .datenschutz-logo img {
        width: 54px;
    }

    .datenschutz-logo-text strong {
        font-size: 24px;
    }

    .datenschutz-logo-text small {
        font-size: 12px;
    }

    .datenschutz-hero {
        padding: 48px 0 38px;
    }

    .datenschutz-hero h1 {
        font-size: 35px;
    }

    .datenschutz-dokument {
        padding: 27px 20px;
    }

    .datenschutz-dokument h1,
    .datenschutz-dokument h2 {
        margin-top: 36px;
        font-size: 25px;
    }

    .datenschutz-dokument h3 {
        font-size: 21px;
    }

    .datenschutz-dokument p,
    .datenschutz-dokument li {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .rechtliches-reveal {
        opacity: 1;
        transform: none;
    }
}

/* =========================================================
   Korrektur nur für Smartphones
   Desktop- und Tabletansicht bleiben unverändert.
========================================================= */

@media (max-width: 600px) {
    header {
        width: 100%;
    }

    .navbar {
        position: relative;
        width: 100%;
        min-height: 78px;
        height: auto;
        margin: 0;
        padding: 9px 16px;

        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .navbar .logo {
        min-width: 0;
        max-width: calc(100% - 98px);
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 1;
    }

    .navbar .logo-icon {
        flex: 0 0 auto;
    }

    .navbar .logo-icon img {
        display: block;
        width: 54px;
        max-width: 54px;
        height: 54px;
        object-fit: contain;
    }

    .navbar .logo-text {
        min-width: 0;
    }

    .navbar .logo-text h2 {
        margin: 0;
        font-size: 25px;
        line-height: 1;
    }

    .navbar .logo-text span {
        display: block;
        margin-top: 3px;
        font-size: 12px;
        line-height: 1.2;
        white-space: nowrap;
    }

    .mobile-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;

        min-height: 42px;
        margin-left: auto;
        padding: 10px 12px;

        border: 0;
        border-radius: 10px;

        background: #e30613;
        color: #ffffff;

        font: inherit;
        font-size: 14px;
        font-weight: 700;
        line-height: 1;

        cursor: pointer;
        touch-action: manipulation;
    }

    .mobile-menu-button:focus-visible {
        outline: 3px solid #222222;
        outline-offset: 3px;
    }

    .navbar #hauptnavigation {
        position: absolute;
        top: 100%;
        right: 16px;
        left: 16px;
        z-index: 1100;

        display: none;
        width: auto;
        max-height: calc(100vh - 94px);
        overflow-y: auto;
        padding: 12px;

        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-top: 0;
        border-radius: 0 0 16px 16px;
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
    }

    .navbar #hauptnavigation.is-open {
        display: block;
    }

    .navbar #hauptnavigation ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;

        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .navbar #hauptnavigation li {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .navbar #hauptnavigation a,
    .navbar #hauptnavigation a:visited {
        display: block;
        width: 100%;
        padding: 14px 16px;

        border-radius: 8px;

        background: transparent;
        color: #222222;

        font-size: 14px;
        font-weight: 700;
        line-height: 1.35;
        text-decoration: none;
        text-transform: uppercase;
        overflow-wrap: anywhere;
    }

    .navbar #hauptnavigation a:hover,
    .navbar #hauptnavigation a:focus-visible {
        background: #fff0f1;
        color: #e30613;
        text-decoration: none;
    }
}

@media (max-width: 380px) {
    .navbar .logo-text span {
        display: none;
    }

    .navbar .logo-text h2 {
        font-size: 23px;
    }

    .mobile-menu-button {
        padding-left: 10px;
        padding-right: 10px;
    }
}

