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

:root {
    --primary-color: #a71c2f;
    --primary-dark: #8b1725;
    --secondary-color: #f5f5f5;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
    --page-padding: clamp(18px, 4vw, 40px);
    --nav-padding: 20px;
    --section-padding: clamp(70px, 9.5vw, 124px);
    --section-padding-compact: clamp(56px, 7.5vw, 104px);
    --card-padding: clamp(22px, 3.2vw, 36px);
    --grid-gap: clamp(12px, 1.8vw, 24px);
    --grid-gap-lg: clamp(16px, 2.4vw, 32px);
    --radius-sm: 10px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --nav-height: 80px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: #fff;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--page-padding);
}

/* ─── Typography ─────────────────────────────────────────── */

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

.eyebrow {
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 700;
    color: #6a6a6a;
}

.hero .eyebrow {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
}

/* ─── Navigation ─────────────────────────────────────────── */

.navbar {
    background: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    padding: 0 20px;
}

.navbar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ─── Buttons ────────────────────────────────────────────── */

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: #f3f3f3;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: #e9e9e9;
}

/* ─── Hero ───────────────────────────────────────────────── */

.hero {
    background: url('../assets/eckernfoerde/visualizations/VRayCam_1.jpg');
    background-size: cover;
    background-position: center center;
    color: #fff;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: clamp(60px, 10vw, 100px) var(--page-padding) clamp(60px, 8vw, 100px);
    min-height: calc(90vh - var(--nav-height) - 14px);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 10, 10, 0), rgba(15, 10, 10, 0));
}

.hero-content {
    max-width: 820px;
    position: relative;
    z-index: 2;
    text-align: center;
    margin: 60px auto 0;
}

.hero h1 {
    font-size: clamp(32px, 5.5vw, 56px);
    font-weight: 700;
    margin-bottom: clamp(20px, 3vw, 36px);
    line-height: 1.25;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.hero-subtitle {
    font-size: clamp(16px, 2.1vw, 20px);
    margin-bottom: clamp(24px, 4vw, 44px);
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

.hero-buttons {
    display: flex;
    gap: clamp(12px, 2.5vw, 20px);
    margin-bottom: clamp(20px, 4vw, 32px);
    flex-wrap: wrap;
    justify-content: center;
}

.hero-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 180px;
    max-width: 220px;
    justify-content: center;
    padding: 12px 20px;
    white-space: nowrap;
}

.hero .btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
}

.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 16px;
    flex-wrap: wrap;
    gap: 0;
    position: relative;
    z-index: 2;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 clamp(16px, 3vw, 32px);
}

.hero-stat-value {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.hero-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    margin-top: 4px;
}

.hero-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
}

.hero-divider {
    height: clamp(8px, 1.6vw, 14px);
    margin: 0;
    background: linear-gradient(90deg, #a71c2f 0%, #c54363 50%, #a71c2f 100%);
}

/* ─── Sections (shared) ──────────────────────────────────── */

section {
    padding: var(--section-padding) 0;
}

section:not(.hero) {
    font-size: 0.96rem;
}

.section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto clamp(32px, 6vw, 64px);
    text-wrap: balance;
}

.section-head h2 {
    font-size: clamp(26px, 3.6vw, 34px);
    margin-bottom: 14px;
    color: var(--text-dark);
    font-weight: 700;
}

.section-head p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ─── Cards (shared) ─────────────────────────────────────── */

.card-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(167, 28, 47, 0.08);
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 16px;
}

.project-card,
.feature-card,
.timeline-card,
.contact-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    padding: clamp(26px, 3.6vw, 36px);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.project-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0 0 10px;
}

.project-value {
    font-size: clamp(17px, 1.8vw, 23px);
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 12px;
    line-height: 1.2;
    hyphens: auto;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.project-text {
    color: #444;
    line-height: 1.7;
    margin: 0;
    font-size: 0.98em;
    overflow-wrap: break-word;
}

/* ─── Project ────────────────────────────────────────────── */

.project {
    position: relative;
    padding: var(--section-padding) 0;
    background: #fff;
    overflow: hidden;
}

.project .container {
    position: relative;
    z-index: 1;
}

.project .section-head h2 {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 16px;
    color: #2f2f2f;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: var(--grid-gap);
}

.project-card {
    display: grid;
    align-content: start;
    gap: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* ─── Visuals ────────────────────────────────────────────── */

.visuals {
    background: #f9f9f9;
}

.visuals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--grid-gap);
    padding: 0 var(--page-padding);
    max-width: 1400px;
    margin: 2rem auto;
}

.visual-clickable {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: block;
}

.visual-clickable:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* ─── Features ───────────────────────────────────────────── */

.features {
    background: #f9f9f9;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(200px, 1fr));
    gap: var(--grid-gap);
}

.feature-card {
    display: grid;
    align-content: start;
    gap: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

/* ─── Timeline ───────────────────────────────────────────── */

.timeline {
    background: #f9f9f9;
}

.timeline-list {
    position: relative;
    display: grid;
    --timeline-col: 28px;
    --marker-size: 12px;
    --marker-offset: 14px;
    --timeline-gap: clamp(20px, 4vw, 28px);
    gap: var(--timeline-gap);
    max-width: 900px;
    margin: 0 auto;
    padding-left: 34px;
}

.timeline-item {
    display: grid;
    grid-template-columns: var(--timeline-col) 1fr;
    gap: 18px;
    align-items: start;
    position: relative;
}

.timeline-item-hidden {
    display: none;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: calc((var(--timeline-col) / 2) - 1px);
    top: calc(var(--marker-offset) + (var(--marker-size) / 2));
    width: 2px;
    height: calc(100% + var(--timeline-gap));
    background: rgba(0, 0, 0, 0.1);
}

.timeline-item:last-child::after {
    display: none;
}

.timeline-item.timeline-item-visible-tail::after {
    display: none;
}

.timeline-marker {
    width: var(--marker-size);
    height: var(--marker-size);
    border-radius: 50%;
    background: var(--primary-color);
    margin-top: var(--marker-offset);
    justify-self: center;
    box-shadow: 0 0 0 6px rgba(167, 28, 47, 0.12);
}

.timeline-item.timeline-item-completed .timeline-marker {
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.2);
}

.timeline-card {
    display: grid;
    align-content: start;
    gap: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-card h3 {
    margin: 0;
}

.timeline-card p {
    line-height: 1.7;
    margin: 0;
}

.timeline-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.timeline-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    min-height: 1.4em;
    margin: 0;
}

.timeline-note {
    margin-top: clamp(32px, 6vw, 64px);
    color: var(--text-light);
    font-size: 14px;
    text-align: center;
}

.timeline-actions {
    display: flex;
    justify-content: center;
    margin-top: clamp(24px, 4vw, 36px);
}

.timeline-toggle {
    min-width: 240px;
    justify-content: center;
}

.timeline-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.timeline-photo {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-photo:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ─── CTA ────────────────────────────────────────────────── */

.cta-section {
    background: var(--primary-color);
    color: #fff;
    padding: var(--section-padding) 0;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-section h2 {
    color: #fff;
    margin-bottom: 16px;
    font-size: clamp(24px, 3.5vw, 36px);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: clamp(16px, 1.8vw, 18px);
}

.cta-section .btn-primary {
    background: #fff;
    color: var(--primary-color);
}

.cta-section .btn-primary:hover {
    background: #f0f0f0;
}

/* ─── Team ───────────────────────────────────────────────── */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--grid-gap);
    margin-top: 2rem;
}

.team-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: var(--card-padding);
    text-align: center;
}

.team-photo {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    background: rgba(167, 28, 47, 0.12);
    display: grid;
    place-items: center;
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.55);
    margin: 0 auto 16px;
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#team-photo_01_guenter img {
    object-position: center center;
    transform: scale(1.6);
}

#team-photo_02_christian img {
    object-position: center center;
    transform: scale(1.5);
}

#team-photo_03_alexander img {
    object-position: center center;
    transform: scale(1.5);
}

/* ─── KVuK Hint ────────────────────────────────────────────── */

.kvuk-hint {
    margin-top: clamp(28px, 4vw, 44px);
    padding: clamp(22px, 3vw, 32px);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.kvuk-hint-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(167, 28, 47, 0.08);
    display: grid;
    place-items: center;
    color: var(--primary-color);
    font-size: 20px;
    flex-shrink: 0;
}

.kvuk-hint-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kvuk-hint-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
}

.kvuk-hint-text {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
    font-size: 0.95rem;
}

.kvuk-hint-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.kvuk-hint-buttons .btn {
    font-size: 0.9rem;
    padding: 10px 20px;
}

.kvuk-hint-link:hover {
    color: var(--primary-dark);
    gap: 10px;
}

@media (max-width: 600px) {
    .kvuk-hint {
        flex-direction: column;
    }
}

/* ─── Contact ────────────────────────────────────────────── */

.contact {
    background: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: clamp(18px, 3vw, 32px);
    margin-top: clamp(32px, 6vw, 60px);
}

.contact-card {
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.contact-card i {
    color: var(--primary-color);
    font-size: 42px;
    margin-bottom: 18px;
}

.contact-card h3 {
    margin-top: 2px;
    min-height: 2.4em;
    margin-bottom: 4px;
}

.contact-card p {
    margin: 0;
    line-height: 1.7;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: var(--primary-dark);
}

/* ─── Footer ─────────────────────────────────────────────── */

.footer {
    background: linear-gradient(180deg, #1f1f1f 0%, #151515 100%);
    color: #fff;
    padding: clamp(44px, 6vw, 70px) 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.96rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(24px, 4vw, 40px);
    margin-bottom: clamp(28px, 4vw, 40px);
    align-items: start;
}

.footer-content h4 {
    font-size: 18px;
    margin-bottom: 15px;
    letter-spacing: 0.02em;
}

.footer-content ul {
    list-style: none;
}

.footer-content ul li {
    margin-bottom: 10px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.72);
    max-width: 320px;
    line-height: 1.7;
}

.footer-content a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ─── Impressum ──────────────────────────────────────────── */

.impressum-main {
    padding: var(--section-padding-compact) 0;
    background: #fff;
}

.impressum-content {
    max-width: 800px;
    margin: 0 auto;
}

.impressum-title {
    font-size: clamp(28px, 4vw, 44px);
    margin-bottom: 20px;
}

.impressum-text h2 {
    margin: 24px 0 10px;
    font-size: 20px;
}

.impressum-text p {
    color: var(--text-light);
    margin-bottom: 10px;
}

.impressum-text ul {
    list-style: none;
    display: grid;
    gap: 8px;
    margin: 12px 0 16px;
}

.impressum-text ul li {
    padding-left: 20px;
    position: relative;
    color: var(--text-light);
    line-height: 1.7;
}

.impressum-text ul li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* ─── Lightbox ───────────────────────────────────────────── */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 2000;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox img {
    max-width: min(90vw, 900px);
    max-height: 80vh;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-50%) scale(1.04);
}

.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }

.no-scroll {
    overflow: hidden;
}

/* ─── Grundrisse ─────────────────────────────────────────── */

.grundrisse {
    background: #f9f9f9;
}

.grundrisse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--grid-gap-lg);
}

.grundriss-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: clamp(26px, 3.6vw, 36px);
    border-radius: 18px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grundriss-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.grundriss-card-hidden {
    display: none;
}

.grundriss-card-revealing {
    animation: grundrissReveal 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.grundriss-card-collapsing {
    animation: grundrissHide 0.24s ease both;
    pointer-events: none;
}

@keyframes grundrissReveal {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes grundrissHide {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(14px) scale(0.985);
    }
}

.grundriss-card-top {
    display: grid;
    gap: 0;
}

.grundriss-card-top .project-label {
    margin-bottom: 10px;
}

.grundriss-card-top h3 {
    margin: 0 0 12px;
    font-size: clamp(17px, 1.8vw, 23px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    hyphens: auto;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.grundriss-card-meta {
    display: grid;
    gap: 0;
    margin-bottom: 20px;
}

.grundriss-meta-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.grundriss-meta-item span {
    color: #444;
    font-size: 0.98em;
    line-height: 1.7;
}

.grundriss-meta-item strong {
    color: var(--text-dark);
    text-align: right;
    font-size: 0.98em;
    font-weight: 700;
}

.grundriss-open {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

.grundriss-toggle {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

.grundriss-more-card .card-icon {
    margin-bottom: 6px;
}

/* ─── Grundriss Modal ────────────────────────────────────── */

.grundriss-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 2100;
}

.grundriss-modal.active {
    opacity: 1;
    pointer-events: all;
}

.grundriss-wohnung-nav {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text-dark);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
    flex: 0 0 50px;
}

.grundriss-wohnung-nav span {
    display: none;
}

.grundriss-wohnung-nav:disabled {
    opacity: 0.45;
    cursor: default;
}

.grundriss-wohnung-nav[hidden] {
    display: none !important;
}

.grundriss-modal-dialog {
    position: relative;
    width: min(1120px, 100%);
    height: min(88vh, 920px);
    max-height: min(88vh, 920px);
    overflow: hidden;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.2);
}

.grundriss-modal.has-wohnung-nav .grundriss-modal-dialog {
    width: min(1120px, calc(100% - 132px));
}

.grundriss-modal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    height: 100%;
}

.grundriss-modal-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(32px, 4vw, 48px);
    background: linear-gradient(180deg, #faf7f3 0%, #f1ece7 100%);
    border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.grundriss-plan-floor-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.84);
    color: #fff;
    z-index: 3;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.28);
}

.grundriss-plan-floor-badge span {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.8;
}

.grundriss-plan-floor-badge strong {
    font-size: 0.98rem;
    font-weight: 700;
}

.grundriss-plan-floor-badge[hidden] {
    display: none !important;
}

.grundriss-modal-stage {
    position: relative;
    width: 100%;
    max-width: 680px;
    height: min(68vh, 720px);
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    background: #fff;
}

.grundriss-modal-visual img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: translate(-50%, -50%) scale(1);
    transform-origin: center;
    user-select: none;
    touch-action: none;
    cursor: grab;
}

.grundriss-modal-stage.is-zoomed img {
    cursor: grab;
}

.grundriss-modal-stage.is-dragging img {
    cursor: grabbing;
}

.grundriss-zoom-controls {
    position: absolute;
    right: 22px;
    bottom: 22px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.grundriss-zoom-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text-dark);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
}

.grundriss-zoom-btn:disabled {
    opacity: 0.45;
    cursor: default;
}

.grundriss-modal-content {
    display: grid;
    align-content: start;
    gap: 20px;
    padding: clamp(32px, 4vw, 42px);
    min-height: 0;
    overflow-y: auto;
}

.grundriss-modal-content h3 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.6rem);
}

.grundriss-modal-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.grundriss-summary-item {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    background: #f8f4f1;
    border-radius: 16px;
}

.grundriss-summary-item span {
    color: var(--text-light);
    font-size: 0.92rem;
}

.grundriss-summary-item strong {
    font-size: 1.05rem;
    color: var(--text-dark);
}

.grundriss-modal-description {
    margin: 0;
    color: var(--text-light);
}

.grundriss-modal-facts {
    display: grid;
    gap: 10px;
}

.grundriss-fact-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.grundriss-fact-item span {
    color: var(--text-light);
}

.grundriss-fact-item strong {
    color: var(--text-dark);
    text-align: right;
}

.grundriss-fact-item strong.grundriss-fact-value-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.grundriss-fact-value-item {
    line-height: 1.45;
}

.grundriss-fact-item .grundriss-fact-value-item {
    color: var(--text-dark);
}

.grundriss-fact-item-status strong {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.grundriss-fact-item-status strong::before {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #94a3b8;
    flex: 0 0 9px;
}

.grundriss-fact-item-status strong.status-available::before {
    background: #22c55e;
}

.grundriss-fact-item-status strong.status-reserved::before {
    background: #f59e0b;
}

.grundriss-fact-item-status strong.status-sold::before {
    background: #ef4444;
}

.grundriss-modal-cta {
    margin-top: 8px;
    justify-content: center;
}

.grundriss-modal-close,
.grundriss-modal-nav {
    border: none;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.grundriss-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.08);
    color: var(--text-dark);
    z-index: 2;
}

.grundriss-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text-dark);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
}

.grundriss-modal-nav.prev {
    left: 18px;
}

.grundriss-modal-nav.next {
    right: 18px;
}

.grundriss-modal-nav[hidden] {
    display: none;
}

/* ─── Exposé Modal ───────────────────────────────────────── */

.expose-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 2200;
}

.expose-modal.active {
    opacity: 1;
    pointer-events: all;
}

.expose-modal-dialog {
    position: relative;
    width: min(720px, 100%);
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.2);
    overflow: auto;
    max-height: min(88vh, 860px);
}

.expose-modal-content {
    display: grid;
    gap: 20px;
    padding: clamp(30px, 4vw, 40px);
}

.expose-modal-content h3 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    color: var(--text-dark);
}

.expose-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.08);
    color: var(--text-dark);
}

.expose-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.expose-option {
    display: grid;
    gap: 8px;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.expose-option:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    border-color: rgba(167, 28, 47, 0.28);
}

.expose-option-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text-dark);
}

.expose-option-meta {
    font-size: 0.95rem;
    color: var(--text-light);
}

.expose-general-link {
    justify-content: center;
}

/* ─── Baubeschreibung ────────────────────────────────────── */

.baubeschreibung {
    background: #fff;
}

.baubeschreibung-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(200px, 1fr));
    gap: var(--grid-gap);
}

.baubeschreibung-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    padding: clamp(26px, 3.6vw, 36px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: grid;
    align-content: start;
    gap: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.baubeschreibung-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 1100px) {
    .baubeschreibung-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 600px) {
    .baubeschreibung-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Personal ─────────────────────────────────────────── */

.personal {
    background: #fff;
}

/* ─── Responsive ─────────────────────────────────────────── */

@media (max-width: 1100px) {
    .project-grid,
    .features-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }

    .contact-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --page-padding: clamp(20px, 5vw, 30px);
        --nav-padding: 18px;
        --nav-height: 70px;
        --section-padding: clamp(58px, 11vw, 88px);
        --section-padding-compact: clamp(44px, 9vw, 72px);
    }

    .navbar .container {
        padding: 0 18px;
    }

    .navbar-wrapper {
        padding: 12px 0;
    }

    .logo-img {
        height: 42px;
    }

    .nav-menu {
        gap: 15px;
    }

    .nav-menu a {
        font-size: 14px;
    }

    .project-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: clamp(20px, 4vw, 28px);
    }

    .grundriss-modal {
        padding: 14px;
        flex-wrap: wrap;
        align-content: center;
        gap: 10px;
    }

    .grundriss-modal-dialog {
        order: 1;
        width: 100%;
        height: auto;
        max-height: calc(92vh - 58px);
        overflow: auto;
        border-radius: 22px;
    }

    .grundriss-wohnung-nav {
        order: 2;
        width: calc(50% - 5px);
        max-width: 320px;
        height: 44px;
        border-radius: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 0.92rem;
        font-weight: 600;
    }

    .grundriss-wohnung-nav span {
        display: inline;
    }

    .grundriss-modal-layout {
        grid-template-columns: 1fr;
        height: auto;
    }

    .grundriss-modal-content {
        order: 1;
        min-height: auto;
        overflow: visible;
    }

    .grundriss-modal-visual {
        order: 2;
        min-height: 320px;
        border-right: none;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }

    .grundriss-modal-visual img {
        max-height: 46vh;
    }

    .grundriss-modal-stage {
        height: min(46vh, 460px);
    }

    .expose-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu.active {
        max-height: 500px;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu a {
        display: block;
        padding: 15px 20px;
    }

    .nav-menu a::after {
        display: none;
    }

    .hero {
        padding: clamp(96px, 20vw, 120px) var(--page-padding) clamp(70px, 18vw, 90px);
        min-height: clamp(460px, 70vh, 560px);
    }

    .hero-content {
        margin-top: -40px;
    }

    .hero-buttons {
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: none;
    }

    .hero-stat-divider {
        display: none;
    }

    .hero-stat {
        width: 50%;
        padding: 8px 0;
    }

    .hero-stats {
        padding: 14px 20px;
        gap: 8px 0;
    }

    .visual-clickable:nth-child(n+2) {
        display: none;
    }

    .grundrisse-grid {
        grid-template-columns: 1fr;
    }

    .grundriss-card {
        gap: 0;
    }

    .grundriss-card-top h3 {
        font-size: 1.35rem;
    }

    .grundriss-modal-summary {
        grid-template-columns: 1fr;
    }

    .grundriss-fact-item {
        flex-direction: column;
        gap: 4px;
    }

    .grundriss-fact-item strong {
        text-align: left;
    }

    .grundriss-fact-item-status strong {
        justify-content: flex-start;
    }

    .grundriss-modal-nav {
        width: 40px;
        height: 40px;
    }

    .grundriss-modal-nav.prev {
        left: 12px;
    }

    .grundriss-modal-nav.next {
        right: 12px;
    }

    .grundriss-zoom-controls {
        right: 14px;
        bottom: 14px;
        gap: 8px;
    }

    .grundriss-zoom-btn {
        width: 38px;
        height: 38px;
    }

    .expose-modal {
        padding: 14px;
    }

    .expose-modal-dialog {
        border-radius: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
