/* Custom CSS for Röhrig Bildung */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px; /* Account for fixed navbar */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    pointer-events: none; /* allow clicks to pass through overlay */
}

.hero-image img {
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: translateY(-10px);
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

/* Inline SVG icon tweaks */
.icon-svg {
    color: var(--primary-color);
    display: block;
}

/* Image icons inside circular badges */
.icon-wrap {
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: saturate(1.1) contrast(1.05);
}

/* Modal visual polish */
.modal-hero img {
    display: block;
}

.modal-content {
    border-radius: 16px;
}

.modal-title {
    font-weight: 700;
}

/* Buttons */
.btn {
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Uniform badge sizing for info chips */
.badge-uniform {
    font-size: 0.9rem !important;
    padding: 0.4rem 0.6rem !important;
    border-radius: 0.5rem !important;
}

/* Sections */
section {
    position: relative;
}

.bg-light {
    background-color: #f8f9fa !important;
}

/* Calendar Styles */
#calendar {
    min-height: 300px;
}

/* Available dates styling */
.fc-event.available-date {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
    font-weight: bold !important;
    cursor: pointer !important;
    border-radius: 4px !important;
    padding: 2px 4px !important;
}

.fc-event.available-date:hover {
    background-color: #218838 !important;
    border-color: #218838 !important;
    transform: scale(1.05);
    transition: all 0.2s ease;
}

/* Past dates and weekends */
.fc-day-past,
.fc-day-sat,
.fc-day-sun {
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    opacity: 0.5 !important;
    pointer-events: none !important;
}

.fc .fc-toolbar {
    gap: 6px;
}

.fc .fc-button {
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
    line-height: 1.1;
    border-radius: 0.25rem;
}

.fc .fc-toolbar-title {
    font-size: 1.1rem;
}

.fc-event {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.fc-button-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.fc-button-primary:hover {
    background-color: #0056b3 !important;
    border-color: #0056b3 !important;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 70px; /* Slightly less padding on mobile */
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }

    /* Cards - tablet and down */
    .card-body {
        padding: 1.25rem !important;
    }
    .card .card-title {
        font-size: 1.1rem;
    }
    .card .card-text {
        font-size: 0.95rem;
    }
    .icon-wrap {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        overflow: hidden;
    }
    .badge-uniform {
        font-size: 0.85rem !important;
        padding: 0.3rem 0.55rem !important;
    }
}

/* Phones */
@media (max-width: 576px) {
    .hero-section {
        padding-top: 60px; /* Even less padding on very small screens */
    }
    
    /* Tighten paddings and sizes for small screens */
    .card-body {
        padding: 1rem !important;
    }
    .card .card-title {
        font-size: 1.05rem;
    }
    .card .card-text,
    .card ul li {
        font-size: 0.92rem;
    }
    .icon-wrap {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        overflow: hidden;
    }
    .badge-uniform {
        font-size: 0.8rem !important;
        padding: 0.28rem 0.5rem !important;
        border-radius: 0.45rem !important;
    }
    .btn.btn-sm { 
        padding: 0.4rem 0.6rem; 
        font-size: 0.9rem; 
        border-radius: 0.45rem;
    }
    /* Make hero buttons stack nicely */
    .hero-section .d-flex.gap-3 { gap: 0.75rem !important; }
}

/* SEO and Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus {
    outline: 2px solid var(--warning-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    footer {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}
