:root {
  --color-primary: #0b1f3a;
  --color-accent: #1e3a5f;
  --color-bg: #f2f5f9;
  --color-text: #111827;
  --color-surface: #ffffff;
  --color-border: #d8e0ea;
  --color-success: #0f766e;
  --shadow-soft: 0 16px 40px rgba(11, 31, 58, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(30, 58, 95, 0.08), transparent 34%),
    radial-gradient(circle at 100% 10%, rgba(11, 31, 58, 0.1), transparent 30%),
    var(--color-bg);
  color: var(--color-text);
  font-family: "Segoe UI", "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  line-height: 1.6;
}

.main-wrapper {
  min-height: 70vh;
}

.hero-panel {
  border: 1px solid rgba(216, 224, 234, 0.9);
  background: linear-gradient(145deg, #ffffff, #eef3f8);
  box-shadow: var(--shadow-soft);
}

.nav-link {
  display: inline-flex;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  background: rgba(11, 31, 58, 0.1);
  color: var(--color-primary);
}

.card {
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  background: var(--color-surface);
  box-shadow: 0 10px 24px rgba(11, 31, 58, 0.08);
}

.btn-primary,
.btn-secondary,
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  padding: 0.75rem 1.2rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary,
button[type="submit"] {
  border: 1px solid transparent;
  background: var(--color-primary);
  color: #ffffff;
}

.btn-primary:hover,
button[type="submit"]:hover {
  transform: translateY(-1px);
  background: #0d2c53;
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #ffffff;
}

.btn-schaden {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: 1px solid #1e3a5f;
  background: #ffffff;
  padding: 0.75rem 1.2rem;
  font-weight: 700;
  text-decoration: none;
  color: #0b1f3a;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-schaden:hover,
.btn-schaden:focus-visible {
  transform: translateY(-1px);
  background: #eff6ff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.footer-link {
  color: #c8d7ea;
  text-decoration: underline;
  text-decoration-color: rgba(200, 215, 234, 0.35);
}

.footer-link:hover,
.footer-link:focus-visible {
  color: #ffffff;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #bfc9d6;
  border-radius: 0.75rem;
  background: #ffffff;
  padding: 0.7rem 0.9rem;
  font: inherit;
  color: #0f172a;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

label {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: #1f2937;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(30, 58, 95, 0.4);
  outline-offset: 2px;
}

.notice {
  border-radius: 0.75rem;
  border: 1px solid #9dd9cc;
  background: #ecfdf5;
  color: #065f46;
  padding: 0.85rem 1rem;
}

.error-notice {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.cookie-banner {
  position: fixed;
  inset: auto 1rem 1rem;
  z-index: 60;
  max-width: 520px;
  border: 1px solid #dbe4ef;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(11, 31, 58, 0.2);
  padding: 1rem;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(2, 8, 23, 0.6);
  padding: 1rem;
}

.cookie-modal.open {
  display: flex;
}

.cookie-modal-panel {
  width: min(600px, 100%);
  border-radius: 1rem;
  background: #ffffff;
  padding: 1.2rem;
}

.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  animation: revealUp 0.7s ease forwards;
}

.reveal-up.delay-1 { animation-delay: 0.12s; }
.reveal-up.delay-2 { animation-delay: 0.22s; }
.reveal-up.delay-3 { animation-delay: 0.32s; }

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .site-header #main-nav.open {
    display: block;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    padding: 0 1rem 1rem;
  }
}
