html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    background: #0f0f0f;
    color: #f5f5f5;
    font-size: 16px;
    line-height: 1.7;
}

/* =========================================
   FONTS
========================================= */
@font-face {
    font-family: myFont;
    src: url(../font/CreatoDisplay-Thin.otf);
    font-weight: normal;
}

@font-face {
    font-family: 'ZweiterFont';
    src: url('../font/Mangelo.otf');
    font-weight: normal;
}

* {
    font-family: myFont;
    letter-spacing: 1px;
}

/* =========================================
   SCROLLBAR
========================================= */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0f0f0f; }
::-webkit-scrollbar-thumb { background: #4caf50; border-radius: 3px; }

/* =========================================
   NAVIGATION
========================================= */
.clean-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 50px;
    z-index: 1000;
    box-sizing: border-box;
    transition: background 0.4s ease, padding 0.4s ease;
}

.clean-nav.scrolled {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 15px 50px;
}

.clean-nav .nav-logo img {
    height: 45px;
    width: auto;
}

.clean-nav .nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
}

.clean-nav .nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 300;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.clean-nav .nav-links a:hover {
    opacity: 1;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.3);
}

/* =========================================
   HEADER
========================================= */
.clean-header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.7)),
                url('../data/bilder/Sonnenuntergang_Sylvensteinsee.jpg') center/cover;
    padding: 20px;
    position: relative;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 1.2s ease-out;
}

.eyecatcher {
    display: block;
    font-family: 'ZweiterFont', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-style: italic;
    font-weight: 700;
    color: #fff;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 24px;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.clean-header h1 {
    font-size: 3rem;
    font-weight: 300;
    margin: 0 0 20px 0;
    line-height: 1.2;
    color: #fff;
    border: none;
}

.clean-header p {
    font-size: 1.1rem;
    color: #ddd;
    margin: 0 auto 40px auto;
    max-width: 550px;
    font-weight: 300;
    line-height: 1.6;
}

/* =========================================
   SEKTIONEN
========================================= */
section {
    padding: 80px 20px;
    max-width: 900px;
    margin: auto;
    overflow-x: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s forwards;
}

section h2 {
    border-left: 3px solid #4a6b53;
    padding-left: 15px;
    margin-bottom: 40px;
    font-size: 1.8rem;
    font-weight: 300;
    color: #fff;
    letter-spacing: 0.5px;
}

.section-subtitle {
    font-size: 16px;
    color: #bbb;
    margin-bottom: 40px;
    font-weight: 300;
    line-height: 1.6;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   BUTTONS
========================================= */
.button-group {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    font-size: 15px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 20px;
    cursor: pointer;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

.button-group .btn {
    margin-top: 0;
}

.btn-filled {
    background: #4a6b53;
    border: 1px solid #4a6b53;
}

.btn-filled:hover {
    background: #3a5441;
    border-color: #3a5441;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

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

/* =========================================
   GRID & CARDS
========================================= */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.card h3 {
    margin-top: 0;
    font-size: 1.2rem;
    font-weight: 400;
    color: #fff;
    margin-bottom: 15px;
}

.card p,
.card ul {
    color: #bbb;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.7;
    margin: 0;
}

.card ul {
    padding-left: 20px;
}

.card li {
    margin-bottom: 8px;
}

.card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(74, 107, 83, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* =========================================
   GALERIE
========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.gallery-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/10;
    background: #1a1a1a;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 14px;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    color: #fff;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-card-link {
    text-decoration: none;
    border: 1px dashed #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s, background 0.3s;
}

.gallery-card-link:hover {
    border-color: #4caf50;
    background: #111;
}

.gallery-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.gallery-icon {
    font-size: 32px;
    color: #4caf50;
}

.gallery-link-label {
    color: #4caf50;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* =========================================
   LIGHTBOX
========================================= */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#lightbox.active {
    display: flex;
}

#lb-inner {
    position: relative;
    max-width: 85vw;
    max-height: 85vh;
    text-align: center;
}

#lb-img {
    max-width: 100%;
    max-height: 78vh;
    border-radius: 8px;
    object-fit: contain;
    display: block;
}

#lb-caption {
    color: #aaa;
    font-size: 13px;
    margin-top: 10px;
}

#lb-close {
    position: absolute;
    top: -36px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}

#lb-prev, #lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.08);
    border: none;
    color: #fff;
    font-size: 36px;
    padding: 10px 14px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
}

#lb-prev:hover, #lb-next:hover {
    background: rgba(76,175,80,0.3);
}

#lb-prev { left: -60px; }
#lb-next { right: -60px; }

/* =========================================
   KONTAKTFORMULAR
========================================= */
#kontakt {
    padding: 100px 20px;
    background: #0f0f0f;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.clean-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    width: 100%;
}

.clean-form input[type="text"],
.clean-form input[type="email"],
.clean-form textarea {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px 20px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 300;
    transition: all 0.3s ease;
}

.clean-form ::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.clean-form input:focus,
.clean-form textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.06);
    border-color: #4a6b53;
    box-shadow: 0 0 10px rgba(74, 107, 83, 0.15);
}

a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #4a6b53;
    outline-offset: 3px;
}

.clean-form textarea {
    resize: vertical;
}

.form-submit-btn {
    align-self: center;
    min-width: 200px;
    cursor: pointer;
    font-weight: 400;
    border: none;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* =========================================
   TIMELINE / ETAPPEN
========================================= */
.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px 0;
}

.etappe-card {
    position: relative;
    height: 250px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
    overflow: hidden;
    border: none;
    transition: transform 0.4s ease;
    will-change: transform;
    backface-visibility: hidden;
}

.etappe-card:hover {
    transform: scale(1.02);
}

.etappe-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.92));
    display: flex;
    align-items: center;
    gap: 14px;
    box-sizing: border-box;
}

.etappe-wappen {
    width: 48px !important;
    height: 48px !important;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}

.etappe-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.etappe-info h3 {
    font-size: 1.3rem;
    color: #fff;
    font-weight: 500;
    text-shadow: 0 1px 8px rgba(0,0,0,0.9);
    margin: 0 0 2px 0;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.etappe-info p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
    font-weight: 400;
    text-decoration: none;
    text-shadow: 0 1px 6px rgba(0,0,0,0.9);
    line-height: 1.2;
    letter-spacing: 0.3px;
    margin: 0;
}

.etappe-done-badge {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    background: #3ecf6b;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.03em;
    z-index: 3;
    pointer-events: none;
}

.etappe-card.done .etappe-done-badge {
    display: block;
    animation: badge-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.etappe-card .etappe-wappen {
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: scale(1);
}

.etappe-card.done .etappe-wappen {
    opacity: 1;
    transform: scale(1);
}

.etappe-card.future {
    opacity: 0.5;
    filter: grayscale(60%);
    transition: opacity 0.5s ease, filter 0.5s ease;
}

.etappe-card.future:hover {
    opacity: 0.65;
    filter: grayscale(30%);
}

.etappe-card.next {
    outline: 2px solid rgba(62, 207, 107, 0.6);
    outline-offset: -2px;
}

.etappe-card.etappe-ziel.done .etappe-done-badge {
    background: #e6a817;
}

.route-status {
    margin-top: 20px;
    color: #bbb;
    font-size: 15px;
    text-align: center;
}

@keyframes badge-pop {
    0%   { transform: scale(0.5); opacity: 0; }
    70%  { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

/* =========================================
   KARTE
========================================= */
#route-map {
    width: 100%;
    height: 480px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #2a2a2a;
    margin-top: 16px;
}

.leaflet-popup-content-wrapper {
    background: #1a1a1a;
    color: #fff;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.leaflet-popup-tip {
    background: #1a1a1a;
}

.leaflet-popup-content {
    margin: 10px 14px;
    font-size: 13px;
    line-height: 1.5;
}

.leaflet-popup-content strong {
    color: #3ecf6b;
    display: block;
    margin-bottom: 2px;
}

/* =========================================
   PRODUKTBILDER
========================================= */
.item-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    filter: brightness(0.75) contrast(1.1) grayscale(0.15);
    transition: all 0.4s ease;
    background: #0f0f0f;
}

.item-card:hover img {
    filter: brightness(1) contrast(1) grayscale(0);
}

.item-card-body p {
    color: #bbb;
    font-size: 14px;
}

/* =========================================
   FOOTER
========================================= */
footer {
    text-align: center;
    padding: 40px;
    background: #000;
    color: #bbb;
    font-size: 14px;
}

.footer-social {
    margin-top: 8px;
    display: flex;
    gap: 16px;
    justify-content: center;
}

.footer-social a {
    color: #3ecf6b;
    text-decoration: none;
    font-size: 13px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer-social a:hover { opacity: 1; }

/* =========================================
   SPONSOREN-SEITE
========================================= */
.sponsor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.sponsor-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.sponsor-card:hover {
    transform: translateY(-4px);
    border-color: rgba(74,107,83,0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.sponsor-logo {
    background: #fff;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
}

.sponsor-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sponsor-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sponsor-body h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0 0 10px 0;
}

.sponsor-body p {
    color: #bbb;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px 0;
    flex: 1;
}

.sponsor-link {
    color: #3ecf6b;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.sponsor-link:hover {
    opacity: 1;
}

.sponsor-cta {
    text-align: center;
    margin-top: 40px;
    color: #888;
    font-size: 15px;
}

.sponsor-cta a {
    color: #3ecf6b !important;
    text-decoration: none;
}

.sponsor-cta a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .sponsor-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   PROJEKT TEXT
========================================= */
#projekt p strong {
    color: #fff;
    font-weight: 600;
}

#projekt p {
    margin-bottom: 20px;
    color: #bbb;
}

/* =========================================
   AUSRÜSTUNGSSEITEN
========================================= */
.page-header {
    padding: 140px 20px 40px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.back-link,
.back-link:visited {
    color: #4caf50;
    text-decoration: none;
}

/* =========================================
   ZURÜCK NACH OBEN
========================================= */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: rgba(74, 107, 83, 0.7);
    color: #ffffff;
    width: 45px;
    height: 45px;
    text-align: center;
    line-height: 41px;
    font-size: 22px;
    border-radius: 50%;
    text-decoration: none;
    z-index: 9999;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

#back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* =========================================
   INPUT / TEXTAREA (global)
========================================= */
input, textarea {
    width: 97%;
    padding: 10px;
    margin-top: 10px;
    background: #111;
    border: 1px solid #333;
    color: white;
    border-radius: 5px;
}

.logo {
    width: min(300px, 60vw);
    border-radius: 50%;
    margin-bottom: 10px;
    margin-top: -80px;
}

.route-map {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

/* =========================================
   MOBILE
========================================= */
@media (max-width: 768px) {

    .clean-nav {
        flex-direction: column;
        padding: 15px;
        background: rgba(0, 0, 0, 0.85);
        position: fixed;
    }

    .clean-nav.scrolled {
        padding: 15px;
    }

    .clean-nav .nav-links {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 8px;
        font-size: 14px;
    }

    .clean-header h1 {
        font-size: 2.2rem;
    }

    .button-group {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .button-group .btn {
        width: 80%;
        text-align: center;
        box-sizing: border-box;
        align-self: center;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    header h1 { font-size: 2rem; }
    nav { flex-wrap: wrap; }

    #back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        line-height: 36px;
        font-size: 18px;
    }
}

/* =========================================
   JOURNAL
========================================= */
.journal-etappe {
    border: 0.5px solid var(--color-border, rgba(255,255,255,0.08));
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.02);
    transition: border-color 0.3s;
}

.journal-etappe:hover {
    border-color: rgba(74,107,83,0.4);
}

.journal-etappe-ziel {
    border-color: rgba(230,168,23,0.3);
}

.journal-etappe-header {
    padding: 20px 24px 16px;
    border-bottom: 0.5px solid rgba(255,255,255,0.06);
}

.journal-etappe-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.journal-etappe-nr {
    font-size: 12px;
    color: #aaa;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.journal-status {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.journal-status.ausstehend {
    background: rgba(255,255,255,0.06);
    color: #888;
}

.journal-status.unterwegs {
    background: rgba(62,207,107,0.15);
    color: #3ecf6b;
}

.journal-status.geschafft {
    background: rgba(62,207,107,0.2);
    color: #3ecf6b;
}

.journal-etappe-title {
    font-size: 1.1rem;
    font-weight: 400;
    color: #fff;
    margin: 0 0 4px 0;
    border: none;
    padding: 0;
    letter-spacing: 0.3px;
}

.journal-etappe-info {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.journal-etappe-body {
    padding: 16px 24px 20px;
}

.journal-etappe-body p {
    font-size: 15px;
    color: #bbb;
    line-height: 1.7;
    margin: 0 0 10px 0;
}

.journal-placeholder {
    color: #555 !important;
    font-style: italic;
}

.journal-datum {
    font-size: 12px;
    color: #555;
}

/* Kompakter Block auf der Hauptseite */
.journal-preview-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #3ecf6b;
    text-decoration: none;
    font-size: 14px;
    margin-top: 16px;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.journal-preview-link:hover {
    opacity: 1;
}
