:root {
    --c-surface: #161A22;
    --c-bg: #2D333B;
    --c-ink-soft: #A0AAB5;
    --c-ink: #FFFFFF;
    --c-line: #2D333B;
    --bg-color: #0B0E14;
    --card-bg: #161A22;
    --text-color: #FFFFFF;
    --text-muted: #A0AAB5;
    --primary-blue: #1A73E8; /* Bright Blue */
    --primary-green: #90FF00; /* Neon Green */
    --border-color: #2D333B;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #FFFFFF;
    margin-top: 0;
    text-transform: uppercase;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
header {
    background: var(--bg-color);
    padding: 1.0rem 0;
}

header .brand-logo {
    height: 75px;
    width: auto;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    text-transform: uppercase;
}

.logo-text span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.logo-icon {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    font-style: italic;
    color: var(--primary-green);
    letter-spacing: -2px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--primary-green);
}

nav ul li.has-dropdown {
    position: relative;
}

nav ul li.has-dropdown > a span {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-left: 2px;
}

nav ul li .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card-bg);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
    list-style: none;
    display: block;
}

nav ul li.has-dropdown:hover .dropdown-menu,
nav ul li.has-dropdown.is-open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

nav ul li .dropdown-menu li {
    display: block;
    margin: 0;
    padding: 0;
}

nav ul li .dropdown-menu a {
    padding: 0.6rem 1.5rem;
    display: block;
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: normal;
}

nav ul li .dropdown-menu a:hover {
    background: rgba(255,255,255,0.05);
    color: var(--primary-green);
}

.search-btn {
    background: var(--primary-blue);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* Hero Section */
.hero {
    margin: 0 40px 4rem 40px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 600px;
    background-image: url('../images/hero_bg.png');
    background-size: cover;
    background-position: center;
}

.hero-content {
    position: absolute;
    bottom: 40px;
    right: 40px;
    background: rgba(22, 26, 34, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 16px;
    max-width: 500px;
}

.hero h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.1rem;
    color: #E0E0E0;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn:hover {
    opacity: 0.9;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #1557b0; /* darker blue */
}

.btn-ghost {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.btn-ghost:hover {
    background-color: rgba(255,255,255,0.1);
}

.btn-wide {
    width: 100%;
    justify-content: center;
    display: flex !important;
}

/* Utilities */
.section-spaced {
    padding-top: 4rem; /* var(--s-12) equiv */
    padding-bottom: 3rem; /* var(--s-10) */
}

.section-tight {
    padding-top: 2rem; /* var(--s-8) */
    padding-bottom: 2rem; /* var(--s-8) */
}

.pb-16 {
    padding-bottom: 4rem;
}

.hero-gradient-bg {
    background-image: linear-gradient(180deg, rgba(31,36,25,0.25) 0%, rgba(31,36,25,0.7) 100%), var(--hero-bg, none);
}

.meta-muted {
    color: var(--text-muted);
    font-size: 0.95em;
}

.card-elevated {
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.container-narrow {
    max-width: 640px;
    margin: 0 auto;
}

.form-narrow {
    max-width: 480px;
}

.spaced-list {
    line-height: 1.8;
}

.legal-details {
    margin-top: 2rem;
    color: var(--text-muted);
}
.legal-details summary {
    cursor: pointer;
}

.mb-4 {
    margin-bottom: 1rem;
}

/* Route Cards (Atlas) */
.route-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}
.route-card-head h3 {
    margin-right: 1rem;
}
.route-difficulty {
    margin-left: auto;
    padding: 4px 12px !important;
    border-radius: 999px;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
}
/* Atlas Card Layout Updates */
.atlas-row {
    align-items: stretch !important;
}
.atlas-row .body {
    display: flex;
    flex-direction: column;
}
.atlas-row .route-badges {
    margin-top: auto !important;
    padding-top: 0.75rem;
}
.atlas-row .right-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}
.atlas-row .route-difficulty-wrapper {
    margin-top: auto;
}
/* Difficulty Colors */
.route-difficulty.diff-leicht {
    background-color: var(--primary-green) !important;
    color: #000000 !important;
}
.route-difficulty.diff-mittel {
    background-color: #ffa500 !important; /* Orange */
    color: #000000 !important;
}
.route-difficulty.diff-schwer {
    background-color: #ff4444 !important; /* Red */
    color: #ffffff !important;
}

@media (max-width: 720px) {
    .atlas-row .right-col {
        grid-column: 2;
        align-items: flex-start;
        flex-direction: row-reverse;
        gap: 1rem;
        margin-top: var(--s-2);
    }
    .atlas-row .route-difficulty-wrapper {
        margin-top: 0;
    }
}

/* POI Cards */
.grid-tours {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.poi-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}
.poi-gallery {
    display: flex;
    flex-direction: column;
}
.poi-gallery-main {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}
.poi-gallery-main img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.poi-gallery-thumbs {
    background: #111820;
    padding: 4px;
    gap: 4px;
}
.poi-gallery-thumbs .thumb-spacer {
    grid-area: 1 / 1;
    width: 100%;
    aspect-ratio: 1.5;
    visibility: hidden;
}
.poi-gallery-thumbs img {
    border-radius: 4px;
    width: 100%;
    aspect-ratio: 1.5;
    object-fit: cover;
}
.poi-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: auto !important;
    padding: 1.5rem; /* ~ var(--s-4) */
}
.poi-card h3 {
    margin: 0 0 12px;
    font-size: 1.1rem;
    line-height: 1.4;
    min-height: 3.1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.poi-card .card-actions {
    margin-top: auto;
    padding-top: 15px;
}
.poi-more-btn {
    width: 100%;
    justify-content: center;
    display: flex !important;
    visibility: visible !important;
    min-height: 40px;
    pointer-events: auto;
    background: var(--card-bg);
    border: 1px solid var(--primary-blue);
    color: var(--text-color);
    border-radius: 6px;
}
.poi-more-btn:hover {
    background: rgba(255,255,255,0.05);
}
.poi-popup-img {
    width: 100%;
    max-width: 240px;
    border-radius: 6px;
    margin: 4px 0;
}

/* Sections */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    margin-bottom: 0;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.nav-arrows {
    display: flex;
    gap: 0.5rem;
}

.nav-arrow {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--card-bg);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid var(--border-color);
}

.nav-arrow.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

.grid-4 {
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
    margin-bottom: 4rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 1rem; /* For scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-blue) var(--card-bg);
}

.grid-4::-webkit-scrollbar {
    height: 8px;
}
.grid-4::-webkit-scrollbar-track {
    background: var(--card-bg);
    border-radius: 4px;
}
.grid-4::-webkit-scrollbar-thumb {
    background-color: var(--primary-blue);
    border-radius: 4px;
}

.grid-4 > a,
.grid-4 > article {
    min-width: 300px;
    flex: 0 0 calc(33.3333% - 1rem);
    display: flex;
    flex-direction: column;
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-image-wrap {
    position: relative;
    height: 180px;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.heart-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.5);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.card-content {
    padding: 1.2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-muted);
    min-height: 4.3rem; /* exactly 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 0.4rem;
    text-transform: none;
    min-height: 3.1rem; /* approx 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.card-location {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
}

/* Magazine Tags */
.tag {
    position: absolute;
    bottom: -12px;
    left: 1.2rem;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #000;
    z-index: 2;
}

.tag-tech { background-color: var(--primary-green); }
.tag-ausruestung { background-color: var(--primary-blue); color: white; }
.tag-reportage { background-color: #4CAF50; color: white; }
.tag-news { background-color: var(--primary-blue); color: white; }

.mag-card .card-content {
    padding-top: 1.5rem;
}

.mag-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* Footer */
footer {
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    margin-top: 2rem;
    text-align: center;
    color: var(--text-muted);
}

/* Hero Slider */
.hero { position: relative; }
.hero-slide {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    z-index: 1;
}
.hero-slide.active {
    opacity: 1;
    z-index: 2;
}
.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 40px;
    z-index: 10;
    display: flex;
    gap: 8px;
}
.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}
.slider-dot.active {
    background: var(--primary-green);
}

/* Fix Leaflet subpixel gaps */
.leaflet-container {
    background: #161A22 !important;
}
.leaflet-tile {
    /* Micro-scale to close subpixel gaps on some zoom levels */
    box-shadow: 0 0 1px rgba(22, 26, 34, 0.5);
}

/* Magazin-Hintergrundfarbe anpassen, damit sie dem Rest der Website entspricht */
.magazine-page,
.magazine-page .mag-archive-hero,
.magazine-page .mag-section,
.magazine-page .mag-related-section {
    background-color: var(--bg-color) !important;
    background-image: none; /* Deaktiviert eventuelle hellere Verläufe, falls vorhanden */
}

/* Textfarbe für aktive/gehoverte Filter-Links auf weiß/hell setzen für besseren Kontrast */
.mag-archive-filter a:hover,
.mag-archive-filter a.is-active {
    color: #FFFFFF !important;
}
.mag-archive-filter a:hover span,
.mag-archive-filter a.is-active span {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Breite für alle Absätze in .prose-Blöcken auf volle Containerbreite anpassen (hebt 65ch-Begrenzung auf) */
.prose p {
    max-width: none;
}

/* Ausrüstung / Meine E-Bikes Seite an den Magazin-Stil anpassen */
.equipment-bike-page .prose {
    color: var(--c-ink-soft);
    font-size: clamp(1rem, 1.2vw, 1.13rem);
    line-height: 1.82;
}
.equipment-bike-page .prose h2,
.equipment-bike-page .prose h3,
.equipment-bike-page .prose h4 {
    color: var(--c-ink);
    font-family: var(--f-display);
    line-height: 1.15;
    margin: var(--s-9) 0 var(--s-4);
}
.equipment-bike-page .prose p {
    margin: 0 0 var(--s-5);
}
.equipment-bike-page .prose ul,
.equipment-bike-page .prose ol {
    line-height: 1.82;
}
.equipment-bike-page .prose li {
    margin: 6px 0;
}


