/**
 * PATIOVISTA — Global Stylesheet
 * Version: 2.0
 * Verwendung: Alle Website-Seiten, Blog-Artikel, Customer Portal
 */

/* ============================================
   1. RESET & BASE
   ============================================ */

   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #fafaf8;
    line-height: 1.8;
    color: #333;
}

main {
    margin-top: 80px;
}

@media (max-width: 900px) {
    main {
        margin-top: 60px;
    }
}

/* ============================================
   2. TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant', serif;
    font-weight: 400;
    line-height: 1.2;
    color: #1a1a1a;
}

h1 { font-size: 52px; margin-bottom: 20px; }
h2 { font-size: 36px; margin: 60px 0 25px; }
h3 { font-size: 24px; margin: 40px 0 20px; font-weight: 500; }
h4 { font-size: 20px; margin-bottom: 15px; }

p {
    font-size: 17px;
    margin-bottom: 20px;
    line-height: 1.8;
}

ul, ol {
    margin: 20px 0 20px 25px;
}

li {
    font-size: 17px;
    margin-bottom: 12px;
}

strong {
    color: #1a1a1a;
    font-weight: 600;
}

a {
    color: #d4af37;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #c5a032;
}

/* ============================================
   3. HEADER & NAVIGATION
   ============================================ */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(250, 250, 248, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #e8e6e0;
    z-index: 1000;
    padding: 0;
}

nav {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container a {
    display: block;
    line-height: 0;
}

.nav-links {
    display: flex;
    gap: 50px;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: #1a1a1a;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

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

.burger-menu span {
    width: 25px;
    height: 2px;
    background: #1a1a1a;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(250, 250, 248, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #e8e6e0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 999;
}

.mobile-nav.active {
    max-height: 500px;
    padding: 20px 0;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav li {
    border-bottom: 1px solid #e8e6e0;
}

.mobile-nav li:last-child {
    border-bottom: none;
    margin-top: 10px;
}

.mobile-nav a {
    display: block;
    padding: 15px 40px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: background 0.2s;
}

.mobile-nav a:hover {
    background: #f5f5f5;
}

.mobile-nav .mobile-cta {
    background: linear-gradient(135deg, #d4af37, #c5a032);
    color: #fff;
    margin: 10px 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.mobile-nav .mobile-cta:hover {
    background: linear-gradient(135deg, #c5a032, #b69028);
}

@media (max-width: 900px) {
    nav {
        padding: 15px 20px;
    }
    
    .logo-container svg {
        width: 160px;
        height: 40px;
    }
    
    .nav-links {
        display: none;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .mobile-nav {
        display: block;
        top: 60px;
    }
}

@media (max-width: 600px) {
    .logo-container svg {
        width: 140px;
        height: 35px;
    }
}

/* ============================================
   4. LAYOUT CONTAINERS
   ============================================ */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.narrow-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ============================================
   5. BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 14px 32px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    text-align: center;
}

.btn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #d4af37, #c5a032);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c5a032, #b69028);
}

.btn-secondary {
    background: #fff;
    color: #1a1a1a;
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    border-color: #d4af37;
    color: #d4af37;
}

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

.btn-small {
    padding: 10px 20px;
    font-size: 14px;
}

/* ============================================
   6. CONTENT BOXES
   ============================================ */

.info-box {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-left: 4px solid #2196f3;
    padding: 25px 30px;
    border-radius: 8px;
    margin: 30px 0;
}

.info-box h4 {
    font-size: 18px;
    color: #0d47a1;
    margin-bottom: 12px;
}

.info-box p {
    font-size: 16px;
    color: #0d47a1;
    margin-bottom: 0;
}

.highlight-box {
    background: linear-gradient(135deg, #fffdf5, #fff9e6);
    border-left: 4px solid #d4af37;
    padding: 25px 30px;
    border-radius: 8px;
    margin: 30px 0;
}

.highlight-box h4 {
    font-size: 18px;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.highlight-box p {
    font-size: 16px;
    color: #444;
    margin-bottom: 0;
}

.warning-box {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border-left: 4px solid #ff9800;
    padding: 25px 30px;
    border-radius: 8px;
    margin: 30px 0;
}

.warning-box h4 {
    font-size: 18px;
    color: #e65100;
    margin-bottom: 12px;
}

.warning-box p {
    font-size: 16px;
    color: #e65100;
    margin-bottom: 0;
}

.success-box {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-left: 4px solid #4caf50;
    padding: 25px 30px;
    border-radius: 8px;
    margin: 30px 0;
}

.success-box h4 {
    font-size: 18px;
    color: #1b5e20;
    margin-bottom: 12px;
}

.success-box p {
    font-size: 16px;
    color: #1b5e20;
    margin-bottom: 0;
}

/* ============================================
   7. TABLES
   ============================================ */

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.comparison-table thead {
    background: linear-gradient(135deg, #1a1a1a, #2c3e50);
    color: #fff;
}

.comparison-table th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 500;
    font-size: 15px;
}

.comparison-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover {
    background: #fafaf8;
}

.comparison-table .check {
    color: #4caf50;
    font-weight: bold;
}

.comparison-table .cross {
    color: #f44336;
    font-weight: bold;
}

/* ============================================
   8. FORMS
   ============================================ */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #444;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4af37;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* ============================================
   9. CARDS
   ============================================ */

.card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.card-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.card-title {
    font-size: 22px;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.card-subtitle {
    font-size: 14px;
    color: #999;
}

.card-body {
    font-size: 16px;
    color: #666;
}

.card-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

/* ============================================
   10. GRIDS
   ============================================ */

.grid {
    display: grid;
    gap: 30px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   11. BREADCRUMB
   ============================================ */

.breadcrumb {
    max-width: 900px;
    margin: 30px auto 0;
    padding: 0 40px;
    font-size: 14px;
    color: #999;
}

.breadcrumb a {
    color: #999;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #d4af37;
}

.breadcrumb span {
    margin: 0 8px;
}

/* ============================================
   12. BADGES & LABELS
   ============================================ */

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: linear-gradient(135deg, #d4af37, #c5a032);
    color: #fff;
}

.badge-success {
    background: #4caf50;
    color: #fff;
}

.badge-warning {
    background: #ff9800;
    color: #fff;
}

.badge-info {
    background: #2196f3;
    color: #fff;
}

.badge-secondary {
    background: #999;
    color: #fff;
}

/* ============================================
   13. BLOG-SPECIFIC STYLES
   ============================================ */

.article-header {
    max-width: 900px;
    margin: 40px auto 60px;
    padding: 0 40px;
}

.article-category {
    color: #d4af37;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.article-title {
    font-family: 'Cormorant', serif;
    font-size: 52px;
    color: #1a1a1a;
    margin-bottom: 20px;
    font-weight: 400;
    line-height: 1.2;
}

.article-subtitle {
    font-size: 20px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: wrap;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #c5a032);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 18px;
    flex-shrink: 0;
}

.author-details {
    font-size: 14px;
}

.author-name {
    color: #1a1a1a;
    font-weight: 500;
}

.author-role {
    color: #999;
    font-size: 13px;
}

.meta-item {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.featured-image {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 40px;
}

.featured-image-inner {
    background: linear-gradient(135deg, #f5f4f0, #e0e0e0);
    border-radius: 16px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
}

.article-body {
    max-width: 900px;
    margin: 0 auto 80px;
    padding: 0 40px;
}

.table-of-contents {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 50px;
}

.table-of-contents h2 {
    font-size: 20px;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.table-of-contents ol {
    list-style: none;
    counter-reset: toc-counter;
    margin: 0;
}

.table-of-contents ol li {
    counter-increment: toc-counter;
    margin-bottom: 12px;
}

.table-of-contents ol li a {
    color: #444;
    text-decoration: none;
    display: block;
    padding: 8px 0;
    transition: color 0.3s;
}

.table-of-contents ol li a:hover {
    color: #d4af37;
}

.table-of-contents ol li a::before {
    content: counter(toc-counter) ". ";
    color: #d4af37;
    font-weight: 600;
    margin-right: 8px;
}

.author-box {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 35px;
    margin-top: 60px;
    display: flex;
    gap: 25px;
    align-items: center;
}

.author-box-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #c5a032);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 36px;
    flex-shrink: 0;
}

.author-box-content h4 {
    font-size: 22px;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.author-box-role {
    font-size: 15px;
    color: #d4af37;
    margin-bottom: 12px;
    font-weight: 500;
}

.author-box-bio {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
}

.related-articles {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 2px solid #e0e0e0;
}

.related-articles h3 {
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.related-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s;
    cursor: pointer;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.related-image {
    background: linear-gradient(135deg, #f5f4f0, #e0e0e0);
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
}

.related-content {
    padding: 20px;
}

.related-content h4 {
    font-size: 17px;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.related-content p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* ============================================
   14. CTA SECTIONS
   ============================================ */

.cta-section {
    background: linear-gradient(135deg, #d4af37, #c5a032);
    color: #fff;
    padding: 50px 40px;
    border-radius: 16px;
    text-align: center;
    margin: 60px 0;
}

.cta-section h3 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #fff;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0.95;
}

/* ============================================
   15. UTILITIES
   ============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 60px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 60px; }

.text-gold { color: #d4af37; }
.text-dark { color: #1a1a1a; }
.text-muted { color: #999; }

.bg-white { background: #fff; }
.bg-light { background: #fafaf8; }
.bg-dark { background: #1a1a1a; }

/* ============================================
   16. RESPONSIVE
   ============================================ */

@media (max-width: 1200px) {
    .container, .header-container {
        padding: 0 30px;
    }
}

@media (max-width: 900px) {
    h1, .article-title {
        font-size: 36px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    .article-body h2 {
        font-size: 28px;
    }
    
    .featured-image-inner {
        height: 300px;
        font-size: 80px;
    }
    
    nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 600px) {
    .container, .narrow-container, .article-body, .breadcrumb {
        padding: 0 20px;
    }
    
    .section {
        padding: 25px 20px;
    }
    
    h1, .article-title {
        font-size: 28px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    p, li {
        font-size: 16px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   17. ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ============================================
   18. PRINT STYLES
   ============================================ */

@media print {
    header, nav, .cta-section, .related-articles {
        display: none;
    }
    
    body {
        background: #fff;
    }
    
    .article-body {
        max-width: 100%;
    }
}


/* ============================================
   18. HEADER CART ICON
   ============================================ */

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
}

.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s;
    border-radius: 8px;
}

.cart-icon:hover {
    background: var(--color-bg-secondary);
    color: var(--color-accent);
}

.cart-icon svg {
    width: 22px;
    height: 22px;
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    background: var(--color-accent);
    color: white;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    border: 2px solid white;
    z-index: 10;
}

/* Responsive */
@media (max-width: 900px) {
    .header-actions {
        margin-left: auto;
        margin-right: 15px;
    }
}

@media (max-width: 600px) {
    .cart-icon {
        width: 36px;
        height: 36px;
    }
    
    .cart-icon svg {
        width: 20px;
        height: 20px;
    }
}