/* ==========================================
   ULBG.DE - STYLE.CSS
   Helles, modernes Design für 3D-Druck Shop
   ========================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #17a2b8;
    --primary-dark: #138496;
    --secondary: #6c757d;
    --light: #f0f4f8;
    --white: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   PROMO BAR
   ========================================== */

.ulbg-promo-bar {
    background: linear-gradient(90deg, #0e7490 0%, #17a2b8 50%, #0e7490 100%);
    background-size: 200% 100%;
    animation: promoShimmer 4s ease infinite;
    color: #fff;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    padding: 7px 16px;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 1001;
}

.ulbg-promo-bar .promo-bar-icon {
    margin-right: 5px;
}

@keyframes promoShimmer {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}

/* ==========================================
   NAVIGATION
   ========================================== */

.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 45px;
    height: 45px;
}

.brand-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
    padding: 8px 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.cart-icon {
    position: relative;
    color: var(--text);
    padding: 8px;
    background: transparent !important;
    border: 0 !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    appearance: none !important;
    -webkit-appearance: none !important;
    box-shadow: none !important;
    outline: 0 !important;
    text-decoration: none;
    line-height: 1;
    font: inherit;
}

.cart-icon:focus,
.cart-icon:focus-visible,
.cart-icon:active {
    outline: 0 !important;
    box-shadow: none !important;
    border: 0 !important;
}

.cart-icon::-moz-focus-inner {
    border: 0;
    padding: 0;
}

.cart-icon svg {
    display: block;
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    background: var(--light);
    padding: 80px 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text);
}

.hero-content .highlight {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.printer-illustration {
    width: 100%;
    max-width: 450px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.1));
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

/* ==========================================
   SERVICES SECTION
   ========================================== */

.services {
    padding: 100px 0;
    background: var(--white);
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--light);
    padding: 40px 30px;
    border-radius: 12px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-icon {
    color: var(--primary);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.service-link:hover {
    gap: 10px;
}

/* ==========================================
   CTA SECTION
   ========================================== */

.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    text-align: center;
}

.cta-content h2 {
    font-size: 42px;
    color: white;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 20px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
}

.cta-content .btn-primary {
    background: white;
    color: var(--primary);
}

.cta-content .btn-primary:hover {
    background: var(--light);
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    background: var(--text);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-logo {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-brand .brand-text {
    color: white;
}

.footer-tagline {
    line-height: 1.6;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 25px 0;
    text-align: center;
}

/* Über mich Seite */
.about-section {
    padding: 80px 0;
    background: var(--white);
}

.about-hero {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.about-illustration {
    width: 100%;
    max-width: 400px;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.1));
}

.about-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--light);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ==========================================
   WARENKORB SIDEBAR
   ========================================== */

.cart-sidebar {
    position: fixed;
    right: -100vw;
    top: 0;
    width: min(400px, 100vw);
    height: 100vh;
    background: white;
    box-shadow: -2px 0 20px rgba(0,0,0,0.1);
    transition: right 0.3s;
    z-index: 2000;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid var(--border);
}

.cart-header h3 {
    margin: 0;
}

.close-cart {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
}

.cart-free-ship {
    padding: 10px 16px 12px;
    background: #f0f9ff;
    border-bottom: 1px solid #bae6fd;
}

.cart-free-ship-text {
    font-size: 12.5px;
    color: #0369a1;
    margin-bottom: 6px;
    font-weight: 500;
}

.cart-free-ship-text.success {
    color: #16a34a;
}

.cart-free-ship-track {
    height: 6px;
    background: #e0f2fe;
    border-radius: 3px;
    overflow: hidden;
}

.cart-free-ship-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    width: 0%;
    transition: width 0.5s ease, background 0.3s ease;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 600;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 20px;
}

.cart-footer {
    padding: 20px;
    border-top: 2px solid var(--border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* ==========================================
   HAMBURGER
   ========================================== */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================
   RESPONSIVE
   ========================================== */

/* Tablet */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content h1 {
        font-size: clamp(28px, 7vw, 36px);
    }

    .hero-buttons {
        flex-direction: column;
    }

    /* Hamburger sichtbar, Menü versteckt */
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 12px 0;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu li a {
        display: block;
        padding: 12px 24px;
        font-size: 16px;
    }

    /* Navbar relativ damit Dropdown korrekt positioniert */
    .navbar .container {
        position: relative;
    }

    /* Cart-Icon im Hamburger-Menü-Bereich */
    .cart-icon {
        margin-left: auto;
        margin-right: 8px;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    /* Page-Header Schriftgröße */
    .page-header h1 {
        font-size: clamp(24px, 6vw, 36px);
    }

    .page-header p {
        font-size: 15px;
    }

    /* Services, About */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-hero {
        grid-template-columns: 1fr;
    }

    /* Legal-Seiten Padding */
    .legal-content {
        padding: 24px 18px;
        margin: 40px auto;
    }

    .legal-content h1 {
        font-size: clamp(22px, 6vw, 32px);
    }

    /* Checkout */
    .checkout-grid {
        grid-template-columns: 1fr !important;
    }

    /* Cart-Sidebar volle Breite */
    .cart-sidebar {
        right: -100vw;
        width: 100vw;
    }

    .cart-sidebar.active {
        right: 0;
    }
}

/* Extra-klein */
@media (max-width: 480px) {
    .footer-container {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
    }

    .form-row .form-group.narrow {
        flex: 1;
    }
}
