*,
*::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;
}

.main-content {
    padding-top: 3rem; /* Abstand unter Header */
}

.content-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem;
}

.contact-hero {
  text-align: center;
  margin: 80px 0 40px 0;
  color: #ffffff;
}

.contact-hero h1{
    font-size: 5rem;
}

.contact-hero p{
    font-size: 1.5rem;
}


.contact-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto 60px auto;
  color: #ffffff;
}

.contact-card {
  background: #08111d;
  border: 2px solid #1a4fff;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  border-radius: 15px;
  transition: 0.3s;
}

.contact-card:hover {
  border-color: #ff1a1a;
  box-shadow:
    0 0 20px rgba(255, 26, 26, 0.7),
    0 0 60px rgba(255, 26, 26, 0.35),
    0 15px 35px rgba(0,0,0,0.6);
  transform: translateY(-5px);
}

.contact-card.active {
  border: 2px solid red;
  box-shadow: 0 0 25px red;
}

.contact-form-section {
  max-width: 700px;
  margin: auto;
  color: #ffffff;
  text-align: center;
  font-size: 1.5rem;
}

.form-group {
  margin-bottom: 20px;
}

input, textarea {
  font-size: 1.5rem;
  width: 100%;
  padding: 12px;
  background: #0c1b2b;
  border: 1px solid #1a4fff;
  color: white;
  border-radius: 8px;
}




button {
  color: #ffffff;
  background: #08111d;
  border: 2px solid #1a4fff;
  padding: 1rem;
  text-align: center;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 15px;
  transition: 0.3s;
}

button:hover {
  border-color: #ff1a1a;
  box-shadow:
    0 0 20px rgba(255, 26, 26, 0.7),
    0 0 60px rgba(255, 26, 26, 0.35),
    0 15px 35px rgba(0,0,0,0.6);
  transform: translateY(-5px);

}

#betreffDisplay{
  font-size: 1.5rem;
  font-weight: bold;
}

.contact-card {
  cursor: pointer;
  transition: 0.3s;
}

.contact-card.active {
  border-color: #ff1a1a;
  box-shadow:
    0 0 20px rgba(255, 26, 26, 0.7),
    0 0 60px rgba(255, 26, 26, 0.35),
    0 15px 35px rgba(0,0,0,0.6);
  transform: translateY(-5px);
}
.error-message {
  color: red;
  font-size: 0.9rem;
  margin-top: 4px;
  display: none; /* standardmäßig versteckt */
}
.error-message.visible {
  display: block;
}

/* Erfolgsmeldung oben */
.success-message {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  padding: 12px 15px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 1rem;
  text-align: center;

  /* Layout immer behalten, nur unsichtbar machen */
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.5s ease-in-out, max-height 0.5s ease-in-out;
}
.success-message.visible {
  opacity: 1;
  max-height: 200px; /* genug für Text */
}

.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;
}
  .content-inner {
    padding: 0 1rem;
  }

  /* HERO */
  .contact-hero {
    text-align: center;
    margin-top: 100px;
  }

  .contact-hero h1 {
    font-size: clamp(2rem, 10vw, 3rem);
    width: 100%;
  }

  .contact-hero p {
    font-size: 1rem;
    opacity: 0.8;
  }

  /* CARDS */
  .contact-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
  }

  .contact-card {
    padding: 1.2rem;
    text-align: center;
    font-size: 1.1rem;
    border-radius: 10px;
  }

  /* FORM */
  .contact-form-section {
    margin-top: 2rem;
  }

  form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .form-group {
    display: flex;
    flex-direction: column;
  }

  input,
  textarea {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
  }

  button {
    padding: 1rem;
    font-size: 1.1rem;
    width: 100%;
  }

}

