/* Author: Leon Pfaffe */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600&display=swap');

:root {
    --bg: #f3f5fb;
    --card: #ffffff;
    --accent: #1c4cf1;
    --accent-strong: #132fb4;
    --text: #101525;
    --text-muted: #5c647a;
    --border: #dfe4f4;
    --success: #0f9d58;
    --error: #d93025;
    font-size: 16px;
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Space Grotesk', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: radial-gradient(circle at top, #f4f7ff 0%, var(--bg) 60%);
    color: var(--text);
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}

a {
    color: inherit;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
}

.hero {
    padding: 24px 5vw 24px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: visible !important;
    overflow: visible !important;
    position: relative;
    z-index: 10000 !important;
    isolation: isolate;
}

.hero .nav {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    position: relative;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    z-index: 10000 !important;
}

.hero[style*="background:linear-gradient"] .nav .logo,
.hero[style*="background:linear-gradient"] .nav .nav-links,
.hero[style*="background:linear-gradient"] .nav .nav-links a,
.hero[style*="background:linear-gradient"] .nav .nav-actions,
.hero[style*="background:linear-gradient"] .nav .nav-icon-link,
.hero[style*="background:linear-gradient"] .nav .nav-cta {
    color: #fff !important;
}

.hero[style*="background:linear-gradient"] .nav .nav-links {
    color: #fff !important;
}

.hero[style*="background:linear-gradient"] .nav .nav-icon-link:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.hero[style*="background:linear-gradient"] .nav .nav-cta {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
}

.hero[style*="background:linear-gradient"] .nav .nav-cta:hover {
    background: rgba(255, 255, 255, 0.25) !important;
}

.nav {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    flex-wrap: nowrap !important;
    position: relative;
    z-index: 10000;
}

.nav .logo {
    flex-shrink: 0;
    white-space: nowrap;
}

.logo {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 24px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-icon-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.nav-icon-link:hover {
    background: var(--bg);
}

.nav-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.nav-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.4;
}

.nav-cta {
    padding: 10px 22px;
    border-radius: 999px;
    background: var(--text);
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.hero-card {
    background: var(--card);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(15, 40, 80, 0.15);
    padding: 48px;
}

.hero-card h1 {
    font-size: clamp(2.5rem, 4vw, 3.8rem);
    margin: 0 0 24px;
    line-height: 1.1;
}

.hero-card p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.cta-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 14px 32px;
    border-radius: 999px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 20px 40px rgba(28, 76, 241, 0.3);
}

.btn-primary:hover {
    background: var(--accent-strong);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.nav-dropdown {
    position: relative;
    flex-shrink: 0;
    z-index: 10002 !important;
    isolation: isolate;
    display: inline-block;
}

.nav-dropdown-toggle {
    cursor: pointer !important;
    display: flex;
    align-items: center;
    white-space: nowrap;
    pointer-events: auto !important;
    position: relative;
    z-index: 10003;
}

.nav-dropdown-menu {
    display: none !important;
    position: fixed !important;
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    min-width: 180px;
    z-index: 99999 !important;
    padding: 8px;
    white-space: nowrap;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: visible !important;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Entfernt - wird per JavaScript gesteuert */

/* Basis: Navigation - wird von Media Queries überschrieben */
.admin-nav-links {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: flex-start;
    flex: 0 0 auto;
    justify-content: flex-end;
    min-width: 0;
    overflow: visible !important;
    flex-direction: row;
    position: relative;
    width: auto;
    padding: 0;
    border-top: none;
    margin-top: 0;
    z-index: 10001;
}

.admin-nav-links .btn-secondary {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 10px 20px;
    font-size: 0.9rem;
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 10004;
    text-decoration: none !important;
}

.admin-nav-links .btn-secondary:hover {
    opacity: 0.9;
}

.admin-nav-links a.btn-secondary {
    display: inline-block;
    pointer-events: auto !important;
}


.nav-dropdown-item {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--text);
    border-radius: 8px;
    transition: background 0.2s;
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 100000;
}

.nav-dropdown-item:hover {
    background: var(--bg);
}

.nav-dropdown-item:active,
.nav-dropdown-item.active {
    background: var(--accent);
    color: #fff;
}

.feature-card {
    background: #0f1f40;
    color: #fff;
    border-radius: 28px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.feature-pill {
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.feature-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.feature-card li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6cf3e6;
}

.content-section {
    padding: 32px 5vw 60px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    z-index: 1 !important;
    isolation: isolate;
}

.content-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--card);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
}

.product-preview-card {
    background: var(--card);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-preview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.product-image-placeholder {
    width: 100%;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    background: var(--bg);
}

.product-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-product-card {
    display: flex;
    flex-direction: column;
}

.product-image-container {
    width: 100%;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    background: var(--bg);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card h3 {
    margin: 0 0 8px;
}

.product-card p {
    color: var(--text-muted);
    margin: 0 0 18px;
}

.price {
    font-size: 1.4rem;
    font-weight: 600;
}

.auth-card {
    background: var(--card);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 70px rgba(15, 40, 80, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 1;
    isolation: isolate;
}

.auth-card h2 {
    margin-top: 0;
    margin-bottom: 8px;
}

.auth-card p {
    color: var(--text-muted);
    margin-top: 0;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

input,
select {
    border-radius: 14px;
    border: 1px solid var(--border);
    padding: 12px 16px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(28, 76, 241, 0.15);
}

.tag-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tag {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px dashed var(--border);
    font-size: 0.85rem;
}

.message {
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 16px;
    font-weight: 500;
}

.message.success {
    background: rgba(15, 157, 88, 0.12);
    color: var(--success);
    border: 1px solid rgba(15, 157, 88, 0.4);
}

.message.error {
    background: rgba(217, 48, 37, 0.08);
    color: var(--error);
    border: 1px solid rgba(217, 48, 37, 0.3);
}

.error-text {
    font-size: 0.8rem;
    color: var(--error);
}

.is-hidden {
    display: none !important;
}

.footer {
    padding: 32px 5vw;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-links {
    display: flex;
    gap: 18px;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
}


.legal-content {
    padding: 60px 5vw 100px;
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 32px;
}

.legal-card {
    background: var(--card);
    border-radius: 24px;
    border: 1px solid rgba(13, 24, 52, 0.1);
    padding: 32px 36px;
    box-shadow: 0 4px 20px rgba(10, 22, 58, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.legal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(10, 22, 58, 0.12);
}

.legal-card h2 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.legal-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    opacity: 0.9;
}

.legal-card p {
    margin: 0 0 16px 0;
    line-height: 1.7;
    color: var(--text);
    font-size: 1rem;
}

.legal-card p:last-child {
    margin-bottom: 0;
}

.legal-card strong {
    color: var(--text);
    font-weight: 600;
}

.order-stop-banner {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #ff0000, #ff4444);
    color: #fff;
    padding: 16px 5vw;
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
    z-index: 100;
    text-align: center;
}

.order-stop-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
}

.order-stop-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.order-stop-text {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    
    .legal-content {
        padding: 40px 4vw 60px;
        gap: 24px;
        grid-template-columns: 1fr !important;
    }
    
    .legal-card {
        padding: 20px 16px;
        border-radius: 16px;
    }
    
    .legal-card h2 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .legal-card h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .legal-card p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 14px;
    }
    
    .legal-card ul {
        padding-left: 20px;
        margin: 12px 0;
    }
    
    .legal-card li {
        margin-bottom: 8px;
        line-height: 1.6;
        font-size: 0.95rem;
    }
    
    .legal-card a {
        word-break: break-all;
    }
    
    .order-stop-text {
        font-size: 0.85rem;
    }
    
    .order-stop-icon {
        font-size: 1rem;
    }
}

.dashboard-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 32px;
}

.tab-link {
    padding: 12px 24px;
    text-decoration: none;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.tab-link:hover {
    color: var(--text);
}

.tab-link.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 600;
}

.auth-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 40, 80, 0.12);
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card);
    border-top: 1px solid var(--border);
    box-shadow: 0 -10px 40px rgba(15, 40, 80, 0.15);
    padding: 20px 5vw;
    z-index: 99999;
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0;
    color: var(--text);
    flex: 1;
    min-width: 280px;
}

.cookie-content a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.cookie-close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

@media (max-width: 960px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .hero-card,
    .feature-card {
        padding: 32px;
    }
}

/* Viewport Meta Tag Support */
@supports (-webkit-touch-callout: none) {
    /* iOS Safari spezifische Optimierungen */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="tel"],
    textarea,
    select {
        font-size: 16px !important; /* Verhindert Zoom auf iOS */
    }
}

/* Mobile Optimierungen */
@media screen and (max-width: 768px) {
    :root {
        font-size: 14px;
    }
    
    .hero {
        padding: 16px 4vw 16px;
    }
    
    /* Navigation für Mobile */
    .nav,
    .hero .nav {
        flex-wrap: wrap !important;
        gap: 12px;
        position: relative;
    }
    
    .nav .logo {
        font-size: 1rem;
        flex: 0 0 auto;
    }
    
    .nav-mobile-toggle {
        display: block !important;
        background: none;
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 8px 12px;
        cursor: pointer;
        font-size: 1.2rem;
        margin-left: auto;
        flex-shrink: 0;
        order: 2;
    }
    
    .nav .logo {
        order: 1;
    }
    
    .admin-nav-links {
        order: 3;
    }
    
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 12px;
        padding: 16px 0;
        border-top: 1px solid var(--border);
        margin-top: 12px;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    /* Mobile: Navigation versteckt, nur bei .active sichtbar */
    .admin-nav-links,
    .nav .admin-nav-links,
    .hero .nav .admin-nav-links {
        display: none !important;
        width: 100% !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 16px 0;
        border-top: 1px solid var(--border);
        margin-top: 12px;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        order: 3 !important;
    }
    
    .admin-nav-links.active,
    .nav .admin-nav-links.active,
    .hero .nav .admin-nav-links.active {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .admin-nav-links .btn-secondary,
    .admin-nav-links .nav-dropdown {
        width: 100% !important;
        margin-bottom: 0 !important;
        flex-shrink: 0 !important;
    }
    
    .admin-nav-links .nav-dropdown {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }
    
    .admin-nav-links .nav-dropdown-toggle {
        width: 100% !important;
        justify-content: space-between !important;
        margin-bottom: 0 !important;
    }
    
    .admin-nav-links .nav-dropdown-menu {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        margin-top: 8px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
        box-shadow: none !important;
        border: 1px solid var(--border) !important;
        width: 100% !important;
        max-width: 100% !important;
        display: none !important;
    }
    
    .admin-nav-links .nav-dropdown-menu[style*="display: block"],
    .admin-nav-links .nav-dropdown-menu[style*="display:flex"] {
        display: block !important;
    }
    
    .admin-nav-links .nav-dropdown-item {
        width: 100% !important;
        box-sizing: border-box !important;
        display: block !important;
    }
    
    .nav-actions {
        gap: 8px;
    }
    
    .nav-icon-link {
        width: 36px;
        height: 36px;
    }
    
    .nav-cta {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    /* Hero Section */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 32px;
    }
    
    .hero-card {
        padding: 32px 24px;
    }
    
    .hero-card h1 {
        font-size: 2rem;
    }
    
    .hero-card p {
        font-size: 1rem;
    }
    
    /* Buttons */
    .btn-primary,
    .btn-secondary {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .cta-row {
        flex-direction: column;
    }
    
    .cta-row .btn-primary,
    .cta-row .btn-secondary {
        width: 100%;
    }
    
    /* Content Section */
    .content-section {
        padding: 24px 4vw 40px;
    }
    
    /* Cards */
    .auth-card {
        padding: 24px 20px;
        border-radius: 16px;
    }
    
    .auth-card h2 {
        font-size: 1.3rem;
    }
    
    /* Forms */
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    input,
    select,
    textarea {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
    
    /* Product Grid */
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 16px;
    }
    
    .product-card,
    .product-preview-card {
        padding: 16px;
    }
    
    .product-image-container {
        height: 200px;
    }
    
    /* Tables - Mobile Scroll */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
    
    div[style*="overflow-x:auto"] {
        width: 100%;
        max-width: 100%;
    }
    
    table {
        min-width: 600px;
        font-size: 0.85rem;
        width: 100%;
    }
    
    table th,
    table td {
        padding: 8px 6px;
        white-space: nowrap;
    }
    
    /* Stacked Table Layout für sehr kleine Bildschirme */
    .table-stacked {
        display: block;
    }
    
    .table-stacked thead {
        display: none;
    }
    
    .table-stacked tbody,
    .table-stacked tr,
    .table-stacked td {
        display: block;
        width: 100%;
    }
    
    .table-stacked tr {
        margin-bottom: 16px;
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 12px;
        background: var(--card);
    }
    
    .table-stacked td {
        padding: 8px 0;
        border: none;
        text-align: left !important;
    }
    
    .table-stacked td:before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: var(--text-muted);
        display: inline-block;
        min-width: 120px;
    }
    
    /* Dashboard Tabs */
    .dashboard-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        gap: 4px;
        margin-bottom: 24px;
    }
    
    .tab-link {
        padding: 10px 16px;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    /* Footer */
    .footer {
        padding: 24px 4vw;
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    /* Cookie Banner */
    .cookie-banner {
        padding: 16px 4vw;
    }
    
    .cookie-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .cookie-content p {
        min-width: auto;
        text-align: center;
    }
    
    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-actions button {
        flex: 1;
        min-width: 120px;
    }
    
    /* Admin Navigation */
    .nav-dropdown {
        width: 100%;
    }
    
    .nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }
    
    .nav-dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 8px;
        box-shadow: none;
        border: 1px solid var(--border);
    }
    
    /* Admin Cards */
    .admin-card {
        padding: 16px;
    }
    
    /* Status Badges */
    .status-badge {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    /* Messages */
    .message {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    /* Order Stop Banner */
    .order-stop-content {
        flex-direction: column;
        gap: 8px;
    }
    
    .order-stop-text {
        font-size: 0.8rem;
    }
}

/* Desktop: Navigation immer horizontal - MUSS nach Mobile Media Query kommen */
/* Desktop: Nur auf Bildschirmen größer als 768px */
@media screen and (min-width: 769px) {
    /* Hero und Nav Container - keine Duplikate */
    .nav,
    .hero .nav {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    /* Navigation Links - IMMER sichtbar und horizontal auf Desktop */
    .admin-nav-links,
    .nav .admin-nav-links,
    .hero .nav .admin-nav-links,
    .admin-nav-links.active,
    .nav .admin-nav-links.active,
    .hero .nav .admin-nav-links.active {
        display: flex !important;
        flex-direction: row !important;
        width: auto !important;
        padding: 0 !important;
        border-top: none !important;
        margin-top: 0 !important;
        order: initial !important;
        gap: 8px !important;
        align-items: center !important;
        flex: 0 0 auto !important;
        flex-wrap: nowrap !important;
        justify-content: flex-end !important;
    }
    
    /* Navigation Items */
    .admin-nav-links .btn-secondary,
    .admin-nav-links .nav-dropdown,
    .nav .admin-nav-links .btn-secondary,
    .nav .admin-nav-links .nav-dropdown,
    .hero .nav .admin-nav-links .btn-secondary,
    .hero .nav .admin-nav-links .nav-dropdown {
        width: auto !important;
        flex-shrink: 0 !important;
    }
    
    /* Dropdown Toggle */
    .admin-nav-links .nav-dropdown-toggle,
    .nav .admin-nav-links .nav-dropdown-toggle,
    .hero .nav .admin-nav-links .nav-dropdown-toggle {
        width: auto !important;
        justify-content: flex-start !important;
    }
    
    /* Dropdown Menu - Desktop */
    .admin-nav-links .nav-dropdown-menu,
    .nav .admin-nav-links .nav-dropdown-menu,
    .hero .nav .admin-nav-links .nav-dropdown-menu {
        position: fixed !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
        border: 1px solid var(--border) !important;
        z-index: 99999 !important;
        overflow: visible !important;
        /* display wird per JavaScript gesteuert - nicht hier setzen */
    }
    
    /* Mobile Toggle ausblenden */
    .nav-mobile-toggle {
        display: none !important;
    }
}

/* Sehr kleine Bildschirme */
@media (max-width: 480px) {
    :root {
        font-size: 13px;
    }
    
    .hero {
        padding: 12px 3vw 12px;
    }
    
    .hero-card {
        padding: 24px 16px;
    }
    
    .hero-card h1 {
        font-size: 1.75rem;
    }
    
    .content-section {
        padding: 20px 3vw 32px;
    }
    
    .auth-card {
        padding: 20px 16px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    table {
        font-size: 0.8rem;
        min-width: 500px;
    }
    
    table th,
    table td {
        padding: 6px 4px;
        font-size: 0.75rem;
    }
    
    /* Inline Styles für mobile Anpassungen */
    div[style*="display:flex"] {
        flex-wrap: wrap !important;
        max-width: 100% !important;
    }
    
    div[style*="max-width:1400px"],
    div[style*="max-width:1200px"],
    div[style*="max-width:1000px"] {
        padding: 0 3vw;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Verhindere horizontales Scrollen */
    * {
        max-width: 100%;
    }
    
    img, video, iframe {
        max-width: 100%;
        height: auto;
    }
    
    /* Formulare in Cards */
    .auth-card form {
        width: 100%;
    }
    
    .auth-card .form-group {
        width: 100%;
    }
    
    /* Buttons in Forms */
    form button,
    form .btn-primary,
    form .btn-secondary {
        width: 100%;
        margin-top: 8px;
    }
    
    /* Grid Layouts */
    div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Flex Layouts mit Gap */
    div[style*="display:flex"][style*="gap"] {
        flex-direction: column;
    }
    
    /* Status Badges und Labels */
    span[style*="padding:4px"],
    span[style*="padding:6px"] {
        font-size: 0.7rem !important;
        padding: 4px 8px !important;
    }
}

/* Touch-Optimierungen */
@media (hover: none) and (pointer: coarse) {
    .btn-primary,
    .btn-secondary,
    .nav-icon-link,
    .nav-cta {
        min-height: 44px;
        min-width: 44px;
    }
    
    input,
    select,
    textarea {
        min-height: 44px;
        font-size: 16px; /* Verhindert Zoom auf iOS */
    }
    
    a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 12px 4vw 12px;
    }
    
    .hero-grid {
        margin-top: 24px;
    }
    
    .content-section {
        padding: 20px 4vw 32px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
    border-left: 1px solid var(--border);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 6px;
    border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-strong);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg);
}

/* Cookie Settings Button (Floating) */
#cookie-settings-btn {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    width: 56px;
    height: 56px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 99998;
    transition: all 0.3s ease;
    font-size: 24px;
}

#cookie-settings-btn:hover {
    background: var(--accent-strong);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

#cookie-settings-btn:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    #cookie-settings-btn {
        bottom: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}

