/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #2c2c2c;
  background: #0f1923;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── Background Image with Blur ── */
.bg-image {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url('ai-background.jpeg') center/cover no-repeat;
  filter: blur(6px) brightness(0.5);
  transform: scale(1.05);
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(15, 25, 35, 0.5) 0%,
    rgba(15, 25, 35, 0.3) 40%,
    rgba(15, 25, 35, 0.5) 100%
  );
}

/* ── Container ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* ── Main Content ── */
.main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.contact-card {
  text-align: center;
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 3.5rem 5rem 4rem;
  max-width: 650px;
  width: 100%;
  box-shadow:
    0 12px 50px rgba(0, 0, 0, 0.25),
    0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-logo {
  margin-bottom: 2rem;
}

.card-logo img {
  max-height: 200px;
  width: auto;
  margin: 0 auto;
}

.contact-card h1 {
  font-size: 1.85rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}

.contact-card .tagline {
  font-size: 0.85rem;
  color: #7a7a8e;
  margin-bottom: 2.5rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.6;
  text-transform: none;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.contact-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #080250, #1a1480);
  margin: 0 auto 2.5rem;
  border-radius: 2px;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 1.35rem;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(8, 2, 80, 0.08);
  border: 1px solid rgba(8, 2, 80, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  stroke: #080250;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-link {
  font-size: 1.15rem;
  font-weight: 500;
  color: #2c2c3a;
  transition: color 0.3s ease;
  letter-spacing: 0.01em;
}

.contact-link:hover {
  color: #080250;
}

/* ── Footer ── */
.footer {
  background: #010318;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.75rem 0;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.footer-nav a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  padding: 0.5rem 1.1rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.3s ease;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.footer-nav a:hover {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.footer-cookie {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
  font-style: italic;
}

.footer-copy {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.02em;
}

/* ── Subpage Content ── */
.subpage-content {
  flex: 1;
  padding: 2rem 1.5rem;
}

.content-card {
  position: relative;
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 3rem 3.5rem;
  max-width: 800px;
  margin: 0 auto;
  box-shadow:
    0 12px 50px rgba(0, 0, 0, 0.25),
    0 2px 8px rgba(0, 0, 0, 0.1);
}

.content-card .card-logo {
  margin-bottom: 1.5rem;
}

.content-card h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

.content-card .underline {
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, #080250, #1a1480);
  border-radius: 2px;
  margin-bottom: 2rem;
}

.content-card p {
  font-size: 0.95rem;
  color: #5a5a6e;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.content-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.content-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #2c2c3a;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.content-card ul,
.content-card ol {
  font-size: 0.95rem;
  color: #5a5a6e;
  line-height: 1.8;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.content-card li {
  margin-bottom: 0.3rem;
}

.content-card a:not(.back-link) {
  color: #080250;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.3s ease;
}

.content-card a:not(.back-link):hover {
  color: #1a1480;
}

.content-card strong {
  color: #2c2c3a;
  font-weight: 600;
}

.back-top {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(8, 2, 80, 0.06);
  border: 1px solid rgba(8, 2, 80, 0.12);
  transition: all 0.3s ease;
}

.back-top:hover {
  background: rgba(8, 2, 80, 0.12);
  border-color: rgba(8, 2, 80, 0.25);
}

.back-top svg {
  width: 18px;
  height: 18px;
  stroke: #080250;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #080250;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.back-link:hover {
  color: #1a1480;
  gap: 0.7rem;
}

.back-link svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Password Protection (ENTFERNEN wenn nicht mehr benötigt) ── */
.password-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0a0a1a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-overlay.hidden {
  display: none;
}

.password-box {
  text-align: center;
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 2.5rem 3rem;
  max-width: 380px;
  width: 90%;
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.4);
}

.password-box img {
  max-height: 80px;
  margin: 0 auto 1.5rem;
}

.password-box p {
  font-size: 0.9rem;
  color: #5a5a6e;
  margin-bottom: 1.25rem;
}

.password-box input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-family: inherit;
  text-align: center;
  outline: none;
  transition: border-color 0.3s ease;
  margin-bottom: 0.75rem;
}

.password-box input:focus {
  border-color: #080250;
}

.password-box input.error {
  border-color: #e53e3e;
  animation: shake 0.4s ease;
}

.password-box button {
  width: 100%;
  padding: 0.75rem;
  background: #080250;
  color: #ffffff;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.3s ease;
}

.password-box button:hover {
  background: #1a1480;
}

.password-box .error-msg {
  font-size: 0.8rem;
  color: #e53e3e;
  margin-top: 0.5rem;
  min-height: 1.2em;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-4px); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .contact-card {
    padding: 2.5rem 2rem;
    margin: 0 0.5rem;
  }

  .card-logo img {
    max-height: 160px;
  }

  .contact-card h1 {
    font-size: 1.4rem;
  }

  .contact-link {
    font-size: 1rem;
  }

  .footer-nav {
    gap: 0.5rem;
  }

  .footer-nav a {
    font-size: 0.8rem;
    padding: 0.4rem 0.85rem;
  }

  .content-card {
    padding: 2rem 1.5rem;
  }

  .content-card h1 {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 1rem;
  }

  .contact-card {
    padding: 1.2rem 1rem;
    border-radius: 0.75rem;
    max-width: 85%;
  }

  .card-logo {
    margin-bottom: 0.5rem;
  }

  .card-logo img {
    max-height: 70px;
  }

  .contact-card .tagline {
    font-size: 0.65rem;
    margin-bottom: 1rem;
  }

  .contact-divider {
    margin: 0 auto 1rem;
  }

  .contact-item {
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }

  .contact-icon {
    width: 34px;
    height: 34px;
  }

  .contact-icon svg {
    width: 16px;
    height: 16px;
  }

  .contact-link {
    font-size: 0.8rem;
  }

  .content-card {
    padding: 1.2rem 1rem;
    border-radius: 0.75rem;
  }

  .footer {
    padding: 1rem 0;
  }

  .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.75rem;
  }

  .footer-nav a {
    display: block;
    width: 100%;
    max-width: 200px;
    text-align: center;
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
  }

  .footer-cookie {
    font-size: 0.65rem;
  }

  .footer-copy {
    font-size: 0.7rem;
  }
}
