
@import url('https://fonts.googleapis.com/css2?family=Homemade+Apple&display=swap');

body {
  margin: 0;
  font-family: sans-serif;
  background: url('images/background.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #333;
}

.hero {
  background-color: rgba(30, 60, 100, 0.7);
  color: white;
  padding: 100px 20px 60px;
  position: relative;
  text-align: center;
}

.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: rgba(30, 60, 100, 0.6);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.logo-container img.logo {
  max-height: 50px;
}

.main-nav a {
  color: white;
  text-decoration: none;
  margin: 0 12px;
  font-size: 0.95em;
}

.main-nav a:hover {
  text-decoration: underline;
}

.language-switch {
  margin-left: 20px;
  font-size: 0.85em;
}

.section {
  padding: 60px 20px;
  background-color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

footer {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 20px;
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 25px;
  background: rgba(30, 60, 100, 0.8);
  color: #fff;
  font-size: 20px;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 50%;
  display: none;
  z-index: 999;
}

.back-to-top:hover {
  background: rgba(30, 60, 100, 1);
}


.hero-only {
  background-color: rgba(30, 60, 100, 0.85);
  background-image: none;
  color: white;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.language-switch-fixed {
  position: fixed;
  top: 20px;
  right: 30px;
  z-index: 999;
  font-size: 0.85em;
}

.language-switch-fixed a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 6px;
}

.language-switch-fixed a:hover {
  text-decoration: underline;
}


.hero-fullscreen {
  background: linear-gradient(rgba(30, 60, 100, 0.75), rgba(30, 60, 100, 0.75)),
              url('images/background.jpg') no-repeat center center fixed;
  background-size: cover;
  color: white;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.language-switch-fixed {
  position: fixed;
  top: 20px;
  right: 30px;
  z-index: 999;
  font-size: 0.85em;
}

.language-switch-fixed a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 6px;
}

.language-switch-fixed a:hover {
  text-decoration: underline;
}


.hero {
  background: linear-gradient(rgba(30, 60, 100, 0.75), rgba(30, 60, 100, 0.75)),
              url('images/background.jpg') no-repeat center center fixed;
  background-size: cover;
  color: white;
  padding: 100px 20px 60px;
  position: relative;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-text {
  margin-top: 80px;
}



.hero-fullscreen {
  background: linear-gradient(rgba(30, 60, 100, 0.75), rgba(30, 60, 100, 0.75)),
              url('images/background.jpg') no-repeat center center fixed;
  background-size: cover;
  color: white;
  padding: 100px 20px 60px;
  position: relative;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: rgba(30, 60, 100, 0.6);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.main-nav.left a {
  margin-right: 15px;
  color: white;
  text-decoration: none;
  font-size: 0.95em;
}

.logo-container.right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-container img.logo {
  max-height: 50px;
}

.language-switch a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 6px;
  font-size: 0.85em;
}

.language-switch a:hover {
  text-decoration: underline;
}


.language-switch {
  position: fixed;
  top: 70px;
  right: 30px;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.25);
  padding: 5px 10px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

.language-switch a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 6px;
  font-size: 0.85em;
}

.language-switch a:hover {
  text-decoration: underline;
}


.logo-container.right {
  margin-right: 10px;
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 25px;
  background: rgba(30, 60, 100, 0.8);
  color: #fff;
  font-size: 20px;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 50%;
  display: none;
  z-index: 999;
}

.back-to-top:hover {
  background: rgba(30, 60, 100, 1);
}


.logo-switch-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-right: 20px;
}

.logo-switch-wrapper .logo {
  margin-bottom: 6px;
}


.logo-switch-wrapper .logo {
  max-height: 50px;
  width: auto;
  height: auto;
  margin-bottom: 6px;
}


.hero-fullscreen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 60px;
  text-align: center;
}

.hero-text {
  margin-top: 0;
}

.header-bar {
  padding: 25px 30px;
}


.section {
  scroll-margin-top: 80px;
}


.logo-switch-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 10px;
}

.language-switch {
  position: static;
  margin-top: 4px;
}


.hero-fullscreen {
  padding-top: 100px;
  padding-bottom: 20px;
}

.hero-text {
  margin-top: 0;
  margin-bottom: 20px;
}


.hero-fullscreen {
  padding-top: 60px;
  padding-bottom: 10px;
}

.logo-switch-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 10px;
}

.logo-switch-wrapper .logo {
  max-height: 50px;
  margin-bottom: 6px;
}

.language-switch {
  position: static;
  margin-top: 2px;
  text-align: center;
}


@keyframes textGlow {
  0%   { text-shadow: 0 0 5px rgba(255,255,255,0.2); }
  50%  { text-shadow: 0 0 20px rgba(255,255,255,0.9); }
  100% { text-shadow: 0 0 5px rgba(255,255,255,0.2); }
}

.hero-text h1 {
  animation: textGlow 2.5s ease-in-out 1;
}


@keyframes textGlowStrong {
  0%   { text-shadow: 0 0 10px rgba(255,255,255,0.4); }
  50%  { text-shadow: 0 0 60px rgba(255,255,255,1), 0 0 30px rgba(173,216,230,0.8); }
  100% { text-shadow: 0 0 10px rgba(255,255,255,0.4); }
}

.hero-text h1 {
  animation: textGlowStrong 3s ease-in-out 1;
}


/* Zentrierung verbessern */
.logo-switch-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 0;
}

/* Responsives Verhalten für mobile Endgeräte */
@media (max-width: 768px) {
  .header-bar {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .main-nav.left {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .main-nav.left a {
    margin: 5px 8px;
    font-size: 1em;
  }

  .logo-container img.logo {
    max-height: 40px;
  }

  .language-switch {
    font-size: 0.9em;
    margin-top: 4px;
  }

  .hero-text h1 {
    font-size: 1.8em;
  }

  .hero-text p {
    font-size: 1em;
  }

  .section {
    padding: 40px 15px;
  }
}


.burger {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
  padding: 10px;
}

@media (max-width: 768px) {
  .burger {
    display: block;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1001;
  }

  .main-nav.left {
    display: none;
    flex-direction: column;
    background-color: rgba(30, 60, 100, 0.95);
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 10px 0;
  }

  .main-nav.left.open {
    display: flex;
  }

  .main-nav.left a {
    margin: 10px 0;
    font-size: 1.2em;
  }
}


.language-switch {
  background: none;
  backdrop-filter: none;
  padding: 0;
}


.language-switch a {
  transition: color 0.3s ease;
}

.language-switch a:hover {
  color: #aad4ff;
  text-decoration: underline;
}


nav a, .language-switch a, .back-to-top {
  transition: all 0.3s ease;
}

nav a:hover,
.language-switch a:hover,
.back-to-top:hover {
  color: #aad4ff;
  text-decoration: underline;
}

/* === Minimaler iOS/Android-Fix, nicht-destruktiv === */
@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
  /* Body-Hintergrund nicht mehr 'fixed' auf Mobil */
  body { background-attachment: scroll; background-position: center top; }

  /* Hero-Hintergründe ohne 'fixed' neu setzen (ansonsten ignoriert iOS das Bild) */
  .hero,
  .hero-fullscreen {
    background: linear-gradient(rgba(30,60,100,0.75), rgba(30,60,100,0.75)),
                url('images/background.jpg') no-repeat center center;
    background-size: cover;
    /* kein background-attachment: fixed; */
  }
}

/* === Mobile-Fix: Burger kleiner, Menü unter Logo/Sprachwahl, kein Überlappen === */
@media (max-width: 768px) {
  .header-bar { 
    position: relative;
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 8px; 
    padding: 12px 16px;
  }

  .burger { 
    order: 1; 
    font-size: 22px; 
    padding: 6px 8px; 
    align-self: flex-start;
    position: relative; 
    left: 0; top: 0; 
    z-index: 1001; 
  }

  /* Logo + Sprachumschalter mittig */
  .logo-switch-wrapper, .logo-switch {
    order: 2;
    align-items: center;
  }

  /* Navigation klappt UNTER dem Logo/Sprachschalter auf */
  .main-nav.left, .main-nav {
    order: 3;
    position: static;     /* kein Overlay */
    display: none;
    width: 100%;
    background-color: rgba(30,60,100,0.95);
    text-align: center;
    padding: 10px 0;
    z-index: 1000;
  }
  .main-nav.left.open, .main-nav.open { display: flex; flex-direction: column; }
  .main-nav.left a, .main-nav a { margin: 10px 0; font-size: 1.1em; }
}
