/* COLOR SCHEME */
:root {
    --primary-dark-gray: #2C2C2C;
    --secondary-light-gray: #F8F8F8;
    --accent-gray: #4A4A4A;
    --text-dark: #1A1A1A;
    --text-light: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--secondary-light-gray);
    line-height: 1.6;
    overflow-x: visible !important;
}

/* NAVIGATION */
.navbar {
    background-color: var(--primary-dark-gray);
    padding: 1.5rem 0;
    box-shadow: 0 2px 8px var(--shadow);
    width: 100%;
}

#nav-placeholder {
    min-height: 1px; /* Ensures the container exists for sticky to work */
    color: #B0B0B0;
}

.nav-placeholder > .navbar {
    position: sticky !important;
    top: 0;
    z-index: 1030;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 0.2rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 0.85rem;
    color: #B0B0B0;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    z-index: 1000;
    text-decoration: none !important;
}

.nav-links a {
    text-decoration: none;
    color: #B0B0B0;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    z-index: inherit;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-light);
    border-bottom-color: var(--text-light);
}

/* HERO SECTION - Browser-konsistente Darstellung (Firefox/Chrome) */
/* =========================
   HERO SECTION
========================= */

.hero-with-image {
    height: 450px;
    background-image: url('img/wabu.webp');
    background-size: cover;
    background-position: top center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-with-image .title-box {
  margin-top: 0 !important;
  padding-top: 2rem; /* Compensates for removed border space */
}

/* Hide the problematic border specifically on projects page */
.hero-with-image .border-top {
  display: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: heroOverlayIn 1.5s ease-out forwards;
}

.hero-content {
    background: rgba(44, 44, 44, 0.7);
    text-align: center;
    color: #FFFFFF;
    padding: 1rem 2rem;
    border-radius: 4px;
    transform: translateY(50px);
    z-index: 2;
}

/* Titelbox = nur so breit wie Inhalt */
.title-box {
    display: inline-block;
    padding: 1.5rem 2.5rem;
    position: relative;
}

/* Rahmen */
.title-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #FFFFFF;
    animation: topLineExpand 0.5s ease forwards;
}

.title-box::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 0;
    background: #FFFFFF;
    animation: leftLineDown 0.5s ease 0.5s forwards;
}

.border-right::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 2px;
    height: 0;
    background: #FFFFFF;
    animation: rightLineDown 0.5s ease 0.5s forwards;
}

.border-bottom-left::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #FFFFFF;
    animation: bottomLeftLine 0.5s ease 1s forwards;
}

.border-bottom-right::before {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: #FFFFFF;
    animation: bottomRightLine 0.5s ease 1s forwards;
}

/* Text */
.hero-content h2 {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: -1px;
    margin: 0;
    white-space: nowrap;
}

.hero-content p {
    font-size: 1.3rem;
    margin-top: 1rem;
    color: #E0E0E0;
}

/* Animationen */
@keyframes topLineExpand {
    from {
        width: 0;
        left: 50%;
    }

    to {
        width: 100%;
        left: 0;
    }
}

@keyframes leftLineDown {
    from {
        height: 0;
    }

    to {
        height: 100%;
    }
}

@keyframes rightLineDown {
    from {
        height: 0;
    }

    to {
        height: 100%;
    }
}

@keyframes bottomLeftLine {
    from {
        width: 0;
    }

    to {
        width: 50%;
    }
}

@keyframes bottomRightLine {
    from {
        width: 0;
    }

    to {
        width: 50%;
    }
}

@keyframes heroOverlayIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* WELCOME SECTION */
.welcome {
    background-color: var(--text-light);
    padding: 3rem;
    border-radius: 4px;
    box-shadow: 0 2px 8px var(--shadow);
    margin-bottom: 4rem;
    border-left: 4px solid var(--primary-dark-gray);
}

.welcome h2 {
    color: var(--text-dark);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.welcome p {
    color: #555555;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* CONTACT SECTION */
.contact-section {
    margin: 4rem 0;
}

.contact-section h2 {
    color: var(--text-dark);
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 500;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item {
    background-color: var(--text-light);
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 2px 8px var(--shadow);
    text-align: center;
    border-top: 3px solid var(--primary-dark-gray);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px var(--shadow);
}

.contact-item h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.contact-item p {
    color: #666666;
    line-height: 1.7;
}

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

.contact-item a:hover {
    color: var(--accent-gray);
    text-decoration: underline;
}

/* MAP SECTION */
.map-section {
    margin: 4rem 0;
}

.map-section h2 {
    color: var(--text-dark);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 500;
}

.map-container {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
}

.map-container iframe {
    display: block;
    width: 100%;
}

/* PROJECTS SECTION */
.projects-section {
    padding: 2rem 0;
}

.projects-section h2 {
    color: var(--text-dark);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 500;
}

.projects-intro {
    text-align: center;
    font-size: 1.05rem;
    margin-bottom: 3rem;
    color: #666666;
    line-height: 1.7;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr; /* repeat(auto-fit, minmax(300px, 1fr)); */
    gap: 2.5rem;
}

.project-card {
    padding: 1.5rem;
    margin: 1rem;
    background-color: var(--text-light);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 16px var(--shadow);
}

/*.project-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: var(--accent-gray);
} 
*/

.project-image {
  width: 100%;
  aspect-ratio: 16/9;      /* Movie-style 1.77:1 ratio */
  object-fit: cover;
  object-position: center;
  max-height: 350px;       /* Safety cap */
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    color: var(--text-dark);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.project-category {
    color: var(--accent-gray);
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-description {
    color: #666666;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* TEAM SECTION */
.team-section {
    padding: 2rem 0;
}

.team-section h2 {
    color: var(--text-dark);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 500;
}

.team-intro {
    text-align: center;
    font-size: 1.05rem;
    margin-bottom: 3rem;
    color: #666666;
    line-height: 1.7;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.team-member {
    background-color: var(--text-light);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 16px var(--shadow);
}

.member-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: var(--accent-gray);
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-content {
    padding: 2rem;
}

.member-content h3 {
    color: var(--text-dark);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.position {
    color: var(--accent-gray);
    font-weight: 500;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bio {
    color: #666666;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* IMPRINT SECTION */
.imprint-section {
    background-color: var(--text-light);
    padding: 3rem;
    border-radius: 4px;
    box-shadow: 0 2px 8px var(--shadow);
    border-left: 4px solid var(--primary-dark-gray);
}

.imprint-section h1 {
    color: var(--text-dark);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.imprint-section h2 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.imprint-section p {
    color: #555555;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.imprint-section a {
    color: var(--primary-dark-gray);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.imprint-section a:hover {
    color: var(--accent-gray);
    text-decoration: underline;
}

.imprint-back {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #E0E0E0;
    text-align: center;
}

/* FOOTER */
.footer {
    background-color: var(--primary-dark-gray);
    color: #B0B0B0;
    text-align: center;
    padding: 2.5rem;
    margin-top: 4rem;
}

.footer p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.footer-links {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #444;
}

.footer-links a {
    color: #B0B0B0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-light);
}

/* RESPONSIVE for containers, grids, hero section*/
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-links {
        gap: 1.5rem;
        justify-content: center;
    }

    .title-box h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .welcome,
    .contact-item,
    .imprint-section {
        padding: 2rem;
    }

    .welcome h2,
    .contact-section h2,
    .team-section h2,
    .projects-section h2,
    .map-section h2,
    .imprint-section h1 {
        font-size: 1.5rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .team-grid,
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* .member-image,
    .project-image {
        height: 250px;
    }
    */

    .container {
        padding: 2rem 1.5rem;
    }

    .map-container iframe {
        height: 300px;
    }

    .title-box {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        flex-direction: column;
        gap: 0.8rem;
    }

    .nav-links a {
        padding: 0.5rem 0;
    }

    .container {
        padding: 1.5rem 1rem;
    }

    .hero-with-image {
        height: 200px;
    }

    .title-box h2 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .welcome h2,
    .contact-section h2,
    .team-section h2,
    .projects-section h2,
    .map-section h2,
    .imprint-section h1 {
        font-size: 1.3rem;
    }

    .member-content,
    .project-content {
        padding: 1.5rem;
    }

    .map-container iframe {
        height: 250px;
    }

    .title-box {
        padding: 0.8rem 1.2rem;
    }

    .title-box h2 {
        margin: 0;
    }

    .imprint-section {
        padding: 1.5rem;
    }
}



/* PROJECT GALLERY */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-gallery img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background-color: var(--secondary-light-gray);
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s ease;
}

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

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 4px;
}

.lightbox::after {
    content: "✕";
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

.project-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* === Galerie mit Text === */
.gallery-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gallery-caption {
    font-size: 0.9rem;
    color: #555;
    text-align: center;
}

/* === Lightbox Caption === */
.lightbox-caption {
    position: absolute;
    bottom: 3rem;
    color: #E0E0E0;
    font-size: 1rem;
    max-width: 80%;
    text-align: center;
}

/* === Lightbox Pfeile === */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 4rem;
    color: #FFFFFF;
    cursor: pointer;
    user-select: none;
    padding: 0 1rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

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

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

/* COMMENTED NOT OUT */

@keyframes heroOverlayIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/*--------------------------------*/
/* MOBILE NAVIGATION (Hamburger)  */
/*--------------------------------*/
@media (max-width: 768px) {

  /* Hamburger icon */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 21px;
    cursor: pointer;
    z-index: 2500;
  }

  .hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* Hamburger turns into X when active */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(9px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-9px);
  }

  /* Navigation menu - HIDDEN BY DEFAULT */
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    background: var(--primary-dark-gray);
    flex-direction: column;
    padding: 1rem;
    display: none;                  /* CRITICAL: hidden */
    gap: 1rem;
    z-index: 2000;
  }

  /* FORCE SHOW WHEN OPEN - BULLETPROOF */
  #nav-links.open,
  .nav-links.open {
    display: flex !important;
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    width: 220px !important;
    background: var(--primary-dark-gray) !important;
    flex-direction: column !important;
    padding: 1rem !important;
    gap: 1rem !important;
    z-index: 2500 !important;       /* higher than everything */
  }

  /* Menu link styles */
  .nav-links a {
    color: #ffffff;
    padding: 0.8rem 0;
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: var(--accent-gray);
  }

  .nav-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* PROJECT TAB SECTION */
.project-nav-section {
  background: #f8f9fa;
  padding: 3rem 0 2rem;
  margin-top: -1px;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.project-tabs .nav-tabs {
  border-bottom: 2px solid var(--primary-dark-gray, #333);
  margin-bottom: 0;
}

.project-tabs .nav-link {
  color: #666;
  font-weight: 500;
  border: none;
  border-radius: 0;
  border-bottom: 3px solid transparent;
  padding: 1rem 1.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.project-tabs .nav-link:hover {
  color: var(--primary-dark-gray, #333) !important;
  background: transparent;
  border-bottom-color: var(--primary-dark-gray, #333) !important;
}

@media (max-width: 768px) {
  .project-tabs .nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }
}

/* FIXED NAVBAR - Overrides ALL Bootstrap/SCSS */
.navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1030 !important;
  width: 100vw !important;
}

/* Reserve space so content doesn't jump */
body {
  padding-top: 90px !important; /* Adjust to your navbar height */
}

/* Fix nav-placeholder */
#nav-placeholder {
  height: 90px !important; /* Match padding-top above */
  overflow: visible !important;
}

/* Fix anchor links under fixed navbar */
:target {
  scroll-margin-top: 90px; /* Match your navbar height */
}

/* Also works for manual scrollTo() */
html {
  scroll-padding-top: 90px;
}

/* Consistent navbar padding across ALL pages */
.navbar {
  padding: 1.5rem 0 !important; /* Your original value */
}

.nav-container {
  padding: 0 2rem !important;   /* Side padding for logo/nav */
}

/* Reset conflicting page-specific padding */
body,
main,
.hero-with-image,
.project-nav-section {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* ALL links: No special color, keep underline */
a:not(.nav-links):not(.nav-links a) {
  color: inherit !important;  /* Same color as surrounding text */
  text-decoration: underline; /* Force underline */
}

a:not(.nav.links):not(.nav-links a):hover {
  color: inherit !important;  /* No color change on hover */
  text-decoration: underline;
  opacity: 0.8;              /* Subtle hover feedback */
  z-index: 500;
}

/* Cookie Banner - inn-repair.de Colors */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #656565 0%, #1e1e1e 100%);
  color: white;
  z-index: 9999;
  padding: 1.5rem 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.cookie-text {
  margin: 1rem;
  font-size: 1rem;
  line-height: 1.5;
}

.cookie-link {
  color: #4e4e4e !important;
  text-decoration: underline;
}

.cookie-link:hover {
  color: #868686 !important;
}

.cookie-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .cookie-buttons {
    flex-direction: row;
    justify-content: flex-end;
    gap: 0.75rem;
  }
}

.cookie-btn {
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border: 2px solid;
  white-space: nowrap;
}

.cookie-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

#acceptAll {
  background: #4e4e4e;
  border-color: #868686;
  color: white;
}

#acceptAll:hover {
  background: #4e4e4e4e;
  border-color: #868686;
}

#acceptNecessary {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: white;
}

#acceptNecessary:hover {
  background: rgba(255,255,255,0.1);
}

#rejectAll {
  background: transparent;
  border-color: white;
  color: white;
}

#rejectAll:hover {
  background: rgba(255,255,255,0.1);
}

/* Hide banner when accepted */
.cookie-banner.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
