:root {
  --primary: #1515a7;
  --primary-light: #4f63d6;
  --accent: #18b7a7;
  --accent-soft: #d8f4f1;
  --warm: #ffb703;
  --headline: #000000;
  --text: #28282b;
  --white: #ffffff;
  --surface: #eef2fb;
  --surface-2: #e6ebf8;
  --border: #d8dce6;
  --footer: #11131a;
  --footer-text: #d7dde9;
  --shadow: 0 14px 35px rgba(12, 16, 28, 0.1);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 10%, rgba(21, 21, 167, 0.08), transparent 34%),
    radial-gradient(circle at 90% 25%, rgba(24, 183, 167, 0.09), transparent 32%),
    #f8f9fc;
  line-height: 1.55;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--headline);
  line-height: 1.2;
}

p {
  margin-top: 0;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-grid {
  min-height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.logo {
  font-size: 1.14rem;
  font-weight: 800;
  color: var(--headline);
  text-decoration: none;
  letter-spacing: 0.3px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #ccd3e6;
  background: #ffffff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.2s ease;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
  transition: transform 0.28s ease, opacity 0.2s ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21, 21, 167, 0.14);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  display: flex;
  gap: 1.2rem;
  justify-self: center;
}

.nav a {
  position: relative;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  padding: 0.2rem 0.15rem;
  transition: color 0.25s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.2rem;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--primary);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-cta {
  display: none;
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  border: 2px solid var(--primary);
  padding: 0.72rem 1.1rem;
  border-radius: 12px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
  transform: translateX(-120%);
  transition: transform 0.45s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(21, 21, 167, 0.3);
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: translateX(120%);
}

.btn-small {
  justify-self: end;
  padding: 0.56rem 0.9rem;
  font-size: 0.9rem;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--primary);
  color: var(--white);
}

.hero {
  min-height: 80vh;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.68)),
    linear-gradient(120deg, #dce5ff, #d6f6f2);
}

.hero::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21, 21, 167, 0.2), rgba(21, 21, 167, 0.03) 60%, transparent 72%);
  right: -120px;
  top: -80px;
  animation: floatBlob 8s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='78' height='78' viewBox='0 0 24 24' fill='none' stroke='%231515a7' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round' opacity='0.2'%3E%3Cpath d='M12 3v4'/%3E%3Cpath d='M12 17v4'/%3E%3Cpath d='M3 12h4'/%3E%3Cpath d='M17 12h4'/%3E%3Cpath d='m5.6 5.6 2.8 2.8'/%3E%3Cpath d='m15.6 15.6 2.8 2.8'/%3E%3Cpath d='m18.4 5.6-2.8 2.8'/%3E%3Cpath d='m8.4 15.6-2.8 2.8'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  background-size: 78px;
  opacity: 0.06;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 3.6rem 0;
}

.hero-content {
  max-width: 620px;
  margin-right: auto;
  text-align: left;
}

.kicker {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.3px;
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-actions-right {
  justify-content: flex-start;
}

.hero-photo {
  min-height: 660px;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: linear-gradient(140deg, rgba(21, 21, 167, 0.08), rgba(24, 183, 167, 0.14)), #f4f7ff;
  animation: pulseFloat 5.5s ease-in-out infinite;
  position: relative;
}


.hero-photo {
  background-image: linear-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0.15)), url("img/Krperbau_eines_Mann_und_logo_a_Nano_Banana_Pro_19862.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-soft {
  background:
    linear-gradient(180deg, rgba(21, 21, 167, 0.04), rgba(21, 21, 167, 0.01)),
    var(--surface);
}

.section-soft::after {
  content: "";
  position: absolute;
  right: 3%;
  top: 40px;
  width: 180px;
  height: 180px;
  background:
    radial-gradient(circle at center, rgba(24, 183, 167, 0.25), transparent 68%);
  filter: blur(1px);
  pointer-events: none;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 0.6rem;
}

.section-intro {
  max-width: 640px;
  margin-bottom: 2rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--warm));
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(21, 21, 167, 0.45);
  box-shadow: 0 16px 30px rgba(18, 24, 52, 0.14);
}

.card:hover::before {
  transform: scaleX(1);
}

.icon {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #e8ebff, var(--accent-soft));
  color: var(--primary);
  border-radius: 12px;
  margin-bottom: 0.9rem;
  transition: transform 0.25s ease;
}

.icon svg {
  width: 26px;
  height: 26px;
}

.card:hover .icon {
  transform: rotate(-8deg) scale(1.08);
}

.card h3 {
  margin-bottom: 0.5rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
  align-items: center;
}

.ticks {
  padding: 0;
  margin: 1.2rem 0 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.75rem;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.36rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--primary);
}

.stats {
  display: grid;
  gap: 0.9rem;
}

.stat-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.stat-box strong {
  display: block;
  color: var(--primary);
  font-size: 1.6rem;
}

.stat-box:hover {
  transform: translateY(-5px);
  border-color: rgba(24, 183, 167, 0.45);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.step {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step span {
  width: 2.15rem;
  height: 2.15rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white);
  font-weight: 800;
  margin-bottom: 0.65rem;
  box-shadow: 0 10px 16px rgba(21, 21, 167, 0.25);
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(16, 28, 56, 0.12);
}

.contact-section {
  background:
    linear-gradient(180deg, rgba(24, 183, 167, 0.06), rgba(21, 21, 167, 0.04)),
    linear-gradient(180deg, #f4f6fb, #eef1f7);
}

.contact-box {
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 2rem;
  background: var(--white);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.contact-box::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21, 21, 167, 0.16), transparent 70%);
  pointer-events: none;
}

.contact-box h2,
.contact-box > p {
  text-align: center;
}

.contact-form {
  margin-top: 1.4rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.95rem;
  margin-bottom: 1rem;
}

.field {
  display: grid;
  gap: 0.42rem;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--headline);
  font-weight: 700;
  font-size: 0.95rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #cfd6e4;
  border-radius: 12px;
  padding: 0.72rem 0.78rem;
  font: inherit;
  color: var(--text);
  background: #fcfdff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  resize: vertical;
  min-height: 180px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21, 21, 167, 0.14);
}

#message-help {
  font-size: 0.84rem;
  color: #5c647a;
}

.photo-space {
  margin-top: 2rem;
  min-height: 240px;
  border: 2px dashed #b9c0d1;
  border-radius: 16px;
  background:
    linear-gradient(140deg, rgba(21, 21, 167, 0.04), rgba(24, 183, 167, 0.08)),
    #f7f8fc;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease;
}

.photo-space::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("img/Headerimage.png");
  opacity: 0.08;
  pointer-events: none;
}

.photo-space p {
  margin: 0;
  color: #586079;
  font-weight: 600;
}

.photo-space:hover {
  transform: translateY(-4px);
  border-color: rgba(21, 21, 167, 0.5);
}

.hero-photo {
  margin-top: 0;
  min-height: 370px;
  animation: pulseFloat 5.5s ease-in-out infinite;
}

.site-footer {
  background: var(--footer);
  color: var(--footer-text);
  padding-top: 2.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 1.1rem;
  padding-bottom: 1.6rem;
}

.site-footer h3 {
  color: #ffffff;
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}

.site-footer p {
  margin-bottom: 0.42rem;
}

.site-footer a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  border-color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 1rem 0 1.2rem;
  text-align: center;
  font-size: 0.92rem;
}

.legal-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f7f8fc, #eef1f7);
  padding: 2rem 0;
}

.legal-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.legal-card a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.fade-up {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s ease forwards;
  animation-delay: var(--delay, 0s);
}

.slide-in {
  opacity: 0;
  transform: translateY(14px) scale(0.99);
  animation: cardIn 0.65s ease forwards;
  animation-delay: var(--delay, 0s);
}

.section h2 {
  position: relative;
  display: inline-block;
}

.section h2::after {
  content: "";
  display: block;
  width: 64%;
  height: 4px;
  border-radius: 8px;
  margin-top: 0.28rem;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 14px 28px rgba(37, 211, 102, .35);
  z-index: 999;
  transition: transform .2s ease, box-shadow .2s ease;
  animation: waPulse 2.2s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 18px 30px rgba(37, 211, 102, .45);
}
.wa-icon { width: 34px; height: 34px; }
.wa-image { width: 34px; height: 34px; object-fit: contain; }

@keyframes waPulse {
  0%, 100% { box-shadow: 0 14px 28px rgba(37, 211, 102, .35); }
  50% { box-shadow: 0 18px 34px rgba(37, 211, 102, .55); }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulseFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes floatBlob {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(16px) scale(1.06);
  }
}

@media (max-width: 980px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-col,
  .steps,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    text-align: left;
    margin-right: 0;
  }

  .hero-actions-right {
    justify-content: flex-start;
  }

  .hero-photo {
    min-height: 300px;
  }
}

@media (max-width: 1024px) {
  .header-grid {
    grid-template-columns: 1fr auto;
    min-height: 76px;
    padding: 0.75rem 0;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .btn-small {
    display: none;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    display: grid;
    gap: 0.35rem;
    justify-self: stretch;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #d8deec;
    border-radius: 16px;
    padding: 0.5rem;
    box-shadow: 0 18px 36px rgba(18, 25, 48, 0.18);
    transform-origin: top;
    transform: translateY(-8px) scaleY(0.96);
    opacity: 0;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    transition: transform 0.28s ease, opacity 0.24s ease, max-height 0.28s ease;
  }

  .nav.is-open {
    transform: translateY(0) scaleY(1);
    opacity: 1;
    pointer-events: auto;
    max-height: 360px;
  }

  .nav a {
    padding: 0.65rem 0.6rem;
    border-radius: 10px;
  }

  .nav a:hover,
  .nav a:focus-visible {
    background: #eef1ff;
  }

  .nav a::after {
    left: 0.6rem;
    right: 0.6rem;
    bottom: 0.45rem;
  }

  .nav-cta {
    display: inline-block;
    margin-top: 0.2rem;
    color: var(--white) !important;
    background: var(--primary);
    border-radius: 10px;
    font-weight: 700;
    text-align: center;
    border: 1px solid var(--primary);
  }

  .nav-cta::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    padding: 2.6rem 0;
  }

  .section {
    padding: 4rem 0;
  }

  .legal-card {
    padding: 1.35rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    min-height: 220px;
  }
  
  .whatsapp-float {
    width: 56px;
    height: 56px;
    right: 14px;
    bottom: 14px;
  }
}
