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

body {
    font-family: 'Open Sans', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Hero Section für Startseite */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #2d5a3d 0%, #4a7c59 50%, #6b9b7a 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="trees" patternUnits="userSpaceOnUse" width="50" height="50"><path d="M25 45 L25 20 M20 25 L25 20 L30 25 M15 30 L25 20 L35 30 M10 35 L25 20 L40 35" stroke="%23ffffff10" stroke-width="1" fill="none"/></pattern></defs><rect width="100" height="100" fill="url(%23trees)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

/* Logo Styles */
.logo-container {
    margin-bottom: 30px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 40px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.logo-icon svg {
    width: 60px;
    height: 60px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.logo-main {
    font-size: 28px;
    font-weight: 700;
    color: #2d5a3d;
    letter-spacing: 1px;
}

.logo-sub {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

/* Beschreibungsbox */
.description-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.description-box h1 {
    font-size: 32px;
    color: #2d5a3d;
    margin-bottom: 25px;
    font-weight: 700;
}

.description-box p {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
    text-align: left;
}

.description-box strong {
    color: #2d5a3d;
}

/* Navigations-Buttons */
.button-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    text-decoration: none;
    color: #2d5a3d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    min-width: 200px;
}

.nav-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: #fff;
}

.button-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.button-text {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

/* Footer */
.main-footer {
    background: #2d5a3d;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

/* Allgemeine Seiten-Styles */
.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-header {
    background: linear-gradient(135deg, #2d5a3d 0%, #4a7c59 100%);
    color: white;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.page-content {
    flex: 1;
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Filter-Bereich */
.filter-section {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.filter-title {
    font-size: 20px;
    color: #2d5a3d;
    margin-bottom: 20px;
    font-weight: 600;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
    font-size: 16px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 10px 20px;
    background: #f0f7f2;
    border: 2px solid #4a7c59;
    color: #2d5a3d;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #4a7c59;
    color: white;
}

.filter-btn.active {
    background: #2d5a3d;
    color: white;
    border-color: #2d5a3d;
}

/* Trainer-Kacheln */
.trainers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.trainer-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 5px solid #4a7c59;
}

.trainer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.trainer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.trainer-name {
    font-size: 22px;
    font-weight: 700;
    color: #2d5a3d;
    margin-bottom: 5px;
}

.trainer-company {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.trainer-location {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
}

.trainer-details {
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    margin-bottom: 8px;
    font-size: 14px;
}

.detail-label {
    font-weight: 600;
    color: #555;
    min-width: 140px;
}

.detail-value {
    color: #333;
}

.trainer-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.action-btn.primary {
    background: #2d5a3d;
    color: white;
}

.action-btn.primary:hover {
    background: #1e3d2a;
}

.action-btn.secondary {
    background: #f0f7f2;
    color: #2d5a3d;
    border: 2px solid #4a7c59;
}

.action-btn.secondary:hover {
    background: #4a7c59;
    color: white;
}

.action-btn.phone {
    background: #3498db;
    color: white;
}

.action-btn.phone:hover {
    background: #2980b9;
}

.action-btn.email {
    background: #e74c3c;
    color: white;
}

.action-btn.email:hover {
    background: #c0392b;
}

/* Profil-Seite */
.profile-container {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.profile-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f7f2;
}

.profile-name {
    font-size: 36px;
    font-weight: 700;
    color: #2d5a3d;
    margin-bottom: 10px;
}

.profile-company {
    font-size: 20px;
    color: #666;
    margin-bottom: 15px;
}

.profile-location {
    font-size: 18px;
    color: #888;
}

.profile-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #2d5a3d;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4a7c59;
}

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

.profile-item {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
    border-left: 4px solid #4a7c59;
}

.profile-item-label {
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
    font-size: 14px;
}

.profile-item-value {
    color: #333;
    font-size: 16px;
}

.profile-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Formular-Styles */
.form-container {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.form-title {
    font-size: 28px;
    font-weight: 700;
    color: #2d5a3d;
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    font-size: 16px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #4a7c59;
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-hint {
    font-size: 14px;
    color: #888;
    margin-top: 5px;
    font-style: italic;
}

/* Checkbox-Gruppen */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: #f0f7f2;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.checkbox-item:hover {
    background: #e0f0e5;
}

.checkbox-item.selected {
    background: #4a7c59;
    color: white;
    border-color: #2d5a3d;
}

.checkbox-item input {
    display: none;
}

/* Datei-Upload */
.file-upload {
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload:hover {
    border-color: #4a7c59;
    background: #f9f9f9;
}

.file-upload input {
    display: none;
}

.file-upload-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.file-upload-text {
    font-size: 16px;
    color: #666;
}

/* DSGVO-Checkbox */
.dsgvo-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 10px;
    margin: 20px 0;
}

.dsgvo-checkbox input {
    margin-top: 5px;
    width: 20px;
    height: 20px;
}

.dsgvo-checkbox label {
    font-size: 14px;
    color: #856404;
    line-height: 1.5;
}

/* Formular-Buttons */
.form-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.form-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.form-btn.primary {
    background: #2d5a3d;
    color: white;
}

.form-btn.primary:hover {
    background: #1e3d2a;
}

.form-btn.secondary {
    background: #f0f7f2;
    color: #2d5a3d;
    border: 2px solid #4a7c59;
}

.form-btn.secondary:hover {
    background: #4a7c59;
    color: white;
}

.form-btn.danger {
    background: #e74c3c;
    color: white;
}

.form-btn.danger:hover {
    background: #c0392b;
}

/* Admin-Seite */
.admin-header {
    background: linear-gradient(135deg, #2d5a3d 0%, #4a7c59 100%);
    color: white;
    padding: 20px;
    margin-bottom: 30px;
}

.admin-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.admin-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.admin-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-btn.primary {
    background: #2d5a3d;
    color: white;
}

.admin-btn.primary:hover {
    background: #1e3d2a;
}

.admin-btn.success {
    background: #27ae60;
    color: white;
}

.admin-btn.success:hover {
    background: #219a52;
}

.admin-btn.warning {
    background: #f39c12;
    color: white;
}

.admin-btn.warning:hover {
    background: #e67e22;
}

.admin-btn.danger {
    background: #e74c3c;
    color: white;
}

.admin-btn.danger:hover {
    background: #c0392b;
}

.admin-btn.info {
    background: #3498db;
    color: white;
}

.admin-btn.info:hover {
    background: #2980b9;
}

/* Suche */
.search-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
}

.search-input:focus {
    outline: none;
    border-color: #4a7c59;
}

/* Navigation */
.admin-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.nav-info {
    font-size: 16px;
    color: #666;
}

.nav-buttons {
    display: flex;
    gap: 10px;
}

/* Backup-Liste */
.backup-list {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.backup-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.backup-item:last-child {
    border-bottom: none;
}

.backup-name {
    font-weight: 600;
    color: #333;
}

.backup-date {
    font-size: 14px;
    color: #888;
}

/* Popup/Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #2d5a3d;
    margin-bottom: 20px;
    text-align: center;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .button-container {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-button {
        width: 100%;
        max-width: 300px;
    }
    
    .description-box {
        padding: 25px;
    }
    
    .description-box h1 {
        font-size: 24px;
    }
    
    .trainers-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-actions {
        flex-direction: column;
    }
    
    .admin-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo {
        flex-direction: column;
        text-align: center;
        padding: 15px 25px;
    }
    
    .logo-text {
        text-align: center;
    }
    
    .page-header {
        padding: 15px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .page-title {
        font-size: 22px;
    }
    
    .form-container {
        padding: 25px;
    }
    
}