/* NC500 Komplett Guide - Externalized CSS */
/* CSS Variables - Mobile First */
:root {
    --primary-color: #0056b3;
    --secondary-color: #17a2b8;
    --scottish-blue: #005eb8;
    --highland-green: #367c3c;
    --tartan-red: #ce1126;
    --accent-color: #ffc107;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --dark-color: #212529;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
    --text-muted: #6c757d;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
}

/* Reset & Base - Mobile First */
* {
    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.7;
    color: var(--dark-color);
    background: var(--light-bg);
    min-height: 100vh;
}

/* Skip Link - Barrierefreiheit */
.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;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Navigation - Mobile First */
.navbar {
    background-color: #fff !important;
    border-bottom: 3px solid var(--highland-green);
    padding: 0.5rem 0;
    box-shadow: var(--shadow-sm);
}

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

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

.nav-link:hover, .nav-link.active {
    color: var(--highland-green) !important;
    background: rgba(54, 124, 60, 0.1);
    border-radius: 4px;
}

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

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.lead {
    font-size: 1.1rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

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

.breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

/* TOC */
.toc {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--highland-green);
}

.toc h2 {
    font-size: 1.2rem;
    color: var(--highland-green);
    margin-bottom: 0.75rem;
}

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

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

.toc a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.2s;
}

.toc a:hover {
    color: var(--highland-green);
}

/* Content Area */
.content-wrapper {
    display: block;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--highland-green);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Content Sections */
.content-section {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.content-section h2 {
    color: var(--highland-green);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.content-section h3 {
    color: var(--scottish-blue);
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Route Stages */
.route-stage {
    background: var(--light-bg);
    border-left: 4px solid var(--highland-green);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0 8px 8px 0;
}

.route-stage h4 {
    color: var(--highland-green);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.route-distance {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Highlights Grid */
.highlights-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.highlight-card {
    background: var(--light-bg);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.highlight-icon {
    font-size: 1.5rem;
    color: var(--scottish-blue);
    margin-bottom: 0.5rem;
}

/* Tips Box */
.tips-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.tips-box h4 {
    color: #856404;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* Season Table */
.season-table {
    overflow-x: auto;
    margin-top: 1rem;
}

.season-table table {
    width: 100%;
    border-collapse: collapse;
}

.season-table th {
    background: var(--highland-green);
    color: white;
    padding: 0.75rem;
    text-align: left;
    font-size: 0.875rem;
}

.season-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
}

/* Image with credits */
.content-image {
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

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

.content-image figcaption {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: #f0f0f0;
}

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

.cta-section h3 {
    color: white;
    margin-bottom: 1rem;
}

.btn-cta {
    background: var(--accent-color);
    color: var(--dark-color);
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    color: var(--dark-color);
}

/* Sidebar */
.sidebar {
    margin-top: 2rem;
}

.sidebar-widget {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-widget h3 {
    color: var(--highland-green);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Quick Info List */
.quick-info {
    list-style: none;
    padding: 0;
}

.quick-info li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.quick-info li:last-child {
    border-bottom: none;
}

.quick-info i {
    color: var(--scottish-blue);
    margin-right: 0.75rem;
    width: 20px;
}

/* Map container */
.map-container {
    border-radius: 10px;
    overflow: hidden;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-sm);
}

.map-container iframe {
    width: 100%;
    height: 350px;
    border: 0;
}

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

footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

footer a:hover {
    color: white;
}

/* Tablet Styles */
@media (min-width: 768px) {
    .navbar {
        padding: 0.75rem 0;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

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

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

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

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

    .map-container iframe {
        height: 450px;
    }
}

/* Desktop Styles */
@media (min-width: 992px) {
    .content-wrapper {
        display: grid;
        grid-template-columns: 1fr 350px;
        gap: 2rem;
        max-width: 1200px;
        margin: 0 auto;
    }

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

    .sidebar {
        margin-top: 0;
        position: sticky;
        top: 80px;
        height: fit-content;
    }
}

/* Print Styles */
@media print {
    .navbar, footer, .cta-section, .skip-link, .sidebar, .toc, .map-container {
        display: none !important;
    }

    .content-section {
        box-shadow: none;
        border: 1px solid #000;
        break-inside: avoid;
    }
}
