/* =========================================================
   STERNENWEG ROTZENWIL
   Grunddesign
   ========================================================= */


/* =========================================================
   GRUNDEINSTELLUNGEN
   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #263238;
    background-color: #ffffff;
    line-height: 1.6;
}

.container {
    width: min(1100px, 90%);
    margin: 0 auto;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background-color: #0b1f33;

    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.15);
}

.navbar {
    width: min(1200px, 92%);
    min-height: 72px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.logo {
    color: #ffffff;

    text-decoration: none;

    font-size: 1.25rem;
    font-weight: bold;

    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;

    gap: 28px;

    list-style: none;
}

.nav-links a {
    color: #ffffff;

    text-decoration: none;

    font-size: 0.95rem;

    transition:
        color 0.2s ease;
}

.nav-links a:hover {
    color: #f4c95d;
}


/* =========================================================
   STARTBEREICH / HERO
   ========================================================= */

.hero {
    min-height: 75vh;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 80px 20px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #071426,
            #123a5a
        );
}

.hero-content {
    max-width: 800px;
}

.hero-kicker {
    color: #f4c95d;

    text-transform: uppercase;

    letter-spacing: 3px;

    font-weight: bold;

    margin-bottom: 12px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);

    line-height: 1.05;

    margin-bottom: 25px;
}

.hero p {
    font-size: 1.15rem;

    max-width: 700px;

    margin-left: auto;
    margin-right: auto;
}

.hero .button {
    display: inline-block;

    margin-top: 35px;

    padding: 14px 28px;

    background-color: #f4c95d;
    color: #17212b;

    text-decoration: none;

    font-weight: bold;

    border-radius: 8px;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}

.hero .button:hover {
    background-color: #ffd873;

    transform: translateY(-2px);
}


/* =========================================================
   ALLGEMEINE BEREICHE
   ========================================================= */

.section {
    padding: 90px 0;
}

.section-alt {
    background-color: #f4f7f9;
}

.section h2 {
    color: #0b1f33;

    font-size: 2.2rem;

    margin-bottom: 20px;
}

.section > .container > p {
    max-width: 750px;

    margin-bottom: 40px;
}


/* =========================================================
   INFORMATIONEN ZUM STERNENWEG
   ========================================================= */

.info-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;

    margin-top: 40px;
}

.info-card {
    background-color: #ffffff;

    padding: 28px 22px;

    border-radius: 12px;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.08);
}

.info-card h3 {
    color: #123a5a;

    margin-bottom: 10px;
}


/* =========================================================
   KARTE
   ========================================================= */

#map {
    width: 100%;
    height: 500px;

    margin-top: 30px;

    background-color: #dce6eb;

    border-radius: 14px;

    overflow: hidden;
}


/* =========================================================
   MARKER DER KARTE
   ========================================================= */


/* Container, den Leaflet um unseren Marker legt */

.posten-marker-wrapper {
    background: transparent !important;

    border: none !important;
}


/* Eigentliche nummerierte Markierung */

.posten-marker {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
    transition: transform 0.2s ease, filter 0.2s ease;
}

.posten-marker::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #f4c95d;
    clip-path: polygon(50% 0%, 62% 34%, 98% 35%, 70% 57%, 80% 93%, 50% 72%, 20% 93%, 30% 57%, 2% 35%, 38% 34%);
}

.posten-marker-nummer {
    position: relative;
    z-index: 1;
    color: #0b1f33;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    margin-top: 2px;
}

/* =========================================================
   POSTEN
   ========================================================= */

#posten-container {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 25px;

    margin-top: 40px;
}

.posten-card {
    background-color: #ffffff;

    border:
        1px solid #e2e8ec;

    border-radius: 12px;

    overflow: hidden;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.06);

    scroll-margin-top: 100px;
}


/* Bild eines Postens */

.posten-bild {
    width: 100%;
    height: 280px;

    display: block;

    object-fit: cover;
}


/* Textbereich eines Postens */

.posten-inhalt {
    padding: 30px;
}


.posten-card h3 {
    color: #123a5a;

    margin-bottom: 10px;
}


/* =========================================================
   BILDERGALERIE
   ========================================================= */

.gallery {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

    margin-top: 35px;
}

.gallery img {
    width: 100%;

    height: 250px;

    object-fit: cover;

    border-radius: 12px;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    background-color: #071426;

    color: #ffffff;

    text-align: center;

    padding: 35px 20px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

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

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

}


/* =========================================================
   SMARTPHONE
   ========================================================= */

@media (max-width: 700px) {

    .navbar {
        flex-direction: column;

        padding: 18px 0;
    }

    .nav-links {
        flex-wrap: wrap;

        justify-content: center;

        gap: 12px 18px;
    }

    .hero {
        min-height: 65vh;
    }

    .hero h1 {
        font-size: 2.7rem;
    }

    .section {
        padding: 65px 0;
    }

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

    #posten-container {
        grid-template-columns: 1fr;
    }

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

    #map {
        height: 400px;
    }

}

/* =========================================================
   POPUP DER KARTENMARKER
   ========================================================= */

.posten-popup-link {
    display: flex;
    flex-direction: column;

    min-width: 140px;

    color: #0b1f33;

    text-decoration: none;

    cursor: pointer;
}

.posten-popup-link strong {
    font-size: 16px;
    color: #123a5a;
}

.posten-popup-link span {
    margin-top: 3px;
}

.posten-popup-link small {
    margin-top: 10px;

    color: #9a7415;

    font-weight: bold;
}

.posten-popup-link:hover small {
    text-decoration: underline;
}


/* Parkplatzmarker: blau mit weissem P, unabhängig von Postennummern */
.parkplatz-marker-wrapper {
    background: transparent !important;
    border: none !important;
}
.parkplatz-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 2px solid #ffffff;
    border-radius: 8px;
    background: #1769c2;
    color: #ffffff;
    font-size: 25px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}
.parkplatz-popup {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 150px;
}
.parkplatz-popup strong { color: #123a5a; }
.parkplatz-popup a { color: #1769c2; font-weight: bold; }

/* Eigenständige Parkplatz-Unterseite */
.parking-hero {
    background: linear-gradient(135deg, #071426, #123a5a);
    color: #fff;
    padding: 90px 0;
}
.parking-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.1;
    margin-bottom: 20px;
}
.parking-hero p:not(.hero-kicker) {
    max-width: 740px;
    font-size: 1.1rem;
}
.parking-hero .button {
    display: inline-block;
    margin-top: 28px;
    padding: 13px 24px;
    background: #f4c95d;
    color: #0b1f33;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
}
.parking-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.parking-card {
    background: #fff;
    border: 1px solid #e2e8ec;
    border-radius: 12px;
    padding: 26px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}
.parking-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #1769c2;
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 16px;
}
.parking-card h3 { color: #123a5a; margin-bottom: 8px; }
.parking-card p { margin-bottom: 18px; }
.parking-card a { color: #1769c2; font-weight: bold; }
.nav-links a[aria-current="page"] { color: #f4c95d; }
@media (max-width: 900px) {
    .parking-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .parking-grid { grid-template-columns: 1fr; }
    .parking-hero { padding: 65px 0; }
}

/* Hinweise und Kapazitätsangaben auf der Parkplatzseite */
.parking-notice {
    background: #f4f7f9;
    border-left: 4px solid #1769c2;
    border-radius: 8px;
    padding: 22px 26px;
    margin-bottom: 30px;
    max-width: 850px;
}
.parking-notice h3 { color: #123a5a; margin-bottom: 8px; }
.parking-capacity {
    color: #123a5a;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Zielposition für Links aus den Parkplatzmarkern */
.parking-card {
    scroll-margin-top: 110px;
}
.parking-card:target {
    outline: 3px solid #f4c95d;
    outline-offset: 3px;
}

/* Impressionen-Fotogalerie */
.impressionen-photo {
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #f4f7f9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
.impressionen-photo img {
    display: block;
    width: 100%;
    height: 360px;
    object-fit: cover;
}
@media (max-width: 700px) {
    .impressionen-photo img { height: auto; aspect-ratio: 3 / 4; }
}

/* Neues Sternenweg-Logo im Menü */
.navbar .logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: clamp(170px, 22vw, 270px);
}
.navbar .logo img {
    display: block;
    width: 100%;
    height: auto;
}
@media (max-width: 700px) {
    .navbar {
        align-items: center;
    }
    .navbar .logo {
        width: min(260px, 75vw);
        margin-inline: auto;
        justify-content: center;
    }
    .navbar .nav-links {
        width: 100%;
        justify-content: center;
    }
}

/* FAQ-Seite */
.faq-list { max-width: 900px; }
.faq-item { padding: 26px 0; border-bottom: 1px solid #e2e8ec; }
.faq-item:first-child { padding-top: 0; }
.faq-item:last-child { border-bottom: 0; }
.faq-item h2 { font-size: clamp(1.3rem, 3vw, 1.65rem); margin-bottom: 10px; }
.faq-item p + p { margin-top: 14px; }
.faq-item a { color: #1769c2; font-weight: 700; }
