@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@700&display=swap');

/* Hero section styles — ported 1:1 from Hero.module.scss + HeroBackground + HeroImage */

.hero-section {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: flex-start;
  padding-top: calc(92px + env(safe-area-inset-top, 0px));
  padding-bottom: 16px;
  overflow: hidden;
  background: var(--hero-bg, var(--background));
  color: var(--text);
}

@media (min-width: 768px) {
  .hero-section {
    align-items: center;
    padding-top: calc(112px + env(safe-area-inset-top, 0px));
    padding-bottom: 32px;
  }
}

@media (min-width: 1024px) {
  .hero-section {
    min-height: 78svh;
    padding-top: 120px;
    padding-bottom: 40px;
  }
}

/* ─── Background orbs ─────────────────────────────────────── */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--hero-bg);
  pointer-events: none;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-gradient);
  opacity: var(--hero-overlay-opacity);
  z-index: 1;
  pointer-events: none;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-fade);
  z-index: 2;
  pointer-events: none;
}

.mesh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: var(--hero-orb-opacity, 1);
  z-index: 0;
}

.orb-blue {
  top: -10%;
  right: -5%;
  width: min(60vw, 760px);
  height: min(60vw, 760px);
  background: var(--hero-orb-blue);
}

.orb-soft {
  bottom: 0;
  left: -10%;
  width: min(52vw, 620px);
  height: min(52vw, 620px);
  background: var(--hero-orb-accent);
}

@media (max-width: 767px) {
  .mesh-orb {
    filter: blur(80px);
    opacity: var(--hero-orb-opacity, 0.82);
  }

  .orb-blue {
    top: -18%;
    right: -24%;
    width: 88vw;
    height: 88vw;
  }

  .orb-soft {
    left: -30%;
    bottom: -14%;
    width: 78vw;
    height: 78vw;
  }
}

.floating-glow {
  animation: floatGlow 16s ease-in-out infinite;
}

@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 10px) scale(0.95); }
}

/* ─── Grid ────────────────────────────────────────────────── */
.hero-section .container { position: relative; z-index: 2; }

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: center;
  width: 100%;
}

@media (max-width: 767px) { .hero-grid { gap: 10px; } }

@media (min-width: 768px) { .hero-grid { gap: 36px; } }

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 52fr 48fr; gap: 56px; }
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  position: relative;
  z-index: 2;
}

@media (max-width: 767px) { .hero-left { order: 2; } }

@media (min-width: 768px) { .hero-left { gap: 22px; } }

.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
}

@media (max-width: 767px) { .hero-right { order: 1; } }

/* ─── Content ─────────────────────────────────────────────── */
.hero-content-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

@media (min-width: 768px) { .hero-content-stack { gap: 14px; } }

.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: var(--primary-light);
  padding: 5px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(27, 84, 216, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
}

@media (max-width: 767px) { .hero-eyebrow { display: none; } }

@media (min-width: 768px) {
  .hero-eyebrow { font-size: var(--fs-xs); letter-spacing: 0.12em; padding: 6px 14px; gap: 8px; }
}

.hero-eyebrow-icon { flex-shrink: 0; color: var(--primary); }

.hero-headline {
  margin: 0;
  color: var(--heading);
  -webkit-text-fill-color: var(--heading);
  font-size: clamp(1.1rem, 4.5vw + 0.1rem, 2.8rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.03em;
  max-width: 100%;
  background: none;
}

@media (max-width: 767px) {
  .hero-headline {
    font-size: clamp(1.55rem, 6vw + 0.3rem, 2.2rem);
    margin: 12px 0;
  }
}

@media (min-width: 768px) {
  .hero-headline { font-size: clamp(1.75rem, 6.4vw + 0.2rem, 3.1rem); line-height: 1.15; }
}

@media (min-width: 1024px) { .hero-headline { max-width: 18ch; } }

.hero-description {
  font-size: clamp(0.9rem, 1.5vw + 0.5rem, 1.1rem);
  line-height: 1.68;
  color: var(--text);
  max-width: 52ch;
}

[data-theme='dark'] .hero-description { color: #ffffff; }

@media (min-width: 768px) {
  .hero-description { font-size: clamp(1rem, 0.75vw + 0.75rem, var(--fs-body)); line-height: 1.85; }
}

.hero-description p { margin: 0; color: inherit; text-wrap: pretty; }

@media (max-width: 767px) {
  .hero-description p {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* ─── CTA ─────────────────────────────────────────────────── */
.hero-cta-cluster { width: 100%; margin-top: 4px; }

@media (max-width: 767px) { .hero-cta-cluster { display: none; } }

@media (min-width: 768px) { .hero-cta-cluster { margin-top: 0; } }

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  align-items: center;
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
}

.hero-btn {
  --btn-bg: var(--primary-gradient);
  --btn-color: var(--on-primary);
  --btn-shadow: 0 4px 16px rgba(27, 84, 216, 0.22);
  --btn-hover-shadow: 0 6px 20px rgba(27, 84, 216, 0.32);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--btn-bg);
  color: var(--btn-color);
  box-shadow: var(--btn-shadow);
  border: none;
  width: auto;
  min-width: auto;
  max-width: none;
  padding: 0 14px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 480px) {
  .hero-btn {
    width: 100%;
  }
}

.hero-btn[data-variant="primary"] {
  --btn-bg: var(--primary-gradient);
  --btn-color: var(--on-primary);
  --btn-shadow: 0 4px 16px rgba(27, 84, 216, 0.22);
  --btn-hover-shadow: 0 6px 20px rgba(27, 84, 216, 0.32);
}

.hero-btn[data-variant="whatsapp"] {
  --btn-bg: #25D366;
  --btn-color: #ffffff;
  --btn-shadow: 0 4px 16px rgba(37, 211, 102, 0.22);
  --btn-hover-shadow: 0 6px 20px rgba(37, 211, 102, 0.32);
}

.hero-btn[data-variant="whatsapp"]:hover {
  --btn-bg: #20ba59;
}

.hero-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-btn-text {
  opacity: 1;
  margin-left: 8px;
  overflow: hidden;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--btn-hover-shadow);
}

.hero-btn:hover .hero-btn-icon {
  transform: scale(1.1);
}

.hero-btn:active {
  transform: translateY(0);
  box-shadow: var(--btn-shadow);
}

@media (min-width: 768px) {
  .hero-buttons {
    gap: 16px;
    margin-top: 2px;
  }

  .hero-btn {
    height: 56px;
    padding: 0 28px;
    font-size: 14px;
  }
}

/* ─── Hero image ──────────────────────────────────────────── */

.hero-image-wrapper { position: relative; width: 100%; display: flex; flex-direction: column; align-items: flex-start; }

.hero-slogan {
  font-family: 'Caveat', cursive, sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  align-self: flex-start;
  transform: rotate(-1.5deg);
  margin-left: 8px;
  letter-spacing: 0.02em;
}
[data-theme='dark'] .hero-slogan { color: #F5C832; }

@media (min-width: 768px) { .hero-slogan { font-size: 2.6rem; margin-bottom: 16px; } }

.image-container {
  position: relative; width: 100%; border-radius: 20px; overflow: visible;
}
@media (min-width: 1024px) { .image-container { border-radius: 24px; } }
@media (max-width: 767px) {
  .image-container {
    border-radius: 12px; display: flex; flex-direction: column; gap: 16px; overflow: visible;
  }
}

/* ── Hero image frame ────────────────────────────────────── */
.hero-image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

@media (min-width: 1024px) {
  .hero-image-frame { border-radius: 24px; box-shadow: var(--shadow-lg); }
}

@media (max-width: 767px) {
  .hero-image-frame { aspect-ratio: 1.7/1; border-radius: 12px; }
}

.slider-track {
  display: flex; width: 100%; height: 100%;
  will-change: transform; cursor: grab;
}
.slider-track.grabbing { cursor: grabbing; }

.slide {
  flex: 0 0 100%; width: 100%; height: 100%;
  position: relative; user-select: none; -webkit-user-drag: none;
}

.hero-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  pointer-events: none; user-select: none;
}

.NRW-overlay {
  position: absolute; bottom: 0; left: 0; right: 0; height: 35%;
  background: linear-gradient(to top, rgba(26, 35, 50, 0.25) 0%, transparent 100%);
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 12px; pointer-events: none; z-index: 5;
}
.dom-silhouette { width: 120px; height: auto; color: rgba(255, 255, 255, 0.35); }

.cards-tabs-wrapper {
  display: contents;
}

@media (max-width: 767px) {
  .cards-tabs-wrapper {
    display: none;
  }
}

/* ── Tabs (mobile only) ──────────────────────────────────── */
.tabs-header {
  display: none;
}
@media (max-width: 767px) {
  .tabs-header {
    display: inline-flex; position: relative; align-self: center;
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 9999px; padding: 3px; gap: 2px;
    width: 100%; max-width: 320px; height: 44px; z-index: 10;
    box-shadow: var(--shadow-sm); margin-top: 4px;
  }
}

.tab-btn {
  position: relative; flex: 1;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 16px; font-size: 13px; font-weight: 700;
  color: var(--text-muted, #718096); background: transparent;
  border: none; border-radius: 9999px; cursor: pointer;
  z-index: 2; transition: color 0.25s ease; white-space: nowrap;
}
[data-theme='dark'] .tab-btn { color: #a8b5c4; }
.tab-btn.active { color: var(--primary); }
[data-theme='dark'] .tab-btn.active { color: #ffffff; }

.tab-indicator {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: 0;
  background: var(--surface); border-radius: 9999px; z-index: 1;
  transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1), width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
[data-theme='dark'] .tab-indicator {
  background: var(--card); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
}

.tabs-content { display: contents; }

.tab-panel { display: contents; }

@media (max-width: 767px) {
  .tab-panel { display: none; width: 100%; }
  .tab-panel.active { display: flex; flex-direction: column; }
}

/* ── Floating Cards ──────────────────────────────────────── */
.floating-card {
  position: absolute;
  bottom: -10px;
  right: -10px;
  padding: 16px 18px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  z-index: 10;
  width: fit-content;
  max-width: min(92%, 320px);
}

@media (min-width: 768px) {
  .floating-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-color: var(--glass-border);
    bottom: -18px;
    right: -14px;
    padding: 20px 24px;
  }
}

@media (max-width: 767px) {
  .floating-card {
    position: relative; bottom: auto; right: auto; margin-top: 0;
    width: 100%; max-width: none; padding: 16px 20px; border-radius: 16px;
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  }
}

.floating-card--left {
  right: auto; left: -14px; bottom: -18px;
}
@media (min-width: 768px) {
  .floating-card--left {
    right: auto;
    left: -14px;
    bottom: -18px;
  }
}
@media (max-width: 767px) {
  .floating-card--left { position: relative; left: auto; bottom: auto; }
}

.card-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 700; color: var(--heading);
}
@media (min-width: 768px) { .card-item { gap: 12px; font-size: 14.5px; } }
[data-theme='dark'] .card-item { color: #ffffff; }

.card-text-group { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.card-text-title {
  font-size: 13.5px; font-weight: 700; color: var(--heading); line-height: 1.1;
}
[data-theme='dark'] .card-text-title { color: #ffffff; }
@media (min-width: 768px) { .card-text-title { font-size: 14.5px; } }

.card-text-desc {
  font-size: 11px; font-weight: 500; color: var(--text-muted, #718096); line-height: 1.2;
}
[data-theme='dark'] .card-text-desc { color: #A0AEC0; }

/* ── Icon circles ────────────────────────────────────────── */
.icon-circle {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
}
@media (min-width: 768px) { .icon-circle { width: 26px; height: 26px; } }
@media (max-width: 767px) { .icon-circle svg { width: 14px !important; height: 14px !important; } }

.icon-circle--respekt { background-color: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.25); color: #ef4444; }
[data-theme='dark'] .icon-circle--respekt { background-color: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.35); color: #f87171; }

.icon-circle--diskretion { background-color: rgba(27,84,216,0.08); border: 1px solid rgba(27,84,216,0.25); color: var(--primary); }
[data-theme='dark'] .icon-circle--diskretion { background-color: rgba(75,138,245,0.15); border-color: rgba(75,138,245,0.35); color: #6BA0FF; }

.icon-circle--verstaendnis { background-color: rgba(99,102,241,0.08); border: 1px solid rgba(99,102,241,0.25); color: #6366f1; }
[data-theme='dark'] .icon-circle--verstaendnis { background-color: rgba(99,102,241,0.15); border-color: rgba(99,102,241,0.35); color: #818cf8; }

.icon-circle--viewing { background-color: rgba(27,84,216,0.12); border: 1px solid rgba(27,84,216,0.35); color: var(--primary); }
[data-theme='dark'] .icon-circle--viewing { background-color: rgba(75,138,245,0.2); border-color: rgba(75,138,245,0.5); color: #6BA0FF; }

.icon-circle--time { background-color: rgba(212,160,18,0.12); border: 1px solid rgba(212,160,18,0.35); color: var(--accent); }
[data-theme='dark'] .icon-circle--time { background-color: rgba(232,184,32,0.18); border-color: rgba(232,184,32,0.5); color: #F5C832; }

.icon-circle--clean { background-color: rgba(22,163,74,0.12); border: 1px solid rgba(22,163,74,0.35); color: var(--success); }
[data-theme='dark'] .icon-circle--clean { background-color: rgba(22,163,74,0.18); border-color: rgba(22,163,74,0.5); color: #4ade80; }

/* ─── Hero Stats bar ──────────────────────────────────────── */
.hero-stats {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 20px 0;
}

.stats-row { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-value { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--heading); letter-spacing: -0.02em; }
.stat-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

/* ─── Mobile ──────────────────────────────────────────────── */
@media (max-width: 767px) {
  .hero-section { min-height: auto; }
  .hero-image-wrapper { max-width: 100%; margin-top: 8px; }
}
