body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #f4f7fa;

}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
    box-sizing: border-box;
}

.container h2{
    margin-bottom: 50px;
}

.header {
    position: fixed;
    width: 100%;
    padding: 18px 0;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);

    box-shadow: 0 5px 25px rgba(0,0,0,0.06);

    z-index: 1100;
    transition: all 0.3s ease;
}


.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #111;
    text-decoration: none;
}

.logo span {
    color: #b30000;
}

/* Burger */

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.burger span {
    width: 25px;
    height: 3px;
    background: #222;
    display: block;
}




nav {
    display: flex;
    align-items: center;
}

nav a {
    margin-left: 35px;
    text-decoration: none;
    color: #222;
    font-weight: 500;
    position: relative;
    transition: 0.3s;
}

nav a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 2px;
    background: #b30000;
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

nav a:last-child {
    background: #b30000;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
}

nav a:last-child:hover {
    background: #8f0000;
}
.hero {
    position: relative; /* wichtig, damit Header z-index greift */
    z-index: 1;         /* Hero liegt unter Header */
    height: 60vh;
    background: #555555;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 36px;
    font-weight: 600;
}

.homepage .hero {
    height: 80vh;
    background: url('../images/WZyachten_bild.jpeg') center/cover no-repeat;
    font-size: 42px;
    text-align: center;
}

.hidea-page .hero {
    height: 75vh;
    background: url('../images/Hidea_Motors.jpg') center/cover no-repeat;
}

.ranieri-page .hero {
    height: 60vh;
    background: url('../images/ranieri.jpg') center/cover no-repeat;
}




.section {
    padding: 120px 0;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* immer 2 nebeneinander */
    gap: 40px;
}
@media (max-width: 768px) {
    .brand-grid {
        grid-template-columns: 1fr; /* untereinander auf Mobil */
    }
}


.brand-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.brand-card:hover {
    transform: translateY(-10px);
}

.brand-card img {
    width: 100%;
    height: 220px;   /* feste Höhe */
    object-fit: cover; /* schneidet sauber zu */
}


.brand-content {
    padding: 30px;
}

.btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 25px;
    background: #b30000;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info {
    flex: 1 1 400px;
}

.contact-info h2 {
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-map {
    flex: 1 1 400px;
    border-radius: 10px;
    overflow: hidden;
}
/* Hidea */
.motor-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Spalten */
    gap: 30px;
}

@media (max-width: 1200px) {
    .motor-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 Spalten */
    }
}

@media (max-width: 900px) {
    .motor-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 Spalten */
    }
}

@media (max-width: 600px) {
    .motor-grid {
        grid-template-columns: 1fr; /* 1 Spalte */
    }
}

/* Motor Card */
.motor-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.motor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.motor-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Content */
.motor-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.motor-content h3 {
    margin-top: auto;
    margin-bottom: 10px;
    font-size: 22px;
}

.motor-content p {
    margin-bottom: 8px;
    color: #555;
}


.motor-content .btn {
    margin-top: auto; /* Schiebt den Button immer nach unten */
    display: inline-block;
    padding: 10px 20px;
    background: #b30000;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
}

/* News */
.news-section {
    background: #ffffff;
    padding: 60px 0;
}

.news-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: #b30000;
}

.news-item {
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
}

.news-date {
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
}

.news-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.news-content {
    font-size: 16px;
    color: #333;
}
/* ===============================
   HOMEPAGE 2-SPALTEN LAYOUT
   =============================== */

.homepage .main-layout {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Links größer */
    gap: 50px;
    margin-top: 60px;
}

/* Linke Seite */
.homepage .content-left {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Hidea + Ranieri Boxen */
.homepage .brands {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.homepage .brand-box {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.homepage .brand-box:hover {
    transform: translateY(-8px);
}

/* Rechte Sidebar */
.homepage .sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.homepage .sidebar-box {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.homepage .sidebar-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #b30000;
}

/* Responsive */
@media (max-width: 1000px) {

    .homepage .main-layout {
        grid-template-columns: 1fr; /* Sidebar unter Content */
    }

    .homepage .brands {
        grid-template-columns: 1fr;
    }

}

/* ===============================
   WZ NEWS H2 TICKER
   =============================== */

.news-heading-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin-bottom: 30px;
}

.news-heading {
    display: inline-block;
    white-space: nowrap;
    animation: newsSlide 8s linear infinite;
}

/* Animation nur für das H2 */
@keyframes newsSlide {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}


/* Mobile */

@media (max-width: 900px) {

    .burger {
        display: flex;
    }

    nav {
        position: absolute;
        top: 70px;
        right: 0;
        background: white;
        width: 100%;
        flex-direction: column;
        align-items: center;
        display: none;
        padding: 20px 0;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }

    nav a {
        margin: 15px 0;
        font-size: 18px;
    }

    nav.active {
        display: flex;
    }
}