/* --- GRUNDEINSTELLUNGEN --- */
:root {
    --primary-blue: #1C2B4B; 
    --accent-yellow: #FBAB18;
    
    /* Verläufe & Overlay */
    --blue-gradient: linear-gradient(135deg, #1C2B4B 0%, #2c4270 100%);
    --yellow-gradient: linear-gradient(135deg, #FBAB18 0%, #ffc14f 100%);
    --blue-overlay: rgba(28, 43, 75, 0.90); 
    
    /* Backgrounds */
    --bg-light: #f8fafd; 
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #8f9bad;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- HEADER & NAVIGATION --- */
header {
    background-color: rgba(255, 255, 255, 0.85); /* Etwas undurchsichtiger für bessere Lesbarkeit auf Textseiten */
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 25px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; 
}

.logo a { display: block; }

.logo img {
    height: 60px;
    min-width: 60px;
    width: auto;
    display: block;
	mix-blend-mode: multiply;
}

.header-slogan {
    font-size: 0.65rem;
    color: var(--primary-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 3px;
    text-align: center;
    white-space: nowrap; 
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-blue);
    margin-left: 18px;
    font-weight: 600;
    font-size: 0.78rem;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--yellow-gradient);
    transition: width 0.3s ease;
}

.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--accent-yellow); }

/* --- HERO SECTION --- */
.hero {
    background: var(--blue-gradient);
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 110px 0 140px;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 45px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    opacity: 0.95;
}

.btn {
    display: inline-block;
    background: var(--yellow-gradient);
    color: var(--primary-blue);
    padding: 18px 45px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px -10px rgba(251, 171, 24, 0.5);
    transition: all 0.3s ease;
    border: none;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -10px rgba(251, 171, 24, 0.7);
}

/* --- LEISTUNGEN --- */
.services {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: 70px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 50%;
    height: 4px;
    background: var(--yellow-gradient);
    margin: 15px auto 0;
    border-radius: 2px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.service-card {
    background: var(--white);
    padding: 45px 35px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    box-sizing: border-box;
    border-bottom: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(28, 43, 75, 0.15);
    border-bottom: 3px solid var(--accent-yellow);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 4px;
    background: var(--yellow-gradient);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before { opacity: 1; }

.service-card h3 {
    color: var(--primary-blue);
    margin-top: 0;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    transition: color 0.3s;
}

.service-card:hover h3 { color: var(--accent-yellow); }

.service-card p {
    color: var(--text-light);
    font-size: 1.05rem;
}

/* --- KONTAKT --- */
.contact-section-wrapper {
    margin-top: 100px;
    background: var(--blue-gradient);
    transform: skewY(-3deg);
    padding: 100px 0;
    margin-bottom: -50px;
}

.contact {
    transform: skewY(3deg);
    text-align: center;
    color: var(--white);
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--white);
}

.contact-subtitle {
    font-size: 1.3rem;
    opacity: 0.8;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex: 1 1 300px;
    max-width: 350px;
    transition: transform 0.3s;
}

.contact-box:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.contact-box h3 {
    color: var(--accent-yellow);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.contact-box p, .contact-box a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-box a:hover { color: var(--accent-yellow); }

/* --- FOOTER --- */
footer {
    background-color: #121b2f; 
    color: var(--text-light);
    text-align: center;
    padding: 50px 0 30px;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
    margin-top: auto; /* Footer immer ganz unten */
}

footer a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
    font-weight: 600;
}

footer a:hover { color: var(--accent-yellow); }

/* --- RECHTSTEXTE (Impressum/Datenschutz) --- */
.legal-main {
    padding-top: 120px; /* Platz für den Sticky Header */
    padding-bottom: 80px;
    flex: 1;
}

.legal-content {
    background: var(--white);
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 900px; /* Optimale Lesebreite */
    margin: 0 auto;
}

.legal-content h1 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 30px;
    border-bottom: 4px solid var(--accent-yellow);
    display: inline-block;
    padding-bottom: 10px;
}

.legal-content h2 {
    color: var(--primary-blue);
    margin-top: 40px;
    font-size: 1.6rem;
}

.legal-content h3 {
    color: #444;
    margin-top: 25px;
    font-size: 1.2rem;
}

.legal-content p, .legal-content ul {
    color: #444;
    margin-bottom: 15px;
}

.legal-content a {
    color: var(--primary-blue);
    font-weight: 600;
}

.legal-content a:hover {
    color: var(--accent-yellow);
}

/* --- MOBILE ANPASSUNG --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    .contact-section-wrapper { transform: skewY(0); margin-top: 50px; }
    .contact { transform: skewY(0); }
    .service-card { padding: 35px 25px; }
    
    .legal-content { padding: 30px 20px; }
    .legal-content h1 { font-size: 2rem; }
}
/* ===================== ERWEITERUNG 2026 ===================== */
.skip { position: absolute; left: -999px; top: 0; background: var(--accent-yellow); color: var(--primary-blue); padding: 8px 12px; z-index: 2000; }
.skip:focus { left: 10px; }
.nav-links a.active { color: var(--accent-yellow); }
.nav-links a.active::after { width: 100%; }
.nav-toggle { display: none; }
.nav-burger { display: none; cursor: pointer; width: 30px; height: 22px; flex-direction: column; justify-content: space-between; }
.nav-burger span { display: block; height: 3px; background: var(--primary-blue); border-radius: 2px; }

/* Hero mit Raster-Pattern statt fehlendem Foto */
.hero { text-align: left; }
.hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
    background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 48px 48px;
}
.hero .container { position: relative; }
.hero p { margin-left: 0; }
.hero .eyebrow { color: var(--accent-yellow); }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.hero-facts { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 55px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.2); }
.hero-facts div { font-size: 0.95rem; opacity: 0.9; }
.hero-facts strong { display: block; font-size: 1.5rem; color: var(--accent-yellow); font-weight: 700; }

.eyebrow { display: block; font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; color: var(--accent-yellow); margin-bottom: 12px; }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.6); box-shadow: none; }
.btn-outline:hover { border-color: var(--accent-yellow); color: var(--accent-yellow); box-shadow: none; }
.btn-small { padding: 12px 28px; font-size: 0.85rem; }

/* Unterseiten-Hero */
.page-hero { background: var(--blue-gradient); color: var(--white); padding: 70px 0 60px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; opacity: 0.3; background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px); background-size: 48px 48px; }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: 2.6rem; line-height: 1.15; margin: 0 0 18px; letter-spacing: -0.5px; max-width: 900px; }
.page-hero p.lead { font-size: 1.2rem; font-weight: 300; max-width: 820px; opacity: 0.95; margin-bottom: 30px; }
.page-hero .hero-actions { margin-top: 10px; }

/* Abschnitte */
section { padding: 80px 0; }
section.tight { padding: 50px 0; }
section.alt { background: var(--white); }
section.dark { background: var(--primary-blue); color: var(--white); }
section.dark h2, section.dark h3 { color: var(--white); }
.container.narrow { max-width: 860px; }
h2 { color: var(--primary-blue); font-size: 2.1rem; font-weight: 700; line-height: 1.2; margin: 0 0 25px; }
h3 { color: var(--primary-blue); font-size: 1.3rem; margin: 30px 0 10px; }
.section-title { margin-bottom: 50px; }
.section-title p { max-width: 760px; margin: 0 auto; color: var(--text-dark); font-size: 1.1rem; }
.prose p, .prose li { font-size: 1.08rem; color: var(--text-dark); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--primary-blue); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent-yellow); text-underline-offset: 3px; }
.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: start; }
.aside-box { background: var(--white); border-radius: 20px; padding: 35px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-top: 4px solid var(--accent-yellow); }
.aside-box h3 { margin-top: 0; }
.aside-box ul { padding-left: 20px; margin: 0; }
.aside-box li { margin-bottom: 8px; }

/* Karten & Grids */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.card { background: var(--white); border-radius: 20px; padding: 38px 32px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-bottom: 3px solid transparent; transition: all 0.3s ease; display: block; text-decoration: none; color: inherit; }
.card:hover { transform: translateY(-6px); border-bottom-color: var(--accent-yellow); box-shadow: 0 20px 50px rgba(28,43,75,0.12); }
.card h3 { margin-top: 0; font-size: 1.35rem; }
.card p { color: var(--text-dark); margin: 0 0 12px; }
.card .more { color: var(--primary-blue); font-weight: 700; font-size: 0.9rem; }
.card ul { padding-left: 20px; margin: 10px 0 0; color: var(--text-dark); }
.card li { margin-bottom: 6px; }
.card-link .eyebrow { color: var(--text-light); }

/* Ablauf / Schritte */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.step { background: var(--white); border-radius: 16px; padding: 30px 26px 26px; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.04); }
.step::before { counter-increment: step; content: counter(step); display: inline-flex; width: 42px; height: 42px; border-radius: 50%; align-items: center; justify-content: center; background: var(--yellow-gradient); color: var(--primary-blue); font-weight: 800; margin-bottom: 14px; }
.step h3 { margin: 0 0 8px; font-size: 1.1rem; }
.step p { margin: 0; color: var(--text-dark); font-size: 0.98rem; }

/* Zahlen */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; text-align: center; }
.facts strong { display: block; font-size: 2.4rem; color: var(--accent-yellow); font-weight: 800; line-height: 1.1; }
.facts span { font-size: 0.95rem; opacity: 0.9; }

/* Checkliste / Tabelle */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding-left: 32px; position: relative; margin-bottom: 12px; font-size: 1.05rem; color: var(--text-dark); }
.checklist li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--accent-yellow); font-weight: 800; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: var(--white); border-radius: 12px; overflow: hidden; font-size: 0.98rem; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid #e9edf3; vertical-align: top; }
th { background: var(--primary-blue); color: var(--white); font-weight: 600; }
tr:last-child td { border-bottom: none; }

/* Tags / Kompatibilität */
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 0; padding: 0; list-style: none; }
.tags li { background: var(--white); border: 1px solid #e0e6ef; border-radius: 30px; padding: 6px 14px; font-size: 0.9rem; color: var(--primary-blue); font-weight: 600; }

/* FAQ */
.faq { background: var(--white); }
.faq details { border-bottom: 1px solid #e6eaf1; padding: 6px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--primary-blue); font-size: 1.08rem; padding: 14px 30px 14px 0; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; color: var(--accent-yellow); font-size: 1.5rem; font-weight: 400; }
.faq details[open] summary::after { content: '–'; }
.faq details div { padding: 0 0 18px; color: var(--text-dark); font-size: 1.02rem; }
.faq details div p { margin: 0 0 10px; }

/* CTA-Band */
.cta-band { background: var(--blue-gradient); color: var(--white); text-align: center; padding: 80px 0; }
.cta-band h2 { color: var(--white); }
.cta-band p { max-width: 680px; margin: 0 auto 35px; font-size: 1.15rem; opacity: 0.92; }
.cta-row { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* Referenzen */
.ref-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.ref-item { background: var(--white); border-radius: 14px; padding: 24px; border-left: 4px solid var(--accent-yellow); box-shadow: 0 8px 24px rgba(0,0,0,0.04); }
.ref-item strong { display: block; color: var(--primary-blue); font-size: 1.05rem; }
.ref-item span { color: var(--text-light); font-size: 0.92rem; }

/* Formular */
.form { display: grid; gap: 18px; }
.form label { display: block; font-weight: 600; color: var(--primary-blue); margin-bottom: 6px; font-size: 0.95rem; }
.form input, .form select, .form textarea { width: 100%; box-sizing: border-box; padding: 13px 15px; border: 1px solid #d5dbe6; border-radius: 10px; font: inherit; font-size: 1rem; background: var(--white); }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--accent-yellow); border-color: var(--accent-yellow); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .consent { font-size: 0.9rem; color: var(--text-dark); display: flex; gap: 10px; align-items: flex-start; }
.form .consent input { width: auto; margin-top: 4px; }
.form .hp { position: absolute; left: -9999px; }
.form button { justify-self: start; cursor: pointer; }

/* Wissen / Artikel */
.article { max-width: 820px; margin: 0 auto; }
.article h2 { font-size: 1.7rem; margin-top: 45px; }
.article h3 { font-size: 1.25rem; }
.article p, .article li { font-size: 1.08rem; line-height: 1.8; }
.article .meta { color: var(--text-light); font-size: 0.9rem; margin-bottom: 30px; }
.article blockquote { border-left: 4px solid var(--accent-yellow); margin: 25px 0; padding: 10px 20px; background: var(--white); border-radius: 0 12px 12px 0; }
.note { background: #fff8e6; border: 1px solid #ffe2a3; border-radius: 12px; padding: 18px 22px; color: #5a4300; font-size: 0.98rem; }

/* Team */
.person { display: grid; grid-template-columns: 160px 1fr; gap: 30px; align-items: start; }
.avatar { width: 160px; height: 160px; border-radius: 20px; background: var(--blue-gradient); display: flex; align-items: center; justify-content: center; color: var(--accent-yellow); font-weight: 800; font-size: 2.2rem; }

/* Footer */
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; text-align: left; line-height: 2; }
.footer-grid strong { color: var(--white); }
footer a { margin: 0; font-weight: 500; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 35px; padding-top: 25px; font-size: 0.85rem; }

@media (max-width: 1180px) {
    .nav-burger { display: flex; }
    .nav-links { display: none; width: 100%; flex-direction: column; align-items: flex-start; margin-top: 15px; }
    .nav-links li { padding: 8px 0; }
    .nav-links a { margin-left: 0; font-size: 0.95rem; }
    .nav-toggle:checked ~ .nav-links { display: flex; }
    nav { flex-wrap: wrap; }
    .two-col { grid-template-columns: 1fr; gap: 35px; }
    .form .row { grid-template-columns: 1fr; }
    .person { grid-template-columns: 1fr; }
    .page-hero h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    .hero h1 { font-size: 2.2rem; }
    section { padding: 55px 0; }
}
h1, h2, h3 { overflow-wrap: anywhere; hyphens: auto; }
