/* ============================================
   Stromsparen24 - Main Theme CSS
   Eigenes WordPress Theme
   SFTP-TEST 2026-02-22
   ============================================ */

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --primary: #0066FF;
    --primary-dark: #0052CC;
    --primary-light: #E8F2FF;
    --primary-50: rgba(0, 102, 255, 0.05);

    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-muted: #9CA3AF;

    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;

    --border-light: #E5E7EB;
    --border-medium: #D1D5DB;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-blue: 0 4px 14px rgba(0, 102, 255, 0.25);
    --shadow-blue-lg: 0 10px 40px rgba(0, 102, 255, 0.2);

    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;

    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;

    --max-width: 1200px;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    padding-top: 68px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Layout
   ============================================ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.site-main {
    min-height: 60vh;
}

.site-main .container {
    padding-top: var(--space-10);
    padding-bottom: var(--space-10);
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: 2rem; margin-bottom: var(--space-4); }
h2 { font-size: 1.5rem; margin-bottom: var(--space-3); }
h3 { font-size: 1.25rem; margin-bottom: var(--space-2); }

p {
    margin-bottom: var(--space-4);
    color: var(--text-secondary);
    line-height: 1.7;
}

.page-title,
.entry-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--space-6);
}

.entry-content {
    font-size: 16px;
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: var(--space-4);
}

.entry-content a {
    color: var(--primary);
}

.entry-content a:hover {
    text-decoration: underline;
}

.entry-meta {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: var(--space-6);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-blue-lg);
    color: var(--white);
}

/* ============================================
   NAVIGATION — handled by inline styles in header.php
   Legacy classes kept for backwards compatibility
   ============================================ */


/* ============================================
   FOOTER (exakt wie Landing Page)
   ============================================ */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: var(--space-16) 0 var(--space-8);
    margin-top: var(--space-16);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: var(--space-16);
    margin-bottom: var(--space-12);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    text-decoration: none;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
}

.footer-logo span {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
}

.footer-description {
    font-size: 14px;
    color: #d1d5db;
    line-height: 1.7;
    max-width: 300px;
    margin-bottom: var(--space-4);
}

.footer-company {
    font-size: 14px;
    color: var(--white);
    font-weight: 500;
    line-height: 1.7;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-4);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: var(--space-2);
}

.footer-column a {
    font-size: 14px;
    color: #d1d5db;
    transition: var(--transition-fast);
    text-decoration: none;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-8);
    border-top: 1px solid var(--gray-800);
}

.footer-bottom p {
    font-size: 13px;
    color: #d1d5db;
    margin: 0;
}

.footer-shops {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.footer-shops a {
    font-size: 13px;
    color: #d1d5db;
    transition: var(--transition-fast);
    text-decoration: none;
}

.footer-shops a:hover {
    color: var(--white);
}

.footer-shops span {
    color: #d1d5db;
    font-size: 13px;
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
    margin-top: var(--space-10);
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--white);
    border: 1px solid var(--gray-200);
    transition: var(--transition-fast);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ============================================
   RESPONSIVE - Tablet (1024px)
   ============================================ */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    .footer-description {
        max-width: 100%;
    }
}

/* ============================================
   RESPONSIVE - Mobile (768px)
   ============================================ */

/* Admin bar handled by header.php inline styles */

@media (max-width: 768px) {
    /* ── Touch targets ── */
    .btn {
        min-height: 44px;
    }

    /* ── Typography ── */
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }

    .page-title,
    .entry-title {
        font-size: 1.5rem;
    }

    .entry-content {
        font-size: 15px;
    }

    /* ── Footer ── */
    .footer {
        margin-top: var(--space-10);
    }

    .footer-main {
        margin-bottom: var(--space-8);
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-3);
        text-align: center;
    }

    /* ── Content ── */
    .site-main .container {
        padding-top: var(--space-8);
        padding-bottom: var(--space-8);
    }
}

/* ============================================
   RESPONSIVE - Small Phone (480px)
   ============================================ */
@media (max-width: 480px) {
    /* Mobile header handled by .m-header in header.php */

    .country-btn img {
        width: 18px;
        height: 13px;
    }

    /* Typography */
    h1 { font-size: 1.3rem; }
    h2 { font-size: 1.15rem; }
    h3 { font-size: 1.05rem; }

    .page-title,
    .entry-title {
        font-size: 1.3rem;
    }

    .entry-content {
        font-size: 14px;
    }

    /* Form inputs - prevent iOS zoom */
    input,
    select,
    textarea {
        font-size: 16px;
    }

    /* Footer */
    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer {
        padding: var(--space-10) 0 var(--space-6);
        margin-top: var(--space-8);
    }

    .footer-main {
        margin-bottom: var(--space-6);
    }

    .container {
        padding: 0 var(--space-4);
    }

    /* Pagination touch targets */
    .pagination .page-numbers {
        width: 44px;
        height: 44px;
    }
}
