/* styles.css - Hauptstildatei für JasonB's 3D-Druck Shop */

:root {
    /* Hauptfarbschema */
    --primary: #3a86ff;
    --secondary: #8338ec;
    --accent: #ff006e;
    --success: #38b000;
    --error: #d90429;
    
    /* Dark Mode Farben */
    --bg: #121212;
    --bg-accent: #1e1e1e;
    --text: #f8f9fa;
    --text-secondary: #adb5bd;
    --border: #2a2a2a;
    --input-bg: #2a2a2a;
    --gray: #6c757d;
    --primary-hover: #2a75ef;
    --card-bg: var(--bg-accent);
    --border-color: var(--border);
    --text-color: var(--text);
    --primary-color: var(--primary);
    --premium-badge: var(--accent);
    --badge-color: var(--secondary);
    --brand-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Grundlegende Stilregeln */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.3s;
}

a:hover {
    color: var(--secondary);
}

/* Testmodus-Hinweis (nur ohne Mollie-Live-Key) */
.test-mode-banner {
    background-color: #ffbe0b;
    color: #121212;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 6px 16px;
}

/* Header & Navigation */
header {
    background-color: var(--bg-accent);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(42, 117, 239, 0.3);
}

.btn-secondary {
    background-color: var(--bg-accent);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: var(--border);
}

.btn-success {
    background-color: var(--success);
    color: white;
}

.btn-success:hover {
    background-color: #2d9900;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(45, 153, 0, 0.3);
}

.btn-danger {
    background-color: var(--error);
    color: white;
}

.btn-danger:hover {
    background-color: #b5001e;
}

.btn-block {
    width: 100%;
    display: block;
}

/* Hero Section */
.hero {
    height: 500px;
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('/api/placeholder/1200/500');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    margin-bottom: 50px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    font-size: 32px;
    color: var(--text);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary);
}

.page-title {
    margin: 40px 0 20px;
    text-align: center;
    color: var(--text);
    font-size: 36px;
}

/* Product Section */
.product-section {
    padding: 4rem 0;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Product Cards */
.product-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--brand-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Product Image */
.product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--badge-color);
    color: white;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-badge.premium {
    background-color: var(--premium-badge);
}

/* Product Details */
.product-details {
    padding: 1.5rem;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    color: var(--text-color);
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.product-description {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Customization Options */
.customization-options {
    margin-bottom: 1.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.option-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.option-group {
    flex: 1;
}

.option-group.full-width {
    width: 100%;
}

.option-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* Color Options */
.color-options {
    display: flex;
    gap: 8px;
    margin-bottom: 0.5rem;
}

.color-option {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--border-color);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--card-bg), 0 0 0 3px var(--primary-color);
}

.selected-color-text {
    font-size: 0.75rem;
    margin: 0.25rem 0 0;
    color: var(--text-secondary);
}

/* Color Option Variants */
.color-option.red { background-color: #f44336; }
.color-option.blue { background-color: #2196f3; }
.color-option.green { background-color: #4caf50; }
.color-option.purple { background-color: #9c27b0; }
.color-option.orange { background-color: #ff9800; }
.color-option.white { background-color: #ffffff; }
.color-option.black { background-color: #000000; }
.color-option.gray { background-color: #9e9e9e; }
.color-option.beige { background-color: #f5f5dc; }
.color-option.teal { background-color: #009688; }
.color-option.navy { background-color: #0d47a1; }
.color-option.pink { background-color: #e91e63; }

/* Form Elements */
select, 
.size-select, 
.led-select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--input-bg);
    color: var(--text-color);
    font-size: 0.875rem;
    font-weight: 500;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

select:focus,
.size-select:focus,
.led-select:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(121, 82, 179, 0.2);
}

.form-group input:focus {
    box-shadow: 0 0 0 2px rgba(58, 134, 255, 0.25);
}

/* Upload Section */
.upload-section {
    margin-top: 1rem;
}

.upload-btn {
    width: 100%;
    padding: 0.6rem 0.8rem;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-btn:hover {
    background-color: var(--border-color);
}

.upload-btn:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(121, 82, 179, 0.2);
}

.upload-btn::before {
    content: "📤";
    margin-right: 0.5rem;
}

.upload-note {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0.4rem 0 0;
}

/* Quantity Controls */
.quantity,
.cart-quantity {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 5px;
    overflow: hidden;
}

.quantity {
    background-color: var(--input-bg);
    border-radius: 8px;
}

.cart-quantity {
    width: 100px;
    height: 36px;
    margin: 0 auto;
}

.quantity button,
.cart-quantity button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    color: var(--text);
}

.quantity button {
    width: 32px;
    height: 38px;
    font-size: 1rem;
}

.cart-quantity button {
    background-color: var(--bg-accent);
    width: 36px;
    height: 36px;
    font-size: 16px;
}

.quantity button:hover,
.cart-quantity button:hover {
    background-color: var(--border);
}

.quantity input,
.cart-quantity input {
    border: none;
    background-color: transparent;
    color: var(--text);
    text-align: center;
}

.quantity input {
    width: 40px;
    height: 38px;
    padding: 0;
    font-size: 0.875rem;
    font-weight: 500;
}

.cart-quantity input {
    width: 28px;
    height: 100%;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.quantity input:focus,
.cart-quantity input:focus {
    outline: none;
}

/* Remove spinner from number inputs */
.cart-quantity input::-webkit-outer-spin-button,
.cart-quantity input::-webkit-inner-spin-button,
.quantity input::-webkit-outer-spin-button,
.quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-quantity input[type=number],
.quantity input[type=number] {
    -moz-appearance: textfield;
}

/* Cart Actions */
.cart-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    align-items: center;
}

.add-to-cart {
    flex: 1;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-to-cart {
    font-size: 16px;
    font-weight: 500;
    padding: 0.7rem 1rem;
    border-radius: 8px;
}

.add-to-cart:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(42, 117, 239, 0.3);
}

.add-to-cart:active {
    transform: translateY(0);
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--bg-accent);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    border: 1px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--text);
}

.feature-card p {
    color: var(--text-secondary);
}

/* Fixed Cart Icon & Dropdown */
.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    z-index: 100; /* Ensure it stays above other elements */
}

.cart-icon i {
    font-size: 24px;
    color: var(--text);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.mini-cart {
    position: absolute;
    right: -10px;
    top: 40px;
    width: 320px;
    background-color: var(--bg-accent);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    padding: 20px;
    border: 1px solid var(--border);
    display: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

/* Create a safe hover area between icon and mini-cart */
.cart-icon::after {
    content: '';
    position: absolute;
    height: 20px;
    left: 0;
    right: 0;
    top: 100%;
    display: block;
    z-index: 1;
}

/* Mini Cart Content */
.mini-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.mini-cart-title {
    font-weight: 600;
    color: var(--text);
}

.mini-cart-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text);
    padding: 0;
    line-height: 1;
}

.mini-cart-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.mini-cart-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.mini-cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    object-fit: cover;
    margin-right: 10px;
}

.mini-cart-item-details {
    flex: 1;
}

.mini-cart-item-title {
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--text);
    font-size: 14px;
}

.mini-cart-item-price {
    font-size: 14px;
    color: var(--text-secondary);
}

.mini-cart-item-remove {
    color: var(--error);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    height: 24px;
    width: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    margin-left: 10px;
    transition: all 0.2s ease;
}

.mini-cart-item-remove:hover {
    background-color: rgba(217, 4, 41, 0.1);
}

.mini-cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.mini-cart-total {
    font-weight: 600;
    color: var(--text);
}

.mini-cart-empty {
    text-align: center;
    padding: 20px 0;
    color: var(--text-secondary);
}

/* Cart Page */
.cart-container {
    background-color: var(--bg-accent);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    padding: 30px;
    margin-bottom: 50px;
    border: 1px solid var(--border);
}

.cart-empty {
    text-align: center;
    padding: 50px 0;
}

.cart-empty p {
    margin-bottom: 30px;
    color: var(--text-secondary);
    font-size: 18px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    text-align: left;
    padding: 15px 10px;
    border-bottom: 2px solid var(--border);
    font-weight: 600;
    color: var(--text);
}

.cart-table td {
    padding: 15px 10px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.cart-product {
    display: flex;
    align-items: center;
}

.cart-product-image {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    object-fit: cover;
    margin-right: 15px;
}

.cart-product-details h4 {
    margin-bottom: 5px;
    color: var(--text);
}

.cart-product-options {
    font-size: 14px;
    color: var(--text-secondary);
}

.cart-remove, .mini-cart-item-remove {
    color: var(--error);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s;
}

.cart-remove:hover, .mini-cart-item-remove:hover {
    color: #b5001e;
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.cart-actions button {
    margin-right: 10px;
}

.cart-totals {
    width: 300px;
}

.cart-totals-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--text);
}

.cart-totals-row.total {
    font-size: 20px;
    font-weight: 600;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    margin-top: 15px;
}

.checkout-button {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    margin-top: 20px;
}

/* Toast Messages */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.toast {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideIn 0.3s ease-out forwards;
    background-color: var(--bg-accent);
    border-left: 4px solid var(--primary);
    color: var(--text);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-success {
    border-left-color: var(--success);
}

.toast-error {
    border-left-color: var(--error);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    margin-left: 10px;
    font-size: 18px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--bg-accent);
    border-radius: 8px;
    max-width: 400px;
    width: 100%;
    padding: 30px;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    border: 1px solid var(--border);
}

.modal.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    background: none;
    border: none;
}

.close-modal:hover {
    color: var(--text);
}

.modal h2 {
    margin-bottom: 20px;
    color: var(--text);
}

/* GPSR Button and Modal Styling */
.gpsr-button {
    display: inline-block;
    background-color: #4a6da7;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    margin: 10px 0;
    text-align: center;
    user-select: none;
}

.gpsr-button:hover {
    background-color: #3a5d97;
    color: white;
}

.product-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.product-detail-modal.active {
    opacity: 1;
    visibility: visible;
}

.product-detail {
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    background-color: var(--bg-accent);
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    background: none;
    border: none;
    z-index: 10;
    line-height: 1;
}

.tab-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    border-bottom: 1px solid var(--border);
}

.tab-nav li {
    margin: 0;
    padding: 0;
}

.tab-nav a {
    display: block;
    padding: 15px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.tab-nav a:hover {
    color: var(--text);
}

.tab-nav a.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.tab-contents {
    padding: 20px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.product-detail-content {
    margin-bottom: 30px;
}

.product-detail-main {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .product-detail-main {
        flex-direction: row;
        gap: 30px;
    }
    
    .product-detail-image {
        width: 40%;
    }
    
    .product-detail-info {
        width: 60%;
    }
}

.product-detail-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.product-detail-title {
    font-size: 1.5rem;
    margin: 0 0 10px;
    color: var(--text);
}

.product-price-large {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

/* Legal tab styling */
.legal-content, .shipping-content {
    padding: 10px 0;
}

.legal-section, .shipping-section {
    margin-bottom: 30px;
}

.legal-content h2, .shipping-content h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.legal-content h3, .shipping-content h3 {
    font-size: 1.25rem;
    color: var(--text);
    margin-top: 20px;
    margin-bottom: 10px;
}

.legal-content h4, .shipping-content h4 {
    font-size: 1.1rem;
    color: var(--text);
    margin-top: 15px;
    margin-bottom: 8px;
}

.legal-content p, .shipping-content p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.legal-content ul, .shipping-content ul {
    margin-bottom: 20px;
    margin-left: 20px;
    color: var(--text-secondary);
}

.legal-content ul li, .shipping-content ul li {
    margin-bottom: 6px;
}

.safety-warnings {
    background-color: rgba(217, 4, 41, 0.1);
    border-left: 3px solid var(--error);
    padding: 15px;
    margin: 15px 0;
}

.safety-warnings h4 {
    color: var(--error);
    margin-top: 0;
}

.safety-warnings ul {
    margin-bottom: 0;
}

/* Checkout-spezifische Styles */
/* --------------------------- */

/* Checkout-Container Styling */
.checkout-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

.pulse {
  animation: pulse 1.5s ease-in-out infinite;
}

/* Checkout-Schritte Navigationsleiste */
.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.checkout-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  margin: 0 1rem;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.5rem;
  border: 2px solid var(--border);
  transition: all 0.3s ease;
}

.step-circle.active {
  background-color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.3);
}

.step-circle.completed {
  background-color: var(--success);
  border-color: var(--success);
}

.step-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.step-progress {
  position: absolute;
  height: 2px;
  background-color: var(--border);
  top: 20px;
  width: 100%;
  right: 50%;
  z-index: -1;
}

.step-progress.active {
  background-color: var(--primary);
}

/* Form Styling für Checkout */
.form-section {
  background-color: var(--bg-accent);
  border-radius: 8px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-section-header {
  background-color: rgba(58, 134, 255, 0.1);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.form-section-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
}

.form-section-header i {
  margin-right: 0.75rem;
  color: var(--primary);
  font-size: 1.25rem;
}

.form-section-body {
  padding: 1.5rem;
}

/* Form-Gruppe für Checkout */
.checkout-form-group {
  margin-bottom: 1.25rem;
}

.checkout-form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text);
}

.checkout-form-input {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.checkout-form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.2);
  outline: none;
}

/* Abweichende Rechnungsadresse Toggle */
.billing-toggle {
  display: flex;
  align-items: center;
  margin: 1rem 0;
}

.toggle-checkbox {
  height: 0;
  width: 0;
  visibility: hidden;
  position: absolute;
}

.toggle-label {
  cursor: pointer;
  display: flex;
  align-items: center;
  position: relative;
  margin-left: 0.5rem;
}

.billing-section {
  background-color: var(--bg-element);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-top: 1rem;
  border: 1px solid var(--border);
}

/* Versand-Optionen */
.shipping-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.shipping-option:hover {
  background-color: rgba(58, 134, 255, 0.05);
}

.shipping-option-selected {
  border-color: var(--primary);
  background-color: rgba(58, 134, 255, 0.1);
}

.shipping-option-details {
  display: flex;
  align-items: center;
}

.shipping-option-icon {
  margin-right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--bg-accent);
  color: var(--text);
}

.shipping-option-info h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
}

.shipping-option-info p {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.shipping-option-price {
  font-weight: 600;
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  background-color: var(--bg);
  border-radius: 1rem;
}

/* Zahlungs-Optionen */
.payment-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-option:hover {
  background-color: rgba(58, 134, 255, 0.05);
}

.payment-option-selected {
  border-color: var(--primary);
  background-color: rgba(58, 134, 255, 0.1);
}

/* Zusammenfassungs-Box */
.summary-box {
  background-color: var(--bg);
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
}

.summary-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.95rem;
}

.summary-label {
  color: var(--text-secondary);
}

.summary-value {
  font-weight: 500;
  color: var(--text);
  text-align: right;
}

/* AGB Checkbox */
.terms-checkbox {
  display: flex;
  align-items: flex-start;
  margin: 1.5rem 0;
}

.terms-checkbox input[type="checkbox"] {
  margin-top: 0.25rem;
  margin-right: 0.75rem;
}

/* Navigation Buttons */
.form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* Warenkorb Sidebar im Checkout */
.order-sidebar {
  position: sticky;
  top: 2rem;
  background-color: var(--bg-accent);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
}

.sidebar-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
  background-color: rgba(58, 134, 255, 0.05);
}

.sidebar-title {
  margin: 0;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  color: var(--text);
}

.sidebar-content {
  padding: 1.25rem;
}

/* Warenkorb Items im Checkout */
.cart-item-list {
  max-height: 320px;
  overflow-y: auto;
  margin-bottom: 1.5rem;
  scrollbar-width: thin;
}

/* Custom Scrollbar für Sidebar */
.cart-item-list::-webkit-scrollbar {
  width: 6px;
}

.cart-item-list::-webkit-scrollbar-track {
  background: var(--bg);
  border-radius: 3px;
}

.cart-item-list::-webkit-scrollbar-thumb {
  background-color: var(--border);
  border-radius: 3px;
}

/* Alert für Fehler */
.checkout-alert {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.checkout-alert-danger {
  background-color: rgba(217, 4, 41, 0.1);
  border: 1px solid rgba(217, 4, 41, 0.3);
}

/* Responsive Design für Checkout */
@media (max-width: 768px) {
  .checkout-step-label {
    display: none;
  }
  
  .form-navigation {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn-back {
    order: 2;
  }
  
  .btn-next, .btn-submit {
    order: 1;
    width: 100%;
  }
}

/* Mobile Optimization for Checkout Process */

/* Better responsive styling for mobile checkout */
@media screen and (max-width: 767px) {
    /* Improved checkout progress display */
    .checkout-progress {
        margin-bottom: 1.5rem;
        overflow-x: auto;
        padding: 0.5rem 0;
        justify-content: space-around;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    
    .checkout-progress::-webkit-scrollbar {
        display: none; /* Hide scrollbar for Chrome/Safari/Opera */
    }
    
    .checkout-step {
        margin: 0 0.5rem;
        flex-shrink: 0;
        min-width: 70px;
    }
    
    .step-connector {
        width: 30px;
    }
    
    /* Optimize step labels for small screens */
    .step-label {
        font-size: 0.75rem;
    }
    
    /* Improve form layout on mobile */
    .form-row {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .form-group {
        margin-bottom: 0.75rem;
        width: 100% !important;
        margin-right: 0 !important;
    }
    
    /* More compact form fields for mobile */
    .form-input, select, .checkout-form-input {
        padding: 0.625rem 0.75rem;
        font-size: 16px; /* Prevent iOS zoom on focus */
    }
    
    /* Fix container padding on small screens */
    .checkout-container {
        padding: 1rem 0.75rem;
    }
    
    /* Fix layout issues on small devices */
    .form-section {
        margin-bottom: 0.75rem;
        border-radius: 6px;
    }
    
    .form-section-body {
        padding: 0.875rem;
    }
    
    .form-section-header {
        padding: 0.75rem;
    }
    
    .form-section-header h2 {
        font-size: 1.125rem;
    }
    
    /* Better touch targets for options */
    .shipping-option, .payment-option {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .shipping-option-details, .payment-option-details {
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    .shipping-option-price {
        align-self: flex-end;
        margin-top: 0.25rem;
    }
    
    .payment-option-logo {
        margin-bottom: 0.5rem;
    }
    
    .payment-option-logo img {
        max-width: 80px;
        height: auto;
    }
    
    /* Mobile friendly form navigation */
    .form-navigation {
        flex-direction: column-reverse;
        gap: 0.75rem;
        padding-top: 1rem;
        margin-top: 1.5rem;
    }
    
    .form-navigation button {
        width: 100%;
        padding: 0.75rem;
        font-size: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 48px; /* Better touch target */
    }
    
    .btn-submit {
        background-color: var(--primary);
        box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    }
    
    /* Fix column layout for mobile */
    .row {
        flex-direction: column;
    }
    
    .col-md-8, .col-md-4 {
        width: 100%;
        padding: 0;
    }
    
    /* Better sidebar for mobile */
    .order-sidebar {
        margin-top: 1.5rem;
        position: static;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    }
    
    .sidebar-header {
        padding: 0.875rem;
    }
    
    .sidebar-content {
        padding: 0.875rem;
    }
    
    /* More compact cart items */
    .cart-item-list {
        max-height: 240px;
        margin-bottom: 1rem;
    }
    
    .cart-item {
        display: grid;
        grid-template-columns: 50px 1fr auto;
        grid-gap: 0.5rem;
        padding: 0.625rem 0;
        align-items: center;
    }
    
    .cart-item-image-container {
        width: 50px;
        height: 50px;
        margin-right: 0.5rem;
    }
    
    .cart-item-info {
        grid-column: 2 / 4;
        grid-row: 1;
    }
    
    .cart-item-price {
        grid-column: 3;
        grid-row: 2;
        border-top: none;
        padding-top: 0;
        margin-top: 0;
        align-self: end;
        width: auto;
    }
    
    .cart-item-title {
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }
    
    .cart-item-options {
        font-size: 0.75rem;
    }
    
    /* Better cost summary */
    .cost-summary {
        margin-top: 0.75rem;
        background-color: var(--bg);
        padding: 0.75rem;
        border-radius: 6px;
        border: 1px solid var(--border);
    }
    
    .cost-row {
        padding: 0.25rem 0;
    }
    
    .cost-row-total {
        font-size: 1rem;
        font-weight: 700;
    }
    
    /* Better address displays */
    .summary-content {
        font-size: 0.875rem;
    }
    
    .summary-row {
        display: block;
        margin-bottom: 0.875rem;
    }
    
    .summary-label {
        display: block;
        margin-bottom: 0.25rem;
    }
    
    .summary-value {
        display: block;
    }
    
    .summary-value-address {
        padding: 0.625rem;
        font-size: 0.8125rem;
    }
    
    .summary-box {
        padding: 0.875rem;
        margin: 1rem 0;
    }
    
    .summary-header {
        margin-bottom: 0.75rem;
    }
    
    /* Better checkbox handling */
    .terms-checkbox {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 0.5rem;
        align-items: flex-start;
        margin: 1.25rem 0;
    }
    
    .terms-checkbox input[type="checkbox"] {
        margin: 0.25rem 0 0 0;
        width: 20px;
        height: 20px;
    }
    
    .terms-checkbox label {
        font-size: 0.875rem;
        line-height: 1.4;
    }
    
    /* Fixed-bottom checkout button for better UX on mobile */
    .checkout-sticky-bottom {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: var(--bg);
        padding: 0.75rem;
        box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.2);
        z-index: 100;
        border-top: 1px solid var(--border);
        display: flex;
        flex-direction: column;
    }
    
    /* Animated loading overlay improvements */
    .loading-overlay {
        background-color: rgba(18, 18, 18, 0.95);
    }
    
    .loading-text {
        font-size: 1.125rem;
        margin-top: 1.5rem;
    }
    
    .loading-subtext {
        font-size: 0.875rem;
        max-width: 90%;
        text-align: center;
        color: #adb5bd;
    }
    
    .loading-spinner {
        width: 48px;
        height: 48px;
        border-width: 3px;
    }
}

/* Additional refinements for very small screens */
@media screen and (max-width: 380px) {
    .checkout-step {
        min-width: 60px;
        margin: 0 0.25rem;
    }
    
    .step-circle {
        width: 36px;
        height: 36px;
    }
    
    .form-section-body {
        padding: 0.75rem;
    }
    
    .form-section-header {
        padding: 0.625rem 0.75rem;
    }
    
    .form-input, select, .checkout-form-input {
        padding: 0.5rem 0.625rem;
    }
    
    .cart-item-image-container {
        width: 40px;
        height: 40px;
    }
    
    .sidebar-content {
        padding: 0.75rem;
    }
}

/* Optimizations for tablets in portrait mode */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .order-sidebar {
        margin-top: 30px;
    }
    
    .checkout-container {
        max-width: 95%;
    }
    
    .form-section-body {
        padding: 1.25rem;
    }
    
    .cart-item-list {
        max-height: 280px;
    }
}

/* Better touch interactions for all mobile devices */
@media (hover: none) and (pointer: coarse) {
    .form-input, 
    select,
    .checkout-form-input,
    .form-navigation button,
    .shipping-option,
    .payment-option {
        min-height: 44px; /* Apple's recommended minimum */
    }
    
    /* More space around interactive elements */
    .shipping-option, .payment-option {
        margin-bottom: 1rem;
    }
    
    .payment-option-radio, .shipping-option input[type="radio"] {
        width: 22px;
        height: 22px;
    }
    
    /* Fix tap targets for lists */
    .cart-item {
        padding: 0.75rem 0;
    }
    
    /* Show active states on touch */
    .btn:active,
    .form-navigation button:active {
        opacity: 0.8;
        transform: translateY(1px);
    }
}

/* Enhanced loading overlay styling */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 18, 18, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(58, 134, 255, 0.1);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 24px;
    font-size: 20px;
    color: white;
    font-weight: 600;
}

.loading-subtext {
    margin-top: 12px;
    font-size: 15px;
    color: #adb5bd;
    text-align: center;
    max-width: 80%;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer Styles - Restored */
footer {
    background-color: #0a0a0a;
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 18px;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ddd;
    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-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #aaa;
}

/* Form Elements - Enhanced for login/register forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text);
}

.form-input {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text);
    background-color: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.2);
    outline: none;
}

/* Login/Register Modal Specific Styling */
.modal .form-group {
    margin-bottom: 1rem;
}

.modal .form-input {
    background-color: var(--input-bg);
    color: var(--text);
    border: 1px solid var(--border-color);
}

.modal .form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(58, 134, 255, 0.25);
}

/* Login Page Specific Styling */
.login-container .form-input,
.register-container .form-input {
    background-color: var(--input-bg);
    color: var(--text);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.login-container .form-input:focus,
.register-container .form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.2);
    outline: none;
}

/* Profile Page Styling */
.profile-page main {
    padding: 40px 0;
}

.profile-container {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

/* Profile Sidebar */
.profile-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.profile-menu {
    background-color: var(--bg-accent);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.profile-menu-item {
    display: block;
    padding: 15px 20px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
    text-decoration: none;
}

.profile-menu-item:last-child {
    border-bottom: none;
}

.profile-menu-item:hover {
    background-color: rgba(58, 134, 255, 0.1);
    color: var(--primary);
}

.profile-menu-item.active {
    background-color: var(--primary);
    color: white;
    font-weight: 500;
}

/* Profile Content */
.profile-content {
    flex: 1;
    background-color: var(--bg-accent);
    border-radius: 8px;
    padding: 25px;
    border: 1px solid var(--border);
}

.profile-section {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.profile-section.active {
    display: block;
}

.profile-section h2 {
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 24px;
}

/* Profile Form */
.profile-form .form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.profile-form .form-group {
    flex: 1;
}

.profile-form .form-group-large {
    flex: 3;
}

.profile-form .form-group-small {
    flex: 1;
}

.profile-form label {
    display: block;
    margin-bottom: 5px;
    color: var(--text);
    font-weight: 500;
}

.profile-form input,
.profile-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    background-color: var(--input-bg);
    color: var(--text);
    border-radius: 5px;
}

.profile-form input:disabled {
    background-color: var(--bg);
    cursor: not-allowed;
    opacity: 0.7;
}

.profile-form small {
    display: block;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 5px;
}

.profile-form .form-actions {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* Password Form */
.password-form .form-group {
    margin-bottom: 20px;
}

.password-form input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    background-color: var(--input-bg);
    color: var(--text);
    border-radius: 5px;
    font-size: 1rem;
}

.password-form input[type="password"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.2);
    outline: none;
}

.password-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 500;
}

.password-form .btn {
    margin-top: 10px;
}

/* Alert Messages */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-error {
    background-color: rgba(217, 4, 41, 0.1);
    border: 1px solid rgba(217, 4, 41, 0.3);
    color: #ff6b6b;
}

.alert-success {
    background-color: rgba(56, 176, 0, 0.1);
    border: 1px solid rgba(56, 176, 0, 0.3);
    color: #7dd956;
}

/* Orders Section */
.orders-empty {
    text-align: center;
    padding: 30px;
}

.orders-empty p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card {
    background-color: var(--bg);
    border-radius: 8px;
    border: 1px solid var(--border);
    padding: 20px;
    overflow: hidden;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.order-number {
    font-size: 1.1rem;
    color: var(--text);
}

.order-date {
    color: var(--text-secondary);
}

.order-status {
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.order-status.ausstehend {
    background-color: #ffd166;
    color: #805b00;
}

.order-status.processing,
.order-status.in.bearbeitung {
    background-color: #80b1ff;
    color: #0042a8;
}

.order-status.bezahlt,
.order-status.paid {
    background-color: #4cc9f0;
    color: #006080;
}

.order-status.versendet,
.order-status.shipped {
    background-color: #a3b18a;
    color: #2c3323;
}

.order-status.geliefert,
.order-status.delivered {
    background-color: #57cc99;
    color: #1e4d36;
}

.order-status.storniert,
.order-status.cancelled {
    background-color: #ef476f;
    color: #80001f;
}

.order-tracking {
    background-color: rgba(58, 134, 255, 0.1);
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    border: 1px solid rgba(58, 134, 255, 0.2);
}

.order-tracking a {
    color: var(--primary);
    font-weight: 500;
}

.order-items {
    margin-bottom: 15px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-name {
    font-weight: 500;
    color: var(--text);
    margin-right: auto;
}

.order-item-details {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-right: 15px;
}

.order-item-quantity {
    margin-right: 15px;
    color: var(--text-secondary);
}

.order-item-price {
    font-weight: 500;
    color: var(--primary);
}

.order-total {
    text-align: right;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    font-size: 1.1rem;
    color: var(--text);
}

.order-actions {
    margin-top: 15px;
    text-align: right;
}

/* Responsive Design for Profile Page */
@media (max-width: 768px) {
    .profile-container {
        flex-direction: column;
    }
    
    .profile-sidebar {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .profile-form .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .order-status {
        align-self: flex-start;
    }
    
    .order-item {
        flex-wrap: wrap;
    }
    
    .order-item-details {
        width: 100%;
        margin-top: 5px;
        margin-bottom: 5px;
    }
}

/* Mobile Optimization for Checkout Process */

/* Better responsive styling for mobile checkout */
@media screen and (max-width: 767px) {
    /* Improved checkout progress display */
    .checkout-progress {
        margin-bottom: 1.5rem;
        overflow-x: auto;
        padding: 0.5rem 0;
        justify-content: space-around;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    
    .checkout-progress::-webkit-scrollbar {
        display: none; /* Hide scrollbar for Chrome/Safari/Opera */
    }
    
    .checkout-step {
        margin: 0 0.5rem;
        flex-shrink: 0;
        min-width: 70px;
    }
    
    .step-connector {
        width: 30px;
    }
    
    /* Optimize step labels for small screens */
    .step-label {
        font-size: 0.75rem;
    }
    
    /* Improve form layout on mobile */
    .form-row {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .form-group {
        margin-bottom: 0.75rem;
        width: 100% !important;
        margin-right: 0 !important;
    }
    
    /* More compact form fields for mobile */
    .form-input, select, .checkout-form-input {
        padding: 0.625rem 0.75rem;
        font-size: 16px; /* Prevent iOS zoom on focus */
    }
    
    /* Fix container padding on small screens */
    .checkout-container {
        padding: 1rem 0.75rem;
    }
    
    /* Fix layout issues on small devices */
    .form-section {
        margin-bottom: 0.75rem;
        border-radius: 6px;
    }
    
    .form-section-body {
        padding: 0.875rem;
    }
    
    .form-section-header {
        padding: 0.75rem;
    }
    
    .form-section-header h2 {
        font-size: 1.125rem;
    }
    
    /* Better touch targets for options */
    .shipping-option, .payment-option {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .shipping-option-details, .payment-option-details {
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    .shipping-option-price {
        align-self: flex-end;
        margin-top: 0.25rem;
    }
    
    .payment-option-logo {
        margin-bottom: 0.5rem;
    }
    
    .payment-option-logo img {
        max-width: 80px;
        height: auto;
    }
    
    /* Mobile friendly form navigation */
    .form-navigation {
        flex-direction: column-reverse;
        gap: 0.75rem;
        padding-top: 1rem;
        margin-top: 1.5rem;
    }
    
    .form-navigation button {
        width: 100%;
        padding: 0.75rem;
        font-size: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 48px; /* Better touch target */
    }
    
    .btn-submit {
        background-color: var(--primary);
        box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    }
    
    /* Fix column layout for mobile */
    .row {
        flex-direction: column;
    }
    
    .col-md-8, .col-md-4 {
        width: 100%;
        padding: 0;
    }
    
    /* Better sidebar for mobile */
    .order-sidebar {
        margin-top: 1.5rem;
        position: static;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    }
    
    .sidebar-header {
        padding: 0.875rem;
    }
    
    .sidebar-content {
        padding: 0.875rem;
    }
    
    /* More compact cart items */
    .cart-item-list {
        max-height: 240px;
        margin-bottom: 1rem;
    }
    
    .cart-item {
        display: grid;
        grid-template-columns: 50px 1fr auto;
        grid-gap: 0.5rem;
        padding: 0.625rem 0;
        align-items: center;
    }
    
    .cart-item-image-container {
        width: 50px;
        height: 50px;
        margin-right: 0.5rem;
    }
    
    .cart-item-info {
        grid-column: 2 / 4;
        grid-row: 1;
    }
    
    .cart-item-price {
        grid-column: 3;
        grid-row: 2;
        border-top: none;
        padding-top: 0;
        margin-top: 0;
        align-self: end;
        width: auto;
    }
    
    .cart-item-title {
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }
    
    .cart-item-options {
        font-size: 0.75rem;
    }
    
    /* Better cost summary */
    .cost-summary {
        margin-top: 0.75rem;
        background-color: var(--bg);
        padding: 0.75rem;
        border-radius: 6px;
        border: 1px solid var(--border);
    }
    
    .cost-row {
        padding: 0.25rem 0;
    }
    
    .cost-row-total {
        font-size: 1rem;
        font-weight: 700;
    }
    
    /* Better address displays */
    .summary-content {
        font-size: 0.875rem;
    }
    
    .summary-row {
        display: block;
        margin-bottom: 0.875rem;
    }
    
    .summary-label {
        display: block;
        margin-bottom: 0.25rem;
    }
    
    .summary-value {
        display: block;
    }
    
    .summary-value-address {
        padding: 0.625rem;
        font-size: 0.8125rem;
    }
    
    .summary-box {
        padding: 0.875rem;
        margin: 1rem 0;
    }
    
    .summary-header {
        margin-bottom: 0.75rem;
    }
    
    /* Better checkbox handling */
    .terms-checkbox {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 0.5rem;
        align-items: flex-start;
        margin: 1.25rem 0;
    }
    
    .terms-checkbox input[type="checkbox"] {
        margin: 0.25rem 0 0 0;
        width: 20px;
        height: 20px;
    }
    
    .terms-checkbox label {
        font-size: 0.875rem;
        line-height: 1.4;
    }
    
    /* Fixed-bottom checkout button for better UX on mobile */
    .checkout-sticky-bottom {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: var(--bg);
        padding: 0.75rem;
        box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.2);
        z-index: 100;
        border-top: 1px solid var(--border);
        display: flex;
        flex-direction: column;
    }
    
    /* Animated loading overlay improvements */
    .loading-overlay {
        background-color: rgba(18, 18, 18, 0.95);
    }
    
    .loading-text {
        font-size: 1.125rem;
        margin-top: 1.5rem;
    }
    
    .loading-subtext {
        font-size: 0.875rem;
        max-width: 90%;
        text-align: center;
        color: #adb5bd;
    }
    
    .loading-spinner {
        width: 48px;
        height: 48px;
        border-width: 3px;
    }
}

/* Additional refinements for very small screens */
@media screen and (max-width: 380px) {
    .checkout-step {
        min-width: 60px;
        margin: 0 0.25rem;
    }
    
    .step-circle {
        width: 36px;
        height: 36px;
    }
    
    .form-section-body {
        padding: 0.75rem;
    }
    
    .form-section-header {
        padding: 0.625rem 0.75rem;
    }
    
    .form-input, select, .checkout-form-input {
        padding: 0.5rem 0.625rem;
    }
    
    .cart-item-image-container {
        width: 40px;
        height: 40px;
    }
    
    .sidebar-content {
        padding: 0.75rem;
    }
}

/* Optimizations for tablets in portrait mode */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .order-sidebar {
        margin-top: 30px;
    }
    
    .checkout-container {
        max-width: 95%;
    }
    
    .form-section-body {
        padding: 1.25rem;
    }
    
    .cart-item-list {
        max-height: 280px;
       }
}

/* Better touch interactions for all mobile devices */
@media (hover: none) and (pointer: coarse) {
    .form-input, 
    select,
    .checkout-form-input,
    .form-navigation button,
    .shipping-option,
    .payment-option {
        min-height: 44px; /* Apple's recommended minimum */
    }
    
    /* More space around interactive elements */
    .shipping-option, .payment-option {
        margin-bottom: 1rem;
    }
    
    .payment-option-radio, .shipping-option input[type="radio"] {
        width: 22px;
        height: 22px;
    }
    
    /* Fix tap targets for lists */
    .cart-item {
        padding: 0.75rem 0;
    }
    
    /* Show active states on touch */
    .btn:active,
    .form-navigation button:active {
        opacity: 0.8;
        transform: translateY(1px);
    }
}

/* Enhanced loading overlay styling */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 18, 18, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(58, 134, 255, 0.1);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 24px;
    font-size: 20px;
    color: white;
    font-weight: 600;
}

.loading-subtext {
    margin-top: 12px;
    font-size: 15px;
    color: #adb5bd;
    text-align: center;
    max-width: 80%;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Individueller Druck (custom.php, Teaser auf index.php) */
.custom-page { padding-bottom: 60px; }
.custom-intro { max-width: 720px; margin: 0 auto 30px; text-align: center; color: var(--text-secondary); }
.custom-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.custom-card { background-color: var(--bg-accent); border: 1px solid var(--border); border-radius: 8px; padding: 24px; box-shadow: var(--brand-shadow); }
.custom-preview-card { position: sticky; top: 90px; }
.custom-viewer { position: relative; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; border: 2px dashed var(--border); background: radial-gradient(circle at 50% 40%, #262a33 0%, var(--bg) 75%); transition: border-color 0.2s; }
.custom-viewer.is-dragover { border-color: var(--primary); }
.custom-viewer-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.custom-viewer-canvas:active { cursor: grabbing; }
.custom-viewer-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; text-align: center; color: var(--text-secondary); pointer-events: none; }
.custom-viewer-empty[hidden] { display: none; }
.custom-viewer-empty i { font-size: 48px; color: var(--primary); }
.custom-viewer-dims { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 4px; background: rgba(0, 0, 0, 0.6); color: var(--text); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.custom-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.custom-file-label { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; padding: 12px; border-radius: 5px; background-color: var(--primary); color: #fff; font-weight: 500; cursor: pointer; overflow-wrap: anywhere; transition: background-color 0.2s; }
.custom-file-label:hover { background-color: var(--primary-hover); }
.custom-preview-card:focus-within .custom-file-label { box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.35); }
.custom-hint { margin-top: 10px; font-size: 0.85rem; color: var(--text-secondary); }
.custom-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.custom-form textarea.form-input { resize: vertical; }
.custom-price { margin: 8px 0 16px; padding: 16px; border-radius: 6px; background-color: var(--bg); border: 1px solid var(--border); }
.custom-price-empty { color: var(--text-secondary); text-align: center; }
.custom-price-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; color: var(--text-secondary); }
.custom-price-head strong { font-size: 1.6rem; color: var(--text); font-variant-numeric: tabular-nums; }
.custom-price-list { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 0.9rem; }
.custom-price-list dt { color: var(--text-secondary); }
.custom-price-list dd { margin: 0; text-align: right; color: var(--text); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.custom-price-note { margin-top: 12px; font-size: 0.8rem; color: var(--text-secondary); }
.custom-status { margin-bottom: 16px; padding: 10px 14px; border-radius: 5px; font-size: 0.9rem; background-color: var(--bg); border: 1px solid var(--border); color: var(--text-secondary); }
.custom-status a { color: var(--primary); font-weight: 500; }
.custom-status-error { background-color: rgba(217, 4, 41, 0.1); border-color: rgba(217, 4, 41, 0.3); color: #ff6b6b; }
.custom-status-success { background-color: rgba(56, 176, 0, 0.1); border-color: rgba(56, 176, 0, 0.3); color: #7dd956; }
.custom-actions .btn, .custom-request .btn { width: 100%; padding: 12px 20px; }
.custom-actions .btn:disabled, .custom-request .btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.custom-request .btn-secondary { border: 1px solid var(--primary); color: var(--primary); background-color: transparent; }
.custom-request .btn-secondary:hover:not(:disabled) { background-color: rgba(58, 134, 255, 0.12); }
.custom-login-hint { color: var(--text-secondary); font-size: 0.9rem; }
.custom-login-hint a { color: var(--primary); }
.custom-request { margin-top: 24px; padding: 16px 0 0; border: 0; border-top: 1px solid var(--border); }
.custom-request legend { padding: 0; font-weight: 600; color: var(--text); }
.custom-request .custom-hint { margin: 4px 0 14px; }
.custom-request .form-checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; color: var(--text-secondary); }
.custom-request .form-checkbox input { margin-top: 4px; }
.custom-request .form-checkbox a { color: var(--primary); }
.custom-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cart-qty-fixed { display: inline-block; padding: 4px 10px; border-radius: 4px; border: 1px solid var(--border); color: var(--text-secondary); font-size: 0.85rem; cursor: help; }
.custom-teaser { padding: 60px 0; }
.custom-teaser-card { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 32px; border-radius: 8px; background: linear-gradient(135deg, rgba(58, 134, 255, 0.14), rgba(131, 56, 236, 0.14)); border: 1px solid var(--border); }
.custom-teaser-card h2 { color: var(--text); margin-bottom: 8px; }
.custom-teaser-card p { color: var(--text-secondary); max-width: 640px; }
.custom-teaser-card .btn { flex-shrink: 0; }
@media (max-width: 900px) {
    .custom-grid { grid-template-columns: minmax(0, 1fr); }
    .custom-preview-card { position: static; }
}
@media (max-width: 560px) {
    .custom-card { padding: 16px; }
    .custom-options { grid-template-columns: minmax(0, 1fr); }
    .custom-teaser-card { flex-direction: column; align-items: flex-start; padding: 24px; }
}
