
/* ====== GLOBAL STYLES: Hannas Sport Ergo-Therapie Zentrum ====== */

/* ----- Google Fonts ----- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&family=Syne:wght@600;700;800&display=swap');

/* ----- Variables ----- */
:root {
  --primary: #5B4EE6;
  --primary-dark: #4437C7;
  --primary-light: #E9E6FD;
  --secondary: #0EA5E9;
  --secondary-dark: #0369A1;
  --accent: #F59E0B;
  --accent-dark: #D97706;
  --background: #F8F7FB;
  --surface: #FFFFFF;
  --text: #1F2937;
  --text-muted: #6B7280;
  --success: #10B981;
  --error: #EF4444;

  --font-heading: 'Outfit', Arial, sans-serif;
  --font-body: 'Inter', Arial, sans-serif;
  --font-accent: 'Syne', Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(31, 41, 55, 0.06);
  --shadow-md: 0 8px 24px rgba(31, 41, 55, 0.10);
  --shadow-lg: 0 18px 48px rgba(91, 78, 230, 0.16);
  --max-width: 1200px;
}

/* ----- Reset & Base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--primary-dark); }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); margin: 0 0 .6em; line-height: 1.2; color: var(--text); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }

/* ----- Utilities ----- */
.container { width: min(92%, var(--max-width)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; }
.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section { padding: 80px 0; }
.section.alt { background: var(--surface); }
.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: .3em; }
.section-subtitle { font-size: 1.1rem; color: var(--text-muted); max-width: 680px; margin: 0 auto 2.5em; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 50px; border: none; cursor: pointer;
  font-weight: 700; font-family: var(--font-heading); letter-spacing: -.01em;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(91,78,230,.35); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; box-shadow: 0 10px 28px rgba(91,78,230,.45); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: var(--secondary-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #1F2937; }
.btn-accent:hover { background: var(--accent-dark); color: #1F2937; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--primary); }
.btn-ghost { background: transparent; color: var(--primary); border: 2px solid rgba(91,78,230,.25); }
.btn-ghost:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

/* ----- Navigation ----- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(91,78,230,.08);
  transition: box-shadow .2s ease, background .2s ease;
}
.nav.is-scrolled { box-shadow: var(--shadow-md); background: rgba(255,255,255,.96); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__logo { display: flex; align-items: center; gap: .6rem; font-family: var(--font-heading); font-weight: 700; color: var(--text); }
.nav__logo img { height: 40px; width: auto; }
.nav__links { display: none; list-style: none; gap: 1.8rem; margin: 0; padding: 0; align-items: center; }
.nav__links a { font-size: .95rem; font-weight: 500; color: var(--text); }
.nav__links a:hover { color: var(--primary); }
.nav__links a.active { color: var(--primary); font-weight: 700; }
.nav__toggle { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: none; background: transparent; cursor: pointer; }
.nav__toggle span { display: block; width: 26px; height: 3px; background: var(--text); border-radius: 2px; position: relative; transition: .25s; }
.nav__toggle span::before, .nav__toggle span::after { content: ''; position: absolute; width: 26px; height: 3px; background: var(--text); border-radius: 2px; left: 0; transition: .25s; }
.nav__toggle span::before { top: -8px; }
.nav__toggle span::after { top: 8px; }
.nav.open .nav__toggle span { background: transparent; }
.nav.open .nav__toggle span::before { top: 0; transform: rotate(45deg); }
.nav.open .nav__toggle span::after { top: 0; transform: rotate(-45deg); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown__toggle {
  display: inline-flex; align-items: center; gap: .35rem; background: transparent; border: none;
  font-size: .95rem; font-weight: 500; color: var(--text); cursor: pointer; padding: .5rem 0;
}
.dropdown__toggle::after { content: '▾'; font-size: .75rem; transition: transform .2s; }
.dropdown.open .dropdown__toggle::after { transform: rotate(180deg); }
.dropdown__toggle:hover { color: var(--primary); }
.dropdown__menu {
  display: none; position: absolute; top: calc(100% + .6rem); left: 50%; transform: translateX(-50%);
  background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  border: 1px solid rgba(91,78,230,.08); min-width: 260px; padding: .6rem 0; z-index: 101;
}
.dropdown.open .dropdown__menu { display: block; }
.dropdown__menu a {
  display: block; padding: .55rem 1.2rem; color: var(--text); font-size: .93rem; font-weight: 500;
  border-bottom: 1px solid rgba(91,78,230,.05);
}
.dropdown__menu a:last-child { border-bottom: none; }
.dropdown__menu a:hover { background: var(--primary-light); color: var(--primary); }
.dropdown__menu a.active { color: var(--primary); font-weight: 700; }

.nav__mobile {
  display: none; position: absolute; top: 72px; left: 0; right: 0;
  background: var(--surface); border-bottom: 1px solid var(--primary-light);
  padding: 1rem 0; box-shadow: var(--shadow-md);
}
.nav.open .nav__mobile { display: block; }
.nav__mobile ul { list-style: none; margin: 0; padding: 0; }
.nav__mobile a { display: block; padding: .85rem 4%; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--background); }
.nav__mobile a:hover { background: var(--primary-light); color: var(--primary); }
.nav__mobile .dropdown__mobile-menu { display: none; padding-left: 1.5rem; }
.nav__mobile .dropdown.open .dropdown__mobile-menu { display: block; }
.nav__mobile .dropdown__toggle { display: flex; width: 100%; padding: .85rem 4%; justify-content: space-between; }
@media (min-width: 1100px) {
  .nav__links { display: flex; }
  .nav__toggle { display: none; }
  .nav__mobile { display: none !important; }
}

/* ----- Hero (base + slider) ----- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #E9E6FD 0%, #D6F1FC 45%, #FEF3C7 100%);
  padding: clamp(80px, 12vw, 140px) 0 clamp(70px, 10vw, 110px);
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0; opacity: .22;
  background:
    radial-gradient(circle at 80% 20%, var(--accent) 0%, transparent 35%),
    radial-gradient(circle at 15% 90%, var(--primary) 0%, transparent 30%),
    radial-gradient(circle at 60% 70%, var(--secondary) 0%, transparent 25%);
}
.hero__inner { position: relative; z-index: 1; display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .hero__inner { grid-template-columns: 1.05fr .95fr; } }
.hero__eyebrow {
  font-family: var(--font-accent); font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  color: var(--primary); font-size: .85rem; margin-bottom: .8rem;
}
.hero__title { font-size: clamp(2.2rem, 5.5vw, 4.2rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: .5em; }
.hero__subtitle { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-muted); max-width: 560px; margin-bottom: 1.6em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__visual { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16/10; }
.hero__visual img { width: 100%; height: 100%; object-fit: cover; }
.hero__wave {
  position: absolute; bottom: -2px; left: 0; right: 0; z-index: 2;
  height: 60px; background: var(--background);
  clip-path: ellipse(70% 100% at 50% 100%);
}

/* Hero Slider */
.hero-slider { position: relative; width: 100%; height: 100%; }
.hero-slider__slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease-in-out;
  background-size: cover; background-position: center;
}
.hero-slider__slide.active { opacity: 1; }
.hero-slider__overlay {
  position: absolute; inset: 0; background: linear-gradient(90deg, rgba(31,41,55,.72) 0%, rgba(31,41,55,.25) 70%);
}
.hero-slider__controls {
  position: absolute; bottom: 1.5rem; right: 1.5rem; display: flex; gap: .6rem; z-index: 5;
}
.hero-slider__prev, .hero-slider__next {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6);
  background: rgba(255,255,255,.15); color: #fff; font-size: 1.1rem; cursor: pointer;
  display: grid; place-items: center; transition: .2s;
}
.hero-slider__prev:hover, .hero-slider__next:hover { background: rgba(255,255,255,.35); border-color: #fff; }
.hero-slider__dots {
  position: absolute; bottom: 1.5rem; left: 1.5rem; display: flex; gap: .5rem; z-index: 5;
}
.hero-slider__dot {
  width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.45); border: none; cursor: pointer;
  transition: .2s;
}
.hero-slider__dot.active { background: #fff; transform: scale(1.2); }
.hero-slider__texts { position: relative; z-index: 3; }
.hero-slider__text {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .6s ease;
  padding: clamp(2rem, 8vw, 5rem) 0;
}
.hero-slider__text.active { opacity: 1; pointer-events: auto; }
.hero-slider__text .container { width: min(92%, var(--max-width)); margin: 0 auto; }
.hero-slider__text .hero__title,
.hero-slider__text .hero__subtitle { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.2); }
.hero-slider__text .hero__subtitle { color: rgba(255,255,255,.9); }
.hero-slider__text .text-gradient {
  background: linear-gradient(135deg, #fff 0%, var(--secondary) 60%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ----- Cards & Grid ----- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--surface); border-radius: var(--radius-md); padding: 1.8rem;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(91,78,230,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.6rem; margin-bottom: 1rem;
  background: var(--primary-light); color: var(--primary);
}
.card__title { font-size: 1.25rem; font-weight: 700; margin-bottom: .4rem; }
.card__text { color: var(--text-muted); font-size: .96rem; }
.card__link { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1rem; font-weight: 600; font-size: .95rem; }

/* ----- Trust bar ----- */
.trust { padding: 28px 0; background: var(--surface); border-bottom: 1px solid rgba(91,78,230,.08); }
.trust__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem 2.4rem; list-style: none; margin: 0; padding: 0; }
.trust__list li { font-family: var(--font-heading); font-weight: 600; color: var(--text-muted); font-size: .92rem; }
.trust__grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.trust__item {
  background: var(--surface); border: 1px solid rgba(91,78,230,.08); border-radius: var(--radius-md);
  padding: 1.2rem; text-align: center; box-shadow: var(--shadow-sm);
}
.trust__item-icon { font-size: 1.8rem; margin-bottom: .6rem; }
.trust__item-title { font-family: var(--font-heading); font-weight: 700; font-size: .95rem; }
.trust__item-desc { font-size: .82rem; color: var(--text-muted); margin-top: .2rem; }

/* ----- Feature sections ----- */
.feature { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .feature { grid-template-columns: 1fr 1fr; } }
.feature__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/3; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.feature__list li { position: relative; padding-left: 1.8rem; margin-bottom: .8rem; color: var(--text-muted); }
.feature__list li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }

/* ----- CTA Banner ----- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; border-radius: var(--radius-lg); padding: 3.5rem 2rem; text-align: center;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0; opacity: .12;
  background: radial-gradient(circle at 20% 80%, var(--accent) 0%, transparent 30%), radial-gradient(circle at 80% 20%, var(--secondary) 0%, transparent 30%);
}
.cta-banner h2 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.4rem); position: relative; z-index: 1; }
.cta-banner p { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 1.4em; position: relative; z-index: 1; }

/* ----- Testimonials / Carousel ----- */
.testimonial { background: var(--surface); border-radius: var(--radius-md); padding: 1.6rem; box-shadow: var(--shadow-sm); border-left: 4px solid var(--primary); }
.testimonial__quote { font-style: italic; color: var(--text); margin-bottom: 1rem; }
.testimonial__author { font-weight: 700; font-family: var(--font-heading); }
.testimonial__role { font-size: .85rem; color: var(--text-muted); }

.carousel { position: relative; overflow: hidden; }
.carousel__track { display: flex; transition: transform .4s ease; }
.carousel__slide { flex: 0 0 100%; padding: 0 .75rem; }
@media (min-width: 600px) { .carousel__slide { flex: 0 0 50%; } }
@media (min-width: 900px) { .carousel__slide { flex: 0 0 33.333%; } }
.carousel__prev, .carousel__next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: var(--surface); color: var(--primary); box-shadow: var(--shadow-md);
  display: grid; place-items: center; cursor: pointer; z-index: 2;
}
.carousel__prev { left: .5rem; }
.carousel__next { right: .5rem; }
.carousel__prev:hover, .carousel__next:hover { background: var(--primary); color: #fff; }

/* ----- FAQ ----- */
.faq__item { border-bottom: 1px solid rgba(91,78,230,.12); }
.faq__question {
  width: 100%; text-align: left; background: transparent; border: none;
  padding: 1.2rem 0; font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; cursor: pointer; color: var(--text);
}
.faq__question::after { content: '+'; font-size: 1.4rem; color: var(--primary); transition: transform .25s; }
.faq__item.open .faq__question::after { content: '−'; transform: rotate(180deg); }
.faq__answer {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .35s ease, opacity .25s ease, padding .35s ease;
}
.faq__item.open .faq__answer {
  max-height: 500px; opacity: 1; padding: 0 0 1.2rem; color: var(--text-muted);
}

/* ----- Forms ----- */
.form { display: grid; gap: 1.1rem; }
.form__group { display: flex; flex-direction: column; gap: .35rem; }
.form__group label { font-weight: 600; font-size: .95rem; }
.form__group input, .form__group textarea, .form__group select {
  padding: .85rem 1rem; border: 1px solid rgba(91,78,230,.2); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form__group input:focus, .form__group textarea:focus, .form__group select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(91,78,230,.12);
}
.form__hint { font-size: .85rem; color: var(--text-muted); }
.form__success {
  display: none; background: rgba(16,185,129,.1); color: var(--success); border: 1px solid rgba(16,185,129,.25);
  border-radius: var(--radius-sm); padding: 1rem; font-weight: 600;
}

/* ----- Blog ----- */
.blog-card { display: flex; flex-direction: column; }
.blog-card__thumb { aspect-ratio: 16/10; border-radius: var(--radius-sm) var(--radius-sm) 0 0; overflow: hidden; }
.blog-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__body { padding: 1.3rem; flex: 1; display: flex; flex-direction: column; }
.blog-card__meta { font-size: .8rem; color: var(--text-muted); margin-bottom: .4rem; }
.blog-card__title { font-size: 1.15rem; font-weight: 700; margin-bottom: .4rem; }
.blog-card__excerpt { color: var(--text-muted); font-size: .95rem; flex: 1; }
.article__hero { aspect-ratio: 21/9; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 2rem; }
.article__hero img { width: 100%; height: 100%; object-fit: cover; }
.article__content { max-width: 760px; margin: 0 auto; }
.article__content h2 { font-size: 1.6rem; margin-top: 2rem; }
.article__content h3 { font-size: 1.25rem; margin-top: 1.6rem; }
.article__content p, .article__content ul, .article__content ol { margin-bottom: 1.1em; }
.article__content ul li { margin-bottom: .5em; }

/* ----- Footer ----- */
.footer { background: #111827; color: #E5E7EB; padding: 64px 0 32px; }
.footer a { color: #CBD5E1; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 2.5rem; }
.footer__brand img { height: 46px; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer__brand p { color: #9CA3AF; font-size: .95rem; }
.footer__title { color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; margin-bottom: 1rem; }
.footer__list { list-style: none; padding: 0; margin: 0; }
.footer__list li { margin-bottom: .55rem; font-size: .95rem; }
.footer__bottom { border-top: 1px solid #374151; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: #9CA3AF; font-size: .9rem; }

/* ----- Tables ----- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid rgba(91,78,230,.1); }
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { padding: .9rem 1rem; text-align: left; border-bottom: 1px solid rgba(91,78,230,.08); }
th { background: var(--primary-light); font-family: var(--font-heading); font-weight: 700; }

/* ----- Breadcrumbs ----- */
.breadcrumbs { font-size: .85rem; color: var(--text-muted); padding: 1.2rem 0; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--primary); }

/* ----- Misc ----- */
.tag {
  display: inline-block; padding: .3rem .75rem; border-radius: 50px; background: var(--primary-light);
  color: var(--primary); font-size: .8rem; font-weight: 600; margin: .15rem;
}
.phases { display: grid; gap: 1rem; margin: 1.5rem 0; }
.phase { background: var(--surface); border-radius: var(--radius-md); padding: 1.4rem; border: 1px solid rgba(91,78,230,.1); }
.phase__num { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 700; margin-bottom: .8rem; }
.phase h3 { font-size: 1.15rem; margin-bottom: .3rem; }

/* ----- Scroll Reveal ----- */
[data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal="left"] { transform: translateX(-30px); }
[data-reveal="right"] { transform: translateX(30px); }
[data-reveal="zoom"] { transform: scale(.96); }
[data-reveal].is-visible { opacity: 1; transform: translate(0) scale(1); }

/* ----- Lazy loading fade in ----- */
img[loading="lazy"] { opacity: 0; transition: opacity .5s ease; }
img[loading="lazy"].loaded, img[loading="lazy"][src] { opacity: 1; }

/* ----- Media queries ----- */
@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .hero { padding-top: 60px; padding-bottom: 50px; }
  .btn { width: 100%; }
  .hero__cta .btn { width: auto; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .hero-slider__controls { bottom: 1rem; right: 1rem; }
  .hero-slider__dots { bottom: 1rem; left: 1rem; }
}
