/*
Theme Name: ITSmartService
Theme URI: https://itsmartservice.messingerdesign.de
Author: MessingerDesign
Author URI: https://www.messingerdesign.de
Description: Custom Theme für ITSmartService – IT-Reparaturservice Magdeburg
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: itsmartservice
*/

:root {
    --primary: #1a56db;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --primary-bg: #eff6ff;
    --secondary: #0f172a;
    --accent: #06b6d4;
    --success: #22c55e;
    --warning: #f59e0b;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== HEADER / MEGA MENU ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--primary);
}
.site-logo img { height: 40px; width: auto; }
.site-logo span { color: var(--gray-400); font-weight: 400; }

.main-nav { display: flex; align-items: center; gap: 0; }
.main-nav a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: 8px;
    transition: all 0.2s;
}
.main-nav a:hover, .main-nav a.active {
    color: var(--primary);
    background: var(--primary-bg);
}

.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: var(--white) !important;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.2s;
}
.header-cta:hover { background: var(--primary-dark); color: var(--white) !important; }

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

@media (max-width: 768px) {
    .main-nav { display: none; }
    .header-cta-wrap { display: none; }
    .mobile-toggle { display: block; }
    .main-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--gray-200);
    }
    .main-nav.open a { padding: 0.75rem 1rem; }
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #1a56db 40%, #06b6d4 100%);
    padding: 5rem 1.5rem 4rem;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
}
.hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero-badges {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.hero-badge {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-hero-primary {
    background: var(--white);
    color: var(--primary) !important;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); color: var(--primary) !important; }
.btn-hero-secondary {
    background: transparent;
    color: var(--white) !important;
    padding: 0.8rem 2rem;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s, border-color 0.2s;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); color: var(--white) !important; }

/* ===== SECTION ===== */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--gray-50); }
.section-title {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}
.section-subtitle {
    text-align: center;
    color: var(--gray-500);
    font-size: 1rem;
    margin-bottom: 3rem;
}

/* ===== SERVICE CARDS ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}
.service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}
.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: var(--primary-bg);
    color: var(--primary);
}
.service-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}
.service-card p {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.6;
}
.service-card .service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 0.75rem;
}

/* ===== PRICE TABLE ===== */
.price-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.price-table th {
    background: var(--primary);
    color: var(--white);
    padding: 0.9rem 1.2rem;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
}
.price-table td {
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.9rem;
}
.price-table tr:hover { background: var(--primary-bg); }
.price-table .price-val {
    font-weight: 700;
    color: var(--primary);
}

/* ===== WHY US ===== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}
.why-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--gray-200);
}
.why-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}
.why-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.why-card p { font-size: 0.85rem; color: var(--gray-500); }

/* ===== CONTACT BOX ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-100);
}
.contact-item:last-child { border-bottom: none; }
.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--primary-bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.contact-item h4 { font-size: 0.85rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.15rem; }
.contact-item p { font-size: 0.85rem; color: var(--gray-500); }

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #25D366;
    color: var(--white) !important;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 1rem;
    transition: background 0.2s;
}
.whatsapp-btn:hover { background: #1fb855; color: var(--white) !important; }

/* ===== CTA BANNER ===== */
.cta-banner {
    background: linear-gradient(135deg, #1e3a8a, #1a56db, #06b6d4);
    color: var(--white);
    padding: 3.5rem 1.5rem;
    text-align: center;
    border-radius: var(--radius);
    margin: 2rem 0;
}
.cta-banner h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: 0.75rem; }
.cta-banner p { font-size: 1rem; opacity: 0.85; margin-bottom: 1.5rem; }

/* ===== FOOTER ===== */
.site-footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 3.5rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.site-footer h4 {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.site-footer a { color: var(--gray-400); font-size: 0.85rem; display: block; padding: 0.2rem 0; }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-700);
    font-size: 0.8rem;
}

/* ===== LEGAL PAGES ===== */
.legal-content { max-width: 800px; margin: 0 auto; padding: 3rem 1.5rem; }
.legal-content h1 { font-size: 2rem; font-weight: 800; margin-bottom: 1.5rem; }
.legal-content h2 { font-size: 1.2rem; font-weight: 700; margin: 2rem 0 0.5rem; color: var(--primary); }
.legal-content p { margin-bottom: 0.75rem; color: var(--gray-600); }

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
