/* ============================================================
   DRIVEON
   GLOBAL / RESET
============================================================ */

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

html {
    width: 100%;
    min-height: 100%;
    background: #08090b;
}

body {
    width: 100%;
    min-height: 100vh;

    font-family: Arial, Helvetica, sans-serif;

    background: #08090b;
    color: #fff;

    overflow-x: hidden;
}

body.sidebar-is-open {
    overflow: hidden;
}

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

button,
input,
select,
textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
}


/* ============================================================
   APP
============================================================ */

.app {
    display: flex;
    min-height: 100vh;
    width: 100%;
}


/* ============================================================
   SIDEBAR
============================================================ */

.sidebar {
    width: 250px;
    height: 100vh;

    position: fixed;
    left: 0;
    top: 0;

    background: #0d0f12;

    border-right: 1px solid #202329;

    padding: 25px 18px;

    display: flex;
    flex-direction: column;

    z-index: 1000;

    overflow-y: auto;
    overflow-x: hidden;

    scrollbar-width: thin;
    scrollbar-color: #292d33 transparent;

    transition:
        width .25s ease,
        transform .25s ease;
}

.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #292d33;
    border-radius: 10px;
}


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

.logo {
    display: block;

    font-size: 25px;
    font-weight: 900;

    letter-spacing: -1px;

    margin-bottom: 35px;

    white-space: nowrap;

    flex-shrink: 0;
}

.logo span {
    color: #ff3b30;
}


/* ============================================================
   SIDEBAR NAV
============================================================ */

.sidebar-nav {
    display: flex;
    flex-direction: column;

    flex: 0 0 auto;

    width: 100%;
}


/* ============================================================
   NAV TITLE
============================================================ */

.nav-title {
    color: #666b73;

    font-size: 11px;
    text-transform: uppercase;

    letter-spacing: 1.5px;

    margin: 20px 12px 10px;

    white-space: nowrap;
}


/* ============================================================
   NAV ITEM
============================================================ */

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

    width: 100%;

    gap: 14px;

    padding: 12px 14px;

    margin-bottom: 4px;

    color: #9da2aa;

    border-radius: 10px;

    font-size: 14px;
    font-weight: 600;

    flex-shrink: 0;

    transition:
        background .2s ease,
        color .2s ease;
}

.nav-item:hover,
.nav-item.active {
    background: #191b20;
    color: #fff;
}

.nav-item.active .icon {
    color: #ff3b30;
}


/* ============================================================
   ICON
============================================================ */

.icon {
    width: 20px;
    height: 20px;

    flex: 0 0 20px;

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

    text-align: center;

    font-size: 17px;
}


/* ============================================================
   NAV LABEL
   WICHTIG:
   header.php verwendet .nav-label
============================================================ */

.nav-label {
    display: block;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* Rückwärtskompatibilität */
.nav-text {
    display: block;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* ============================================================
   SIDEBAR BOTTOM
============================================================ */

.sidebar-bottom {
    margin-top: auto;

    padding-top: 25px;

    flex-shrink: 0;
}


/* ============================================================
   LEGAL LINKS
============================================================ */

.sidebar-legal {
    display: flex;
    align-items: center;

    flex-wrap: wrap;

    gap: 0;

    width: 100%;

    padding: 12px 14px 4px;

    margin-top: 8px;
}

.sidebar-legal a {
    color: #5f646c;

    font-size: 10px;
    font-weight: 500;

    white-space: nowrap;

    transition: color .2s ease;
}

.sidebar-legal a:hover {
    color: #aeb3ba;
}

.sidebar-legal a + a::before {
    content: "•";

    display: inline-block;

    margin: 0 8px;

    color: #393d43;
}


/* ============================================================
   TABLET
   701px – 1100px
============================================================ */

@media (max-width: 1100px) and (min-width: 701px) {

    .sidebar {
        width: 72px;

        padding: 20px 10px;

        overflow-y: auto;
    }

    .logo {
        width: 100%;

        text-align: center;

        font-size: 0;

        margin-bottom: 30px;
    }

    .logo span {
        font-size: 24px;
    }

    .nav-title {
        display: none;
    }

    .nav-item {
        justify-content: center;

        padding: 12px 8px;

        gap: 0;
    }

    .nav-item .icon {
        width: auto;

        flex: 0 0 auto;

        font-size: 18px;
    }

    .nav-label,
    .nav-text {
        display: none;
    }


    /* Auf Tablet ausblenden */
    .sidebar-legal {
        display: none;
    }
}


/* ============================================================
   MOBILE
   ≤ 700px
============================================================ */

@media (max-width: 700px) {

    .sidebar {
        width: 270px;

        height: 100vh;
        height: 100dvh;

        transform: translateX(-100%);

        padding: 22px 18px;

        box-shadow:
            20px 0 60px rgba(0,0,0,.45);

        overflow-y: auto;
        overflow-x: hidden;

        /*
         * Wichtig:
         * Die Sidebar darf nicht versuchen,
         * den unteren Bereich außerhalb des Viewports
         * zu platzieren.
         */
        display: flex;
        flex-direction: column;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }


    /* --------------------------------------------------------
       LOGO
    -------------------------------------------------------- */

    .sidebar .logo {
        display: block;

        font-size: 25px;

        text-align: left;

        width: auto;

        margin-bottom: 25px;
    }

    .sidebar .logo span {
        font-size: inherit;
    }


    /* --------------------------------------------------------
       NAVIGATION
    -------------------------------------------------------- */

    .sidebar-nav {
        flex: 0 0 auto;
    }

    .nav-title {
        display: block;

        margin-top: 18px;
    }

    .nav-item {
        justify-content: flex-start;

        gap: 14px;

        padding: 12px 14px;
    }

    .nav-label,
    .nav-text {
        display: block;
    }


    /* --------------------------------------------------------
       SIDEBAR BOTTOM
    -------------------------------------------------------- */

    .sidebar-bottom {
        margin-top: 20px;

        padding-top: 15px;

        flex-shrink: 0;
    }


    /* --------------------------------------------------------
       LEGAL
    -------------------------------------------------------- */

    .sidebar-legal {
        display: flex !important;

        visibility: visible !important;

        opacity: 1 !important;

        width: 100%;

        padding: 12px 14px 10px;

        margin-top: 8px;

        flex-shrink: 0;
    }

    .sidebar-legal a {
        display: inline-block;

        visibility: visible;

        color: #5f646c;

        font-size: 10px;
    }


    /* --------------------------------------------------------
       OVERLAY
    -------------------------------------------------------- */

    .sidebar-overlay {
        display: block;
    }
}


/* ============================================================
   VERY SMALL PHONES
   ≤ 420px
============================================================ */

@media (max-width: 420px) {

    .sidebar {
        width: 270px;

        padding:
            20px 16px;
    }

    .sidebar-legal {
        padding-left: 12px;
        padding-right: 12px;
    }

    .sidebar-legal a {
        font-size: 9px;
    }
}


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

.main {
    margin-left: 250px;

    width: calc(100% - 250px);

    min-width: 0;

    transition:
        margin-left .25s ease,
        width .25s ease;
}


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

.topbar {
    height: 74px;

    position: sticky;
    top: 0;

    z-index: 900;

    background: rgba(8, 9, 11, .92);

    backdrop-filter: blur(15px);

    border-bottom: 1px solid #202329;

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

    gap: 20px;

    padding: 0 35px;
}


/* ============================================================
   MOBILE MENU BUTTON
============================================================ */

.mobile-menu-button {
    width: 40px;
    height: 40px;

    display: none;

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

    flex-direction: column;

    gap: 4px;

    flex: 0 0 40px;

    border: 1px solid #252931;

    border-radius: 9px;

    background: #15181d;

    color: #fff;

    transition: .2s;
}

.mobile-menu-button span {
    display: block;

    width: 17px;
    height: 2px;

    border-radius: 2px;

    background: #fff;
}

.mobile-menu-button:hover {
    background: #1d2026;
}


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

.topbar-search {
    flex: 1;

    min-width: 0;

    display: flex;
    align-items: center;
}

.search {
    width: 390px;
    max-width: 100%;

    background: #121419;

    border: 1px solid #22262d;

    border-radius: 10px;

    padding: 12px 16px;

    color: #fff;

    outline: none;
}

.search::placeholder {
    color: #6d727a;
}

.search:focus {
    border-color: #3b414a;
}


/* ============================================================
   TOP ACTIONS
============================================================ */

.top-actions {
    display: flex;
    align-items: center;

    gap: 18px;

    flex: 0 0 auto;
}

.live-button {
    background: #ff3b30;

    color: #fff;

    border: 0;

    border-radius: 8px;

    padding: 10px 17px;

    font-size: 13px;
    font-weight: 800;
}

.top-icon {
    width: 38px;
    height: 38px;

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

    border: 0;

    border-radius: 50%;

    background: #15181d;

    color: #aaa;

    transition: .2s;
}

.top-icon:hover {
    background: #1d2026;
    color: #fff;
}

.avatar {
    width: 38px;
    height: 38px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #555,
            #171717
        );

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

    font-size: 13px;
    font-weight: bold;

    border: 0;

    color: #fff;

    flex: 0 0 38px;
}


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

.sidebar-overlay {
    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, .65);

    backdrop-filter: blur(2px);

    z-index: 950;

    opacity: 0;

    visibility: hidden;

    transition:
        opacity .25s ease,
        visibility .25s ease;
}

.sidebar-overlay.active {
    opacity: 1;

    visibility: visible;
}


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

.content {
    width: 100%;
    max-width: 1500px;

    margin: 0 auto;

    padding: 35px;
}


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

.hero {
    width: 100%;
	max-height: 450px;
    aspect-ratio: 1822 / 863;

    border-radius: 18px;
    position: relative;
    overflow: hidden;

    background-image: url('https://carwerft.at/uploads/banner.png');
    background-position: center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}
.hero-content {
    position: absolute;

    left: 40px;
    top: 50%;

    transform: translateY(-50%);

    max-width: 600px;
}

.hero-label {
    display: inline-block;

    background: #ff3b30;

    padding: 7px 12px;

    border-radius: 6px;

    font-size: 11px;
    font-weight: 900;

    margin-bottom: 15px;
}

.hero h1 {
    font-size: 42px;
    line-height: 1.05;

    margin-bottom: 15px;
}

.hero p {
    color: #c7c7c7;

    font-size: 15px;
    line-height: 1.6;

    margin-bottom: 22px;
}

.hero-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    border: 0;

    border-radius: 8px;

    padding: 12px 19px;

    font-size: 13px;
    font-weight: 700;
}

.btn-primary {
    background: #ff3b30;
    color: #fff;
}

.btn-secondary {
    background: rgba(255,255,255,.12);

    color: #fff;

    border: 1px solid rgba(255,255,255,.15);
}


/* ============================================================
   SECTIONS
============================================================ */

.section {
    margin-top: 35px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 16px;
}

.section-title {
    font-size: 20px;
    font-weight: 800;
}

.section-link {
    color: #777d86;
    font-size: 13px;
}

.section-link:hover {
    color: #fff;
}


/* ============================================================
   LIVE
============================================================ */

.live-grid {
    display: grid;

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

    gap: 18px;
}

.live-card,
.create-post,
.post,
.vehicle-card,
.side-card {
    background: #111318;

    border: 1px solid #202329;

    border-radius: 13px;
}

.live-card {
    overflow: hidden;

    transition:
        transform .25s ease,
        border-color .25s ease;
}

.live-card:hover {
    transform: translateY(-3px);

    border-color: #343941;
}

.live-image {
    height: 180px;

    position: relative;

    background-size: cover;
    background-position: center;
}

.live-image.one {
    background-image:
        url('https://images.unsplash.com/photo-1544829099-b9a0c07fad1a?auto=format&fit=crop&w=900&q=80');
}

.live-image.two {
    background-image:
        url('https://images.unsplash.com/photo-1511919884226-fd3cad34687c?auto=format&fit=crop&w=900&q=80');
}

.live-image.three {
    background-image:
        url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&w=900&q=80');
}

.live-badge {
    position: absolute;

    top: 12px;
    left: 12px;

    background: #ff3b30;

    padding: 6px 9px;

    border-radius: 5px;

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

.viewer-count {
    position: absolute;

    bottom: 10px;
    right: 10px;

    background: rgba(0,0,0,.75);

    padding: 6px 9px;

    border-radius: 5px;

    font-size: 11px;
}

.live-info {
    padding: 15px;
}

.live-info h3 {
    font-size: 15px;

    margin-bottom: 6px;
}

.live-info p {
    color: #777d86;

    font-size: 12px;
}


/* ============================================================
   DASHBOARD
============================================================ */

.dashboard-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        330px;

    gap: 25px;
}

.create-post {
    padding: 18px;

    margin-bottom: 18px;
}

.create-top {
    display: flex;
    align-items: center;

    gap: 12px;
}

.create-input {
    flex: 1;

    background: #181b20;

    border: 1px solid #242831;

    border-radius: 9px;

    padding: 12px 14px;

    color: #777d86;

    font-size: 13px;
}

.create-actions {
    display: flex;

    gap: 8px;

    margin-top: 15px;
}

.create-action {
    flex: 1;

    border: 0;

    background: transparent;

    color: #888e97;

    padding: 10px;

    border-radius: 8px;
}

.create-action:hover {
    background: #191c21;

    color: #fff;
}


/* ============================================================
   POSTS
============================================================ */

.post {
    margin-bottom: 18px;

    overflow: hidden;
}

.post-header {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 16px;
}

.post-user-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 50%;
    overflow: hidden;

    background: linear-gradient(
        135deg,
        #444,
        #151515
    );
}

.post-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-user {
    font-size: 13px;
    font-weight: 700;
}

.post-meta {
    color: #686e77;

    font-size: 11px;

    margin-top: 4px;
}

.post-content {
    padding: 0 16px 16px;

    font-size: 14px;

    line-height: 1.5;
}

.post-image {
    width: 100%;

    height: 390px;

    object-fit: cover;
}

.post-actions {
    display: flex;
    align-items: center;

    gap: 20px;

    padding: 14px 16px;

    color: #8b9098;

    font-size: 13px;
}

.post-action {
    cursor: pointer;
}

.post-action:hover {
    color: #fff;
}


/* ============================================================
   VEHICLE GRID
============================================================ */

.vehicle-grid {
    display: grid;

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

    gap: 15px;
}

.vehicle-card {
    overflow: hidden;
}

.vehicle-image {
    height: 150px;

    background-size: cover;
    background-position: center;
}

.vehicle-info {
    padding: 14px;
}

.vehicle-info h3 {
    font-size: 14px;

    margin-bottom: 6px;
}

.vehicle-owner {
    color: #737982;

    font-size: 11px;
}

.vehicle-specs {
    display: flex;

    gap: 15px;

    margin-top: 12px;

    color: #aaa;

    font-size: 11px;
}


/* ============================================================
   SIDECARDS / EVENTS
============================================================ */

.side-card {
    padding: 18px;

    margin-bottom: 18px;
}

.side-card h3 {
    font-size: 15px;

    margin-bottom: 16px;
}

.event {
    display: flex;

    gap: 12px;

    margin-bottom: 16px;
}

.event-date {
    width: 45px;
    height: 48px;

    flex: 0 0 45px;

    background: #191c21;

    border-radius: 8px;

    display: flex;
    flex-direction: column;

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

.event-date strong {
    font-size: 15px;
}

.event-date span {
    color: #ff3b30;

    font-size: 9px;

    font-weight: 800;
}

.event-info {
    flex: 1;

    min-width: 0;
}

.event-info h4 {
    font-size: 12px;

    margin-bottom: 4px;
}

.event-info p {
    color: #70757d;

    font-size: 10px;
}

.trend {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 15px;
}

.trend-number {
    color: #555b63;

    font-size: 13px;
    font-weight: 800;
}

.trend h4 {
    font-size: 12px;
}

.trend p {
    color: #666c74;

    font-size: 10px;

    margin-top: 4px;
}


/* ============================================================
   VEHICLES PAGE
============================================================ */

.vehicles-page {
    padding-bottom: 50px;
}

.vehicles-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 25px;

    margin-bottom: 28px;
}

.vehicles-eyebrow {
    color: #ff3b30;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.5px;

    margin-bottom: 7px;
}

.vehicles-header h1 {
    font-size: 32px;

    margin-bottom: 8px;
}

.vehicles-header p {
    color: #777d86;

    font-size: 14px;
}


/* ============================================================
   VEHICLE TOOLBAR
============================================================ */

.vehicles-toolbar {
    background: #111318;

    border: 1px solid #202329;

    border-radius: 13px;

    padding: 15px;

    margin-bottom: 18px;
}

.vehicle-search {
    display: flex;

    gap: 10px;

    align-items: center;
}

.vehicle-search input,
.vehicle-search select {
    height: 42px;

    background: #181b20;

    border: 1px solid #242831;

    border-radius: 8px;

    color: #fff;

    padding: 0 13px;

    outline: none;
}

.vehicle-search input {
    flex: 1;

    min-width: 220px;
}

.vehicle-search select {
    min-width: 160px;
}

.vehicle-search input::placeholder {
    color: #666c74;
}

.vehicle-search input:focus,
.vehicle-search select:focus {
    border-color: #3b414a;
}

.vehicles-result-info {
    color: #777d86;

    font-size: 12px;

    margin-bottom: 15px;
}

.vehicles-result-info strong {
    color: #fff;
}

.vehicles-result-info span {
    margin-left: 5px;
}


/* ============================================================
   VEHICLES GRID
============================================================ */

.vehicles-grid {
    display: grid;

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

    gap: 18px;
}


/* ============================================================
   VEHICLE CARD
============================================================ */

.vehicle-card {
    background: #111318;

    border: 1px solid #202329;

    border-radius: 13px;

    overflow: hidden;

    cursor: pointer;

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.vehicle-card:hover {
    transform: translateY(-3px);

    border-color: #343941;

    box-shadow:
        0 15px 40px rgba(0,0,0,.25);
}

.vehicle-card-image {
    height: 205px;

    position: relative;

    overflow: hidden;
}

.vehicle-image-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;

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

    gap: 8px;

    background:
        radial-gradient(
            circle at center,
            #272b31 0%,
            #15181d 50%,
            #0d0f12 100%
        );

    color: #70757d;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: .5px;
}

.vehicle-card-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.vehicle-placeholder-icon {
    font-size: 45px;

    opacity: .55;
}

.vehicle-category {
    position: absolute;

    top: 12px;
    left: 12px;

    background: rgba(0,0,0,.72);

    border: 1px solid rgba(255,255,255,.08);

    border-radius: 6px;

    padding: 6px 9px;

    color: #fff;

    font-size: 10px;
    font-weight: 800;
}

.vehicle-card-content {
    padding: 16px;
}

.vehicle-card-title h2 {
    font-size: 17px;

    line-height: 1.3;

    margin-bottom: 12px;
}

.vehicle-owner {
    display: flex;
    align-items: center;

    gap: 8px;

    color: #777d86;

    font-size: 11px;

    margin-bottom: 15px;
}

.vehicle-owner-avatar {
    width: 26px;
    height: 26px;

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

    flex: 0 0 26px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #444,
            #171717
        );

    color: #fff;

    font-size: 8px;
    font-weight: 800;
}

.vehicle-card-specs {
    display: flex;

    gap: 25px;

    padding: 12px 0;

    border-top: 1px solid #202329;
    border-bottom: 1px solid #202329;
}

.vehicle-spec {
    display: flex;
    align-items: center;

    gap: 8px;
}

.vehicle-spec-icon {
    font-size: 14px;
}

.vehicle-spec strong {
    display: block;

    font-size: 13px;
}

.vehicle-spec small {
    display: block;

    color: #686e77;

    font-size: 9px;

    margin-top: 2px;
}

.vehicle-card-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 6px;

    margin-top: 12px;
}

.vehicle-card-meta span {
    background: #191c21;

    border-radius: 5px;

    padding: 5px 7px;

    color: #888e97;

    font-size: 9px;
}

.vehicle-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 15px;

    color: #777d86;

    font-size: 11px;
}

.vehicle-arrow {
    color: #ff3b30;

    font-size: 16px;

    transition: transform .2s ease;
}

.vehicle-card:hover .vehicle-arrow {
    transform: translateX(4px);
}


/* ============================================================
   VEHICLE EMPTY
============================================================ */

.vehicles-empty {
    background: #111318;

    border: 1px solid #202329;

    border-radius: 13px;

    padding: 70px 30px;

    text-align: center;
}

.vehicles-empty-icon {
    font-size: 45px;

    opacity: .6;

    margin-bottom: 15px;
}

.vehicles-empty h2 {
    font-size: 20px;

    margin-bottom: 8px;
}

.vehicles-empty p {
    color: #777d86;

    font-size: 13px;

    margin-bottom: 20px;
}


/* ============================================================
   VEHICLE DETAIL
============================================================ */

.vehicle-detail-page {
    padding-bottom: 60px;
}

.vehicle-detail-back {
    margin-bottom: 20px;
}

.vehicle-detail-back a {
    color: #777d86;

    font-size: 13px;

    transition: .2s;
}

.vehicle-detail-back a:hover {
    color: #fff;
}

.vehicle-detail {
    display: grid;

    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(350px, .65fr);

    gap: 25px;

    background: #111318;

    border: 1px solid #202329;

    border-radius: 16px;

    overflow: hidden;
}


/* ============================================================
   VEHICLE GALLERY
============================================================ */

.vehicle-gallery {
    min-width: 0;
}

.vehicle-main-image {
    width: 100%;

    height: 540px;

    background: #0d0f12;

    overflow: hidden;
}

.vehicle-main-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.vehicle-main-placeholder {
    display: flex;

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

    background:
        radial-gradient(
            circle at center,
            #272b31 0%,
            #15181d 50%,
            #0d0f12 100%
        );
}

.vehicle-main-placeholder > div {
    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 10px;
}

.vehicle-main-placeholder span {
    font-size: 70px;

    opacity: .45;
}

.vehicle-main-placeholder small {
    color: #666c74;

    font-size: 11px;
}

.vehicle-thumbnails {
    display: flex;

    gap: 8px;

    padding: 12px;

    overflow-x: auto;

    scrollbar-width: thin;
}

.vehicle-thumbnail {
    width: 78px;
    height: 58px;

    flex: 0 0 78px;

    padding: 0;

    border: 2px solid transparent;

    border-radius: 7px;

    background: #181b20;

    overflow: hidden;

    cursor: pointer;

    opacity: .6;

    transition: .2s;
}

.vehicle-thumbnail:hover {
    opacity: 1;
}

.vehicle-thumbnail.active {
    border-color: #ff3b30;

    opacity: 1;
}

.vehicle-thumbnail img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* ============================================================
   VEHICLE DETAIL INFO
============================================================ */

.vehicle-detail-info {
    padding: 35px 30px;
}

.vehicle-detail-category {
    display: inline-block;

    background: #191c21;

    color: #ff3b30;

    padding: 6px 9px;

    border-radius: 6px;

    font-size: 10px;
    font-weight: 800;

    margin-bottom: 15px;
}

.vehicle-detail-info h1 {
    font-size: 32px;

    line-height: 1.15;

    margin-bottom: 20px;
}

.vehicle-detail-owner {
    display: flex;
    align-items: center;

    gap: 10px;

    padding-bottom: 22px;

    border-bottom: 1px solid #202329;
}

.vehicle-detail-owner-avatar {
    width: 38px;
    height: 38px;

    border-radius: 50%;

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

    background:
        linear-gradient(
            135deg,
            #444,
            #171717
        );

    font-size: 11px;
    font-weight: 800;
}

.vehicle-detail-owner span {
    display: block;

    color: #666c74;

    font-size: 10px;

    margin-bottom: 3px;
}

.vehicle-detail-owner strong {
    display: block;

    font-size: 12px;
}

.vehicle-detail-specs {
    display: grid;

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

    gap: 1px;

    margin: 25px 0;

    background: #202329;

    border: 1px solid #202329;

    border-radius: 10px;

    overflow: hidden;
}

.vehicle-detail-spec {
    display: flex;
    align-items: center;

    gap: 10px;

    padding: 14px;

    background: #15181d;
}

.vehicle-detail-spec > span {
    font-size: 17px;
}

.vehicle-detail-spec small {
    display: block;

    color: #666c74;

    font-size: 9px;

    margin-bottom: 3px;
}

.vehicle-detail-spec strong {
    display: block;

    font-size: 12px;
}

.vehicle-description {
    padding-top: 5px;
}

.vehicle-description h2 {
    font-size: 15px;

    margin-bottom: 10px;
}

.vehicle-description p {
    color: #858a92;

    font-size: 13px;

    line-height: 1.7;
}

.vehicle-detail-actions {
    display: flex;

    gap: 10px;

    margin-top: 25px;
}

.vehicle-detail-actions .btn {
    flex: 1;
}

.vehicle-not-found {
    background: #111318;

    border: 1px solid #202329;

    border-radius: 14px;

    padding: 80px 30px;

    text-align: center;
}

.vehicle-not-found-icon {
    font-size: 55px;

    opacity: .5;

    margin-bottom: 15px;
}

.vehicle-not-found h1 {
    font-size: 22px;

    margin-bottom: 8px;
}

.vehicle-not-found p {
    color: #777d86;

    font-size: 13px;

    margin-bottom: 20px;
}


/* ============================================================
   TABLET
   701px – 1100px
============================================================ */

@media (max-width: 1100px) and (min-width: 701px) {

    .sidebar {
        width: 230px;

        padding: 22px 15px;
    }

    .main {
        margin-left: 230px;

        width: calc(100% - 230px);
    }

    .logo {
        font-size: 23px;

        margin-bottom: 30px;
    }

    .nav-title {
        display: block;

        margin:
            18px 10px 9px;
    }

    .nav-item {
        justify-content: flex-start;

        padding:
            11px 12px;

        gap: 12px;
    }

    .nav-item .icon {
        width: 20px;

        flex: 0 0 20px;

        font-size: 17px;
    }

    .nav-label {
        display: inline;
    }

    .sidebar-legal {
        display: flex;

        flex-wrap: wrap;

        gap: 6px;

        padding:
            8px 12px 4px;
    }

    .sidebar-legal a {
        font-size: 10px;
    }

    .topbar {
        padding: 0 22px;
    }

    .search {
        width: 300px;
    }

    .content {
        padding: 25px;
    }

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

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

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

    .vehicle-detail {
        grid-template-columns: 1fr;
    }

    .vehicle-main-image {
        height: 450px;
    }

    .vehicle-detail-info {
        padding: 28px;
    }
}


/* ============================================================
   MOBILE
   ≤ 700px
============================================================ */

@media (max-width: 700px) {

    .sidebar {
        width: 270px;

        transform: translateX(-100%);

        padding: 22px 18px;

        box-shadow:
            20px 0 60px rgba(0,0,0,.45);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .main {
        margin-left: 0;

        width: 100%;
    }

    .mobile-menu-button {
        display: flex;
    }

    .topbar {
        height: 64px;

        padding:
            0 12px;

        gap: 10px;
    }

    .topbar-search {
        flex: 1;

        min-width: 0;
    }

    .search {
        width: 100%;

        min-width: 0;

        height: 38px;

        padding:
            0 12px;

        font-size: 12px;
    }

    .top-actions {
        gap: 7px;
    }

    .live-button {
        display: none;
    }

    .top-icon {
        width: 36px;
        height: 36px;
    }

    .avatar {
        width: 36px;
        height: 36px;

        flex-basis: 36px;
    }

    .content {
        padding: 18px 14px 35px;
    }

    .hero {
        min-height: 330px;

        border-radius: 14px;

        background:
            linear-gradient(
                180deg,
                rgba(0,0,0,.25),
                rgba(0,0,0,.9)
            ),
            url('https://carwerft.at/uploads/banner.png')
            center / cover;
    }

    .hero-content {
        left: 20px;
        right: 20px;

        top: auto;
        bottom: 22px;

        transform: none;

        max-width: none;
    }

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

    .hero p {
        font-size: 13px;

        line-height: 1.55;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .section {
        margin-top: 28px;
    }

    .section-header {
        align-items: flex-start;
    }

    .section-title {
        font-size: 18px;
    }

    .live-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .live-image {
        height: 190px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .create-post {
        padding: 14px;
    }

    .create-actions {
        flex-wrap: wrap;
    }

    .create-action {
        min-width: calc(50% - 4px);
    }

    .post-header {
        padding: 14px;
    }

    .post-content {
        padding:
            0 14px 14px;
    }

    .post-image {
        height: auto;

        max-height: 500px;
    }

    .post-actions {
        gap: 15px;

        padding:
            12px 14px;
    }

    .vehicles-header {
        align-items: flex-start;

        flex-direction: column;

        gap: 10px;
    }

    .vehicles-header h1 {
        font-size: 27px;
    }

    .vehicles-header p {
        font-size: 13px;
    }

    .vehicles-toolbar {
        padding: 12px;
    }

    .vehicle-search {
        flex-direction: column;

        align-items: stretch;
    }

    .vehicle-search input,
    .vehicle-search select {
        width: 100%;

        min-width: 0;
    }

    .vehicles-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .vehicle-card-image {
        height: 210px;
    }

    .vehicle-card-content {
        padding: 14px;
    }

    .vehicle-detail-page {
        padding-bottom: 40px;
    }

    .vehicle-detail {
        border-radius: 13px;
    }

    .vehicle-main-image {
        height: 300px;
    }

    .vehicle-detail-info {
        padding: 22px 18px;
    }

    .vehicle-detail-info h1 {
        font-size: 25px;
    }

    .vehicle-detail-specs {
        grid-template-columns: 1fr;

        margin:
            20px 0;
    }

    .vehicle-detail-actions {
        flex-direction: column;
    }

    .vehicle-detail-actions .btn {
        width: 100%;
    }

    .vehicle-thumbnail {
        width: 70px;
        height: 52px;

        flex-basis: 70px;
    }

    .side-card {
        padding: 15px;
    }

    .sidebar-legal {
        display: flex;
    }
}


/* ============================================================
   VERY SMALL PHONES
   ≤ 420px
============================================================ */

@media (max-width: 420px) {

    .topbar {
        padding: 0 9px;
    }

    .mobile-menu-button {
        width: 36px;
        height: 36px;

        flex-basis: 36px;
    }

    .search {
        font-size: 11px;
    }

    .top-icon {
        display: none;
    }

    .avatar {
        width: 34px;
        height: 34px;

        flex-basis: 34px;
    }

    .content {
        padding:
            14px 10px 30px;
    }

    .hero {
        min-height: 310px;
    }

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

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

    .section-title {
        font-size: 17px;
    }

    .vehicle-card-image {
        height: 190px;
    }

    .sidebar {
        width: 270px;
    }
}


/* ============================================================
   REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}