/* 
   =================================================
   Custom CSS für Schichtsystem 3D-Druck
   ================================================= 
*/

/* -----------------------------------------------
   1. Burger Menu Styling
   ----------------------------------------------- */

/* Burger Button Container */
.custom-burger-btn {
    position: fixed;
    top: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.custom-burger-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Burger Icon Lines */
.burger-icon {
    width: 24px;
    height: 18px;
    position: relative;
}

.burger-line {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #ffffff; /* Weiß passend zum dunklen Startscreen */
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

/* Für Seiten mit hellem Hintergrund (z.B. Impressum) steuern wir die Farbe dynamisch */
.theme-light .burger-line {
    background: #000000;
}
.theme-light .custom-burger-btn {
    background-color: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}
.theme-light .custom-burger-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.burger-line:nth-child(1) { top: 0px; }
.burger-line:nth-child(2) { top: 8px; }
.burger-line:nth-child(3) { top: 16px; }

/* Burger Animation (to X) */
.custom-burger-btn.open .burger-line {
    background: #ffffff !important; /* Im Overlay immer weiß */
}

.custom-burger-btn.open .burger-line:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.custom-burger-btn.open .burger-line:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.custom-burger-btn.open .burger-line:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

/* Fullscreen Navigation Overlay */
.custom-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    opacity: 0;
    visibility: hidden;
    background: rgba(15, 15, 15, 0.95); /* Dunkles, edles Overlay */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 9998;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.custom-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Navigation Links */
.custom-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.custom-nav-item {
    margin: 25px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s ease;
}

.custom-nav-overlay.active .custom-nav-item {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Delay for Menu Items */
.custom-nav-overlay.active .custom-nav-item:nth-child(1) { transition-delay: 0.05s; }
.custom-nav-overlay.active .custom-nav-item:nth-child(2) { transition-delay: 0.1s; }
.custom-nav-overlay.active .custom-nav-item:nth-child(3) { transition-delay: 0.15s; }
.custom-nav-overlay.active .custom-nav-item:nth-child(4) { transition-delay: 0.2s; }
.custom-nav-overlay.active .custom-nav-item:nth-child(5) { transition-delay: 0.25s; }
.custom-nav-overlay.active .custom-nav-item:nth-child(6) { transition-delay: 0.3s; }
.custom-nav-overlay.active .custom-nav-item:nth-child(7) { transition-delay: 0.35s; }
.custom-nav-overlay.active .custom-nav-item:nth-child(8) { transition-delay: 0.4s; }

.custom-nav-link {
    font-family: 'Inter Tight', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    position: relative;
    display: inline-block;
    padding: 5px 15px;
    transition: color 0.3s ease;
}

.custom-nav-link:hover {
    color: #ff3c3c; /* Roter Akzent passend zum btn-danger Theme */
    text-decoration: none;
}

/* Link Underline Animation */
.custom-nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    background-color: #ff3c3c;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.custom-nav-link:hover::after {
    width: 100%;
}


/* -----------------------------------------------
   2. Landingpage Animations & Dynamics
   ----------------------------------------------- */

/* Fade-In Up Animation for Hero Section */
.animate-fade-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUpAnim 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* Delays for cascading effect */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeUpAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dynamic Hover Effects - Information Cards (Ich biete Dir) */
.dynamic-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 12px;
    overflow: hidden;
}

.dynamic-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Subtle image scale on card hover */
.dynamic-card .image-wrapper img {
    transition: transform 0.6s ease;
}

.dynamic-card:hover .image-wrapper img {
    transform: scale(1.05);
}

/* Modern Button Hover Effect Enhancement */
.btn {
    transition: all 0.3s ease !important;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Specific glowing effect for the main CTA button */
.btn-danger.glowing-btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-danger.glowing-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.btn-danger.glowing-btn:hover::before {
    left: 100%;
}


/* --- Floating Back Button --- */
.floating-back-btn {
  position: fixed;
  top: 30px;
  right: 30px;
  left: auto;
  z-index: 9999;
  background-color: rgba(255, 255, 255, 0.9);
  color: #000;
  padding: 10px 18px;
  border-radius: 30px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.floating-back-btn:hover {
  background-color: #000;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.floating-back-btn .back-arrow {
  margin-right: 8px;
  font-size: 18px;
  line-height: 1;
  transition: transform 0.3s ease;
}

.floating-back-btn:hover .back-arrow {
  transform: translateX(-4px);
}

@media (max-width: 768px) {
  .floating-back-btn {
    top: auto;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 18px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  }
}

/* --- Portfolio Lightbox Gallery --- */
.portfolio-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  touch-action: none; /* Disable browser swipe gestures to allow custom JS handling */
  display: none; /* Hidden by default */
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 85%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-title {
  color: #fff;
  margin-top: 20px;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  text-align: center;
}

/* Lightbox Buttons */
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10001;
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.lightbox-close {
  top: -60px;
  right: 0;
}

.lightbox-prev, .lightbox-next {
  position: fixed;
  top: auto;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
}

.lightbox-prev {
  transform: translateX(-65px); /* Move left of center */
}

.lightbox-next {
  transform: translateX(15px); /* Move right of center */
}

@media (max-width: 768px) {
  .lightbox-prev, .lightbox-next {
    bottom: 15px;
  }
  .lightbox-prev { transform: translateX(-60px); }
  .lightbox-next { transform: translateX(10px); }
  .lightbox-close { top: 15px; right: 15px; position: fixed; }
}

/* Pointer for portfolio items */
.gallery3 .item-wrapper {
  cursor: pointer;
}

/* Standardize Gallery Thumbnails */
.gallery3 .item-img, .features16 .img-box {
  height: 250px;
  overflow: hidden;
  border-radius: 8px;
  background-color: #edefeb; /* Matched to site background */
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery3 .item-img img, .features16 .img-box img {
  width: 100%;
  height: 100% !important;
  object-fit: contain; /* Shows entire image without cropping */
  transition: transform 0.5s ease;
  padding: 5px; /* Subtle padding to avoid touching edges */
}

.gallery3 .item-wrapper:hover .item-img img, .features16 .item-wrapper:hover .img-box img {
  transform: scale(1.05);
}


@media (max-width: 768px) {
  .gallery3 .item-img, .features16 .img-box {
    height: 200px;
  }
}

/* Spam-Schutz Styling */
.hp-field {
    display: none !important;
    visibility: hidden !important;
    position: absolute;
    left: -5000px;
}

.captcha-container {
    background-color: rgba(0, 0, 0, 0.03);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.captcha-question {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}





