:root {
  --imp-text-color: #619cff;
  --section-background-color: linear-gradient(
    to bottom left,
    rgba(16, 17, 17, 0.58),
    rgba(8, 12, 24, 0.9)
  );
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Raleway", sans-serif;
  font-weight: 500;
  color: whitesmoke;
  background-image: linear-gradient(to left, rgb(25, 34, 54), rgb(9, 25, 39));
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: rgba(110, 128, 255, 0.6);
}

::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-track {
  background: #002c69;
}

::-webkit-scrollbar-thumb {
  background: rgba(96, 142, 241, 0.96);
  border-radius: 12px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(110, 128, 255, 0.91);
}

/* --------- */
/* Navbar */
/* --------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 2rem;
  background-color: rgba(25, 34, 54, 0.66);
  box-shadow: 0 10px 10px 0 rgba(24, 27, 38, 0.17);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.navbar-brand {
  color: rgb(250, 250, 250);
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
}

.brackets {
  color: #125b96;
  font-size: 160%;
  line-height: 0.7em;
  vertical-align: text-top;
}

.navbar-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  position: relative;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  padding-bottom: 4px;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  display: block;
  height: 3px;
  width: 0;
  border-radius: 16px;
  background: #51acff;
  transition: all 0.3s ease-out 0s;
}

.nav-link:hover::after {
  width: 100%;
}

/* --------- */
/* Sprachumschalter */
/* --------- */

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(112, 147, 255, 0.32);
  border-radius: 5px;
  overflow: hidden;
}

.lang-switch a {
  padding: 0.25rem 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #b9c6dd;
  text-decoration: none;
  transition: all 0.3s ease 0s;
}

.lang-switch a + a {
  border-left: 1px solid rgba(112, 147, 255, 0.32);
}

.lang-switch a:hover {
  background-color: rgba(40, 69, 149, 0.45);
  color: white;
  text-decoration: none;
}

.lang-switch a.lang-active {
  background-color: #005abc;
  color: #fff;
}

/* --------- */
/* Content */
/* --------- */

main {
  flex: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

.page-heading {
  font-size: 2.3em;
  font-weight: 600;
  margin: 0 0 0.4em;
  text-align: center;
}

.blue {
  color: #58abff;
}

.page-subtitle {
  text-align: center;
  color: #b9c6dd;
  margin: 0 0 1em;
}

.updated {
  text-align: center;
  color: #7b93cd;
  font-size: 0.95em;
  margin-bottom: 3rem;
}

.card {
  background-image: var(--section-background-color);
  box-shadow: 0 2px 5px 3px rgba(40, 69, 149, 0.46);
  border-radius: 8px;
  padding: 1.8rem 2rem;
  margin-bottom: 1.8rem;
  transition: all 0.5s ease 0s;
}

.card:hover {
  box-shadow: 0 2px 4px 5px rgba(64, 81, 152, 0.6);
}

.card h2 {
  font-size: 1.35em;
  font-weight: 600;
  margin: 0 0 0.9em;
  color: white;
}

.card h2 .num {
  color: var(--imp-text-color);
  margin-right: 0.5em;
}

.card h3 {
  font-size: 1.05em;
  font-weight: 600;
  color: #cddcf5;
  margin: 1.5em 0 0.5em;
}

p,
li {
  line-height: 1.7;
  color: #e3e9f4;
}

p {
  margin: 0 0 1em;
}

p:last-child,
ul:last-child {
  margin-bottom: 0;
}

ul {
  padding-left: 1.2rem;
  margin: 0 0 1em;
}

li {
  padding-bottom: 0.4em;
}

a {
  color: var(--imp-text-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.contact-block {
  border-left: 2px solid #2c62c5;
  padding: 0.2em 0 0.2em 1.2rem;
  margin-bottom: 1em;
}

.placeholder {
  color: #ffcc66;
}

/* --------- */
/* Form */
/* --------- */

.form-row {
  display: flex;
  gap: 1.2rem;
}

.form-row > .form-group {
  flex: 1;
}

.form-group {
  margin-bottom: 1.3rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #cddcf5;
  font-size: 0.98em;
}

.required {
  color: var(--imp-text-color);
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: whitesmoke;
  background-color: rgba(9, 18, 35, 0.6);
  border: 1px solid rgba(112, 147, 255, 0.27);
  border-radius: 5px;
  transition: all 0.3s ease 0s;
}

textarea {
  resize: vertical;
  min-height: 170px;
  line-height: 1.6;
}

select {
  cursor: pointer;
}

select option {
  background-color: #101828;
  color: whitesmoke;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(90, 139, 255, 0.88);
  box-shadow: 0 0 6px rgba(40, 69, 149, 0.7);
}

input::placeholder,
textarea::placeholder {
  color: #6f80a0;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 1.6rem;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.35rem;
  width: 17px;
  height: 17px;
  accent-color: #2c62c5;
  flex-shrink: 0;
  cursor: pointer;
}

.checkbox-group label {
  margin-bottom: 0;
  font-weight: 500;
  color: #e3e9f4;
  font-size: 0.95em;
  line-height: 1.6;
  cursor: pointer;
}

.btn-primary {
  display: inline-block;
  color: #fff;
  background-color: #005abc;
  border: 1px solid #005abc;
  border-radius: 5px;
  padding: 0.6rem 1.8rem;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(0, 83, 229, 0.84);
  box-shadow: 0 0 12px rgba(0, 90, 188, 0.5);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.form-hint {
  font-size: 0.9em;
  color: #7b93cd;
  margin-top: 1.2rem;
}

.alert {
  border-radius: 5px;
  padding: 0.9rem 1.2rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid;
  font-size: 0.98em;
  line-height: 1.6;
}

.alert-success {
  background-color: rgba(28, 120, 78, 0.28);
  border-color: #35c184;
  color: #d6f5e7;
}

.alert-error {
  background-color: rgba(150, 42, 42, 0.28);
  border-color: #e05a5a;
  color: #f7dcdc;
}

.hidden {
  display: none;
}

/* Honeypot — must stay invisible to humans, reachable for bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------- */
/* Footer */
/* --------- */

.footer {
  background-color: rgb(11, 20, 38);
  padding: 1.2rem;
  margin-top: auto;
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 0.95em;
  color: #7b93cd;
}

@media (max-width: 700px) {
  .navbar {
    padding: 0.8rem 1.2rem;
    flex-wrap: wrap;
  }

  .navbar-links {
    gap: 1.1rem;
  }

  main {
    padding: 2.5rem 1rem 3rem;
  }

  .card {
    padding: 1.4rem 1.2rem;
  }

  .page-heading {
    font-size: 1.7em;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }
}
