/* Phase 1 sauber */

:root{
    --bg:#f6f3ee;
    --surface:#ffffff;
    --text:#111111;
    --muted:#6b6b6b;
    --line:rgba(0,0,0,0.08);
    --line-strong:rgba(0,0,0,0.14);
    --panel:#141414;
    --panelText:#f5f3ef;
    --max:1180px;
    --radius:28px;
    --radius-sm:18px;
    --shadow:0 18px 40px rgba(0,0,0,0.05);
}

*{box-sizing:border-box;}

html{scroll-behavior:smooth;}

body{
    margin:0;
    background:var(--bg);
    color:var(--text);
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
    -webkit-font-smoothing:antialiased;
}

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

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

button,input,textarea,select{
    font:inherit;
}

.container{
    width:min(calc(100% - 32px), var(--max));
    margin:0 auto;
}

/* header */

.site-header{
    position:sticky;
    top:0;
    z-index:40;
    background:rgba(246,243,238,0.92);
    backdrop-filter:blur(10px);
    border-bottom:1px solid var(--line);
}

.header-inner{
    min-height:78px;
    display:grid;
    grid-template-columns:auto 1fr auto;
    align-items:center;
    gap:20px;
}

.brand{
    display:inline-flex;
    align-items:center;
    gap:10px;
    min-width:0;
    font-weight:700;
}

.brand-mark{
    width:12px;
    height:12px;
    border-radius:999px;
    background:var(--text);
    flex:0 0 auto;
}

.brand-text{
    font-size:1.1rem;
    letter-spacing:-0.02em;
}

.main-nav{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:28px;
    min-width:0;
}

.main-nav a{
    color:var(--muted);
    font-size:0.98rem;
}

.main-nav a:hover{
    color:var(--text);
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:48px;
    padding:0 18px;
    border-radius:16px;
    font-weight:600;
    border:1px solid transparent;
    transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover{
    transform:translateY(-1px);
}

.btn-primary{
    background:var(--text);
    color:#fff;
    box-shadow:var(--shadow);
}

.btn-secondary{
    background:var(--surface);
    color:var(--text);
    border-color:var(--line);
}

.btn-full{width:100%;}

.header-cta{
    white-space:nowrap;
}

/* generic */

.eyebrow{
    display:inline-block;
    margin-bottom:14px;
    font-size:.78rem;
    letter-spacing:.18em;
    text-transform:uppercase;
    color:var(--muted);
}

.eyebrow-light{
    color:rgba(255,255,255,0.55);
}

.section{
    padding:32px 0 64px;
}

.section-head{
    display:flex;
    justify-content:space-between;
    align-items:end;
    gap:20px;
    margin-bottom:24px;
}

.section-head h2{
    margin:0;
    font-size:clamp(2rem, 4vw, 3.4rem);
    line-height:.98;
    letter-spacing:-0.05em;
}

.section-meta{
    color:var(--muted);
    font-size:1rem;
    white-space:nowrap;
}

.notice-box{
    padding:22px;
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:24px;
}

/* hero */

.hero-section{
    padding:42px 0 22px;
}

.hero-grid{
    display:grid;
    grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);
    gap:28px;
    align-items:stretch;
}

.hero-copy{
    padding:18px 0;
}

.hero-copy h1{
    margin:0 0 18px;
    font-size:clamp(3.2rem, 8vw, 6.5rem);
    line-height:.92;
    letter-spacing:-0.06em;
}

.hero-lead{
    margin:0 0 10px;
    font-size:clamp(1.35rem, 2.8vw, 2rem);
    line-height:1.18;
    color:#1f1f1f;
    max-width:720px;
}

.hero-text{
    margin:0;
    max-width:720px;
    color:var(--muted);
    font-size:1.1rem;
    line-height:1.65;
}

.hero-actions{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-top:28px;
}

.hero-panel{
    min-width:0;
}

.hero-panel-inner{
    height:100%;
    background:var(--panel);
    color:var(--panelText);
    border-radius:32px;
    padding:28px;
}

.hero-count{
    font-size:clamp(3rem, 7vw, 4.4rem);
    line-height:.9;
    font-weight:700;
    letter-spacing:-0.06em;
    margin-bottom:6px;
}

.hero-count-label{
    font-size:1rem;
    color:rgba(255,255,255,0.72);
    margin-bottom:18px;
}

.hero-panel-text{
    margin:0 0 22px;
    color:rgba(255,255,255,0.72);
    line-height:1.65;
}

/* cards */

.section-listings{
    padding-top:20px;
}

.listing-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0,1fr));
    gap:22px;
}

.bike-card{
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:30px;
    overflow:hidden;
    box-shadow:0 8px 24px rgba(0,0,0,0.03);
}

.bike-image-wrap{
    display:block;
    aspect-ratio:4/3;
    overflow:hidden;
    background:#eceae4;
}

.bike-image{
    width:100%;
    height:100%;
    object-fit:cover;
}

.bike-content{
    padding:18px;
}

.bike-location{
    color:var(--muted);
    font-size:.9rem;
    margin-bottom:8px;
}

.bike-title{
    margin:0 0 14px;
    font-size:1.15rem;
    line-height:1.3;
    letter-spacing:-0.02em;
}

.bike-bottom{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    padding-top:14px;
    border-top:1px solid var(--line);
}

.bike-price{
    font-size:1.28rem;
    font-weight:700;
    letter-spacing:-0.03em;
}

.bike-link{
    color:var(--muted);
    font-weight:600;
    white-space:nowrap;
}

/* simple support for existing pages */

.create-box,
.detail-panel,
.detail-description-box,
.detail-contact-box,
.detail-image-box{
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:28px;
}

.create-box,
.detail-panel,
.detail-description-box,
.detail-contact-box{
    padding:22px;
}

.create-text,
.detail-contact-text,
.detail-description-box p{
    color:var(--muted);
    line-height:1.65;
}

.create-layout,
.detail-layout{
    display:grid;
    grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr);
    gap:24px;
    align-items:start;
}

.create-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
}

.create-field-full{grid-column:1 / -1;}

.create-field label,
.contact-field label{
    display:block;
    margin-bottom:8px;
    font-size:.92rem;
    font-weight:600;
}

.create-field input,
.create-field textarea,
.contact-field input,
.contact-field textarea{
    width:100%;
    min-height:50px;
    border:1px solid var(--line-strong);
    border-radius:14px;
    background:#fff;
    padding:12px 14px;
    color:var(--text);
}

.create-field textarea,
.contact-field textarea{
    min-height:140px;
    resize:vertical;
}

.detail-image{
    width:100%;
    aspect-ratio:4/3;
    object-fit:cover;
    border-radius:28px;
}

.detail-thumbs{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:10px;
    margin-top:12px;
}

.detail-thumb{
    border:1px solid var(--line);
    border-radius:16px;
    overflow:hidden;
    background:#fff;
    padding:0;
}

.detail-price{
    font-size:2.4rem;
    font-weight:700;
    letter-spacing:-0.05em;
    margin-bottom:18px;
}

.detail-fact{
    display:flex;
    justify-content:space-between;
    gap:16px;
    padding:12px 0;
    border-bottom:1px solid var(--line);
}

.site-footer{
    margin-top:52px;
    border-top:1px solid var(--line);
    padding:28px 0 40px;
}

.footer-inner{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
}

.footer-brand{
    font-weight:700;
    margin-bottom:4px;
}

.footer-sub{
    margin:0;
    color:var(--muted);
}

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

.footer-links a{
    color:var(--muted);
}

/* responsive */

@media (max-width: 980px){
    .hero-grid,
    .create-layout,
    .detail-layout,
    .listing-grid{
        grid-template-columns:1fr;
    }

    .hero-panel{
        order:2;
    }

    .detail-thumbs{
        grid-template-columns:repeat(2, 1fr);
    }
}

@media (max-width: 760px){
    .header-inner{
        grid-template-columns:1fr;
        justify-items:start;
        padding:14px 0;
        gap:12px;
    }

    .main-nav{
        justify-content:flex-start;
        gap:16px;
        flex-wrap:wrap;
    }

    .header-cta{
        width:100%;
    }

    .hero-copy h1{
        font-size:clamp(3rem, 14vw, 4.6rem);
    }

    .hero-lead{
        font-size:1.2rem;
    }

    .hero-text{
        font-size:1rem;
    }

    .hero-actions{
        flex-direction:column;
        align-items:stretch;
    }

    .hero-actions .btn{
        width:100%;
    }

    .create-grid{
        grid-template-columns:1fr;
    }

    .create-field-full{
        grid-column:auto;
    }

    .section-head,
    .footer-inner{
        flex-direction:column;
        align-items:flex-start;
    }
}


/* CONTACT FORM – breiter & hochwertiger */
.detail-contact-box{
    padding:16px;
}

.contact-field input,
.contact-field textarea{
    width:100%;
    padding:16px;
    border-radius:16px;
    box-sizing:border-box;
}

.contact-field{
    margin-left:0;
    margin-right:0;
}

.contact-form .btn{
    margin-top:14px;
    padding:18px;
    font-size:1.05rem;
}


/* === FORM PREMIUM (CREATE) === */

.create-field input,
.create-field textarea,
.create-field select {
    width:100%;
    min-height:54px;
    border:1px solid var(--line-strong);
    border-radius:18px;
    background:#fff;
    padding:14px 16px;
    color:var(--text);
    transition:all .15s ease;
}

.create-field select{
    appearance:none;
    -webkit-appearance:none;
    -moz-appearance:none;
    background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'><path d='M5 7.5L10 12.5L15 7.5' stroke='%23111' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat:no-repeat;
    background-position:right 16px center;
    background-size:18px;
    padding-right:44px;
}

.create-field input:hover,
.create-field textarea:hover,
.create-field select:hover{
    border-color:rgba(0,0,0,0.22);
}

.create-field input:focus,
.create-field textarea:focus,
.create-field select:focus{
    outline:none;
    border-color:#111;
    box-shadow:0 0 0 3px rgba(17,17,17,0.06);
}

.create-field label{
    display:block;
    margin-bottom:6px;
    font-size:.9rem;
    font-weight:600;
    color:#222;
}

.create-field{
    display:flex;
    flex-direction:column;
    gap:4px;
}


/* === HOMEPAGE FILTER BOX v4 === */
.filter-shell{
    margin:0 0 24px;
}

.filter-box{
    background:var(--surface);
    border:1px solid rgba(0,0,0,0.07);
    border-radius:24px;
    padding:18px;
    box-shadow:0 10px 28px rgba(0,0,0,0.03);
}

.filter-box-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
    margin-bottom:14px;
}

.filter-title{
    font-size:1.05rem;
    font-weight:700;
    letter-spacing:-0.02em;
}

.filter-subtitle{
    margin-top:4px;
    color:var(--muted);
    font-size:.95rem;
}

.filter-reset{
    color:var(--muted);
    font-size:.95rem;
    line-height:1.2;
    white-space:nowrap;
}

.filter-reset:hover{
    color:var(--text);
}

.filter-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
}

.filter-control{
    width:100%;
    min-height:52px;
    border:1px solid rgba(0,0,0,0.10);
    border-radius:16px;
    background:#fff;
    padding:0 16px;
    color:var(--text);
    transition:border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

select.filter-control{
    appearance:none;
    -webkit-appearance:none;
    -moz-appearance:none;
    background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'><path d='M5 7.5L10 12.5L15 7.5' stroke='%23111' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat:no-repeat;
    background-position:right 16px center;
    background-size:18px;
    padding-right:44px;
}

.filter-control:hover{
    border-color:rgba(0,0,0,0.16);
}

.filter-control:focus{
    outline:none;
    border-color:#111;
    box-shadow:0 0 0 3px rgba(17,17,17,0.05);
}

.filter-actions{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    margin-top:12px;
}

.filter-submit{
    min-width:140px;
}

@media (min-width: 760px){
    .filter-box{
        padding:20px;
    }

    .filter-grid{
        grid-template-columns:repeat(2, minmax(0,1fr));
        gap:12px;
    }
}

@media (min-width: 1100px){
    .filter-box{
        padding:22px;
    }

    .filter-grid{
        grid-template-columns:repeat(3, minmax(0,1fr));
        gap:14px;
    }

    .filter-box-head{
        margin-bottom:16px;
    }
}

@media (max-width: 759px){
    .filter-box-head{
        flex-direction:column;
        align-items:flex-start;
    }

    .filter-reset{
        white-space:normal;
    }

    .filter-submit{
        width:100%;
    }
}


/* === HOMEPAGE FILTER BOX v5 === */
.filter-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:12px;
    align-items:stretch;
}

.filter-grid > *{
    min-width:0;
}

.filter-control,
.filter-submit{
    width:100%;
    min-height:54px;
    height:54px;
    box-sizing:border-box;
    font:inherit;
}

.filter-control{
    border-radius:16px;
    padding:0 16px;
}

input.filter-control{
    appearance:none;
}

.filter-actions{
    display:flex;
    align-items:stretch;
}

.filter-submit{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0 18px;
    border-radius:16px;
    min-width:0;
    white-space:nowrap;
}

@media (min-width: 760px){
    .filter-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }

    .filter-actions{
        grid-column:1 / -1;
    }
}

@media (min-width: 1100px){
    .filter-grid{
        grid-template-columns:repeat(7, minmax(0, 1fr));
        gap:14px;
    }

    .filter-actions{
        grid-column:auto;
    }
}

@media (max-width: 759px){
    .filter-actions{
        margin-top:0;
    }
}


/* === HEADER RIGHT / POSTBOX === */

.header-right{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:6px;
}

.postbox-title{
    font-weight:600;
    color:var(--text);
}

.postbox-sub{
    font-size:12px;
    color:#777;
}

.postbox-sub a{
    color:#777;
}

.postbox-sub a:hover{
    color:var(--text);
}

@media (max-width:760px){
    .header-right{
        align-items:flex-start;
        width:100%;
    }
}
