/* ==========================================================
   HERITAGE MOTORWORKS
   sale.CSS
   VERSION 2
==========================================================*/


/* ==========================================================
   SALE HERO
   STANDARD HERO LAYOUT
==========================================================*/

.hm-sale-hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
}


/* ==========================================================
   BACKGROUND
==========================================================*/

.hm-sale-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hm-sale-hero__bg img {
    width: 100%;
    height: 100%;
    display: block;

    object-fit: cover;
    object-position: 70% center;
}


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

.hm-sale-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;

    background: linear-gradient(
        90deg,
        rgba(0,0,0,.82) 0%,
        rgba(0,0,0,.62) 32%,
        rgba(0,0,0,.30) 58%,
        rgba(0,0,0,.08) 80%,
        rgba(0,0,0,0) 100%
    );
}


/* ==========================================================
   INNER
==========================================================*/

.hm-sale-hero__inner {
    position: relative;
    z-index: 3;

    width: min(1280px, calc(100% - 96px));
    min-height: 680px;

    margin: 0 auto;

    padding-top: 140px;
    padding-bottom: 64px;

    box-sizing: border-box;

    display: flex;
    align-items: flex-end;
}


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

.hm-sale-hero__content {
    width: min(760px, 100%);
    color: #fff;
}


/* ==========================================================
   SUBTITLE
==========================================================*/

.hm-sale-hero__subtitle {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    margin-bottom: 14px;

    color: #18A891;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
    line-height: 1;

    text-transform: uppercase;
}

.hm-sale-hero__subtitle::before {
    content: "";

    width: 28px;
    height: 1px;
    flex: 0 0 28px;

    background: #18A891;
}


/* ==========================================================
   HEADING
==========================================================*/

.hm-sale-hero__content h1 {
    max-width: 760px;

    margin: 0;

    color: #fff;

    font-size: clamp(48px, 5.4vw, 76px);
    font-weight: 600;
    line-height: .94;
    letter-spacing: -.055em;
}


/* ==========================================================
   TEXT
==========================================================*/

.hm-sale-hero__content p {
    max-width: 650px;

    margin: 22px 0 0;

    color: rgba(255,255,255,.78);

    font-size: 15px;
    line-height: 1.7;
}


/* ==========================================================
   TABLET
   768px – 1024px
==========================================================*/

@media (min-width: 768px) and (max-width: 1024px) {

    .hm-sale-hero {
        min-height: 600px;
    }

    .hm-sale-hero__inner {
        width: calc(100% - 64px);
        min-height: 600px;

        padding-top: 110px;
        padding-bottom: 48px;
    }

    .hm-sale-hero__content {
        width: min(680px, 100%);
    }

    .hm-sale-hero__subtitle {
        margin-bottom: 14px;

        font-size: 10px;
        letter-spacing: .18em;
    }

    .hm-sale-hero__subtitle::before {
        width: 28px;
        flex-basis: 28px;
    }

    .hm-sale-hero__content h1 {
        max-width: 680px;

        font-size: clamp(42px, 5.8vw, 60px);
        line-height: .94;
        letter-spacing: -.05em;
    }

    .hm-sale-hero__content p {
        max-width: 600px;

        margin-top: 20px;

        font-size: 14px;
        line-height: 1.65;
    }
}


/* ==========================================================
   MOBILE
   bis 767px
==========================================================*/

@media (max-width: 767px) {

    .hm-sale-hero {
        min-height: 450px;
    }

    .hm-sale-hero__inner {
        width: calc(100% - 28px);
        min-height: 450px;

        padding-top: 110px;
        padding-bottom: 28px;
    }

    .hm-sale-hero__content {
        width: 100%;
    }

    .hm-sale-hero__subtitle {
        gap: 8px;

        margin-bottom: 11px;

        font-size: 8px;
        letter-spacing: .16em;
    }

    .hm-sale-hero__subtitle::before {
        width: 22px;
        flex-basis: 22px;
    }

    .hm-sale-hero__content h1 {
        max-width: 100%;

        font-size: clamp(29px, 8.2vw, 39px);
        line-height: .95;
        letter-spacing: -.05em;
    }

    .hm-sale-hero__content p {
        max-width: 100%;

        margin: 18px 0 0;

        font-size: 13px;
        line-height: 1.6;
    }

    .hm-sale-hero__buttons {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        flex-wrap: nowrap;
        margin-top: 12px;
    }

    .hm-btn {
        min-width: 0;
        width: auto;
        padding: 10px 16px;
        font-size: 13px;
        white-space: nowrap;
    }

    .hm-sale-hero__bg img {
        object-position: 60% center;
    }
}


/* ==========================================================
   SMALL PHONES
   bis 420px
==========================================================*/

@media (max-width: 420px) {

    .hm-sale-hero {
        min-height: 416px;
    }

    .hm-sale-hero__inner {
        min-height: 416px;
        padding-bottom: 24px;
    }
}


/* ==========================================================
   SALE – AKTUELLE FAHRZEUGE
   LAYOUT IDENTISCH ZUR HOME-SEITE
========================================================== */

.hm-sale-vehicles {
    width: 100%;
    margin-top: 70px;
    margin-bottom: 80px;
    padding: 0 20px;
    background: #ffffff;
}

.hm-sale-vehicles__container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}


/* ----------------------------------------------------------
   Überschrift
---------------------------------------------------------- */

.hm-sale-vehicles__header {
    text-align: center;
    margin-bottom: 32px;
}

.hm-sale-vehicles__eyebrow {
    display: block;
    margin-bottom: 12px;

    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    line-height: 1.4;

    color: #18A891;
    text-transform: uppercase;
}

.hm-sale-vehicles__header h2 {
    margin: 0;

    font-size: 36px;
    line-height: 1.15;
    font-weight: 600;

    color: #111111;
}

.hm-sale-vehicles__header p {
    max-width: 650px;
    margin: 22px auto 0;

    color: #555555;
    font-size: 17px;
    line-height: 1.7;
}


/* ----------------------------------------------------------
   Fahrzeug-Grid
---------------------------------------------------------- */

.hm-sale-vehicles__grid {
    display: grid;
    gap: 24px;

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


/* 1 Fahrzeug */

.hm-sale-vehicles__grid--1 {
    grid-template-columns: minmax(0, 520px);
}


/* 2 Fahrzeuge */

.hm-sale-vehicles__grid--2 {
    grid-template-columns: repeat(2, minmax(0, 380px));
}


/* 3 Fahrzeuge */

.hm-sale-vehicles__grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}


/* 4 Fahrzeuge */

.hm-sale-vehicles__grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}


/* ----------------------------------------------------------
   Fahrzeugkarte
   Die Darstellung wird über die bestehende Home-Komponente
   aus assets/css/home.css übernommen.
---------------------------------------------------------- */

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

@media (max-width:1000px){

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

    .hm-sale-vehicles__grid--1 {
        grid-template-columns:minmax(0,520px);
    }

    .hm-sale-vehicles__grid--2,
    .hm-sale-vehicles__grid--3,
    .hm-sale-vehicles__grid--4 {
        grid-template-columns:repeat(2, minmax(0,1fr));
    }

}


/* ==========================================================
   SALE – VERKAUF IM KUNDENAUFTRAG
========================================================== */

.hm-sale-service {

	width: 100%;

	padding: 115px 20px;

	background: #111111;
}

.hm-sale-service__container {

	max-width: 900px;

	margin: 0 auto;

	text-align: center;
}

.hm-sale-service__eyebrow {

	display: block;

	margin-bottom: 12px;

	color: #18A891;

	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;

	letter-spacing: 3px;

	text-transform: uppercase;
}

.hm-sale-service__content h2 {

	margin: 0;

	color: #ffffff;

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

	line-height: 1.15;
}

.hm-sale-service__content p {

	max-width: 720px;

	margin: 24px auto 0;

	color: rgba(255, 255, 255, .76);

	font-size: 17px;

	line-height: 1.75;
}

.hm-sale-service__content p + p {

	margin-top: 18px;
}


/* ----------------------------------------------------------
   Button
---------------------------------------------------------- */

.hm-sale-service__button {

	display: inline-flex;

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

	margin-top: 32px;

	padding: 13px 26px;

	border: 1px solid #18A891;
	border-radius: 30px;

	background: #18A891;

	color: #ffffff;

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

	line-height: 1;

	letter-spacing: 1.5px;

	text-decoration: none;

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

.hm-sale-service__button:hover {

	background: transparent;

	border-color: #18A891;

	color: #18A891;
}


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

@media (max-width: 768px) {

	.hm-sale-service {

		padding: 80px 15px;
	}

	.hm-sale-service__eyebrow {

		margin-bottom: 10px;

		font-size: 12px;

		letter-spacing: 3px;
	}

	.hm-sale-service__content h2 {

		font-size: 30px;

		line-height: 1.15;
	}

	.hm-sale-service__content p {

		margin-top: 18px;

		font-size: 15px;

		line-height: 1.7;
	}

	.hm-sale-service__content p + p {

		margin-top: 16px;
	}

	.hm-sale-service__button {

		margin-top: 28px;

		width: 100%;
	}

}
/* ==========================================================
   SALE – FAHRZEUGSUCHE
========================================================== */

.hm-sale-search {

	width: 100%;

	padding: 120px 20px;

	background: #ffffff;
}

.hm-sale-search__container {

	max-width: 1100px;

	margin: 0 auto;
}


/* ----------------------------------------------------------
   Überschrift
---------------------------------------------------------- */

.hm-sale-search__heading {

	max-width: 850px;

	margin: 0 auto 65px;

	text-align: center;
}

.hm-sale-search__eyebrow {

	display: block;

	margin-bottom: 12px;

	color: #18A891;

	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;

	letter-spacing: 3px;

	text-transform: uppercase;
}

.hm-sale-search__heading h2 {

	margin: 0;

	color: #111111;

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

	line-height: 1.15;
}

.hm-sale-search__heading p {

	max-width: 720px;

	margin: 24px auto 0;

	color: #555555;

	font-size: 17px;

	line-height: 1.7;
}


/* ----------------------------------------------------------
   Button
---------------------------------------------------------- */

.hm-sale-search__action {

	display: flex;

	justify-content: center;

	margin-top: 42px;
}

.hm-sale-search__button {

	display: inline-flex;

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

	padding: 13px 26px;

	border: 1px solid #18A891;
	border-radius: 30px;

	background: #18A891;

	color: #ffffff;

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

	line-height: 1;

	letter-spacing: 1.5px;

	text-decoration: none;

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

.hm-sale-search__button:hover {

	background: #111111;

	border-color: #111111;

	color: #ffffff;
}


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

@media (max-width: 768px) {

	.hm-sale-search {

		padding: 75px 15px;
	}

	.hm-sale-search__heading {

		margin-bottom: 38px;
	}

	.hm-sale-search__eyebrow {

		margin-bottom: 10px;

		font-size: 12px;

		letter-spacing: 3px;
	}

	.hm-sale-search__heading h2 {

		font-size: 30px;

		line-height: 1.15;
	}

	.hm-sale-search__heading p {

		margin-top: 18px;

		font-size: 15px;

		line-height: 1.7;
	}


	/* ------------------------------------------------------
	   Button
	------------------------------------------------------ */

	.hm-sale-search__action {

		margin-top: 32px;
	}

	.hm-sale-search__button {

		width: 100%;
	}

}


/* ==========================================================
   MOBILE - VEHICLES
========================================================== */

@media (max-width:768px){

    .hm-sale-vehicles {
        margin-top: 60px;
        margin-bottom: 60px;
        padding: 0 15px;
    }

    .hm-sale-vehicles__container {
        padding: 0;
    }


    /* Überschrift */

    .hm-sale-vehicles__header {
        margin-bottom: 26px;
    }

    .hm-sale-vehicles__eyebrow {
        font-size: 11px;
        letter-spacing: 2.5px;
    }

    .hm-sale-vehicles__header h2 {
        font-size: 28px;
        line-height: 1.15;
    }


    /* Alle Varianten auf Mobile einspaltig */

    .hm-sale-vehicles__grid,
    .hm-sale-vehicles__grid--1,
    .hm-sale-vehicles__grid--2,
    .hm-sale-vehicles__grid--3,
    .hm-sale-vehicles__grid--4 {

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

        gap:16px;
    }

 /* Karte */

    .hm-sale-vehicle {
        width:100%;
        max-width:520px;

        justify-self:center;

        border-radius:14px;
    }


    /* Bild */

    .hm-sale-vehicle__image {
        aspect-ratio:16 / 10;
    }


    /* Titel */

    .hm-sale-vehicle__content {
        padding:15px 18px 17px;
    }

    .hm-sale-vehicle__content h3 {
        font-size:18px;
    }


    /* Touch-Geräte */

    .hm-sale-vehicle:hover {
        transform:none;
        box-shadow:none;
    }

    .hm-sale-vehicle:hover .hm-sale-vehicle__image img {
        transform:none;
    }

    .hm-sale-vehicle:hover .hm-sale-vehicle__content h3 {
        color:#ffffff;
    }


    /* Fahrzeugdaten */
    .hm-sale-vehicle__facts {
        margin-top:7px;

        font-size:12px;

        gap:6px 16px;
    }

}
