@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    background: #f8f9fb;
}
a { color: #1a3a6b; text-decoration: none; transition: color 0.3s; }
a:hover { color: #4a7fd4; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-weight: 600; color: #1a2744; }
h1 { font-size: 1.8rem; margin-bottom: 20px; letter-spacing: 1px; text-transform: uppercase; }
h2 { font-size: 1.3rem; margin: 25px 0 12px; color: #1a3a6b; }
h3 { font-size: 1.1rem; margin: 18px 0 8px; }
p { margin-bottom: 12px; }
ul, ol { margin: 10px 0 15px 25px; }
li { margin-bottom: 5px; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== NAVIGATION ===== */
.main-nav {
    background: #1a2744;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
}
.nav-links li { position: relative; }
.nav-links > li > a {
    display: block;
    padding: 14px 14px;
    color: #e0e6ef;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.3s, color 0.3s;
    white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li > a.active {
    background: #2c3e6b;
    color: #fff;
}
.arrow { font-size: 10px; margin-left: 3px; }

/* Dropdown */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1a2744;
    min-width: 220px;
    list-style: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1001;
    border-top: 2px solid #4a7fd4;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown li a {
    display: block;
    padding: 10px 18px;
    color: #c8d0e0;
    font-size: 13px;
    transition: background 0.2s;
}
.dropdown li a:hover {
    background: #2c3e6b;
    color: #fff;
}

/* Burger */
.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
}
.burger span {
    display: block;
    width: 26px;
    height: 3px;
    background: #e0e6ef;
    margin: 5px 0;
    transition: all 0.3s;
    border-radius: 2px;
}
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO SLIDER ===== */
.hero-slider {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    overflow: hidden;
    height: 500px;
    background: #1a2744;
}
.slider-track { position: relative; width: 100%; height: 100%; }
.hero-slider .slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}
.hero-slider .slide.active { opacity: 1; }
.hero-slider .slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 60%;
    display: block;
}
/* Logo overlay centered on hero */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    pointer-events: none;
}
.hero-logo {
    max-width: 420px;
    width: 60%;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.6));
}
.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.slider-dots .dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background 0.3s;
}
.slider-dots .dot.active { background: #fff; }
.slider-dots .dot:hover { background: rgba(255,255,255,0.7); }

/* ===== MAIN CONTENT ===== */
.main-content {
    background: #fff;
    min-height: 400px;
}
.main-content > .container {
    padding: 40px 20px 60px;
}

/* ===== HOME SECTIONS ===== */
.hero-welcome {
    text-align: center;
    padding: 40px 0;
}
/* Honeypot field - invisible to humans, catches bots */
.form-group-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}
.contact-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 25px 0;
    border-bottom: 1px solid #e8eef5;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
}
.contact-icon { font-size: 18px; }

.home-karriere {
    background: #f0f4f8;
    padding: 40px 0;
    text-align: center;
}
.home-karriere blockquote {
    max-width: 700px;
    margin: 0 auto 20px;
    font-style: italic;
    font-size: 16px;
    color: #444;
    line-height: 1.8;
}
.home-karriere blockquote footer {
    font-style: normal;
    margin-top: 15px;
    font-size: 15px;
}

.home-notar {
    padding: 50px 0;
}
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.notar-photo {
    max-width: 300px;
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.home-leistungen {
    background: #f0f4f8;
    padding: 50px 0;
    text-align: center;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}
.activity-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: #1a2744;
}
.activity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    color: #4a7fd4;
}
.activity-card img {
    width: 50px; height: 50px;
    margin-bottom: 12px;
    opacity: 0.7;
}
.activity-card span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.home-team {
    padding: 50px 0;
    text-align: center;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 25px;
}
.team-grid.large { grid-template-columns: repeat(3, 1fr); }
.team-card {
    background: #f0f4f8;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: background 0.3s;
}
.team-card:hover { background: #e4ecf5; }
.team-card strong { display: block; font-size: 15px; color: #1a2744; margin-bottom: 4px; }
.team-card span { font-size: 13px; color: #666; }
.team-card.highlight { background: #1a2744; }
.team-card.highlight a { color: #fff; }
.team-card.highlight strong { color: #fff; }

.home-formulare {
    background: #1a2744;
    padding: 40px 0;
    text-align: center;
}
.home-formulare .btn { margin: 0 10px; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 10px 28px;
    background: #1a2744;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
}
.btn:hover { background: #2c3e6b; color: #fff; }
.btn-large { padding: 14px 35px; font-size: 14px; }

/* ===== NOTAR PROFILE ===== */
.notar-profile { text-align: center; margin-bottom: 30px; }
.notar-profile .notar-photo {
    max-width: 350px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ===== CV GRID ===== */
.cv-grid { margin: 15px 0 30px; }
.cv-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 15px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f3f5;
}
.cv-row:last-child { border-bottom: none; }
.cv-year { font-weight: 700; color: #1a3a6b; white-space: nowrap; }
.cv-text { line-height: 1.6; }

/* ===== DOWNLOADS ===== */
.downloads-list { margin: 20px 0; }
.download-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f3f5;
    transition: background 0.2s;
}
.download-item:hover { background: #f5f8fb; }
.pdf-icon { width: 32px; height: 32px; }

/* ===== KONTAKT ===== */
.kontakt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.osm-map iframe {
    width: 100%;
    height: 350px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

/* ===== CONTACT FORM ===== */
.contact-form { max-width: 700px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 15px; }
.form-group { margin-bottom: 15px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 5px; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: #4a7fd4;
    outline: none;
}
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
}
.checkbox-label input { margin-top: 3px; }
.form-hint { font-size: 12px; color: #888; margin-bottom: 15px; }

/* ===== FOOTER ===== */
.main-footer {
    background: #1a2744;
    color: #a0aec0;
    padding: 30px 0;
    text-align: center;
    font-size: 12px;
}
.footer-links {
    margin-bottom: 12px;
}
.footer-links a {
    color: #c8d0e0;
    margin: 0 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.footer-links a:hover { color: #fff; }
.footer-copy { color: #6b7fa0; }

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #1a2744;
    color: #e0e6ef;
    padding: 18px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    z-index: 9999;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.3);
}
.cookie-text { flex: 1; font-size: 13px; }
.cookie-text a { color: #7eb8ff; }
.cookie-buttons { display: flex; gap: 10px; }
.btn-cookie {
    padding: 8px 20px;
    background: #4a7fd4;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}
.btn-cookie:hover { background: #5d91e2; }
.btn-cookie-secondary {
    padding: 8px 20px;
    background: transparent;
    color: #a0aec0;
    border: 1px solid #a0aec0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}
.btn-cookie-secondary:hover { border-color: #fff; color: #fff; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .burger { display: block; }
    .nav-container { justify-content: flex-start; }
    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: #1a2744;
        padding: 60px 20px 20px;
        z-index: 1001;
        overflow-y: auto;
    }
    .nav-links.open { display: flex; }
    .nav-links > li > a { padding: 12px 0; font-size: 15px; }
    .dropdown {
        position: static;
        box-shadow: none;
        border-top: none;
        display: none;
        padding-left: 20px;
    }
    .has-dropdown.open .dropdown { display: block; }
    .hero-slider { height: 280px; }
    .hero-logo { max-width: 280px; }
    .two-col { grid-template-columns: 1fr; }
    .activity-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .kontakt-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .contact-bar { flex-direction: column; align-items: center; gap: 10px; }
    .cookie-banner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.4rem; }
    .activity-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .team-grid { grid-template-columns: 1fr; }
    .hero-slider { height: 250px; }
    .hero-logo { max-width: 200px; width: 50%; }
    .home-formulare .btn { display: block; margin: 10px auto; }
}
