/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* Header */
header {
    background: linear-gradient(90deg, #fff 0%, #fff 70%, #FFCC00 100%);
    box-shadow: 0 2px 10px rgba(221, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid #DD0000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.logo h1 {
    color: #DD0000;
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover,
nav a.active {
    color: #DD0000;
    text-shadow: 0 0 5px rgba(221, 0, 0, 0.3);
}

nav a:focus-visible {
    outline: 3px solid #FFCC00;
    outline-offset: 2px;
    border-radius: 3px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.btn:focus-visible {
    outline: 3px solid #FFCC00;
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, #DD0000 0%, #1a1a1a 100%);
    color: white;
    border: 2px solid #FFCC00;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1a1a1a 0%, #DD0000 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(221, 0, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #DD0000;
    border: 2px solid #DD0000;
}

.btn-secondary:hover {
    background: #DD0000;
    color: #fff;
    border-color: #DD0000;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #FFCC00 0%, #DD0000 50%, #1a1a1a 100%);
    padding: 80px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #FFCC00;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: bold;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Page header */
.page-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #DD0000 50%, #FFCC00 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Features section */
.features {
    padding: 80px 0;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #DD0000;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

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

.feature {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(221, 0, 0, 0.2);
    transition: all 0.3s;
    border: 2px solid transparent;
    background: linear-gradient(145deg, #fff 0%, #fcf8f0 100%);
}

.feature:hover {
    transform: translateY(-10px);
    border-color: #FFCC00;
    box-shadow: 0 10px 25px rgba(221, 0, 0, 0.3);
}

.feature img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #DD0000;
    font-weight: bold;
}

.feature h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #DD0000;
    font-weight: bold;
}

/* About content */
.about-content {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 60px;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #DD0000;
    font-weight: bold;
}

.about-text h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: #DD0000;
    font-weight: bold;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.mission, .vision {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
}

.values h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #DD0000;
    font-weight: bold;
}

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

.value {
    text-align: center;
    padding: 20px;
}

/* Courses */
.courses {
    padding: 80px 0;
}

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

.course {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(221, 0, 0, 0.2);
    transition: all 0.3s;
    border: 2px solid transparent;
    background: linear-gradient(145deg, #fff 0%, #fcf8f0 100%);
}

.course:hover {
    transform: translateY(-5px);
    border-color: #FFCC00;
    box-shadow: 0 10px 25px rgba(221, 0, 0, 0.3);
}

.course img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-content {
    padding: 30px;
}

.course-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #DD0000;
    font-weight: bold;
}

.course-content ul {
    margin: 20px 0;
    padding-left: 20px;
}

.course-content li {
    margin-bottom: 8px;
}

.course-details {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    font-size: 0.9rem;
    color: #666;
}

.course-features {
    background: #f8f9fa;
    padding: 60px 0;
}

.course-features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #DD0000;
    font-weight: bold;
}

/* Contact */
.contact {
    padding: 80px 0;
}

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

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #DD0000;
    font-weight: bold;
}

.contact-details {
    margin: 40px 0;
}

.contact-item {
    margin-bottom: 25px;
}

.contact-item h4 {
    color: #DD0000;
    margin-bottom: 8px;
    font-weight: bold;
}

.contact-form-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #DD0000;
    font-weight: bold;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #DD0000;
    box-shadow: 0 0 5px rgba(221, 0, 0, 0.3);
}

.message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

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

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

/* CTA sections */
.cta {
    background: linear-gradient(135deg, #1a1a1a 0%, #DD0000 50%, #FFCC00 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: #FFCC00;
    font-weight: bold;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #FFCC00;
    text-shadow: 0 0 5px rgba(255, 204, 0, 0.5);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #999;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #333;
    color: white;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

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

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

.cookie-buttons .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Legal pages */
.legal-content {
    padding: 80px 0;
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 2rem;
    margin: 40px 0 20px;
    color: #DD0000;
    font-weight: bold;
}

.legal-content h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: #DD0000;
    font-weight: bold;
}

.legal-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.legal-content ul {
    margin: 15px 0;
    padding-left: 30px;
}

.legal-content li {
    margin-bottom: 10px;
}

/* Creative German-themed decorative elements */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 204, 0, 0.1) 10px,
        rgba(255, 204, 0, 0.1) 20px
    );
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 15px,
        rgba(255, 204, 0, 0.1) 15px,
        rgba(255, 204, 0, 0.1) 30px
    );
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(45deg, #1a1a1a 25%, #DD0000 25%, #DD0000 50%, #FFCC00 50%, #FFCC00 75%, #1a1a1a 75%);
    background-size: 40px 40px;
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
}

/* German flag accent border */
.feature img,
.course img {
    border: 3px solid transparent;
    border-image: linear-gradient(45deg, #1a1a1a, #DD0000, #FFCC00) 1;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .mission-vision {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    header .container {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .features h2,
    .cta h2 {
        font-size: 1.8rem;
    }
}