/* Kashi Yoga Sangam - Custom Styles */

/* === GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,500&family=Dancing+Script:wght@400;500;600;700&display=swap');

/* === ROOT VARIABLES === */
:root {
    /* Kundin Farbpalette */
    --primary-color: #52CFB7;     /* Türkis - Hauptfarbe */
    --secondary-color: #B61711;   /* Dunkelrot - Akzentfarbe */
    --accent-color: #E78934;      /* Orange - Highlight */
    --tertiary-color: #61190D;    /* Sehr dunkles Rot */
    --light-brown: #CDA88E;       /* Helles Braun */
    --warm-beige: #EEBE76;        /* Warmes Beige */
    --peach: #F7C5AE;            /* Pfirsich */
    --sand: #E2B280;             /* Sand */
    
    /* Standard System Farben */
    --success-color: #52CFB7;     /* Verwende Hauptfarbe */
    --warning-color: #E78934;     /* Verwende Orange */
    --danger-color: #B61711;      /* Verwende Dunkelrot */
    --info-color: #52CFB7;        /* Verwende Türkis */
    --light-color: #F8F9FA;
    --dark-color: #61190D;        /* Verwende dunkles Rot */
    --muted-color: #CDA88E;
    
    --gradient-primary: linear-gradient(135deg, #52CFB7 0%, #E78934 100%);
    --gradient-secondary: linear-gradient(135deg, #B61711 0%, #61190D 100%);
    --gradient-accent: linear-gradient(135deg, #EEBE76 0%, #F7C5AE 100%);
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
    --shadow-xl: 0 12px 24px rgba(0,0,0,0.25);
    
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* === BASE STYLES === */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #B61711;
    background-color: #E2B280;
    overflow-x: hidden;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* === TYPOGRAPHY === */
.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.highlight {
    color: #B61711 !important;
    text-shadow: none;
}

/* === NAVIGATION === */
.navbar {
    backdrop-filter: blur(10px);
    background-color: #EEBE76 !important;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-brand img {
    background: transparent !important;
}

.navbar-brand .brand-text {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Warenkorb Icon dunkelrot färben */
#cartBtn {
    color: #B61711 !important;
    border-color: #B61711 !important;
    background-color: transparent !important;
}

#cartBtn i {
    color: #B61711 !important;
}

#cartBtn:hover {
    background-color: #B61711 !important;
    color: white !important;
    border-color: #B61711 !important;
}

#cartBtn:hover i {
    color: white !important;
}

#cartBtn .badge {
    background-color: #B61711 !important;
    color: white !important;
}

/* === HERO SECTION === */
.hero-section {
    position: relative;
    min-height: calc(100vh - 70px); /* Hero unter dem Menü */
    overflow: hidden;
    margin-top: 70px; /* Schiebt den Hero unter die Navigation */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #E2B280 !important;
    z-index: 1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none !important;
    opacity: 0;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent !important;
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 4;
    color: #B61711 !important;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-features {
    animation: fadeInUp 1s ease 0.6s both;
}

.feature-item {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.feature-item i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.hero-image {
    position: relative;
    z-index: 4;
    animation: fadeInRight 1s ease 0.3s both;
}

/* === BUTTONS === */
.btn {
    font-weight: 500;
    padding: 12px 30px;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-normal);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::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: left var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

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

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* === CARDS === */
.course-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: none;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.course-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.course-badge .badge {
    padding: 8px 12px;
    border-radius: var(--border-radius-md);
    font-size: 0.8rem;
    font-weight: 500;
}

.course-card .card-body {
    padding: 1.5rem 1.25rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-content-top {
    flex-grow: 0;
}

.course-details {
    font-size: 0.9rem;
    color: var(--muted-color);
    flex-grow: 0;
}

.course-pricing {
    margin-top: auto;
    min-height: 80px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 0;
}

.course-pricing .price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.course-pricing .price-period {
    color: var(--muted-color);
    font-size: 0.9rem;
}

/* Abo-Requirement Notice am unteren Rand fixieren */
.abo-requirement-notice {
    background-color: #fef3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 1rem;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* === FEATURE CARDS === */
.feature-card {
    background: white;
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-normal);
    border: 1px solid #eee;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.feature-icon i {
    font-size: 2rem;
}

/* === SCHEDULE TABLE === */
.schedule-table {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: -8px -8px 20px rgba(0, 0, 0, 0.15), 
                2px 2px 15px rgba(0, 0, 0, 0.2);
    border: 3px solid var(--primary-color);
}

.schedule-table th {
    background: var(--primary-color) !important;
    border: none;
    font-weight: 600;
    text-align: center;
    padding: 1rem 0.5rem;
    color: white !important;
}

.schedule-table td {
    border: 1px solid #dee2e6;
    padding: 0.5rem;
    vertical-align: middle;
    height: 80px;
}

.time-slot {
    background: var(--light-color);
    font-weight: 600;
    text-align: center;
    color: var(--dark-color);
}

.class-slot {
    position: relative;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.class-slot:hover {
    background-color: rgba(107, 115, 255, 0.1);
}

.class-slot.hatha {
    background: linear-gradient(135deg, #F7F9F9 0%, #E8F4F2 100%);
    border-left: 4px solid var(--primary-color);
}

.class-slot.vinyasa {
    background: linear-gradient(135deg, #FEF9F1 0%, #FDECD4 100%);
    border-left: 4px solid var(--accent-color);
}

.class-slot.yin {
    background: linear-gradient(135deg, #FBF3F1 0%, #F5E6E0 100%);
    border-left: 4px solid var(--light-brown);
}

.class-slot.meditation {
    background: linear-gradient(135deg, #FDF9F6 0%, #FAF2E9 100%);
    border-left: 4px solid var(--warm-beige);
}

.class-slot.rise-shine {
    background: linear-gradient(135deg, #FEF8F2 0%, #FCF0E5 100%);
    border-left: 4px solid var(--peach);
}

.class-slot.mum-baby {
    background: linear-gradient(135deg, #FEF7F4 0%, #FCEBE1 100%);
    border-left: 4px solid var(--sand);
}

.class-slot.babybelly {
    background: linear-gradient(135deg, #FCF8F6 0%, #F7EFEA 100%);
    border-left: 4px solid var(--tertiary-color);
}

.class-slot.morning-yoga {
    background: linear-gradient(135deg, #F8FBFB 0%, #EDF6F4 100%);
    border-left: 4px solid var(--primary-color);
}

.class-slot.yoga-basic {
    background: linear-gradient(135deg, #F7F9F9 0%, #EBF2F1 100%);
    border-left: 4px solid var(--info-color);
}

.class-slot.aerial {
    background: linear-gradient(135deg, #F9FCFB 0%, #F1F7F5 100%);
    border-left: 4px solid var(--primary-color);
}

.class-slot.yoga-advanced {
    background: linear-gradient(135deg, #FCF2F1 0%, #F7E4E2 100%);
    border-left: 4px solid var(--secondary-color);
}

.class-slot.after-work {
    background: linear-gradient(135deg, #FBF8F5 0%, #F4EDE6 100%);
    border-left: 4px solid var(--light-brown);
}

.class-slot.feetup {
    background: linear-gradient(135deg, #FEF9F1 0%, #FDECD4 100%);
    border-left: 4px solid var(--accent-color);
}

.class-slot.workshop {
    background: linear-gradient(135deg, #FDF9F6 0%, #FAF2E9 100%);
    border-left: 4px solid var(--warm-beige);
}

.class-info {
    font-size: 0.85rem;
    line-height: 1.3;
}

.class-info strong {
    color: var(--dark-color);
}

.class-info small {
    color: var(--muted-color);
}

/* === CONTACT SECTION === */
.contact-info .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-info .contact-item i {
    font-size: 1.2rem;
    margin-top: 2px;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.form-control {
    border-radius: var(--border-radius-md);
    border: 1px solid #ddd;
    padding: 12px 15px;
    transition: all var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(107, 115, 255, 0.25);
}

/* === FOOTER === */
footer {
    background: var(--dark-color) !important;
}

footer h5, footer h6 {
    color: white;
    font-weight: 600;
}

footer a {
    transition: color var(--transition-fast);
}

footer a:hover {
    color: var(--primary-color) !important;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* === CART OFFCANVAS === */
.offcanvas {
    border-radius: var(--border-radius-lg) 0 0 var(--border-radius-lg);
}

.cart-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    transition: background var(--transition-fast);
}

.cart-item:hover {
    background: var(--light-color);
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-md);
    object-fit: cover;
}

.empty-cart i {
    opacity: 0.3;
}

/* === COURSE FILTER === */
.filter-buttons .btn {
    border-radius: 25px;
    padding: 8px 20px;
    font-size: 0.9rem;
}

.filter-buttons .btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Loading animation */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === ACCESSIBILITY === */
.keyboard-focused {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.screen-reader-text {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
}

.screen-reader-text:focus {
    background: var(--primary-color);
    color: white;
    display: block;
    font-size: 1rem;
    font-weight: bold;
    height: auto;
    left: 6px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 7px;
    width: auto;
    z-index: 100000;
    clip: auto !important;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 991.98px) {
    /* Classes-Section - normaler Abstand auf Tablets */
    #courses {
        padding-top: 3rem !important;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .navbar-nav {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #eee;
    }
    
    .schedule-table {
        font-size: 0.8rem;
    }
    
    .class-info {
        font-size: 0.75rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        margin-top: 60px; /* Weniger Margin auf Tablets */
        min-height: calc(100vh - 60px);
    }
    
    /* Classes-Section - normaler Abstand */
    #courses {
        padding-top: 3rem !important;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .course-card {
        margin-bottom: 1.5rem;
    }
    
    .schedule-container {
        overflow-x: auto;
    }
    
    .schedule-table {
        min-width: 800px;
    }
    
    .contact-form {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .hero-features .col-auto {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        margin-top: 65px; /* Mobile Navigation ist höher */
        min-height: 130vh; /* Mehr Höhe auf mobilen Geräten für den gesamten Content */
    }
    
    /* Classes-Section - normaler Abstand */
    #courses {
        padding-top: 3rem !important;
    }
    
    /* Hero-Content oben ausrichten statt zentrieren */
    .hero-section .row {
        align-items: flex-start !important;
        padding-top: 2rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .course-pricing .price-current {
        font-size: 1.3rem;
    }
    
    .navbar-brand .brand-text {
        font-size: 1.2rem;
    }
    
    .filter-buttons .btn {
        font-size: 0.8rem;
        padding: 6px 15px;
        margin-bottom: 0.5rem;
    }
}

/* === MOBILE DEVICES === */
@media (max-width: 480px) {
    .hero-section {
        margin-top: 70px; /* Höhere Mobile Navigation */
        min-height: 140vh; /* Noch mehr Höhe für kleinere Bildschirme */
    }
    
    /* Classes-Section - normaler Abstand */
    #courses {
        padding-top: 3rem !important;
    }
    
    /* Hero-Content oben ausrichten */
    .hero-section .row {
        align-items: flex-start !important;
        padding-top: 2rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
}

/* === SEHR KLEINE DEVICES === */
@media (max-width: 375px) {
    .hero-section {
        margin-top: 75px; /* Extra für sehr kleine Screens */
        min-height: 150vh; /* Maximale Höhe für sehr kleine Bildschirme */
    }
    
    /* Classes-Section - normaler Abstand */
    #courses {
        padding-top: 3rem !important;
    }
    
    /* Hero-Content oben ausrichten */
    .hero-section .row {
        align-items: flex-start !important;
        padding-top: 1.5rem;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
}

/* === UTILITY CLASSES === */
.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-secondary {
    background: var(--gradient-secondary);
}

.bg-gradient-accent {
    background: var(--gradient-accent);
}

.text-gradient-primary {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: var(--shadow-lg);
}

.border-radius-custom {
    border-radius: var(--border-radius-lg);
}

/* === PERFORMANCE OPTIMIZATIONS === */
.course-item {
    will-change: transform;
}

.hero-background,
.hero-overlay {
    will-change: opacity;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* === PRINT STYLES === */
@media print {
    .navbar,
    .hero-section,
    footer,
    .btn,
    .offcanvas {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .section-title {
        color: #000;
        page-break-after: avoid;
    }
    
    .course-card {
        border: 1px solid #000;
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
}

/* === CLASS DESCRIPTIONS ACCORDION STYLING === */
#class-descriptions {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.accordion-button {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    border-radius: 0;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    border-color: transparent;
    box-shadow: 0 0 0 0.25rem rgba(82, 207, 183, 0.25);
}

.accordion-button::after {
    filter: brightness(0) invert(1);
}

.accordion-body {
    padding: 2rem;
    background: white;
}

.class-schedule {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color)) !important;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.accordion-body img {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.accordion-body img:hover {
    transform: scale(1.05);
}

/* === TEACHERS SECTION STYLING === */
.teacher-profile {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.teacher-profile:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.teacher-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    transition: border-color 0.3s ease;
}

.teacher-profile:hover .teacher-photo {
    border-color: var(--secondary-color);
}

.teacher-image-container {
    position: relative;
}

.teacher-image-container::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 220px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    opacity: 0.3;
    z-index: -1;
}

.teacher-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.teacher-title {
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.teacher-description {
    text-align: justify;
    line-height: 1.6;
}

.teacher-specialties .badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 500;
}

/* Responsive adjustments for teachers section */
@media (max-width: 768px) {
    .teacher-profile {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .teacher-photo {
        width: 150px;
        height: 150px;
    }
    
    .teacher-image-container::after {
        width: 170px;
        height: 170px;
    }
    
    .teacher-description {
        text-align: left;
    }
}

/* === FEATURE HIGHLIGHT CARDS === */
.feature-highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(82, 207, 183, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.feature-highlight:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(82, 207, 183, 0.4);
}

.feature-highlight .feature-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.feature-highlight h5 {
    font-weight: 600;
    font-size: 1.25rem;
}

.feature-highlight p {
    line-height: 1.5;
}

/* === NEUE FARBPALETTE - KUNDIN DESIGN === */
/* Alternierende Hintergründe für Sektionen */
section:nth-child(odd) {
    background-color: #E2B280 !important; /* Sand */
}

section:nth-child(even) {
    background-color: #EEBE76 !important; /* Warmes Beige */
}

/* Bootstrap-Klassen überschreiben */
.bg-light {
    background-color: #EEBE76 !important;
}

.bg-white {
    background-color: #E2B280 !important;
}

/* Button-Farben - ohne Farbverlauf */
.btn-primary {
    background-color: #52CFB7 !important;
    border-color: #52CFB7 !important;
    color: #B61711 !important;
    background-image: none !important;
}

.btn-primary:hover {
    background-color: #3db09a !important;
    border-color: #3db09a !important;
    color: #B61711 !important;
}

.btn-outline-primary {
    border-color: #52CFB7 !important;
    color: #52CFB7 !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover {
    background-color: #52CFB7 !important;
    border-color: #52CFB7 !important;
    color: #B61711 !important;
}

.btn-success {
    background-color: #52CFB7 !important;
    border-color: #52CFB7 !important;
    color: #B61711 !important;
}

.btn-warning {
    background-color: #52CFB7 !important;
    border-color: #52CFB7 !important;
    color: #B61711 !important;
}

/* Text-Farben */
.text-primary {
    color: #B61711 !important;
}

.text-secondary {
    color: #B61711 !important;
}

h1, h2, h3, h4, h5, h6 {
    color: #B61711 !important;
}

/* Navigation */
.navbar {
    background-color: #EEBE76 !important;
}

.navbar-brand {
    color: #B61711 !important;
}

.navbar-nav .nav-link {
    color: #B61711 !important;
}

.navbar-nav .nav-link:hover {
    color: #52CFB7 !important;
}

/* Cards */
.card {
    background-color: #EEBE76 !important;
    border-color: #52CFB7 !important;
}

.card-header {
    background-color: #52CFB7 !important;
    color: #B61711 !important;
    border-color: #52CFB7 !important;
}

/* Footer */
footer {
    background-color: #E2B280 !important;
    color: #B61711 !important;
}

/* Abo-Empfehlung Alert */
.abo-empfehlung-alert {
    background-color: #E78934 !important;
    border-color: #E78934 !important;
    color: #B61711 !important;
}

.abo-empfehlung-alert h5,
.abo-empfehlung-alert p,
.abo-empfehlung-alert li,
.abo-empfehlung-alert .alert-heading {
    color: #B61711 !important;
}

.abo-empfehlung-alert .btn-primary {
    background-color: #52CFB7 !important;
    border-color: #52CFB7 !important;
    color: #B61711 !important;
}

/* Teacher Profile Hintergrund */
.teacher-background {
    background-color: #EEBE76 !important;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Hero Section - kein Verlauf */
.hero-section {
    background-color: #E2B280 !important;
}

.hero-background {
    background: #E2B280 !important;
    background-image: none !important;
}

/* Dark red section headers */
.section-header-dark {
    background-color: #61190D !important;
    border-radius: 10px;
    padding: 30px 20px;
    margin-bottom: 40px;
    color: white !important;
}

.section-header-dark .section-title {
    color: white !important;
    margin-bottom: 10px;
}

.section-header-dark .lead {
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 0;
}

/* Abo-Button Farben behalten bei Hover und Active */
.add-to-cart.btn-primary,
.add-to-cart.btn-primary:hover,
.add-to-cart.btn-primary:active,
.add-to-cart.btn-primary:focus,
.add-to-cart.btn-primary.active {
    background-color: #52CFB7 !important;
    border-color: #52CFB7 !important;
    color: white !important;
}

.add-to-cart.btn-success,
.add-to-cart.btn-success:hover,
.add-to-cart.btn-success:active,
.add-to-cart.btn-success:focus,
.add-to-cart.btn-success.active {
    background-color: #198754 !important;
    border-color: #198754 !important;
    color: white !important;
}

.add-to-cart.btn-warning,
.add-to-cart.btn-warning:hover,
.add-to-cart.btn-warning:active,
.add-to-cart.btn-warning:focus,
.add-to-cart.btn-warning.active {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #212529 !important;
}

/* Bootstrap primary Farben überschreiben */
.bg-primary {
    background-color: #52CFB7 !important;
}

.border-primary {
    border-color: #52CFB7 !important;
}

.text-primary {
    color: #52CFB7 !important;
}

/* Klassen-Titel als klickbare Links */
.class-title-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.class-title-link:hover {
    color: #52CFB7 !important;
    text-decoration: none;
}

.class-title-link:focus {
    outline: none;
    color: #52CFB7;
}

/* Abo-Titel auf farbigen Hintergründen - Farbwechsel zu rot beim Hover */
.card-header .class-title-link.text-white:hover {
    color: #B61711 !important;
    text-shadow: 0 0 1px rgba(255,255,255,0.8);
}

.card-header .class-title-link.text-dark:hover {
    color: #B61711 !important;
}

/* Workshop-Kacheln: Button immer am unteren Ende */
.course-card .card-body .add-to-cart {
    margin-top: auto;
}

/* === HONEYPOT SPAM-SCHUTZ === */
.honeypot-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.honeypot-field input {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
}

/* Modal auf kleinen Bildschirmen schmaler */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem auto;
        max-width: 90% !important;
        width: 90% !important;
    }
}

/* Zusätzlich für sehr kleine iPhones */
@media (max-width: 400px) {
    .modal-dialog {
        margin: 0.5rem auto;
        max-width: 85% !important;
        width: 85% !important;
    }
}

/* === AUSGEBUCHTE WORKSHOPS === */
/* Ausgebuchte Workshop-Kachel - gedämpfte Darstellung */
.course-card.workshop-fully-booked {
    opacity: 0.85;
    position: relative;
}

.course-card.workshop-fully-booked::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(182, 23, 17, 0.05); /* Leichter Rotton-Overlay */
    pointer-events: none;
    z-index: 1;
    border-radius: var(--border-radius-lg);
}

/* Hover-Effekt bei ausgebuchten Workshops reduzieren */
.course-card.workshop-fully-booked:hover {
    transform: translateY(-4px); /* Weniger als normale Karten */
    box-shadow: var(--shadow-md); /* Schwächerer Schatten */
}

/* Alert-Box für Ausgebucht-Meldung */
.course-card .alert-danger {
    position: relative;
    z-index: 2;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border-radius: var(--border-radius-md);
    border: 1px solid #dc3545;
    animation: pulseWarning 2s ease-in-out infinite;
}

@keyframes pulseWarning {
    0%, 100% {
        background-color: #f8d7da;
        border-color: #dc3545;
    }
    50% {
        background-color: #f5c2c7;
        border-color: #c82333;
    }
}

/* Badge für ausgebuchte Workshops */
.course-badge .badge.bg-danger {
    background: linear-gradient(135deg, #B61711, #61190D) !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
}

/* Deaktivierter Button bei ausgebuchten Workshops */
.course-card .btn-secondary:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    opacity: 0.75;
    cursor: not-allowed;
}

/* Plätze-Anzeige */
.course-details small.text-warning {
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    background: rgba(231, 137, 52, 0.1);
    border-radius: 4px;
    display: inline-block;
}

.course-details small.text-danger {
    font-weight: 700;
    color: #B61711 !important;
}
