/* FELLECS Katalog-Plattform — Theme "catalog"
   Marken-Akzentfarbe kommt als --brand aus der Environment-Config. */

:root {
    --ink: #1b2530;
    --ink-soft: #4a5768;
    --line: #e3e8ee;
    --bg: #ffffff;
    --bg-soft: #f4f6f9;
    --brand: #005baa;           /* Fallback, wird per Inline-Style überschrieben */
    --brand-ink: #ffffff;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(16, 32, 54, .06), 0 8px 24px -12px rgba(16, 32, 54, .18);
    --wrap: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { line-height: 1.25; color: var(--ink); }
h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: .4em 0 .5em; }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); margin: 1.6em 0 .6em; }

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 68px;
}

.site-logo img { display: block; height: 40px; width: auto; }

.site-nav { display: flex; align-items: center; gap: .25rem; }

.site-nav ul.navigation {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: .25rem;
}

.site-nav ul.navigation ul { display: none; }   /* Dropdowns: bewusst flach, Kategorien kommen über die Rubrikseiten */

.site-nav a {
    display: inline-block;
    padding: .55rem .85rem;
    border-radius: 8px;
    color: var(--ink);
    font-weight: 500;
    white-space: nowrap;
}

.site-nav a:hover { background: var(--bg-soft); text-decoration: none; }
.site-nav a.active { color: var(--brand); }

.lang-switch {
    margin-left: .5rem;
    padding: .35rem .6rem !important;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: .8rem;
    letter-spacing: .04em;
    color: var(--ink-soft) !important;
}

.nav-toggle, .nav-burger { display: none; }

@media (max-width: 820px) {
    .nav-burger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding: 10px;
        cursor: pointer;
    }
    .nav-burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        padding: .75rem 20px 1rem;
    }
    .nav-toggle:checked ~ .site-nav { display: block; }
    .site-nav ul.navigation { flex-direction: column; gap: 0; }
    .site-nav a { display: block; }
    .lang-switch { display: inline-block; margin: .5rem 0 0; }
}

/* ---------- Breadcrumbs ---------- */

.breadcrumbs {
    font-size: .85rem;
    color: var(--ink-soft);
    padding: .8rem 0 0;
}
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs span { margin: 0 .15rem; }

/* ---------- Listing (Rubriken + Kategorien) ---------- */

.listing-head { max-width: 70ch; }
.listing-head h1 { margin-bottom: .35em; }
.listing-head h1::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    background: var(--brand);
    border-radius: 2px;
    margin-top: .45rem;
}
.listing-head p { color: var(--ink-soft); }
.listing-count { font-size: .85rem; letter-spacing: .02em; text-transform: uppercase; }

/* Kategorien: Querformat-Karten nebeneinander */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.1rem;
    margin: 1.5rem 0 3rem;
}

.cat-card {
    display: grid;
    grid-template-columns: 128px 1fr;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
    color: inherit;
    transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}
.cat-card:hover { text-decoration: none; border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-media {
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-soft); border-radius: 8px; padding: .5rem; min-height: 120px;
}
.cat-media img { max-height: 110px; object-fit: contain; mix-blend-mode: multiply; }
.cat-body strong { font-size: 1.02rem; }
.cat-count { display: block; font-size: .78rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; margin: .15rem 0 .3rem; }
.cat-body p { margin: 0 0 .4rem; font-size: .88rem; color: var(--ink-soft); line-height: 1.45; }
.cat-more { font-size: .85rem; font-weight: 600; color: var(--brand); }

/* Produkte: scanbare Zeilen (Querformat) */
.product-rows { display: flex; flex-direction: column; gap: .8rem; margin: 1.25rem 0 3rem; }

.product-row {
    display: grid;
    grid-template-columns: 130px 1fr auto;
    gap: 1.25rem;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: .9rem 1.1rem;
    color: inherit;
    transition: box-shadow .15s ease, border-color .15s ease;
}
.product-row:hover { text-decoration: none; border-color: var(--brand); box-shadow: var(--shadow); }
.row-media {
    display: flex; align-items: center; justify-content: center;
    height: 108px; background: var(--bg-soft); border-radius: 8px; padding: .4rem;
}
.row-media img { max-height: 100%; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; }
.row-title { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.row-title strong { font-size: 1.02rem; }
.row-sku { font-size: .78rem; color: var(--ink-soft); background: var(--bg-soft); border-radius: 5px; padding: .1rem .4rem; }
.row-summary { margin: .25rem 0 .35rem; font-size: .88rem; color: var(--ink-soft); line-height: 1.45; }
.row-specs { display: flex; flex-wrap: wrap; gap: .35rem 1.4rem; margin: .2rem 0 0; }
.row-specs div { display: flex; gap: .4rem; font-size: .82rem; }
.row-specs dt { color: var(--ink-soft); margin: 0; }
.row-specs dt::after { content: ":"; }
.row-specs dd { margin: 0; font-weight: 600; color: var(--ink); }
.row-side { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.row-more { font-size: 1.6rem; color: var(--line); line-height: 1; }
.product-row:hover .row-more { color: var(--brand); }

.boat-mini { display: inline-flex; gap: .35rem; }
.boat-mini svg { width: 22px; height: 22px; stroke: var(--brand); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }

@media (max-width: 640px) {
    .product-row { grid-template-columns: 84px 1fr; }
    .row-media { height: 84px; }
    .row-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
    .cat-card { grid-template-columns: 96px 1fr; }
}

.catalog-listing .listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.1rem;
    margin: 1.5rem 0 3rem;
}

.listing-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
    transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}

.listing-card:hover {
    text-decoration: none;
    border-color: var(--brand);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.listing-card .card-media {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-soft);
    border-radius: calc(var(--radius) - 4px);
    margin-bottom: .75rem;
}

.listing-card .card-media img { max-height: 100%; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; }

.listing-card strong { color: var(--ink); font-size: .98rem; }
.listing-card .card-sku { color: var(--ink-soft); font-size: .82rem; margin-top: .15rem; }

/* ---------- Produktseite ---------- */

.product-page {
    display: grid;
    grid-template-columns: minmax(300px, 5fr) 7fr;
    gap: 2.5rem;
    margin: 1.2rem 0 3rem;
}

@media (max-width: 820px) {
    .product-page { grid-template-columns: 1fr; gap: 1.25rem; }
}

.product-gallery .main-image {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}

.product-gallery .main-image img { max-height: 440px; object-fit: contain; mix-blend-mode: multiply; }

.product-gallery .thumbs { display: flex; gap: .6rem; margin-top: .6rem; flex-wrap: wrap; }

.product-gallery .thumbs a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg-soft);
    padding: 6px;
}
.product-gallery .thumbs img { max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }

.product-info h1 { margin-top: 0; }

.product-sku { color: var(--ink-soft); font-size: .9rem; margin: -.3rem 0 1rem; }
.product-sku strong { color: var(--ink); }

.product-description { max-width: 62ch; }

/* Schiffsart-Empfehlung */
.boat-badges { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1rem 0 1.25rem; }
.boat-badges-label { font-size: .84rem; color: var(--ink-soft); font-weight: 600; margin-right: .15rem; }

.boat-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .4rem .75rem;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .84rem;
    font-weight: 500;
    color: var(--ink-soft);
}

.boat-badge svg { width: 20px; height: 20px; stroke: var(--brand); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Specs */
.product-specs { width: 100%; border-collapse: collapse; margin: .5rem 0 1.5rem; font-size: .93rem; }
.product-specs th, .product-specs td { text-align: left; padding: .55rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.product-specs th { width: 42%; font-weight: 600; color: var(--ink-soft); }
.product-specs tr:nth-child(odd) { background: var(--bg-soft); }

/* Aktionen */
.product-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }

.btn-buy {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--brand);
    color: var(--brand-ink) !important;
    font-weight: 600;
    padding: .8rem 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: filter .15s ease, transform .15s ease;
}
.btn-buy:hover { filter: brightness(1.08); transform: translateY(-1px); text-decoration: none; }

.btn-datasheet {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .8rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    font-weight: 500;
}
.btn-datasheet:hover { border-color: var(--brand); text-decoration: none; }

/* ---------- Startseite ---------- */

.hero {
    background-size: cover;
    background-position: center 60%;
    border-radius: var(--radius);
    margin: 1.25rem 0 2.5rem;
    min-height: clamp(340px, 46vw, 460px);
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-inner { padding: clamp(1.5rem, 5vw, 3.5rem); max-width: 620px; }
.hero h1 {
    color: #fff;
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    margin: 0 0 .4em;
    letter-spacing: -.01em;
    text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.hero p { color: #e8eef5; font-size: clamp(1rem, 2vw, 1.15rem); line-height: 1.55; text-shadow: 0 1px 8px rgba(0,0,0,.35); margin: 0 0 1.4em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn-hero-ghost {
    display: inline-flex;
    align-items: center;
    padding: .8rem 1.4rem;
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 10px;
    color: #fff !important;
    font-weight: 500;
    backdrop-filter: blur(2px);
}
.btn-hero-ghost:hover { background: rgba(255,255,255,.14); text-decoration: none; }

.home-section-title { margin: 2.2rem 0 1rem; }
.home-section-title::after { content: ""; display: block; width: 56px; height: 3px; background: var(--brand); border-radius: 2px; margin-top: .45rem; }

.home-story {
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: clamp(1.5rem, 4vw, 2.8rem);
    margin: 2.5rem 0 1rem;
}
.home-story h2 { margin-top: 0; }
.home-story p { max-width: 68ch; color: var(--ink-soft); }
.home-story em { display: block; font-size: 1.12rem; color: var(--ink); border-left: 3px solid var(--brand); padding-left: 1rem; margin: 1.2rem 0; }

/* Gewinn-Empfehlung (Ratgeber-Regel) */
.gain-hint {
    background: var(--bg-soft);
    border-left: 3px solid var(--brand);
    border-radius: 0 8px 8px 0;
    padding: .7rem 1rem;
    font-size: .92rem;
    color: var(--ink-soft);
    max-width: 62ch;
}
.gain-hint a { font-weight: 600; white-space: nowrap; }

/* ---------- Footer ---------- */

.site-footer {
    margin-top: 4rem;
    background: var(--ink);
    color: #c6cfda;
    font-size: .9rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.site-footer strong { color: #fff; display: block; margin-bottom: .5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .3rem 0; }
.site-footer a { color: #c6cfda; }
.site-footer a:hover { color: #fff; }
