/* =========================================
   web-wache.de - Komplettes Design
   Kein WordPress, kein Framework, nur CSS.
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --primary: #DC4A2E;
    --primary-light: #FEF2F0;
    --primary-dark: #A83520;
    --accent: #2563EB;
    --accent-light: #EFF6FF;
    --success: #16A34A;
    --success-light: #F0FDF4;
    --warning: #EA580C;
    --warning-light: #FFF7ED;
    --danger: #DC2626;
    --danger-light: #FEF2F2;
    --bg: #FAFAFA;
    --bg-card: #FFFFFF;
    --text: #1C1917;
    --text-muted: #78716C;
    --text-light: #A8A29E;
    --border: #E7E5E4;
    --border-hover: #D6D3D1;
    --radius: 8px;
    --radius-lg: 12px;
    --font: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--text); }
h1 { font-size: 42px; }
h2 { font-size: 32px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ===== Header ===== */
.site-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    color: var(--text);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg { width: 18px; height: 18px; }
.logo-text { font-size: 20px; }
.logo-light { font-weight: 400; }
.logo-bold { font-weight: 700; }

.nav-main {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-main a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.nav-main a:hover { color: var(--text); text-decoration: none; }
.nav-main a.active { color: var(--primary); }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none !important;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); color: white; }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: #1D4ED8; color: white; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { background: #F5F5F4; border-color: var(--border-hover); color: var(--text); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* ===== Hero ===== */
.hero {
    text-align: center;
    padding: 80px 24px 60px;
    max-width: 720px;
    margin: 0 auto;
}

.hero h1 { margin-bottom: 16px; }
.hero p { font-size: 18px; color: var(--text-muted); margin-bottom: 32px; }

.hero-input {
    display: flex;
    gap: 8px;
    max-width: 520px;
    margin: 0 auto;
}

.hero-input input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 16px;
    background: white;
    color: var(--text);
    transition: border-color 0.15s;
}

.hero-input input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.hero-input input::placeholder { color: var(--text-light); }

.hero-sub {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-light);
}

/* ===== Section ===== */
.section { padding: 60px 0; }
.section-alt { background: var(--bg-card); }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { font-size: 18px; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* ===== Tool Cards ===== */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: border-color 0.15s, box-shadow 0.15s;
    text-decoration: none !important;
    color: var(--text);
    display: block;
}

.tool-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.tool-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.tool-card h3 { font-size: 16px; margin: 0; }
.tool-card p { font-size: 14px; color: var(--text-muted); line-height: 1.5; margin: 0 0 16px; }
.tool-card .btn { width: 100%; justify-content: center; }

/* ===== Badges ===== */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.badge-free { background: var(--success-light); color: var(--success); }
.badge-credits { background: var(--warning-light); color: var(--warning); }
.badge-ai { background: #FDF2F8; color: #9D1463; }

/* ===== Pricing ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 840px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    text-align: center;
    position: relative;
}

.pricing-card.featured { border: 2px solid var(--accent); }

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-light);
    color: #1D4ED8;
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-name { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.pricing-price { font-size: 42px; font-weight: 700; margin: 12px 0 4px; }
.pricing-price span { font-size: 18px; font-weight: 400; color: var(--text-muted); }
.pricing-credits { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.pricing-per { font-size: 13px; color: var(--text-light); }
.pricing-save { font-size: 13px; font-weight: 600; color: var(--success); margin: 4px 0 20px; }
.pricing-features { list-style: none; text-align: left; margin: 16px 0; padding: 0; }
.pricing-features li { padding: 8px 0; font-size: 14px; border-bottom: 1px solid #F5F5F4; }
.pricing-features li:last-child { border: none; }

.agency-note {
    text-align: center;
    margin-top: 24px;
    padding: 16px;
    font-size: 14px;
    color: var(--text-muted);
}
.agency-note a { color: var(--accent); font-weight: 600; }

/* ===== Features / Benefits ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-item { text-align: center; padding: 24px; }
.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.feature-item h3 { font-size: 16px; margin-bottom: 8px; }
.feature-item p { font-size: 14px; color: var(--text-muted); }

/* ===== CTA Banner ===== */
.cta-banner {
    background: var(--primary);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    margin: 60px 0;
}
.cta-banner h2 { color: white; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 24px; font-size: 18px; }
.cta-banner .btn { background: white; color: var(--primary); font-weight: 700; }
.cta-banner .btn:hover { background: #F5F5F4; }

/* ===== Blog ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-decoration: none !important;
    color: var(--text);
    display: block;
    transition: border-color 0.15s;
}
.blog-card:hover { border-color: var(--border-hover); }
.blog-card .blog-date { font-size: 13px; color: var(--text-light); margin-bottom: 8px; }
.blog-card h3 { font-size: 18px; margin-bottom: 8px; }
.blog-card p { font-size: 14px; color: var(--text-muted); }

.blog-post { max-width: 720px; margin: 0 auto; padding: 40px 0; }
.blog-post h1 { font-size: 36px; margin-bottom: 8px; }
.blog-post .blog-meta { font-size: 14px; color: var(--text-light); margin-bottom: 32px; }
.blog-post .blog-content { font-size: 17px; line-height: 1.8; }
.blog-post .blog-content h2 { margin: 32px 0 12px; font-size: 24px; }
.blog-post .blog-content h3 { margin: 24px 0 8px; font-size: 20px; }
.blog-post .blog-content p { margin-bottom: 16px; }
.blog-post .blog-content code { font-family: var(--font-mono); background: #F5F5F4; padding: 2px 6px; border-radius: 4px; font-size: 15px; }
.blog-post .blog-content pre { background: #F5F5F4; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; overflow-x: auto; margin: 16px 0; }
.blog-post .blog-content pre code { background: none; padding: 0; }

/* ===== Results (fuer Tool-Landingpages) ===== */
.result-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.result-table th { text-align: left; padding: 10px 12px; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.result-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.result-table tr:last-child td { border-bottom: none; }
.result-table .mono { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); }

.score-circle { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; color: white; flex-shrink: 0; }
.score-a { background: var(--success); }
.score-b { background: #22C55E; }
.score-c { background: var(--warning); }
.score-d { background: #F97316; }
.score-f { background: var(--danger); }

.badge-pass { background: var(--success-light); color: var(--success); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-critical { background: var(--danger-light); color: var(--danger); }
.badge-info { background: var(--accent-light); color: var(--accent); }

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 16px;
}
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.card-title { font-size: 16px; font-weight: 600; }

/* ===== Footer ===== */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 48px 0 0;
    margin-top: 60px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.footer-tagline { font-size: 14px; color: var(--text-muted); margin-top: 12px; }

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.footer-col h4 { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.footer-col a { display: block; font-size: 13px; color: var(--text-muted); padding: 4px 0; text-decoration: none; }
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
    border-top: 1px solid var(--border);
    margin-top: 32px;
    padding: 20px 0;
    font-size: 13px;
    color: var(--text-light);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    h1, .hero h1 { font-size: 28px; }
    h2 { font-size: 24px; }
    .hero { padding: 40px 16px 30px; }
    .hero-input { flex-direction: column; }
    .pricing-grid { grid-template-columns: 1fr; }
    .tool-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: repeat(3, 1fr); }
    .blog-grid { grid-template-columns: 1fr; }

    .nav-main {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 16px 24px;
        gap: 12px;
    }
    .nav-main.open { display: flex; }
    .mobile-menu-btn { display: block; }
}

@media (max-width: 480px) {
    h1, .hero h1 { font-size: 24px; }
    .footer-links { grid-template-columns: 1fr; }
}
