@import './base.css';
@import './components.css';
@import './pages/dashboard.css';

/* Landing Page Specific Styles */
.landing-page {
    background: var(--background);
    color: var(--text-primary);
}

.form-container {
    background: transparent;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.welcome-header {
    margin-bottom: 2rem;
}

.logo {
    width: 200px;
    height: auto;
    margin: 1rem auto;
    display: block;
    transition: transform 0.3s var(--transition);
    background: none;
    padding: 0;
}

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

.main-content {
    margin: 2rem 0;
}

.cta-button {
    text-align: center;
}

.btn-accent {
    background-color: #00bf63;
    color: white;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    padding: 1rem 2rem;
    font-size: 1.25rem;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background-color: #00d673;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.copyright {
    color: var(--text-secondary);
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
}

/* Tabellen-Stile */
.table-container {
    margin: 20px 0;
    overflow-x: auto;
    position: relative;
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    min-height: 100px; /* Mindesthöhe für den Container */
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
    background: var(--card-bg);
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.table th {
    background-color: var(--primary);
    color: white;
    font-weight: bold;
}

.admin-controls {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.settings-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    color: var(--primary);
    border-radius: 0;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    clip-path: polygon(
        50% 0%, 60% 20%, 80% 20%, 65% 35%,
        75% 55%, 50% 45%, 25% 55%, 35% 35%,
        20% 20%, 40% 20%
    );
}

.settings-icon:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.settings-icon i {
    font-size: 1.5rem;
    display: none;
}

/* Mitgliedertabelle in Gruppeneinstellungen */
.members-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

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

.members-table th {
    background-color: #004aad;
    color: white;
    font-weight: bold;
}

.members-table tr:last-child td {
    border-bottom: none;
}

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

.admin-badge {
    background-color: #004aad;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9em;
}

.field-error {
    color: #ff4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Mobile Textgrößen */
@media (max-width: 768px) {
    .about-content {
        max-width: 95%;
        margin: 0 auto;
        padding: 1rem;
    }
    
    .about-content p, .about-content li {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .about-content h1 {
        font-size: 1.8rem;
    }
    
    .about-content h2 {
        font-size: 1.4rem;
    }
    
    .about-content ul {
        padding-left: 1.5rem;
    }
    
    .about-content li strong {
        font-size: 1rem;
    }
}

/* Desktop Textgrößen */
@media (min-width: 769px) {
    .about-content p, .about-content li {
        font-size: 1.1rem;
        line-height: 1.8;
    }
    
    .about-content h1 {
        font-size: 2.2rem;
    }
    
    .about-content h2 {
        font-size: 1.6rem;
    }
    
    .about-content ul {
        padding-left: 2rem;
    }
    
    .about-content li strong {
        font-size: 1.1rem;
    }
}

/* Desktop Styles für die Startseite */
@media (min-width: 768px) {
    .form-container {
        max-width: 800px;
        margin: 2rem auto;
        padding: 4rem 2rem;
        background: transparent;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .welcome-header {
        margin-bottom: 4rem;
    }

    .logo {
        width: 300px;
        height: auto;
        margin: 2rem auto;
        display: block;
        transition: transform 0.3s ease;
    }

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

    .main-content {
        margin: 5rem 0;
    }

    .cta-button {
        text-align: center;
    }

    .btn-large {
        font-size: 1.5rem;
        padding: 1.2rem 3rem;
        min-width: 250px;
        background-color: #00bf63;
        color: white;
        border: none;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .btn-large:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        background-color: #00d673;
    }

    .footer-links {
        display: flex;
        justify-content: center;
        gap: 3rem;
        margin-top: 4rem;
    }

    .btn-secondary {
        padding: 0.8rem 2rem;
        min-width: 150px;
    }

    .copyright {
        text-align: center;
        margin-top: 3rem;
    }

    /* Layout für die Startseite */
    body.landing-page {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2rem;
    }
}

.page-footer {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-cta {
    text-align: center;
}

.footer-cta .btn-accent {
    margin: 0 auto;
}

.copyright {
    color: var(--text-secondary);
    text-align: center;
    font-size: 0.875rem;
}

/* Responsive Design für den Footer */
@media (max-width: 768px) {
    .page-footer {
        margin-top: 2rem;
        padding: 1.5rem 0;
    }

    .footer-content {
        gap: 1.5rem;
    }
}