:root {
    --blue-dark:  #0a2558;
    --blue-mid:   #1a4a99;
    --blue-light: #2d7dd2;
    --blue-pale:  #e8f0fb;
    --white:      #ffffff;
    --gray-light: #f4f7fa;
    --gray-mid:   #c8d4e0;
    --text-dark:  #1a2840;
    --text-mid:   #4a5c72;
    --shadow:     0 4px 20px rgba(10,37,88,.12);
    --radius:     8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Source Sans 3', sans-serif; color: var(--text-dark); background: var(--white); line-height: 1.7; }

/* ---- PASSWORT-GATE ---- */
#pw-gate {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--blue-dark);
    display: flex; align-items: center; justify-content: center;
}
#pw-box {
    text-align: center; padding: 48px 40px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius); width: 100%; max-width: 360px;
}
#pw-logo {
    font-family: 'Raleway', sans-serif; font-weight: 800; font-size: 2.8rem;
    color: var(--blue-light); letter-spacing: .05em; margin-bottom: 8px;
}
#pw-box h2 {
    font-family: 'Raleway', sans-serif; font-size: 1.2rem;
    font-weight: 700; color: var(--white); margin-bottom: 6px;
}
#pw-box p { font-size: .9rem; color: rgba(255,255,255,.55); margin-bottom: 24px; }
#pw-input {
    width: 100%; padding: 12px 16px; margin-bottom: 12px;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--radius); color: var(--white);
    font-family: 'Source Sans 3', sans-serif; font-size: 1rem;
    outline: none; text-align: center; letter-spacing: .1em;
}
#pw-input:focus { border-color: var(--blue-light); }
#pw-box button {
    width: 100%; padding: 12px; background: var(--blue-light); color: var(--white);
    border: none; border-radius: var(--radius);
    font-family: 'Raleway', sans-serif; font-weight: 700; font-size: .95rem;
    cursor: pointer; transition: background .2s;
}
#pw-box button:hover { background: #3d8fe0; }
#pw-error { display: block; margin-top: 12px; color: #ff6b6b; font-size: .85rem; }

/* ---- NAVIGATION ---- */
#navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(10,37,88,.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,.08);
    transition: box-shadow .3s;
}
#navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.35); }

.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 70px;
}

.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 44px; width: auto; }
.logo-fallback {
    font-family: 'Raleway', sans-serif; font-weight: 800;
    font-size: 1.1rem; color: var(--white); letter-spacing: .08em; line-height: 1.1;
}
.logo-fallback small {
    display: block; font-weight: 400; font-size: .6em;
    letter-spacing: .25em; color: var(--blue-light);
}

.nav-links { display: flex; list-style: none; gap: 4px; align-items: center; }
.nav-links a {
    display: block; padding: 8px 14px;
    color: rgba(255,255,255,.85); text-decoration: none;
    font-size: .9rem; font-weight: 600; letter-spacing: .04em;
    border-radius: 4px; transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(255,255,255,.1); }
.nav-cta > a { background: var(--blue-light) !important; color: var(--white) !important; padding: 8px 18px !important; }
.nav-cta > a:hover { background: #3d8fe0 !important; }

.hamburger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all .3s; }

/* ---- HERO ---- */
.hero {
    position: relative; height: 100vh; min-height: 600px;
    display: flex; align-items: center;
    background: url('image/Dachgauben/finale.jpg') center / cover no-repeat;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(10,37,88,.9) 0%, rgba(26,74,153,.75) 55%, rgba(45,125,210,.6) 100%);
}
.hero-content {
    position: relative; z-index: 1;
    max-width: 1200px; margin: 0 auto; padding: 0 24px; padding-top: 70px;
}

.hero-eyebrow {
    display: inline-block;
    background: rgba(45,125,210,.25); border: 1px solid rgba(45,125,210,.5);
    color: #90c4f0; font-size: .78rem; font-weight: 700;
    letter-spacing: .22em; text-transform: uppercase;
    padding: 6px 16px; border-radius: 20px; margin-bottom: 20px;
    animation: fadeUp .8s ease both;
}
.hero h1 {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 800; color: var(--white); line-height: 1.05;
    letter-spacing: -.02em; margin-bottom: 20px;
    animation: fadeUp .8s .15s ease both;
}
.hero p {
    font-size: clamp(1rem, 2.5vw, 1.2rem); color: rgba(255,255,255,.85);
    max-width: 520px; margin-bottom: 36px; font-weight: 300;
    animation: fadeUp .8s .3s ease both;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; animation: fadeUp .8s .45s ease both; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.scroll-hint {
    position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    color: rgba(255,255,255,.5); font-size: .72rem; letter-spacing: .1em;
    text-transform: uppercase; animation: fadeUp .8s .7s ease both;
}
.scroll-hint span { animation: bounce 2s infinite; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---- BUTTONS ---- */
.btn {
    display: inline-block; padding: 14px 28px; border-radius: var(--radius);
    font-weight: 700; font-size: .95rem; text-decoration: none;
    letter-spacing: .05em; transition: all .25s; cursor: pointer;
    border: 2px solid transparent;
}
.btn-primary { background: var(--blue-light); color: var(--white); }
.btn-primary:hover { background: #3d8fe0; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(45,125,210,.4); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: var(--white); transform: translateY(-2px); }

/* ---- SHARED SECTIONS ---- */
.section { padding: 90px 0; }
.section-light { background: var(--gray-light); }
.section-white { background: var(--white); }
.section-blue  { background: var(--blue-dark); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-eyebrow {
    display: inline-block; font-size: .78rem; font-weight: 700;
    letter-spacing: .25em; text-transform: uppercase;
    color: var(--blue-light); margin-bottom: 12px;
}
.section-header h2 {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800; color: var(--text-dark); line-height: 1.1; margin-bottom: 16px;
}
.divider { width: 50px; height: 3px; background: var(--blue-light); margin: 0 auto; border-radius: 2px; }

/* ---- ÜBER ---- */
.ueber-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.ueber-text h3 {
    font-family: 'Raleway', sans-serif; font-size: 1.4rem;
    font-weight: 700; color: var(--blue-dark); margin-bottom: 30px;
}

.timeline { position: relative; padding-left: 20px; }
.timeline::before {
    content: ''; position: absolute; left: 0; top: 8px; bottom: 8px;
    width: 2px; background: linear-gradient(to bottom, var(--blue-mid), var(--blue-light));
}
.timeline-item { position: relative; padding: 0 0 28px 28px; }
.timeline-item::before {
    content: ''; position: absolute; left: -5px; top: 8px;
    width: 12px; height: 12px; background: var(--blue-light);
    border-radius: 50%; border: 2px solid var(--gray-light);
}
.timeline-item .year {
    display: inline-block; font-family: 'Raleway', sans-serif;
    font-weight: 800; font-size: 1.2rem; color: var(--blue-mid); margin-bottom: 4px;
}
.timeline-item p { color: var(--text-mid); font-size: .95rem; }

.ueber-images { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ueber-images img {
    width: 100%; height: 200px; object-fit: cover;
    border-radius: var(--radius); box-shadow: var(--shadow);
}
.ueber-images img:first-child { grid-column: 1 / -1; height: 260px; }

/* ---- LEISTUNGEN ---- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.service-card {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius); overflow: hidden;
    transition: transform .3s, box-shadow .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.service-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.service-card-body { padding: 20px; }
.service-card-body h3 {
    font-family: 'Raleway', sans-serif; font-size: 1.05rem;
    font-weight: 700; color: var(--white); margin-bottom: 8px;
}
.service-card-body p { font-size: .87rem; color: rgba(255,255,255,.65); line-height: 1.6; }

/* ---- REFERENZEN ---- */
.gallery-filter { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.filter-btn {
    padding: 8px 20px; border: 2px solid var(--gray-mid);
    background: none; border-radius: 20px; font-size: .85rem;
    font-weight: 600; color: var(--text-mid); cursor: pointer; transition: all .2s;
}
.filter-btn.active, .filter-btn:hover { background: var(--blue-mid); border-color: var(--blue-mid); color: var(--white); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery-item {
    position: relative; overflow: hidden; border-radius: var(--radius);
    cursor: pointer; aspect-ratio: 4/3; background: var(--gray-mid);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; display: block; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,37,88,.75) 0%, transparent 55%);
    opacity: 0; transition: opacity .3s;
    display: flex; align-items: flex-end; padding: 14px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-label { font-weight: 600; color: var(--white); font-size: .84rem; }
.gallery-item.hidden { display: none; }

/* ---- KARRIERE ---- */
.karriere-intro { text-align: center; max-width: 560px; margin: 0 auto 48px; color: var(--text-mid); }
.karriere-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.karriere-card {
    background: var(--white); border: 2px solid var(--blue-pale);
    border-radius: var(--radius); padding: 32px;
    transition: border-color .3s, box-shadow .3s;
    display: flex; flex-direction: column;
}
.karriere-card:hover { border-color: var(--blue-light); box-shadow: var(--shadow); }
.karriere-icon { font-size: 2.4rem; margin-bottom: 14px; }
.karriere-badge {
    display: inline-block; font-size: .72rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--blue-light); border: 1px solid var(--blue-light);
    border-radius: 4px; padding: 3px 10px; margin-bottom: 12px;
}
.karriere-card h3 {
    font-family: 'Raleway', sans-serif; font-size: 1.15rem;
    font-weight: 700; color: var(--blue-dark); margin-bottom: 10px;
}
.karriere-card > p { color: var(--text-mid); font-size: .92rem; margin-bottom: 16px; }
.karriere-card ul { list-style: none; margin-bottom: 24px; flex: 1; }
.karriere-card ul li {
    font-size: .88rem; color: var(--text-mid); padding: 4px 0;
    display: flex; align-items: flex-start; gap: 8px;
}
.karriere-card ul li::before { content: '✓'; color: var(--blue-light); font-weight: 700; flex-shrink: 0; }
.btn-apply {
    display: block; text-align: center; padding: 12px;
    background: var(--blue-mid); color: var(--white);
    border-radius: var(--radius); text-decoration: none;
    font-weight: 700; font-size: .9rem; transition: background .2s, transform .2s;
}
.btn-apply:hover { background: var(--blue-light); transform: translateY(-2px); }

/* ---- KONTAKT ---- */
#kontakt .container { display: flex; flex-direction: column; align-items: center; }
.kontakt-info { width: 100%; max-width: 480px; }
.kontakt-info h3 {
    font-family: 'Raleway', sans-serif; font-size: 1.4rem;
    font-weight: 700; color: var(--white); margin-bottom: 28px;
}
.kontakt-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.kontakt-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.kontakt-text { color: rgba(255,255,255,.8); font-size: .95rem; }
.kontakt-text strong { display: block; color: var(--white); margin-bottom: 2px; }
.kontakt-text a { color: inherit; text-decoration: none; }
.kontakt-text a:hover { text-decoration: underline; }


/* ---- FOOTER ---- */
footer {
    background: #06152e; padding: 28px 0;
    border-top: 1px solid rgba(255,255,255,.08);
}
.footer-content {
    display: flex; justify-content: space-between; align-items: center;
    color: rgba(255,255,255,.45); font-size: .88rem; flex-wrap: wrap; gap: 12px;
}
.footer-links { display: flex; gap: 8px; align-items: center; }
.footer-sep { opacity: .3; }
.footer-btn {
    background: none; border: none; color: rgba(255,255,255,.45);
    cursor: pointer; font-size: .88rem; font-family: inherit;
    text-decoration: underline; padding: 0; transition: color .2s;
}
.footer-btn:hover { color: rgba(255,255,255,.8); }

/* ---- MODALS ---- */
.modal {
    display: none; position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,.7); backdrop-filter: blur(4px);
    padding: 20px; overflow-y: auto;
}
.modal.open { display: flex; align-items: flex-start; justify-content: center; }
.modal-box {
    background: var(--white); border-radius: var(--radius); padding: 40px;
    max-width: 700px; width: 100%; margin: 60px auto; position: relative;
}
.modal-close {
    position: absolute; top: 16px; right: 16px;
    background: none; border: none; font-size: 1.6rem;
    cursor: pointer; color: var(--text-mid); line-height: 1; padding: 4px 8px;
}
.modal-close:hover { color: var(--text-dark); }
.modal-box h2 {
    font-family: 'Raleway', sans-serif; font-size: 1.8rem;
    font-weight: 800; color: var(--blue-dark); margin-bottom: 24px;
}
.modal-box h3 {
    font-family: 'Raleway', sans-serif; font-size: 1.05rem;
    font-weight: 700; color: var(--blue-dark); margin: 22px 0 8px;
}
.modal-box p, .modal-box address {
    color: var(--text-mid); font-size: .94rem; font-style: normal; line-height: 1.7;
}

/* ---- LIGHTBOX ---- */
.lightbox {
    display: none; position: fixed; inset: 0; z-index: 3000;
    background: rgba(0,0,0,.93); align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
#lb-img {
    max-width: 90vw; max-height: 85vh; object-fit: contain;
    border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lb-close {
    position: absolute; top: 20px; right: 24px; background: none; border: none;
    color: rgba(255,255,255,.8); font-size: 2.5rem; cursor: pointer; line-height: 1;
}
.lb-close:hover { color: var(--white); }
.lb-prev, .lb-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.1); border: none; color: var(--white);
    font-size: 2.5rem; cursor: pointer; padding: 8px 16px;
    border-radius: 4px; transition: background .2s; line-height: 1;
}
.lb-prev { left: 20px; } .lb-next { right: 20px; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.2); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    .ueber-grid   { grid-template-columns: 1fr; }
    .ueber-images img:first-child { height: 210px; }
}
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links {
        position: fixed; top: 70px; left: 0; right: 0;
        background: var(--blue-dark); flex-direction: column;
        align-items: stretch; padding: 16px; gap: 4px;
        transform: translateY(-110%); opacity: 0; pointer-events: none;
        transition: all .3s; border-bottom: 1px solid rgba(255,255,255,.1);
    }
    .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
    .nav-links a  { padding: 12px 16px; font-size: 1rem; }
    .nav-cta > a  { text-align: center; }
    .section      { padding: 60px 0; }
}
@media (max-width: 480px) {
    .services-grid { grid-template-columns: 1fr; }
    .karriere-grid { grid-template-columns: 1fr; }
}
