/* ===========================
   GLOBAL
=========================== */

html {
    height: 100%;
    background: #f8f9fa;
    color: #222;
    transition: background-color .35s ease, color .35s ease;
}

body {
    height: 100%;
    background: inherit;
    display: flex;
    flex-direction: column;
    font-family: "Inter", sans-serif;
    transition: background-color .35s ease, color .35s ease;
}

#main {
    flex: 1 0 auto;
    padding-bottom: 120px;
}

/* NDG Gold */
.ndg-gold {
    color: #f0b849 !important;
}

/* Reserve-Seite immer dunkel */
.reserve-page {
    background: #0f0f0f !important;
    min-height: 100vh;
    padding-bottom: 60px;
}

/* ===========================
   NAVIGATION & LOGO
=========================== */

.navbar {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: background-color .35s ease, border-color .35s ease;
}

.ndg-navbar-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    image-rendering: crisp-edges;
}

@media (max-width: 576px) {
    .ndg-navbar-logo {
        height: 38px;
    }
}

.nav-link {
    font-weight: 500;
    color: #333 !important;
    transition: color .2s ease;
}

.nav-link:hover {
    color: #f0b849 !important;
}

.dropdown-menu {
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.08);
}

.dropdown-menu .dropdown-item:hover {
    background: #f0b849;
    color: #fff !important;
}

/* ===========================
   HERO SECTION
=========================== */

.hero {
    height: 80vh;
    overflow: hidden;
    position: relative;
}

.hero video {
    width: 100%;
    height: 80vh;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    background: linear-gradient(
        rgba(0,0,0,0.55),
        rgba(0,0,0,0.55)
    );
}

.hero-overlay h1,
.hero-overlay p {
    text-shadow: 0 0 12px rgba(0,0,0,0.9);
}

.hero-overlay .content-box {
    background: rgba(0,0,0,0.45);
    padding: 20px 40px;
    border-radius: 8px;
}

/* ===========================
   PROJECT / REFERENCE CARDS
=========================== */

.project-card,
.ref-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    transition: all .25s ease;
}

.project-card:hover,
.ref-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 22px rgba(0,0,0,0.12);
}

.project-img,
.ref-img {
    height: 180px;
    width: 100%;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* DARK MODE – CARD FIX */
[data-theme="dark"] .project-card,
[data-theme="dark"] .ref-card {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #f1f1f1 !important;
}

[data-theme="dark"] .project-card h3,
[data-theme="dark"] .project-card p,
[data-theme="dark"] .ref-card h3,
[data-theme="dark"] .ref-card p {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .project-card a,
[data-theme="dark"] .ref-card a {
    color: #f0b849 !important;
}

/* ===========================
   FORMS & INPUTS
=========================== */

form .form-control {
    border-radius: 8px;
    transition: background-color .35s ease, color .35s ease, border-color .35s ease;
}

form .form-control:focus {
    border-color: #f0b849 !important;
    box-shadow: 0 0 6px rgba(240,184,73,0.4);
}

.btn-ndg {
    background: #f0b849;
    color: #000;
    border-radius: 8px;
    border: none;
    padding: 10px 20px;
    font-weight: 600;
}

.btn-ndg:hover {
    background: #dca63f;
    color: #000;
}

/* CONTACT PAGE – DARK MODE FIX */
[data-theme="dark"] .contact-box {
    background: #111;
    border: 1px solid #333;
}

[data-theme="dark"] .contact-input {
    background: #1a1a1a;
    color: #f1f1f1;
    border: 1px solid #444;
}

[data-theme="dark"] .contact-box label,
[data-theme="dark"] .contact-box .form-label,
[data-theme="dark"] .contact-box .form-check-label,
[data-theme="dark"] .contact-box p,
[data-theme="dark"] .contact-box small {
    color: #f1f1f1 !important;
}

[data-theme="dark"] .contact-box select option {
    background: #1a1a1a;
    color: #f1f1f1;
}

/* ===========================
   FOOTER (IMMER DUNKEL)
=========================== */

.site-footer {
    flex-shrink: 0;
    background: #0f0f0f !important;
    color: #e6e6e6 !important;
    border-top: 1px solid #333 !important;
    padding: 40px 0;
    position: relative;
}

.site-footer a {
    color: #ccc !important;
}

.site-footer a:hover {
    color: #f0b849 !important;
}

/* FOOTER GLOW */
.site-footer::before {
    content: "";
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        rgba(240,184,73,0) 0%,
        rgba(240,184,73,0.8) 50%,
        rgba(240,184,73,0) 100%
    );
    box-shadow: 0 0 18px rgba(240,184,73,0.6);
}

/* FOOTER SOCIAL ICONS */
.footer-social a {
    font-size: 1.5rem;
    margin-right: 14px;
    color: #ccc !important;
    transition: color .25s ease, transform .25s ease;
}

.footer-social a:hover {
    color: #f0b849 !important;
    transform: translateY(-3px);
}

/* FOOTER TITLES */
.footer-title {
    font-weight: 600;
    margin-bottom: 12px;
    color: #f0b849;
}

/* FOOTER COLUMN SPACING */
.footer-column {
    margin-bottom: 30px;
}
