/* Hirschitech – Stylesheet
   Basis: bisherige Farben (#1c1f2e Header, #1900e1 Akzent), Schrift Roboto (lokal eingebunden) */

@font-face {
    font-family: 'Roboto'; font-style: normal; font-weight: 400; font-display: swap;
    src: url('../fonts/roboto-latin-400-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Roboto'; font-style: normal; font-weight: 500; font-display: swap;
    src: url('../fonts/roboto-latin-500-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Roboto'; font-style: normal; font-weight: 700; font-display: swap;
    src: url('../fonts/roboto-latin-700-normal.woff2') format('woff2');
}

:root {
    --bg: #0d0f17;
    --bg-soft: #151826;
    --surface: #1c1f2e;
    --surface-2: #262a3d;
    --border: #2f3450;
    --text: #e9ebf5;
    --text-muted: #a3a8c3;
    --accent: #1900e1;
    --accent-hover: #3a24ff;
    --accent-light: #7c8cff;
    --success: #2ecc71;
    --danger: #ff5c6c;
    --radius: 10px;
    --header-h: 64px;
    --maxw: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
    line-height: 1.65;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a { color: var(--accent-light); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.2rem); }
h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

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

.skip-link {
    position: absolute; left: -999px; top: 8px;
    background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 2000;
}
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(28, 31, 46, .96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    height: var(--header-h);
}
.header-inner {
    height: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.logo {
    font-size: 1.5rem; font-weight: 700; letter-spacing: .3px;
    color: #fff; white-space: nowrap;
}
.logo:hover { color: #fff; }
.logo .it { color: var(--accent-light); }

.main-nav ul {
    list-style: none; margin: 0; padding: 0;
    display: flex; gap: 6px; align-items: center;
}
.main-nav a {
    display: block; padding: 8px 12px; border-radius: 6px;
    color: var(--text); font-weight: 500; font-size: .98rem;
}
.main-nav a:hover { background: var(--surface-2); color: #fff; }
.main-nav a[aria-current="page"] { color: #fff; background: var(--surface-2); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.cart-link {
    position: relative; display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 12px; border-radius: 6px; color: var(--text);
    background: var(--surface-2); font-weight: 500;
}
.cart-link:hover { background: var(--accent); color: #fff; }
.cart-link svg { width: 20px; height: 20px; }
.cart-count {
    min-width: 22px; height: 22px; padding: 0 6px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--accent); color: #fff; border-radius: 11px; font-size: .8rem; font-weight: 700;
}
.cart-link:hover .cart-count { background: #fff; color: var(--accent); }
.cart-count[data-empty="true"] { background: var(--border); color: var(--text-muted); }

.nav-toggle {
    display: none; background: none; border: 1px solid var(--border); color: #fff;
    width: 42px; height: 42px; border-radius: 8px; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 110px 0 100px;
    background:
        linear-gradient(180deg, rgba(13,15,23,.78) 0%, rgba(13,15,23,.92) 100%),
        url('../img/hero.jpg') center / cover no-repeat;
    border-bottom: 1px solid var(--border);
}
.hero .eyebrow {
    display: inline-block; font-size: .85rem; letter-spacing: 2px; text-transform: uppercase;
    color: var(--accent-light); margin-bottom: 14px; font-weight: 700;
}
.hero h1 { max-width: 16ch; }
.hero p.lead { font-size: 1.2rem; color: var(--text-muted); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.page-hero {
    padding: 56px 0 40px;
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
}
.page-hero p { color: var(--text-muted); max-width: 62ch; font-size: 1.1rem; margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: 8px; border: 1px solid transparent;
    font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
    background: var(--accent); color: #fff; transition: background .2s, transform .1s;
}
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-secondary { background: transparent; border-color: var(--border); color: var(--text); }
.btn-secondary:hover { background: var(--surface-2); border-color: var(--accent-light); }
.btn-small { padding: 8px 14px; font-size: .92rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 2px; }

/* ---------- Sections / Cards ---------- */
main { flex: 1; }
.section { padding: 64px 0; }
.section-alt { background: var(--bg-soft); border-block: 1px solid var(--border); }
.section-head { max-width: 62ch; margin-bottom: 36px; }
.section-head p { color: var(--text-muted); }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 26px;
    transition: border-color .2s, transform .2s;
}
a.card { display: block; color: inherit; }
a.card:hover { border-color: var(--accent-light); transform: translateY(-3px); color: inherit; }
.card .icon {
    width: 48px; height: 48px; border-radius: 10px; margin-bottom: 16px;
    background: var(--accent); display: flex; align-items: center; justify-content: center;
}
.card .icon svg { width: 26px; height: 26px; color: #fff; }
.card p { color: var(--text-muted); margin-bottom: 0; }
.card .more { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--accent-light); }

.check-list { list-style: none; padding: 0; margin: 0 0 1.2em; }
.check-list li { position: relative; padding: 8px 0 8px 32px; border-bottom: 1px solid var(--border); }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
    content: ""; position: absolute; left: 0; top: 13px; width: 18px; height: 18px;
    background: var(--accent-light);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.two-col { display: grid; gap: 40px; grid-template-columns: 1.3fr 1fr; align-items: start; }

.cta-band {
    text-align: center; padding: 56px 20px;
    background: linear-gradient(135deg, var(--accent) 0%, #0b0070 100%);
    border-radius: 16px;
}
.cta-band p { color: #dcdcff; max-width: 52ch; margin-inline: auto; }

/* ---------- Prose (Impressum, Datenschutz) ---------- */
.prose { max-width: 78ch; }
.prose h2 { margin-top: 1.8em; font-size: 1.4rem; }
.prose h3 { margin-top: 1.4em; font-size: 1.1rem; }
.prose .placeholder { background: rgba(255, 200, 0, .15); padding: 0 4px; border-radius: 4px; color: #ffd75e; }

/* ---------- Shop ---------- */
.shop-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.chip {
    padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border);
    background: var(--surface); color: var(--text); font: inherit; cursor: pointer;
}
.chip:hover { border-color: var(--accent-light); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.product-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.product-card {
    display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: border-color .2s;
}
.product-card:hover { border-color: var(--accent-light); }
.product-media {
    aspect-ratio: 4 / 3; background: var(--surface-2);
    display: flex; align-items: center; justify-content: center; color: var(--text-muted);
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media svg { width: 56px; height: 56px; opacity: .6; }
.product-body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-cat { font-size: .78rem; text-transform: uppercase; letter-spacing: 1.2px; color: var(--accent-light); font-weight: 700; }
.product-body h3 { margin: 0; font-size: 1.1rem; }
.product-body p { color: var(--text-muted); font-size: .95rem; margin: 0; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.price { font-size: 1.2rem; font-weight: 700; }
.notice {
    background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius);
    padding: 16px 20px; color: var(--text-muted);
}

/* ---------- Warenkorb ---------- */
.cart-layout { display: grid; gap: 28px; grid-template-columns: 1fr 340px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-item {
    display: grid; grid-template-columns: 1fr auto auto auto; gap: 18px; align-items: center;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px;
}
.cart-item-title { font-weight: 700; }
.cart-item-sub { color: var(--text-muted); font-size: .9rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.qty button {
    width: 34px; height: 34px; border: 0; background: var(--surface-2); color: #fff; cursor: pointer; font-size: 1.1rem;
}
.qty button:hover { background: var(--accent); }
.qty span { min-width: 36px; text-align: center; font-weight: 700; }
.remove-btn { background: none; border: 0; color: var(--danger); cursor: pointer; font: inherit; padding: 6px; }
.remove-btn:hover { text-decoration: underline; }
.cart-summary {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px; position: sticky; top: calc(var(--header-h) + 20px);
}
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; color: var(--text-muted); }
.summary-row.total { color: var(--text); font-size: 1.25rem; font-weight: 700; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; }
.cart-summary .btn { width: 100%; margin-top: 16px; }
.form-msg { margin-top: 12px; font-size: .92rem; color: var(--text-muted); }
.form-msg.error { color: var(--danger); }
.empty-cart { text-align: center; padding: 60px 20px; }

/* ---------- Toast ---------- */
.toast {
    position: fixed; right: 20px; bottom: 20px; z-index: 3000;
    background: var(--surface-2); border: 1px solid var(--accent-light); color: #fff;
    padding: 12px 18px; border-radius: 8px; box-shadow: 0 8px 30px rgba(0,0,0,.5);
    opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 40px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1.4fr 1fr 1fr; padding: 40px 20px 24px; }
.site-footer h3 { font-size: 1rem; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 3px 0; }
.site-footer p { color: var(--text-muted); font-size: .95rem; }
.footer-bottom { border-top: 1px solid var(--border); padding: 16px 20px; color: var(--text-muted); font-size: .88rem; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .two-col, .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .footer-grid { grid-template-columns: 1fr; }

    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .main-nav {
        position: absolute; top: var(--header-h); left: 0; right: 0;
        background: var(--surface); border-bottom: 1px solid var(--border);
        display: none; padding: 10px 20px 16px;
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
    .main-nav a { padding: 12px; }
    .header-inner { position: relative; }
}

@media (max-width: 600px) {
    .hero { padding: 70px 0 60px; }
    .section { padding: 44px 0; }
    .cart-item { grid-template-columns: 1fr auto; }
    .cart-item .qty { grid-column: 1; }
    .cart-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}
