/* ═════════════════════════════════════════════════════════════════
   ALPEN FASHION — Simple Dark + Blue
═════════════════════════════════════════════════════════════════ */

/* Self-hosted fonts (DSGVO: no request to Google servers) */
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/plus-jakarta-sans-400.woff2') format('woff2')}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/plus-jakarta-sans-500.woff2') format('woff2')}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/plus-jakarta-sans-600.woff2') format('woff2')}

:root {
    --bg:        #0A1426;
    --bg-rgb:    10, 20, 38;
    --surface:   #131F36;
    --ink:       #E8EAF0;
    --muted:     #7A8AAB;
    --line:      rgba(232, 234, 240, 0.10);
    --hover:     #1A2842;
    --accent:    #7AAFFF;
    --accent-2:  #9EC2FF;

    --font:      'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --container: 1280px;
    --pad:       clamp(1.25rem, 1rem + 2vw, 3rem);
    --gap:       clamp(0.875rem, 0.75rem + 0.5vw, 1.25rem);
    --ease:      cubic-bezier(0.4, 0, 0.2, 1);
    --dur:       180ms;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100dvh;
}

img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

::selection { background: var(--accent); color: var(--bg); }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--pad);
}

.section { padding-block: clamp(3rem, 2rem + 3vw, 5rem); }

/* ── HEADER ─────────────────────────────────────────────────── */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(var(--bg-rgb), 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--pad);
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--ink);
    transition: color var(--dur) var(--ease);
}
.brand:hover { color: var(--accent-2); }
.brand__mark {
    width: 28px;
    height: 28px;
    color: var(--accent);
    transition: color var(--dur) var(--ease), transform 300ms var(--ease);
    flex-shrink: 0;
}
.brand:hover .brand__mark { color: var(--accent-2); transform: rotate(-3deg); }
.brand__text {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: inherit;
}

.nav { display: flex; gap: 1.5rem; align-items: center; }
.nav a {
    font-size: 0.875rem;
    color: var(--muted);
    transition: color var(--dur) var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav__cta { color: var(--accent) !important; font-weight: 500; }
.nav__cta:hover { color: var(--accent-2) !important; }

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
    padding-block: clamp(3.5rem, 2rem + 5vw, 6rem) clamp(2rem, 1rem + 2vw, 3.5rem);
}

.hero__title {
    font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--ink);
    max-width: 20ch;
}
.hero__title em {
    font-style: normal;
    font-weight: 600;
    color: var(--accent);
}

.hero__lead {
    margin-top: 1.25rem;
    font-size: 1rem;
    color: var(--muted);
    max-width: 36rem;
    line-height: 1.55;
}

.hero__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
    padding-bottom: 0.15rem;
    transition: gap var(--dur) var(--ease), color var(--dur) var(--ease);
}
.hero__link:hover { gap: 0.75rem; color: var(--accent-2); border-color: var(--accent-2); }
.hero__link svg { width: 14px; height: 14px; }

/* ── SECTION HEADERS ────────────────────────────────────────── */
.section__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--line);
}
.section__title {
    font-size: clamp(1.375rem, 1rem + 1vw, 1.875rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--ink);
}
.section__title em { font-style: normal; color: var(--accent); }
.section__meta { font-size: 0.8125rem; color: var(--muted); }

/* ── SHOP CONTROLS (search + sort + brand pills) ────────────── */
.shop-controls {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-bottom: 1.5rem;
}
.shop-controls__row {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.search {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0;
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
    flex: 1;
    min-width: 0;
}
.search:focus-within {
    border-color: var(--accent);
    background: var(--hover);
}
.search__icon {
    width: 16px;
    height: 16px;
    margin-left: 0.875rem;
    color: var(--muted);
    flex-shrink: 0;
}
.search__input {
    flex: 1;
    background: transparent;
    border: 0;
    outline: 0;
    padding: 0.875rem 0.75rem;
    color: var(--ink);
    font-family: inherit;
    font-size: 0.9375rem;
    min-width: 0;
}
.search__input::placeholder { color: var(--muted); }
.search__clear {
    width: 28px;
    height: 28px;
    margin-right: 0.5rem;
    border-radius: 999px;
    color: var(--muted);
    font-size: 1.25rem;
    line-height: 1;
    transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.search__clear:hover { color: var(--ink); background: var(--line); }

.brand-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}
.brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: all var(--dur) var(--ease);
    white-space: nowrap;
}
.brand-pill:hover {
    color: var(--ink);
    border-color: var(--line);
    background: var(--hover);
}
.brand-pill[aria-pressed="true"] {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}
.brand-pill__count {
    font-size: 0.6875rem;
    opacity: 0.7;
    font-variant-numeric: tabular-nums;
}
.brand-pill[aria-pressed="true"] .brand-pill__count { opacity: 0.85; }
.brand-pill--toggle {
    color: var(--accent);
    border-color: var(--line);
    background: transparent;
}
.brand-pill--toggle:hover {
    color: var(--accent-2);
    background: var(--hover);
}

/* ── SORT DROPDOWN ──────────────────────────────────────────── */
.sort {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 0 2rem 0 0.875rem;
    cursor: pointer;
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
    flex-shrink: 0;
}
.sort:hover { background: var(--hover); border-color: var(--line-2, var(--line)); }
.sort:focus-within { border-color: var(--accent); }
.sort__label {
    font-size: 0.75rem;
    color: var(--muted);
    margin-right: 0.5rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.sort__select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    outline: 0;
    color: var(--ink);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.75rem 0;
    cursor: pointer;
    min-width: 8rem;
}
.sort__select option {
    background: var(--surface);
    color: var(--ink);
}
.sort__chevron {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    color: var(--muted);
    pointer-events: none;
}

/* ── LISTINGS GRID ──────────────────────────────────────────── */
.listings {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.listing-card {
    display: block;
    position: relative;
    transition: transform var(--dur) var(--ease);
}
.listing-card:hover { transform: translateY(-2px); }

.listing-card__media {
    aspect-ratio: 1 / 1;
    background: var(--surface);
    overflow: hidden;
    margin-bottom: 0.75rem;
    border: 1px solid var(--line);
    position: relative;
}
.listing-card__img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 400ms var(--ease);
}
.listing-card:hover .listing-card__img { transform: scale(1.04); }

.listing-card__body {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
}
.listing-card__title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.3;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.listing-card__price {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
}
.listing-card__desc { display: none; }

/* Skeleton */
.listing-card--skeleton .listing-card__media {
    background: linear-gradient(110deg, var(--surface) 30%, var(--hover) 50%, var(--surface) 70%);
    background-size: 200% 100%;
    animation: shimmer 1.6s ease-in-out infinite;
}
.listing-card--skeleton .listing-card__body { opacity: 0; }
@keyframes shimmer {
    from { background-position: 100% 0; }
    to   { background-position: -100% 0; }
}

.listings__more {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.listings__more time { font-size: 0.8125rem; color: var(--muted); margin-right: auto; }

.listings__empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted);
}
.listings__empty p { margin-bottom: 1rem; font-size: 0.9375rem; }

.btn {
    background: var(--accent);
    color: var(--bg);
    border: 0;
    padding: 0.75rem 1.5rem;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background var(--dur) var(--ease);
}
.btn:hover { background: var(--accent-2); }
.btn[hidden] { display: none; }

/* ── ABOUT ──────────────────────────────────────────────────── */
.about__title {
    font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
    max-width: 24ch;
}
.about__body {
    max-width: 56ch;
    color: var(--muted);
    font-size: 0.9375rem;
    line-height: 1.65;
}
.about__body p + p { margin-top: 0.75rem; }

/* ── STORE GRID (Laden / Hours / Contact) ───────────────────── */
.store-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
}
.store-block {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 1.25rem 1.25rem 1.5rem;
}
.store-block__label {
    display: block;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.store-block__value {
    color: var(--ink);
    font-size: 0.9375rem;
    line-height: 1.55;
    margin-bottom: 0.875rem;
}
.store-block__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.store-block__link:hover {
    color: var(--accent-2);
    border-color: var(--accent-2);
}
.store-block__link svg { width: 12px; height: 12px; }

.hours {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.hours > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.9375rem;
}
.hours > div:last-child { border-bottom: 0; padding-bottom: 0; }
.hours dt { color: var(--muted); font-weight: 500; }
.hours dd {
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}

.store-map {
    margin-top: 1.25rem;
    border: 1px solid var(--line);
    overflow: hidden;
    background: var(--surface);
    line-height: 0;
}
.store-map iframe {
    display: block;
    /* Constant dark-mode treatment — no hover/tap colour flip */
    filter: invert(0.92) hue-rotate(180deg) brightness(0.95) contrast(0.85);
}
/* Consent placeholder (shown until the visitor clicks "Karte laden") */
.store-map__consent {
    width: 100%;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 2rem 1.5rem;
    background: var(--surface);
    color: var(--muted);
    font: inherit;
    text-align: center;
    cursor: pointer;
    border: 0;
    transition: background var(--dur) var(--ease);
}
.store-map__consent:hover { background: var(--hover); }
.store-map__consent svg { width: 34px; height: 34px; color: var(--accent); }
.store-map__title { font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.store-map__note { font-size: 0.78rem; line-height: 1.5; max-width: 34rem; }
.store-map__note a { color: var(--accent); }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq { max-width: 760px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 0;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--ink);
    transition: color var(--dur) var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent); }
.faq__item summary::after {
    content: "+";
    font-size: 1.5rem;
    line-height: 1;
    color: var(--accent);
    flex-shrink: 0;
}
.faq__item[open] summary::after { content: "\2212"; }
.faq__item p {
    padding: 0 0 1.2rem;
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.65;
    max-width: 64ch;
}

/* ── IMPRINT (Impressum) ────────────────────────────────────── */
.imprint {
    max-width: 60ch;
    color: var(--muted);
    font-size: 0.9375rem;
    line-height: 1.65;
}
.imprint__lead {
    color: var(--muted);
    margin-bottom: 1.25rem;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.imprint__address {
    font-style: normal;
    color: var(--ink);
    padding: 1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--line);
    margin-bottom: 1.75rem;
}
.imprint__address strong { font-weight: 600; }
.imprint__sub {
    color: var(--ink);
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.imprint a {
    color: var(--accent);
    border-bottom: 1px solid transparent;
    transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.imprint a:hover { color: var(--accent-2); border-color: var(--accent-2); }

/* ── CONTACT ────────────────────────────────────────────────── */
.contact {
    padding-block: clamp(3rem, 2rem + 2vw, 4.5rem);
    border-top: 1px solid var(--line);
}
.contact__title {
    font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
}
.contact__lead {
    color: var(--muted);
    max-width: 36rem;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}
.contact__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
    padding-bottom: 0.15rem;
    transition: gap var(--dur) var(--ease), color var(--dur) var(--ease);
}
.contact__link:hover { gap: 0.75rem; color: var(--accent-2); border-color: var(--accent-2); }
.contact__link svg { width: 14px; height: 14px; }

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--line);
    padding-block: 1.75rem;
    font-size: 0.8125rem;
    color: var(--muted);
}
.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--pad);
}
.footer__links { display: flex; gap: 1.25rem; }
.footer__links a { transition: color var(--dur) var(--ease); }
.footer__links a:hover { color: var(--accent); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .listings { grid-template-columns: repeat(2, 1fr); }
}

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

@media (max-width: 720px) {
    .shop-controls__row { flex-direction: column; gap: 0.5rem; }
    .sort { width: 100%; justify-content: space-between; padding-right: 2rem; }
    .sort__select { flex: 1; }
    .store-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .nav { gap: 0.875rem; }
    .nav a:not(.nav__cta) { display: none; }
    .listings { grid-template-columns: 1fr 1fr; gap: 0.625rem; }
    .listing-card__title { -webkit-line-clamp: 2; }
    .section__head { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
