/* Manuela Keller-Denzler Website - Main Styles */

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

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

/* Header & Navigation */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #5B9BD5;
    text-decoration: none;
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 30px;
    height: 50px; /* Feste Höhe für die gesamte Navigation */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    margin: 0; /* Entfernt alle Browser-Standard-Margins */
    padding: 0; /* Entfernt auch alle Standard-Paddings */
    height: 100%; /* Nimmt die volle Höhe der nav-content */
}

.nav-menu li {
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0; /* Entfernt auch List-Item Standard-Margins */
    padding: 0; /* Entfernt auch List-Item Standard-Paddings */
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    height: 100%; /* Gleiche Höhe wie der Container */
    padding: 0 5px; /* Minimales horizontales Padding */
}

.nav-menu a:hover,
.nav-menu a:focus {
    color: #5B9BD5;
}

/* Language Toggle */
.language-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f8f9fa;
    border-radius: 20px;
    padding: 5px;
    border: 1px solid #dee2e6;
    height: 34px; /* Etwas kleiner als die Container-Höhe */
    min-width: 120px;
}

.language-toggle a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 15px;
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    justify-content: center;
    white-space: nowrap;
}

.language-toggle a.active {
    background: #5B9BD5;
    color: white;
}

.language-toggle a:hover:not(.active) {
    background: #e9ecef;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

/* Main Content */
main {
    margin-top: 70px;
}

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

section {
    padding: 60px 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(91, 155, 213, 0.1), rgba(255, 255, 255, 0.9));
    text-align: center;
    padding: 100px 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: 700;
}

.hero .subtitle {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: #5B9BD5;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease;
    margin: 10px;
}

.cta-button:hover,
.cta-button:focus {
    background: #4a8bc2;
}

.cta-button.secondary {
    background: transparent;
    color: #5B9BD5;
    border: 2px solid #5B9BD5;
}

.cta-button.secondary:hover,
.cta-button.secondary:focus {
    background: #5B9BD5;
    color: white;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.portfolio-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

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

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.portfolio-item .content {
    padding: 20px;
}

.portfolio-item h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.portfolio-item p {
    color: #666;
    font-size: 0.9rem;
}

/* About Section */
.about {
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.about-text p {
    margin-bottom: 20px;
    color: #666;
    font-size: 1.1rem;
}

.credentials {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.credentials h3 {
    color: #5B9BD5;
    margin-bottom: 15px;
}

.credentials ul {
    list-style: none;
}

.credentials li {
    padding: 5px 0;
    color: #666;
}

.credentials li:before {
    content: "✓ ";
    color: #5B9BD5;
    font-weight: bold;
}

/* Courses Section */
.courses {
    background: #f8f9fa;
}

.courses h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.course-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.course-card h3 {
    color: #5B9BD5;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.course-card .price {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin: 20px 0;
}

.course-card ul {
    list-style: none;
    margin: 20px 0;
    text-align: left;
}

.course-card li {
    padding: 8px 0;
    color: #666;
}

.course-card li:before {
    content: "• ";
    color: #5B9BD5;
    font-weight: bold;
}

/* Contact Section */
.contact {
    background: white;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    color: #5B9BD5;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 15px;
    color: #666;
}

.social-links {
    margin-top: 30px;
}

.social-links a {
    display: inline-block;
    margin-right: 15px;
    color: #5B9BD5;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #4a8bc2;
}

/* Legal Pages Styles */
.content-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: #5B9BD5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #4a8bc2;
}

.back-link::before {
    content: "← ";
    margin-right: 5px;
}

.highlight-box {
    background: #f0f7ff;
    border-left: 4px solid #5B9BD5;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 10px 10px 0;
}

.info-box {
    background: #fff8e1;
    border-left: 4px solid #ff9800;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 10px 10px 0;
}

.success-box {
    background: #e8f5e8;
    border-left: 4px solid #4caf50;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 10px 10px 0;
}

.contact-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.contact-info p {
    margin-bottom: 5px;
}

.data-table {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
}

.data-table-header {
    background: #5B9BD5;
    color: white;
    padding: 15px 20px;
    font-weight: 600;
}

.data-table-content {
    padding: 20px;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    margin-top: 40px;
    color: #5B9BD5;
    border-bottom: 2px solid #5B9BD5;
    padding-bottom: 10px;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    margin-top: 25px;
    color: #333;
    font-weight: 600;
}

h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    margin-top: 20px;
    color: #5B9BD5;
    font-weight: 600;
}

p {
    margin-bottom: 15px;
    line-height: 1.7;
}

ul {
    margin-bottom: 15px;
    margin-left: 20px;
}

li {
    margin-bottom: 8px;
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 40px 0;
}

/* Skip to content for accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #5B9BD5;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1001;
}

.skip-to-content:focus {
    top: 6px;
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid #5B9BD5;
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-content {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        gap: 20px;
        height: auto; /* Überschreibt die feste Höhe für Mobile */
    }

    .nav-content.active {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        gap: 15px;
        height: auto; /* Überschreibt die 100% Höhe für Mobile */
        padding: 0; /* Behält das Padding: 0 bei */
        margin: 0; /* Behält das Margin: 0 bei */
    }

    .nav-menu li {
        height: auto; /* Überschreibt die 100% Höhe für Mobile */
        width: 100%; /* Volle Breite für bessere Touch-Targets */
    }

    .nav-menu a {
        height: auto; /* Überschreibt die 100% Höhe für Mobile */
        padding: 10px 5px; /* Gibt wieder ordentliches Padding für Touch */
        width: 100%;
    }

    .logo {
        font-size: 1.2rem;
        gap: 10px;
    }

    .logo img {
        width: 40px;
        height: 40px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .course-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .content-box {
        padding: 20px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    /* Legal pages container adjustment */
    .container {
        max-width: 900px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    section {
        padding: 40px 0;
    }

    .hero {
        padding: 60px 0;
    }

    .logo {
        font-size: 1rem;
        gap: 8px;
    }

    .logo img {
        width: 35px;
        height: 35px;
    }

    .course-grid {
        grid-template-columns: 1fr;
    }

    .course-card {
        padding: 20px;
    }

    main {
        padding: 60px 0;
    }
}