/**
 * ROOSMED - Consolidated CSS File
 * This file contains all CSS styles for the website including variables, layouts, and page-specific styles.
 */

/* ==============================
    CSS Variables
    ============================== */

:root {
    /* Hauptfarbpalette (Helles Theme) */
    --primary-color: #6361f1;
    --primary-light: #8b8af3;
    --primary-dark: #4240cf;

    --secondary-color: #565973;
    --secondary-light: #8c8fa9;
    --secondary-dark: #383a4b;

    --accent-color: #ffa500;
    --accent-light: #ffb94c;
    --accent-dark: #d68c00;

    /* Text & Hintergrund (Helles Theme) */
    --text-color: #333333;
    --text-secondary: #565973;
    --text-light: #9397ad;
    --text-invert: #ffffff;

    --background-color: #f8f9fc;
    --card-background: #ffffff;
    --border-color: #d4d7e5;
    --input-background: #ffffff;

    /* Statusfarben (Gleich für beide Themes) */
    --success-color: #2ecc71;
    --success-light: #a7f3ce;
    --success-dark: #25a25a;

    --warning-color: #f39c12;
    --warning-light: #fff0d7ff;
    --warning-dark: #d35400;

    --danger-color: #e74c3c;
    --danger-light: #f5b7b1;
    --danger-dark: #b83227;

    /* Schatten (Helles Theme) */
    --shadow-small: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 8px 16px rgba(0, 0, 0, 0.1);

    /* Layout-Variablen (Gleich für beide Themes) */
    --card-border-radius: 10px;
    --card-padding: 24px;
    --card-margin-bottom: 24px;
    --standard-gap: 16px;

    /* Schriftgrößen (Gleich für beide Themes) */
    --font-size-xs: 12px;
    --font-size-small: 14px;
    --font-size-normal: 16px;
    --font-size-medium: 18px;
    --font-size-large: 20px;
    --font-size-xl: 24px;
    --font-size-xxl: 32px;
    --font-size-hero: 40px;

    /* Schriftgewichte (Gleich für beide Themes) */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Übergänge (Gleich für beide Themes) */
    --theme-transition: color 0.3s ease, background-color 0.3s ease,
        border-color 0.3s ease, box-shadow 0.3s ease;
    --hover-transition: all 0.3s ease;

    /* Z-Indices (Gleich für beide Themes) */
    --z-index-dropdown: 10;
    --z-index-header: 100;
    --z-index-modal: 1000;
    --z-index-toast: 2000;
}

/* Dark Mode Theme */
[data-theme="dark"] {
    /* Hauptfarbpalette (Dunkles Theme) */
    --primary-color: #7e7cff;
    --primary-light: #a5a4ff;
    --primary-dark: #5a59cc;

    --secondary-color: #a6a9c2;
    --secondary-light: #c8cbe0;
    --secondary-dark: #8185a2;

    --accent-color: #ffb84c;
    --accent-light: #ffcc80;
    --accent-dark: #e59d00;

    /* Text & Hintergrund (Dunkles Theme) */
    --text-color: #e5e5e5;
    --text-secondary: #b4b8d0;
    --text-light: #7a7e94;
    --text-invert: #1e1f2b;

    --background-color: #1e1f2b;
    --card-background: #282a3a;
    --border-color: #3b3e5a;
    --input-background: #343747;

    /* Schatten (Dunkles Theme) */
    --shadow-small: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-medium: 0 4px 8px rgba(0, 0, 0, 0.3);
    --shadow-large: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* Helligkeitseinstellung für Bilder im Dunkelmodus */
@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) img:not([src*=".svg"]) {
        filter: brightness(0.8) contrast(1.2);
    }
}

[data-theme="dark"] img:not([src*=".svg"]) {
    filter: brightness(0.8) contrast(1.2);
}

/* Utility-Klassen für Farben */
.text-primary {
    color: var(--primary-color);
}
.text-secondary {
    color: var(--secondary-color);
}
.text-accent {
    color: var(--accent-color);
}
.text-light {
    color: var(--text-light);
}
.text-success {
    color: var(--success-color);
}
.text-warning {
    color: var(--warning-color);
}
.text-danger {
    color: var(--danger-color);
}

.bg-primary {
    background-color: var(--primary-color);
}
.bg-secondary {
    background-color: var(--secondary-color);
}
.bg-accent {
    background-color: var(--accent-color);
}
.bg-light {
    background-color: var(--background-color);
}
.bg-card {
    background-color: var(--card-background);
}
.bg-success {
    background-color: var(--success-color);
}
.bg-warning {
    background-color: var(--warning-color);
}
.bg-danger {
    background-color: var(--danger-color);
}

/* Utility-Klassen für Text */
.font-xs {
    font-size: var(--font-size-xs);
}
.font-small {
    font-size: var(--font-size-small);
}
.font-normal {
    font-size: var(--font-size-normal);
}
.font-medium {
    font-size: var(--font-size-medium);
}
.font-large {
    font-size: var(--font-size-large);
}
.font-xl {
    font-size: var(--font-size-xl);
}
.font-xxl {
    font-size: var(--font-size-xxl);
}
.font-hero {
    font-size: var(--font-size-hero);
}

.font-light {
    font-weight: var(--font-weight-light);
}
.font-normal {
    font-weight: var(--font-weight-normal);
}
.font-medium {
    font-weight: var(--font-weight-medium);
}
.font-semibold {
    font-weight: var(--font-weight-semibold);
}
.font-bold {
    font-weight: var(--font-weight-bold);
}

/* ==============================
    Base Styles
    ============================== */

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: "Inter", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background-color);
    line-height: 1.5;
    color: var(--text-color);
    transition: var(--theme-transition);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    min-height: calc(100vh - 164px);
}

/* 
 * Common Elements
 */

.content {
    max-width: 1440px;
    padding: 0 128px;
    margin: 0 auto;
}

.button {
    background-color: var(--primary-color);
    border: none;
    border-radius: var(--card-border-radius);
    color: white;
    cursor: pointer;
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.button:hover,
.button:focus {
    background-color: #5250e0;
    outline: none;
}

.button:focus-visible {
    box-shadow: 0 0 0 3px rgba(99, 97, 241, 0.4);
}

.button.selected {
    background-color: #4c4ad1;
}

.button.button-secondary {
    background-color: var(--card-background);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.button.button-secondary:hover,
.button.button-secondary:focus {
    background-color: rgba(99, 97, 241, 0.1);
}

/* Header & Navigation */
.site-header {
    background-color: var(--card-background);
    border-bottom: 1px solid var(--border-color);
    transition: var(--theme-transition);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 128px;
    max-width: 1440px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a:focus {
    color: var(--primary-color);
}

.nav-links li a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.3s ease;
}

.mobile-toggle:hover {
    color: var(--primary-color);
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-color);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.theme-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
}

/* Page Content Header */
.page-header {
    max-width: 1440px;
    padding: 0 128px;
    margin: 48px auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.header-left {
    flex: 1;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    margin-bottom: 16px;
}

.breadcrumb .old {
    color: var(--breadcrumb-old);
    cursor: pointer;
}

.breadcrumb .old:hover,
.breadcrumb .old:focus {
    color: var(--primary-color);
    text-decoration: underline;
}

.breadcrumb .current {
    color: var(--primary-color);
}

/* Heading */
.heading {
    font-size: 32px;
    color: var(--heading-color);
    font-weight: 600;
}

.section-title,
.section-heading {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
}

/* Dropdown */
.dropdown-container {
    position: relative;
    width: 250px;
}

.dropdown-button {
    width: 100%;
    padding: 8px 12px;
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--card-border-radius);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--secondary-color);
    transition: var(--theme-transition);
}

.dropdown-button:hover,
.dropdown-button:focus {
    background-color: var(--primary-color);
}

[data-theme="dark"] .dropdown-button:hover,
[data-theme="dark"] .dropdown-button:focus {
    background-color: rgba(255, 255, 255, 0.05);
}

.dropdown-button:focus-visible {
    box-shadow: 0 0 0 3px rgba(99, 97, 241, 0.4);
}

.dropdown-content {
    display: none;
    position: absolute;
    width: 100%;
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--card-border-radius) var(--card-border-radius);
    z-index: 1;
    transition: var(--theme-transition);
}

.dropdown-content.show {
    display: block;
}

.dropdown-item {
    padding: 10px;
    cursor: pointer;
    color: var(--text-color);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.05);
}

.dropdown-item:focus-visible {
    box-shadow: 0 0 0 3px rgba(99, 97, 241, 0.4);
}

.arrow {
    border: solid var(--secondary-color);
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    transition: transform 0.2s;
}

.arrow.up {
    transform: rotate(-135deg);
}

/* Dropdown Divider (from galerie.php) */
.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 8px 0;
}

/* Standardized Card Styles */
.card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--card-border-radius);
    padding: var(--card-padding);
    margin-bottom: var(--card-margin-bottom);
    transition: var(--theme-transition), transform 0.3s ease,
        box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card.selected {
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 8px rgba(99, 97, 241, 0.1);
}

.card-tags {
    display: flex;
    gap: var(--standard-gap);
    margin-bottom: 8px;
    font-weight: 500;
}

.card-tags span {
    color: var(--primary-color);
    font-size: 14px;
}

.card-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--heading-color);
}

.card-subtitle {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 16px;
}

.card-description {
    color: var(--secondary-color);
    font-size: 16px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.card-details {
    margin-bottom: 16px;
}

.detail-item {
    display: flex;
    color: var(--secondary-color);
    font-size: 16px;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.divider {
    width: 100%;
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 16px 0;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 500;
}

.total-price {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 600;
}

/* Card Image */
.card-image {
    width: 100%;
    height: 200px;
    margin-bottom: 16px;
    border-radius: var(--card-border-radius);
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-image:hover img {
    transform: scale(1.05);
}

/* Form Styles */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--card-border-radius);
    font-size: 16px;
    background-color: var(--card-background);
    color: var(--text-color);
    transition: var(--theme-transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 97, 241, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.required {
    color: var(--danger-color);
    margin-left: 2px;
}

/* Link Styles */
.card-link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.card-link:hover,
.card-link:focus {
    text-decoration: underline;
}

.card-link:focus-visible {
    outline: 3px solid rgba(99, 97, 241, 0.4);
    outline-offset: 2px;
}

.view-all-link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.view-all-link:hover,
.view-all-link:focus {
    text-decoration: underline;
}

.view-all-link:after {
    content: "→";
    display: inline-block;
    margin-left: 4px;
}

/* Standard Container Layouts */
.vertical-container {
    display: flex;
    flex-direction: column;
    gap: var(--card-margin-bottom);
    margin-bottom: 48px;
}

/* Courses Page Specific */
.courses-container {
    display: flex;
    flex-direction: column;
}

/* Notfalltraining Page Specific */
.form-container {
    display: flex;
    gap: 32px;
    margin-bottom: 48px;
    min-height: 600px;
}

.form-section {
    flex: 1;
    width: 50%;
    max-width: 50%;
}

.module-section {
    max-height: 620px;
    padding-right: 16px;
}

.module-section-scrollable {
    height: 100%;
    overflow-y: auto;
}

.module-section .card {
    margin-bottom: 24px;
}

.name-group {
    display: flex;
    gap: 16px;
}

.name-group .form-group {
    flex: 1;
}

.page-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
}

/* Custom scrollbar for module section */
.module-section::-webkit-scrollbar {
    width: 8px;
}

.module-section::-webkit-scrollbar-track {
    background: var(--background-color);
    border-radius: 4px;
}

.module-section::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.module-section::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* News Page Specific */
.news-container {
    display: flex;
    flex-direction: column;
}

.news-date {
    color: var(--secondary-color);
    font-size: 14px;
    margin-bottom: 8px;
}

.news-category {
    background-color: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 8px;
}

/* News Detail Page */
.news-detail {
    background-color: var(--card-background);
    border-radius: var(--card-border-radius);
    padding: 32px;
    margin-bottom: 48px;
    transition: var(--theme-transition);
}

.news-detail-header {
    margin-bottom: 24px;
}

.news-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    align-items: center;
}

.news-detail-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--heading-color);
}

.news-detail-image {
    margin-bottom: 24px;
    border-radius: var(--card-border-radius);
    overflow: hidden;
}

.news-detail-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.news-detail-content {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
}

.news-detail-content p {
    margin-bottom: 16px;
}

.news-detail-content h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 32px 0 16px;
    color: var(--heading-color);
}

.news-detail-content ul {
    margin-bottom: 24px;
    padding-left: 24px;
}

.news-detail-content li {
    margin-bottom: 8px;
}

.event-details {
    display: flex;
    gap: 32px;
    margin: 32px 0;
    padding: 24px;
    background-color: var(--background-color);
    border-radius: var(--card-border-radius);
}

.event-info {
    flex: 1;
}

.event-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--heading-color);
}

.event-info p {
    margin-bottom: 8px;
}

.event-map {
    flex: 1;
}

.event-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--card-border-radius);
}

.news-section {
    padding: 80px 0;
}

.news-cta {
    margin: 32px 0;
    text-align: left;
}

.news-share {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.social-links {
    display: flex;
    gap: 8px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--background-color);
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.social-link:hover,
.social-link:focus {
    background-color: var(--primary-color);
    color: white;
    outline: none;
}

.social-link:focus-visible {
    box-shadow: 0 0 0 3px rgba(99, 97, 241, 0.4);
}

.related-news {
    margin-top: 48px;
}

.related-news h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--heading-color);
}

.related-news-container {
    display: flex;
    flex-direction: column;
    gap: var(--card-margin-bottom);
}


.related-news-card, .news-card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--card-border-radius);
    overflow: hidden;
    display: flex;
    align-items: start;
    flex-direction: column;
    justify-content: start;
    padding: 16px;
    transition: var(--theme-transition);
}

.related-news-card img, .news-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--card-border-radius);
}

.related-news-card h3,  .news-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--heading-color);
}

.related-news-card a,  .news-card a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.related-news-card a:hover,
.related-news-card a:focus {
    text-decoration: underline;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover,
.back-link:focus {
    color: var(--primary-color);
}

.back-link:focus-visible {
    outline: 3px solid rgba(99, 97, 241, 0.4);
    outline-offset: 2px;
}

/* Team Page */
.team-intro {
    font-size: 18px;
    color: var(--secondary-color);
    line-height: 1.6;
    margin-bottom: 48px;
    max-width: 800px;
}

.team-container {
    display: flex;
    flex-direction: column;
    gap: var(--card-margin-bottom);
    margin-bottom: 64px;
}

.team-member {
    border-radius: var(--card-border-radius);
    overflow: hidden;
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    padding: var(--card-padding);
    display: flex;
    gap: 32px;
    transition: var(--theme-transition);
}

.team-image {
    width: 200px;
    height: 200px;
    border-radius: var(--card-border-radius);
    overflow: hidden;
    flex-shrink: 0;
    margin-bottom: 16px;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {
    flex-grow: 1;
}

.team-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--heading-color);
}

.team-position {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 16px;
    font-weight: 500;
}

.team-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--secondary-color);
    margin-bottom: 16px;
}

.team-expertise {
    margin-bottom: 16px;
}

.team-expertise h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--heading-color);
}

.team-expertise ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.team-expertise li {
    background-color: var(--background-color);
    padding: 6px 12px;
    border-radius: var(--card-border-radius);
    font-size: 14px;
    color: var(--secondary-color);
}

.team-contact {
    margin-top: 16px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-link:hover,
.contact-link:focus {
    text-decoration: underline;
}

.contact-link:focus-visible {
    outline: 3px solid rgba(99, 97, 241, 0.4);
    outline-offset: 2px;
}

.team-cta {
    background-color: var(--card-background);
    border-radius: var(--card-border-radius);
    padding: 32px;
    text-align: left;
    border: 1px solid var(--border-color);
    transition: var(--theme-transition);
}

.team-cta h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--heading-color);
}

.team-cta p {
    font-size: 16px;
    color: var(--secondary-color);
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 800px;
}

/* Skip to content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Landing Page Specific Styles */
.hero {
    background-color: var(--card-background);
    border-radius: var(--card-border-radius);
    margin-bottom: 48px;
    padding: 48px;
    display: flex;
    align-items: center;
    gap: 48px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: var(--theme-transition);
}

.hero-content {
    flex: 1;
}

#hero-heading {
    font-size: 40px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-image {
    flex: 1;
    border-radius: var(--card-border-radius);
    overflow: hidden;
    height: 400px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.services-section,
.about-section,
.testimonials-section,
.news-preview-section,
.team-preview-section,
.gallery-preview-section,
.cta-section {
    margin-bottom: 80px;
}

.services-container {
    display: flex;
    flex-direction: column;
    gap: var(--card-margin-bottom);
}

.service-card {
    display: flex;
    flex-direction: column;
}

.about-container {
    display: flex;
    gap: 48px;
    align-items: center;
    background-color: var(--card-background);
    border-radius: var(--card-border-radius);
    padding: 48px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: var(--theme-transition);
}

.about-text {
    flex: 3;
    padding-right: 48px;
}

.about-text p {
    color: var(--secondary-color);
    margin-bottom: 24px;
    line-height: 1.6;
}

.about-image {
    flex: 2;
    border-radius: var(--card-border-radius);
    overflow: hidden;
    height: 400px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-stats {
    display: flex;
    justify-content: space-between;
    margin: 32px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--secondary-color);
    font-size: 14px;
}

.testimonials-container {
    display: flex;
    flex-direction: column;
    gap: var(--card-margin-bottom);
}

.testimonial-card {
    position: relative;
    padding: 32px;
    background-color: var(--card-background);
    border-radius: var(--card-border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: var(--theme-transition);
}

.quote-icon {
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: 24px;
    left: 24px;
    width: 48px;
    height: 48px;
}

.testimonial-content {
    position: relative;
    z-index: 1;
    padding-left: 40px;
}

.testimonial-text {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 24px;
}

.testimonial-author {
    margin-top: 16px;
}

.author-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--heading-color);
}

.author-role {
    color: var(--secondary-color);
    font-size: 14px;
}

.news-preview-container {
    display: flex;
    flex-direction: column;
    gap: var(--card-margin-bottom);
}

.team-preview-container {
    display: flex;
    flex-direction: column;
    gap: var(--card-margin-bottom);
}

.team-preview-card {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 16px;
    background-color: var(--card-background);
    border-radius: var(--card-border-radius);
    transition: var(--theme-transition);
}

.team-preview-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
}

.team-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-preview-info {
    flex: 1;
}

.team-preview-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--heading-color);
}

.team-preview-position {
    color: var(--primary-color);
    font-size: 14px;
}

.gallery-preview-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gallery-preview-image {
    border-radius: var(--card-border-radius);
    overflow: hidden;
    height: 200px;
}

.gallery-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-preview-image:hover img {
    transform: scale(1.05);
}

.cta-card {
    text-align: left;
    padding: 48px;
    background-color: var(--card-background);
    border-radius: var(--card-border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: var(--theme-transition);
}

.cta-heading {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--heading-color);
}

.cta-text {
    color: var(--secondary-color);
    font-size: 18px;
    margin-bottom: 32px;
    max-width: 800px;
}

.cta-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
}

/* Footer */
.site-footer {
    background-color: var(--card-background);
    border-top: 1px solid var(--border-color);
    padding: 64px 0 32px;
    margin-top: 80px;
    transition: var(--theme-transition);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section {
    flex: 1;
}

.footer-heading {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--heading-color);
}

.footer-address {
    font-style: normal;
    line-height: 1.6;
    color: var(--secondary-color);
    margin-top: 16px;
}

.footer-address p {
    margin-bottom: 8px;
}

.footer-address a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-address a:hover,
.footer-address a:focus {
    text-decoration: underline;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    color: var(--secondary-color);
    font-size: 14px;
}

.footer-bottom .social-links {
    display: flex;
    gap: 16px;
}

.footer-bottom .social-link {
    width: 32px;
    height: 32px;
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--card-background);
    padding: 16px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    transition: var(--theme-transition);
}

.cookie-content {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.cookie-text {
    flex: 1;
    font-size: 14px;
    color: var(--text-color);
}

.cookie-text a {
    color: var(--primary-color);
    text-decoration: none;
}

.cookie-text a:hover {
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 8px 16px;
    border-radius: var(--card-border-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-btn-accept {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.cookie-btn-accept:hover {
    background-color: #5250e0;
}

.cookie-btn-settings {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.cookie-btn-settings:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .cookie-btn-settings:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Modal */
/* Improved Modal Styles */
/* Improved Modal Styles with Consistent Structure */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: var(--z-index-modal);
    overflow-y: auto;
    padding: 20px;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--card-background);
    position: relative;
    max-width: 650px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--card-border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-large);
    animation: slideIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Standard padding for modal sections */
.modal-content > h2,
.modal-body,
.modal-footer {
    padding: 24px;
}

.modal-content > h2 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--heading-color);
    margin: 0;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

/* Close button styling */
.close-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: none;
    background-color: var(--background-color);
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-color);
    transition: all 0.3s ease;
    z-index: 1;
}

/* Modal details boxes */
.modal-details {
    background-color: var(--background-color);
    padding: 20px;
    border-radius: var(--card-border-radius);
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.modal-details h3 {
    font-size: var(--font-size-medium);
    font-weight: var(--font-weight-semibold);
    color: var(--heading-color);
    margin-top: 0;
    margin-bottom: 16px;
}

.detail-item {
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
}

.detail-item strong {
    min-width: 130px;
}

/* Footer section with buttons */
.modal-footer {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    padding-top: 24px;
    padding-bottom: 24px;
    background-color: var(--background-color);
}

/* Ensure buttons take equal space */
.modal-footer .button {
    min-width: 120px;
    text-align: center;
    margin: 0;
}

/* Form styling */
.modal .form-group {
    margin-bottom: 20px;
}

.modal .form-group:last-of-type {
    margin-bottom: 0;
}

.modal .form-group label {
    display: block;
    font-weight: var(--font-weight-medium);
    color: var(--text-color);
}

.modal .form-group input,
.modal .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--card-border-radius);
    font-size: var(--font-size-normal);
    background-color: var(--input-background);
    color: var(--text-color);
    transition: var(--theme-transition);
}

.modal .form-group input:focus,
.modal .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 97, 241, 0.1);
}

/* Privacy consent box styling */
.privacy-consent {
    background-color: rgba(99, 97, 241, 0.05);
    padding: 16px;
    border-radius: var(--card-border-radius);
    border: 1px solid rgba(99, 97, 241, 0.2);
    margin-bottom: 0;
}

.privacy-consent label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0;
    cursor: pointer;
}

.privacy-consent input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
}

.privacy-consent a {
    color: var(--primary-color);
    text-decoration: none;
}

.privacy-consent a:hover {
    text-decoration: underline;
}

/* Success/Error message styling */
.submission-message {
    display: none;
    text-align: center;
    padding: 40px 24px;
}

.message-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 36px;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.message-icon.success {
    background-color: var(--success-color);
}

.message-icon.error {
    background-color: var(--danger-color);
}

.submission-message h3 {
    font-size: var(--font-size-large);
    font-weight: var(--font-weight-bold);
    margin-bottom: 16px;
    color: var(--heading-color);
}

.submission-message p {
    color: var(--secondary-color);
    font-size: var(--font-size-normal);
}

/* Selected modules list */
.selected-modules ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.selected-modules li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.selected-modules li:last-child {
    border-bottom: none;
}

.detail-item.total {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    font-weight: var(--font-weight-bold);
}

/* Modal animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive styles */
@media (max-width: 768px) {
    .modal-content > h2,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }
    
    .modal-footer {
        flex-direction: column-reverse;
        gap: 12px;
    }
    
    .modal-footer .button {
        width: 100%;
    }
    
    .detail-item {
        gap: 4px;
    }
    
    .detail-item strong {
        min-width: auto;
    }
    
    .close-modal {
        top: 12px;
        right: 12px;
    }
}

/* Remove any old modal styling */
.confirmation-content,
.confirmation-buttons {
    display: none;
}

/* Lightbox for Gallery */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.show {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
}

#lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
    border: 2px solid white;
}

.lightbox-caption {
    color: white;
    text-align: center;
    padding: 16px;
}

.lightbox-caption h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.lightbox-caption p {
    font-size: 14px;
    opacity: 0.8;
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 32px;
    background: none;
    border: none;
    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

/* Improved Styles */
.improved-hero {
    margin: 0 auto 48px;
    max-width: 1440px;
    padding: 48px 128px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.service-card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--card-border-radius);
    padding: var(--card-padding);
    transition: all 0.3s ease, var(--theme-transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.service-icon {
    color: var(--primary-color);
    margin-bottom: 16px;
}

.service-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--heading-color);
}

.service-description {
    color: var(--secondary-color);
    font-size: 16px;
    margin-bottom: 16px;
    line-height: 1.5;
    flex-grow: 1;
}

/* About Container without background and shadow */
.about-container {
    display: flex;
    gap: 48px;
    align-items: center;
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

/* Gallery Grid Layout */
.gallery-section {
    margin: 80px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: var(--card-border-radius);
    background-color: #000;
    aspect-ratio: 4/3;
}

.gallery-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0) 100%
    );
    padding: 20px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.gallery-overlay h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: white;
}

.gallery-overlay p {
    font-size: 14px;
    opacity: 0.8;
}

.gallery-item:hover .gallery-image img,
.gallery-item:focus .gallery-image img {
    transform: scale(1.05);
    opacity: 0.7;
}

.gallery-item:hover .gallery-overlay,
.gallery-item:focus .gallery-overlay {
    opacity: 1;
}

/* Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 110;
}

.hamburger span {
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--card-background);
    z-index: 100;
    padding: 80px 32px 32px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 90;
    display: none;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-links li {
    margin-bottom: 24px;
}

.mobile-menu-links a {
    color: var(--text-color);
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
}

.mobile-menu-links a:hover,
.mobile-menu-links a:focus {
    color: var(--primary-color);
}

.mobile-theme-toggle {
    margin-top: 32px;
}

/* CSS für die themespezifischen Logos */
.logo-container {
    display: flex;
    align-items: center;
}

.logo-image {
    max-height: 40px; /* Passe die Höhe nach deinen Bedürfnissen an */
    width: auto;
}

/* Im Light-Mode: Light-Logo anzeigen, Dark-Logo verstecken */
html[data-theme="light"] .logo-light {
    display: block;
}

html[data-theme="light"] .logo-dark {
    display: none;
}

/* Im Dark-Mode: Dark-Logo anzeigen, Light-Logo verstecken */
html[data-theme="dark"] .logo-dark {
    display: block;
}

html[data-theme="dark"] .logo-light {
    display: none;
}

/* Legal Pages (AGB, Datenschutz, Impressum) */
.legal-content {
    margin: 0 auto 60px;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 16px;
    font-weight: 600;
}

.legal-section h3 {
    font-size: 20px;
    color: var(--heading-color);
    margin: 24px 0 12px;
    font-weight: 600;
}

.legal-section p,
.legal-section ul {
    margin-bottom: 16px;
    line-height: 1.6;
}

.legal-section ul {
    padding-left: 24px;
}

.legal-section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.legal-section a:hover {
    text-decoration: underline;
}

.update-info {
    font-style: italic;
    color: var(--secondary-color);
    text-align: right;
}

/* Login Page */
.login-container {
    width: 100%;
    max-width: 400px;
    padding: 32px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    top: 50%;
    transform: translateY(50%);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.login-title {
    font-size: 24px;
    font-weight: 600;
    margin-top: 16px;
    margin-bottom: 8px;
}

.login-subtitle {
    color: var(--secondary-color);
    font-size: 16px;
}

.login-form {
    margin-top: 32px;
}

.login-button {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-button:hover,
.login-button:focus {
    background-color: #5250c9;
}

/* Contact Form Section */
.contact-container {
    display: flex;
    gap: 32px;
    margin-bottom: 48px;
}

.contact-form-section {
    flex: 1;
    max-width: 700px;
}

.success-message {
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--success-color);
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 24px;
    border: 1px solid var(--success-color);
}

.error-message {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 24px;
    border: 1px solid var(--danger-color);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

/* Form and submission message styles */
.submission-message {
    text-align: center;
    padding: 32px 0;
}

.message-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 32px;
    color: white;
}

.message-icon.success {
    background-color: var(--success-color);
}

.message-icon.error {
    background-color: var(--danger-color);
}

/* Form for Training Requests */
.confirmation-content {
    margin-top: 24px;
}

.request-details,
.selected-modules {
    margin-bottom: 24px;
    background-color: var(--background-color);
    padding: 16px;
    border-radius: var(--card-border-radius);
}

.request-details h3,
.selected-modules h3 {
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
}

.request-details .detail-item,
.selected-modules .detail-item {
    margin-bottom: 8px;
}

.request-details .detail-item strong,
.selected-modules .detail-item strong {
    display: inline-block;
    width: 160px;
}

.selected-modules ul {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
}

.selected-modules li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-item.total {
    margin-top: 16px;
    font-weight: 600;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.privacy-consent {
    margin-bottom: 24px;
}

.confirmation-buttons {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

/* Module Card Styles */
.module-card .module-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.module-toggle.selected {
    background-color: #4c4ad1;
}

/* General notification box */
.notice-box {
    background-color: var(--warning-light);
    border: 1px solid var(--warning-color);
    border-radius: var(--card-border-radius);
    padding: 16px;
    margin-bottom: 24px;
    color: var(--warning-dark);
}

.notice-box p {
    margin: 0;
    line-height: 1.5;
}

.notice-box a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.notice-box a:hover {
    text-decoration: underline;
}

/* Enhanced Hero Section (from index.php) */
.hero-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    background: linear-gradient(135deg, #f7fafc 0%, #e2e8f0 100%);
    margin-bottom: 80px;
}

.hero-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 128px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 600px;
    animation: fadeInLeft 1s ease-out;
    text-align: left;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--heading-color);
    position: relative;
}

.hero-description {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-top: 40px;
}

.hero-image {
    position: relative;
    flex: 1;
    height: 500px;
    display: flex;
    justify-content: flex-end;
    animation: fadeInRight 1s ease-out;
}

.hero-image img {
    width: 90%;
    height: 90%;
    object-fit: cover;
    border-radius: 24px;
    transition: transform 0.5s ease;
}

.hero-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background-color: rgba(26, 118, 210, 0.05);
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 1;
}

.hero-badge {
    position: absolute;
    top: 40px;
    right: 40px;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(26, 118, 210, 0.25);
    z-index: 3;
    animation: pulse 2s infinite;
}

/* Dark Mode for Hero Section */
[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #1e1f2b 0%, #282a3a 100%);
}

[data-theme="dark"] .hero-background {
    background-color: rgba(126, 124, 255, 0.1); /* Using dark theme primary-color with opacity */
}

[data-theme="dark"] .hero-title {
    color: var(--text-color);
}

[data-theme="dark"] .hero-description {
    color: var(--text-secondary);
}

[data-theme="dark"] .hero-badge {
    background-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(126, 124, 255, 0.25);
}

/* Update the hero animation shadow in dark mode */
[data-theme="dark"] .hero-section .button {
    box-shadow: 0 4px 12px rgba(126, 124, 255, 0.25);
}

[data-theme="dark"] .hero-section .button:hover {
    box-shadow: 0 6px 16px rgba(126, 124, 255, 0.3);
}

/* Hero image shadow adjustment for dark mode */
[data-theme="dark"] .hero-image img {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(26, 118, 210, 0.25);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 20px rgba(26, 118, 210, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(26, 118, 210, 0.25);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Button Styles (from index.php) */
.button.button-white {
    background-color: white;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.button.button-white:hover {
    background-color: #f5f5f5;
}

.button.button-outline-white {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    box-shadow: none;
}

.button.button-outline-white:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Enhanced Hero Button Style (from index.php) */
.hero-section .button {
    background-color: var(--primary-color);
    border: none;
    color: white;
    cursor: pointer;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(26, 118, 210, 0.25);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-section .button:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: all 0.6s ease;
    z-index: -1;
}

.hero-section .button:hover:before {
    left: 100%;
}

.hero-section .button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 118, 210, 0.3);
}

.hero-section .button.button-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.hero-section .button.button-secondary:hover {
    background-color: rgba(26, 118, 210, 0.1);
    transform: translateY(-2px);
}

/* Call to Action Section (from index.php) */
.cta-section {
    padding: 60px 0;
    margin-bottom: 80px;
}

.cta-container {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    border-radius: var(--card-border-radius);
    padding: 60px;
    text-align: left;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(26, 118, 210, 0.3);
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("assets/images/dots-pattern.png");
    opacity: 0.1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0;
    animation: fadeInUp 1s ease-out;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-text {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Heading Styles (from index.php) */
.section-title {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 1s ease-out;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title p {
    font-size: 18px;
    color: var(--secondary-color);
    max-width: 700px;
    margin: 0;
    text-align: center;
    margin: 0 auto;
}

.section-title-left {
    text-align: left;
    animation: none;
}

/* Why Choose Us Section (from index.php) */
.why-us-icon {
    margin-bottom: 16px;
}

.why-us-item-content h4 {
    margin-bottom: 8px;
}

.why-us-section {
    background-color: rgba(26, 118, 210, 0.05);
    padding: 80px 0;
}

/* New Why Us Container (replaces the flex layout with image) */
.why-us-container {
    background-color: var(--card-background);
    border-radius: var(--card-border-radius);
    padding: 40px;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
}

.why-us-intro {
    color: var(--secondary-color);
    font-size: 18px;
    line-height: 1.6;
    max-width: 900px;
    margin-bottom: 40px;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}

.why-us-cta {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Remove old why-us-content with image styling */
.why-us-content {
    display: block;
}

.why-us-image {
    display: none;
}

.all-courses-link,
.gallery-link {
    margin-top: 40px;
    text-align: center;
}

/* FAQ Section (from index.php) */
.faq-section {
    padding: 60px 0;
    margin-bottom: 80px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--card-border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-question {
    background-color: var(--card-background);
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--heading-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:after {
    content: "+";
    font-size: 24px;
    transition: all 0.3s ease;
}

.faq-item.active .faq-question:after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 1000px;
}

/* Counter Animation (from index.php) */
.counter-animation {
    display: inline-block;
}

/* Related news grid (from news_detail.php) */
.related-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.related-image {
    width: 100%;
    height: 150px;
    border-radius: var(--card-border-radius);
    overflow: hidden;
    margin-bottom: 12px;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-content {
    padding: 16px;
}

.related-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary-color);
    margin-top: 8px;
}

.news-navigation {
    margin: 32px 0;
}

/* Article gallery (from news_detail.php) */
.article-gallery {
    margin: 32px 0;
}

.article-gallery h2 {
    margin-bottom: 24px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .content,
    .navbar,
    header,
    .page-header {
        padding-left: 64px;
        padding-right: 64px;
    }

    .improved-hero {
        padding: 48px 64px;
    }

    .hero,
    .about-container {
        flex-direction: column;
    }

    .hero-image,
    .about-image {
        width: 100%;
        height: 300px;
    }

    .about-text {
        padding-right: 0;
    }

    .team-member {
        flex-direction: column;
    }

    .team-image {
        width: 100%;
        height: 300px;
        margin-bottom: 16px;
    }

    .event-details {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 32px;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-wrapper {
        padding-left: 64px;
        padding-right: 64px;
    }
        .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .logo {
        font-size: 20px;
    }
}

@media (max-width: 992px) {
    .request-details .detail-item strong,
    .selected-modules .detail-item strong {
        display: inline-block;
        width: 100%;
    }
    .request-details .detail-item span,
    .selected-modules .detail-item span {
        display: inline-block;
        width: 100%;
    }
    .theme-toggle {
        margin-right: 16px;
    }
    .form-container {
        flex-direction: column;
    }

    .form-section {
        width: 100%;
        max-width: 100%;
    }

    .module-section {
        max-height: none;
        overflow-y: visible;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .about-stats {
        flex-direction: column;
        gap: 24px;
    }

    .why-us-content {
        flex-direction: column;
    }

    .course-details {
        flex-direction: column;
        align-items: flex-start;
    }

    .course-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .course-action {
        margin-top: 16px;
        width: 100%;
    }

    .hero-wrapper {
        flex-direction: column;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
        margin-bottom: 40px;
    }

    .hero-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        width: 100%;
        justify-content: center;
    }
    .hero-image img {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .content,
    .navbar,
    header,
    .page-header {
        padding-left: 32px;
        padding-right: 32px;
    }

    .improved-hero {
        padding: 32px;
    }

    .header-left,
    .page-header,
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-right {
        margin-top: 16px;
        width: 100%;
    }

    .dropdown-container {
        width: 100%;
    }

    .team-member {
        flex-direction: column;
    }

    .team-image {
        width: 100%;
        height: 200px;
        margin-bottom: 8px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .hero {
        padding: 32px;
    }

    #hero-heading {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .about-container {
        padding: 32px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-actions {
        width: 100%;
        justify-content: center;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .page-footer {
        flex-direction: column;
        gap: 16px;
    }

    .related-news-grid {
        grid-template-columns: 1fr;
    }

    .hero-wrapper {
        padding-left: 32px;
        padding-right: 32px;
    }

    .cta-container {
        padding: 40px 20px;
    }

    .cta-title {
        font-size: 28px;
    }

    .hero-title {
        font-size: 36px;
    }

    .why-us-title {
        font-size: 28px;
    }

    .course-card {
        flex-direction: column;
    }

    .course-date {
        width: 100%;
        padding: 16px 0;
        flex-direction: row;
        justify-content: center;
        gap: 8px;
    }

    .date-day,
    .date-month {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .content,
    .navbar,
    header,
    .page-header {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero,
    .about-container {
        padding: 24px;
    }

    .hero-image,
    .about-image {
        height: 200px;
        width: 100%;
    }

    #hero-heading {
        font-size: 28px;
    }

    .heading {
        font-size: 28px;
    }

    .name-group {
        flex-direction: column;
        gap: 8px;
    }

    .hero-wrapper {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-section {
        padding: 40px 0;
    }

    .section-title h2 {
        font-size: 28px;
    }
}
