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

:root {
    --bg: #0f172a;
    --bg-alt: #1e293b;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --accent: #4582B4;
    --accent-hover: #5a9ad4;
    --border: #334155;
    --card-bg: #1e293b;
    --radius: 8px;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Hero */
.hero {
    position: relative;
    height: 85vh;
    min-height: 500px;
    max-height: 900px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.4) 50%, rgba(15,23,42,0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 20px 60px;
    max-width: 1140px;
    margin: 0 auto;
    width: 100%;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 24px;
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.hero-facts span {
    background: rgba(69,130,180,0.15);
    border: 1px solid rgba(69,130,180,0.3);
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 500;
}

.hero-cta {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 12px 28px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.hero-cta:hover { background: var(--accent-hover); }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--accent);
}

/* Eckdaten Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
}

.card-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

.card-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Beschreibung */
.desc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.desc-text p { margin-bottom: 16px; color: var(--text-muted); }

.desc-costs {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.desc-costs table { width: 100%; border-collapse: collapse; }
.desc-costs td { padding: 10px 0; border-bottom: 1px solid var(--border); }
.desc-costs td:last-child { text-align: right; font-weight: 500; }
.desc-costs tr.total td { border-bottom: none; font-weight: 700; color: var(--accent); font-size: 1.1rem; padding-top: 16px; }

/* Gallery Tabs */
.gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tab {
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.2s;
}

.tab:hover { border-color: var(--accent); color: var(--text); }
.tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Gallery Grid */
.gallery-grid {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.gallery-grid.active { display: grid; }

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    display: block;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img { transform: scale(1.05); }

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.95);
    align-items: center;
    justify-content: center;
}

.lightbox.active { display: flex; }

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 2rem;
    padding: 16px;
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }

.lightbox-close { top: 10px; right: 20px; font-size: 2.5rem; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); font-size: 3rem; }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); font-size: 3rem; }

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Ausstattung */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.feature-group ul {
    list-style: none;
}

.feature-group li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    padding-left: 16px;
    position: relative;
}

.feature-group li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Lage */
.lage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.lage-text p { margin-bottom: 16px; color: var(--text-muted); }
.lage-text ul { list-style: none; }
.lage-text li { padding: 6px 0; color: var(--text-muted); }

/* Form */
.form-intro { color: var(--text-muted); margin-bottom: 32px; }

.bewerbung-form {
    max-width: 700px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea { resize: vertical; }

.form-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: 28px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.form-section-title:first-of-type { margin-top: 0; }

.form-hinweis {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 16px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.btn-submit {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

.btn-submit:hover { background: var(--accent-hover); }

/* Kontakt */
.kontakt-info { text-align: center; }
.kontakt-name { font-size: 1.3rem; font-weight: 600; margin-bottom: 12px; }
.kontakt-info a { color: var(--accent); text-decoration: none; }
.kontakt-info a:hover { text-decoration: underline; }
.kontakt-info p { margin-bottom: 8px; }

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .section { padding: 48px 0; }
    .desc-grid,
    .features-grid,
    .lage-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .hero { height: 70vh; min-height: 400px; }
    .hero-content { padding-bottom: 40px; }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .lightbox-prev { left: 5px; }
    .lightbox-next { right: 5px; }
}