/* Import Google font - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f5f6fa;
    --header-height: 70px;
    --footer-padding: 4rem;
    --container-max-width: 1200px;
    --border-radius-sm: 5px;
    --border-radius-md: 10px;
    --border-radius-lg: 20px;
    --transition-speed: 0.3s;
    --border-radius: 12px;
    --box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header wie in main.css */
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav_logo {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav_buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Header Buttons */
.nav_buttons .btn {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav_buttons .btn:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.nav_buttons select.btn {
    cursor: pointer;
    padding-right: 2.5rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 0.75rem) center;
}

.nav_buttons select.btn:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%232c3e50' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
}

/* Content Bereich */
.content {
    max-width: var(--container-max-width);
    margin: calc(var(--header-height) + 2rem) auto 2rem;
    padding: 0 2rem;
}

/* News Cards wie Feature Cards in home.css */
.news_section {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.news_container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news_item {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-md);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform var(--transition-speed);
}

.news_item:hover {
    transform: translateY(-5px);
}

/* Footer Styles */
.footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem 0 1rem;
    margin-top: auto;
}

.footer-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    color: white;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
}

.footer-links a:hover {
    opacity: 1;
    transform: translateX(5px);
}

.footer-links i {
    font-size: 1.1rem;
    width: 20px;
}

.footer-bottom {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer {
        padding: 1.5rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }

    .footer-links a:hover {
        transform: translateY(-2px);
    }
}

/* Versteckte Formulare */
.hidden {
    display: none !important;
}

/* Login Form Container */
.form_container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(8px);
}

.form_container.active {
    opacity: 1;
    display: flex;
}

.form_content {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Form Header */
.form_content h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Close Button */
.form_close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.form_close:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

/* Form Groups */
.form_group {
    margin-bottom: 1.5rem;
}

.form_group input,
.form_group select {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e1e1e1;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form_group input:focus,
.form_group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(44, 62, 80, 0.1);
    outline: none;
}

/* Checkbox Styling */
.form_group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    cursor: pointer;
}

.form_group input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

/* Form Buttons */
.form-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(44, 62, 80, 0.2);
}

/* Forgot Password Link */
.forgot_pw {
    text-align: center;
    margin-top: 1rem;
}

.forgot_pw a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot_pw a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Form Tabs */
.form_tabs_bottom {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #e1e1e1;
    padding-top: 2rem;
}

.form_tab {
    padding: 0.75rem 2rem;
    border: none;
    background: none;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.form_tab.active {
    color: var(--primary-color);
}

.form_tab.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.form_tab:hover {
    color: var(--primary-color);
}

/* Hidden Class */
.hidden {
    display: none !important;
}

.login-button {
    background-color: var(--accent-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius-sm);
}

.login-button:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-container {
    width: 100%;
    max-width: 480px;
    margin: 2rem auto;
}

.auth-box {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
}

.auth-tab {
    flex: 1;
    padding: 1.5rem;
    border: none;
    background: none;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-tab.active {
    color: var(--secondary-color);
    background: #f8f9fa;
}

.auth-tab i {
    font-size: 1.2rem;
}

.auth-form {
    padding: 2rem;
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #666;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.input-icon input,
.input-icon select {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #eee;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-icon input:focus,
.input-icon select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
    outline: none;
}

.remember-forgot {
    display: flex;
    align-items: center;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    cursor: pointer;
}

.forgot-link {
    display: none;
}

.auth-button {
    width: 100%;
    padding: 1rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-button:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Delete User Data Styles */
.delete-user-content {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    min-height: 100vh;
}

.delete-user-box {
    max-width: 550px;
    padding: 2.5rem;
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-header h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.delete-user-form .form-group {
    margin-bottom: 1.5rem;
}

.textarea-icon {
    align-items: flex-start;
}

.textarea-icon i {
    top: 1rem;
    transform: none;
}

.delete-user-form textarea {
    min-height: 150px;
    padding: 1rem 1rem 1rem 3rem;
    resize: vertical;
    line-height: 1.5;
}

.delete-button {
    background: var(--accent-color);
    margin-top: 1rem;
}

.delete-button:hover {
    background: #c0392b;
}

.form-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    text-align: center;
}

.back-link {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

.back-link:hover {
    color: var(--secondary-color);
    transform: translateX(-5px);
    background: #f8f9fa;
}

/* Feedback Message Styles */
.feedback-message {
    display: none;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 500;
}

.feedback-message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.feedback-message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Spinning animation for loading state */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spin {
    animation: spin 1s linear infinite;
}

.delete-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-text {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--primary-color);
}

.cookie-text i {
    font-size: 1.5rem;
    color: var(--accent-color);
    animation: bounce 2s infinite;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.cookie-btn.accept {
    background: var(--secondary-color);
    color: white;
}

.cookie-btn.accept:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.cookie-btn.decline {
    background: #f8f9fa;
    color: var(--primary-color);
}

.cookie-btn.decline:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-text {
        justify-content: center;
    }
}

/* Cookie Policy Styles */
.policy-content {
    background: #fff;
    min-height: 100vh;
    padding: 4rem 0;
}

.policy-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.policy-container h1 {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.policy-section {
    margin-bottom: 3rem;
}

.policy-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
}

.policy-section h3 {
    color: var(--secondary-color);
    margin: 1.5rem 0 1rem;
}

.cookie-table {
    margin: 1rem 0;
    overflow-x: auto;
}

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.cookie-table th,
.cookie-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.cookie-table th {
    background: var(--light-bg);
    color: var(--primary-color);
    font-weight: 600;
}

.cookie-table tr:hover {
    background: #f8f9fa;
}

.cookie-settings-btn {
    background: #343a40 !important; /* Darker gray for distinction */
    color: white !important;
    border: none !important;
    padding: 0.6rem 1.2rem !important; /* Smaller size */
    border-radius: 6px !important; /* Slightly rounded corners */
    font-weight: 400 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    transition: all 0.3s ease !important;
    margin-top: 1rem !important;
    text-decoration: none !important;
}

.cookie-settings-btn:hover {
    background: #23272b !important; /* Slightly darker on hover */
    transform: translateY(-1px) !important;
}

/* Error Message Styles */
.error-message {
    display: none;
    background-color: var(--accent-color);
    color: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.error-message i {
    font-size: 1.2rem;
}

.error-message.show {
    display: flex;
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% {
        transform: translate3d(-1px, 0, 0);
    }
    
    20%, 80% {
        transform: translate3d(2px, 0, 0);
    }

    30%, 50%, 70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%, 60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* Verbesserte Input-Styles für Fehlerfall */
.form-group.error input {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.1);
}

.form-group.error .input-icon i {
    color: var(--accent-color);
}

/* Mobile Navigation Styles */
.nav_left {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav_buttons {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        display: flex;
        flex-direction: column;
        gap: 20px;
        z-index: 999;
        overflow-y: auto;
    }

    .nav_buttons.active {
        right: 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .nav_buttons .btn {
        width: 100%;
        text-align: left;
        padding: 15px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
        margin: 0;
        border: none;
    }

    .nav_buttons .btn:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateX(5px);
    }
    
    /* Overlay für das mobile Menü */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }
    
    .menu-overlay.active {
        display: block;
    }
}


