/* visitor_style.css - Responsive Version 4.0 */
:root {
    --bg: #f1f5f9;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --border: #e2e8f0;
    --hero-bg: #0f172a;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    margin: 0; padding: 0;
    display: flex; flex-direction: column;
    min-height: 100vh;
    -webkit-text-size-adjust: 100%;
}

.container { 
    max-width: 1000px; 
    margin: 0 auto; 
    padding: 0 20px; 
    width: 100%; 
    box-sizing: border-box; 
}

/* Hero Section */
.hero { 
    background: linear-gradient(135deg, var(--hero-bg) 0%, #1e293b 100%); 
    color: white; 
    padding: 60px 0 100px; 
    text-align: center;
}
.hero h1 { font-size: 2.2rem; margin: 0 0 10px 0; font-weight: 800; }
.hero p { font-size: 1.1rem; opacity: 0.8; margin: 0; }

/* Haupt-Karte (Legal & Buy) */
.content-wrapper { 
    margin-top: -60px; 
    margin-bottom: 60px; 
    position: relative; 
    z-index: 20; 
}

.legal-card-custom, .buy-card-custom {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 60px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Speziell für die Buy-Seite Formular-Engpass */
.form-container-inner {
    max-width: 500px;
    margin: 0 auto;
}

/* Texte */
.legal-content h1 { font-size: 2.2rem; margin-top: 0; margin-bottom: 25px; color: #0f172a; font-weight: 800; border-bottom: 3px solid var(--accent); display: inline-block; padding-bottom: 5px; }
.legal-content h2 { font-size: 1.8rem; margin-top: 50px; margin-bottom: 20px; border-bottom: 3px solid var(--accent); padding-bottom: 12px; color: #0f172a; font-weight: 800; }
.legal-content h3 { font-size: 1.3rem; margin-top: 35px; color: #1e293b; font-weight: 700; }
.legal-content p, .legal-content li { color: #475569; line-height: 1.8; margin-bottom: 15px; font-size: 1.05rem; }

.impressum-box { 
    background-color: #f8fafc; 
    border: 1px solid var(--border); 
    border-radius: 16px; 
    padding: 35px; 
    margin: 20px 0; 
}

.legal-content a { color: var(--accent); text-decoration: underline; font-weight: 600; }

/* Buttons */
.btn {
    background: var(--accent);
    color: white !important;
    text-decoration: none !important;
    font-weight: 700;
    padding: 14px 25px;
    border-radius: 10px;
    display: inline-block;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    text-align: center;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-2px); }

/* Grid für index.php */
.product-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 25px; 
    margin-top: -50px; 
}

.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
}

/* Logo-Row für buy.php */
.logo-row { display: flex; gap: 15px; margin-top: 20px; justify-content: center; }
.logo-link { 
    flex: 1; 
    border: 1px solid var(--border); 
    border-radius: 10px; 
    padding: 15px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: #fff;
}
.logo-link img { max-height: 30px; width: auto; }

/* Footer */
.footer { 
    margin-top: auto; 
    padding: 40px 0; 
    background: white; 
    border-top: 1px solid var(--border); 
    text-align: center; 
}
.footer a { color: var(--text-main); text-decoration: none; font-weight: 600; margin: 0 10px; }

/* --- MOBILE OPTIMIERUNG --- */
@media (max-width: 768px) {
    .hero { padding: 40px 0 80px; }
    .hero h1 { font-size: 1.7rem; }
    
    .content-wrapper { margin-top: -40px; }
    
    .legal-card-custom, .buy-card-custom { 
        padding: 25px; 
        border-radius: 0; /* Optional: Auf dem Handy wirkt eckig oft sauberer */
        border-left: none;
        border-right: none;
    }
    
    .legal-content h1 { font-size: 1.6rem; }
    .legal-content h2 { font-size: 1.4rem; }
    
    .impressum-box { padding: 20px; }
    
    .logo-row { flex-direction: column; }
    
    .container { padding: 0 15px; }
}