/* ========================================
   KSP Moove - Static Website Styles
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #166432;
  --color-accent: #94c11f;
  --color-gold: #b17030;
  --color-gold-light: #c59d55;
  --color-dark: #0a0a0a;
  --color-dark-green: #092415;
  --color-footer: #020202;
  --color-text: #2d2d2d;
  --color-text-light: #878787;
  --color-white: #ffffff;
  --color-light-bg: #f8f8f8;
  --color-beige: #f5f0eb;
  --color-border: #eeeeee;
  --font-body: Arial, Helvetica, sans-serif;
  --font-heading: 'Rubik', Arial, Helvetica, sans-serif;
  --container-width: 1200px;
  --header-height: 80px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-white);
}

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

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

a:hover {
  color: var(--color-gold);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.4;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.text-center {
  text-align: center;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: #7da819;
  color: var(--color-white);
  transform: scale(1.05);
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn-accent:hover {
  background-color: #7da819;
  color: var(--color-white);
  transform: scale(1.05);
}

/* --- Header --- */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all var(--transition);
}

#site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo img {
  max-height: 60px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0;
}

.nav-link {
  display: block;
  padding: 10px 16px;
  color: var(--color-text-light);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 16px;
  right: 16px;
  height: 2px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.external {
  font-size: 14px;
}

.nav-link.external i {
  font-size: 10px;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--color-text);
  margin: 5px 0;
  transition: all var(--transition);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 660px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../img/imoove-vet-methode-musculoposturale.jpg') center/cover no-repeat;
  margin-top: var(--header-height);
}

@media (min-width: 1025px) {
  .hero-section {
    background-attachment: fixed;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.27);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 660px;
  width: 100%;
  max-width: none;
  padding: 0 0 0 18%;
}

.hero-text {
  width: 30%;
  min-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 36px;
  background: rgba(148, 193, 31, 0.88);
  color: var(--color-white);
  text-align: center;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 30px;
  font-size: 14px;
}

.hero-badge p {
  margin-bottom: 4px;
  color: var(--color-white);
}

.hero-badge strong {
  font-size: 15px;
}

.hero-logo {
  max-width: 220px;
  margin-bottom: 20px;
}

.hero-tagline {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--color-white);
  line-height: 1.3;
}

/* --- Sections --- */
.section {
  padding: 80px 0;
}

.section-light {
  background-color: var(--color-light-bg);
}

.section-white {
  background-color: var(--color-white);
}

.section-green {
  background-color: #3c3c3b;
  color: var(--color-white);
}

.section-green .section-title {
  color: var(--color-white);
}

.section-dark {
  background-color: var(--color-accent);
  color: var(--color-white);
}

/* Diagonal transition between green sections */
.section-green {
  position: relative;
  padding-bottom: 100px;
}

.section-green::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: var(--color-accent);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.section-dark .section-title {
  color: var(--color-white);
}

.section-beige {
  background-color: var(--color-beige);
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.divider {
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
  margin: 0 auto 40px;
}

.divider-light {
  background-color: var(--color-accent);
}

.section-text {
  max-width: 800px;
  margin: 0 auto 25px;
  font-size: 15px;
  line-height: 1.9;
}

.section-subtitle {
  font-size: 15px;
  margin-bottom: 15px;
}

/* Kompetenz */
.kompetenz-image {
  margin-top: 30px;
}

.kompetenz-image img {
  max-width: 200px;
  margin: 0 auto;
}

/* Leistungen */
.leistungen-logo {
  max-width: 220px;
  margin: 0 auto 30px;
}


.check-list {
  list-style: none;
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
}

.check-list li {
  padding: 10px 0;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.check-list li i {
  color: var(--color-accent);
  font-size: 18px;
  flex-shrink: 0;
}

.section-green .check-list li i {
  color: rgba(255, 255, 255, 0.7);
}

.section-dark .check-list li i {
  color: var(--color-white);
}

.section-dark .divider-light {
  background-color: var(--color-white);
}

/* --- Carousel --- */
.carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.carousel-track {
  position: relative;
}

.carousel-slide {
  display: none;
  animation: fadeIn 0.5s ease;
}

.carousel-slide.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.carousel-slide img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  background: var(--color-white);
}

.carousel-caption {
  padding: 20px 24px;
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.7;
}

.carousel-slide img:last-child {
  border-radius: 0 0 12px 12px;
}

.carousel-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: var(--color-white);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.carousel-btn-prev {
  left: 12px;
}

.carousel-btn-next {
  right: 12px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background: var(--color-white);
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--color-border);
  cursor: pointer;
  transition: background var(--transition);
}

.carousel-dot.active {
  background: var(--color-accent);
}

/* --- Accordion --- */
.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.accordion-header {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 18px 24px;
  background: var(--color-white);
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  transition: background var(--transition);
  font-family: var(--font-body);
}

.accordion-header:hover {
  background: var(--color-light-bg);
}

.accordion-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 24px;
}

.accordion-item.active .accordion-body {
  max-height: 800px;
  padding: 20px 24px;
}

.accordion-item.active .accordion-header {
  background: var(--color-light-bg);
}

.accordion-body p {
  text-align: center;
  margin-bottom: 8px;
  font-size: 14px;
}

.testimonial-logo {
  max-width: 300px;
  margin: 0 auto 20px;
}

.testimonial-logo-square {
  max-width: 180px;
}

.testimonial-logo-tall {
  max-width: 140px;
}

/* --- Team --- */
.team-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.team-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  max-width: 350px;
  width: 100%;
}

.team-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.team-info {
  padding: 24px;
  text-align: center;
}

.team-info h3 {
  font-size: 22px;
  margin-bottom: 4px;
}

.team-role {
  color: var(--color-text-light);
  font-size: 15px;
  margin-bottom: 16px;
}

.team-contact p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 8px;
}

.team-contact i {
  color: var(--color-accent);
  font-size: 18px;
}

/* Honeypot - hidden from humans */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* --- Contact Form --- */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-row .form-group {
  flex: 1;
}

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}

.required {
  color: #cf2e2e;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ededed;
  border-radius: 3px;
  font-size: 15px;
  font-family: var(--font-body);
  background: var(--color-white);
  transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.contact-form input.error,
.contact-form textarea.error {
  border-color: #cf2e2e;
}

.btn-submit {
  width: 100%;
  justify-content: center;
  font-size: 16px;
  padding: 14px;
}

.form-message {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
}

.form-message.success {
  color: var(--color-primary);
}

.form-message.error-msg {
  color: #cf2e2e;
}

/* --- Footer --- */
#footer {
  background-color: var(--color-footer);
  color: #dddddd;
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  color: var(--color-accent);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-nav a:hover {
  color: var(--color-white);
}

.copyright {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.copyright a {
  color: var(--color-accent);
}

.copyright a:hover {
  color: var(--color-white);
}

/* --- Scroll to Top --- */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.scroll-top:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 992px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    padding: 100px 30px 40px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transition: right var(--transition);
    z-index: 999;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-link {
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-link::after {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .hero-content {
    min-height: auto;
  }

  .hero-text {
    width: 90%;
    min-width: unset;
    padding: 40px 20px;
  }

  .hero-tagline {
    font-size: 22px;
  }

  .section-title {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .section {
    padding: 60px 0;
  }

  .hero-section {
    min-height: 80vh;
  }

  .hero-badge {
    padding: 18px 20px;
    font-size: 13px;
  }

  .hero-logo {
    max-width: 150px;
  }

  .hero-tagline {
    font-size: 20px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    flex-direction: column;
    gap: 12px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .logo img {
    max-height: 45px;
  }

  .section-title {
    font-size: 22px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .accordion-header {
    font-size: 14px;
    padding: 14px 16px;
  }
}

/* --- Subpage Styles --- */
.subpage-content {
  margin-top: var(--header-height);
  padding: 60px 0;
  min-height: 60vh;
}

.subpage-content h1 {
  font-size: 28px;
  margin-bottom: 30px;
}

.subpage-content p {
  margin-bottom: 16px;
  line-height: 1.8;
}
