/* =========================================================
   SLCH Studio – Tebex Theme
   Liquid Glass · Blau & Schwarz · clean
   ========================================================= */

:root {
    --bg-0: #05070d;
    --bg-1: #0a0f1e;
    --bg-2: #0f1730;
    --blue: #2f6bff;
    --blue-soft: #5b8dff;
    --cyan: #4fd1ff;
    --text: #eef3ff;
    --muted: #94a3c4;
    --line: rgba(160, 190, 255, .14);
    --glass: rgba(18, 28, 56, .45);
    --glass-strong: rgba(24, 38, 76, .6);
    --radius: 22px;
    --radius-sm: 14px;
    --shadow: 0 20px 60px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .04) inset;
    --tebex-legal-footer-background-color: #0a0f1e;
    --tebex-legal-footer-text-color: #94a3c4;
    --tebex-legal-footer-border-color: rgba(160, 190, 255, .14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg-0);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; }

/* ---------- Hintergrund ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden;
    background: radial-gradient(120% 90% at 50% -10%, var(--bg-2), var(--bg-0) 60%); }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.orb-1 { width: 520px; height: 520px; background: #1f4fe0; top: -160px; left: -120px; animation: float 18s ease-in-out infinite; }
.orb-2 { width: 460px; height: 460px; background: #0b7bd1; bottom: -160px; right: -100px; opacity: .4; animation: float 22s ease-in-out infinite reverse; }
.orb-3 { width: 320px; height: 320px; background: #3a2fff; top: 45%; left: 55%; opacity: .25; animation: float 26s ease-in-out infinite; }
.bg-grid { position: absolute; inset: 0;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px; opacity: .18;
    mask-image: radial-gradient(70% 60% at 50% 20%, #000, transparent 80%);
    -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000, transparent 80%); }
@keyframes float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px, 30px); } }

/* ---------- Liquid Glass ---------- */
.glass {
    position: relative;
    background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.02) 40%), var(--glass);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.glass::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,0) 28%, rgba(255,255,255,0) 70%, rgba(79,209,255,.12));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    padding: 1px;
}

/* ---------- Layout ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 120px 20px 40px; display: flex; flex-direction: column; gap: 28px; }

/* ---------- Topbar ---------- */
.topbar { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; padding: 0 16px; }
.topbar-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 20px; padding: 10px 14px 10px 18px; border-radius: 999px; }
.glass-bar { background: rgba(10, 16, 34, .55); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #04112e; font-weight: 800;
    box-shadow: 0 6px 20px -4px rgba(47,107,255,.7); }
.brand-logo { height: 34px; width: auto; }
.brand-text { font-size: 17px; }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; flex-wrap: wrap; }
.nav-link { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); transition: .2s; }
.nav-link:hover, .nav-link.active { color: var(--text); background: rgba(91,141,255,.16); }
.nav-drop { position: relative; }
.nav-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 180px; padding: 8px; display: none; flex-direction: column; border-radius: 18px; }
.nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu { display: flex; }
.nav-menu a { padding: 9px 12px; border-radius: 10px; font-size: 14px; color: var(--muted); }
.nav-menu a:hover { background: rgba(91,141,255,.16); color: var(--text); }
.caret { font-size: 10px; opacity: .7; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: rgba(255,255,255,.06); font-size: 13px; }
.user-avatar { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); font-weight: 700; font-size: 12px; }
.user-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-link { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); transition: .2s; }
.icon-link:hover { background: rgba(255,255,255,.08); color: var(--text); }
.cart-btn { display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
    background: linear-gradient(135deg, var(--blue), #1b46c9); box-shadow: 0 8px 24px -8px rgba(47,107,255,.8); transition: .2s; }
.cart-btn:hover { transform: translateY(-1px); filter: brightness(1.1); }
.cart-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #fff; color: #0a1a4d; font-size: 12px; font-weight: 800; display: grid; place-items: center; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
    font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; transition: .2s; color: var(--text); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--blue-soft), var(--blue) 50%, #1b46c9); box-shadow: 0 10px 28px -10px rgba(47,107,255,.9), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn-ghost { background: rgba(255,255,255,.06); border-color: var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-done { background: rgba(79,209,255,.14); border-color: rgba(79,209,255,.4); color: var(--cyan); }
.btn-disabled { background: rgba(255,255,255,.04); color: var(--muted); cursor: not-allowed; border-color: var(--line); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; padding: 56px; overflow: hidden; }
.badge { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--cyan); background: rgba(79,209,255,.1); border: 1px solid rgba(79,209,255,.3); margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; margin-bottom: 16px;
    background: linear-gradient(180deg, #fff, #a9c0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 17px; max-width: 54ch; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-visual { position: relative; min-height: 260px; }
.hero-orb { position: absolute; inset: 10% 10%; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.5), rgba(79,209,255,.35) 25%, rgba(47,107,255,.5) 55%, rgba(5,7,13,0) 75%);
    filter: blur(2px); animation: float 14s ease-in-out infinite; }
.hero-card { position: absolute; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.hero-card .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.hc-1 { top: 12%; left: 0; } .hc-2 { top: 46%; right: 0; } .hc-3 { bottom: 8%; left: 14%; }

/* ---------- Sektionen ---------- */
.section { display: flex; flex-direction: column; gap: 20px; }
.section-head h2 { font-size: 28px; font-weight: 700; }
.section-head p { color: var(--muted); margin-top: 4px; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.tile { padding: 28px; display: flex; flex-direction: column; gap: 10px; transition: .25s; }
.tile:hover { transform: translateY(-4px); border-color: rgba(91,141,255,.5); box-shadow: 0 30px 70px -25px rgba(47,107,255,.5); }
.tile-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: var(--cyan);
    background: rgba(79,209,255,.1); border: 1px solid rgba(79,209,255,.25); margin-bottom: 6px; }
.tile h3 { font-size: 20px; }
.tile p { color: var(--muted); font-size: 14px; }
.tile-cta { margin-top: auto; padding-top: 10px; color: var(--blue-soft); font-weight: 600; font-size: 14px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature { padding: 26px; }
.feature-num { font-size: 13px; font-weight: 700; color: var(--blue-soft); letter-spacing: .1em; }
.feature h3 { font-size: 18px; margin: 8px 0 6px; }
.feature p { color: var(--muted); font-size: 14px; }

/* ---------- Seitenkopf ---------- */
.page-head { padding: 32px 36px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.page-desc { max-width: 70ch; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs .current { color: var(--text); }
.crumbs-solo { padding: 0 6px; }
.count-chip { font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: rgba(91,141,255,.14); color: var(--blue-soft); }

/* ---------- Produkte ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.product { overflow: hidden; display: flex; flex-direction: column; transition: .25s; }
.product:hover { transform: translateY(-5px); border-color: rgba(91,141,255,.5); box-shadow: 0 30px 70px -25px rgba(47,107,255,.5); }
.product-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: rgba(5,7,13,.5); display: block; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product:hover .product-media img { transform: scale(1.05); }
.product-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); opacity: .6; }
.product-placeholder.big { min-height: 320px; }
.sale-badge { position: absolute; top: 12px; left: 12px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #04112e; background: linear-gradient(135deg, var(--cyan), #9ee7ff); }
.product-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product-name { font-size: 17px; font-weight: 700; }
.price-row { display: flex; align-items: baseline; gap: 10px; }
.price { font-size: 20px; font-weight: 800; }
.price small { font-size: 12px; font-weight: 600; color: var(--muted); }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 14px; }
.price-row-lg .price { font-size: 34px; }
.product-actions { display: flex; gap: 8px; margin-top: auto; }
.product-actions .btn { white-space: nowrap; }
.product-actions .btn-primary, .product-actions .btn-done, .product-actions .btn-disabled { flex: 1; }
.product-grid.is-list { grid-template-columns: 1fr; }
.product-grid.is-list .product { flex-direction: row; }
.product-grid.is-list .product-media { width: 260px; aspect-ratio: auto; flex-shrink: 0; }

/* ---------- Detailseite ---------- */
.detail { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; }
.detail-media { position: relative; overflow: hidden; display: grid; place-items: center; min-height: 320px; }
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { padding: 36px; display: flex; flex-direction: column; gap: 20px; }
.detail-info h1 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.detail-actions { display: flex; flex-direction: column; gap: 10px; }
.perks { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; color: var(--muted); font-size: 14px; }
.perks li { padding-left: 26px; position: relative; }
.perks li::before { content: '✓'; position: absolute; left: 0; color: var(--cyan); font-weight: 800; }
.detail-desc { padding: 32px 36px; }
.detail-desc h2 { font-size: 22px; margin-bottom: 14px; }

/* ---------- Prose (Beschreibungen) ---------- */
.prose { color: #c9d6f2; font-size: 15px; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--text); margin: 18px 0 8px; }
.prose p { margin: 0 0 12px; }
.prose a { color: var(--blue-soft); text-decoration: underline; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 12px; }
.prose img { border-radius: var(--radius-sm); margin: 12px 0; }
.prose iframe { max-width: 100%; border-radius: var(--radius-sm); border: 0; }
.prose code { background: rgba(255,255,255,.08); padding: 2px 6px; border-radius: 6px; }

/* ---------- Warenkorb ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.cart-list { padding: 8px 20px; }
.cart-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-row:last-child { border-bottom: 0; }
.cart-thumb { width: 72px; height: 54px; border-radius: 12px; overflow: hidden; background: rgba(5,7,13,.5); flex-shrink: 0; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { flex: 1; }
.cart-price { font-weight: 700; }
.cart-price small { color: var(--muted); font-size: 12px; }
.cart-remove { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); font-size: 20px; transition: .2s; }
.cart-remove:hover { background: rgba(255,80,80,.15); color: #ff8b8b; }
.cart-summary { padding: 26px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 100px; }
.cart-summary h3 { font-size: 18px; }
.sum-row { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; }
.sum-total { color: var(--text); font-size: 18px; font-weight: 800; padding-top: 12px; border-top: 1px solid var(--line); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- Login / Formulare ---------- */
.login { max-width: 480px; margin: 20px auto; padding: 40px; display: flex; flex-direction: column; gap: 16px; align-items: stretch; text-align: center; }
.login h1 { font-size: 30px; font-weight: 800; }
.login .badge { align-self: center; margin-bottom: 4px; }
.form { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.input { width: 100%; padding: 14px 16px; border-radius: var(--radius-sm); font: inherit; color: var(--text);
    background: rgba(5,7,13,.55); border: 1px solid var(--line); outline: none; transition: .2s; }
.input:focus { border-color: var(--blue-soft); box-shadow: 0 0 0 4px rgba(47,107,255,.2); }
select.input option { background: #0a0f1e; }

/* ---------- Leer / Toast ---------- */
.empty { padding: 60px 30px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty h3 { font-size: 22px; }
.empty p { color: var(--muted); margin-bottom: 8px; }
.toast { position: fixed; top: 84px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 14px;
    padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 500;
    background: rgba(10,16,34,.8); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border: 1px solid rgba(79,209,255,.4); box-shadow: 0 20px 50px -20px #000; animation: toastIn .4s ease; }
.toast-error, .toast-danger { border-color: rgba(255,100,100,.5); }
.toast-close { background: none; border: 0; color: var(--muted); font-size: 20px; cursor: pointer; line-height: 1; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -10px); } }

/* ---------- Footer ---------- */
.site-footer { padding: 20px 16px 28px; }
.site-footer-inner { max-width: 1180px; margin: 0 auto; padding: 28px 32px; display: flex; flex-direction: column; gap: 16px; border-radius: 26px; }
.footer-brand { display: flex; flex-direction: column; gap: 2px; }
.footer-brand span { color: var(--muted); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 12px; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--line); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero { grid-template-columns: 1fr; padding: 36px 28px; }
    .hero-visual { display: none; }
    .detail, .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .topbar-inner { border-radius: 26px; flex-wrap: wrap; gap: 10px; }
    .nav { order: 3; flex: 1 1 100%; width: 100%; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
    .topbar { position: relative; top: 0; padding-top: 12px; }
    .wrap { padding-top: 20px; }
    .cart-btn span:not(.cart-count) { display: none; }
    .user-name { display: none; }
    .topbar-actions { margin-left: auto; }
}
@media (max-width: 560px) {
    .product-grid.is-list .product { flex-direction: column; }
    .product-grid.is-list .product-media { width: 100%; aspect-ratio: 16/10; }
    .page-head, .detail-desc, .detail-info { padding: 24px; }
    .login { padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Eigenständige Shop-Seite: Ergänzungen ---------- */
.brand-mark-img { height: 38px; width: 38px; object-fit: contain; filter: drop-shadow(0 4px 14px rgba(79,209,255,.35)); }
.nav-link.active { color: var(--text); background: rgba(91,141,255,.16); }
.skeleton { min-height: 220px; border-radius: var(--radius); background: linear-gradient(100deg, rgba(255,255,255,.04) 30%, rgba(255,255,255,.1) 50%, rgba(255,255,255,.04) 70%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; border: 1px solid var(--line); }
@keyframes shimmer { to { background-position: -200% 0; } }
.skeleton-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.login-options { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.notice { padding: 18px 22px; border-radius: var(--radius-sm); border: 1px solid rgba(255,190,90,.4); background: rgba(255,190,90,.08); color: #ffd9a0; font-size: 14px; }
.sub-title { font-size: 20px; font-weight: 700; margin: 6px 0 -6px; }
.footer-links a, .nav-menu a { cursor: pointer; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- Login-Dialog ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(2,4,10,.65); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal-box { width: 100%; max-width: 400px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.modal-box h3 { font-size: 22px; }

.footer-legal { padding-top: 4px; font-size: 13px; }

.login-btn{padding:9px 16px;white-space:nowrap}
