body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #01417e no-repeat center center fixed;
  background-size: cover;
  color: #e0e6ff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 90vh;
  z-index: -1;
  pointer-events: none;
  filter: blur(0.5px) brightness(1.1);
  display: block;
}

/* Mobile Canvas Optimierung */
@media (max-width: 600px) {
  canvas {
    height: 85vh;
  }
}

.container {
  max-width: 560px;
  width: 63%;
  margin: 20px auto 20px auto;
  padding: 15px 13px;
  background: rgba(20, 24, 48, 0.85);
  border-radius: 15px;
  box-shadow: 0 6px 22px 0 rgba(0, 0, 0, 0.45), 0 0 0 1px #1a73e8 inset;
  text-align: center;
  backdrop-filter: blur(8px) saturate(1.2);
  border: 1px solid rgba(26, 115, 232, 0.18);
  position: relative;
}

/* Media Query für kleine Bildschirme */
@media (max-width: 600px) {
  .container {
    width: 85%;
    max-width: none;
    margin: 28px auto 14px auto;
    padding: 14px 11px 11px 11px;
  }
  
  .header-main {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 1em;
    color: #00ffe7;
    text-shadow: 0 0 6px #1a73e8, 0 0 12px #00ffe7;
    letter-spacing: 0.03em;
  }
  
  .paragraph-slogan p {
    font-size: 1.1em;
    margin-top: 1em;
    margin-bottom: 1em;
  }
  
  .paragraph-main p {
    font-size: 0.95em;
    line-height: 1.4;
    margin-bottom: 1em;
  }
  
  .header-content h2 {
    font-size: 1.3em;
    margin-bottom: 0.8em;
  }
  
  form {
    margin-top: 1em;
  }
  
  form input,
  form textarea,
  #subjectDropdown {
    padding: 10px 14px;
    font-size: 0.95em;
    margin: 6px 0;
  }
  
  form textarea {
    height: 80px;
  }
  
  form button {
    padding: 12px 28px;
    font-size: 1em;
    margin-top: 0.6em;
  }
  
  .phone-row {
    gap: 6px;
  }
  
  .phone-row select#countryCode {
    min-width: 65px;
    max-width: 80px;
    padding: 10px 10px;
    font-size: 0.95em;
  }
}

.container::before {
  content: "";
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 120px;
  background: radial-gradient(ellipse at center, rgba(58, 255, 255, 0.18) 0%, rgba(26, 115, 232, 0.08) 100%);
  filter: blur(18px);
  z-index: 0;
  pointer-events: none;
}

.content {
  position: relative;
  z-index: 1;
  color: #b3e6ff;
  text-align: center;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  margin-top: 2.5em;
  margin-bottom: 1.5em;
  /*   padding: 1.2em 0 0.5em 0;
  background: linear-gradient(90deg, rgba(26,115,232,0.08) 0%, rgba(58,255,255,0.08) 100%); */
  border-radius: 12px;
  box-shadow: 0 0 18px 0 rgba(26, 115, 232, 0.08);
  /* border: 1px solid rgba(26, 115, 232, 0.09); */
}

.header-main {
  font-size: 1.8em;
  font-weight: 600;
  margin-bottom: 0.8em;
  color: #00ffe7;
  text-shadow: 0 0 6px #1a73e8, 0 0 12px #00ffe7;
  letter-spacing: 0.03em;
}

p.slogan {
  font-size: 1.1em;
  font-style: italic;
  margin-top: 0.5em;
  margin-bottom: 0.8em;
  color: #00ffe7;
  text-shadow: 0 0 6px #1a73e8, 0 0 12px #00ffe7;
  letter-spacing: 0.03em;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0.8em;
}

/* Ensure dropdown width and max-width same as inputs and textarea */
#subjectDropdown {
  width: 100%;
  max-width: 480px;
  padding: 10px 14px;
  margin: 5px 0;
  border: 1.5px solid #1a73e8;
  border-radius: 8px;
  background: rgba(10, 10, 42, 0.92);
  color: #e0e6ff;
  font-size: 0.95em;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-weight: 500;
  outline: none;
  box-shadow: 0 0 8px 0 #00ffe744;
  transition: border 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  box-sizing: border-box;
  /* important for sizing */
}

#subjectDropdown:focus {
  border: 1.5px solid #00ffe7;
  box-shadow: 0 0 12px 0 #00ffe7aa;
}

/* Optional: remove default arrow and add custom arrow */
#subjectDropdown::-ms-expand {
  display: none;
  /* IE10+ */
}

#subjectDropdown {
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23e0e6ff" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

form input,
form textarea {
  width: 100%;
  max-width: 480px;
  padding: 10px 14px;
  margin: 5px 0;
  border: 1.5px solid #1a73e8;
  border-radius: 8px;
  background: rgba(10, 10, 42, 0.92);
  color: #e0e6ff;
  font-size: 0.95em;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-weight: 500;
  outline: none;
  box-shadow: 0 0 8px 0 #00ffe744;
  transition: border 0.2s, box-shadow 0.2s;
}

form textarea {
  height: 70px;
  /* Höhe nach Wunsch anpassen */
  resize: vertical;
  /* erlaubt vertikales Vergrößern durch Nutzer */
}

form input:focus,
form textarea:focus {
  border: 1.5px solid #00ffe7;
  box-shadow: 0 0 12px 0 #00ffe7aa;
}

form button {
  background: linear-gradient(90deg, #00ffe7 0%, #1a73e8 100%);
  color: #0a0a2a;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 1em;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 4px 0 #00ffe7;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  margin-top: 0.5em;
}

form button:hover {
  background: linear-gradient(90deg, #1a73e8 0%, #00ffe7 100%);
  color: #fff;
  box-shadow: 0 0 10px 0 #00ffe7, 0 0 4px #1a73e8;
}

footer {
  margin-top: auto;
  background: rgba(10, 10, 42, 0.92);
  padding: 12px 0 8px 0;
  text-align: center;
  font-size: 0.9em;
  color: #00ffe7;
  border-top: 1.5px solid #1a73e8;
  box-shadow: 0 -2px 18px 0 #1a73e8;
  letter-spacing: 0.04em;
}

/* Mobile Footer Optimierung */
@media (max-width: 600px) {
  footer {
    padding: 15px 10px 10px 10px;
    font-size: 0.9em;
    margin-top: 20px;
  }
  
  footer a {
    margin: 0 8px;
    font-size: 0.9em;
  }
  
  .lang-dropdown {
    margin-left: 12px;
  }
  
  .lang-dropdown select {
    padding: 6px 28px 6px 12px;
    font-size: 0.9em;
  }
}

footer a {
  color: #00ffe7;
  text-decoration: none;
  margin: 0 12px;
  font-weight: 500;
  transition: color 0.2s;
}

footer a:hover {
  text-decoration: underline;
  color: #1a73e8;
}

/* Quantum/Futuristic accents for div wrappers */
.header-main,
.header-content,
.paragraph-slogan,
.paragraph-main,
.paragraph-content,
.footer-content {
  position: relative;
  z-index: 1;
  margin-bottom: 0.6em;
  /* padding: 0.5em 0.7em; */
  border-radius: 10px;
  background: rgba(0, 255, 231, 0.04);
  box-shadow: 0 0 12px 0 rgba(0, 255, 231, 0.08);
  border: 1px solid rgba(0, 255, 231, 0.09);
}

form input,
form textarea,
#subjectDropdown {
  box-sizing: border-box;
}

.phone-row {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 480px;
}

.phone-row select#countryCode {
  min-width: 75px;
  max-width: 95px;
  padding: 10px 10px;
  margin: 5px 0;
  border: 1.5px solid #1a73e8;
  border-radius: 8px;
  background: rgba(10, 10, 42, 0.92);
  color: #e0e6ff;
  font-size: 0.95em;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-weight: 500;
  outline: none;
  box-shadow: 0 0 8px 0 #00ffe744;
  transition: border 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  box-sizing: border-box;
}

.phone-row select#countryCode:focus {
  border: 1.5px solid #00ffe7;
  box-shadow: 0 0 12px 0 #00ffe7aa;
}

.phone-row input#phoneInput {
  flex: 1;
}

.header-main,
.header-content {
  background: linear-gradient(90deg, rgba(0, 255, 231, 0.10) 0%, rgba(26, 115, 232, 0.10) 100%);
  box-shadow: 0 0 18px 0 rgba(26, 115, 232, 0.10);
}

/* Subtle animated accent (optional) */
@keyframes quantum-glow {
  0% {
    box-shadow: 0 0 4px 0 #00ffe7, 0 0 0 #1a73e8;
  }

  50% {
    box-shadow: 0 0 10px 2px #00ffe7, 0 0 4px #1a73e8;
  }

  100% {
    box-shadow: 0 0 4px 0 #00ffe7, 0 0 0 #1a73e8;
  }
}

.form-wrapper form button {
  animation: quantum-glow 2.5s infinite;
}

span[data-i18n="footerCopy"] {
  white-space: nowrap;
}

/* Quantum-Style Language Dropdown im Footer */
.lang-dropdown {
  display: inline-block;
  position: relative;
  margin-left: 18px;
}

.lang-dropdown select {
  background: rgba(10, 10, 42, 0.92);
  color: #00ffe7;
  border: 1.5px solid #1a73e8;
  border-radius: 8px;
  padding: 7px 32px 7px 14px;
  font-size: 1em;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-weight: 500;
  outline: none;
  box-shadow: 0 0 8px 0 #00ffe744;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition: border 0.2s, box-shadow 0.2s;
}

.lang-dropdown select:focus {
  border: 1.5px solid #00ffe7;
  box-shadow: 0 0 12px 0 #00ffe7aa;
}

/* Custom Arrow nach oben */
.lang-dropdown .dropdown-arrow-up {
  pointer-events: none;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 8px solid #00ffe7;
  border-top: none;
  filter: drop-shadow(0 0 4px #00ffe7);
}

/* Back Navigation Styles */
.back-navigation {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
}

.back-link {
  display: inline-block;
  padding: 10px 16px;
  background: rgba(10, 10, 42, 0.92);
  color: #00ffe7;
  text-decoration: none;
  border: 1.5px solid #1a73e8;
  border-radius: 8px;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-weight: 500;
  font-size: 0.95em;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.2);
}

.back-link:hover {
  background: rgba(26, 115, 232, 0.15);
  color: #1a73e8;
  border-color: #00ffe7;
  box-shadow: 0 0 12px rgba(0, 255, 231, 0.3);
  transform: translateY(-1px);
}

/* Content wrapper for pages without main container */
.content {
  max-width: 560px;
  width: 63%;
  margin: 70px auto 22px auto;
  padding: 20px 13px 13px 13px;
  background: rgba(20, 24, 48, 0.85);
  border-radius: 15px;
  box-shadow: 0 6px 22px 0 rgba(0, 0, 0, 0.45), 0 0 0 1px #1a73e8 inset;
  backdrop-filter: blur(8px) saturate(1.2);
  border: 1px solid rgba(26, 115, 232, 0.18);
  color: #e0e6ff;
  line-height: 1.6;
}

.content h1 {
  color: #00ffe7;
  margin-bottom: 1.5em;
  font-size: 2.2em;
  text-align: center;
  border-bottom: 2px solid rgba(0, 255, 231, 0.3);
  padding-bottom: 0.5em;
}

.content h2 {
  color: #00ffe7;
  margin-top: 2em;
  margin-bottom: 1em;
  font-size: 1.4em;
  text-align: left;
  border-left: 3px solid #1a73e8;
  padding-left: 1em;
  background: rgba(26, 115, 232, 0.05);
  padding: 0.8em 1em;
  border-radius: 0 8px 8px 0;
}

.content a {
  color: #1a73e8;
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 115, 232, 0.3);
  transition: all 0.3s ease;
}

.content a:hover {
  color: #00ffe7;
  border-bottom-color: #00ffe7;
}

.content p {
  margin-bottom: 1.2em;
  text-align: left;
}

.content ul {
  margin: 1em 0;
  /* align marker and content so the marker sits outside and text starts at 0.8cm from left */
  /* Use logical property so it works with LTR/RTL; forces text to be left-aligned inside the list */
  padding-inline-start: 0.8cm;
  /* ensures the text starts 0.8cm from the left edge of the content box */
  text-align: left;
  /* override container's centered text for lists */
  list-style-position: outside;
  box-sizing: border-box;
}

.content li {
  margin-bottom: 0.8em;
  position: relative;
}

.content li::marker {
  color: #00ffe7;
}

.content strong {
  color: #00ffe7;
  font-weight: 600;
}

/* Special styling for the first paragraph after h2 */
.content h2+p {
  margin-top: 0.5em;
}

#alertBox {
  display: none;
  position: fixed;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(20, 24, 48, 0.95);
  color: #e0e6ff;
  padding: 32px 40px;
  border-radius: 20px;
  border: 2px solid #1a73e8;
  box-shadow: 
    0 0 30px rgba(26, 115, 232, 0.4),
    0 0 60px rgba(0, 255, 231, 0.2),
    inset 0 0 20px rgba(0, 255, 231, 0.1);
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 500;
  max-width: 500px;
  min-width: 350px;
  z-index: 10000;
  cursor: default;
  backdrop-filter: blur(12px);
  text-align: center;
  animation: alertSlideIn 0.4s ease-out;
}

#alertBox.success {
  border-color: #00ffe7;
  box-shadow: 
    0 0 30px rgba(0, 255, 231, 0.4),
    0 0 60px rgba(0, 255, 231, 0.3),
    inset 0 0 20px rgba(0, 255, 231, 0.15);
}

#alertBox.error {
  border-color: #ff4757;
  box-shadow: 
    0 0 30px rgba(255, 71, 87, 0.4),
    0 0 60px rgba(255, 71, 87, 0.2),
    inset 0 0 20px rgba(255, 71, 87, 0.1);
}

#alertBox .alert-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

#alertBox .alert-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

#alertBox .alert-icon.success {
  background: linear-gradient(45deg, #00ffe7, #1a73e8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a0a2a;
  font-weight: bold;
  font-size: 16px;
}

#alertBox .alert-icon.error {
  background: linear-gradient(45deg, #ff4757, #ff6b7a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 16px;
}

#alertBox .alert-message {
  flex: 1;
  text-align: left;
}

#alertBox .alert-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: #b3e6ff;
  font-size: 24px;
  font-weight: 300;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

#alertBox .alert-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #00ffe7;
  transform: scale(1.1);
}

#alertBox .alert-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

#alertBox .alert-button {
  background: linear-gradient(90deg, #00ffe7 0%, #1a73e8 100%);
  color: #0a0a2a;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 255, 231, 0.3);
}

#alertBox .alert-button:hover {
  background: linear-gradient(90deg, #1a73e8 0%, #00ffe7 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 255, 231, 0.4);
}

#alertBox .alert-button.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #e0e6ff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#alertBox .alert-button.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #00ffe7;
}

@keyframes alertSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Mobile responsiveness for alert box */
@media (max-width: 600px) {
  #alertBox {
    max-width: 90vw;
    min-width: 280px;
    padding: 24px 20px;
    font-size: 16px;
    top: 70%;
  }
  
  #alertBox .alert-content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  #alertBox .alert-message {
    text-align: center;
  }
}

/* Mobile responsiveness for back navigation */
@media (max-width: 600px) {
  .back-navigation {
    top: 15px;
    left: 15px;
  }

  .back-link {
    padding: 8px 12px;
    font-size: 0.9em;
  }

  .content {
    width: 85%;
    margin-top: 42px;
    margin-bottom: 14px;
    padding: 14px 11px 11px 11px;
  }
  
  .content h1 {
    font-size: 1.6em;
    margin-bottom: 1em;
    padding-bottom: 0.4em;
  }
  
  .content h2 {
    font-size: 1.2em;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    padding: 0.6em 0.8em;
  }
}