



/*::-webkit-scrollbar {
    display: none;
}*/

.egyedi_font {
    font-family: 'Montserrat', sans-serif;
}

.container-fluid {
    padding-left: 0;
    padding-right: 0;
}


.mainBody {
    background-color: #0081DF;
    min-height: clamp(600px, 80vh, 1200px);

}


body {
    background-color: #0081DF;
    font-family: 'Poppins', 'Montserrat', sans-serif;
    line-height: 1.6;
    margin: 0;
    display: flex;
    flex-direction: column;
}


/* HEADER,NAV */
.site-header {
    background-color: rgba(25, 25, 98, 0.9) !important;
    /* stabil helyfoglalás a tetején mért CLS ellen */
    min-height: clamp(80px, 12vw, 120px);
    box-sizing: border-box;
}
.site-header .row {
    /* rács középre igazítása, ne „rángassa” az egész sort */
    align-items: center;
}

.site-header img {
    margin: 0 clamp(10px, 3vw, 30px);
    max-height: 100px;
    height: auto;
    width: auto;
    aspect-ratio: 14 / 10;
}

.header{
    padding-top: clamp(8px, 2.5vw, 24px);
    padding-bottom: clamp(8px, 2.5vw, 24px);
}


@media (min-width: 720px)and (max-width: 992px) {
    .header{
        padding-top: clamp(6px, 1vw, 7px);
        padding-bottom:clamp(3px, 1vw, 5px);
    }
}

@media (max-width: 720px) {
    .header{
        padding-top: clamp(6px, 1vw, 10px);
        padding-bottom:clamp(4px, 1vw, 10px);
    }
}

#FejlecCim h2 {
    font-size: clamp(1.3rem, 2vw, 1.8rem);

}

@media only screen and (max-width: 768px) {

    #FejlecCim{
        display: none !important;
    }

    .site-header {
        text-align: center;
    }
}


.elerhetoseg {
    font-size: clamp(1rem, 2vw, 1.125rem);
}


/* ONLY: kontakt linkek ne törjenek */
.site-header a.elerhetoseg {
    white-space: nowrap;
    line-height: 1.2;
}


/*.nav-link {
    color: #ffffff !important;
    height: 45px !important;
}*/
.nav-link {
    color: #ffffff !important;
    height: 45px !important;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.125rem, 2.5vw, 20px);
    /* nav elem se törjön sorba */
    white-space: nowrap;
}

.navbar {
    /* biztos magasság a navnak */
    min-height: 45px;
}

.bg-myColor {
    background-color: #777;
    color: #ffffff;
}



/* SLIDER*/

.sliderbox{
    width:100%;
    aspect-ratio: 848 / 512;
    max-height: clamp(220px, 45vw, 360px);
    position:relative;
    overflow:hidden;
    margin-top:0;
    margin-bottom: clamp(1rem, 5vw, 3rem);
    contain: layout paint;
}

.sliderbox img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    opacity:0;
    transition:none;
}

.sliderbox:not(.sliderbox--ready) picture:first-of-type img{
    opacity:1;
}

.sliderbox.sliderbox--ready img{
    transition: opacity 600ms ease;
}

.sliderbox.sliderbox--ready img.is-active{
    opacity:1;
}

/* Slider: fix magasság + rétegezett képek + fade → nincs layout-shift */
/*  .sliderbox{
      width:100%;
      height: clamp(220px, 45vw, 360px);  
      position:relative;
      overflow:hidden;
      margin-top: 0;
      margin-bottom: clamp(1rem, 5vw, 3rem);
      contain: layout paint size;
      will-change: transform, opacity;
  }


 .sliderbox img{
      position:absolute;
      inset:0;
      width:100%;
      height:100%;
      object-fit:cover;
      display:block;
      opacity:0;
      transition: opacity 600ms ease;
  }
 
  .sliderbox img.is-active{
      opacity:1;
  }
*/

body {
    background-color: #0081DF;
    font-family: 'Poppins', 'Montserrat', sans-serif;
    line-height: 1.6;
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
}

h1 {
    font-size: clamp(1.8rem, 4vw, 36px);
}
h2 {
    font-size: clamp(1.6rem, 3.5vw, 32px);
}
h3 {
    font-size: clamp(1.4rem, 3vw, 28px);
}
h4, h5 {
    font-size: clamp(1.2rem, 2.5vw, 24px);
}


a, li, p, nav li {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.125rem, 2.5vw, 20px);
    color: #ffffff;
}

#dealer {
    display: block;
    width: 100%;
    height: auto;
    max-height: clamp(200px, 45vw, 250px);
    object-fit: cover;
    margin-top: 0;
    margin-bottom: 5%;
    border-radius: 6px;

}


/*INDEX*/

.btn-index {
    background-color: #e1e1e1 !important;
    color:rgb(25, 25, 98)!important;
}

.card{
    width: 85% !important;
    background-color: inherit;
    border: none;
}

.responsive-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 400 / 267;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

@media (min-width: 1200px) {
    .responsive-img {
        max-width: 400px;  /* kisebb max szélesség nagy képernyőn */
        max-height: 300px; /* opcionálisan max magasság is */
        object-fit: cover; /* ha fix méret, akkor érdemes a képarány miatt */
    }
}


/*AUTÓK*/

.card-xtra li,
.card-xtra a {
    color: rgb(25, 25, 98);
}

li{
    list-style-type: none;

}
.card-xtra {
    width: 98% !important;
    max-width: none;
    margin: 1rem auto;
    background-color: inherit;
    border: none;
    box-sizing: border-box;
}

.card-xtra .card-body .row {
    display: flex;
    flex-wrap: wrap;
}

.card-xtra .col-md-4,
.card-xtra .col-md-8 {
    box-sizing: border-box;
}

.card-xtra .col-12 {
    width: 100% !important;
}

@media (min-width: 768px) {
    .card-xtra .col-md-4 {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }
    .card-xtra .col-md-8 {
        flex: 0 0 66.6667%;
        max-width: 66.6667%;
    }
}

.card-xtra .berauto {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    object-fit: contain;
}

.card-xtra ul.list-group {
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.card-xtra .list-group-item {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-left: 1px solid #ddd !important;
    padding: 0.5rem 1rem;
    flex: 1 1 auto;
    min-width: 140px;
    box-sizing: border-box;
    /* font-size: clamp(1.125rem, 2.5vw, 20px);*/
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgb(25, 25, 98);
    font-weight: 400;
}


.card-xtra .ar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: clamp(1.2rem, 2.5vw, 24px);
    margin-bottom: 0.5rem;
    color: rgb(25, 25, 98);
    font-weight: 400;
}

.card-xtra .ar .btn-primary {
    margin-left: 1rem;
    white-space: nowrap;
}

.card-xtra  .autok {
    font-size: clamp(1.4rem, 3vw, 28px);
    font-weight: 400;
}



/*új horizontál*/
@media (min-width: 1200px) {
    .card-xtra ul.list-group {
        flex-direction: column;
        width: 75%;
    }
}


/* Kis képernyőn */
@media (max-width: 575px) {
    .card-xtra ul.list-group {
        flex-direction: column;
    }
    .card-xtra .list-group-item {
        min-width: 100%;
    }
    .card-xtra .ar {
        flex-direction: column;
        text-align: center;
        margin-left: 0;
        margin-top: 0.5rem;
        align-self: center;
        width: 100%;
        display: block;
    }

    .btn-primary {
        margin-left: 0;
        margin-right: 2px;
        margin-top: 0.5rem;
        align-self: center;
        width: 90%;
        display: block;
        padding-left: 0;

    }
}


.berauto {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}
.image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 6px;
}



/*ŰRLAP*/

body.no-main-padding main:not(#form) {
    padding-bottom: 0 !important;
}



/*#form {
    background-image: url("{{ asset('kepek/berauto-budapest.webp') }}");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding-top: clamp(2rem, 5vh, 4rem);
    padding-bottom: clamp(2rem, 8vh, 5rem);
    width: 100%;
    margin-bottom: 0;
}*/

@media (max-width: 575px) {
    /*#form {
        background-image: url("{{ asset('kepek/berauto-budapest-small.webp') }}");
        min-height: 480px;
        padding-bottom: 4rem;
    }*/



    .card-form {
        width: 100% !important;
        padding: 1rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        width: 100%;
    }

    .card-form button {
        width: 100%;
    }

}


/* .btn-cta {
 border: none;
 font-size: clamp(1rem, 2.5vw, 20px); 
 background-color: #FBC02D;
 color: rgb(25, 25, 98);
 padding: 0.75rem 2rem;
 border-radius: 4px;
 cursor: pointer;
 transition: background-color 0.3s ease;
}
.btn-cta:hover {
 background-color: #f9a825;
}*/




/*HÍREK*/

.card_egyedi{
    width: auto!important;
    background: white;
    border: 1px solid rgba(0,0,0,.125);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

}

@media (max-width: 576px) {
    .card_egyedi {
        min-height: 280px;

    }
}


.card_egyedi .card-title,
.card_egyedi .card-text {
    overflow-wrap: break-word;
    hyphens: auto;
}

.btn-egyedi {
    margin: 0.5rem auto 0 auto; /* középre igazítás minden irányban */
    padding: 0.5rem 1rem;
    width: 90%;
    display: block;
    background-color: rgb(25, 25, 98);
    color: #fff;
    border: none;
    border-radius: 6px;
    text-align: center;
    font-weight: 700;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
}


/*.btn-egyedi:hover {
    background-color: rgba(25, 25, 98, 0.85);
    color: #fff;
    text-decoration: none;
}*/





/*KAPCSOLAT*/

hr {
    color: #fff;
    opacity: 0.5;
}

#contact-map {
    width: 100%;
    max-width: 600px;
    height: 300px;
    display: block;
    background-color: #ccc;
    margin: 0 auto;
    border-radius: 6px;
}


.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 700;
}

.alert-success {
    background-color: #4caf50;
    color: white;
}

.alert-warning {
    background-color: #FBC02D;
    color: rgb(25, 25, 98);
}

/* Layout fixek */
@media (max-width: 768px) {
    #contact-map {
        height: 240px;
    }

    .form-control, .btn {
        font-size: 1rem;
    }
}

/* KÜLDÉS GOMB – inline style helyett 

.btn-kuldes {
    all: unset;  alap: minden stílust nulláz 
    display: block;
    padding: 0.6rem;
    border: none;
    font-size: clamp(1rem, 2.5vw, 20px);
    background-color: #FBC02D;
    color: rgb(25, 25, 98);
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
}

@media (max-width: 575px) {

   .btn-kuldes {
        width: 90%;
    }
}
.btn-kuldes:hover {
    background-color: #f9a825;
}
*/

/*FOOTER*/

.FooterColor{
    background-color: #e1e1e1;
    color: rgb(25, 25, 98);
    padding-top: clamp(20px, 4vw, 48px);
    padding-bottom: clamp(20px, 4vw, 48px);
}

.newH4Color{
    /* color: #FBC02D;*/
    color: rgb(25, 25, 98);
    font-weight: bolder;
    text-align: center;
}

.FooterColor h4,
.FooterColor h5 {
    margin-bottom: clamp(10px, 2vw, 20px);
}

.footerLinkItem{
    color: rgb(25, 25, 98);
    font-size:clamp(1.125rem, 2.5vw, 20px);

}

.skek {
    color: rgb(25, 25, 98);
}