/* ==========================================================================
   Zentrales Stylesheet - Websiteanalyse / Onlineshopanalyse Ratgeber
   ========================================================================== */

:root {
    --primary-color: #0f172a;    /* Deep Slate Blue */
    --secondary-color: #0284c7;  /* Clear Sky Blue */
    --accent-color: #f59e0b;     /* Warm Amber */
    --text-color: #334155;       /* Muted Slate Text */
    --bg-light: #f8fafc;         /* Soft Gray Background */
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --max-width: 1200px;
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}

/* Header & Navigation */
header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo a {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--secondary-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.2rem;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease-in-out;
    padding: 0.25rem 0.5rem;
}

nav a:hover, nav a.active {
    color: var(--secondary-color);
}

/* Main Layout */
main {
    max-width: var(--max-width);
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e293b 100%);
    color: var(--bg-white);
    padding: 4rem 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    color: #cbd5e1;
}

/* Base Typography & Elements */
h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 2.5rem 0 1rem 0;
}

h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 1.5rem 0 0.5rem 0;
}

p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

a.text-link {
    color: var(--secondary-color);
    text-decoration: none;
    border-bottom: 1px dashed var(--secondary-color);
}

a.text-link:hover {
    color: var(--primary-color);
    border-bottom-style: solid;
}

/* Call to Action Button */
.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--bg-white);
    padding: 0.8rem 1.6rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.cta-button:hover {
    background-color: #0274be;
}

/* Grid-Layout für Teaser/Karten */
.teaser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}

.card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.card p {
    font-size: 0.95rem;
    flex-grow: 1;
}

.card .card-link {
    margin-top: 1rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

/* FAQ Section */
.faq-section {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin: 3.5rem 0;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Info Box */
.info-box {
    background-color: #f0f9ff;
    border-left: 4px solid var(--secondary-color);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 2rem 0;
}

/* Table Design */
.responsive-table {
    overflow-x: auto;
    margin: 2rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: #f1f5f9;
    color: var(--primary-color);
    font-weight: 600;
}

/* SVG Illustration Container */
.vector-illustration {
    max-width: 400px;
    margin: 2rem auto;
    display: block;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #94a3b8;
    padding: 3rem 2rem;
    margin-top: 5rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--bg-white);
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    nav ul {
        justify-content: center;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}