:root {
    --bg-color: #ffffff;
    --text-main: #111827;
    --text-muted: #4b5563;
    --accent: #2563eb;
    --card-bg: #f9fafb;
    --border: #e5e7eb;
    --container-width: 800px;
    /* Einheitliche Breite für ALLE Seiten */
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- Navigation --- */
nav {
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    background: white;
    z-index: 100;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-weight: 800;
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.3rem;
}

.nav-links a {
    margin-left: 1.5rem;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a.active {
    color: var(--accent);
    font-weight: 700;
}

.nav-links a:hover {
    color: var(--accent);
}

/* --- Basis Layout & Typografie --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.05rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* --- Hero Section (Startseite) --- */
.hero {
    margin-bottom: 4rem;
    position: relative;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--accent);
    font-weight: 600;
}

.profile-image {
    width: 130px;
    height: 130px;
    border-radius: 16px;
    object-fit: cover;
    position: absolute;
    top: 0;
    right: 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 4px solid white;
}

/* --- Hero Section (RankHelper / Center) --- */
.hero-center {
    text-align: center;
    margin-bottom: 5rem;
}

.hero-center h1 {
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-center p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 2.5rem;
}

.extension-badge {
    background: #dbeafe;
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: inline-block;
}

.trust-banner {
    font-size: 0.9rem;
    color: #059669;
    font-weight: 600;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* --- Lebenslauf (Timeline) --- */
.timeline-item {
    margin-bottom: 2.5rem;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1.5rem;
}

.date {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: right;
    padding-top: 0.3rem;
    font-weight: 500;
}

.company {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* --- Projekt & Tool Cards --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* --- Features Grid (RankHelper) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.feature-card h3 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
}

.feature-card ul {
    list-style: none;
}

.feature-card li {
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.feature-card li::before {
    content: "→";
    color: var(--accent);
    font-weight: bold;
}

/* --- KI Section --- */
.ai-section {
    background: #111827;
    color: white;
    padding: 3rem;
    border-radius: 20px;
    margin: 4rem 0;
}

.ai-section h2 {
    color: white;
    margin-bottom: 1rem;
    border: none;
    font-size: 1.8rem;
    margin-top: 0;
    padding-bottom: 0;
}

.ai-section p {
    color: #9ca3af;
}

.bot-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.bot-tag {
    background: #374151;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: monospace;
    color: white;
}

/* --- Call to Action Banner --- */
.cta-banner {
    background-color: var(--accent);
    color: white;
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    margin: 4rem 0;
}

.cta-banner h2 {
    color: white;
    border-bottom: none;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
    padding-bottom: 0;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: white;
    color: var(--accent);
}

.btn-primary:hover {
    background-color: #f3f4f6;
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    text-decoration: none;
}

/* --- Kontakt Bereich --- */
.contact-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
}

.contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 700;
    display: block;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 0.75rem;
}

.contact-item svg {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-item a {
    color: var(--text-main);
    border: none;
}

.contact-item a:hover {
    color: var(--accent);
    text-decoration: none;
}

/* --- Datenschutz Highlight --- */
.highlight-box {
    background-color: #f3f4f6;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    margin: 2rem 0;
}

/* --- Footer --- */
footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

/* --- Responsive --- */
@media (max-width: 650px) {
    .container {
        padding: 1.5rem;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .date {
        text-align: left;
        margin-bottom: 0.5rem;
    }

    .profile-image {
        position: static;
        margin-bottom: 2rem;
        width: 100px;
        height: 100px;
    }

    .contact-row {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    h1 {
        font-size: 2.1rem;
    }

    .hero-center h1 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media print {
    .profile-image {
        display: none;
    }

    .contact-box {
        border: none;
        padding: 0;
    }

    nav,
    .cta-banner {
        display: none;
    }
}