/*
Theme Name: KaffeeAroma Theme v3.0 - KI Kaffeeberater Edition
Description: Ein modernes WordPress-Theme für KaffeeAroma.com mit Three.js-Animation, KI-Kaffeeberater, Buy Me a Coffee und Google AdSense Integration
Version: 3.0.0
Author: Manus AI
Author URI: https://manus.im
License: GPL2
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kaffeearoma
Tags: coffee, ai, three-js, responsive, modern
*/

/* CSS Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c1810;
    background: linear-gradient(135deg, #f5f1eb 0%, #e8ddd4 100%);
    overflow-x: hidden;
}

/* Typografie */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #8B4513;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

a {
    color: #D2691E;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #8B4513;
    text-decoration: underline;
}

/* Container und Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
}

/* Header Styles */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139, 69, 19, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.site-logo {
    font-size: 2rem;
    font-weight: 800;
    color: #8B4513;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-logo::before {
    content: "☕";
    font-size: 2.5rem;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.main-navigation a:hover {
    background: rgba(210, 105, 30, 0.1);
    text-decoration: none;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 50%, #CD853F 100%);
    color: white;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 2;
    position: relative;
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.8;
    line-height: 1.6;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, #FF6B35, #F7931E);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* Three.js Canvas Container */
.threejs-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

#coffee-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* KI Berater Section */
.ki-berater-section {
    padding: 6rem 0;
    background: white;
    position: relative;
}

.ki-berater-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, rgba(139, 69, 19, 0.1) 0%, transparent 100%);
}

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

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #8B4513, #D2691E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.3rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* KI Chat Interface */
.ki-chat-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid rgba(139, 69, 19, 0.1);
}

.ki-chat-header {
    background: linear-gradient(45deg, #8B4513, #D2691E);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.ki-chat-header h3 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
}

.ki-chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 1.5rem;
    background: #fafafa;
}

.ki-message {
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
}

.ki-message.user {
    justify-content: flex-end;
}

.ki-message.ai {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 70%;
    padding: 1rem 1.5rem;
    border-radius: 20px;
    position: relative;
}

.ki-message.user .message-bubble {
    background: linear-gradient(45deg, #D2691E, #FF6B35);
    color: white;
}

.ki-message.ai .message-bubble {
    background: white;
    border: 1px solid #e0e0e0;
    color: #333;
}

.ki-chat-input {
    padding: 1.5rem;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.ki-input-form {
    display: flex;
    gap: 1rem;
}

.ki-input-field {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.ki-input-field:focus {
    border-color: #D2691E;
    box-shadow: 0 0 0 3px rgba(210, 105, 30, 0.1);
}

.ki-send-btn {
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #8B4513, #D2691E);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ki-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

/* Features Section */
.features-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f4f0 0%, #ede4db 100%);
}

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

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 69, 19, 0.1);
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: #8B4513;
}

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

/* Statistics Section */
.stats-section {
    padding: 4rem 0;
    background: linear-gradient(45deg, #8B4513, #D2691E);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: white;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Buy Me a Coffee Integration */
.support-section {
    padding: 4rem 0;
    background: white;
    text-align: center;
}

.bmc-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f4f0 0%, #ede4db 100%);
    border-radius: 20px;
    border: 1px solid rgba(139, 69, 19, 0.1);
}

.bmc-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #FFDD00;
    color: #000;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #000;
}

.bmc-button:hover {
    background: #FFE55C;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 221, 0, 0.4);
    color: #000;
    text-decoration: none;
}

/* AdSense Ad Containers */
.ad-container {
    margin: 2rem 0;
    text-align: center;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.ad-label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
.site-footer {
    background: #2c1810;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #D2691E;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    line-height: 1.6;
}

.footer-section a:hover {
    color: #D2691E;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 1rem;
    text-align: center;
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .threejs-container {
        height: 300px;
    }
    
    .ki-chat-messages {
        height: 300px;
    }
    
    .message-bubble {
        max-width: 85%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .ki-input-form {
        flex-direction: column;
    }
    
    .ki-send-btn {
        width: 100%;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #D2691E;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8B4513;
}

