/* ========================================
   GRUNDLAYOUT
   ======================================== */

html,
body {
    margin: 0;
    padding: 0;

    width: 100%;
    height: 100%;

    overflow: auto;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    -webkit-font-smoothing: antialiased;
}


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

#map {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 1;
}


/* ========================================
   TOPBAR
   ======================================== */

.topbar {
    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    height: 64px;

    background: #102A43;

    display: flex;
    align-items: center;

    padding-left: 24px;
    padding-right: 24px;

    box-sizing: border-box;

    z-index: 1000;

    border-radius:
        0 0 18px 18px;

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.18);

    padding-top: env(safe-area-inset-top);
}


/* ========================================
   LOGO
   ======================================== */

.logo {
    color: #ffffff;

    font-size: 22px;

    font-weight: 700;

    letter-spacing: -0.4px;

    line-height: 1;

    user-select: none;
}


/* ========================================
   LEAFLET GRUNDANPASSUNG
   ======================================== */

.leaflet-container {
    font-family: inherit;
}


/* ========================================
   LEAFLET POPUP SCHRIFT
   ======================================== */

.leaflet-popup-content,
.marker-info {
    font-family: inherit;
}


/* ========================================
   LEAFLET KARTENAUSWAHL
   ======================================== */

.leaflet-top.leaflet-right {

    top: 78px;

    right: 14px;
}


.leaflet-control-layers {

    border: none;

    border-radius: 11px;

    box-shadow:
        0 6px 18px
        rgba(0, 0, 0, 0.18);

    overflow: hidden;

    font-family: inherit;
}


.leaflet-control-layers-toggle {

    width: 44px;

    height: 44px;

    background-color: #ffffff;

    background-size: 22px 22px;
}


.leaflet-control-layers-expanded {

    padding: 10px 12px;

    background: #ffffff;

    color: #243B53;

    font-size: 14px;

    line-height: 1.8;
}


.leaflet-control-layers label {

    margin: 0;

    padding: 3px 0;

    cursor: pointer;
}


.leaflet-control-layers input {

    margin-right: 7px;

    accent-color: #102A43;
}


/* ========================================
   LEAFLET POPUP
   ======================================== */

.leaflet-popup-content-wrapper {

    padding: 0;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.22);
}


.leaflet-popup-content {

    margin: 0;

    width: 320px !important;

    max-width: calc(100vw - 60px);
}


/* Popup-Pfeil */

.leaflet-popup-tip {

    box-shadow:
        3px 3px 8px rgba(0, 0, 0, 0.08);
}


/* ========================================
   POPUP SCHLIESSEN
   ======================================== */

.leaflet-container a.leaflet-popup-close-button {

    top: 12px;
    right: 12px;

    width: 36px;
    height: 36px;

    display: flex;

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

    padding: 0;

    color: #829AB1;

    font-family: Arial, sans-serif;

    font-size: 27px;

    font-weight: 300;

    line-height: 36px;

    border-radius: 50%;

    z-index: 20;
}


.leaflet-container a.leaflet-popup-close-button:hover {

    background: #F0F4F8;

    color: #102A43;
}


/* ========================================
   MARKER FORMULAR
   ======================================== */

.marker-form {

    width: 100%;

    box-sizing: border-box;

    padding: 24px;

    display: flex;

    flex-direction: column;

    gap: 7px;
}


/* ========================================
   LABELS
   ======================================== */

.marker-form label {

    display: block;

    margin-top: 7px;

    color: #243B53;

    font-size: 14px;

    font-weight: 600;
}


/* ========================================
   INPUT / TEXTAREA / SELECT
   ======================================== */

.marker-form input,
.marker-form textarea,
.marker-form select {

    width: 100%;

    box-sizing: border-box;

    border: 1px solid #D8DEE6;

    border-radius: 10px;

    background: #F8FAFC;

    color: #243B53;

    font-family: inherit;

    font-size: 16px;

    outline: none;

    -webkit-appearance: none;
}


/* ========================================
   INPUT
   ======================================== */

.marker-form input {

    height: 48px;

    padding:
        0 13px;
}


/* ========================================
   TEXTAREA
   ======================================== */

.marker-form textarea {

    min-height: 90px;

    padding:
        11px 13px;

    resize: vertical;
}


/* ========================================
   SELECT
   ======================================== */

.marker-form select {

    height: 48px;

    padding:
        0 13px;

    cursor: pointer;
}


/* ========================================
   FOCUS
   ======================================== */

.marker-form input:focus,
.marker-form textarea:focus,
.marker-form select:focus {

    background: #ffffff;

    border-color: #102A43;

    box-shadow:
        0 0 0 3px
        rgba(16, 42, 67, 0.10);
}


/* ========================================
   PLACEHOLDER
   ======================================== */

.marker-form input::placeholder,
.marker-form textarea::placeholder {

    color: #9AA5B1;
}


/* ========================================
   SPEICHERN
   ======================================== */

.marker-form button {

    width: 100%;

    min-height: 48px;

    margin-top: 12px;

    padding:
        0 16px;

    border: none;

    border-radius: 11px;

    background: #102A43;

    color: #ffffff;

    font-family: inherit;

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;

    touch-action: manipulation;

    transition:
        background 0.15s ease,
        transform 0.1s ease;
}


.marker-form button:hover {

    background: #163B5C;
}


.marker-form button:active {

    transform: scale(0.98);
}


/* ========================================
   GESPEICHERTER SPOT
   ======================================== */

.marker-info {

    width: 100%;

    box-sizing: border-box;

    padding: 24px;

    color: #243B53;
}


.marker-info h3 {

    margin:
        0 0 18px 0;

    padding-right: 30px;

    color: #102A43;

    font-size: 21px;

    line-height: 1.2;

    font-weight: 700;
}


.marker-info p {

    margin:
        10px 0;

    font-size: 14px;

    line-height: 1.55;
}


.marker-info strong {

    color: #102A43;
}


/* ========================================
   SPOT BEWERTUNG
   ======================================== */

.spot-rating {

    margin-top: 18px;

    padding-top: 16px;

    border-top:
        1px solid #E5EAF0;
}


.spot-rating strong {

    display: block;

    margin-bottom: 7px;

    color: #102A43;

    font-size: 14px;
}


.rating-stars {

    display: flex;

    align-items: center;

    gap: 2px;
}


.rating-stars button {

    width: 38px;

    height: 38px;

    min-height: 38px;

    margin: 0;

    padding: 0;

    border: none;

    border-radius: 8px;

    background: transparent;

    color: #C4CDD5;

    font-family: inherit;

    font-size: 29px;

    font-weight: 400;

    line-height: 38px;

    text-align: center;

    cursor: pointer;

    touch-action: manipulation;

    transition:
        color 0.15s ease,
        background 0.15s ease,
        transform 0.1s ease;

    -webkit-tap-highlight-color:
        transparent;
}


/* Ausgewählte Sterne */

.rating-stars button.selected {

    color: #F2B01E;
}


/* Hover */

.rating-stars button:hover {

    background: #F4F7FA;

    color: #F2B01E;
}


/* Klick */

.rating-stars button:active {

    transform:
        scale(0.92);
}


/* ========================================
   BEARBEITEN
   ======================================== */

.marker-info .spot-edit {

    width: 100%;

    min-height: 48px;

    margin-top: 16px;

    border: none;

    border-radius: 11px;

    background: #102A43;

    color: #ffffff;

    font-family: inherit;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    touch-action: manipulation;
}


.marker-info .spot-edit:active {

    transform: scale(0.98);
}


/* ========================================
   WILLKOMMENS-OVERLAY
   ======================================== */

#welcome-overlay {

    position: fixed;

    inset: 0;

    z-index: 5000;

    display: flex;

    align-items: center;

    justify-content: center;

    padding:
        20px;

    padding-top:
        calc(20px + env(safe-area-inset-top));

    padding-bottom:
        calc(20px + env(safe-area-inset-bottom));

    box-sizing: border-box;

    background:
        rgba(8, 25, 40, 0.45);

    backdrop-filter:
        blur(5px);

    -webkit-backdrop-filter:
        blur(5px);
}


/* ========================================
   WILLKOMMENS-POPUP
   ======================================== */

#welcome-popup {

    position: relative;

    width: 100%;

    max-width: 480px;

    max-height:
        calc(100vh - 40px);

    overflow-y: auto;

    -webkit-overflow-scrolling: touch;

    background: #ffffff;

    border-radius: 22px;

    box-shadow:
        0 25px 60px
        rgba(0, 0, 0, 0.25);
}


/* ========================================
   WILLKOMMENS-INHALT
   ======================================== */

.welcome-content {

    padding: 34px;
}


.welcome-logo {

    display: inline-block;

    margin-bottom: 18px;

    padding:
        8px 12px;

    border-radius: 8px;

    background: #102A43;

    color: #ffffff;

    font-size: 14px;

    font-weight: 700;

    letter-spacing: 0.3px;
}


.welcome-content h1 {

    margin:
        0 35px 12px 0;

    color: #102A43;

    font-size: 28px;

    line-height: 1.15;

    font-weight: 750;

    letter-spacing: -0.6px;
}


.welcome-intro {

    margin:
        0 0 28px 0;

    color: #52606D;

    font-size: 16px;

    line-height: 1.55;
}


.welcome-section {

    margin-top: 24px;
}


.welcome-section h2 {

    margin:
        0 0 9px 0;

    color: #243B53;

    font-size: 16px;

    font-weight: 700;
}


.welcome-section p {

    margin:
        7px 0;

    color: #52606D;

    font-size: 14px;

    line-height: 1.55;
}


.welcome-section ul {

    margin:
        8px 0 0 0;

    padding-left: 20px;

    color: #52606D;

    font-size: 14px;

    line-height: 1.6;
}


.welcome-section li {

    margin-bottom: 6px;
}


/* ========================================
   WILLKOMMENS-HINWEIS
   ======================================== */

.welcome-note {

    padding:
        14px 16px;

    background: #F4F7FA;

    border-radius: 12px;

    border-left:
        3px solid #102A43;
}


.welcome-note strong {

    color: #102A43;

    font-size: 14px;
}


/* ========================================
   WILLKOMMENS-BUTTON
   ======================================== */

#welcome-start {

    width: 100%;

    min-height: 50px;

    margin-top: 28px;

    border: none;

    border-radius: 11px;

    background: #102A43;

    color: #ffffff;

    font-family: inherit;

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;

    touch-action: manipulation;
}


#welcome-start:active {

    transform: scale(0.98);
}


/* ========================================
   WILLKOMMENS-X
   ======================================== */

#welcome-close {

    position: absolute;

    top: 12px;
    right: 12px;

    width: 42px;
    height: 42px;

    display: flex;

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

    padding: 0;

    border: none;

    background: transparent;

    color: #829AB1;

    font-family: Arial, sans-serif;

    font-size: 30px;

    font-weight: 300;

    line-height: 1;

    cursor: pointer;

    border-radius: 50%;

    z-index: 20;

    touch-action: manipulation;
}


#welcome-close:hover {

    background: #F0F4F8;

    color: #102A43;
}


/* ========================================
   MOBILE
   ======================================== */

@media (max-width: 600px) {

    /* ------------------------------------
       TOPBAR
       ------------------------------------ */

    .topbar {

        height: 58px;

        padding-left:
            18px;

        padding-right:
            18px;

        border-radius:
            0 0 16px 16px;
    }


    .logo {

        font-size: 20px;

        letter-spacing:
            -0.5px;
    }


    /* ------------------------------------
       LEAFLET POPUP
       ------------------------------------ */

    .leaflet-popup-content {

        width:
            min(300px, calc(100vw - 48px))
        !important;

        max-width:
            calc(100vw - 48px);
    }


    .leaflet-popup-content-wrapper {

        border-radius:
            17px;
    }


    /* ------------------------------------
       FORMULAR
       ------------------------------------ */

    .marker-form {

        padding:
            20px;
    }


    .marker-form label {

        font-size:
            13px;

        margin-top:
            6px;
    }


    .marker-form input {

        height:
            48px;
    }


    .marker-form textarea {

        min-height:
            90px;
    }


    .marker-form select {

        height:
            48px;
    }


    .marker-form button {

        min-height:
            50px;

        margin-top:
            14px;
    }


    /* ------------------------------------
       GESPEICHERTER SPOT
       ------------------------------------ */

    .marker-info {

        padding:
            20px;
    }


    .marker-info h3 {

        font-size:
            19px;
    }


    .marker-info .spot-edit {

        min-height:
            50px;
    }


    /* ------------------------------------
       BEWERTUNG
       ------------------------------------ */

    .spot-rating {

        margin-top:
            16px;

        padding-top:
            14px;
    }


    .rating-stars {

        gap:
            1px;
    }


    .rating-stars button {

        width:
            40px;

        height:
            40px;

        min-height:
            40px;

        font-size:
            29px;

        line-height:
            40px;
    }


    /* ------------------------------------
       WILLKOMMEN
       ------------------------------------ */

    #welcome-overlay {

        padding:
            12px;

        padding-top:
            calc(12px + env(safe-area-inset-top));

        padding-bottom:
            calc(12px + env(safe-area-inset-bottom));

        align-items:
            center;
    }


    #welcome-popup {

        max-height:
            calc(100vh - 24px);

        border-radius:
            19px;
    }


    .welcome-content {

        padding:
            26px 22px;
    }


    .welcome-logo {

        margin-bottom:
            14px;
    }


    .welcome-content h1 {

        margin-right:
            35px;

        font-size:
            24px;
    }


    .welcome-intro {

        margin-bottom:
            22px;

        font-size:
            15px;
    }


    .welcome-section {

        margin-top:
            20px;
    }


    .welcome-section h2 {

        font-size:
            15px;
    }


    .welcome-section p,
    .welcome-section ul {

        font-size:
            13px;
    }


    #welcome-start {

        min-height:
            50px;

        margin-top:
            22px;
    }


    #welcome-close {

        width:
            42px;

        height:
            42px;

        top:
            8px;

        right:
            8px;
    }

}


/* ========================================
   SEHR KLEINE HANDYS
   ======================================== */

@media (max-width: 380px) {

    .leaflet-popup-content {

        width:
            calc(100vw - 34px)
        !important;

        max-width:
            calc(100vw - 34px);
    }


    .marker-form {

        padding:
            18px;
    }


    .marker-info {

        padding:
            18px;
    }


    .rating-stars button {

        width:
            36px;

        height:
            36px;

        min-height:
            36px;

        font-size:
            27px;

        line-height:
            36px;
    }


    .welcome-content {

        padding:
            22px 18px;
    }


    .welcome-content h1 {

        font-size:
            22px;
    }

}


/* ========================================
   SCAPOR MARKER
   ======================================== */

.scapor-marker-wrapper {
    background: transparent;
    border: none;
}


/* ========================================
   MARKER
   ======================================== */

.scapor-marker {

    width: 36px;
    height: 36px;

    display: flex;

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

    border-radius: 50%;

    box-sizing: border-box;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}


/* ========================================
   INNERER PUNKT
   ======================================== */

.marker-dot {

    width: 14px;
    height: 14px;

    border-radius: 50%;

    background: #ffffff;

    border: 4px solid;

    box-sizing: border-box;
}


/* ========================================
   AKTIVER SPOT
   ======================================== */

.active-marker {

    background: rgba(210, 70, 70, 0.18);

    border:
        2px solid #9B2C2C;

    box-shadow:
        0 0 0 3px #ffffff,
        0 4px 12px
        rgba(210, 70, 70, 0.30);
}


.active-marker .marker-dot {

    border-color:
        #9B2C2C;
}


/* ========================================
   GESPEICHERTER SPOT
   ======================================== */

.saved-marker {

    background: rgba(16, 42, 67, 0.18);

    border:
        2px solid #102A43;

    box-shadow:
        0 0 0 3px #ffffff,
        0 4px 12px
        rgba(16, 42, 67, 0.30);
}


.saved-marker .marker-dot {

    border-color:
        #102A43;
}


/* ========================================
   HOVER
   ======================================== */

.scapor-marker:hover {

    transform:
        scale(1.12);
}


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

.logo {
    color: #ffffff;

    text-decoration: none;

    font-size: 22px;

    font-weight: 700;

    letter-spacing: -0.4px;
}


.navigation {

    margin-left: auto;

    display: flex;

    align-items: center;

    gap: 6px;
}


.navigation a {

    display: flex;

    align-items: center;

    height: 38px;

    padding: 0 14px;

    border-radius: 9px;

    color: rgba(255, 255, 255, 0.78);

    text-decoration: none;

    font-size: 14px;

    font-weight: 500;

    transition:
        background 0.15s ease,
        color 0.15s ease;
}


.navigation a:hover {

    color: #ffffff;

    background:
        rgba(255, 255, 255, 0.10);
}


.navigation a.active {

    color: #ffffff;

    background:
        rgba(255, 255, 255, 0.14);
}


/* ========================================
   SEITENLAYOUT
   ======================================== */

.page {

    min-height: 100vh;

    box-sizing: border-box;

    padding:
        110px 24px 50px;

    background:
        #F4F7FA;

    display: flex;

    justify-content: center;
}


/* ========================================
   CONTENT CARD
   ======================================== */

.content-card {

    width: 100%;

    max-width: 760px;

    align-self: flex-start;

    box-sizing: border-box;

    padding: 48px;

    background: #ffffff;

    border-radius: 22px;

    box-shadow:
        0 10px 35px
        rgba(16, 42, 67, 0.08);
}


/* ========================================
   LABEL
   ======================================== */

.page-label {

    display: inline-block;

    margin-bottom: 14px;

    padding:
        7px 10px;

    border-radius: 7px;

    background: #102A43;

    color: #ffffff;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.8px;
}


/* ========================================
   ÜBERSCHRIFT
   ======================================== */

.content-card h1 {

    margin:
        0 0 14px;

    color: #102A43;

    font-size: 38px;

    line-height: 1.1;

    letter-spacing: -1px;
}


.lead {

    margin:
        0 0 38px;

    color: #52606D;

    font-size: 17px;

    line-height: 1.6;
}


/* ========================================
   ABSCHNITTE
   ======================================== */

.contact-section,
.about-section {

    margin-top: 30px;

    padding-top: 30px;

    border-top:
        1px solid #E5EAF0;
}


.contact-section h2,
.about-section h2 {

    margin:
        0 0 10px;

    color: #243B53;

    font-size: 18px;

    font-weight: 700;
}


.contact-section p,
.about-section p {

    margin:
        8px 0;

    color: #52606D;

    font-size: 15px;

    line-height: 1.65;
}


/* ========================================
   KONTAKT LINK
   ======================================== */

.contact-link {

    display: inline-block;

    margin-top: 8px;

    color: #102A43;

    font-size: 15px;

    font-weight: 600;

    text-decoration: none;
}


.contact-link:hover {

    text-decoration: underline;
}


/* ========================================
   ÜBER SCAPOR HIGHLIGHT
   ======================================== */

.about-highlight {

    margin-top: 38px;

    padding:
        22px 24px;

    border-radius: 14px;

    background: #102A43;

    color: #ffffff;
}


.about-highlight strong {

    display: block;

    font-size: 20px;

    letter-spacing: -0.3px;
}


.about-highlight p {

    margin:
        5px 0 0;

    color:
        rgba(255, 255, 255, 0.75);

    font-size: 14px;
}


/* ========================================
   MOBILE
   ======================================== */

@media (max-width: 600px) {

    .topbar {

        padding-left: 16px;

        padding-right: 16px;

        height: 58px;
    }


    .logo {

        font-size: 19px;
    }


    .navigation {

        gap: 2px;
    }


    .navigation a {

        height: 36px;

        padding:
            0 8px;

        font-size: 12px;
    }


    .page {

        padding:
            82px 12px 30px;
    }


    .content-card {

        padding:
            28px 22px;

        border-radius:
            18px;
    }


    .content-card h1 {

        font-size:
            30px;
    }


    .lead {

        font-size:
            15px;

        margin-bottom:
            28px;
    }

}


@media (max-width: 380px) {

    .navigation a {

        padding:
            0 6px;

        font-size:
            11px;
    }


    .content-card {

        padding:
            24px 18px;
    }

}
