/* ==========================================================================
   CSS Variables & Design Tokens - Healis Aesthetic
   ========================================================================== */
:root {
  /* Colors */
  --clr-primary: #0068ff;
  /* The vibrant Healis blue */
  --clr-bg: #ffffff;
  --clr-surface: #f1f4f9;
  /* Light grey/blue for cards */
  --clr-surface-dark: #e4e9f2;

  --clr-text-main: #111111;
  /* Almost black for headings */
  --clr-text-muted: #555555;
  /* Grey for paragraphs */

  /* Typography */
  --ff-main: "Poppins", sans-serif;

  /* Spacing */
  --sp-xs: 0.5rem;
  --sp-sm: 1rem;
  --sp-md: 2rem;
  --sp-lg: 4rem;
  --sp-xl: 8rem;

  /* Radii - Healis uses extreme border radii */
  --radius-pill: 100px;
  /* Buttons, tags */
  --radius-card: 40px;
  /* Smaller bento boxes */
  --radius-hero: 60px;
  /* Huge hero images, main container */

  /* Effects */
  --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 30px 60px rgba(0, 104, 255, 0.1);

  --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--ff-main);
  color: var(--clr-text-main);
  background-color: var(--clr-bg);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--clr-text-main);
  line-height: 1.1;
  font-weight: 500;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

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

ul {
  list-style: none;
}

.container {
  width: 92%;
  max-width: 1400px;
  /* Healis is quite wide */
  margin: 0 auto;
}

.section {
  padding: var(--sp-xl) 0;
}

.text-primary {
  color: var(--clr-primary);
}

.badge {
  background-color: var(--clr-surface);
  color: var(--clr-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--sp-sm);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: var(--radius-pill);
  font-family: var(--ff-main);
  font-weight: 500;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--clr-primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: #0056d6;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background-color: var(--clr-surface);
  color: var(--clr-text-main);
}

.btn-secondary:hover {
  background-color: var(--clr-surface-dark);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  /* Slight separation line */
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 1001;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background-color: var(--clr-primary);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.logo-icon::after {
  /* Faux icon detail */
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: #fff;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 1rem;
  color: var(--clr-text-muted);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--clr-primary);
}

.mobile-nav-toggle {
  display: none;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  min-height: 100vh;
  padding-top: 8rem;
  /* Account for fixed nav */
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  /* Massive typography */
  letter-spacing: -2px;
  margin-bottom: var(--sp-md);
  font-weight: 500;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-md);
  max-width: 90%;
}

.hero-image-wrapper {
  height: 80vh;
  min-height: 600px;
  border-radius: var(--radius-hero);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-soft);
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ==========================================================================
   Marquee (Ticker)
   ========================================================================== */
.marquee-wrapper {
  background-color: var(--clr-primary);
  color: #fff;
  padding: 1.5rem 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.marquee {
  display: inline-block;
  animation: marquee-scroll 30s linear infinite;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 1px;
}

.marquee span {
  display: inline-flex;
  align-items: center;
  margin-right: 2rem;
}

.marquee span::after {
  content: "✦";
  /* Star/dot separator */
  margin-left: 2rem;
  opacity: 0.5;
}

@keyframes marquee-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
  }

  /* Assuming content is doubled */
}

/* ==========================================================================
   Bento Grid Section (Leistungen)
   ========================================================================== */
.section-header {
  text-align: center;
  margin-bottom: var(--sp-lg);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--clr-text-muted);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Base Bento Card */
.bento-card {
  background-color: var(--clr-surface);
  border-radius: var(--radius-card);
  padding: 3rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.bento-large {
  grid-column: span 2;
  background-color: var(--clr-primary);
  color: #fff;
}

.bento-large p {
  color: rgba(255, 255, 255, 0.8);
}

.bento-icon {
  width: 60px;
  height: 60px;
  background-color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.bento-large .bento-icon {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: none;
}

.bento-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.bento-large h3 {
  color: #fff;
  font-size: 2rem;
}

.bento-card p {
  color: var(--clr-text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
  flex-grow: 1;
  /* Pushes the CTA link to bottom */
}

.bento-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #fff;
  color: var(--clr-primary);
  font-size: 1.25rem;
  align-self: flex-start;
  transition: var(--transition);
}

.bento-large .bento-cta {
  color: var(--clr-primary);
}

.bento-card:hover .bento-cta {
  background-color: var(--clr-primary);
  color: #fff;
  transform: translateX(5px);
}

.bento-large:hover .bento-cta {
  background-color: #fff;
  color: var(--clr-primary);
}

.bento-card.bento-card-join {
  border: 2px dashed rgba(0, 104, 255, 0.3);
  justify-content: center;
  align-items: center;
}

.bento-card.bento-card-join:hover {
  background-color: var(--clr-primary);
  border-style: solid;
}

.bento-card.bento-card-join:hover h3 {
  color: #fff !important;
}

.bento-card.bento-card-join:hover .bento-cta {
  background-color: #fff;
  color: var(--clr-primary);
  transform: translateX(5px);
}

/* ==========================================================================
   Team Section (Healis style image cards)
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.team-card {
  position: relative;
  border-radius: var(--radius-hero);
  overflow: hidden;
  height: 600px;
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.team-card:hover img {
  transform: scale(1.03);
}

.team-info-overlay {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: var(--radius-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.team-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.team-info p {
  color: var(--clr-primary);
  font-weight: 500;
  font-size: 0.875rem;
}

.team-card-join {
  background-color: var(--clr-surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  text-align: center;
  border: 2px dashed rgba(0, 104, 255, 0.3);
}

.team-card-join:hover {
  background-color: var(--clr-primary);
  color: #fff;
  border-style: solid;
}

.team-card-join .join-icon {
  width: 80px;
  height: 80px;
  background-color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--clr-primary);
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.team-card-join:hover .join-icon {
  transform: scale(1.1);
}

.team-card-join h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.team-card-join:hover h3 {
  color: #fff;
}

.team-card-join p {
  color: var(--clr-text-muted);
}

.team-card-join:hover p {
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--clr-surface);
  padding: 6rem 0 2rem;
  border-top-left-radius: var(--radius-hero);
  border-top-right-radius: var(--radius-hero);
  margin-top: 4rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-top h2 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  letter-spacing: -2px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
}

.footer h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 1rem;
  color: var(--clr-text-muted);
}

.footer-links a:hover {
  color: var(--clr-primary);
}

/* ==========================================================================
   Animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-image-wrapper {
    height: 60vh;
  }
}

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

  .bento-large {
    grid-column: 1;
  }

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

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-bottom-left-radius: var(--radius-card);
    border-bottom-right-radius: var(--radius-card);
  }

  .nav-links[data-visible="true"] {
    display: flex;
  }

  .mobile-nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact-hero {
  background-color: var(--clr-surface);
  border-radius: var(--radius-hero);
  padding: 6rem 2rem;
  text-align: center;
  margin-bottom: var(--sp-xl);
  position: relative;
  overflow: hidden;
}

.contact-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center,
      rgba(0, 104, 255, 0.05) 0%,
      transparent 70%);
  z-index: 0;
}

.contact-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: var(--sp-xl);
}

.contact-info-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 3rem;
  box-shadow: var(--shadow-soft);
  height: 100%;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: var(--clr-surface);
  color: var(--clr-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-text h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.contact-text p,
.contact-text ul {
  color: var(--clr-text-muted);
  margin: 0;
  line-height: 1.6;
}

.contact-text ul {
  list-style: none;
  padding: 0;
}

.contact-text a {
  color: var(--clr-primary);
  font-weight: 500;
}

.contact-text a:hover {
  text-decoration: underline;
}

.map-container {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  height: 100%;
  min-height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
}

@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ==========================================================================
   Elegant Cards (Praxisteam)
   ========================================================================== */
.elegant-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 3.5rem 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: left;
}

.elegant-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 104, 255, 0.08);
  border-color: rgba(0, 104, 255, 0.1);
}

.elegant-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--clr-primary), rgba(0, 104, 255, 0.3));
  opacity: 0;
  transition: opacity 0.5s ease;
}

.elegant-card:hover::after {
  opacity: 1;
}

.elegant-card-number {
  font-size: 4rem;
  font-weight: 300;
  color: rgba(0, 104, 255, 0.1);
  line-height: 1;
  margin-bottom: 2rem;
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
}

.elegant-card h4 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--clr-text-main);
  font-weight: 500;
  letter-spacing: -0.5px;
}

.elegant-card p {
  color: var(--clr-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
}