/* --- 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;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-blue);
    margin-left: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    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: linear-gradient(var(--blue-overlay), var(--blue-overlay)), url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 160px 0 180px;
    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: 3.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.4rem;
    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; }
    nav { flex-direction: column; text-align: center; }
    .logo-wrapper { margin-bottom: 20px; }
    .nav-links { margin-left: 0; margin-top: 10px; }
    .nav-links a { margin: 0 10px; font-size: 0.85rem; }
    .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; }
}