/* ==========================================================================
   KK Kalsdorf Caravanservice – Stylesheet
   ========================================================================== */

:root {
    --navy: #12233f;
    --navy-dark: #0c1830;
    --navy-light: #1c355c;
    --red: #c8102e;
    --red-dark: #a10d25;
    --grey-100: #f4f6f9;
    --grey-200: #e6eaf0;
    --grey-400: #9aa5b5;
    --grey-600: #5a6577;
    --white: #ffffff;
    --text: #1a2233;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 10px 30px rgba(18, 35, 63, 0.12);
    --shadow-lg: 0 20px 50px rgba(18, 35, 63, 0.18);
    --max: 1180px;
    --font-head: "Montserrat", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;
    --transition: 0.25s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform var(--transition), background var(--transition), color var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

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

.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn--ghost:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(18, 35, 63, 0.95);
    backdrop-filter: blur(8px);
    transition: box-shadow var(--transition), background var(--transition);
}
.header.scrolled { box-shadow: var(--shadow); background: rgba(12, 24, 48, 0.97); }

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.logo { display: flex; align-items: center; color: var(--white); }
.logo__img {
    height: 46px;
    width: auto;
    display: block;
    /* Weißer JPEG-Hintergrund wird per invert + screen weggeblendet,
       sodass das Logo transparent/hell auf dem dunklen Header sitzt. */
    filter: invert(1) grayscale(1) brightness(1.8);
    mix-blend-mode: screen;
}

.nav__list { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav__link {
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}
.nav__link:hover, .nav__link.active { color: var(--white); background: rgba(255,255,255,0.08); }
.nav__link--btn { background: var(--red); color: var(--white); }
.nav__link--btn:hover { background: var(--red-dark); }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 26px; height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    padding-top: 76px;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
    color: var(--white);
    overflow: hidden;
}
.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(200, 16, 46, 0.25), transparent 40%),
        radial-gradient(circle at 10% 90%, rgba(28, 53, 92, 0.6), transparent 45%);
    pointer-events: none;
    z-index: 1;
}

/* Logo als dezentes Wasserzeichen hinter dem Hero-Inhalt.
   screen-Blendmodus lässt den weißen Logo-Hintergrund im dunklen Hero verschwinden,
   sodass nur die Konturen dezent durchscheinen. */
.hero__inner { position: relative; z-index: 2; padding: 60px 24px; }
.hero__content { max-width: 720px; }

.hero__badge {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 22px;
}
.hero__title {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    line-height: 1.08;
    margin-bottom: 20px;
}
.hero__title span { color: #6ea8ff; }
.hero__text {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    max-width: 600px;
    margin-bottom: 32px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }
.hero__features { display: flex; flex-wrap: wrap; gap: 24px; list-style: none; }
.hero__features li { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.hero__features .ico {
    display: grid; place-items: center;
    width: 24px; height: 24px;
    background: var(--red);
    border-radius: 50%;
    font-size: 0.8rem;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 96px 0; }
.section--alt { background: var(--grey-100); }

.section__head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section__eyebrow {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 14px;
}
.section__title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(1.7rem, 3.5vw, 2.6rem);
    color: var(--navy);
    margin-bottom: 16px;
}
.section__lead { color: var(--grey-600); font-size: 1.08rem; }
.section__lead--muted { font-size: 0.98rem; margin-top: 12px; }

/* ==========================================================================
   Cards
   ========================================================================== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}
.card {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__icon {
    width: 64px; height: 64px;
    display: grid; place-items: center;
    font-size: 1.8rem;
    background: var(--grey-100);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    color: var(--navy);
    transition: background var(--transition), color var(--transition);
}
.card:hover .card__icon {
    background: var(--navy);
    color: var(--white);
}
.card__title { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--navy); margin-bottom: 10px; }
.card__text { color: var(--grey-600); font-size: 0.98rem; }

/* ==========================================================================
   Klima block
   ========================================================================== */
.klima {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.klima__media img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    object-fit: cover;
}
/* Produktbild (GREE Klimaanlage) mit schwarzem Hintergrund:
   auf dunkler Fläche, vollständig sichtbar statt beschnitten. */
.klima__media--product {
    background: radial-gradient(circle at 50% 40%, #1c355c 0%, #0c1830 70%);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.klima__media--product img {
    box-shadow: none;
    object-fit: contain;
    max-height: 420px;
    width: auto;
    max-width: 100%;
    mix-blend-mode: screen;
}
.klima__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.check-list { list-style: none; margin: 24px 0 32px; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 34px; font-weight: 500; }
.check-list li::before {
    content: "✓";
    position: absolute; left: 0; top: 0;
    width: 22px; height: 22px;
    display: grid; place-items: center;
    background: var(--red); color: var(--white);
    border-radius: 50%; font-size: 0.75rem; font-weight: 700;
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.gallery__item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 3;
    background: var(--grey-200);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item--placeholder { display: grid; place-items: center; }
.gallery__placeholder { text-align: center; color: var(--grey-400); }
.gallery__placeholder span { font-size: 2.5rem; display: block; margin-bottom: 8px; }

/* ==========================================================================
   About
   ========================================================================== */
.about__content { max-width: 760px; margin: 0 auto; text-align: center; }
.about__content p { color: var(--grey-600); font-size: 1.08rem; margin-bottom: 20px; }
.about__content p:last-of-type { margin-bottom: 40px; }
.about__content a { color: var(--red); font-weight: 600; }
.about__content a:hover { text-decoration: underline; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 16px;
    box-shadow: var(--shadow);
}
.stat__num { display: block; font-family: var(--font-head); font-weight: 900; font-size: 1.5rem; color: var(--red); margin-bottom: 4px; }
.stat__label { color: var(--grey-600); font-size: 0.9rem; }

/* ==========================================================================
   Contact + Form
   ========================================================================== */
.contact {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: start;
}
.contact__form {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--navy);
    margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 15px;
    font-family: var(--font-body);
    font-size: 0.98rem;
    color: var(--text);
    background: var(--grey-100);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), background var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background: var(--white);
    border-color: var(--navy-light);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-group input.invalid,
.form-group textarea.invalid,
.form-group select.invalid { border-color: var(--red); background: #fff5f6; }

.form-error {
    display: block;
    color: var(--red);
    font-size: 0.82rem;
    margin-top: 6px;
    min-height: 1em;
}

.form-group--check { margin-bottom: 24px; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 0.9rem; color: var(--grey-600); }
.check input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--red); }

.form-note { margin-top: 16px; font-weight: 600; min-height: 1.2em; }
.form-note.success { color: #1f9d55; }
.form-note.error { color: var(--red); }

/* Honeypot – für Menschen unsichtbar */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px;
    opacity: 0;
}

.contact__info {
    background: var(--navy);
    color: var(--white);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow);
}
.contact__info h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; margin-bottom: 22px; }
.info-list { list-style: none; display: grid; gap: 16px; margin-bottom: 26px; }
.info-list li { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.9); }
.info-list .ico { font-size: 1.1rem; }
.contact__badge {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 8px 18px;
    border-radius: 50px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--navy-dark); color: rgba(255,255,255,0.8); padding: 48px 0 32px; }
.footer__inner { display: grid; gap: 28px; text-align: center; }
.footer__brand { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer__logo {
    height: 68px;
    width: auto;
    /* Weißer JPEG-Hintergrund wird per invert + screen weggeblendet,
       passend zum Header-Logo auf dunklem Grund. */
    filter: invert(1) grayscale(1) brightness(1.8);
    mix-blend-mode: screen;
}
.footer__brand p { font-size: 0.85rem; color: var(--grey-400); }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.footer__nav a { color: rgba(255,255,255,0.75); font-size: 0.92rem; transition: color var(--transition); }
.footer__nav a:hover { color: var(--white); }
.footer__copy { font-size: 0.85rem; color: var(--grey-400); }

/* ==========================================================================
   Reveal animation
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
    .klima { grid-template-columns: 1fr; }
    .contact { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 76px; right: 0;
        width: min(300px, 80%);
        height: calc(100vh - 76px);
        background: var(--navy);
        padding: 24px;
        transform: translateX(100%);
        transition: transform var(--transition);
        box-shadow: var(--shadow-lg);
    }
    .nav.open { transform: translateX(0); }
    .nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
    .nav__link { display: block; }
    .nav-toggle { display: flex; }

    .section { padding: 64px 0; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .stats { grid-template-columns: 1fr; }
    .contact__form, .contact__info { padding: 26px; }
}

@media (max-width: 480px) {
    .hero__actions { flex-direction: column; }
    .hero__actions .btn { width: 100%; text-align: center; }
}

/* ==========================================================================
   Legal pages (Impressum / Datenschutz)
   ========================================================================== */
.legal { padding: 132px 0 96px; background: var(--grey-100); min-height: 70vh; }
.legal__inner { max-width: 820px; margin: 0 auto; }
.legal__back {
    display: inline-block;
    font-weight: 600;
    color: var(--red);
    margin-bottom: 24px;
    transition: color var(--transition);
}
.legal__back:hover { color: var(--red-dark); }
.legal__title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--navy);
    margin-bottom: 36px;
}
.legal__block {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius);
    padding: 28px 30px;
    margin-bottom: 20px;
}
.legal__block h2 {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--navy);
    margin-bottom: 14px;
}
.legal__block p { color: var(--grey-600); margin-bottom: 14px; }
.legal__block p:last-child { margin-bottom: 0; }
.legal__block a { color: var(--red); font-weight: 600; }
.legal__block a:hover { text-decoration: underline; }
.legal__list { list-style: disc; padding-left: 22px; color: var(--grey-600); display: grid; gap: 8px; margin-bottom: 14px; }
.legal__note {
    background: var(--grey-100);
    border-left: 3px solid var(--red);
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.92rem;
}
.legal__meta { text-align: center; color: var(--grey-400); font-size: 0.88rem; margin-top: 28px; }
.contact__brand-note { color: rgba(255,255,255,0.7); font-size: 0.88rem; margin-top: -14px; margin-bottom: 18px; }

/* ==========================================================================
   Technische Daten (Specs)
   ========================================================================== */
.specs { margin-top: 64px; }
.specs__head { text-align: center; margin-bottom: 28px; }
.specs__title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    color: var(--navy);
    margin-bottom: 8px;
}
.specs__note { color: var(--grey-600); }

.specs__table {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.specs__table th,
.specs__table td {
    padding: 15px 22px;
    text-align: left;
    font-size: 0.98rem;
    border-bottom: 1px solid var(--grey-200);
}
.specs__table tr:last-child th,
.specs__table tr:last-child td { border-bottom: none; }
.specs__table th {
    font-weight: 600;
    color: var(--navy);
    width: 55%;
}
.specs__table td { color: var(--grey-600); font-weight: 600; text-align: right; }
.specs__table tr:nth-child(even) { background: var(--grey-100); }

.specs__source {
    max-width: 760px;
    margin: 20px auto 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--grey-600);
}
.specs__source a { color: var(--red); font-weight: 600; }
.specs__source a:hover { text-decoration: underline; }

@media (max-width: 560px) {
    .specs__table th, .specs__table td { padding: 12px 16px; font-size: 0.92rem; }
    .specs__table th { width: 50%; }
}
