:root {
    --color-bg: #f4f1ea;
    --color-primary: #1b3628;
    --color-primary-light: #3a5f48;
    --color-accent:#57c36a;
    --color-text: #3d453f;
    --color-white: #ffffff;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    /* Globaler Blocksatz für alle normalen Textebenen wiederhergestellt */
    text-align: justify;
}

/* Zentrierung für bestimmte Elemente überschreiben */
h1, h2, h3, h4, h5, h6, .hero, .card, .gallery-item, .footer {
    text-align: center;
}

/* Navigationselemente linksbündig oder zentriert belassen */
.navbar, .nav-menu {
    text-align: left;
}

/* Erste Spalte linksbündig, alle weiteren Spalten zentrieren */
.data-table th, .data-table td {
    text-align: left;
}
.data-table th:nth-child(n+2), .data-table td:nth-child(n+2) {
    text-align: center;
}


/* Navigation */
.navbar {
    /* Noch dunklerer Verlauf für das Menü, basierend auf den alten Hero-Farben */
    background: linear-gradient(135deg, #12241b 0%, #1b3628 100%);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0;
    color: var(--color-white);
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
}

.logo img {
    height: 2rem;
    width: auto;
    display: block;
    border-radius: 4px;
    margin-right: 0.75rem;
}

.logo span {
    color: var(--color-accent);
	margin-left: 0px;
	padding-left: 0px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-menu li a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.nav-menu li a:hover {
    color: var(--color-accent);
    transform: translateY(-2px);
}

/* Hero Section (Alpin & Natur, Kompakt) */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    box-shadow: inset 0 3px 10px rgba(0,0,0,0.2);
    padding: 2rem 2rem 4rem;
    color: var(--color-white);
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3vw;
    min-height: 25px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,120 L0,40 L100,100 L250,20 L400,110 L550,40 L700,120 L850,50 L1050,120 L1200,80 L1200,120 Z" fill="%23f4f1ea"/></svg>');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(1.8rem, 3vw, 2.6rem); /* Maximalgröße von 3.5rem auf 2.6rem verkleinert */
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1rem; /* Schriftgröße auf Standardmaß reduziert */
    margin-bottom: 1.5rem;
    color: #e6e2d6;
    max-width: 800px; /* Textrahmen verbreitert, um unnötige Umbrüche zu vermeiden */
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-accent); /* Rostorange für perfekten Kontrast */
    color: var(--color-white);
    padding: 0.6rem 2rem; 
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700; 
    font-size: 0.9rem; 
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(211, 84, 0, 0.4);
    display: inline-block;
    border: 2px solid var(--color-accent);
}

.btn-primary:hover {
    background-color: var(--color-white);
    color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(211, 84, 0, 0.5);
}

/* Haupt-Cards (Startseite / Details) */
.content-section {
    padding: 0 2rem 4rem;
    max-width: 1200px;
    margin: -3rem auto 0;
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--color-white);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    border-bottom: 4px solid var(--color-accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    color: inherit;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    text-decoration: none !important;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: #f0f7f3;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    margin-bottom: 1.2rem;
    color: var(--color-primary);
}

.card h2 {
    color: var(--color-primary);
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.card p {
    color: #647b6e;
    font-size: 0.95rem;
    text-align: center;
}

/* Dynamische Card-Klassen (ohne Inline-Styles) */
.card-none { 
    background-color: #f5f5f5; 
    border-bottom-color: #9e9e9e; 
}
.card-none .card-icon { 
    color: #9e9e9e; 
    background-color: #ffffff; 
}

.card-easy { 
    background-color: #e8f5e9; 
    border-bottom-color: #4caf50; 
}
.card-easy .card-icon { 
    color: #4caf50; 
    background-color: #ffffff; 
}

.card-medium { 
    background-color: #fff8e1; 
    border-bottom-color: #ffb300; 
}
.card-medium .card-icon { 
    color: #ffb300; 
    background-color: #ffffff; 
}

.card-hard { 
    background-color: #ffebee; 
    border-bottom-color: #e53935; 
}
.card-hard .card-icon { 
    color: #e53935; 
    background-color: #ffffff; 
}

/* Page Intro & Route Description */
.page-intro-section {
    max-width: 1000px; 
    margin: 2rem auto 5rem;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.intro-image {
    width: 100%;
    max-width: 500px; 
    border-radius: 20px;
    background: var(--color-white);
    padding: 8px;
    border: 3px solid var(--color-primary-light); /* Angepasst an das frische Grün */
    box-shadow: 0 10px 30px rgba(15, 46, 32, 0.1);
    overflow: hidden;
}

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

.intro-text {
    width: 100%;
}

.intro-text h2 {
    color: var(--color-primary);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.intro-text p {
    color: var(--color-text);
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    line-height: 1.7;
    /* text-align: left; wird jetzt vom body vererbt */
    
    /* Fügt Silbentrennung hinzu, um große Lücken im Blocksatz zu vermeiden */
    hyphens: auto; 
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

/* Hinweise-Sektion und angepasste Listen mit dem genauen Pfeil-Symbol */
.hinweise-section {
    max-width: 900px; 
    margin-top: 3rem;
}

.hinweise-section .intro-text h2 {
    color: var(--color-primary); 
    font-size: 1.8rem; 
    margin-top: 2.5rem; 
    margin-bottom: 1rem; 
    font-weight: 800;
    text-align: center;
}

.intro-text ol {
    margin-left: 1.5rem; 
    margin-bottom: 1.5rem; 
    line-height: 1.7;
}

.intro-text ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.intro-text ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
}

.intro-text ul li::before {
    content: "\25B2"; /* Berg-Dreieck als Symbol */
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
    font-size: 0.9rem;
    top: 2px;
}

.intro-text ol li {
    margin-bottom: 0.8rem;
}

/* Akkordeon Gebietsübersicht */
.accordion-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.region-accordion {
    background: var(--color-white);
    border-radius: 12px;
    margin-bottom: 1.2rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.region-accordion:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.region-summary {
    padding: 1.5rem 2rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    transition: background 0.3s ease;
}

.region-summary:hover {
    background: #fcfcfc;
}

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

.region-summary::after {
    content: '+';
    font-size: 2rem;
    color: var(--color-accent);
    font-weight: 400;
    transition: transform 0.3s ease;
    line-height: 1;
}

details[open] .region-summary::after {
    content: '−';
    transform: rotate(180deg);
}

details[open] .region-summary {
    border-bottom: 2px solid #f0f7f3;
    margin-bottom: 1.5rem;
}

.hike-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    padding: 0 2rem 2rem;
}

.hike-link {
    display: block;
    padding: 1rem 1.2rem;
    background: var(--color-bg);
    color: var(--color-text);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
    text-align: left; /* Links nicht in Blocksatz, sieht sonst zerrissen aus */
}

.hike-link:hover {
    background: #e8f4ec;
    color: var(--color-primary);
    border-left-color: var(--color-accent);
    transform: translateX(4px);
}

/* Tabellen-Design */
.data-table {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    border-collapse: collapse;
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.data-table th, .data-table td {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
    font-size: 1.05rem;
}

.data-table tbody tr:nth-child(even) {
    background-color: #f8fbf9;
}

.data-table tbody tr:hover {
    background-color: #f0f7f3;
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* Informationsliste (Grid für Desktop) */
.info-list {
    max-width: 1200px;
    margin: 4rem auto 2rem;
    padding: 3rem;
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.info-list dt {
    font-weight: 800;
    color: var(--color-primary);
    margin-top: 1.5rem;
    font-size: 1.1rem;
    border-bottom: 2px solid #f0f7f3;
    padding-bottom: 0.5rem;
    text-align: left; /* Titelzeilen linksbündig */
}

.info-list dd {
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
    color: var(--color-text);
    line-height: 1.6;
    /* Blocksatz greift hier, wird von body vererbt */
    hyphens: auto; 
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

/* Links in Texten und der Info-Liste: Unterstreichung nur beim Hover */
.info-list dd a,
.intro-text p a {
    color: var(--color-accent) !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.info-list dd a:hover,
.intro-text p a:hover {
    color: var(--color-primary) !important;
    text-decoration: underline !important;
    text-decoration-color: var(--color-primary) !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 3px !important;
}

.info-list dt:first-child {
    margin-top: 0;
}

@media (min-width: 768px) {
    .info-list {
        display: grid;
        grid-template-columns: 30% 70%;
        gap: 1.5rem 2rem;
        align-items: baseline;
    }
    .info-list dt {
        margin-top: 0;
        border-bottom: none;
        border-right: 2px solid #f0f7f3;
        padding-bottom: 0;
        padding-right: 1.5rem;
    }
    .info-list dd {
        margin: 0;
    }
}

/* Nachbartouren Grid & Compact Card mit grünem Rahmen */
.neighbor-grid {
    display: grid;
    /* Grid angepasst für genau 3 Spalten auf großen Bildschirmen */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.neighbor-card {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.neighbor-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1.2rem;
    object-fit: cover;
    aspect-ratio: 4/3;
    background: var(--color-white);
    padding: 4px;
    border: 2px solid var(--color-primary-light); /* Angepasst an das frische Grün */
}

.neighbor-card h2 {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 0.6rem;
    text-align: left; /* Überschriften in den Cards linksbündig lassen */
}

.neighbor-card p {
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    /* Blocksatz greift hier, wird von body vererbt */
    hyphens: auto; 
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

/* Galerien & Bilder-Zentrierung mit grünem Rahmen */
.gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
    margin: 4rem 0;
    padding: 0 2rem;
    width: 100%;
}

.gallery-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-item img {
    max-width: 100%;
    width: 800px;
    border-radius: 16px;
    background: var(--color-white);
    padding: 8px;
    border: 3px solid var(--color-primary-light); /* Angepasst an das frische Grün */
    box-shadow: 0 15px 40px rgba(15, 46, 32, 0.1);
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.02);
}

.gallery-item p {
    margin-top: 1.5rem;
    color: var(--color-text);
    font-style: italic;
    font-size: 1.05rem;
    max-width: 800px;
}

/* Footer */
.footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 3rem 2rem;
    font-size: 0.95rem;
}

/* ------------------------------------------- */
/* Mobile Anpassungen (Smartphones & Tablets) */
/* ------------------------------------------- */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    .nav-menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        width: 100%;
    }
    .nav-menu li a {
        font-size: 0.9rem;
    }

    .hero {
        padding: 1.2rem 1rem 2.2rem;
    }
    .hero::after {
        height: 15px;
        min-height: 15px;
    }
    .hero h1 {
        /* Schriftgröße der großen Überschrift deutlich verkleinert */
        font-size: 1.25rem;
    }
    .hero p {
        /* Die normale Schrift weiter verkleinert */
        font-size: 0.85rem;
        margin-bottom: 1.2rem;
    }

    .btn-primary {
        /* Button für Mobile stark verkleinert */
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
        letter-spacing: 0.5px;
    }

    .content-section {
        margin-top: -2.5rem;
        gap: 1.2rem;
        padding: 0 1rem 2rem;
    }
    .card {
        padding: 1.5rem;
    }

    .page-intro-section {
        /* Breiterer Rand auf Mobile */
        padding: 0 1.5rem;
        gap: 1.5rem;
        margin: 1.5rem auto 3rem;
    }
    .intro-text h2 {
        font-size: 1.8rem;
    }
    .intro-text p {
        font-size: 1rem;
    }

    .accordion-container {
        padding: 0 1rem 2rem;
    }
    .region-summary {
        padding: 1rem 1.2rem;
        font-size: 1.1rem;
    }
    .hike-grid {
        padding: 0 1rem 1.5rem;
        grid-template-columns: 1fr;
    }

    /* Perfekte Angleichung der Tabelle an die .info-list Breite und Abstände auf Mobile */
    .data-table {
        width: 100% !important;
        max-width: 100% !important;
        margin: 2rem auto !important;
        border-radius: 12px;
        background: var(--color-white);
        box-shadow: 0 6px 20px rgba(0,0,0,0.06);
        border-collapse: collapse;
        display: table;
        table-layout: auto;
    }

    .data-table th, .data-table td {
        padding: 0.7rem 0.6rem; 
        font-size: 0.75rem; 
        word-break: normal;
        white-space: normal;
    }
    
    .data-table th {
        font-size: 0.78rem;
    }

    .info-list {
        /* Breiterer Rand auf Mobile, damit der Text nicht direkt am Displayrand klebt */
        padding: 1.5rem 1.5rem;
        margin: 2rem auto;
    }
    .neighbor-grid {
        /* Breiterer Rand auf Mobile */
        padding: 0 1.5rem;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .gallery {
        /* Breiterer Rand auf Mobile */
        padding: 0 1.5rem;
        gap: 2rem;
    }

    .footer {
        padding: 2rem 1rem;
    }
    .footer p {
        font-size: 0.85rem;
    }
}
