:root {
    --primary: #1f3a5f;
    --primary-dark: #142b48;
    --accent: #c79a3a;
    --text: #222;
    --text-light: #555;
    --bg: #ffffff;
    --bg-light: #f6f7f9;
    --bg-dark: #1f3a5f;
    --border: #e2e5ea;
    --max-width: 1100px;
}

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

html { scroll-behavior: smooth; }

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

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

h1, h2, h3, h4 {
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 0.6em;
    font-weight: 600;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.4rem; margin-top: 2rem; }
h4 { font-size: 1.15rem; }

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

/* HEADER */
.site-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
}

.logo img { height: 42px; }

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 28px;
}

.main-nav a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.lang-switch button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-weight: 500;
    padding: 4px;
}

.lang-switch button.active {
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
}

/* HERO */
.hero {
    padding: 60px 0 80px;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-light) 100%);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 50px;
    align-items: center;
}

.hero-text h1 { margin-bottom: 0.4em; }

.tagline {
    font-size: 1.25rem;
    color: var(--text);
    margin-bottom: 1.8rem;
    max-width: 520px;
}

.hero-image img {
    border-radius: 6px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
}

/* BUTTONS */
.btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 12px 26px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.2s;
}

.btn:hover {
    background: var(--primary-dark);
    text-decoration: none;
    color: #fff;
}

/* SECTIONS */
.section { padding: 70px 0; }
.section-light { background: var(--bg); }
.section-light + .section-light { border-top: 1px solid var(--border); }

.section-dark {
    background: var(--bg-light);
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.motto {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--primary);
    border-left: 4px solid var(--accent);
    padding: 8px 0 8px 20px;
    margin: 1.5rem 0 2rem;
}

/* CARDS */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 1.5rem;
}

.card {
    background: #fff;
    padding: 28px 24px;
    border-radius: 6px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.card h4 { margin-top: 0; }

/* PRINCIPLES */
.principles {
    list-style: none;
    counter-reset: principle;
    margin-top: 1rem;
}

.principles li {
    counter-increment: principle;
    padding: 14px 0 14px 50px;
    position: relative;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.principles li::before {
    content: counter(principle);
    position: absolute;
    left: 0;
    top: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

/* AI BANNER */
.ai-banner {
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.ai-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* REFERENCES */
.ref-list {
    display: grid;
    gap: 20px;
}

.ref-item {
    background: var(--bg-light);
    padding: 24px 28px;
    border-left: 4px solid var(--accent);
    border-radius: 4px;
}

.ref-item h4 { margin-bottom: 0.3rem; }

/* TIMELINE */
.timeline {
    list-style: none;
    border-left: 2px solid var(--border);
    padding-left: 24px;
}

.timeline li {
    position: relative;
    padding: 12px 0;
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 20px;
}

.timeline li::before {
    content: '';
    position: absolute;
    left: -31px;
    top: 22px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
}

.timeline .period {
    color: var(--primary);
    font-weight: 600;
}

.timeline .role { color: var(--text); }

/* CONTACT */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

.contact-info p { color: var(--text); margin-bottom: 0.4rem; }

.contact-form {
    display: grid;
    gap: 16px;
}

.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-form label {
    display: grid;
    gap: 6px;
    font-size: 0.95rem;
    color: var(--text);
}

.contact-form input,
.contact-form textarea {
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* FOOTER */
.site-footer {
    background: var(--primary-dark);
    color: #cdd5e2;
    padding: 30px 0;
    margin-top: 40px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.site-footer a { color: #cdd5e2; }
.site-footer a:hover { color: #fff; }

.site-footer ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

/* RESPONSIVE */
@media (max-width: 860px) {
    .hero-inner,
    .two-col,
    .contact-grid { grid-template-columns: 1fr; }

    .hero-image { max-width: 320px; margin: 0 auto; }

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

    .timeline li { grid-template-columns: 1fr; gap: 4px; }

    .menu-toggle { display: flex; }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        padding: 16px 24px;
    }

    .main-nav.open { display: block; }

    .main-nav ul { flex-direction: column; gap: 14px; }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
}

/* LEGAL PAGES (Impressum / Datenschutz) */
html[lang="de"] .legal-en { display: none; }
html[lang="en"] .legal-de { display: none; }

.legal-content h2 { margin-top: 2.5rem; }
.legal-content h3 { margin-top: 1.5rem; font-size: 1.15rem; }
.legal-content h4 { margin-top: 1.2rem; font-size: 1rem; }
.legal-content ul { margin: 0 0 1rem 1.5rem; }
.legal-content ul li { margin-bottom: 0.5rem; color: var(--text-light); }
.legal-content a { word-break: break-all; }

.back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}
.back-link:hover {
    color: var(--primary);
    text-decoration: underline;
}
