Geizkragen/style.css

662 lines
15 KiB
CSS
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* ==========================================================
GEIZKRAGEN DESIGN SYSTEM
Modern Dark Theme mit Inter Font
========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
/* ==========================================================
RESET & BASIS
========================================================== */
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
:root {
/* ─── Farben ─── */
--bg-main: #0c1017;
--bg-card: #151c28;
--bg-surface: #1a2332;
--bg-header: #111827;
--bg-input: #1a2233;
--color-primary: #3b82f6;
--color-primary-hover:#2563eb;
--color-primary-soft: rgba(59, 130, 246, 0.12);
--color-accent: #10b981;
--color-accent-soft: rgba(16, 185, 129, 0.12);
--color-danger: #ef4444;
--color-danger-soft: rgba(239, 68, 68, 0.12);
--color-warning: #f59e0b;
--color-success: #22c55e;
--text-primary: #f1f5f9;
--text-secondary: #94a3b8;
--text-muted: #64748b;
--text-invert: #ffffff;
--border-subtle: rgba(255, 255, 255, 0.06);
--border-default: rgba(255, 255, 255, 0.1);
--border-strong: rgba(255, 255, 255, 0.15);
/* ─── Radii ─── */
--radius-sm: 6px;
--radius-md: 10px;
--radius-lg: 14px;
--radius-xl: 20px;
--radius-full: 9999px;
/* ─── Schatten ─── */
--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
--shadow-md: 0 8px 24px rgba(0, 0, 0, 0.2);
--shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.3);
--shadow-glow: 0 0 30px rgba(59, 130, 246, 0.15);
/* ─── Transitions ─── */
--transition-fast: 150ms ease;
--transition-normal: 250ms ease;
--transition-smooth: 350ms cubic-bezier(0.4, 0, 0.2, 1);
/* ─── Spacing ─── */
--nav-gutter: 1.5rem;
/* ─── Font ─── */
--font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
html {
scroll-behavior: smooth;
}
body {
font-family: var(--font-family);
background: var(--bg-main);
color: var(--text-primary);
line-height: 1.55;
min-height: 100vh;
display: flex;
flex-direction: column;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
main {
flex: 1 0 auto;
}
a {
color: var(--color-primary);
text-decoration: none;
transition: color var(--transition-fast);
}
a:hover {
color: var(--color-primary-hover);
}
::selection {
background: rgba(59, 130, 246, 0.3);
color: var(--text-invert);
}
/* ==========================================================
CONTAINER
========================================================== */
.container {
max-width: 1400px;
margin-inline: auto;
padding-inline: var(--nav-gutter);
}
/* ==========================================================
HEADER
========================================================== */
.header {
position: sticky;
top: 0;
z-index: 1000;
background: rgba(17, 24, 39, 0.85);
backdrop-filter: blur(20px) saturate(180%);
-webkit-backdrop-filter: blur(20px) saturate(180%);
border-bottom: 1px solid var(--border-subtle);
padding: 0;
}
/* ==========================================================
NAVBAR
========================================================== */
.nav {
min-height: 60px;
width: 100%;
display: flex;
align-items: center;
position: relative;
}
.nav__logoLink {
display: inline-flex;
align-items: center;
padding-left: 0;
margin-left: 0;
transition: opacity var(--transition-fast);
}
.nav__logoLink:hover {
opacity: 0.85;
}
.nav__logo {
display: block;
margin: 0;
max-width: 150px;
height: auto;
}
.nav__inner {
margin-right: 0;
flex: 1;
width: 100%;
display: flex;
justify-content: flex-end;
align-items: center;
gap: 1.25rem;
}
.nav__inner.container {
margin-left: auto;
}
.nav__menu {
display: flex;
align-items: center;
}
.nav__list {
display: flex;
gap: 0.25rem;
list-style: none;
margin: 0;
padding: 0;
}
.nav__link {
color: var(--text-secondary);
font-size: 0.9rem;
font-weight: 500;
text-decoration: none;
padding: 0.5rem 1rem;
border-radius: var(--radius-md);
transition: color var(--transition-fast), background var(--transition-fast);
}
.nav__link:hover {
color: var(--text-invert);
background: rgba(255, 255, 255, 0.06);
}
.nav__link.active {
color: var(--color-primary);
background: var(--color-primary-soft);
}
/* ─── Nav Actions ─── */
.nav__actions {
display: flex;
align-items: center;
gap: 0.35rem;
}
.nav__search,
.nav__login,
.nav__toggle,
.nav__close {
font-size: 1.3rem;
color: var(--text-secondary);
cursor: pointer;
transition: color var(--transition-fast), background var(--transition-fast);
padding: 0.45rem;
border-radius: var(--radius-md);
display: inline-flex;
align-items: center;
justify-content: center;
}
.nav__search:hover,
.nav__login:hover {
color: var(--text-invert);
background: rgba(255, 255, 255, 0.08);
}
.nav__wishlist {
color: var(--text-secondary);
}
.nav__wishlist:hover {
color: var(--text-invert);
background: rgba(255, 255, 255, 0.08);
}
/* ==========================================================
TOGGLE / CLOSE
========================================================== */
.nav__toggle {
display: none;
}
.nav__close {
display: none;
}
/* ==========================================================
MOBILE NAV
========================================================== */
@media (max-width: 900px) {
.nav__toggle {
display: flex;
}
.nav__menu {
position: fixed;
top: 0;
right: -100%;
width: 300px;
height: 100%;
background: var(--bg-header);
border-left: 1px solid var(--border-subtle);
padding: 5rem 2rem 2rem;
transition: right 300ms cubic-bezier(0.4, 0, 0.2, 1);
flex-direction: column;
align-items: flex-start;
gap: 2rem;
z-index: 1001;
}
.nav__menu.show-menu {
right: 0;
}
.nav__list {
flex-direction: column;
gap: 0.5rem;
width: 100%;
}
.nav__link {
font-size: 1.05rem;
color: var(--text-secondary);
display: block;
padding: 0.75rem 1rem;
border-radius: var(--radius-md);
}
.nav__link:hover {
background: rgba(255, 255, 255, 0.06);
}
.nav__close {
display: flex;
position: absolute;
top: 1.2rem;
right: 1.2rem;
color: var(--text-secondary);
}
.nav__close:hover {
color: var(--text-invert);
}
}
/* ==========================================================
NAVBAR: ZENTRIERTE SUCHE
========================================================== */
.nav__searchForm {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
display: flex;
align-items: center;
justify-content: center;
width: min(500px, calc(100% - 520px));
z-index: 1;
}
.nav__searchForm.auth__form,
.nav__searchForm .auth__field,
.nav__searchForm.auth__search {
margin-top: 0;
}
.nav__searchField {
width: 100%;
margin-top: 0;
}
.nav__searchInput {
width: 100%;
height: 40px;
padding: 0 16px;
border-radius: var(--radius-full);
border: 1px solid var(--border-default);
background: rgba(255, 255, 255, 0.05);
color: var(--text-primary);
font-size: 0.9rem;
font-family: var(--font-family);
outline: none;
transition: border-color var(--transition-fast),
background var(--transition-fast),
box-shadow var(--transition-fast);
}
.nav__searchInput::placeholder {
color: var(--text-muted);
}
.nav__searchInput:focus {
border-color: var(--color-primary);
background: rgba(255, 255, 255, 0.08);
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
@media (max-width: 900px) {
.nav__searchForm {
display: none;
}
}
/* ==========================================================
LAYOUT (Grid mit Sidebar)
========================================================== */
.layout {
margin: 2rem auto;
padding: 0 2rem;
display: grid;
grid-template-columns: 260px 1fr;
gap: 2rem;
}
/* ==========================================================
FILTER / SIDEBAR
========================================================== */
.sidebar {
background: var(--bg-card);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-lg);
padding: 1.25rem;
box-shadow: var(--shadow-sm);
}
.sidebar h3 {
font-size: 1rem;
font-weight: 600;
margin-bottom: 1rem;
color: var(--text-primary);
}
.filter-group {
margin-bottom: 1.2rem;
}
.filter-group label {
display: block;
font-size: 0.85rem;
color: var(--text-muted);
margin-bottom: 0.35rem;
}
.filter-group input,
.filter-group select {
width: 100%;
padding: 0.5rem 0.65rem;
border-radius: var(--radius-sm);
border: 1px solid var(--border-default);
background: var(--bg-input);
color: var(--text-primary);
font-size: 0.9rem;
font-family: var(--font-family);
transition: border-color var(--transition-fast);
}
.filter-group input:focus,
.filter-group select:focus {
border-color: var(--color-primary);
outline: none;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
/* ==========================================================
PRODUCT GRID
========================================================== */
.product-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
gap: 1.6rem;
}
/* ==========================================================
PRODUCT CARD (global)
========================================================== */
.product-card {
background: var(--bg-card);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-sm);
display: flex;
flex-direction: column;
transition: transform var(--transition-smooth),
box-shadow var(--transition-smooth),
border-color var(--transition-smooth);
}
.product-card:hover {
transform: translateY(-6px);
box-shadow: var(--shadow-md);
border-color: var(--border-strong);
}
.product-image {
height: 180px;
background: var(--bg-surface);
border-top-left-radius: var(--radius-lg);
border-top-right-radius: var(--radius-lg);
display: flex;
align-items: center;
justify-content: center;
font-size: 0.8rem;
color: var(--text-muted);
}
.product-content {
padding: 1rem 1.1rem 1.2rem;
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.product-title {
font-size: 0.95rem;
font-weight: 600;
color: var(--text-primary);
}
.product-meta {
font-size: 0.8rem;
color: var(--text-muted);
}
.product-price {
margin-top: 0.6rem;
font-size: 1.4rem;
font-weight: 700;
color: var(--color-primary);
}
.product-actions {
margin-top: auto;
display: flex;
gap: 0.5rem;
}
/* ==========================================================
BUTTONS
========================================================== */
.btn {
flex: 1;
padding: 0.55rem 1rem;
border-radius: var(--radius-md);
font-size: 0.85rem;
font-weight: 500;
font-family: var(--font-family);
cursor: pointer;
border: none;
transition: background var(--transition-fast),
transform var(--transition-fast),
box-shadow var(--transition-fast);
}
.btn:hover {
transform: translateY(-1px);
}
.btn:active {
transform: translateY(0);
}
.btn-primary {
background: var(--color-primary);
color: #fff;
box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}
.btn-primary:hover {
background: var(--color-primary-hover);
box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}
.btn-secondary {
background: rgba(255, 255, 255, 0.06);
color: var(--text-primary);
border: 1px solid var(--border-default);
}
.btn-secondary:hover {
background: rgba(255, 255, 255, 0.1);
border-color: var(--border-strong);
}
.btn-danger {
background: var(--color-danger);
color: #fff;
box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}
.btn-danger:hover {
background: #dc2626;
box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}
/* ==========================================================
BADGES
========================================================== */
.badge {
display: inline-flex;
align-items: center;
padding: 0.2rem 0.6rem;
border-radius: var(--radius-full);
font-size: 0.7rem;
font-weight: 600;
letter-spacing: 0.3px;
}
.badge-green {
background: var(--color-accent-soft);
color: var(--color-accent);
}
.badge-red {
background: var(--color-danger-soft);
color: var(--color-danger);
}
/* ==========================================================
RESPONSIVE LAYOUT
========================================================== */
@media (max-width: 900px) {
.layout {
grid-template-columns: 1fr;
}
.sidebar {
order: 2;
}
}
/* ==========================================================
ICONS
========================================================== */
.icon-user {
width: 22px;
height: 22px;
fill: currentColor;
}
/* ==========================================================
FOOTER
========================================================== */
.footer {
margin-top: auto;
background: rgba(17, 24, 39, 0.85);
backdrop-filter: blur(20px) saturate(180%);
-webkit-backdrop-filter: blur(20px) saturate(180%);
border-top: 1px solid var(--border-subtle);
}
.footer .container {
padding-block: 1.5rem;
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
}
.footer p {
margin: 0;
font-size: 0.85rem;
color: var(--text-muted);
}
.footer__nav {
display: flex;
align-items: center;
gap: 1.5rem;
}
.footer__nav a {
color: var(--text-secondary);
text-decoration: none;
font-size: 0.85rem;
font-weight: 500;
padding: 0.35rem 0.75rem;
border-radius: var(--radius-sm);
transition: color var(--transition-fast),
background var(--transition-fast);
}
.footer__nav a:hover,
.footer__nav a:focus-visible {
color: var(--text-invert);
background: rgba(255, 255, 255, 0.06);
}
@media (max-width: 600px) {
.footer .container {
flex-direction: column;
align-items: center;
text-align: center;
}
}