/* Custom Styles for Saarbrücken Website */

/* Global Styles */
:root {
    --primary-color: #00897b;
    --primary-dark: #00695c;
    --primary-light: #4db6ac;
    --accent-color: #ffd54f;
    --text-primary: #212121;
    --text-secondary: #757575;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(135deg, #00897b 0%, #004d40 100%);
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 137, 123, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero h4 {
    font-weight: 300;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1.2s ease-out;
}

.hero .btn-large {
    animation: fadeInUp 1.4s ease-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* DMM Banner */
.dmm-banner {
    padding: 2rem 0;
    border-left: 5px solid var(--primary-color);
    margin: 2rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dmm-banner h5 {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.dmm-banner p {
    margin-bottom: 0;
}

.dmm-banner .btn {
    margin-top: 1rem;
}

@media (max-width: 600px) {
    .dmm-banner .btn {
        width: 100%;
        margin-top: 1rem;
    }
}

/* Cards */
.card {
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card .card-title {
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    padding: 1rem;
    font-weight: 500;
}

.card .card-image img {
    height: 250px;
    object-fit: cover;
}

.card .card-content {
    min-height: 120px;
}

/* Section Styles */
.section {
    padding: 4rem 0;
}

.section h2, .section h3 {
    margin-bottom: 2rem;
    font-weight: 500;
}

.scrollspy {
    scroll-margin-top: 64px;
}

/* Navigation */
nav {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav .brand-logo {
    font-weight: 500;
    display: flex;
    align-items: center;
}

nav .brand-logo i {
    margin-right: 0.5rem;
}

/* Stats Counter */
.counter {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Map Styles */
#map {
    height: 600px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: 2rem 0;
}

.leaflet-popup-content {
    font-family: 'Roboto', sans-serif;
}

.leaflet-popup-content h6 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.leaflet-popup-content p {
    margin-bottom: 0.5rem;
}

.leaflet-popup-content .btn-small {
    margin-top: 0.5rem;
}

/* Location Cards */
.location-card {
    margin-bottom: 2rem;
}

.location-card .card-content h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.location-card .chip {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Footer */
.page-footer {
    padding-top: 2rem;
}

.page-footer h5 {
    font-weight: 500;
    margin-bottom: 1rem;
}

.page-footer ul li {
    margin-bottom: 0.5rem;
}

/* Responsive Typography */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero h4 {
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero h4 {
        font-size: 1.2rem;
    }
    
    #map {
        height: 400px;
    }
}

/* Contact Form */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form .input-field {
    margin-bottom: 2rem;
}

/* Image Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Social Share Buttons */
.social-share {
    margin: 2rem 0;
}

.social-share .btn-floating {
    margin: 0 0.5rem;
}

/* Breadcrumbs */
.breadcrumb {
    font-size: 1rem;
    margin: 1rem 0;
}

.breadcrumb:before {
    content: '\E5CC';
    color: rgba(0, 0, 0, 0.4);
}

/* Tags */
.tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-light);
    color: white;
    border-radius: 20px;
    margin: 0.25rem;
    font-size: 0.9rem;
}

/* Feature Boxes */
.feature-box {
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.feature-box:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.feature-box i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonial {
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
}

/* Print Styles */
@media print {
    .nav-wrapper,
    .page-footer,
    .dmm-banner,
    .btn,
    .btn-large {
        display: none;
    }
}

/* 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-width: 0;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed */
}