:root {
    --primary-color: #135D5E;
    --secondary-color: #FFCE00;
    --text-dark: #333;
    --text-light: #666;
    --background: #f8f9fa;
    --white: #ffffff;
    --border: #dee2e6;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--background);
}

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

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo h1 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.logo .subtitle {
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--primary-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--primary-color);
    border-radius: 10px;
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Notice Banner */
.notice-banner {
    background: var(--secondary-color);
    color: var(--text-dark);
    padding: 0.75rem;
    text-align: center;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(19, 93, 94, 0.85), rgba(19, 93, 94, 0.85)), 
                url('/public/img/schulgebaeude.png') center/cover;
    color: var(--white);
    padding: 6rem 0;
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Image Section */
.image-section {
    padding: 4rem 0;
    background: var(--background);
}

.image-section .section-title {
    margin-bottom: 3rem;
}

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

.image-card {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.image-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s;
}

.image-card:hover img {
    transform: scale(1.05);
}

.image-caption {
    padding: 1rem;
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--text-dark);
}

.btn-primary:hover {
    background: #ffc107;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Media Data */
.media-data {
    background: var(--white);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    background: var(--background);
    padding: 2rem;
    border-radius: 10px;
}

.media-item {
    padding: 1rem;
    background: var(--white);
    border-radius: 5px;
    border-left: 4px solid var(--secondary-color);
}

/* Pricing */
.pricing-section {
    background: var(--white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.pricing-card {
    background: var(--background);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    position: relative;
    transition: transform 0.3s;
}

.pricing-card.featured {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--secondary-color);
    color: var(--text-dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    margin: 1rem 0;
    color: var(--primary-color);
}

.pricing-card.featured .price {
    color: var(--secondary-color);
}

.pricing-card ul {
    list-style: none;
    margin-top: 1rem;
}

.pricing-card li {
    margin: 0.5rem 0;
}

.pricing-note {
    text-align: center;
    font-style: italic;
    color: var(--text-light);
}

/* Form */
.form-section {
    background: var(--background);
}

.order-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border);
    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: var(--primary-color);
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-note {
    color: var(--text-light);
    font-size: 0.9rem;
}

.form-message {
    margin-top: 2rem;
    padding: 1rem;
    border-radius: 5px;
    display: none;
}

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

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

/* Contact */
.contact-section {
    background: var(--white);
}

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

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.disclaimer {
    font-style: italic;
    color: var(--text-light);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.8;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    color: var(--text-light);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--text-dark);
}

/* Responsive Design */

/* Tablet Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 4rem 0;
        min-height: 400px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        gap: 1.5rem;
    }

    .media-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Header */
    .header {
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 0;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .logo .subtitle {
        font-size: 0.75rem;
    }

    /* Mobile Menu */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        flex-direction: column;
        padding: 1rem 0;
        gap: 0;
    }

    .nav.active {
        display: flex;
    }

    .nav a {
        padding: 0.75rem 1.5rem;
        border-bottom: 1px solid var(--border);
        width: 100%;
        text-align: left;
    }

    .nav a:last-child {
        border-bottom: none;
    }

    /* Notice Banner */
    .notice-banner {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    /* Hero Section */
    .hero {
        padding: 3rem 1rem;
        min-height: 350px;
        background-attachment: scroll;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .btn {
        padding: 10px 24px;
        font-size: 0.95rem;
    }

    /* Sections */
    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    /* Image Section */
    .image-section {
        padding: 2.5rem 0;
    }

    .image-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .image-card img {
        height: 220px;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    /* Media Data */
    .media-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .media-item {
        padding: 0.75rem;
        font-size: 0.95rem;
    }

    /* Pricing */
    .pricing-section {
        padding: 3rem 0;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pricing-card {
        padding: 1.5rem;
    }

    .pricing-card.featured {
        transform: none;
    }

    .price {
        font-size: 2.5rem;
    }

    /* Form */
    .form-section {
        padding: 3rem 0;
    }

    .order-form {
        padding: 2rem 1.5rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .form-group label {
        font-size: 0.95rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.65rem;
        font-size: 0.95rem;
    }

    .form-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .form-note {
        text-align: center;
        font-size: 0.85rem;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info {
        text-align: center;
    }

    /* Footer */
    .footer {
        padding: 1.5rem 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links {
        gap: 1.5rem;
    }

    /* Modal */
    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
        width: 95%;
        max-height: 85vh;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

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

    .section-title {
        font-size: 1.5rem;
    }

    .pricing-card {
        padding: 1.25rem;
    }

    .price {
        font-size: 2rem;
    }

    .order-form {
        padding: 1.5rem 1rem;
    }

    .btn-primary {
        width: 100%;
        padding: 12px;
    }
}

/* Landscape Mobile */
@media (max-width: 812px) and (orientation: landscape) {
    .hero {
        min-height: 300px;
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .section {
        padding: 2rem 0;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets for mobile */
    .nav a {
        padding: 0.5rem 0.75rem;
    }

    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        min-height: 44px;
    }

    /* Disable hover effects on touch devices */
    .feature-card:hover {
        transform: none;
    }

    .pricing-card:hover {
        transform: none;
    }

    .image-card:hover img {
        transform: none;
    }
}