:root {
  /* Primärfarben (vom Logo) */
  --primary: #5DADE2;
  --primary-light: #85C1E9;
  --primary-pale: #AED6F1;

  /* Hintergründe (harmonisch zum Logo-Background #1C2833) */
  --bg: #1C2833;
  --bg-elevated: #243447;
  --bg-hover: #2C3E50;
  --bg-alt: #1A2530;

  /* Text (vom Logo) */
  --text: #ECF0F1;
  --text-secondary: #D5DBDB;
  --text-muted: #AED6F1;
  --text-subtle: #7F8C8D;

  /* Borders/Lines */
  --line: rgba(93, 173, 226, 0.15);
  --line-hover: rgba(93, 173, 226, 0.30);

  /* Legacy fallbacks */
  --white: #ffffff;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 16px 48px rgba(93, 173, 226, 0.15);
  --shadow-glow: 0 0 24px rgba(93, 173, 226, 0.08);
  --radius: 14px;
  --radius2: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, #1C2833 0%, #162230 50%, #0f1820 100%);
  color: var(--text);
  line-height: 1.6;
}

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

a:hover {
  opacity: 0.92;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--white);
  color: #111;
  padding: 10px 12px;
  border-radius: 10px;
  transition: var(--transition);
}

.skip:focus {
  left: 12px;
  z-index: 9999;
}

/* HEADER & NAV */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(28, 40, 51, 0.95);
  border-bottom: 1px solid var(--line);
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand__logo {
  height: 34px;
  width: auto;
  display: block;
  transition: var(--transition);
}

.brand:hover .brand__logo {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 8px rgba(93, 173, 226, 0.3));
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  transition: var(--transition);
}

.nav a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  position: relative;
  transition: var(--transition);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav a:hover {
  color: var(--text);
  opacity: 1;
}

.nav__toggle {
  display: none;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}

.nav__toggle:hover {
  border-color: var(--line-hover);
  background: var(--bg-hover);
}

.nav__bars {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: var(--transition);
}

.nav__bars::before,
.nav__bars::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

.nav__bars::before {
  top: -6px;
}

.nav__bars::after {
  top: 6px;
}

/* HERO */
.hero {
  padding: 54px 0 22px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 26px;
  align-items: start;
}

.eyebrow {
  color: var(--primary);
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  animation: fadeInUp 0.6s ease-out;
  text-transform: uppercase;
  font-size: 12px;
}

.hero h1 {
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.05;
  margin: 0 0 14px;
  color: var(--text);
  animation: fadeInUp 0.7s ease-out 0.1s backwards;
}

.lead {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 0 0 18px;
  animation: fadeInUp 0.7s ease-out 0.2s backwards;
}

.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 18px;
  animation: fadeInUp 0.7s ease-out 0.3s backwards;
}

.trustbar {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--text-muted);
  transition: var(--transition);
  animation: fadeInUp 0.7s ease-out 0.4s backwards;
}

.trustbar:hover {
  border-color: var(--line-hover);
  background: var(--bg-hover);
}

.trustbar p {
  margin: 0;
}

.hero__panel {
  display: grid;
  gap: 14px;
}

/* SECTIONS */
.section {
  padding: 44px 0;
  transition: var(--transition);
}

.section--alt {
  background: var(--bg-alt);
}

.section__head {
  margin-bottom: 18px;
}

.section__head h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.15;
  color: var(--text);
}

.subline {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
}

/* GRIDS */
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.grid2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

/* CARDS */
.card {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  border-radius: var(--radius2);
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  background: var(--bg-hover);
}

.card--outline {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
}

.card--outline:hover {
  background: var(--bg-hover);
  border-color: var(--line-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.h3 {
  margin: 0 0 8px;
  font-size: 18px;
  transition: var(--transition);
  color: var(--text);
}

.icon {
  font-size: 22px;
  margin-bottom: 8px;
  display: inline-block;
  transition: var(--transition);
}

.card:hover .icon {
  transform: scale(1.15) translateY(-2px);
}

.card--metric {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
}

.metric {
  text-align: center;
}

.metric__value {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary-light);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: 0.8;
  }
}

.metric__label {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13px;
  margin-top: 6px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: none;
  padding: 12px 20px;
  font-weight: 700;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  font-size: 15px;
}

.btn--sm {
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
}

.btn--primary {
  background: var(--primary);
  color: var(--bg);
  font-weight: 800;
}

.btn--primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(93, 173, 226, 0.25);
}

.btn--ghost {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  background: var(--bg-hover);
  border-color: var(--line-hover);
  transform: translateY(-2px);
}

/* STEPS */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
  transition: var(--transition);
}

.step:hover {
  transform: translateX(4px);
}

.step__num {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--bg);
  border: none;
  display: grid;
  place-items: center;
  font-weight: 800;
  position: relative;
  flex-shrink: 0;
  transition: var(--transition);
  animation: slideInLeft 0.5s ease-out backwards;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.step:nth-child(2) .step__num {
  animation-delay: 0.1s;
}

.step:nth-child(3) .step__num {
  animation-delay: 0.2s;
}

.step:nth-child(4) .step__num {
  animation-delay: 0.3s;
}

.step:hover .step__num {
  background: var(--primary-light);
  transform: scale(1.05);
}

.center {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

/* PRICING */
.card--pricing .price {
  font-size: 24px;
  font-weight: 800;
  margin-top: 10px;
  color: var(--primary);
}

.featured {
  border: 1.5px solid var(--primary);
  position: relative;
  box-shadow: 0 8px 32px rgba(93, 173, 226, 0.15);
}

.featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(93, 173, 226, 0.2);
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  background: var(--primary);
  color: var(--bg);
  border: none;
  margin-bottom: 10px;
  animation: fadeInDown 0.5s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

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

.callout {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  transition: var(--transition);
}

.callout:hover {
  border-color: var(--line-hover);
  background: var(--bg-hover);
}

/* ACCORDION */
.accordion details {
  padding: 0;
  transition: var(--transition);
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  background: var(--bg-elevated);
  margin-bottom: 10px;
}

.accordion details > summary {
  list-style: none;
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 700;
  user-select: none;
  position: relative;
  transition: var(--transition);
  color: var(--text);
}

.accordion details > summary::-webkit-details-marker {
  display: none;
}

.accordion details > summary::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: translateY(-50%) rotate(45deg);
  transition: transform 0.3s ease;
}

.accordion details[open] > summary::after {
  transform: translateY(-50%) rotate(-135deg);
}

.accordion details > summary:hover {
  background: var(--bg-hover);
}

.accordion details p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--text-secondary);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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

/* FORMS */
.contact {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  align-items: start;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

label {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  transition: var(--transition);
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text);
  outline: none;
  transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  background: var(--bg-hover);
  box-shadow: 0 0 0 3px rgba(93, 173, 226, 0.1);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-subtle);
}

textarea {
  resize: vertical;
  font-family: inherit;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 14px 0;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 28px;
  background: var(--bg-alt);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 16px;
}

.footer__logo {
  height: 30px;
  width: auto;
  display: block;
  margin-bottom: 10px;
  transition: var(--transition);
}

.footer:hover .footer__logo {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 6px rgba(93, 173, 226, 0.25));
}

.footer h4 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--text);
}

.footer a {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
  color: var(--text-muted);
}

.footer a:hover {
  border-bottom-color: var(--primary);
  color: var(--primary);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.muted {
  color: var(--text-muted);
}

.small {
  font-size: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* SCROLL TO TOP */
.scroll-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--primary);
  border: none;
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(93, 173, 226, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 40;
  font-size: 20px;
  font-weight: 800;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(93, 173, 226, 0.35);
}

/* LEGAL PAGES */
.legal-page {
  min-height: calc(100vh - 80px);
  padding: 48px 0;
}

.legal-content {
  max-width: 820px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--text);
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.legal-content h2:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.legal-content h3 {
  font-size: 18px;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--text);
}

.legal-content p {
  margin-bottom: 12px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.legal-content strong {
  color: var(--text);
  font-weight: 700;
}

.legal-content [placeholder],
.legal-content em {
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: 4px;
  border-left: 2px solid var(--primary);
  font-style: normal;
  color: var(--primary);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 24px;
  transition: var(--transition);
}

.back-link:hover {
  transform: translateX(-4px);
  color: var(--primary-light);
}

/* FORM STATUS MESSAGES */
.form-status {
  padding: 12px 16px;
  border-radius: 14px;
  margin-top: 12px;
  font-weight: 600;
  animation: slideDown 0.3s ease-out;
}

.form-status--success {
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid rgba(46, 204, 113, 0.3);
  color: #2ecc71;
}

.form-status--error {
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: #e74c3c;
}

.form-status--loading {
  background: rgba(93, 173, 226, 0.15);
  border: 1px solid rgba(93, 173, 226, 0.3);
  color: #5dade2;
}

.form-status ul {
  margin: 8px 0 0 0;
  padding-left: 20px;
}

.form-status li {
  margin-bottom: 4px;
  font-size: 14px;
}

/* Disabled submit button state */
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* RESPONSIVE */
@media (max-width: 920px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .contact {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 760px) {
  .grid3 {
    grid-template-columns: 1fr;
  }

  .grid2 {
    grid-template-columns: 1fr;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    padding: 14px 20px;
    background: rgba(28, 40, 51, 0.98);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
  }

  .nav a {
    padding: 10px 8px;
  }

  .nav.is-open {
    display: flex;
  }

  .featured {
    transform: scale(1);
  }

  .featured:hover {
    transform: translateY(-6px);
  }

  .scroll-to-top {
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .legal-content {
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 28px;
  }

  .hero__cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding: 32px 0;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .accordion details > summary {
    padding: 14px 16px;
    font-size: 15px;
  }

  .step {
    grid-template-columns: 40px 1fr;
    gap: 10px;
  }

  .step__num {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }
}
