/* ============================================================
   Impfscout – Global Styles
   Fonts: Instrument Serif (italic) + Plus Jakarta Sans
   ============================================================ */

:root {
  --cream: #efeae0;
  --cream-2: #f6f2ea;
  --ink: #26215c;
  --ink-2: #3c3489;
  --purple: #534ab7;
  --lavender: #cecbf6;
  --lavender-2: #eeedfe;
  --amber: #ef9f27;
  --amber-2: #fac775;
  --amber-3: #faeeda;
  --muted: #7a7568;
  --line: rgba(38, 33, 92, 0.1);
  --card: #ffffff;

  --display: "Instrument Serif", Georgia, serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 12px;
  --maxw: 1200px;
  --nav-h: 72px;
  --gutter: clamp(24px, 4vw, 40px);

  --gradient-hero:
    radial-gradient(90% 80% at 20% 70%, rgba(250, 199, 117, 0.7) 0%, rgba(250, 199, 117, 0) 60%), radial-gradient(80% 70% at 85% 75%, rgba(194, 160, 234, 0.65) 0%, rgba(194, 160, 234, 0) 55%),
    radial-gradient(60% 90% at 50% 20%, rgba(246, 242, 234, 0.9) 0%, rgba(246, 242, 234, 0) 50%), linear-gradient(124deg, #fac775 0%, #e8b06a 25%, #d9a0c4 50%, #c4a0ea 75%, #b68de8 100%);
  --gradient-soft:
    radial-gradient(ellipse 80% 90% at 20% 70%, rgba(250, 199, 117, 0.5) 0%, transparent 60%), radial-gradient(ellipse 70% 80% at 85% 75%, rgba(194, 160, 234, 0.45) 0%, transparent 55%), var(--cream);
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}

/* ---------- utility ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.sr-only {
  position: absolute;
  left: -9999px;
}
.is-hidden {
  display: none !important;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  transition:
    background 0.3s,
    backdrop-filter 0.3s;
}
.nav.scrolled {
  backdrop-filter: blur(12px);
  background: rgba(239, 234, 224, 0.8);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-style: italic;
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
}
.brand img {
  width: 32px;
  height: 32px;
}
.nav-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  transition:
    background 0.2s,
    color 0.2s;
}
.nav-cta:hover {
  background: #fff;
}
.nav.scrolled .nav-cta {
  background: var(--purple);
  color: #fff;
  border-color: transparent;
}
.nav.scrolled .nav-cta:hover {
  background: var(--ink-2);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  text-align: center;
  margin-top: calc(-1 * var(--nav-h));
  padding: calc(40px + var(--nav-h)) 0 52px;
  background: var(--gradient-hero);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  overflow: hidden;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-content > * {
  opacity: 0;
  animation: heroFadeIn 0.7s ease-out both;
}
.hero-content > .hero-icon {
  animation-delay: 0s;
}
.hero-content > .eyebrow {
  animation-delay: 0.1s;
}
.hero-content > h1 {
  animation-delay: 0.2s;
}
.hero-content > .lede {
  animation-delay: 0.3s;
}
.hero-content > .signup-form {
  animation-delay: 0.4s;
}
@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-content > * {
    animation: none;
    opacity: 1;
  }
}

/* ---------- Scroll-Reveal (Rest der Seite) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.7s ease-out,
    transform 0.7s ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.hero-icon {
  margin-bottom: 22px;
}
.hero-icon .mikrobe-svg {
  display: block;
  width: clamp(200px, 24vw, 280px);
  height: auto;
  max-width: 100%;
  margin: 0 auto;
}

/* ---------- decorative floaters ---------- */
.decor {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  will-change: transform, filter;
}

/* Desktop: links/rechts flankierend um die Mikrobe verteilt, organisch
   gestaffelt. Horizontal relativ zur Content-Mitte verankert (calc(50% + …)
   statt Prozent der vollen .hero-Breite) – bleibt so auch auf sehr breiten
   Screens nah an der Mikrobe statt im leeren Rand zu landen. */
.decor-hero-1 {
  top: 10%;
  left: calc(50% + 380px);
  width: 30px;
}
.decor-hero-2 {
  top: 26%;
  left: calc(50% + 460px);
  width: 24px;
}
.decor-hero-3 {
  top: 56%;
  left: calc(50% - 420px);
  width: 40px;
}
.decor-hero-4 {
  top: 34%;
  left: calc(50% - 480px);
  width: 100px;
  opacity: 0.8;
}
.decor-hero-5 {
  top: 16%;
  left: calc(50% - 350px);
  width: 22px;
}
.decor-hero-6 {
  top: 66%;
  left: calc(50% - 400px);
  width: 22px;
}
.decor-hero-7 {
  top: 44%;
  left: calc(50% + 340px);
  width: 36px;
}
.decor-hero-8 {
  top: 60%;
  left: calc(50% + 420px);
  width: 20px;
  transform: rotate(118deg);
}

/* 4 Punkte gleichmäßig auf einer Ellipse in den 4 Ecken des Banners */
.decor-cta-1 {
  top: calc(23% - 13px);
  left: calc(20% - 13px);
  width: 26px;
}
.decor-cta-2 {
  top: calc(23% - 11px);
  left: calc(80% - 11px);
  width: 22px;
}
.decor-cta-3 {
  top: calc(77% - 9px);
  left: calc(20% - 9px);
  width: 18px;
}
.decor-cta-4 {
  top: calc(77% - 15px);
  left: calc(80% - 15px);
  width: 30px;
}

.eyebrow {
  display: inline-block;
  display: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(6px);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(34px, 6.5vw, 56px);
  line-height: 1.08;
  color: var(--ink);
  margin: 0 auto 24px;
}
.hero h1 em {
  color: var(--purple);
}
.lede {
  font-size: clamp(16px, 2.4vw, 19px);
  color: var(--ink-2);
  max-width: 48ch;
  margin: 0 auto 30px;
}

/* ---------- form ---------- */
.signup-form {
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
}
.field-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--r-lg);
  padding: 6px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(83, 74, 183, 0.1);
}
.field-row input[type="email"] {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: var(--body);
  font-size: 16px;
  color: var(--ink);
  padding: 12px 16px;
  outline: none;
}
.field-row input[type="email"]::placeholder {
  color: #a8a496;
}
.field-row button {
  flex: 0 0 auto;
  border: 0;
  cursor: pointer;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  background: var(--ink-2);
  padding: 13px 22px;
  border-radius: var(--r-md);
  transition:
    transform 0.12s,
    background 0.2s;
}
.field-row button:hover {
  background: var(--purple);
}
.field-row button:active {
  transform: scale(0.97);
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 4px 0;
  font-size: 13px;
  color: var(--muted);
}
.consent input {
  margin-top: 3px;
  accent-color: var(--purple);
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}
.consent a {
  color: var(--ink-2);
  text-decoration: underline;
}

.consent-notice {
  font-size: 12px;
  color: var(--ink);
  margin: 14px 4px 0;
  text-align: center;
}
.consent-notice a {
  color: var(--ink-2);
  text-decoration: underline;
}

.form-error {
  display: none;
  font-size: 13px;
  color: #661d1d;
  background: #ffeded;
  border: 1px solid #ff4949;
  border-radius: var(--r-sm);
  padding: 10px 14px;
  margin-top: 12px;
}
.form-error.show {
  display: block;
}

.success {
  display: none;
  text-align: center;
  background: var(--amber-3);
  border-radius: var(--r-md);
  padding: 22px;
  max-width: 500px;
  margin: 0 auto;
}
.success.show {
  display: block;
}
.success strong {
  font-family: var(--display);
  font-style: italic;
  font-size: 20px;
  color: var(--ink);
  display: block;
  margin-bottom: 6px;
}
.success span {
  font-size: 14px;
  color: var(--ink-2);
}

/* ---------- features ---------- */
.features {
  padding: 64px 0 24px;
  text-align: center;
}

.features h2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(38px, 5vw, 48px);
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 32px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.feature-card {
  border-radius: 24px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background:
    linear-gradient(0deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.9) 100%), linear-gradient(112deg, rgba(250, 238, 218, 0.4) 0%, rgba(191, 131, 252, 0.4) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.36) 100%), radial-gradient(90% 80% at 20% 70%, rgba(250, 199, 117, 0.7) 0%, rgba(250, 199, 117, 0) 60%),
    radial-gradient(80% 70% at 85% 75%, rgba(194, 160, 234, 0.65) 0%, rgba(194, 160, 234, 0) 55%), radial-gradient(60% 90% at 50% 20%, rgba(246, 242, 234, 0.36) 0%, rgba(246, 242, 234, 0) 50%),
    linear-gradient(124deg, #fac775 0%, #e8b06a 25%, #d9a0c4 50%, #c4a0ea 75%, #b68de8 100%), linear-gradient(0deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.9) 100%),
    rgba(255, 255, 255, 0.9);
  padding: 16px 16px 20px;
}
.feature-card-image {
  aspect-ratio: 270 / 161;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.06);
}
.feature-card-image--1 {
  background:
    radial-gradient(120% 100% at 20% 15%, rgba(250, 199, 117, 0.55) 0%, transparent 60%),
    linear-gradient(135deg, #fdc854 0%, #e7ac8b 45%, #c481e1 75%, #ba74fb 100%);
}
.feature-card-image--2 {
  background:
    radial-gradient(120% 100% at 50% 10%, rgba(246, 242, 234, 0.85) 0%, transparent 55%),
    linear-gradient(160deg, #fdc854 0%, #e7ac8b 45%, #c481e1 75%, #ba74fb 100%);
}
.feature-card-image--3 {
  background:
    radial-gradient(110% 90% at 45% 15%, rgba(246, 242, 234, 0.7) 0%, transparent 50%),
    radial-gradient(120% 100% at 70% 25%, rgba(250, 199, 117, 0.55) 0%, transparent 55%),
    linear-gradient(140deg, #fdc854 0%, #e7ac8b 45%, #c481e1 75%, #ba74fb 100%);
}
.feature-card-text {
  text-align: left;
}
.feature-card-image img {
  width: 45%;
  height: auto;
  scale: 0.6;
}
.feature-grid .feature-card:nth-child(1) .feature-card-image img {
  scale: 0.75;
}
.feature-grid .feature-card:nth-child(2) .feature-card-image img {
  scale: 0.85;
}
.feature-grid .feature-card:nth-child(4) .feature-card-image img {
  scale: 0.7;
}
.feature-grid .feature-card:nth-child(7) .feature-card-image img {
  scale: 0.75;
}
.feature-card h3 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 8px;
}
.feature-card h3 em {
  font-style: italic;
  color: var(--purple);
}
.feature-card p {
  font-family: var(--body);
  font-size: 14px;
  color: var(--ink-2);
}

/* ---------- cta banner ---------- */
.cta-banner {
  position: relative;
  text-align: center;
  padding: 56px 32px;
  margin: 48px 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--gradient-soft);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.8);
}
.cta-banner h2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 4vw, 34px);
  color: var(--ink);
  max-width: 22ch;
  margin: 0 auto 16px;
}
.cta-banner p {
  font-size: 15px;
  color: var(--ink-2);
  max-width: 52ch;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.btn-outline {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-2);
  background: transparent;
  border: 1.5px solid var(--ink-2);
  padding: 12px 26px;
  border-radius: 999px;
  transition:
    background 0.2s,
    color 0.2s;
}
.btn-outline:hover {
  background: var(--ink-2);
  color: #fff;
}
.cta-banner-content {
  position: relative;
  z-index: 1;
}

/* ---------- app preview ---------- */
.app-preview {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 32px 0;
  margin: 56px 0 48px;
  border-radius: var(--r-lg);
  border: 2px solid rgba(255, 255, 255, 0.8);
  overflow: hidden;
  background: var(--gradient-hero);
}
.app-preview-content {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 32px;
}
.app-preview-content h2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(38px, 5vw, 48px);
  line-height: 1.2;
  color: var(--ink);
  max-width: 20ch;
  margin: 0 auto 12px;
}
.app-preview-content h2 em {
  color: var(--purple);
}
.app-preview-content .lede {
  margin: 0 auto 20px;
}
.app-preview-phone {
  position: relative;
  z-index: 1;
  width: clamp(260px, 34vw, 340px);
}
.app-preview .decor {
  filter: brightness(0) invert(1);
}
.decor-preview-1 {
  top: calc(18% - 15px);
  left: calc(12% - 15px);
  width: 30px;
}
.decor-preview-2 {
  top: calc(72% - 11px);
  left: calc(10% - 11px);
  width: 22px;
}
.decor-preview-3 {
  top: calc(45% - 9px);
  left: calc(6% - 9px);
  width: 18px;
}
.decor-preview-4 {
  top: calc(20% - 18px);
  left: calc(88% - 18px);
  width: 36px;
}
.decor-preview-5 {
  top: calc(50% - 50px);
  left: calc(93% - 50px);
  width: 100px;
  opacity: 0.8;
}
.decor-preview-6 {
  top: calc(78% - 11px);
  left: calc(90% - 11px);
  width: 22px;
}

/* ---------- phone showcase ---------- */
.phone-showcase {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 0 64px;
}
.phone-frame {
  width: 200px;
  aspect-ratio: 9 / 19.5;
  border-radius: 28px;
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: 0 20px 40px rgba(38, 33, 92, 0.18);
  background:
    radial-gradient(ellipse 80% 90% at 20% 20%, rgba(250, 199, 117, 0.7) 0%, transparent 60%), radial-gradient(ellipse 80% 90% at 85% 85%, rgba(194, 160, 234, 0.6) 0%, transparent 60%), var(--amber-2);
}
.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.phone-frame--left {
  transform: rotate(-8deg);
  margin-right: -40px;
  z-index: 1;
}
.phone-frame--right {
  transform: rotate(8deg);
  margin-left: -40px;
  z-index: 1;
}
.phone-frame--center {
  z-index: 2;
}

/* ---------- faq ---------- */
.faq {
  max-width: 680px;
  margin: 0 auto;
  padding: 16px var(--gutter) 64px;
}
.faq-header {
  margin-bottom: 40px;
}
.faq-header h2 {
  margin-top: 8px;
}
.faq-group + .faq-group {
  margin-top: 42px;
}
.faq-group-title {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(23px, 4vw, 30px);
  line-height: 1.2;
  color: var(--ink);
  margin: 0 4px 10px;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--body);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  text-align: left;
  padding: 20px 4px;
}
.faq-question .faq-icon {
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 400;
  color: var(--purple);
  line-height: 1;
  transition: transform 0.2s;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  display: none;
  padding: 0 4px 20px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}
.faq-item.open .faq-answer {
  display: block;
}

/* ---------- feedback teaser ---------- */
.feedback-teaser {
  text-align: center;
  padding: 56px 32px;
  margin: 48px 0;
  background: var(--gradient-hero);
  border-radius: var(--r-lg);
}
.feedback-teaser h2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(26px, 4.5vw, 38px);
  line-height: 1.15;
  color: var(--ink);
  max-width: 20ch;
  margin: 0 auto 12px;
}
.feedback-teaser h2 em {
  color: var(--purple);
}
.feedback-teaser .lede {
  margin-bottom: 28px;
}

.btn-primary {
  display: inline-block;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  background: var(--ink-2);
  padding: 13px 28px;
  border-radius: 999px;
  transition:
    transform 0.12s,
    background 0.2s;
}
.btn-primary:hover {
  background: var(--purple);
}
.btn-primary:active {
  transform: scale(0.97);
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
  text-align: center;
}
.footer-inner .brand {
  display: inline-flex;
  margin-bottom: 14px;
}
.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 13px;
  margin-bottom: 14px;
}
.footer-links a {
  text-decoration: none;
  color: var(--ink-2);
}
.footer-links a:hover {
  text-decoration: underline;
}
.fine {
  font-size: 12px;
  color: var(--muted);
  max-width: 52ch;
  margin: 0 auto;
}

/* ---------- focus ---------- */
:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .app-preview .decor,
  .cta-banner .decor {
    display: none;
  }
}
@media (min-width: 561px) and (max-width: 1100px) {
  .hero .decor {
    display: none;
  }
}
@media (max-width: 560px) {
  .break-desktop {
    display: none;
  }
  /* Nur 4 Deko-Elemente rund ums Hero-Icon, Rest ausgeblendet */
  .decor-hero-2,
  .decor-hero-3,
  .decor-hero-5,
  .decor-hero-6 {
    display: none;
  }
  .decor-hero-8 {
    top: 16%;
    left: 16%;
  }
  .decor-hero-4 {
    top: 18%;
    left: calc(90% - 25px);
    width: 50px;
  }
  .decor-hero-7 {
    top: 38%;
    left: 10%;
  }
  .decor-hero-1 {
    top: 36%;
    left: calc(88% - 15px);
  }
}
@media (max-width: 720px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .field-row {
    flex-direction: column;
    border-radius: var(--r-md);
    padding: 8px;
  }
  .field-row input[type="email"] {
    text-align: center;
  }
  .field-row button {
    width: 100%;
  }
  .phone-frame {
    width: 130px;
  }
  .phone-frame--left {
    margin-right: -26px;
  }
  .phone-frame--right {
    margin-left: -26px;
  }
  .cta-banner {
    padding: 40px 20px;
  }
  .feedback-teaser {
    padding: 40px 20px;
  }
  .app-preview {
    padding-top: 32px;
    padding-left: 12px;
    padding-right: 12px;
  }
}
