/*
Theme Name: Dini Wolke
Theme URI: https://diniwolke.ch
Author: Dini Wolke Team
Author URI: https://diniwolke.ch
Description: Custom WordPress theme for Dini Wolke - Swiss Cloud Storage with WooCommerce Integration
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: diniwolke
Domain Path: /languages
Tags: e-commerce, cloud-storage, woocommerce, multilingual
*/

:root {
    --primary: #D5001C;
    --primary-light: #FF5757;
    --red: #c80e13;
    --red-light: #ff3a22;
    --white: #ffffff;
    --dark: #111;
    --bg-light: #fafafa;
    --light-grey: #f5f5f5;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: var(--white);
    color: var(--dark);
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.6;
    padding-top: 80px;
}

section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: auto;
    position: relative;
    background: transparent;
}

h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 1rem;
}

h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.content-page h1,
.content-page h2,
.content-page h3 {
    text-align: left;
}

.entry-header,
.entry-title,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    text-align: left !important;
}

.entry-content .wp-block-heading,
.entry-content .has-text-align-center {
    text-align: left !important;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1;
    margin-top: -80px;
}

#vanta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-content {
    padding: 2rem;
    background: rgba(162, 162, 162, 0.4);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    max-width: 800px;
}

.hero-content h1 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-top: 1rem;
    color: #eee;
}

.cta-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    background-color: var(--primary);
    color: var(--white);
    text-decoration: none;
    border: none;
    border-radius: 999px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    margin: 0 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease-in-out;
}

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

.btn.secondary {
    background: var(--white);
    color: var(--red);
    border: 2px solid var(--red);
}

.btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    text-decoration: none;
    color: var(--white);
}

.btn.secondary:hover {
    color: var(--red);
    background: rgba(255,255,255,0.95);
}

/* Features Section */
.features {
    padding: 8rem 2rem;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary);
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
    margin-top: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Policy Pages */
.policy-page {
    padding: 0;
    max-width: none;
    margin: 0;
    background: linear-gradient(180deg, #fff5f5 0%, #ffffff 35%, #ffffff 100%);
}

.policy-hero {
    padding: 6rem 2rem 3rem;
    border-bottom: 1px solid #eee;
}

.policy-hero-inner {
    max-width: 900px;
    margin: 0 auto;
}

.policy-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--red);
    margin-bottom: 0.75rem;
}

.policy-lead {
    font-size: 1.1rem;
    color: #333;
    margin-top: 0.5rem;
}

.policy-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #666;
    margin-top: 1rem;
}

.policy-body {
    display: grid;
    grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
    gap: 3rem;
    padding: 3rem 2rem 2rem;
}

.policy-toc {
    position: sticky;
    top: 110px;
    align-self: start;
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.policy-toc h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: left;
}

.policy-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.policy-toc li {
    margin-bottom: 0.75rem;
}

.policy-toc a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
}

.policy-toc a:hover {
    color: var(--red);
}

.policy-content h2 {
    text-align: left;
    margin-top: 2.5rem;
    scroll-margin-top: 120px;
}

.policy-section {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.policy-section:last-child {
    border-bottom: none;
}

.policy-section ul {
    padding-left: 1.5rem;
    margin-top: 0.75rem;
}

.policy-section li {
    margin-bottom: 0.4rem;
}

.policy-note {
    background: var(--light-grey);
    border-left: 4px solid var(--red);
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.policy-contact {
    padding: 1rem 2rem 4rem;
}

.policy-card {
    background: var(--white);
    border-radius: 18px;
    padding: 1.5rem 2rem;
    border: 1px solid #eee;
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

.policy-card-inline {
    margin-top: 1rem;
}

.policy-card p {
    margin-bottom: 0.5rem;
}

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

@media (max-width: 900px) {
    .policy-body {
        grid-template-columns: 1fr;
    }

    .policy-toc {
        position: static;
    }

    .policy-hero {
        padding-top: 4.5rem;
    }
}

@media (max-width: 600px) {
    .policy-hero {
        padding: 4rem 1.5rem 2.5rem;
    }

    .policy-body {
        padding: 2rem 1.5rem 1rem;
    }

    .policy-contact {
        padding: 0 1.5rem 3rem;
    }

    .policy-meta {
        gap: 0.75rem;
    }
}

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

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--primary);
    transition: var(--transition);
}

.feature-card:hover::before {
    width: 100%;
    opacity: 0.05;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    line-height: 1.6;
    color: #666;
}

/* Pricing Section */
.pricing {
    padding: 8rem 2rem;
    position: relative;
    background: var(--white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.pricing-card.featured::before {
    content: attr(data-badge);
    position: absolute;
    top: 20px;
    right: -35px;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.5rem 3rem;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-type {
    font-size: 1.25rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 1rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
}

.pricing-price span {
    font-size: 1rem;
    color: #666;
}

.pricing-description {
    color: #888;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.pricing-features {
    list-style: none;
    margin: 2rem 0;
    padding: 0 1rem;
    text-align: left;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    padding-left: 1.5rem;
}

.pricing-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* Contact Section */
.contact {
    padding: 8rem 2rem;
    background-color: var(--white);
    position: relative;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: var(--transition);
    font-size: 1rem;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(213, 0, 28, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.btn-block {
    width: 100%;
    text-align: center;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

/* Footer */
footer {
    background: var(--red);
    padding: 2rem;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #c0c0c0;
    text-align: center;
    width: 100%;
}

footer p {
    color: var(--white);
    margin: 0.5rem 0;
}

.footer-bottom {
    position: relative;
    margin-top: 1rem;
}

.footer-right {
    margin-top: 1rem;
}

.footer-right a {
    margin: 0 0.5rem;
    color: var(--white);
    text-decoration: none;
    position: relative;
}

.footer-right a:hover {
    text-decoration: underline;
}

.footer-right .footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
}

.footer-right .footer-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.swiss-icon {
    color: var(--white);
    margin-right: 0.5rem;
    font-size: 2rem;
}

/* Header */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease-in-out;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#site-header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark);
    text-decoration: none;
}

.logo-img {
    width: 50px;
    height: auto;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

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

.nav-links li {
    margin: 0;
    padding: 0;
}

.nav-links .primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links .primary-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
}

.nav-links a:hover {
    color: var(--red);
}

.nav-links a.active {
    color: var(--red);
    font-weight: 700;
}

.language-switcher {
    margin-left: 1rem;
}

.language-select {
    background-color: var(--primary-light);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.language-select:hover {
    background-color: var(--red);
}

/* WooCommerce Specific Styles */
.woocommerce-products-header {
    text-align: center;
    margin-bottom: 3rem;
}

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

.product {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
}

.product:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.woocommerce-loop-product__title {
    font-size: 1.5rem;
    margin: 1rem 0;
}

.price {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
}

.add_to_cart_button {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: var(--red);
    color: var(--white);
    text-decoration: none;
    border: none;
    border-radius: 999px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
}

.add_to_cart_button:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* Thank You / Success Pages */
.success-container {
    max-width: 800px;
    margin: 4rem auto;
    text-align: center;
    padding: 3rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.success-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.success-container h1 {
    margin-bottom: 1rem;
}

.success-container p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 4rem 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .pricing-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 3rem 1rem;
    }
    
    .features,
    .pricing,
    .contact {
        padding: 4rem 1rem;
    }
}

@media (max-width: 480px) {
    #site-header {
        padding: 1rem;
    }

    .logo-text {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .logo-img {
        width: 40px;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn {
        margin: 0;
        width: 100%;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .nav-links ul,
    .nav-links .primary-menu {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0.75rem;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 0.5rem 0;
    }
    
    .nav-links.active {
        display: flex;
    }
}
