/* CSS Variables */
:root {
    --main-blue: #147ec2;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
.header {
    background: #f5f5f5;
    color: var(--main-blue);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo .logo-image {
    height: 60px;
    width: auto;
    margin-bottom: 0.5rem;
}

.logo, .nav {
    min-width: 0;
    max-width: 100%;
}

.logo-image {
    max-width: 100%;
    object-fit: contain;
}

.nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
}

.nav a {
    display: block;
    color: var(--main-blue);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav a:hover,
.nav a.active {
    background-color: rgba(20, 126, 194, 0.1);
    transform: translateY(-2px);
}

/* Main content styles */
.main {
    min-height: calc(100vh - 200px);
}

/* Hero section */
.hero {
    background: #f8f9fa;
    padding: 4rem 0;
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--main-blue);
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--main-blue);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #555;
}

.main-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.main-image:hover {
    transform: scale(1.02);
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #106aab;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(20, 126, 194, 0.4);
}

/* Features section */
.features {
    padding: 4rem 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: #f8f9fa;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h2 {
    color: var(--main-blue);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* Page header */
.page-header {
    background: #106aab;
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Contact section */
.contact-section {
    padding: 4rem 0;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
}

.contact-info h2 {
    color: var(--main-blue);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.contact-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item h3 {
    color: var(--main-blue);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-item a {
    color: var(--main-blue);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Map section */
.map-section {
    padding: 3rem 0;
    background: #f8f9fa;
}

.map-section h2 {
    text-align: center;
    color: var(--main-blue);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Impressum section */
.impressum-section {
    padding: 4rem 0;
    background: white;
}

.impressum-content {
    max-width: 800px;
    margin: 0 auto;
}

.impressum-card {
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.impressum-card h2 {
    color: var(--main-blue);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.impressum-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #dee2e6;
}

.impressum-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.impressum-item h3 {
    color: var(--main-blue);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* Privacy section */
.privacy-section {
    padding: 4rem 0;
    background: white;
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-card {
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.privacy-card h2 {
    color: var(--main-blue);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.privacy-item {
    margin-bottom: 2rem;
}

.privacy-item h3 {
    color: var(--main-blue);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.privacy-date {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-top: 2rem;
}

/* Footer styles */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h2 {
    color: #ecf0f1;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Responsive design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        text-align: center;
    }
    
    .nav ul {
        margin-top: 1rem;
        gap: 1rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .impressum-card,
    .privacy-card {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--main-blue);
    outline-offset: 2px;
}


/* Flexible links and readable text at narrow widths */
body { overflow-wrap: anywhere; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-actions .btn { text-align: center; }
.map-container { padding: 2rem; }
.map-container address { font-style: normal; }
.map-container p { margin-top: 1rem; }
a { color: #106aab; }
.contact-item a { color: #106aab; text-decoration: underline; }
a:focus-visible, button:focus-visible, main:focus-visible {
    outline: 3px solid #102c40;
    outline-offset: 4px;
    box-shadow: 0 0 0 4px white;
}
.skip-link { position: absolute; left: 1rem; top: -10rem; z-index: 2000; padding: 0.75rem; background: white; }
.skip-link:focus { top: 1rem; }
.scroll-to-top {
    position: fixed; bottom: 20px; right: 20px; width: 50px; height: 50px;
    border-radius: 50%; background: #106aab; color: white; border: none;
    cursor: pointer; font-size: 20px; z-index: 1000;
}
@media (max-width: 768px) {
    .hero-actions { justify-content: center; }
}
@media (max-width: 480px) {
    .hero-actions .btn { width: 100%; }
    .contact-card, .impressum-card, .privacy-card { padding: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
