*,
*::before,
*::after {
box-sizing: border-box;
}

body {
    margin: 0;
    background: radial-gradient(circle at center, #101820, #05080d);
    font-family: 'Segoe UI', Arial, sans-serif;
    overflow-x: hidden;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: white;
    transition: 0.3s;
}


.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 20px;
    background: rgba(5, 8, 13, 0.85);
    backdrop-filter: blur(8px);
    z-index: 5;
    box-sizing: border-box;
}

header nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    overflow: visible;
}
.header .logo {
    height: clamp(1rem, 5vw, 7rem); /* Höhe anpassen */
    width: auto;  /* Breite passt sich automatisch an */
    display: block;
}

/* Buttons */
header nav a {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #0a1f44;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: 1px solid #1f4fff;
    transition: all 0.3s ease;
    font-size: clamp(1rem, 1vw, 5rem);
    font-weight: bold;
}

/* Hover */
header nav a:hover {
    background-color: #8b0000;
    border: 1px solid #ff1a1a;
    transform: translateY(-3px);
}


/* Dropdown Container */
.dropdown {
  position: relative;
  display: inline-block;

}

/* Dropdown Inhalt (untergeordnete Links) */
.dropdown-content {
  display: none; /* unsichtbar standardmäßig */
  position: absolute;
  top: 100%; /* direkt unter dem Hauptlink */
  left: 0;
  background-color: #0a1f44;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  border-radius: 8px;
  z-index: 10;
  flex-direction: column;
}

/* Dropdown Links */
.dropdown-content a {
  display: block;
  padding: 1rem 1.5rem;
  color: white;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: background 0.3s;
  font-size: clamp(1rem, 1vw, 5rem);
}

/* Hover auf Dropdown Links */
.dropdown-content a:hover {
    background-color: #8b0000;
    border: 1px solid #ff1a1a;
}

/* Zeigen, wenn hover auf Container */
.dropdown:hover .dropdown-content {
  display: flex; /* sichtbar */
  flex-direction: column;
}

/* Optional: kleiner Pfeil beim Hauptlink */
.dropdown > a {
  display: inline-block;
  position: relative;
}

.section-divider {
  width: 60%;
  height: 1px;
  margin: 80px auto;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0, 140, 255, 0.7),
    transparent
  );
  box-shadow: 0 0 12px rgba(0, 140, 255, 0.5);
}

/*==============================================================*/

.main-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 6%;
  color: #ffffff;
  text-align: center;
  padding-top: 120px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.just-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 30px;
  border-radius: 14px;
  backdrop-filter: blur(6px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.just-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0, 140, 255, 0.15);
}

.just-card h3 {
  margin-bottom: 15px;
  color: #4da3ff;
  font-size: clamp(1rem, 1.5vw, 5rem);
}

.just-card img {
  width: 100%;
  margin-top: 20px;
  border-radius: 10px;
  object-fit: cover;
  height: 220px;
}

h1 {
  text-align: center;
  font-size: clamp(1rem, 4vw, 5rem);
  font-weight: bold;
  margin-bottom: 20px;
  transform: translateY(20px);
  animation-delay: 0.3s;
}

p.intro {
  text-align: center;
  font-size: 1.5rem;
  transform: translateY(20px);
  animation-delay: 0.5s;
  opacity: 0.85;
  margin-bottom: 50px;
}

.section {
  margin-bottom: 50px;
  animation-delay: 0.7s;
  position: relative;
}

.section h2 {
  font-size: clamp(1rem, 2vw, 5rem);
  margin-bottom: 15px;
}

.section p {
  font-size: clamp(1rem, 1vw, 5rem);
  line-height: 1.8;
  opacity: 0.85;
}

.normal-img {
  display: block;
  width: 100%;
  max-width: 900px;
  height: 350px;
  object-fit: cover;
  margin: 40px auto 60px auto;
  border-radius: 14px;
  filter: brightness(0.85);
}
.side-layout {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 30px;
}

.side-layout p {
  flex: 1;
  text-align: left;
  font-size: clamp(1rem, 1.2vw, 5rem);
  line-height: 1.8;
  opacity: 0.85;
}

.splice-img {
  flex: 1;
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}

/*================================================================================*/

.site-footer {
  background-color: #0b0f1a; /* dunkler Hintergrund */
  color: #ffffff;            /* weiße Schrift */
  padding: 30px 20px;
  text-align: center;
  font-family: Arial, sans-serif;

  /* Startzustand für Einflug */
  opacity: 0;
  transform: translateY(100px);

  /* Einflug Animation */
  animation: footerSlideIn 1s ease-out forwards;
}

.site-footer .footer-content {
  max-width: 1200px;
  margin: auto;
}

.site-footer .footer-logo {
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-weight: bold;
}

.site-footer .footer-links a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s;
}

.site-footer .footer-links a:hover {
  color: #f03c3c; /* optional: roter Hover-Effekt */
}

.site-footer .footer-copy {
  margin-top: 15px;
  font-size: 0.9rem;
  color: #bbbbbb;
}

/* Animation von unten nach oben */
@keyframes footerSlideIn {
  from {
    opacity: 0;
    transform: translateY(100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}







@media (max-width: 900px){
.header .logo {
    height: clamp(1rem, 18vw, 7rem);
    width: auto;  
    display: block;
}


.hamburger{
display:flex;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}


header nav{
position: absolute;
top: 100%;
left: 0;
width: 100%;
background: rgba(5,8,13,0.95);
flex-direction: column;
align-items: stretch;

max-height: 0;
overflow: hidden;
transition: max-height 0.4s ease;
}

header nav a{
width:100%;
text-align:center;
}

header nav.open{
max-height: 600px;
}

.dropdown-content {
  display: none;
  position: static;
  flex-direction: column;
}

.dropdown.open .dropdown-content {
  display: flex;
}

/*==============================================================*/
  .grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
 .side-layout {
    flex-direction: column;
    gap: 20px;
  }

  .side-layout p {
    text-align: center;
  }
  .normal-img {
    height: auto;
  }

  .just-card img {
    height: auto;
  }

h1{
  font-size: clamp(1rem, 10vw, 6rem);
  }

.section h2 {
  font-size: clamp(1rem, 8vw, 5rem);
}

.just-card h3 {
  font-size: clamp(1rem, 6vw, 5rem);
}
.preview-img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.preview-img:hover {
  transform: scale(1.05);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}


}