:root {
    --primary-color: #0056b3;
    --secondary-color: #17a2b8;
    --scottish-blue: #005eb8;
    --highland-green: #367c3c;
    --accent-color: #ffc107;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #fd7e14;
    --dark-color: #212529;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
    --text-muted: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: white;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 1100;
    border-radius: 0 0 4px 0;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
    color: white;
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Navigation */
.navbar {
    background-color: white !important;
    border-bottom: 3px solid var(--primary-color);
    padding: 0.5rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.navbar-brand {
    color: var(--primary-color) !important;
    font-weight: 700;
    font-size: 1.1rem;
}

.navbar-brand i {
    color: var(--secondary-color);
}

.nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    padding: 0.5rem 0.75rem !important;
    transition: all 0.3s ease;
}

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

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0.75rem 0;
    margin-bottom: 0;
    font-size: 0.875rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "\203A";
    color: var(--text-muted);
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--scottish-blue) 0%, var(--highland-green) 100%);
    color: white;
    padding: 2rem 0 1.5rem;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.page-header .lead {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 1rem;
}

/* Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.stat-card {
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* TOC */
.toc {
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.toc h3 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    color: var(--primary-color);
}

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

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

.toc a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

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

/* Main Content */
.content-wrapper {
    padding-top: 1.5rem;
}

h2 {
    color: var(--dark-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

h2 i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

h3 {
    color: var(--dark-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
}

/* Content Images */
.content-image {
    width: 100%;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.content-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.content-image figcaption {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Route Stages */
.route-stage {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.route-stage:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.stage-header {
    background: linear-gradient(135deg, var(--scottish-blue), var(--primary-color));
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stage-number {
    background: rgba(255,255,255,0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.stage-info h3 {
    margin: 0;
    font-size: 1.1rem;
    color: white;
}

.stage-distance {
    font-size: 0.875rem;
    opacity: 0.9;
    display: block;
    margin-top: 0.25rem;
}

.stage-distance i {
    margin-right: 0.25rem;
}

.stage-details {
    padding: 1rem;
}

.detail-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: var(--light-bg);
    border-radius: 8px;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.detail-item strong {
    color: var(--dark-color);
    display: block;
    margin-bottom: 0.25rem;
}

/* Highlight Cards */
.highlight-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.highlight-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid var(--highland-green);
    border-radius: 8px;
    padding: 1rem;
}

.highlight-card h4 {
    color: var(--highland-green);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.highlight-card h4 i {
    font-size: 1.25rem;
}

.highlight-card p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Info Boxes */
.info-box {
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1.5rem 0;
    border-left: 4px solid;
}

.info-box.tip {
    background: #d1ecf1;
    border-color: var(--secondary-color);
}

.info-box.warning {
    background: #fff3cd;
    border-color: var(--warning-color);
}

.info-box.success {
    background: #d4edda;
    border-color: var(--success-color);
}

.info-box h4 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-box.tip h4 {
    color: var(--secondary-color);
}

.info-box.warning h4 {
    color: var(--warning-color);
}

.info-box.success h4 {
    color: var(--success-color);
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* Stellplatz List */
.stellplatz-list {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin: 1.5rem 0;
}

.stellplatz-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.stellplatz-item:last-child {
    border-bottom: none;
}

.stellplatz-name {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.stellplatz-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.stellplatz-details span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-muted);
}

.stellplatz-details i {
    color: var(--primary-color);
}

/* Checklist */
.checklist {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.checklist h3 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.checklist-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--light-bg);
    border-radius: 8px;
}

.checklist-item:last-child {
    margin-bottom: 0;
}

.checklist-item i {
    color: var(--success-color);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.checklist-item strong {
    display: block;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

/* FAQ Section */
.faq-section {
    margin: 2rem 0;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-item summary {
    padding: 1rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--light-bg);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::after {
    content: "+";
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 700;
}

.faq-item[open] summary::after {
    content: "\2212";
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item .faq-answer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    line-height: 1.6;
}

/* Map */
.route-map {
    border-radius: 12px;
    overflow: hidden;
    margin: 1.5rem 0;
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.route-map iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    margin: 3rem 0 2rem;
}

.cta-section h2 {
    color: white;
    border: none;
    margin: 0 0 1rem;
    padding: 0;
    font-size: 1.5rem;
}

.cta-section p {
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin: 0.5rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    color: var(--primary-color);
}

/* Related Links */
.related-links {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.related-links h3 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    color: var(--primary-color);
}

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

.related-links li {
    margin-bottom: 0.75rem;
}

.related-links a {
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.related-links a:hover {
    color: var(--secondary-color);
    transform: translateX(4px);
}

.related-links i {
    font-size: 1rem;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: white;
    padding: 2rem 0 1rem;
    margin-top: 3rem;
}

footer h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

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

footer li {
    margin-bottom: 0.5rem;
}

footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
}

/* Tablet Styles */
@media (min-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }

    .page-header {
        padding: 3rem 0 2rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .page-header .lead {
        font-size: 1.25rem;
    }

    .quick-stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.875rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .highlight-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stage-header {
        padding: 1.25rem;
    }

    .stage-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .stage-info h3 {
        font-size: 1.25rem;
    }

    .stage-details {
        padding: 1.5rem;
    }

    .route-map iframe {
        height: 500px;
    }
}

/* Desktop Styles */
@media (min-width: 992px) {
    .content-wrapper {
        padding-top: 2rem;
    }

    .highlight-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
