/* =========================================
   AUSBAU MÜGELN - BEHÖRDENPORTAL
   Dark Blue Modern Theme
   ========================================= */

/* CSS Variables */
:root {
    /* Colors - Dark Blue Retro Theme */
    --bg-primary: #0a0e17;
    --bg-secondary: #0f1520;
    --bg-tertiary: #151c2c;
    
    /* Accent Colors - Blue & White */
    --accent-primary: #3b82f6;
    --accent-secondary: #60a5fa;
    --accent-glow: rgba(59, 130, 246, 0.5);
    
    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Glass Effect */
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(59, 130, 246, 0.2);
    --glass-hover: rgba(59, 130, 246, 0.1);
    
    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --emergency: #0ea5e9;
    
    /* Spacing – scales proportionally between 15" (~1366px) and 27" (~2560px) */
    --space-xs: clamp(0.15rem, 0.12vw + 0.1rem, 0.3rem);
    --space-sm: clamp(0.3rem, 0.25vw + 0.2rem, 0.55rem);
    --space-md: clamp(0.6rem, 0.45vw + 0.35rem, 1.1rem);
    --space-lg: clamp(0.85rem, 0.7vw + 0.5rem, 1.6rem);
    --space-xl: clamp(1.1rem, 0.9vw + 0.65rem, 2.2rem);
    --space-2xl: clamp(1.5rem, 1.4vw + 0.85rem, 3.25rem);
    --space-3xl: clamp(1.8rem, 1.8vw + 1rem, 4.25rem);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px var(--accent-glow);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: clamp(0.78rem, 0.3vw + 0.58rem, 1.05rem);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(30, 64, 175, 0.1) 0%, transparent 70%);
    animation: bgPulse 15s ease-in-out infinite;
}

.bg-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Glass Effect - Retro Style */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 
        var(--shadow-lg),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 40px rgba(59, 130, 246, 0.08);
}

/* Retro Glow Effect */
.glass:hover {
    box-shadow: 
        var(--shadow-lg),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 60px rgba(59, 130, 246, 0.12);
}

/* =========================================
   TOP HEADER BAR (integrated into navbar)
   ========================================= */
.nav-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(0.5rem, 1vw, 1.5rem);
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-sm);
    border-bottom: 1px solid var(--glass-border);
}

.contact-info-compact {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.contact-item-compact {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.contact-item-compact a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.contact-item-compact a:hover {
    color: var(--accent-primary);
}

.social-links {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-base);
}

.social-icon:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

.nav-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(0.5rem, 1vw, 1.5rem);
}

/* =========================================
   NAVIGATION
   ========================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-sm) clamp(1rem, 2vw, 3rem);
    transition: var(--transition-base);
}

.navbar.scrolled {
    background: rgba(10, 14, 23, 0.95);
    box-shadow: var(--shadow-lg);
}

.nav-container {
    max-width: 94vw;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.25rem;
}

.nav-logo-img {
    height: clamp(34px, 3vw, 58px);
    width: auto;
    object-fit: contain;
    background: white;
    padding: clamp(3px, 0.15vw, 4px) clamp(5px, 0.25vw, 6px);
    border-radius: 8px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--radius-md);
    color: white;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.logo-icon svg {
    width: 24px;
    height: 24px;
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: var(--transition-base);
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 80%;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* User Menu Dropdown */
.user-menu {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + var(--space-sm));
    right: 0;
    min-width: 220px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-base);
    box-shadow: var(--shadow-xl);
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: var(--space-sm) var(--space-md);
}

.dropdown-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dropdown-value {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-top: 2px;
}

.dropdown-divider {
    height: 1px;
    background: var(--glass-border);
    margin: var(--space-sm) 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.dropdown-item:hover {
    background: var(--glass-hover);
    color: var(--text-primary);
}

.dropdown-item.logout:hover {
    color: var(--error);
}

/* =========================================
   BUTTONS
   ========================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    background: var(--glass-hover);
    border-color: var(--accent-primary);
}

.btn-emergency {
    background: linear-gradient(135deg, #b91c1c, #7f1d1d);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    font-weight: 600;
}

.btn-emergency:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    background: linear-gradient(135deg, #dc2626, #991b1b);
}

.btn-user {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-user:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.btn-test {
    width: 100%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: var(--space-md);
}

.btn-test:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
}

.btn-sm {
    padding: var(--space-xs) var(--space-md);
    font-size: 0.875rem;
}

.btn-full {
    width: 100%;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-md);
}

/* =========================================
   MODAL
   ========================================= */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3200;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    padding: var(--space-lg);
    overflow-y: auto;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    width: 100%;
    max-width: 420px;
    padding: clamp(1.2rem, 1.5vw, 2rem);
    border-radius: var(--radius-xl);
    position: relative;
    margin: auto;
    flex-shrink: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.modal.glass {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: calc(100vh - 2 * var(--space-lg));
}

.modal-close {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--glass-hover);
    color: var(--text-primary);
}

.modal-header {
    text-align: center;
    margin-bottom: var(--space-md);
}

.modal.glass .modal-header {
    flex-shrink: 0;
    padding: 0 0 clamp(0.8rem, 1.2vw, 1.5rem);
    margin-bottom: var(--space-md);
}

.modal.glass .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    margin-bottom: var(--space-md);
    min-height: 0;
}

.modal.glass .modal-footer {
    flex-shrink: 0;
    padding: 0;
    margin-top: var(--space-md);
    border-top: 1px solid var(--glass-border);
    padding-top: var(--space-md);
}

/* Scrollbar styling for register modal body */
.modal.glass .modal-body {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) transparent;
}

.modal.glass .modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal.glass .modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal.glass .modal-body::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 3px;
}

.modal.glass .modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

.modal-icon {
    width: 45px;
    height: 45px;
    margin: 0 auto var(--space-sm);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.modal-icon svg {
    width: 22px;
    height: 22px;
}

.modal-header h2 {
    font-size: 1.05rem;
    margin-bottom: var(--space-xs);
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Form Styles */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
    color: var(--text-secondary);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.input-wrapper > svg {
    position: absolute;
    left: var(--space-md);
    color: var(--text-muted);
}

.input-wrapper input {
    width: 100%;
    padding: var(--space-md);
    padding-left: 38px;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: var(--transition-base);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.input-wrapper.has-password-toggle input {
    padding-right: 42px;
}

/* Hide browser-native password reveal icon (Edge / Chrome) 
   so only our custom eye-toggle is shown */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none !important;
}

.password-toggle-btn {
    position: absolute;
    right: var(--space-sm);
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.password-toggle-btn:hover,
.password-toggle-btn:focus-visible {
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.15);
    outline: none;
}

.password-toggle-btn .eye-on {
    display: none;
}

.password-toggle-btn .eye-closed {
    display: none;
}

body.lucide-ready .password-toggle-btn .eye-closed {
    display: inline-flex;
}

.password-toggle-btn.is-visible .eye-closed {
    display: none;
}

.password-toggle-btn.is-visible .eye-on {
    display: inline-flex;
}

.form-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    font-size: 0.875rem;
}

.login-divider {
    display: flex;
    align-items: center;
    margin: var(--space-md) 0;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

.login-divider span {
    padding: 0 var(--space-md);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.login-hint {
    text-align: center;
    margin-top: var(--space-lg);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.login-hint code {
    display: block;
    margin-top: var(--space-xs);
    padding: var(--space-sm);
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-family: 'Monaco', 'Consolas', monospace;
    color: var(--accent-secondary);
}

/* 2FA Step */
.twofa-step {
    animation: fadeIn 0.3s ease;
}

.twofa-step .modal-header p {
    line-height: 1.5;
}

.twofa-step .modal-header strong {
    color: var(--accent-secondary);
    font-weight: 600;
}

.twofa-icon {
    background: linear-gradient(135deg, #10b981, #059669) !important;
}

.twofa-back-btn {
    font-size: 0.8rem;
}

/* =========================================
   MAIN CONTENT
   ========================================= */

.main-content {
    padding-top: clamp(45px, 4vw, 75px);
    min-height: 100vh;
}

.section {
    display: none;
    min-height: calc(100vh - clamp(60px, 5.5vw, 100px));
    padding: clamp(1rem, 2vh, 3rem) clamp(0.5rem, 2vw, 3rem);
    margin-top: clamp(50px, 5vh, 90px);
}

.section.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.section-container {
    max-width: min(1400px, 94vw);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-lg);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent-secondary);
    margin-bottom: var(--space-md);
}

.section-header h2 {
    font-size: clamp(1.6rem, 1.8vw + 0.5rem, 2.8rem);
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--text-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================
   HERO SECTION
   ========================================= */

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    min-height: calc(100vh - clamp(130px, 11vw, 200px));
    max-width: min(1400px, 94vw);
    margin: 0 auto;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--accent-secondary);
    border: 1px solid var(--accent-glow);
    margin-bottom: var(--space-lg);
    /* Override glass backdrop-filter that clips descenders (g, p, y) */
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--bg-tertiary);
}

.hero h1 {
    font-size: clamp(2rem, 2.5vw + 0.8rem, 4rem);
    font-weight: 700;
    line-height: 1.3;
    padding-bottom: 0.25em;
    margin-bottom: calc(var(--space-lg) - 0.25em);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 0.5vw + 0.6rem, 1.35rem);
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.hero-text {
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    padding: var(--space-lg);
    border-radius: var(--radius-xl);
    text-align: center;
    max-width: clamp(180px, 14vw, 260px);
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

.hero-card-icon {
    width: clamp(40px, 3vw, 56px);
    height: clamp(40px, 3vw, 56px);
    margin: 0 auto var(--space-md);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(96, 165, 250, 0.1));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-secondary);
}

.hero-card-icon svg {
    width: 28px;
    height: 28px;
}

.hero-card h3 {
    font-size: clamp(0.95rem, 0.7vw + 0.45rem, 1.15rem);
    margin-bottom: var(--space-xs);
}

.hero-card p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.35;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    max-width: min(1400px, 94vw);
    margin: var(--space-3xl) auto 0;
}

.feature-card {
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.feature-icon {
    width: clamp(40px, 3.2vw, 64px);
    height: clamp(40px, 3.2vw, 64px);
    margin: 0 auto var(--space-md);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(96, 165, 250, 0.1));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-secondary);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* =========================================
   ABOUT SECTION
   ========================================= */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.about-content h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.about-list {
    list-style: none;
    margin-top: var(--space-xl);
}

.about-list li {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    color: var(--text-secondary);
}

.about-list svg {
    color: var(--success);
    flex-shrink: 0;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
}

.stat-item {
    text-align: center;
    padding: var(--space-lg);
}

.stat-number {
    display: block;
    font-size: clamp(1.6rem, 1.5vw + 0.6rem, 2.8rem);
    font-weight: 700;
    color: var(--accent-secondary);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* =========================================
   SERVICES SECTION
   ========================================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl);
}

.service-card {
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.service-icon {
    width: clamp(44px, 3.5vw, 72px);
    height: clamp(44px, 3.5vw, 72px);
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(96, 165, 250, 0.1));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-secondary);
}

.service-icon svg {
    width: 32px;
    height: 32px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.service-card > p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: var(--space-md);
}

.service-card ul {
    list-style: none;
}

.service-card li {
    padding: var(--space-xs) 0;
    color: var(--text-muted);
    font-size: 0.875rem;
    position: relative;
    padding-left: var(--space-md);
}

.service-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

.services-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    gap: var(--space-xl);
}

.cta-content h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

.cta-content p {
    color: var(--text-secondary);
}

/* =========================================
   PRODUKTKATALOG (öffentlich)
   ========================================= */

.katalog-section {
    margin-top: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.katalog-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.katalog-header h2 {
    font-size: 1.75rem;
    margin-bottom: var(--space-xs);
}

.katalog-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.katalog-filter {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.katalog-filter label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.katalog-search {
    padding: 0.6rem 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-primary);
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    font-family: inherit;
}

.katalog-search:hover {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(15, 23, 42, 0.85);
}

.katalog-search:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Custom Dropdown */
.katalog-dropdown {
    position: relative;
    min-width: 240px;
}

.katalog-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    width: 100%;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.katalog-dropdown-toggle:hover {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(15, 23, 42, 0.85);
}

.katalog-dropdown.open .katalog-dropdown-toggle {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.katalog-dropdown-chevron {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.25s ease;
}

.katalog-dropdown.open .katalog-dropdown-chevron {
    transform: rotate(180deg);
}

.katalog-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 0.35rem 0;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.katalog-dropdown.open .katalog-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.katalog-dropdown-item {
    padding: 0.55rem 1rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.katalog-dropdown-item:hover {
    background: rgba(59, 130, 246, 0.12);
    color: var(--text-primary);
}

.katalog-dropdown-item.active {
    color: var(--accent-secondary);
    font-weight: 600;
}

/* Scrollbar im Dropdown */
.katalog-dropdown-menu::-webkit-scrollbar {
    width: 5px;
}
.katalog-dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}
.katalog-dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 4px;
}

.katalog-search {
    flex: 1;
    min-width: 180px;
}

.katalog-loading {
    text-align: center;
    color: var(--text-muted);
    padding: var(--space-xl);
}

.katalog-gruppe {
    margin-bottom: var(--space-xl);
}

.katalog-gruppe-title {
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-xs);
    border-bottom: 2px solid var(--accent-primary);
    color: var(--text-primary);
}

.katalog-produkte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
}

.katalog-produkt-card {
    display: flex;
    flex-direction: column;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.katalog-produkt-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-primary);
}

/* Vorschaubild-Platzhalter */
.katalog-produkt-img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    background: rgba(255, 255, 255, 0.03);
}

.katalog-produkt-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: var(--space-sm);
}

.katalog-produkt-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.katalog-produkt-detail {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.katalog-produkt-preis {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--glass-border);
}

.katalog-netto {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent-secondary);
}

.katalog-netto small,
.katalog-brutto small {
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.katalog-brutto {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* =========================================
   KARRIERE SECTION
   ========================================= */

.karriere-intro {
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-2xl);
}

.karriere-intro h3 {
    font-size: 1.375rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.karriere-intro p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.karriere-benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.karriere-benefit {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(59, 130, 246, 0.08);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-weight: 500;
}

.karriere-benefit svg {
    color: var(--accent-secondary);
    flex-shrink: 0;
}

/* Stellen-Liste */
.stellen-liste {
    margin-bottom: var(--space-2xl);
}

.stellen-loading,
.stellen-error {
    text-align: center;
    color: var(--text-muted);
    padding: var(--space-xl);
}

.stellen-empty {
    text-align: center;
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
}

/* Stelle Card */
.stelle-card {
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-lg);
    transition: var(--transition-base);
    border: 1px solid transparent;
}

.stelle-card:hover {
    border-color: var(--accent-primary);
}

.stelle-card.stelle-expanded {
    border-color: var(--accent-primary);
}

.stelle-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-md);
}

.stelle-header-info {
    flex: 1;
}

.stelle-titel {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.stelle-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.stelle-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8125rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-secondary);
    font-weight: 500;
}

.stelle-tag svg {
    flex-shrink: 0;
}

.stelle-tag-typ {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.stelle-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-base);
    flex-shrink: 0;
}

.stelle-toggle-btn:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.stelle-expanded .stelle-toggle-btn svg {
    transform: rotate(180deg);
}

.stelle-beschreibung {
    color: var(--text-secondary);
    margin-top: var(--space-md);
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* Stelle Detail (expandable) */
.stelle-detail {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--glass-border);
}

.stelle-section {
    margin-bottom: var(--space-lg);
}

.stelle-section h4 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-secondary);
    margin-bottom: var(--space-sm);
}

.stelle-section ul {
    list-style: none;
    padding: 0;
}

.stelle-section li {
    position: relative;
    padding: var(--space-xs) 0;
    padding-left: var(--space-lg);
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.stelle-section li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 600;
}

.stelle-bewerbung {
    margin-top: var(--space-lg);
    padding: var(--space-lg);
    background: rgba(59, 130, 246, 0.06);
    border-radius: var(--radius-lg);
    text-align: center;
}

.stelle-bewerbung p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    font-size: 0.9375rem;
}

/* Karriere CTA */
.karriere-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    gap: var(--space-xl);
}

.karriere-cta .cta-content a {
    color: var(--accent-secondary);
    text-decoration: underline;
}

/* =========================================
   CONTACT SECTION
   ========================================= */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-xl);
}

.contact-info {
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
}

.contact-info h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-xl);
}

.contact-item {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.contact-item svg {
    color: var(--accent-secondary);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item strong {
    display: block;
    margin-bottom: 2px;
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.social-media-links {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-sm);
}

.social-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    color: var(--accent-primary);
    background: var(--glass-hover);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

.contact-map {
    min-height: clamp(320px, 28vw, 450px);
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 350px;
}

.route-btn {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.9375rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: var(--transition-base);
    z-index: 2;
}

/* Raise route button when map consent placeholder is visible (no cookies) */
.map-consent-placeholder ~ .route-btn {
    bottom: var(--space-sm);
}

.route-btn:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.route-btn svg {
    flex-shrink: 0;
}

/* =========================================
   PORTAL SECTION
   ========================================= */

.portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.portal-welcome h2 {
    font-size: clamp(1.2rem, 1vw + 0.5rem, 2rem);
    margin-bottom: var(--space-xs);
}

.portal-welcome p {
    color: var(--text-secondary);
}

.portal-discount {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    text-align: center;
    min-width: 88px;
    opacity: 0.8;
}

.discount-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
}

.discount-value {
    display: block;
    font-size: clamp(0.85rem, 0.55vw + 0.35rem, 1.05rem);
    font-weight: 600;
    color: var(--success);
}

.discount-role {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

/* Portal Tabs */
.portal-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    align-items: stretch;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-base);
}

.tab-btn:hover {
    background: var(--glass-hover);
    color: var(--text-primary);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-color: transparent;
    color: white;
}

.nav-shiny {
    position: relative;
    overflow: hidden;
}
.nav-shiny::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(105deg, transparent 25%, rgba(80,160,255,0.45) 50%, transparent 75%);
    animation: shiny-sweep 8s ease-in-out infinite;
    pointer-events: none;
}
.nav-shiny.shiny-off::after {
    animation: none;
    display: none;
}
@keyframes shiny-sweep {
    0% { left: -100%; }
    37.5% { left: 160%; }
    37.51%, 100% { left: -100%; }
}

.cart-badge {
    background: var(--error);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    min-width: 20px;
    text-align: center;
    line-height: 1;
    box-sizing: border-box;
    align-self: center;
}

.tab-btn.active .cart-badge {
    background: white;
    color: var(--accent-primary);
}

.portal-tab-content {
    display: none;
}

.portal-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Catalog */
.catalog-filters {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
    position: relative;
    z-index: 100;
}

.search-input {
    flex: 1;
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.filter-select {
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
}

/* Hierarchical category dropdown */
.filter-dropdown {
    position: relative;
    min-width: 220px;
}
.filter-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    width: 100%;
    text-align: left;
}
.filter-dropdown-toggle i {
    transition: transform 0.2s ease;
}
.filter-dropdown.open .filter-dropdown-toggle i {
    transform: rotate(180deg);
}
.filter-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    min-width: 220px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    z-index: 1000;
    padding: 4px;
    overflow: visible;
}
.filter-dropdown.open .filter-dropdown-menu {
    display: block;
}
.filter-dropdown-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-primary);
    font-size: 0.95rem;
    user-select: none;
}
.filter-dropdown-item:hover,
.filter-dropdown-item.active {
    background: var(--bg-tertiary);
}
.filter-dropdown-item.selected {
    color: var(--accent-primary);
    font-weight: 600;
}
.filter-dropdown-item.has-sub > i {
    margin-left: 8px;
    transition: transform 0.15s ease;
}
.filter-dropdown-submenu .filter-dropdown-item {
    font-weight: 500;
}
.filter-dropdown-submenu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 240px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    padding: 4px;
    max-height: 420px;
    overflow-y: auto;
    margin-left: 2px;
}
.filter-dropdown-item.has-sub:hover > .filter-dropdown-submenu,
.filter-dropdown-item.has-sub.open > .filter-dropdown-submenu {
    display: block;
}
@media (max-width: 768px) {
    .filter-dropdown-submenu {
        position: static;
        margin-left: 12px;
        box-shadow: none;
        border: none;
        padding-left: 0;
    }
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.product-card {
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-primary);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-md);
}

.product-category {
    font-size: 0.75rem;
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-position {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.product-body-with-img {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.product-body-left {
    flex: 1;
    min-width: 0;
}

.product-sign-img {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: var(--radius-sm);
    border: 1.5px dashed var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
}

.product-sign-img span {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.2;
}

.sign-img-input {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.7rem;
    text-align: center;
    outline: none;
    padding: 4px;
}

.sign-img-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.sign-img-input:focus {
    background: rgba(59, 130, 246, 0.06);
}

.product-card h3 {
    font-size: clamp(0.85rem, 0.6vw + 0.4rem, 1.05rem);
    margin-bottom: var(--space-xs);
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.product-meta span {
    font-size: 0.8125rem;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.product-info-wrap {
    margin-bottom: var(--space-sm);
}

.product-info {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.product-info-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.info-toggle {
    background: none;
    border: none;
    color: var(--accent-primary);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0;
    opacity: 0.85;
}

.info-toggle:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Extrawunsch (Personalisierung) Input */
.product-extra-wish {
    margin-top: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.extra-wish-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.extra-wish-input {
    width: 100%;
    padding: 0.4rem 0.6rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.8rem;
    transition: var(--transition-base);
}

.extra-wish-input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
    font-size: 0.75rem;
}

.extra-wish-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.product-pricing {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
}

.price-original {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-discounted {
    font-size: clamp(0.9rem, 0.6vw + 0.4rem, 1.25rem);
    font-weight: 600;
    color: var(--success);
}

.product-add {
    width: clamp(30px, 2.2vw, 40px);
    height: clamp(30px, 2.2vw, 40px);
    background: var(--accent-primary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-add:hover {
    background: var(--accent-secondary);
    transform: scale(1.05);
}

/* =====================
   AUSSCHREIBUNG CARDS
   ===================== */
.aus-avail {
    font-size: 0.82rem;
    color: var(--text-muted);
    padding: 0.35rem 0.5rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    margin-bottom: 0.25rem;
}

.aus-avail strong {
    color: var(--accent-primary);
}

.aus-avail-empty {
    color: var(--error) !important;
    border-color: var(--error) !important;
}

.aus-avail-empty strong {
    color: var(--error);
}

.aus-sold-out {
    opacity: 0.6;
    pointer-events: none;
}

.aus-sold-out .product-add {
    background: var(--text-muted);
    cursor: not-allowed;
}

/* Quantity Spinner on Product Card */
.product-qty-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
}

.product-qty-input {
    width: clamp(30px, 2.2vw, 40px);
    height: clamp(30px, 2.2vw, 40px);
    text-align: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    color: var(--text-primary);
    font-size: clamp(0.7rem, 0.5vw + 0.3rem, 0.9rem);
    font-weight: 600;
    -moz-appearance: textfield;
    appearance: textfield;
    padding: 0;
}

.product-qty-input::-webkit-inner-spin-button,
.product-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-qty-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.product-qty-input.qty-flash-red {
    animation: qtyFlashRed 0.5s ease;
}

@keyframes qtyFlashRed {
    0%   { background: #ff4444; color: #fff; border-color: #ff4444; }
    50%  { background: #ff2222; color: #fff; border-color: #ff2222; }
    100% { background: var(--bg-tertiary); color: var(--text-primary); border-color: var(--glass-border); }
}

.cart-item-quantity span.qty-flash-red {
    animation: qtyFlashRed 0.5s ease;
    border-radius: var(--radius-sm);
}

.product-min-qty {
    font-size: clamp(0.55rem, 0.4vw + 0.3rem, 0.72rem);
    color: var(--text-muted);
    opacity: 0.7;
    white-space: nowrap;
}

.cart-item-minqty {
    font-size: 0.7em;
    color: var(--text-muted);
    opacity: 0.6;
}

.product-qty-arrows {
    display: flex;
    flex-direction: column;
    height: clamp(30px, 2.2vw, 40px);
}

.product-qty-arrows button {
    flex: 1;
    width: clamp(16px, 1.2vw, 20px);
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    padding: 0;
    transition: var(--transition-fast);
    line-height: 1;
}

.product-qty-arrows button:first-child {
    border-bottom: none;
    border-radius: 0 var(--radius-sm) 0 0;
}

.product-qty-arrows button:last-child {
    border-radius: 0 0 var(--radius-sm) 0;
}

.product-qty-arrows button:hover {
    background: var(--glass-hover);
    color: var(--accent-primary);
}

.product-add.with-qty {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    border-left: none;
    margin-left: -1px;
}

/* Cart */
.cart-container {
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.cart-items {
    padding: var(--space-xl);
    min-height: 200px;
}

.cart-empty {
    text-align: center;
    padding: var(--space-3xl);
    color: var(--text-muted);
}

.cart-empty svg {
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 500;
    margin-bottom: 4px;
}

.cart-item-meta {
    font-size: 0.78rem;
    color: var(--text-muted, #888);
    margin-bottom: 2px;
}
.cart-item-detail {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 2px;
    white-space: nowrap;
}
.cart-item-price {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.qty-btn {
    width: 32px;
    height: 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition-base);
}

.qty-btn:hover {
    background: var(--glass-hover);
    border-color: var(--accent-primary);
}

.cart-item-quantity span {
    min-width: 40px;
    text-align: center;
    font-weight: 500;
}

.cart-item-total {
    font-weight: 600;
    color: var(--accent-secondary);
    min-width: 100px;
    text-align: right;
}

.cart-item-remove {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
}

.cart-item-remove:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.cart-summary {
    padding: var(--space-xl);
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    color: var(--text-secondary);
}

.summary-row.discount {
    color: var(--success);
}

.summary-row.total {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    padding-top: var(--space-md);
    margin-top: var(--space-sm);
    border-top: 1px solid var(--glass-border);
}

/* =========================================
   ORDERS SECTION
   ========================================= */

.orders-container {
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
}

.orders-empty {
    text-align: center;
    padding: var(--space-3xl);
    color: var(--text-muted);
}

/* Gruppierte Bestellungen */
.order-batch {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.order-batch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    cursor: pointer;
    transition: background 0.2s;
    gap: var(--space-lg);
}

.order-batch-header:hover {
    background: rgba(255,255,255,0.04);
}

.order-batch-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-batch-nr {
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent-secondary);
}

.order-batch-meta {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

.order-batch-right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-shrink: 0;
}

.order-batch-total {
    font-weight: 700;
    font-size: 1rem;
}

.order-batch-total-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: 1px;
}

.order-batch-chevron {
    transition: transform 0.25s ease;
    color: var(--text-muted);
    flex-shrink: 0;
}

.order-batch-items {
    border-top: 1px solid var(--glass-border);
    padding: var(--space-sm) 0;
}

.order-batch-item {
    display: grid;
    grid-template-columns: 50px 1fr auto auto auto;
    gap: var(--space-md);
    align-items: center;
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.order-batch-item:last-child {
    border-bottom: none;
}

.order-batch-item-pos {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.order-batch-item-name {
    font-weight: 500;
}

.order-batch-item-gruppe {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.order-batch-item-menge {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    white-space: nowrap;
}

.order-batch-item-price {
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

/* Altes .order-item bleibt für Kompatibilität */
.order-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: var(--space-lg);
    align-items: center;
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.order-id {
    font-weight: 600;
    color: var(--accent-secondary);
}

.order-details {
    font-size: 0.9375rem;
}

.order-details strong {
    display: block;
    margin-bottom: 2px;
}

.order-details span {
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

.order-price {
    font-weight: 600;
    color: var(--text-primary);
}

.order-status {
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
}

.order-status.offen {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.order-status.bearbeitung,
.order-status.in-bearbeitung {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-secondary);
}

.order-status.abgeschlossen {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

/* =========================================
   FOOTER
   ========================================= */

.footer {
    margin-top: auto;
    padding: var(--space-2xl) var(--space-xl) 0;
    border-top: 1px solid var(--glass-border);
    background: linear-gradient(180deg, rgba(10, 14, 23, 0.6) 0%, rgba(3, 105, 161, 0.15) 100%);
}

.footer-container {
    max-width: min(1400px, 90vw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-2xl);
    padding-bottom: var(--space-2xl);
}

.footer-heading {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
}

/* Footer Kontakt Column */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-contact-list li svg {
    flex-shrink: 0;
    color: var(--text-muted);
}

.footer-contact-list li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-base);
}

.footer-contact-list li a:hover {
    color: var(--accent-primary);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    color: var(--text-primary);
    transition: var(--transition-base);
    display: flex;
    align-items: center;
}

.footer-social a:hover {
    color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Footer Info Column */
.footer-info-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-info-links li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition-base);
    display: inline-block;
    padding: 2px 0;
}

.footer-info-links li a:hover {
    color: var(--accent-primary);
    padding-left: 4px;
}

/* Footer Brand Column */
.footer-brand-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-lg);
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-img {
    height: clamp(60px, 6vw, 100px);
    width: auto;
    object-fit: contain;
    background: white;
    padding: clamp(6px, 0.5vw, 12px);
    border-radius: 8px;
}

.footer-slogan {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.slogan-tagline {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.slogan-company {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.03em;
}

.slogan-sub {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* Footer Copy */
.footer-copy {
    max-width: min(1400px, 90vw);
    margin: 0 auto;
    text-align: center;
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* =========================================
   INFO PAGE MODAL
   ========================================= */
.info-page-modal {
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-xl);
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.info-page-modal-header {
    display: flex;
    justify-content: flex-end;
    padding: var(--space-md) var(--space-md) 0 var(--space-md);
    flex-shrink: 0;
}

.info-page-modal .modal-close {
    position: absolute;
    top: var(--space-md);
    right: 1.25rem;
    background: rgba(255,255,255,0.08);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    z-index: 10;
    flex-shrink: 0;
}

.info-page-modal .modal-close:hover {
    background: rgba(255,255,255,0.15);
    color: var(--text-primary);
}

.info-page-content {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: var(--glass-border) transparent;
}

.info-page-content::-webkit-scrollbar {
    width: 6px;
}

.info-page-content::-webkit-scrollbar-track {
    background: transparent;
}

.info-page-content::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 3px;
}

.info-page-content h1 {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    padding-right: 3rem;
    border-bottom: 2px solid var(--accent-primary);
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.info-page-content h2 {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.info-page-content h3 {
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.info-page-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: var(--space-md);
    margin-bottom: var(--space-sm);
}

.info-page-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.info-page-content ul {
    padding-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

.info-page-content ul li {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-xs);
}

.info-page-content a {
    color: var(--accent-primary);
    text-decoration: underline;
    transition: var(--transition-base);
}

.info-page-content a:hover {
    color: var(--accent-secondary);
}

.info-page-content .info-contact-block {
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.info-page-content .info-contact-block p {
    margin-bottom: var(--space-xs);
}

.info-page-content .info-highlight {
    background: rgba(59, 130, 246, 0.08);
    border-left: 3px solid var(--accent-primary);
    padding: var(--space-md) var(--space-lg);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-bottom: var(--space-lg);
}

/* =========================================
   AGB ACCORDION
   ========================================= */
.agb-accordion {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: var(--space-lg);
}

.agb-accordion-item {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.agb-accordion-header {
    display: flex;
    align-items: center;
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    text-align: left;
    font-family: inherit;
    gap: var(--space-md);
}

.agb-accordion-header:hover {
    background: var(--glass-hover);
    border-color: var(--accent-primary);
}

.agb-accordion-header.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.agb-accordion-icon {
    flex-shrink: 0;
    font-size: 1.2rem;
    font-weight: 700;
    width: 20px;
    text-align: center;
    transition: var(--transition-base);
}

.agb-accordion-title {
    flex: 1;
}

.agb-accordion-chevron {
    flex-shrink: 0;
    transition: transform var(--transition-base);
    display: flex;
    align-items: center;
}

.agb-accordion-header.active .agb-accordion-chevron {
    transform: rotate(90deg);
}

.agb-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: var(--bg-tertiary);
    border-left: 1px solid var(--glass-border);
    border-right: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.agb-accordion-body.open {
    max-height: 5000px;
}

.agb-accordion-body-inner {
    padding: var(--space-lg) var(--space-xl);
}

.agb-accordion-body-inner h2 {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.agb-accordion-body-inner h2:first-child {
    margin-top: 0;
}

.agb-accordion-body-inner h3 {
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.agb-accordion-body-inner p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.agb-accordion-body-inner ul,
.agb-accordion-body-inner ol {
    padding-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

.agb-accordion-body-inner ul li,
.agb-accordion-body-inner ol li {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-xs);
}

.agb-hint {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: var(--space-lg);
    padding: var(--space-md) var(--space-lg);
    background: rgba(59, 130, 246, 0.05);
    border-radius: var(--radius-md);
    border: 1px dashed var(--glass-border);
}

/* =========================================
   TOAST NOTIFICATIONS
   ========================================= */

.toast-container {
    position: fixed;
    bottom: 80px;
    right: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    z-index: 3000;
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    animation: slideInRight 0.3s ease;
    min-width: 280px;
}

.toast.success {
    border-color: var(--success);
}

.toast.error {
    border-color: var(--error);
}

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast.success .toast-icon {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.toast.error .toast-icon {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.toast-message {
    flex: 1;
    font-size: 0.9375rem;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 1.25rem;
    line-height: 1;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =========================================
   ANIMATIONS
   ========================================= */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-scale-in {
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* =========================================
   RESPONSIVE
   ========================================= */

/* =========================================
   HEADER CART ICON
   ========================================= */

.header-cart-btn {
    position: relative;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    padding: var(--space-sm) var(--space-lg);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: var(--transition-base);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    white-space: nowrap;
}

.header-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4), 0 0 15px rgba(16, 185, 129, 0.2);
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
}

.header-cart-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: var(--error);
    color: white;
    font-size: 0.55rem;
    font-weight: 700;
    min-width: 15px;
    height: 15px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
    box-sizing: border-box;
}

.header-cart-badge:empty,
.header-cart-badge[data-count="0"] {
    display: none;
}

/* Cart Overlay / Popup */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-slide-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(508px, 94vw);
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--glass-border);
    z-index: 1501;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
}

.cart-slide-panel.active {
    transform: translateX(0);
}

.cart-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--glass-border);
    flex-shrink: 0;
}

.cart-panel-header h3 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.cart-panel-close {
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition-base);
}

.cart-panel-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
    border-color: var(--error);
}

.cart-panel-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    background: var(--accent-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    padding: 0 4px;
    margin-left: 4px;
}

.cart-item-perso {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cart-panel-items {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md);
}

.cart-panel-summary {
    padding: var(--space-lg);
    background: var(--bg-tertiary);
    border-top: 1px solid var(--glass-border);
    flex-shrink: 0;
}

/* =========================================
   NOTFALL (EMERGENCY) MODAL
   ========================================= */
.notfall-modal {
    width: 100%;
    max-width: 600px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    background: #0369a1;
    box-shadow: var(--shadow-xl);
}

.notfall-modal .modal-close {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: rgba(255,255,255,0.2);
    color: white;
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    z-index: 10;
}

.notfall-modal .modal-close:hover {
    background: rgba(255,255,255,0.3);
}

.notfall-content {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    text-align: center;
    color: white;
}

.notfall-header h2 {
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.notfall-phone {
    margin: var(--space-lg) 0;
}

.notfall-phone a {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: white;
    text-decoration: none;
    letter-spacing: 0.04em;
    white-space: nowrap;
    transition: var(--transition-base);
}

.notfall-phone a:hover {
    text-shadow: 0 0 20px rgba(255,255,255,0.5);
}

.notfall-hint {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-bottom: var(--space-md);
}

.notfall-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.3);
    margin: var(--space-lg) 0;
}

.notfall-details h3 {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.notfall-list {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 300px;
    margin: 0 auto var(--space-lg);
}

.notfall-list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) 0;
    font-size: 1rem;
    font-weight: 500;
}

.notfall-list li svg {
    flex-shrink: 0;
    color: white;
}

.notfall-call-btn {
    display: block;
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background: white;
    color: #0369a1;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-align: center;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.notfall-call-btn:hover {
    background: #f0f9ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* =========================================
   KONTAKT (CONTACT) MODAL
   ========================================= */
.contact-modal {
    width: 100%;
    max-width: 550px;
    max-height: min(90vh, calc(100dvh - 2rem));
    margin: auto;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-xl);
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.contact-modal .modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: rgba(255,255,255,0.08);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    z-index: 10;
}

.contact-modal .modal-close:hover {
    background: rgba(255,255,255,0.15);
    color: var(--text-primary);
}

.contact-modal-header {
    padding: clamp(1.2rem, 2vw, 2rem);
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
}

.contact-modal-header h2 {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 800;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.contact-modal-info {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.contact-modal-info-item {
    text-align: center;
}

.contact-modal-info-item strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.contact-modal-info-item span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.contact-modal-form {
    padding: clamp(1.2rem, 2vw, 2rem);
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: var(--glass-border) transparent;
}

.contact-modal-form::-webkit-scrollbar {
    width: 6px;
}

.contact-modal-form::-webkit-scrollbar-track {
    background: transparent;
}

.contact-modal-form::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 3px;
}

.contact-modal-form::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

#registerForm {
    padding: clamp(1.2rem, 2vw, 2rem);
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) transparent;
}

#registerForm::-webkit-scrollbar {
    width: 6px;
}

#registerForm::-webkit-scrollbar-track {
    background: transparent;
}

#registerForm::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 3px;
}

#registerForm::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

.textarea-group {
    position: relative;
}

.contact-modal-form textarea {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    padding-bottom: 1.8rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.875rem;
    resize: vertical;
    min-height: 120px;
    transition: var(--transition-base);
}

.char-counter {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.2s;
}

.char-counter.warn {
    color: #f59e0b;
}

.char-counter.limit {
    color: var(--emergency);
    font-weight: 600;
}

.contact-modal-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.contact-modal-form textarea::placeholder {
    color: var(--text-muted);
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.contact-privacy {
    margin-bottom: var(--space-md);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--accent-primary);
    width: 16px;
    height: 16px;
}

.privacy-link {
    color: var(--accent-primary);
    text-decoration: underline;
}

.privacy-link:hover {
    color: var(--accent-secondary);
}

.captcha-group label {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

.captcha-question {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: var(--space-sm) 0;
}

.contact-submit-btn {
    width: 100%;
    padding: var(--space-md) !important;
    font-size: 1rem !important;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-top: var(--space-sm);
}

@media (max-width: 1200px) {
    .services-grid,
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
    .catalog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .karriere-benefits {
        grid-template-columns: repeat(2, 1fr);
    }

    .karriere-cta {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }
    
    .footer-brand-col {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: center;
        gap: var(--space-xl);
    }
    
    .portal-header {
        flex-direction: column;
        text-align: center;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* User button: icon-only on narrow screens (only in navbar, not mobile drawer) */
    .nav-auth .btn-user #userNameDisplay {
        display: none;
    }
    .nav-auth .btn-user {
        padding: var(--space-sm);
    }
}

/* =========================================
   HAMBURGER BUTTON (hidden on desktop)
   ========================================= */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    padding: 8px;
    transition: var(--transition-base);
    order: 99; /* push to the right */
}

.hamburger-btn:hover {
    background: var(--glass-hover);
    border-color: var(--accent-primary);
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-base);
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================================
   MOBILE NAV OVERLAY & DRAWER
   ========================================= */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--glass-border);
    z-index: 2001;
    overflow-y: auto;
    transition: right 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
    display: flex;
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-md);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}
.mobile-nav-drawer.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--glass-border);
}

.mobile-nav-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    background: white;
    padding: 4px 8px;
    border-radius: 6px;
}

.mobile-nav-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1.4rem;
    cursor: pointer;
    transition: var(--transition-base);
}
.mobile-nav-close:hover {
    background: var(--glass-hover);
    border-color: var(--accent-primary);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}
.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--text-primary);
    background: var(--glass-hover);
}

.mobile-nav-link.active {
    border-left: 3px solid var(--accent-primary);
}

.mobile-nav-divider {
    height: 1px;
    background: var(--glass-border);
}

.mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.mobile-nav-actions .btn {
    justify-content: flex-start;
}

#mobileUserMenu {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.mobile-logout-btn {
    color: var(--error) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}
.mobile-logout-btn:hover {
    background: rgba(239, 68, 68, 0.1) !important;
}

.mobile-nav-contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: auto;
}

.mobile-contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    transition: var(--transition-base);
}
.mobile-contact-item:hover {
    color: var(--accent-primary);
}

/* =========================================
   RESPONSIVE ≤ 768px
   ========================================= */
@media (max-width: 768px) {
    /* Show hamburger */
    .hamburger-btn {
        display: flex;
        width: 34px;
        height: 34px;
        padding: 6px;
    }

    .karriere-benefits {
        grid-template-columns: 1fr 1fr;
    }

    .stelle-header {
        flex-direction: column;
    }

    .stelle-toggle-btn {
        align-self: flex-end;
    }

    /* Smaller logo on mobile */
    .nav-logo-img {
        height: 28px;
        padding: 3px 5px;
        border-radius: 6px;
    }
    
    .nav-top-bar {
        flex-direction: column;
        gap: var(--space-xs);
        padding-bottom: var(--space-xs);
        margin-bottom: var(--space-xs);
    }
    
    .contact-info-compact {
        gap: var(--space-sm);
        font-size: 0.72rem;
        justify-content: center;
    }
    
    .contact-item-compact {
        font-size: 0.68rem;
    }
    
    .social-links {
        gap: var(--space-xs);
    }
    
    .social-icon {
        width: 24px;
        height: 24px;
    }
    
    .navbar {
        padding: var(--space-xs) var(--space-sm);
    }
    
    .nav-main-row {
        padding: 0 var(--space-xs);
    }

    /* Hide desktop nav links */
    .nav-links {
        display: none;
    }
    
    /* Hide Login button on desktop nav, show only in mobile drawer */
    #loginBtn {
        display: none;
    }
    
    /* User menu: JS controls visibility via inline style; just make it compact */
    .nav-auth .btn-user {
        font-size: 0;
        padding: var(--space-xs) var(--space-sm);
        gap: 0;
        height: 34px;
        width: 34px;
    }
    .nav-auth .btn-user i,
    .nav-auth .btn-user svg {
        width: 18px;
        height: 18px;
    }
    
    /* Compact nav-auth on mobile */
    .nav-auth {
        gap: var(--space-sm);
    }

    /* Keep emergency + contact buttons but hide text (only in NAVBAR, not in mobile drawer) */
    .nav-auth .btn-emergency {
        font-size: 0;
        padding: var(--space-xs) var(--space-sm);
        gap: 0;
        height: 34px;
        width: 34px;
    }
    .nav-auth .btn-emergency svg {
        width: 18px;
        height: 18px;
    }
    
    .nav-auth .btn-primary {
        font-size: 0;
        padding: var(--space-xs) var(--space-sm);
        gap: 0;
        height: 34px;
        width: 34px;
    }
    .nav-auth .btn-primary i,
    .nav-auth .btn-primary svg {
        width: 18px;
        height: 18px;
    }

    /* Cart button compact on mobile */
    .header-cart-btn {
        width: 34px;
        height: 34px;
        flex-shrink: 0;
        border-radius: var(--radius-md);
        padding: var(--space-xs) var(--space-sm);
    }

    .header-cart-btn i,
    .header-cart-btn svg {
        width: 18px;
        height: 18px;
    }

    .header-cart-badge {
        top: -2px;
        right: -2px;
        font-size: 0.5rem;
        min-width: 13px;
        height: 13px;
        padding: 0 2px;
    }

    /* Disable hover lift animation on navbar buttons to prevent overlap with header */
    .nav-auth .btn:hover,
    .nav-auth .btn-user:hover,
    .nav-auth .btn-emergency:hover,
    .nav-auth .btn-primary:hover,
    .nav-auth .header-cart-btn:hover {
        transform: none;
    }

    .notfall-modal,
    .contact-modal {
        max-width: 95vw;
    }

    /* Portal tabs: allow wrapping and prevent clipping */
    .portal-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.8rem;
        min-width: 0;
        flex-shrink: 1;
        height: 40px;
    }

    .cart-badge {
        font-size: 0.65rem;
        padding: 1px 4px;
        min-width: 16px;
        line-height: 1;
    }

    /* Allow modal overlay to scroll on small screens so content isn't clipped */
    #contactModal {
        overflow-y: auto;
        align-items: flex-start;
        padding: 1rem;
    }

    #contactModal .contact-modal {
        margin: auto;
        flex-shrink: 0;
    }
    
    .info-page-modal {
        max-width: 95vw;
    }
    
    /* Footer mobile */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-xl);
    }
    
    .footer-kontakt {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-contact-list li {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-info-links {
        align-items: center;
    }
    
    .footer-brand-col {
        grid-column: auto;
        flex-direction: column;
        align-items: center;
        gap: var(--space-md);
    }
    
    .footer-slogan {
        align-items: center;
        text-align: center;
        max-width: 280px;
    }
    
    .slogan-tagline,
    .slogan-company,
    .slogan-sub {
        white-space: normal;
        word-break: normal;
        overflow-wrap: break-word;
    }
    
    .contact-modal-info {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .services-grid,
    .features {
        grid-template-columns: 1fr;
    }
    
    .services-cta {
        flex-direction: column;
        text-align: center;
    }

    .katalog-filter {
        flex-direction: column;
        align-items: stretch;
    }

    .katalog-produkte-grid {
        grid-template-columns: 1fr;
    }
    
    .catalog-filters {
        flex-direction: column;
    }
    
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    
    .order-item {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    /* Cart items: wrap on mobile so price doesn't overflow */
    .cart-item {
        flex-wrap: wrap;
        gap: var(--space-sm);
    }

    .cart-item-info {
        flex: 1 1 100%;
    }

    .cart-item-quantity {
        flex: 1;
    }

    .cart-item-total {
        min-width: auto;
        text-align: left;
    }

    .cart-item-remove {
        margin-left: auto;
    }

    /* Route button: shrink + raise on mobile to avoid overlap with cookie FAB */
    .route-btn {
        font-size: 0.82rem;
        padding: var(--space-xs) var(--space-md);
        bottom: var(--space-lg);
    }
}

/* =========================================
   RESPONSIVE ≤ 480px  (small phones)
   ========================================= */
@media (max-width: 480px) {
    /* Compact but VISIBLE contact bar */
    .nav-top-bar {
        padding: 0 var(--space-xs);
        padding-bottom: var(--space-xs);
    }
    
    .contact-info-compact {
        flex-wrap: wrap;
        gap: var(--space-xs);
        justify-content: center;
        font-size: 0.65rem;
    }
    
    .contact-item-compact {
        font-size: 0.62rem;
    }
    
    /* Hide address on very small phones, keep phone + email */
    .contact-item-compact:first-child {
        display: none;
    }
    
    .social-links {
        display: none;
    }
    
    .nav-auth {
        gap: var(--space-xs);
    }

    .nav-auth .btn {
        font-size: 0;
        padding: var(--space-xs) var(--space-xs);
    }

    .header-cart-badge {
        top: -1px;
        right: -1px;
        font-size: 0.45rem;
        min-width: 12px;
        height: 12px;
        padding: 0 2px;
    }

    .nav-logo-img {
        height: 24px;
        padding: 2px 4px;
    }

    .hamburger-btn {
        width: 34px;
        height: 34px;
        padding: 5px;
    }

    .header-cart-btn {
        width: 34px;
        height: 34px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-lg {
        width: 100%;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }

    .karriere-benefits {
        grid-template-columns: 1fr;
    }

    .stelle-card {
        padding: var(--space-md);
    }

    .stelle-titel {
        font-size: 1.1rem;
    }
    
    /* Footer extra small */
    .footer-slogan {
        max-width: 240px;
    }
    
    .footer-logo-img {
        height: 50px;
    }
}

/* =========================================
   MAP CHOOSER POPUP
   ========================================= */

.map-chooser-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
}

.map-chooser-overlay.active {
    display: flex;
}

.map-chooser-popup {
    width: 320px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    background: rgba(10, 14, 23, 0.97);
    overflow: hidden;
}

.map-chooser-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--glass-border);
}

.map-chooser-header h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.map-chooser-options {
    display: flex;
    flex-direction: column;
    padding: 8px;
    gap: 4px;
}

.map-chooser-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: var(--transition-base);
}

.map-chooser-btn:hover {
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent-secondary);
}

.address-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed currentColor;
    transition: var(--transition-base);
    cursor: pointer;
}

.address-link:hover {
    color: var(--accent-secondary);
    border-bottom-color: var(--accent-secondary);
}

/* =========================================
   PAYMENT METHODS
   ========================================= */

/* =========================================
   VIEW TOGGLE (Table / Grid)
   ========================================= */
.view-toggle {
    display: flex;
    gap: 4px;
    margin-left: auto;
    flex-shrink: 0;
}
.view-toggle-btn {
    padding: 8px 10px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
}
.view-toggle-btn:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}
.view-toggle-btn.active {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
}

/* =========================================
   CATALOG TABLE VIEW
   ========================================= */
.catalog-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-lg);
}
.catalog-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}
.catalog-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}
.catalog-table th {
    padding: 10px 12px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
    border-bottom: 2px solid var(--glass-border);
    white-space: nowrap;
}
.catalog-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--glass-border);
    vertical-align: middle;
    color: var(--text-primary);
}
.catalog-table tbody tr:hover {
    background: var(--glass-hover);
}
.catalog-table .col-pos { width: 60px; font-weight: 600; color: var(--accent-primary); }
.catalog-table .col-name { min-width: 140px; }
.catalog-table .col-info { min-width: 180px; max-width: 280px; }
.catalog-table .col-gruppe { min-width: 80px; color: var(--text-secondary); font-size: 0.8rem; }
.catalog-table .col-schildart { min-width: 70px; color: var(--text-secondary); font-size: 0.8rem; }
.catalog-table .col-groesse { min-width: 80px; }
.catalog-table .col-preis { min-width: 90px; white-space: nowrap; }
.catalog-table .col-extrawunsch { min-width: 170px; }
.catalog-table .col-warenkorb { min-width: 210px; }
.catalog-table .col-menge, .catalog-table .col-verfuegbar { min-width: 60px; text-align: center; }
.catalog-table .col-beschreibung { min-width: 120px; max-width: 200px; color: var(--text-secondary); font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.table-info-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.76rem;
    color: var(--text-secondary);
    line-height: 1.3;
    word-break: break-word;
}
.table-info-text.table-info-long {
    font-size: 0.68rem;
}
/* Shrink font for long info text via container query fallback */
@supports (container-type: inline-size) {
    .catalog-table .col-info { container-type: inline-size; }
    @container (max-width: 200px) {
        .table-info-text { font-size: 0.66rem; -webkit-line-clamp: 4; }
    }
}
/* Fallback: always try to fit with smaller font on narrow screens */
@media (max-width: 1400px) {
    .table-info-text { font-size: 0.7rem; }
}

.catalog-table .price-original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-right: 4px;
}

.table-feldnr {
    margin-top: 4px;
}
.table-feldnr .sign-img-input {
    width: 90px;
    padding: 2px 6px;
    font-size: 0.78rem;
    border: 1px dashed var(--glass-border);
    border-radius: 4px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.table-wish-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
}
.table-wish-input {
    flex: 1;
    padding: 4px 8px;
    font-size: 0.82rem;
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
}
.table-wish-expand {
    padding: 4px;
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: pointer;
    flex-shrink: 0;
}
.table-wish-expand:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.table-cart-cell {
    display: flex;
    align-items: center;
    gap: 6px;
}
.table-min-qty {
    font-size: 0.65rem;
    color: var(--text-muted);
    white-space: nowrap;
    order: 2;
}
.table-qty-group {
    display: flex;
    align-items: center;
    gap: 4px;
    order: 1;
}
.table-qty-input {
    width: 60px !important;
    text-align: center;
}
.table-add-btn {
    flex-shrink: 0;
}
.table-size-dropdown {
    width: 100%;
    padding: 3px 6px;
    font-size: 0.8rem;
    border-radius: 4px;
    border: 1px solid var(--glass-border);
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.aus-sold-out-row {
    opacity: 0.5;
}
.aus-avail-empty {
    color: var(--error) !important;
    font-weight: 600;
}

/* Extrawunsch Popup */
.extrawunsch-popup-textarea {
    width: 100%;
    padding: var(--space-md);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    margin-bottom: var(--space-md);
}

/* =========================================
   WERBE-POPUP
   ========================================= */
.werbe-popup-modal {
    max-width: 480px;
    width: 90vw;
    text-align: center;
}

.werbe-popup-content {
    padding: var(--space-xl) var(--space-2xl);
}

.werbe-popup-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid var(--accent-primary);
    margin: 0 auto var(--space-lg);
    color: var(--accent-primary);
}

.werbe-popup-modal h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.werbe-popup-modal p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-line;
}

/* ── Size Dropdown (Straßenschilder) ───────────────── */
.size-dropdown {
    width: 100%;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    border: 1px solid #4b5563;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s;
}
.size-dropdown:focus {
    outline: none;
    border-color: var(--accent-primary);
}
.size-dropdown option {
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* ── Utility: Animation delay classes ──────────────── */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ── Utility: Initially hidden elements ────────────── */
#headerCartBtn,
#userMenu,
#adminLink,
#mobileUserMenu,
#mobileAdminLink,
#cartPanelSummary,
#panelDiscountRow,
#werbePopupOverlay,
#pvError,
#pvSuccess,
#loginError,
#twofaStep,
#twofaError,
#regError,
#regSuccess,
#heroAusschreibungenInfo,
#heroAusschreibungenBtn,
#cartSummary {
    display: none;
}

/* ── Cart Ausschreibung Badge ──────────────────────── */
.cart-ausschreibung-badge {
    font-size: 0.7rem;
    background: var(--primary);
    color: #fff;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 4px;
}

/* ── Cart Panel Expand Button ──────────────────────── */
.cart-panel-expand {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}
.cart-panel-expand:hover {
    color: var(--accent-primary);
    background: var(--glass-bg);
}

/* ── Table view: expand section container ──────────── */
.section-portal .section-container:has(.catalog-table-wrapper) {
    max-width: min(1800px, 98vw);
}

@media (max-width: 768px) {
    .catalog-table { font-size: 0.75rem; }
    .catalog-table th, .catalog-table td { padding: 6px 8px; }
    .view-toggle { display: flex; }
}
.cart-panel-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── Form success box (PV & Reg) ───────────────────── */
.form-success-box {
    display: none;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid var(--success);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    color: var(--success);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* ── Login modal link rows ─────────────────────────── */
.login-link-row {
    text-align: center;
    margin-top: 0.75rem;
}
.login-link-row.mt-sm {
    margin-top: 0.5rem;
}
.login-link-btn {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
}

/* ── Back button small variant ─────────────────────── */
.back-btn-small {
    font-size: 0.875rem;
    margin-top: var(--space-sm);
}

/* ── PV / Pass-vergessen textarea ──────────────────── */
#pvNachricht {
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    resize: vertical;
    font-size: 0.9rem;
}

/* ── 2FA code input ────────────────────────────────── */
#twofaCode {
    letter-spacing: 2px;
    font-family: monospace;
}

/* ── Hero Ausschreibungen Info ─────────────────────── */
#heroAusschreibungenInfo {
    margin-top: 0.5rem;
    color: var(--accent-secondary);
    cursor: pointer;
}
.hero-aus-icon {
    vertical-align: -2px;
    margin-right: 4px;
}

/* ── Checkout button in cart panel ─────────────────── */
.cart-panel-summary .btn,
.cart-panel-checkout-btn {
    margin-top: 1rem;
}

/* ── Map consent placeholder ───────────────────────── */
#mapConsentPlaceholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 2rem 2rem 3.5rem;
    color: var(--text-secondary);
}
.map-placeholder-icon {
    margin-bottom: 1rem;
    opacity: 0.5;
}
.map-placeholder-title {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}
.map-placeholder-text {
    font-size: 0.82rem;
    margin-bottom: 1rem;
}
.map-cookie-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition-base);
}

/* ── Google Maps iframe ────────────────────────────── */
#googleMapsIframe {
    border: 0;
    border-radius: 12px;
    display: none;
}

/* ── Ausschreibungen container (transparent like catalog tab) ── */
.ausschreibungen-container {
    background: transparent;
    border: none;
    box-shadow: none;
}

.ausschreibungen-header {
    margin-bottom: var(--space-xl);
}

.ausschreibungen-header h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ── Ausschreibungen subtitle ──────────────────────── */
.ausschreibungen-subtitle {
    color: var(--text-muted);
    margin-top: 0.25rem;
    font-size: 0.9rem;
}

/* ── Cookie overlays positioning ───────────────────── */
#cookieBannerOverlay,
#cookieDetailOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
#cookieBannerOverlay {
    z-index: 3000;
}
#cookieDetailOverlay {
    z-index: 3100;
}
