/* Brevet spezifische Stile */
.course-option {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.option-image-container {
    height: 300px;
    overflow: hidden;
}

.option-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.option-header {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.option-header h3 {
    margin: 0;
    color: #2c3e50;
}

.option-tag {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-weight: bold;
}

.option-content {
    padding: 1.5rem;
}

.option-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #e0e0e0;
}
.content-grid {
    display: grid;
    gap: 2rem;
}
#text-box {
    width: auto;
    height: auto;
    padding: 0px 20px;
}
.content-main {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.highlight-box {
    background: #f8f9fa;
    border-left: 4px solid #ff8c00;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.highlight-box h3 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.info-item {
    margin-bottom: 1rem;
}

.info-item h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.price-box {
    background: #e6f7ff;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    text-align: center;
}

.price {
    font-size: 2rem;
    font-weight: bold;
    color: #007bff;
    margin: 0.5rem 0;
}

.price span {
    font-size: 1rem;
    font-weight: normal;
    color: #666;
}

.special-price {
    color: #ff5722;
    font-weight: bold;
    font-size: 1.2rem;
}

.notice-box {
    background: #fff8e1;
    padding: 1rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.notice-box h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0;
    color: #ff9800;
}

.booking-box {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.booking-box h3 {
    margin-top: 0;
    text-align: center;
    color: #007bff;
}

.gallery-preview {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.gallery-preview h3 {
    margin-top: 0;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin: 1rem 0;
}

/* Bildoptimierungen */

.img-box {
    max-width: 100%;
	height: auto;
	aspect-ratio: 1.5 / 1;
	display: block;
	object-fit: cover;
	overflow: hidden;
    border-radius: 8px;         /* abgerundete Ecken */
    box-shadow: 0 2px 8px rgba(0,0,0,0.4); /* sanfter Schatten */
    transition: transform 0.3s ease;
}
.img:hover {
    transform: scale(1.02);     /* leichter Zoom beim Hover */
}

.gallery-grid img {
    max-height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
    width: 100%;
    border-radius: 5px;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

.faq {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.faq h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    margin: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
    display: block;
}

/* Login Popup Stile */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.popup-content {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    position: relative;
}

.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: #007bff;
}

.popup h2 {
    margin-top: 0;
    text-align: center;
    color: #007bff;
}

.register-link {
    text-align: center;
     color: #007bff;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.register-link a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.register-link a:hover {
    text-decoration: underline;
}

.action-box {
    text-align: center;
    margin: 2rem 0;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.mt-2 {
    margin-top: 1rem;
}

.error {
    color: #dc3545;
    font-weight: bold;
}

.success {
    color: #28a745;
    font-weight: bold;
}

/* Responsive Anpassungen */
@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .content-sidebar {
        order: -1;
    }
}

@media (max-width: 600px) {
    .content-main, .booking-box, .gallery-preview {
        padding: 1rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid img {
        max-height: 250px;
        object-fit: contain;
    }
    
    .hero {
        background-size: cover;
        background-position: center;
        min-height: 300px;
    }
    
    .price {
        font-size: 1.5rem;
    }
    
    .testimonial-slider {
        padding: 0 1rem;
    }
}
