/* Hanper GmbH — Corporate (hanper.de/), dunkel wie TaktFlo-App, Akzent Blau (Logo) */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Outfit:wght@500;600;700&display=swap");

html.hp-root {
  --hp-bg: #252830;
  --hp-bg-elev: #2c3039;
  --hp-bg-card: rgba(50, 55, 66, 0.72);
  --hp-border: rgba(255, 255, 255, 0.09);
  --hp-text: #e8eaef;
  --hp-muted: #9aa3b2;
  --hp-accent: #2563eb;
  --hp-accent-2: #3b82f6;
  --hp-accent-bright: #60a5fa;
  --hp-accent-soft: rgba(37, 99, 235, 0.14);
  --hp-glow: rgba(37, 99, 235, 0.28);
  --hp-glass-bg: rgba(50, 55, 66, 0.55);
  --hp-glass-border: rgba(255, 255, 255, 0.1);
  --hp-glass-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 20px 50px rgba(0, 0, 0, 0.35),
    0 0 48px -12px rgba(37, 99, 235, 0.2);
  --hp-radius: 16px;
  --hp-radius-lg: 22px;
  --hp-max: 960px;
  --hp-font: "DM Sans", system-ui, sans-serif;
  --hp-display: "Outfit", var(--hp-font);
  --hp-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --hp-ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --hp-dur-2: 320ms;
}

html.hp-root,
body.hp-root {
  margin: 0;
  min-height: 100%;
  color-scheme: dark;
}

body.hp-root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--hp-font);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.012em;
  color: var(--hp-text);
  background: var(--hp-bg);
  -webkit-font-smoothing: antialiased;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
}

body.hp-root * {
  box-sizing: border-box;
}

.hp-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 100% 65% at 50% -18%, rgba(37, 99, 235, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 35%, rgba(59, 130, 246, 0.12), transparent 48%),
    radial-gradient(ellipse 60% 45% at 0% 75%, rgba(30, 58, 95, 0.18), transparent 50%),
    linear-gradient(180deg, #2a2e36 0%, var(--hp-bg) 42%, #1e2229 100%);
}

.hp-container {
  width: min(100% - 2.5rem, var(--hp-max));
  margin-inline: auto;
}

.hp-gradient-text {
  background: linear-gradient(120deg, #93c5fd 0%, var(--hp-accent) 45%, var(--hp-accent-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ─── Main ─── */
.hp-main {
  flex: 1;
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 10vw, 4.5rem) 0 clamp(3rem, 8vw, 4.5rem);
}

.hp-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
}

.hp-hero__logo-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto clamp(2rem, 5vw, 2.75rem);
  padding: clamp(1.25rem, 4vw, 2.25rem) clamp(1.5rem, 6vw, 3rem);
  box-sizing: border-box;
}

.hp-hero__logo-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -8%;
  bottom: -8%;
  width: 124%;
  max-width: 32rem;
  transform: translateX(-50%);
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(
    ellipse 58% 52% at 50% 40%,
    rgba(96, 165, 250, 0.55) 0%,
    rgba(37, 99, 235, 0.28) 32%,
    rgba(59, 130, 246, 0.1) 55%,
    transparent 72%
  );
  filter: blur(14px);
  pointer-events: none;
  animation: hpLogoGlow 6s ease-in-out infinite alternate;
}

@keyframes hpLogoGlow {
  from {
    opacity: 0.88;
    transform: translateX(-50%) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) scale(1.04);
  }
}

.hp-hero__logo {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 28rem);
  max-width: 28rem;
  height: auto;
  max-height: 12.5rem;
  margin-inline: auto;
  object-fit: contain;
  filter: brightness(2.05) contrast(1.26) saturate(1.2)
    drop-shadow(0 0 48px rgba(147, 197, 253, 0.75))
    drop-shadow(0 0 24px rgba(96, 165, 250, 0.65))
    drop-shadow(0 16px 48px rgba(191, 219, 254, 0.4));
}

.hp-eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hp-muted);
}

.hp-hero__title {
  font-family: var(--hp-display);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 0 0 1.15rem;
  color: var(--hp-text);
}

.hp-lead {
  margin: 0 auto;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  line-height: 1.55;
  color: var(--hp-muted);
}

/* ─── Glas-Karte (TaktFlo-Produkt) ─── */
.hp-glass {
  background: var(--hp-glass-bg);
  border: 1px solid var(--hp-glass-border);
  border-radius: var(--hp-radius-lg);
  box-shadow: var(--hp-glass-shadow);
  backdrop-filter: blur(28px) saturate(1.35);
  -webkit-backdrop-filter: blur(28px) saturate(1.35);
}

.hp-product {
  padding: clamp(1.35rem, 4vw, 1.85rem);
}

.hp-product__grid {
  display: grid;
  grid-template-columns: minmax(0, 10rem) minmax(0, 1fr);
  gap: 1.5rem 2rem;
  align-items: center;
}

.hp-product__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
  border-radius: var(--hp-radius);
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  transition: transform var(--hp-dur-2) var(--hp-ease-spring), box-shadow var(--hp-dur-2) var(--hp-ease-out);
}

.hp-product__visual:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 40px -12px rgba(37, 99, 235, 0.35);
}

.hp-product__visual img {
  width: 100%;
  max-width: 10rem;
  height: auto;
  object-fit: contain;
}

.hp-product__title {
  font-family: var(--hp-display);
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
}

.hp-product__text {
  margin: 0 0 1.25rem;
  color: var(--hp-muted);
  font-size: 1rem;
  line-height: 1.52;
  max-width: 28rem;
}

.hp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 180ms var(--hp-ease-out),
    box-shadow var(--hp-dur-2) var(--hp-ease-out),
    background var(--hp-dur-2) var(--hp-ease-out),
    border-color var(--hp-dur-2) var(--hp-ease-out);
}

.hp-btn--primary {
  color: #fff !important;
  background: linear-gradient(135deg, var(--hp-accent), var(--hp-accent-2));
  box-shadow:
    0 4px 18px var(--hp-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hp-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 32px rgba(37, 99, 235, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.hp-btn--ghost {
  color: var(--hp-text) !important;
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--hp-border);
  backdrop-filter: blur(8px);
}

.hp-btn--ghost:hover {
  border-color: rgba(59, 130, 246, 0.45);
  color: var(--hp-accent-bright) !important;
  background: var(--hp-accent-soft);
  transform: translateY(-1px);
}

.hp-btn:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.85);
  outline-offset: 3px;
}

/* ─── Footer ─── */
.hp-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--hp-border);
  background: rgba(30, 34, 41, 0.88);
  backdrop-filter: blur(12px);
  padding: 1.35rem 0 1.75rem;
}

.hp-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.hp-footer__copy {
  margin: 0;
  font-size: 0.875rem;
  color: var(--hp-text);
  opacity: 0.88;
  white-space: nowrap;
}

.hp-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
}

.hp-footer__links a {
  font-size: 0.875rem;
  color: var(--hp-muted);
  text-decoration: none;
  transition: color var(--hp-dur-2) var(--hp-ease-out);
}

.hp-footer__links a:hover {
  color: var(--hp-accent-bright);
}

@media (max-width: 640px) {
  .hp-product__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hp-product__text {
    margin-inline: auto;
  }

  .hp-actions {
    justify-content: center;
  }

  .hp-footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .hp-footer__links {
    justify-content: center;
  }

  .hp-footer__copy {
    width: 100%;
    order: 2;
  }
}

/* ─── Legal-Seiten (hell, einheitlich: hanper.de + TaktFlo) ─── */
html.hp-legal {
  --hp-bg: #f8fafc;
  --hp-text: #0f172a;
  --hp-muted: #475569;
  --hp-link: #2563eb;
  --hp-accent: #2563eb;
  --hp-accent-2: #3b82f6;
  --hp-glow: rgba(37, 99, 235, 0.28);
  --hp-font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hp-display: "Outfit", var(--hp-font);
  --hp-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --hp-dur-2: 320ms;
  color-scheme: light;
}

html.hp-legal,
body.hp-legal {
  margin: 0;
  min-height: 100%;
}

body.hp-legal {
  box-sizing: border-box;
  font-family: var(--hp-font);
  font-size: 1.0625rem;
  line-height: 1.7;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--hp-bg);
  color: var(--hp-text);
}

body.hp-legal * {
  box-sizing: inherit;
}

.hp-legal-inner {
  width: min(100% - 2.5rem, 820px);
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.hp-legal-inner h1 {
  font-family: var(--hp-display);
  font-size: clamp(1.75rem, 4.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1.25rem;
  color: var(--hp-text);
  letter-spacing: -0.03em;
}

.hp-legal-inner h2 {
  font-family: var(--hp-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 2.25rem 0 0.85rem;
  color: var(--hp-text);
  letter-spacing: -0.02em;
}

.hp-legal-inner h3,
.hp-legal-inner h4 {
  font-family: var(--hp-font);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 1.75rem 0 0.65rem;
  color: var(--hp-text);
  letter-spacing: -0.015em;
}

.hp-legal-inner p,
.hp-legal-inner li {
  color: var(--hp-muted);
  line-height: 1.75;
}

.hp-legal-inner p {
  margin: 0 0 1rem;
}

.hp-legal-inner ul,
.hp-legal-inner ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.hp-legal-inner li {
  margin-bottom: 0.45rem;
}

.hp-legal-inner strong {
  color: var(--hp-text);
  font-weight: 600;
}

.hp-legal-inner a {
  color: var(--hp-link);
  text-decoration: none;
  font-weight: 500;
}

.hp-legal-inner a:hover {
  text-decoration: underline;
}

.hp-legal-inner code {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.88em;
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: #e2e8f0;
  color: var(--hp-text);
}

.hp-legal-back {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--hp-link);
  text-decoration: none;
}

.hp-legal-back:hover {
  text-decoration: underline;
}

.hp-legal-back::before {
  content: "\2190  ";
}

/* ─── Datenschutz-Zusammenfassung ─── */
.hp-privacy-intro {
  font-size: 1.1rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.hp-privacy-cta {
  text-align: center;
  margin: 2.5rem 0 1rem;
}

body.hp-legal .hp-legal-inner a.hp-btn {
  display: inline-flex;
  text-decoration: none;
}

body.hp-legal .hp-legal-inner a.hp-btn--primary {
  color: #fff !important;
  background: linear-gradient(135deg, var(--hp-accent), var(--hp-accent-2));
  box-shadow:
    0 4px 18px var(--hp-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.hp-legal .hp-legal-inner a.hp-btn--primary:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow:
    0 12px 32px rgba(37, 99, 235, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

@media (prefers-reduced-motion: reduce) {
  .hp-btn:hover,
  .hp-product__visual:hover {
    transform: none;
  }

  .hp-hero__logo-stage::before {
    animation: none;
  }
}
