* {
    box-sizing: border-box;
}

body {
    margin: 0;

    font-family:
        system-ui,
        -apple-system,
        "Noto Sans Armenian",
        Arial,
        sans-serif;

    color: #172033;
    background: #f7f8fc;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   HEADER
   ========================================================= */

header {
    width: 100%;

    min-height: 72px;
    height: auto;

    background: #ffffff;

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

    gap: 20px;

    padding:
        14px max(5vw, 24px);

    border-bottom:
        1px solid #e7e9f2;

    position: sticky;
    top: 0;

    z-index: 100;
}


.logo {
    flex: 0 0 auto;

    font-size: 28px;
    font-weight: 900;
    letter-spacing: 1px;

    color: #5a43df;
}


nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    flex-wrap: wrap;

    gap: 12px 18px;
}


nav a {
    white-space: nowrap;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn,
button {
    background: #5a43df;
    color: #ffffff;

    border: 0;
    border-radius: 10px;

    padding: 12px 18px;

    font-weight: 700;

    cursor: pointer;
}


/* =========================================================
   MAIN
   ========================================================= */

main {
    max-width: 1180px;

    margin: auto;

    padding:
        0 24px 50px;
}


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

.hero {
    margin-top: 28px;

    padding:
        58px 32px;

    border-radius: 24px;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            #efeaff,
            #e9f6ff
        );
}


.hero h1 {
    margin:
        0 0 8px;

    font-size:
        clamp(
            32px,
            5vw,
            58px
        );

    line-height: 1.1;
}


.hero p {
    font-size: 18px;
}


/* =========================================================
   SUCHE
   ========================================================= */

.search {
    display: grid;

    grid-template-columns:
        1fr
        240px
        auto;

    gap: 10px;

    max-width: 850px;

    margin:
        28px auto 0;
}


input,
select,
textarea {
    width: 100%;

    padding: 13px;

    border:
        1px solid #d9ddea;

    border-radius: 10px;

    background: #ffffff;

    font: inherit;
}


/* =========================================================
   KATEGORIEN
   ========================================================= */

section h2 {
    margin-top: 38px;
}


.cats {
    display: grid;

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

    gap: 12px;
}


.cats a {
    background: #ffffff;

    border:
        1px solid #e6e8f0;

    border-radius: 14px;

    padding: 20px;

    text-align: center;

    font-weight: 700;
}


/* =========================================================
   ANZEIGEN
   ========================================================= */

.grid {
    display: grid;

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

    gap: 18px;
}


.card {
    overflow: hidden;

    background: #ffffff;

    border:
        1px solid #e5e7ef;

    border-radius: 16px;
}


.card img,
.placeholder {
    width: 100%;
    height: 210px;

    object-fit: cover;
}


.placeholder {
    display: grid;

    place-items: center;

    background: #eeebff;

    color: #5a43df;

    font-size: 28px;
    font-weight: 900;
}


.pad {
    padding: 16px;
}


.pad h3 {
    margin:
        8px 0;
}


.pad strong {
    font-size: 22px;
}


.pad p {
    color: #5e6678;
}


.empty {
    background: #ffffff;

    padding: 28px;

    border-radius: 14px;
}


/* =========================================================
   LOGIN / FORMULARE
   ========================================================= */

.auth {
    max-width: 500px;

    margin:
        55px auto;

    background: #ffffff;

    padding: 32px;

    border-radius: 18px;

    border:
        1px solid #e4e7ef;
}


.auth.wide {
    max-width: 650px;
}


.auth h1 {
    margin-top: 22px;
}


.auth form {
    display: grid;

    gap: 16px;
}


.auth label {
    font-weight: 700;
}


.auth label input,
.auth label select,
.auth label textarea {
    margin-top: 7px;
}


.error {
    padding: 12px;

    background: #fff0f0;

    border-radius: 9px;

    color: #a51d1d;
}


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

footer {
    text-align: center;

    padding: 30px;

    color: #737b8d;
}


/* =========================================================
   NACHRICHTEN BADGE
   ========================================================= */

.message-nav-link {
    display: inline-flex !important;

    align-items: center;

    gap: 7px;

    white-space: nowrap;
}


.message-nav-link > span {
    display: inline-flex;
}


.message-badge {
    min-width: 22px;
    height: 22px;

    padding:
        0 6px;

    display: inline-flex !important;

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

    background: #e32636 !important;

    color: #ffffff !important;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 900;
    line-height: 1;

    text-align: center;
}


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

@media(max-width: 800px) {

    /*
    |--------------------------------------------------------------------------
    | Header darf auf dem Handy wachsen
    |--------------------------------------------------------------------------
    */

    header {
        position: relative;

        width: 100%;

        height: auto !important;
        min-height: 0 !important;

        padding:
            16px 18px;

        display: flex;

        flex-direction: column;

        align-items: flex-start;

        justify-content: flex-start;

        gap: 14px;
    }


    .logo {
        font-size: 31px;
    }


    /*
    |--------------------------------------------------------------------------
    | Navigation
    |--------------------------------------------------------------------------
    */

    nav {
        width: 100%;

        display: flex;

        flex-wrap: wrap;

        align-items: center;

        justify-content: flex-start;

        gap:
            10px 16px;
    }


    nav a {
        display: inline-flex;

        align-items: center;

        min-height: 32px;

        font-size: 15px;

        line-height: 1.25;

        white-space: nowrap;
    }


    /*
    |--------------------------------------------------------------------------
    | Sprachen
    |--------------------------------------------------------------------------
    */

    .languages {
        width: 100%;

        display: flex !important;

        align-items: center;

        flex-wrap: wrap;

        gap: 8px;

        margin-top: 2px;
    }


    .languages span {
        display: inline !important;
    }


    .languages a {
        display: inline-flex;
    }


    /*
    |--------------------------------------------------------------------------
    | Nachrichten
    |--------------------------------------------------------------------------
    */

    .message-nav-link {
        display: inline-flex !important;

        align-items: center;

        gap: 6px;
    }


    .message-nav-link > span {
        display: inline-flex !important;
    }


    .message-badge {
        display: inline-flex !important;

        min-width: 20px;

        height: 20px;

        padding:
            0 5px;

        font-size: 11px;
    }


    /*
    |--------------------------------------------------------------------------
    | Hero
    |--------------------------------------------------------------------------
    */

    .hero {
        width: auto;

        margin:
            16px 14px 0;

        padding:
            38px 18px;

        border-radius: 20px;
    }


    .hero h1 {
        font-size:
            clamp(
                30px,
                9vw,
                42px
            );

        line-height: 1.08;
    }


    .hero p {
        font-size: 17px;

        line-height: 1.5;
    }


    /*
    |--------------------------------------------------------------------------
    | Suche
    |--------------------------------------------------------------------------
    */

    .search,
    .search-form {
        width: 100%;

        grid-template-columns:
            1fr !important;
    }


    /*
    |--------------------------------------------------------------------------
    | Inhalt
    |--------------------------------------------------------------------------
    */

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


    .grid,
    .listing-grid {
        grid-template-columns:
            1fr !important;
    }


    main {
        padding-left: 14px;
        padding-right: 14px;
    }

}


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

@media(max-width: 480px) {

    header {
        padding:
            14px 14px;
    }


    .logo {
        font-size: 29px;
    }


    nav {
        gap:
            9px 13px;
    }


    nav a {
        font-size: 14px;
    }


    .hero {
        margin-top: 12px;

        padding:
            34px 15px;
    }


    .hero h1 {
        font-size: 32px;
    }


    .hero p {
        font-size: 16px;
    }


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

}