/* ========== LAYOUT STRUCTURE ========== */

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

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--color-dark-text);
    background-color: var(--color-dark-bg);
    overflow-x: hidden;
    position: relative;
}

.securanet-body {
    background: linear-gradient(135deg, #0a0a1f 0%, #0d0d24 50%, #0a0a1f 100%);
    min-height: 100vh;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-2xl);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========== HEADER & NAVIGATION ========== */

.securanet-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 31, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(124, 58, 237, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.securanet-header.scrolled {
    background: rgba(10, 10, 31, 0.95);
    border-bottom-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

/* Navbar */
.securanet-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    position: relative;
}

/* Logo Section */
.securanet-navbar__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.securanet-logo-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(124, 58, 237, 0.5));
}

.securanet-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.securanet-logo-pulse {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.2);
    animation: logoPulse 2s ease-in-out infinite;
    left: 0;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* Menu */
.securanet-navbar__menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--color-dark-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--color-white);
}

.nav-link:hover::after {
    width: 100%;
}

/* Actions */
.securanet-navbar__actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.securanet-link {
    color: var(--color-dark-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.securanet-link:hover {
    color: var(--color-primary-light);
}

/* ========== MAIN CONTENT ========== */

.securanet-main {
    padding-top: 80px;
    position: relative;
}

/* ========== HERO SECTION ========== */

.securanet-hero {
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

/* Fullscreen Hero Variant */
.securanet-hero--fullscreen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.securanet-hero__content {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.75rem;
    background: linear-gradient(
        135deg,
        rgba(124, 58, 237, 0.15) 0%,
        rgba(6, 182, 212, 0.15) 100%
    );
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: var(--radius-full);
    color: var(--color-primary-light);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s var(--animation-easing);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

/* Hero Title */
.securanet-hero__title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s var(--animation-easing) 0.2s backwards;
}

/* Hero Subtitle */
.securanet-hero__subtitle {
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--color-dark-text-secondary);
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s var(--animation-easing) 0.4s backwards;
}

.line-animate {
    display: inline-block;
    animation: fadeInUp 0.8s var(--animation-easing) backwards;
}

/* Floating Elements */
.floating-element {
    position: absolute;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* ========== SECTIONS ========== */

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s var(--animation-easing);
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: var(--radius-full);
    color: var(--color-primary-light);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.securanet-section__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== MEMBER ACCESS SECTION ========== */

.securanet-member-access {
    padding: 5rem 0;
    position: relative;
}

.securanet-member-box {
    background: linear-gradient(
        135deg,
        rgba(20, 20, 45, 0.8) 0%,
        rgba(30, 30, 60, 0.8) 100%
    );
    backdrop-filter: blur(20px);
    border: 2px solid rgba(124, 58, 237, 0.3);
    border-radius: var(--radius-2xl);
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.security-grid {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    pointer-events: none;
}

.grid-line {
    position: absolute;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(124, 58, 237, 0.5),
        transparent
    );
}

.grid-line.horizontal {
    width: 100%;
    height: 1px;
}

.grid-line.vertical {
    height: 100%;
    width: 1px;
}

.securanet-member-box__icon {
    margin-bottom: 2rem;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.securanet-member-box__text {
    font-size: 1.25rem;
    color: var(--color-dark-text-secondary);
    margin-bottom: 2rem;
}

.typing-text {
    display: inline-block;
    border-right: 2px solid var(--color-primary);
    animation: typing 4s steps(40) infinite, blink 0.75s step-end infinite;
}

@keyframes typing {
    0%, 100% {
        width: 0;
    }
    50% {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* ========== ANIMATIONS ========== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== PARTICLES CANVAS ========== */

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ========== RESPONSIVE DESIGN ========== */

@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .securanet-navbar__menu {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .securanet-navbar {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .securanet-navbar__menu {
        display: none;
    }
    
    .securanet-navbar__actions {
        gap: 1rem;
    }
    
    .securanet-hero {
        padding: 5rem 0 4rem;
    }
    
    .securanet-member-box {
        padding: 3rem 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.6rem 1.25rem;
    }
}


.agb-section {
    padding: 4rem 0 6rem;
}

.agb-section .section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: clamp(1.75rem, 3.4vw, 2.25rem);
    color: var(--color-white);
}

.agb-content {
    background: linear-gradient(180deg, rgba(10,10,20,0.45), rgba(20,20,40,0.45));
    border: 1px solid rgba(124,58,237,0.08);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 12px 40px rgba(0,0,0,0.45);
    display: grid;
    gap: 1rem 1.5rem;
    grid-template-columns: 1fr;
}

.agb-article {
    padding: 1rem 1rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border-radius: 8px;
    border-left: 4px solid transparent;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.agb-article:hover {
    transform: translateY(-4px);
    border-left-color: rgba(124,58,237,0.7);
    box-shadow: 0 8px 30px rgba(0,0,0,0.45);
}

.agb-heading {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.6rem;
}

.agb-subheading {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--color-primary-light);
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.agb-article p {
    color: var(--color-dark-text-secondary);
    margin-bottom: 0.65rem;
}

.agb-list {
    list-style: none;
    margin: 0.5rem 0 0.8rem 0;
    padding-left: 1rem;
}

.agb-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-dark-text-secondary);
}

.agb-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: translateY(-50%);
}

@media (min-width: 900px) {
    .agb-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1300px) {
    .agb-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

.impressum-section {
    padding: 4rem 0 6rem;
}

.impressum-section .section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: clamp(1.75rem, 3.4vw, 2.25rem);
    color: var(--color-white);
}

.impressum-content-single {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.impressum-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.impressum-heading:first-child {
    margin-top: 0;
}

.impressum-subheading {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary-light);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    text-align: center;
}

.impressum-content-single p {
    color: var(--color-dark-text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
    text-align: center;
}

.impressum-content-single a {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.impressum-content-single a:hover {
    color: var(--color-white);
    text-decoration: underline;
}


/* ========== PROFILE SECTION ========== */
.securanet-profile {
    position: relative;
}

.profile-wrapper {
    position: relative;
}

.profile-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 0.5rem;
    background: rgba(167, 139, 250, 0.1);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.profile-button:hover {
    background: rgba(167, 139, 250, 0.2);
    border-color: rgba(167, 139, 250, 0.6);
    transform: translateY(-2px);
}

.profile-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

.profile-username {
    font-weight: 600;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-button svg {
    width: 16px;
    height: 16px;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.profile-menu.active .profile-button svg {
    transform: rotate(180deg);
}

/* Profile Dropdown Menu */
.profile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    min-width: 220px;
    background: rgba(15, 15, 35, 0.95);
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.profile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #e0e0e0;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.profile-menu-item:hover {
    background: rgba(167, 139, 250, 0.15);
    color: #a78bfa;
    padding-left: 1.25rem;
}

.profile-menu-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.profile-menu-divider {
    height: 1px;
    background: rgba(167, 139, 250, 0.2);
    border: none;
    margin: 0.5rem 0;
}

.logout-btn {
    color: #ff6b6b;
}

.logout-btn:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff8787;
}

@media (max-width: 768px) {
    .profile-button {
        padding: 0.5rem 0.75rem;
    }

    .profile-username {
        display: none;
    }

    .profile-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .profile-menu {
        right: -0.5rem;
    }
}

/* ========== DATENSCHUTZ SECTION ========== */

.datenschutz-section {
    padding: 4rem 0 6rem;
}

.datenschutz-section .section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: clamp(1.75rem, 3.4vw, 2.25rem);
    color: var(--color-white);
}

.datenschutz-content-single {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.datenschutz-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.datenschutz-heading:first-child {
    margin-top: 0;
}

.datenschutz-content-single p {
    color: var(--color-dark-text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
    text-align: center;
}

.datenschutz-list {
    list-style: none;
    margin: 1rem auto 1.5rem auto;
    padding: 0;
    max-width: 600px;
    text-align: left;
}

.datenschutz-list li {
    color: var(--color-dark-text-secondary);
    line-height: 1.8;
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
    display: block;
}

.datenschutz-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary-light);
    font-weight: bold;
    font-size: 1.2rem;
}

.datenschutz-content-single a {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.datenschutz-content-single a:hover {
    color: var(--color-white);
    text-decoration: underline;
}

/* ========== HAFTUNGSAUSSCHLUSS SECTION ========== */

.haftung-section {
    padding: 4rem 0 6rem;
}

.haftung-section .section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: clamp(1.75rem, 3.4vw, 2.25rem);
    color: var(--color-white);
}

.haftung-content-single {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.haftung-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.haftung-heading:first-child {
    margin-top: 0;
}

.haftung-content-single p {
    color: var(--color-dark-text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
    text-align: center;
}

.haftung-content-single a {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.haftung-content-single a:hover {
    color: var(--color-white);
    text-decoration: underline;
}