/* ============================================
   Coaching Engler — Design System
   ============================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --darkest:    #1a1a1a;
  --dark:       #999999;
  --medium:     #cccccc;
  --light:      #e5e5e5;
  --lighter:    #f2f2f2;
  --lightest:   #f7f7f7;
  --white:      #ffffff;
  --accent:     #c1121f;
  --accent-dark:#9a0e19;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.125rem;
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;
  --space-2xl: 8rem;
  --max-width: 1400px;
  --max-width-narrow: 900px;
  --max-width-wide: 1800px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--darkest);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.container--narrow { max-width: var(--max-width-narrow); }
.container--wide { max-width: var(--max-width-wide); }
.container--full { max-width: 100%; padding: 0; }

/* --- Typography --- */
.display {
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.display--1 { font-size: clamp(2.2rem, 6vw, 5rem); }
.display--2 { font-size: clamp(1.8rem, 4.5vw, 3.5rem); }
.display--3 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
.display--4 { font-size: clamp(1.2rem, 2vw, 1.75rem); }

.text--xlarge { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.5; }
.text--large  { font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.6; }
.text--medium { font-size: var(--text-md); line-height: 1.6; }
.text--small  { font-size: var(--text-sm); line-height: 1.6; }
.text--xsmall { font-size: var(--text-xs); line-height: 1.5; }

.text--uppercase { text-transform: uppercase; letter-spacing: 0.08em; }
.text--bold      { font-weight: 600; }
.text--center    { text-align: center; }
.text--muted     { color: var(--dark); }
.text--white     { color: var(--white); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-sans);
}
.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: var(--accent-dark); }
.btn--outline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.4); }
.btn--outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn--dark { background: var(--darkest); color: var(--white); }
.btn--dark:hover { background: #000; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: all 0.4s ease;
}

/* Default: transparent, white text (for pages with hero) */
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.nav__logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  transition: color 0.3s;
  flex-shrink: 0;
}
.nav__logo span { font-weight: 400; opacity: 0.5; }

/* Desktop menu */
.nav__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--white);
  opacity: 0.8;
  transition: opacity 0.3s;
  background: none;
  border: none;
  font-family: var(--font-sans);
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
}
.nav__link:hover,
.nav__link.active { opacity: 1; }

/* Dropdown */
.nav__item { position: relative; }
.nav__item--has-dropdown {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav__dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg);
  margin-top: -2px;
  transition: transform 0.2s;
}
.nav--scrolled .nav__dropdown-toggle::after,
.nav--static .nav__dropdown-toggle::after {
  border-color: var(--darkest);
}
.nav__item--open .nav__dropdown-toggle::after {
  transform: rotate(-135deg);
  margin-top: 2px;
}

.nav__dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--light);
  padding: 0.5rem 0;
  min-width: 300px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
  list-style: none;
  z-index: 101;
}
.nav__item--open .nav__dropdown-menu { display: block; }

.nav__dropdown-menu a {
  display: block;
  padding: 0.7rem 1.5rem;
  font-size: var(--text-sm);
  color: var(--darkest);
  transition: background 0.15s;
  white-space: nowrap;
}
.nav__dropdown-menu a:hover { background: var(--lightest); }

/* CTA */
.nav__cta {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  padding: 0.6rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.3);
  transition: all 0.3s;
  flex-shrink: 0;
}
.nav__cta:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

/* Mobile toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-shrink: 0;
  position: relative;
  z-index: 102;
}
.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: all 0.3s;
}

/* --- Scrolled state (white bg, dark text) --- */
.nav--scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--light);
}
.nav--scrolled .nav__logo,
.nav--scrolled .nav__link,
.nav--scrolled .nav__dropdown-btn,
.nav--scrolled .nav__cta { color: var(--darkest); }
.nav--scrolled .nav__cta { border-color: rgba(0,0,0,0.15); }
.nav--scrolled .nav__cta:hover { border-color: var(--darkest); background: rgba(0,0,0,0.04); }
.nav--scrolled .nav__toggle-bar { background: var(--darkest); }

/* --- Pages without hero: nav is always "scrolled" --- {
  This class is added via JS on pages without a hero image */
.nav--static {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--light);
}
.nav--static .nav__logo,
.nav--static .nav__link,
.nav--static .nav__dropdown-btn,
.nav--static .nav__cta { color: var(--darkest); }
.nav--static .nav__cta { border-color: rgba(0,0,0,0.15); }
.nav--static .nav__cta:hover { border-color: var(--darkest); background: rgba(0,0,0,0.04); }
.nav--static .nav__toggle-bar { background: var(--darkest); }

/* --- Mobile Nav open: toggle bars always white --- */
.nav--open .nav__toggle-bar { background: var(--white) !important; }
.nav--open .nav__toggle-bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav--open .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav--open .nav__toggle-bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Mobile Nav --- */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--darkest);
  flex-direction: column;
  padding: 5rem 2rem 2rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav--open {
  display: flex;
}
body.mobile-nav-open {
  overflow: hidden;
}

.mobile-nav__link {
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 700;
  color: var(--white);
  opacity: 0.85;
  padding: 0.5rem 0;
  width: 100%;
  border: none;
  background: none;
  font-family: var(--font-sans);
  text-align: left;
  cursor: pointer;
  transition: opacity 0.3s;
}
.mobile-nav__link:hover,
.mobile-nav__link.active { opacity: 1; }

.mobile-nav__sub {
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-bottom: 0.5rem;
}
.mobile-nav__sub-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
  opacity: 0.5;
  padding: 0.35rem 0;
  transition: opacity 0.3s;
}
.mobile-nav__sub-link:hover { opacity: 0.8; }

.mobile-nav__divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 0.4rem 0;
}

.mobile-nav__cta {
  display: inline-flex;
  margin-top: 1.5rem;
  padding: 0.8rem 1.75rem;
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  align-self: flex-start;
  transition: all 0.3s;
}
.mobile-nav__cta:hover { border-color: var(--white); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 500px;
  max-height: 900px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.55) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: 0 var(--space-md) var(--space-xl);
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}
.hero__tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-sm);
}
.hero__title { color: var(--white); max-width: 800px; margin-bottom: var(--space-md); }
.hero__subtitle {
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  color: rgba(255,255,255,0.7);
  max-width: 500px;
  margin-bottom: var(--space-lg);
  line-height: 1.5;
}
.hero__actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: var(--space-2xl) 0; }
.section--dark { background: var(--darkest); color: var(--white); }
.section--light { background: var(--lightest); }
.section--lighter { background: var(--lighter); }

.section__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dark);
  margin-bottom: var(--space-sm);
}
.section--dark .section__label { color: var(--medium); }
.section__title { margin-bottom: var(--space-md); max-width: 700px; }
.section__text { max-width: 550px; color: var(--dark); margin-bottom: var(--space-lg); }
.section--dark .section__text { color: var(--medium); }

.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.columns--rev > *:first-child { order: 2; }
.columns--rev > *:last-child { order: 1; }

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--light);
  border-top: 1px solid var(--light);
  border-bottom: 1px solid var(--light);
}
.service-card {
  background: var(--white);
  padding: var(--space-lg);
  transition: background 0.3s;
}
.service-card:hover { background: var(--lightest); }
.service-card__number {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--dark);
  margin-bottom: var(--space-md);
}
.service-card__title {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}
.service-card__text {
  font-size: var(--text-sm);
  color: var(--dark);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}
.service-card__link {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.3s;
}
.service-card__link:hover { gap: 0.7rem; }

/* --- Image + Text block --- */
.img-text-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 450px;
}
.img-text-block__image { overflow: hidden; }
.img-text-block__image img { width: 100%; height: 100%; object-fit: cover; }
.img-text-block__content {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--lighter);
}
.img-text-block__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dark);
  margin-bottom: var(--space-sm);
}
.img-text-block__title {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: var(--space-md);
}
.img-text-block__text { color: var(--dark); line-height: 1.7; margin-bottom: var(--space-lg); }

/* --- Stats --- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--light);
  border-top: 1px solid var(--light);
}
.stat { background: var(--white); padding: var(--space-lg); text-align: center; }
.stat__value {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-xs);
}
.stat__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dark);
}

/* --- Philosophie --- */
.philosophie {
  background: var(--darkest);
  color: var(--white);
  padding: 5rem 0;
}
.philosophie__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--medium);
  margin-bottom: var(--space-sm);
}
.philosophie__title {
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-md);
  max-width: 500px;
}
.philosophie__text {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  color: var(--medium);
  line-height: 1.7;
  max-width: 550px;
}

/* --- About --- */
.about-portrait {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: 30% 20%;
}
.about-content { padding: var(--space-lg) 0 var(--space-lg) var(--space-xl); }
.about-content__title {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-md);
}
.about-content__text { color: var(--dark); line-height: 1.7; margin-bottom: var(--space-md); }
.about-content__text:last-child { margin-bottom: 0; }

/* --- CTA --- */
.cta-section {
  background: var(--darkest);
  color: var(--white);
  text-align: center;
  padding: var(--space-2xl) 0;
}
.cta-section__title { margin-bottom: var(--space-sm); }
.cta-section__text {
  color: var(--medium);
  margin-bottom: var(--space-lg);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Contact --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
.contact-info__title {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 700;
  margin-bottom: var(--space-md);
}
.contact-info__text { color: var(--dark); line-height: 1.7; margin-bottom: var(--space-lg); }
.contact-info__details { list-style: none; display: flex; flex-direction: column; gap: var(--space-sm); }
.contact-info__details li { font-size: var(--text-sm); color: var(--dark); }
.contact-info__details strong {
  display: block;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dark);
  margin-bottom: 0.15rem;
}

.contact-form { display: flex; flex-direction: column; gap: var(--space-sm); }
.form-group label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dark);
  margin-bottom: 0.35rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 0;
  border: none;
  border-bottom: 1px solid var(--light);
  background: transparent;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--darkest);
  transition: border-color 0.3s;
  border-radius: 0;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--darkest); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%232b2b2b' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  padding-right: 1.5rem;
}

/* --- Subpage hero --- */
.subpage-hero {
  width: 100%;
  height: 40vh;
  min-height: 250px;
  max-height: 450px;
  overflow: hidden;
  position: relative;
}
.subpage-hero img { width: 100%; height: 100%; object-fit: cover; }
.subpage-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 40%);
}

/* --- Subpage content --- */
.subpage-content { padding: var(--space-2xl) 0; }
.subpage-content__text { max-width: 680px; margin: 0 auto; }
.subpage-content__text h2 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  margin-top: var(--space-lg);
}
.subpage-content__text p { color: var(--dark); line-height: 1.7; margin-bottom: var(--space-sm); }

/* --- Footer --- */
.footer {
  background: var(--darkest);
  color: var(--white);
  padding: var(--space-xl) 0 var(--space-md);
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: var(--space-md);
}
.footer__brand { font-size: 1.1rem; font-weight: 700; margin-bottom: var(--space-sm); }
.footer__brand span { font-weight: 400; opacity: 0.5; }
.footer__desc { font-size: var(--text-sm); color: var(--medium); line-height: 1.6; max-width: 300px; }
.footer__col-title {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--medium);
  margin-bottom: var(--space-sm);
}
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer__links a { font-size: var(--text-sm); color: var(--white); opacity: 0.6; transition: opacity 0.3s; }
.footer__links a:hover { opacity: 1; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--medium);
}
.footer__legal { display: flex; gap: var(--space-md); }
.footer__legal a { color: var(--medium); transition: color 0.3s; }
.footer__legal a:hover { color: var(--white); }

/* --- Page sections (SPA) --- */
.page { display: none; }
.page--active { display: block; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav__menu, .nav__cta { display: none; }
  .nav__toggle { display: block; }

  .columns { grid-template-columns: 1fr; gap: var(--space-lg); }
  .columns--rev > *:first-child { order: 1; }
  .columns--rev > *:last-child { order: 2; }

  .img-text-block { grid-template-columns: 1fr; min-height: auto; }
  .img-text-block__image { height: 280px; }
  .img-text-block__content { padding: var(--space-lg); }

  .contact-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .about-content { padding: var(--space-lg) 0 0; }
  .services-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: var(--space-md); }
  .footer__top { grid-template-columns: 1fr; gap: var(--space-md); }
  .footer__bottom { flex-direction: column; gap: var(--space-sm); text-align: center; }
  .hero__content { padding-bottom: var(--space-lg); }
  .subpage-hero { height: 30vh; min-height: 200px; }
  .philosophie { padding: 3.5rem 0; }
}

@media (max-width: 600px) {
  .hero { min-height: 450px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .section { padding: var(--space-xl) 0; }
  .cta-section { padding: var(--space-xl) 0; }
  .stat__value { font-size: 1.4rem; }
  .stat__label { font-size: 0.65rem; }
  .philosophie { padding: 2.5rem 0; }
  .philosophie__title { font-size: clamp(1.3rem, 5vw, 1.8rem); }
}
