body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #212529;
    background-color: #F8F9FA;
    line-height: 1.6;
}

/* Modern Header */
.site-header {
    background-color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.site-header .navbar-brand {
    font-weight: 700;
    color: #005D8A;
}

.site-header .nav-link {
    color: #212529;
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.site-header .nav-link:hover {
    background-color: #E9ECEF;
}

.site-header .nav-link.active {
    background-color: #005D8A;
    color: #FFFFFF;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(0,93,138,0.9) 0%, rgba(29,53,87,0.9) 100%),
                url('/images/fahrradwegweiser-gedser.webp');
    background-size: cover;
    background-position: center;
    color: #FFFFFF;
    padding: 5rem 0;
    margin-bottom: 3rem;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Route Stats */
.route-stats {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-icon {
    font-size: 2.5rem;
    color: #005D8A;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
}

.stat-label {
    color: #6C757D;
    font-size: 0.9rem;
}

/* Content Sections */
.content-section {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 2rem;
    margin-bottom: 2rem;
}

.content-section h2 {
    color: #005D8A;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.content-section h3 {
    color: #00456B;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Route Map */
#routeMap {
    height: 350px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    background-color: #f0f0f0;
    position: relative;
}

#routeMap::before {
    content: "Karte wird geladen...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 14px;
    z-index: 1;
}

/* Waypoint Cards */
.waypoint-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.waypoint-number {
    width: 40px;
    height: 40px;
    background-color: #005D8A;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* Insider Tip Cards */
.insider-tip {
    background-color: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #FFC107;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.insider-tip h4 {
    color: #E6AD00;
    margin-bottom: 0.5rem;
}

/* Photo Gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.photo-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 200px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.photo-item:hover {
    transform: scale(1.05);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #FFFFFF;
    padding: 1rem;
    font-size: 0.9rem;
}

.photo-credit {
    font-size: 0.7rem;
    opacity: 0.8;
    display: block;
    margin-top: 0.25rem;
}

/* Equipment Checklist */
.checklist {
    list-style: none;
    padding: 0;
}

.checklist li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

.checklist li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #28A745;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Weather Widget */
.weather-widget {
    background: linear-gradient(135deg, #17A2B8 0%, #005D8A 100%);
    color: #FFFFFF;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.weather-widget h4 {
    color: #FFFFFF;
    margin-bottom: 1rem;
}

/* TOC */
.toc {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.toc h2 {
    font-size: 1.1rem;
    color: #005D8A;
    margin-bottom: 1rem;
}

.toc ol {
    margin: 0;
    padding-left: 1.5rem;
}

.toc li {
    margin-bottom: 0.4rem;
}

.toc a {
    color: #005D8A;
    text-decoration: none;
}

.toc a:hover {
    text-decoration: underline;
}

/* CTA Buttons */
.btn-primary {
    background-color: #005D8A;
    border-color: #005D8A;
    color: #FFFFFF;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #00456B;
    border-color: #00456B;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.btn-secondary {
    background-color: #FFC107;
    border-color: #FFC107;
    color: #212529;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: #E6AD00;
    border-color: #E6AD00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #005D8A;
    color: #005D8A;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background-color: #005D8A;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: #005D8A;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.back-to-top.show {
    opacity: 1;
}

.back-to-top:hover {
    transform: translateY(-5px);
    color: #FFFFFF;
}

/* Footer */
.site-footer {
    background-color: #005D8A;
    color: #FFFFFF;
    padding: 4rem 0 2rem;
    margin-top: 3rem;
}

.site-footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.footer-links h5 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* Accessibility */
:focus {
    outline: 3px solid rgba(0,93,138,0.5);
    outline-offset: 2px;
}

.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;
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 { font-size: 2rem; }
    .hero { padding: 4rem 0; }
}

@media (max-width: 768px) {
    .hero { padding: 3rem 0; background-attachment: scroll; }
    .hero h1 { font-size: 1.8rem; }
    .content-section { padding: 1.5rem; }
    #routeMap { height: 250px; }
    .stat-item { margin-bottom: 1rem; }
}

@media (max-width: 576px) {
    .hero { padding: 2rem 0; }
    .hero h1 { font-size: 1.5rem; }
    .content-section { padding: 1.25rem; }
    .btn-primary, .btn-secondary, .btn-outline { width: 100%; margin-bottom: 0.5rem; }
    #routeMap { height: 300px; }
    .photo-gallery { grid-template-columns: 1fr; }
}
