/* ─── CSS VARIABLES ─────────────────────────────────────────── */
:root {
  --primary: #3b82f6;
  --primary-dark: #1e3a8a;
  --gray-100: #f8fafc;
  --gray-900: #0f172a;
  --radius: 0.75rem;
}

/* ─── GLOBAL RESETS & BASICS ────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--gray-900);
  background: var(--gray-100);
  line-height: 1.6;
  font-size: 1rem;
}

img,
iframe,
svg {
  max-width: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin-inline: auto;
  padding-block: 3rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin-bottom: 0.5em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.25rem, 1.65rem + 2.67vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 1.45rem + 1.33vw, 2.5rem);
}

p {
  max-width: 65ch;
}

a:focus-visible,
button:focus-visible,
div[tabindex="0"]:focus-visible {
  outline: 3px solid var(--primary-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── NAVBAR ────────────────────────────────────────────────── */
.navbar {
  background: #fff;
  border-top: 4px solid var(--primary);
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.05);
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding-block: 0.5rem;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0; /* Ensures there's no default margin */
  padding: 0; /* Ensures there's no default padding */
}

.nav-links a {
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  transition: color 0.2s;
  font-size: 1rem;
}

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

.hamburger {
  display: none; /* Hidden on desktop */
  flex-direction: column;
  gap: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  height: 3px;
  width: 22px;
  background: var(--gray-900);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.is-active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ─── HERO (DARK THEME) ────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-block: clamp(5rem, 15vh, 10rem);
  color: #fff;
}

.hero p {
  margin-inline: auto;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(
    120deg,
    var(--primary) 0%,
    #356cf8 25%,
    #2651c7 50%,
    var(--primary-dark) 100%
  );
  background-size: 200% 200%;
  animation: gradientFlow 12s ease-in-out infinite;
}

@keyframes gradientFlow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* ─── PROFESSIONAL HERO WAVE ANIMATION ─────────────────────── */
.wave-container-professional {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: -1;
}

.waves {
  position: relative;
  width: 100%;
  height: 15vh;
  margin-bottom: -7px;
  min-height: 100px;
  max-height: 150px;
}

.parallax > use {
  animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}
.parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}
.parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}
.parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}
.parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}
@keyframes move-forever {
  0% {
   transform: translate3d(-90px,0,0);
  }
  100% { 
    transform: translate3d(85px,0,0);
  }
}

/* ─── Wiggle für das Wort “Flow” ───────────────────────────── */
.highlight {
  display: inline-block;
  animation: wiggle 2.4s ease-in-out infinite;
  transform-origin: 50% 60%;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(-3deg); }
  30% { transform: rotate(3deg); }
  45% { transform: rotate(-2deg); }
  60% { transform: rotate(2deg); }
  75% { transform: rotate(-1deg); }
}

.cta-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.85rem 1.85rem;
  background: #fff;
  color: var(--primary-dark);
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.25s, transform 0.2s;
}
.cta-btn:hover {
  background: #f1f5ff;
  transform: translateY(-2px);
}

/* Social Links in Hero Section */
.hero-social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.hero-social-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  font-size: 1.4rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.hero-social-links a:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  transform: scale(1.1);
}

/* ─── SECTIONS (General) ──────────────────────────────────── */
section:not(.hero) .container {
  text-align: center;
}

/* ─── ABOUT (Desktop-First) ────────────────────────────────── */
.about {
  position: relative;
  padding-top: 15rem; 
  padding-bottom: 4rem;
}

.about .container {
  max-width: 60ch;
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

/* Container for founder images */
.founder-images {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1100px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
}

/* Individual portrait wrapper */
.founder-portrait {
  position: relative;
  pointer-events: auto;
  cursor: pointer;
}

.founder-portrait img {
  max-height: 400px;
  width: auto;
}

/* Name label styles */
.founder-name {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.founder-portrait:hover .founder-name,
.founder-portrait:focus-within .founder-name {
  opacity: 1;
  visibility: visible;
}

/* ─── SERVICES ─────────────────────────────────────────────── */
.services {
  background-color: #dbf0f5;
  border-radius: 40px; 
}
.service-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 2rem;
  text-align: center;
}

.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.05);
  transition: transform 0.25s, box-shadow 0.25s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.08);
}

.service-icon {
  font-size: 2.25rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* ─── APPOINTMENT ─────────────────────────────────────────── */
.appointment p {
  margin-inline: auto;
}
.calendar-wrapper {
  margin-top: 2rem;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius);
  padding: 1.5rem;
  background: #fff;
  text-align: center;
}

.calendar-embed {
  min-height: 400px;
  border: 0;
  width: 100%;
}

/* ─── FOOTER ───────────────────────────────────────────────── */
.footer {
  background: var(--primary-dark);
  color: #e2e8f0;
  padding-block: 2rem;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.footer-content p {
  order: 1;
}

.footer .social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-block: 1.25rem;
  order: 2;
}

.footer .social-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.footer .social-links a:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding-left: 0;
  order: 3;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s;
}

.footer-links a:hover {
  color: #fff;
}

/* ─── LANGUAGE SWITCHER ───────────────────────────────────── */
.lang-switcher {
  display: flex;
  gap: 0.5rem;
  margin-left: 1.5rem;
}

.lang-btn {
  background: none;
  border: 2px solid transparent;
  color: var(--gray-900);
  font-weight: 600;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius);
  transition: all 0.2s ease-in-out;
}

.lang-btn:hover {
  color: var(--primary);
  background-color: #f1f5ff;
}

.lang-btn.active {
  color: var(--primary);
  border-color: var(--primary);
}

/* --- MEDIA QUERIES --- */
@media (max-width: 992px) {
  .founder-portrait img {
    max-height: 300px;
  }
  .about {
    padding-top: 10rem;
  }
}

/* MOBILE NAVBAR & LAYOUT FIXES */
@media (max-width: 768px) {
  .hamburger {
    display: flex; /* Show the hamburger icon */
    z-index: 1000; /* Ensure it's clickable above other elements */
  }

  .nav-links {
    position: absolute;
    top: 100%; /* Position it right below the navbar */
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column; /* Stack links vertically */
    background: #fff;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 4px 8px rgb(0 0 0 / 0.1);
    
    /* Animation for sliding in */
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s, opacity 0.3s, visibility 0s 0.3s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.3s, opacity 0.3s, visibility 0s 0s;
  }

  .nav-links li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9; /* Adds a separator */
  }

  .nav-links li:last-child {
    border-bottom: none; /* Removes the last separator */
  }
  
  .lang-switcher {
    margin-left: auto;
    margin-right: 1rem;
  }
  
  .about {
    padding-top: 3rem; 
    padding-bottom: 3rem;
  }

  .founder-images {
    position: static; 
    transform: none;
    width: 100%;
    margin-top: 2rem;
    justify-content: center;
    gap: 1rem;
  }

  .founder-portrait img {
    max-height: 250px;
  }
}

@media (max-width: 480px) {
  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .founder-portrait img {
    max-height: 200px;
  }

  .founder-name {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
}