* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

:root {
    --primary: #8dbd00;
    --primary-dark: #3b4d24;
    --secondary: #011627;
    --text-main: #333333;
    --text-muted: #666666;
    --text-light: #999999;
    --white: #ffffff;
    --bg-light: #f8f8f8;
    --border: #e8e8e8;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --radius: 30px;
    --font-heading: 'Rubik', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

/* Utilities */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 80px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #7aa500;
    transform: translateY(-2px);
}

.btn-dark {
    background-color: var(--primary-dark);
    color: var(--white);
}

.btn-dark:hover {
    background-color: #2e3c1c;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--secondary);
}

/* Sections */
section {
    padding: 100px 0;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary);
    padding: 10px 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-dark);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
}

/* Header */
header {
    position: absolute;
    top: 40px;
    width: 100%;
    z-index: 10;
    background-color: transparent;
}

.header-nav {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    gap: 4px;
    font-size: 28px;
    font-weight: 900;
    font-family: var(--font-heading);
}

.logo-white {
    color: var(--white);
}

.logo-green {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    font-family: var(--font-heading);
}

/* Hero */
.hero {
    position: relative;
    height: 700px;
    /* Erhöht, damit die Info-Box nicht abgeschnitten wird */
    padding-top: 190px;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    /* Slider zoom jetzt hier begrenzt */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 8s ease;
    transform: scale(1);
}

.slide.active {
    opacity: 1;
    transform: scale(1.1);
    /* Subtle Ken Burns effect */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.1));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 650px;
    /* Begrenzt die Breite, um Kollisionen zu vermeiden */
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    /* Erhöht die Lesbarkeit auf Slider-Bildern */
}

.hero-content h1 {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.1;
    font-family: var(--font-heading);
    margin-bottom: 8px;
}

.hero-marker {
    display: block;
    height: 12px;
    width: 250px;
    background-color: var(--primary);
    margin-bottom: 24px;
}

.hero p {
    font-size: 20px;
    font-family: var(--font-heading);
}

.hero-search-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    width: fit-content;
    margin-top: 32px;
    position: relative;
    z-index: 5;
}

.hero-search-card .search-form-wrapper {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    align-items: center !important;
    width: auto !important;
    min-width: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

.hero-search-card .search-block {
    display: flex !important;
    width: auto !important;
    min-width: 220px !important;
    flex: 1 !important;
}

.hero-search-card .type-block {
    min-width: 110px !important;
    flex: 0 0 auto !important;
}

.hero-search-card .type-btn {
    flex: 0 0 50px !important;
    width: 50px !important;
}

.hero-search-card .btn-search-new {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    padding: 0 24px !important;
    height: 52px !important;
    margin-top: 0 !important;
}

.info-box {
    position: absolute;
    right: 80px;
    top: 500px;
    width: 580px;
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    z-index: 5;
    margin-bottom: -100px;
}

.info-box h3 {
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--secondary);
    margin-bottom: 24px;
}

.info-row {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.info-col:first-child {
    flex: 0 0 170px;
}

.info-col:last-child {
    flex: 1;
}

.info-col h4 {
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--secondary);
    margin-bottom: 4px;
}

.info-col p {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

/* Fleet Section */
.fleet {
    padding-top: 100px;
    padding-bottom: 100px;
}

.fleet-subtitle {
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.fleet-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 40px;
}

.filter-hint {
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.filter-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    background: var(--white);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.search-form-wrapper {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    align-items: center;
    margin-bottom: 40px;
    width: 50%;
    min-width: 500px;
    padding: 10px 0 40px 0;
}

.search-block {
    position: relative;
    border: 1.5px solid var(--secondary);
    border-radius: 8px;
    background-color: #fff;
    height: 52px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    padding: 0 12px;
}

.type-block {
    padding: 0 12px;
}

.block-label {
    position: absolute;
    top: -9px;
    left: 12px;
    background-color: #fff;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    color: var(--secondary);
}

.date-block .block-label {
    color: var(--secondary);
}

.type-block .block-label {
    color: var(--secondary);
}

.block-content {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.invisible-input {
    border: none;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--secondary);
    width: 100%;
    background: transparent;
    cursor: pointer;
}

/* Specific styling for the native date input to match the mockup */
.invisible-input::-webkit-datetime-edit {
    color: transparent;
}

.invisible-input:focus::-webkit-datetime-edit,
.invisible-input.has-value::-webkit-datetime-edit {
    color: var(--secondary);
}

.fake-placeholder {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    color: #64748b;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    pointer-events: none;
}

.type-btn {
    padding: 0;
    border: none;
    border-radius: 6px;
    background-color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--secondary);
    transition: all 0.2s;
    height: 40px;
    flex: 1;
    justify-content: center;
}

.type-btn:hover {
    background-color: #e8f5d0;
}

.type-btn.active {
    background-color: #e8f5d0;
}

.btn-search-new {
    background-color: var(--primary);
    color: #fff;
    height: 52px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0 20px;
}

.btn-search-new:hover {
    background-color: var(--primary-dark);
}

.btn-search {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    height: 53px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-search:hover {
    background-color: #7aa300;
}

.category-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 40px;
}

.fleet-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: auto;
    /* Erlaubt Wachstum bei viel Inhalt */
    min-height: 740px;
    /* Behält die einheitliche Optik bei */
    transition: all 0.3s ease;
}

.card-img {
    height: 320px;
    position: relative;
    overflow: hidden;
    background: var(--white);
    border-radius: 30px 30px 0 0;
}

/* Pet Tag styling */
.pet-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.pet-tag .card-icon {
    font-size: 12px;
}

.gallery-main {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.5s ease-in-out;
}

.gallery-main.is-floorplan {
    background-size: contain;
    transform: rotate(180deg) scale(1.3);
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none;
    color: #011627;
    font-size: 18px;
    opacity: 0;
    /* Hidden by default */
}

.card:hover .gallery-arrow {
    opacity: 1;
}

.gallery-arrow:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.arrow-left {
    left: 12px;
}

.arrow-right {
    right: 12px;
}

.gallery-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #ffffff;
    width: 20px;
    border-radius: 4px;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.card:hover .card-img {
    transform: scale(1.02);
}

.card-content {
    padding: 24px 24px 32px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 20px;
}

.card-icon {
    display: inline-block;
    filter: grayscale(100%);
    opacity: 0.35;
    margin-right: 8px;
    width: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.card:hover .card-icon {
    opacity: 0.7;
    filter: grayscale(100%);
}

.card-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-tag {
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
}

.card-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary);
    font-family: var(--font-heading);
}

.card-core {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    white-space: pre-line;
    line-height: 1.6;
}

.card-equip {
    font-size: 12px;
    color: var(--text-muted);
    white-space: pre-line;
    line-height: 1.6;
}

.card-footer {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    margin-top: auto;
    /* Push footer to bottom */
}

.card-info-link {
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 8px;
}

.card-price-btn {
    width: 100%;
    background-color: var(--primary);
    color: var(--white);
    padding: 14px 0;
    border-radius: 30px;
    text-align: center;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
}

.card-fee-note {
    font-size: 10px;
    color: var(--text-light);
    text-align: center;
}

.card-options {
    font-size: 11px;
    color: var(--text-muted);
    white-space: pre-line;
    line-height: 1.5;
}

/* CTA Card */
.card-cta {
    background-color: var(--primary);
    border: none;
}

.card-cta .card-content {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 24px 32px 32px 32px;
    text-align: center;
    align-items: center;
}

.card-cta-subtitle {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-dark);
}

.card-cta-title {
    font-size: 32px;
    font-weight: 900;
    line-height: 1.2;
    font-family: var(--font-heading);
}

.card-cta-text {
    font-size: 18px;
    color: var(--white);
}

.btn-cta-card {
    background-color: var(--primary-dark);
    color: var(--white);
    width: 100%;
    margin-top: auto;
}

/* Benefits */
.benefits {
    display: flex;
    align-items: center;
    gap: 100px;
}

.benefits-img {
    width: 600px;
    height: 500px;
    border-radius: 40px;
    background-image: url('https://images.unsplash.com/photo-1623072932867-80d024272cb8?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w4NDM0ODN8MHwxfHJhbmRvbXx8fHx8fHx8fDE3NzI1NTU5Mjd8&ixlib=rb-4.1.0&q=80&w=1080');
    background-size: cover;
    background-position: center;
}

.benefits-content h4 {
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 32px;
}

.benefits-content h2 {
    font-size: 48px;
    font-weight: 800;
    color: var(--secondary);
    font-family: var(--font-heading);
    margin-bottom: 32px;
}

.benefits-content p {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Ready CTA */
.ready-cta {
    background-color: var(--primary);
    text-align: center;
    padding: 120px 0;
}

.ready-cta h2 {
    font-size: 48px;
    font-weight: 900;
    color: var(--primary-dark);
    font-family: var(--font-heading);
    margin-bottom: 32px;
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    padding: 100px 0;
    color: var(--white);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-col h5 {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.footer-col a {
    color: var(--white);
    font-size: 14px;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 1200px) {
    .fleet-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .container {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .fleet-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        height: auto;
        padding-bottom: 350px;
    }

    .info-box {
        position: relative;
        right: 0;
        top: 40px;
        width: 100%;
    }

    .benefits {
        flex-direction: column;
        gap: 40px;
    }

    .benefits-img {
        width: 100%;
    }
}