/* Layout für Hero-Page */
body {
    margin: 0;
    padding: 0;
}

/* Wenn nur Hero sichtbar ist, Footer soll nach Hero kommen */
.hero:not(.hidden) ~ footer {
    margin-top: 0;
    position: relative;
}

/* DSGVO Banner */
.dsgvo-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: 1rem 2rem;
    z-index: 2000;
    box-shadow: var(--shadow-banner);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.dsgvo-banner.show {
    transform: translateY(0);
}

.dsgvo-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.dsgvo-text {
    flex: 1;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.dsgvo-actions {
    display: flex;
    gap: 1rem;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(90, 170, 149, 0.2);
    transition: var(--transition-smooth);
}

nav {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--container-padding);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--secondary);
    letter-spacing: -0.02em;
}

.logo-wheel {
    width: 35px;
    height: 35px;
    color: var(--secondary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('../assets/rennrad-detail.jpg') center/cover no-repeat;
    /* Fallback für ältere Browser */
    background-image: url('../assets/rennrad-detail.jpg');
    background-size: cover;
    background-position: center;
    /* background-attachment: fixed; ENTFERNT - Firefox Performance Issue */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--secondary);
    position: relative;
    overflow: hidden;
    margin-bottom: 0; /* Kein Margin, aber klare Trennung zum Footer */
}

/* Hero komplett verstecken wenn hidden */
.hero.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Hero::after für klare Trennung zum Footer */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.hero-content {
    max-width: var(--container-max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 650px;
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    opacity: 0;
    animation: slideFromLeft 0.8s ease-out 0.2s forwards;
}

.hero-slogan {
    font-family: var(--font-primary);
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.2;
    margin-bottom: 2rem;
    color: white;
    font-weight: 700;
    opacity: 0;
    animation: slideFromLeft 0.8s ease-out 0.4s forwards;
    letter-spacing: 0.02em;
}

.hero-slogan strong {
    color: white;
    font-weight: 700;
    display: block;
    margin-top: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    color: white;
    font-weight: 400;
    opacity: 0;
    animation: slideFromLeft 0.8s ease-out 0.6s forwards;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    animation: slideFromLeft 0.8s ease-out 0.8s forwards;
}

/* Page Headers für Unterseiten */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 8rem 0 6rem; /* Mehr Bottom-Padding für größeren Abstand */
    text-align: center;
    position: relative;
    margin-bottom: 3rem; /* Zusätzlicher Abstand zum Content */
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 400;
    margin-bottom: 1rem;
    opacity: 0;
    animation: slideFromLeft 0.8s ease-out 0.2s forwards;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 400;
    opacity: 0;
    animation: slideFromLeft 0.8s ease-out 0.4s forwards;
}

/* About Section angepasst */
.about {
    background: var(--white);
    padding-top: 4rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: center;
}

.about-content {
    position: relative;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--secondary);
    margin-bottom: 2rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.about-visual {
    position: relative;
    height: 500px;
    border-radius: var(--radius-large);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.munich-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary) url('../assets/munich-skyline.jpg') center/cover no-repeat;
    /* Fallback für ältere Browser */
    background-image: url('../assets/munich-skyline.jpg');
    background-size: cover;
    background-position: center;
    background-color: var(--primary); /* Fallback falls Bild nicht lädt */
    z-index: 1;
}

.about-visual-overlay {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 2rem;
    background: rgba(36, 62, 54, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-medium);
    margin: 2rem;
}

.about-visual-overlay h3 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.about-visual-overlay p {
    font-size: 1.1rem;
    opacity: 0.9;
    color: white;
}

/* Filter Sections */
.route-filters,
.blog-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    color: var(--secondary);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-small);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover {
    background: var(--gray-100);
    border-color: var(--accent);
}

.filter-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Main Content Sections */
.routes-main,
.blog-main,
.about-main {
    padding: 2rem 0 4rem;
    min-height: 60vh;
}

/* Stats Sections */
.about-stats-section {
    margin-top: 4rem;
    text-align: center;
}

.stats-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--secondary);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* About Page Specific */
.about-philosophy {
    margin-top: 3rem;
}

.about-philosophy h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.philosophy-list {
    list-style: none;
    padding: 0;
}

.philosophy-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
    line-height: 1.6;
}

.philosophy-list li:last-child {
    border-bottom: none;
}

.about-mission {
    margin-top: 4rem;
    background: var(--gray-100);
    padding: 3rem;
    border-radius: var(--radius-medium);
}

.about-mission h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--secondary);
    text-align: center;
}

.mission-content {
    max-width: 800px;
    margin: 0 auto;
}

.mission-quote {
    font-size: 1.2rem;
    font-style: italic;
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-medium);
    border-left: 4px solid var(--primary);
    color: var(--secondary);
}

.about-contact {
    margin-top: 4rem;
    text-align: center;
    background: var(--light);
    padding: 3rem;
    border-radius: var(--radius-medium);
}

.about-contact h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Error and No-Content States */
.error-state,
.no-routes-state,
.no-blog-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--gray-100);
    border-radius: var(--radius-medium);
    margin: 2rem 0;
}

.error-state h3,
.no-routes-state h3,
.no-blog-state h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.error-state p,
.no-routes-state p,
.no-blog-state p {
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    backdrop-filter: blur(5px);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-medium);
    max-width: 90vw;
    max-height: 90vh;
    width: 800px;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease-out;
}

/* Modal Close Button */
.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--white);
    border: 2px solid var(--gray-200);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-smooth);
    z-index: 10;
}

.modal-close:hover {
    background: var(--gray-100);
    border-color: var(--primary);
    color: var(--primary);
}

/* VERBESSERTE Blog Detail Modal Styles */
.blog-detail-header {
    padding: 4rem 4rem 3rem;
    background: linear-gradient(135deg, rgba(90, 170, 149, 0.08), rgba(248, 250, 252, 0.95));
    border-bottom: 1px solid rgba(90, 170, 149, 0.15);
}

.blog-detail-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.blog-category-badge {
    padding: 0.8rem 1.6rem;
    background: var(--secondary);
    color: white;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(36, 62, 54, 0.2);
}

.blog-featured-badge {
    padding: 0.8rem 1.6rem;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(90, 170, 149, 0.25);
}

.blog-detail-title {
    font-family: var(--font-primary) !important;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.8rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

/* Weiße Schrift für Header ohne Bild */
.blog-detail-header:not(.has-hero-image) .blog-detail-title {
    color: white;
}

.blog-detail-subtitle {
    font-family: var(--font-primary) !important;
    font-size: 1.1rem;
    color: var(--secondary);
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

/* Weiße Schrift für Header ohne Bild */
.blog-detail-header:not(.has-hero-image) .blog-detail-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.blog-detail-info {
    display: flex;
    gap: 2rem;
    color: var(--secondary);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

/* Weiße Schrift für Header ohne Bild */
.blog-detail-header:not(.has-hero-image) .blog-detail-info {
    color: rgba(255, 255, 255, 0.8);
}

.blog-detail-hero-image {
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    margin: 0 -3rem 2rem;
    border-radius: 0;
}

.blog-detail-hero-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.blog-detail-body {
    padding: 0 3rem 3rem;
    background: var(--white);
}

.blog-detail-article {
    line-height: 1.7;
    color: var(--secondary);
    font-size: 1rem;
    max-width: 65ch;
    margin: 0 auto;
}

.blog-detail-article h3 {
    font-family: var(--font-primary);
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    color: var(--secondary);
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
}

.blog-detail-article p {
    margin-bottom: 1.5rem;
    color: var(--secondary);
    line-height: 1.7;
}

.blog-detail-article ul,
.blog-detail-article ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
    color: var(--secondary);
}

.blog-detail-article li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.blog-detail-tags {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

.blog-detail-tags h4 {
    margin-bottom: 1rem;
    color: var(--secondary);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-primary);
}

/* Route Detail Modal - Überschriften in dunkelgrün */
.route-detail-header {
    padding: 3rem 3rem 2.5rem;
    background: var(--white);
    border-bottom: none;
}

.route-detail-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.route-difficulty-badge {
    padding: 0.6rem 1.2rem;
    background: var(--accent);
    color: white;
    border-radius: 20px;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.route-category-badge {
    padding: 0.6rem 1.2rem;
    background: var(--secondary);
    color: white;
    border-radius: 20px;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.route-detail-title {
    font-family: var(--font-primary) !important;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.8rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.route-detail-subtitle {
    font-family: var(--font-primary) !important;
    font-size: 1.1rem;
    color: var(--secondary);
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.route-detail-hero-image {
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    margin: 0 -3rem 2rem;
    border-radius: 0;
}

.route-detail-hero-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.route-detail-body {
    padding: 0 3rem 3rem;
    background: var(--white);
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.route-detail-main {
    grid-column: 1;
}

.route-detail-sidebar {
    grid-column: 2;
}

.route-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--secondary);
    margin-bottom: 2rem;
    max-width: 65ch;
}

.route-highlights,
.route-countries,
.route-gallery {
    margin-bottom: 2rem;
}

.route-highlights h3,
.route-countries h3,
.route-gallery h3 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--secondary);
    font-weight: 600;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

.route-highlights ul {
    list-style: none;
    padding: 0;
}

.route-highlights li {
    padding: 0.6rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: var(--secondary);
    line-height: 1.6;
}

.route-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1rem;
}

.route-countries p {
    color: var(--secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.8rem;
}

.gallery-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.gallery-image:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.route-stats-detail {
    background: var(--gray-100);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: none;
}

.route-stats-detail h3 {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--secondary);
    text-align: center;
    font-weight: 600;
}

.stat-detail {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.stat-detail:last-child {
    border-bottom: none;
}

.stat-label {
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.9rem;
}

.stat-value {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.route-actions-detail {
    margin-bottom: 1.5rem;
}

.route-actions-detail .btn-primary {
    width: 100%;
    text-align: center;
    padding: 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
}

.tags-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.blog-tag {
    padding: 0.4rem 0.8rem;
    background: var(--gray-100);
    color: var(--secondary);
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    border: none;
    font-family: var(--font-primary);
    transition: all 0.2s ease;
}

.blog-tag:hover {
    background: var(--gray-200);
}

/* VERBESSERTE GRID-SYSTEME */
.routes-grid,
#routes-container {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    min-height: 100px;
    opacity: 1;
    visibility: visible;
}

.blog-grid,
#blog-container {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    min-height: 100px;
    opacity: 1;
    visibility: visible;
}

/* Debug-Hilfe */
#routes-container:empty::before,
#blog-container:empty::before {
    content: "Container ist leer";
    display: block;
    padding: 2rem;
    text-align: center;
    color: #ccc;
    font-style: italic;
    grid-column: 1 / -1;
}

/* Detail Sections */
.route-detail,
.blog-detail {
    background: var(--white);
    padding-top: 0;
}

.route-detail-hero,
.blog-detail-hero {
    height: 60vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
}

.route-detail-hero::before,
.blog-detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
}

.route-detail-hero-content,
.blog-detail-hero-content {
    position: relative;
    z-index: 2;
    padding-bottom: 3rem;
    width: 100%;
}

.route-detail-content,
.blog-detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.route-detail-main,
.blog-detail-article {
    grid-column: 1;
}

.route-detail-sidebar {
    grid-column: 2;
}

.route-tips {
    background: var(--light);
    padding: 1.5rem;
    border-radius: var(--radius-medium);
    border-left: 4px solid var(--primary);
}

.route-tips h3 {
    margin-bottom: 1rem;
    color: var(--secondary);
}

.route-tips ul {
    list-style-position: inside;
    color: var(--secondary);
}

.route-tips li {
    margin-bottom: 0.5rem;
}

/* Blog Content Formatting */
.blog-introduction {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    padding: 1.5rem 0 1.5rem 1.5rem;
    background: transparent;
    border-radius: 0;
    border-left: 4px solid var(--primary);
    color: var(--secondary);
}

.blog-section {
    margin-bottom: 3rem;
}

.blog-section-headline {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

.blog-section-content {
    line-height: 1.8;
    color: var(--secondary);
}

.blog-conclusion {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-top: 3rem;
    padding: 1.5rem;
    background: #AC92A6;
    color: white;
    border-radius: var(--radius-medium);
    border-left: 4px solid var(--primary);
}

.blog-detail-related {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-200);
}

.blog-detail-related h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

/* Gallery */
.route-gallery,
.blog-gallery {
    margin-top: 3rem;
}

.route-gallery h3,
.blog-gallery h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

/* Waypoints */
.route-waypoints {
    margin-top: 3rem;
}

.route-waypoints h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.waypoints-list {
    display: grid;
    gap: 1.5rem;
}

.waypoint {
    padding: 1.5rem;
    background: var(--gray-100);
    border-radius: var(--radius-medium);
    border-left: 4px solid var(--primary);
}

.waypoint h4 {
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.waypoint p {
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.waypoint-distance {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-small);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    line-height: 1.8;
}

.legal-content h3 {
    color: var(--secondary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.legal-content p {
    margin-bottom: 1rem;
    color: var(--secondary);
}

/* Footer */
footer {
    background: var(--white);
    border-top: 1px solid rgba(90, 170, 149, 0.2);
    padding: 4rem 0 2rem;
    position: relative;
    z-index: 100;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.footer-description {
    color: var(--secondary);
    line-height: 1.6;
    max-width: 300px;
    opacity: 0.8;
    margin-left: 47px;
}

.footer-section h3 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.footer-section a {
    color: var(--secondary);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    opacity: 0.8;
}

.footer-section a:hover {
    color: var(--primary);
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(90, 170, 149, 0.2);
    padding-top: 2rem;
    text-align: center;
    color: var(--secondary);
    opacity: 0.8;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Mobile Menu Animation */
.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--white);
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding-top: 80px;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--primary);
}

.mobile-nav-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 1rem 0;
}

/* Mobile Responsiveness */
@media (max-width: 968px) {
    nav {
        padding: 0.75rem 2rem; /* 75% der Desktop-Höhe */
    }

    .page-header {
        padding: 6rem 0 4.5rem; /* 75% der Desktop-Höhe */
    }

    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }

    .hero-content {
        padding: 0 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .routes-grid,
    .blog-grid,
    #routes-container,
    #blog-container {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .dsgvo-content {
        flex-direction: column;
        gap: 1rem;
    }

    .dsgvo-actions {
        align-self: stretch;
    }

    .route-detail-content,
    .blog-detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .route-detail-sidebar {
        grid-column: 1;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .route-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* Zusätzliche Mobile-spezifische Regeln für kleinere Geräte */
@media (max-width: 768px) {
    .routes-grid,
    .blog-grid,
    #routes-container,
    #blog-container {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        width: 100% !important;
    }
}