/* 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 (match KVuK) */
.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 a {
    text-decoration: none;
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
}

.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/virtualisierungen/VRayCam_1.jpg');
    background-size: cover;
    background-position: center center;
    color: #fff;
    padding: clamp(120px, 18vw, 170px) var(--page-padding) clamp(90px, 14vw, 140px);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(480px, 70vh, 720px);
}

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

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

.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(255, 255, 255, 0.2);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

/* Sections */
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;
}

/* 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);
}

.fact-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.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-card {
    display: grid;
    align-content: start;
    gap: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.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-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

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

/* Visuals */
.visuals {
    background: #f9f9f9;
}

.visuals-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--grid-gap-lg);
    align-items: stretch;
}

.visuals-text {
    display: grid;
    align-content: start;
    gap: 16px;
    height: 100%;
}

.visuals-text h2 {
    margin: 0;
}

.visuals-text p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.7;
}

.visuals-points {
    display: grid;
    gap: clamp(16px, 3vw, 24px);
    margin-top: 4px;
}

.visuals-points h4 {
    font-size: 18px;
    margin-bottom: 6px;
}

.visuals-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(16px, 3vw, 22px);
}

.visuals-gallery.single {
    grid-template-columns: 1fr;
    width: 100%;
    justify-self: stretch;
    align-self: stretch;
    height: 100%;
    display: flex;
}

.visual-tile {
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    min-height: clamp(190px, 24vw, 230px);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.visual-tile.large {
    grid-column: span 2;
    min-height: clamp(230px, 30vw, 300px);
}

.visuals-gallery.single .visual-tile {
    min-height: unset;
    height: 100%;
}

.visuals-gallery.single a {
    flex: 1 1 auto;
    display: block;
    height: 100%;
}

.lightbox-trigger:hover .visual-tile {
    transform: translateY(-8px);
}

/* Features */
.features {
    background: #fff;
    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::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-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-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;
}

/* 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 {
    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 i {
    color: var(--primary-color);
    font-size: 42px;
}

.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-logo {
    height: 52px;
    margin-bottom: 14px;
}

.footer-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.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-contact {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.72);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

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

.footer-links {
    list-style: none;
    display: grid;
    gap: 10px;
}

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

.footer-links 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;
}

/* 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;
}

/* Responsive */
@media (max-width: 900px) {
}

@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);
    }

    .visuals-layout {
        grid-template-columns: 1fr;
        gap: clamp(24px, 4vw, 34px);
    }

    .visuals-gallery {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
        gap: 16px;
    }

    .visuals-gallery.single {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .visuals-gallery.single .visual-tile {
        min-height: clamp(220px, 45vw, 300px);
        height: auto;
    }
}

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

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

    .nav-menu {
        position: absolute;
        top: 70px;
        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-buttons {
        width: 100%;
    }

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

    .visuals-gallery {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .visuals-gallery.single {
        width: 100%;
    }

    .visuals-gallery.single .visual-tile {
        min-height: clamp(220px, 55vw, 320px);
        height: auto;
    }

    .visual-tile.large {
        grid-column: span 1;
    }

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