/* ============================================================
   MaNe Gesundheitszentrum – Custom Stylesheet
   Lädt auf allen Seiten. Gegliedert in:
   1. Design Tokens
   2. Typografie
   3. Header & Navigation
   4. Heroes (Seitenbilder)
   5. Jobs-Seite
   6. Partnerschaften-Seite
   7. Team-Profile
   8. Accordion
   9. Cookie-Consent
   ============================================================ */


/* ------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------ */
:root {
  --mane-green:       #66b92b;
  --mane-green-dark:  #4d8d20;
  --mane-text:        #130606;
  --mane-text-soft:   #5a6454;
  --mane-heading:     #3f4e33;
  --mane-gold:        #d2884b;
}


/* ------------------------------------------------------------
   2. TYPOGRAFIE  –  Manrope auf allem
   ------------------------------------------------------------ */
body,
button,
input,
select,
textarea,
.nav,
.button,
h1, h2, h3, h4, h5, h6 {
  font-family: 'Manrope', sans-serif !important;
}


/* ------------------------------------------------------------
   3. HEADER & NAVIGATION
   ------------------------------------------------------------ */
.header-wrapper {
  box-shadow: 0 16px 38px rgba(21, 18, 10, 0.08);
}

#masthead.header-main {
  position: relative;
}

#logo > a {
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* Grüner Balken */
.header-bottom {
  background: linear-gradient(90deg, var(--mane-green-dark), var(--mane-green)) !important;
}

#wide-nav.header-bottom {
  margin-top: 2.1rem;
}

.header-bottom .header-contact a,
.header-bottom .header-bottom-nav > li > a {
  letter-spacing: 0.04em;
}

/* "Termin buchen"-Button */
.header-button .button.primary {
  border-radius: 999px !important;
  box-shadow: 0 12px 24px rgba(102, 185, 43, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.header-button .button.primary:hover,
.header-button .button.primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(102, 185, 43, 0.34);
  background-color: var(--mane-green-dark) !important;
}

/* Logo exakt mittig – unabhängig von Nav-Breite */
#masthead .header-inner {
  position: relative;
}

#masthead #logo.flex-col {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

/* Parallax deaktivieren */
.has-parallax .bg,
.section-bg[data-parallax-background],
[data-parallax-background] {
  transform: none !important;
  top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
  will-change: unset !important;
}
[data-parallax-fade] { opacity: 1 !important; transition: none !important; }
[data-parallax]      { transform: none !important; transition: none !important; }

/* Desktop: ab 960px zweizeilige Nav */
@media (min-width: 960px) {
  #masthead .flex-col.hide-for-medium.flex-left  { max-width: calc(50% - 115px); }
  #masthead .flex-col.hide-for-medium.flex-right { max-width: calc(50% - 115px); }

  #masthead .flex-col.hide-for-medium.flex-left .header-nav-main {
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: center;
    row-gap: 4px;
  }

  /* Jobs startet eine neue Flex-Zeile → Jobs + Partnerschaften auf Zeile 2 */
  #masthead .flex-col.hide-for-medium.flex-left .menu-item-jobs-cms {
    break-before: always;
  }
}

/* 850–959px: zu eng für Desktop-Nav → Hamburger */
@media (min-width: 850px) and (max-width: 959px) {
  #masthead .flex-col.hide-for-medium { display: none !important; }
  #masthead .flex-col.show-for-medium { display: flex !important; }
}

/* Mobile */
@media (max-width: 959px) {
  #wide-nav.header-bottom { margin-top: 0; }
  #logo > a { padding: 0; border-radius: 0; }
  /* "Termin buchen" im Mobile-Header ausblenden – ist im Slide-Nav vorhanden */
  #masthead .mobile-nav .header-button-1 { display: none; }
}


/* ------------------------------------------------------------
   4. HEROES  –  gleiche Höhe auf allen Seiten (außer Startseite)
   ------------------------------------------------------------ */
.jobs-hero {
  height: clamp(240px, 31vw, 430px);
  overflow: hidden;
}

.jobs-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Partnerschaften-Banner-Hero */
#banner-1464040821 {
  padding-top: clamp(240px, 31vw, 430px) !important;
}

@media (max-width: 849px) {
  .jobs-hero               { height: clamp(240px, 31vw, 430px); }
  #banner-1464040821       { padding-top: clamp(240px, 31vw, 430px) !important; }
  .partners-page           { padding-top: 0; }
}

@media (max-width: 549px) {
  .jobs-hero               { height: 220px; }
  #banner-1464040821       { padding-top: 220px !important; }
}


/* ------------------------------------------------------------
   5. JOBS-SEITE  (/stellenangebote)
   ------------------------------------------------------------ */
.jobs-page {
  background: #fff;
  --jobs-circle-size: 320px;
  --jobs-line-nudge: 70px;
}

.jobs-intro,
.jobs-list {
  padding: 0 0 56px;
}

.jobs-intro .col-inner,
.jobs-list .col-inner {
  max-width: 1220px;
  margin: 0 auto;
}

.jobs-intro {
  padding-top: 28px;
  padding-bottom: 44px;
}

.jobs-intro__lead {
  max-width: 920px;
  margin-bottom: 28px;
}

.jobs-intro__lead h1 {
  margin-bottom: 18px;
  color: var(--mane-heading);
}

.jobs-intro__lead p {
  margin-bottom: 0;
  line-height: 1.8;
  color: var(--mane-text-soft);
}

.jobs-intro__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) 320px;
  gap: 48px;
  align-items: end;
  padding-top: 6px;
}

.jobs-intro__content {
  padding: 0 24px 12px 0;
  position: relative;
  z-index: 1;
}

.jobs-intro__content p {
  margin-bottom: 16px;
  line-height: 1.8;
  color: var(--mane-text-soft);
}

.jobs-intro__image-wrap {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
  margin-bottom: calc((var(--jobs-circle-size) / -2) - var(--jobs-line-nudge));
}

.jobs-intro__image {
  width: var(--jobs-circle-size);
  height: var(--jobs-circle-size);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: none;
}

.jobs-intro__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.jobs-list {
  position: relative;
  padding-top: calc((var(--jobs-circle-size) / 2) + 30px + var(--jobs-line-nudge));
}

.jobs-list::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: var(--mane-green);
}

.jobs-entry {
  max-width: 920px;
  margin-bottom: 34px;
}

.jobs-entry:last-child { margin-bottom: 0; }

.jobs-entry h2 {
  margin-bottom: 10px;
  font-size: 1.65rem;
  color: var(--mane-heading);
}

.jobs-entry__meta {
  margin-bottom: 14px;
  font-weight: 700;
  color: var(--mane-green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.jobs-entry p {
  margin-bottom: 14px;
  line-height: 1.8;
  color: var(--mane-text-soft);
}

.jobs-entry ul,
.jobs-intro__content ul {
  margin: 0 0 14px;
  padding-left: 1.4em;
  color: var(--mane-text-soft);
}

.jobs-entry ul li,
.jobs-intro__content ul li {
  line-height: 1.8;
  margin-bottom: 3px;
  padding-left: 0.2em;
}

@media (max-width: 849px) {
  .jobs-page {
    --jobs-circle-size: 300px;
    --jobs-line-nudge: 54px;
  }
  .jobs-intro__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .jobs-intro__lead  { margin-bottom: 22px; }
  .jobs-intro__content { padding-right: 0; }
}

@media (max-width: 549px) {
  .jobs-page {
    --jobs-circle-size: min(72vw, 300px);
    --jobs-line-nudge: 39px;
  }
  .jobs-intro,
  .jobs-list       { padding-bottom: 42px; }
  .jobs-intro      { padding-bottom: 28px; }
  .jobs-intro__content h1 { font-size: 1.6rem; }
  .jobs-entry h2   { font-size: 1.4rem; }
}


/* ------------------------------------------------------------
   6. PARTNERSCHAFTEN-SEITE  (/partnerschaften)
   ------------------------------------------------------------ */
.partners-page {
  padding: 2rem 0 4rem;
}

@media (max-width: 1100px) {
  #banner-1464040821 .bg {
    background-position: center center !important;
  }
}

.partners-section + .partners-section { margin-top: 3rem; }

.partners-intro {
  max-width: 52rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.partner-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 18px 40px rgba(20, 17, 11, 0.08);
  text-align: center;
}

.partner-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  margin-bottom: 1rem;
}

.partner-card__logo img {
  max-width: 100%;
  max-height: 96px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.partner-card h3 { margin-bottom: 0.35rem; }

.partner-card > div {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
}

.partner-card p          { margin-bottom: 0.5rem; }
.partner-card__link      { font-weight: 700; margin-top: auto; padding-top: 0.75rem; }

.lists .col-inner {
  height: 100%;
  padding: 1.5rem 1.5rem 1.2rem;
  border-radius: 1.5rem;
  background: linear-gradient(180deg, #ffffff, #faf8f4);
  box-shadow: 0 16px 40px rgba(20, 17, 11, 0.08);
}

.lists .text-center .col-inner {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.lists ul       { margin: 0; padding-left: 1.1rem; }
.lists li       { margin-bottom: 0.5rem; line-height: 1.45; }


/* ------------------------------------------------------------
   7. GALERIE-SEITE  (/galerie)
   ------------------------------------------------------------ */
.gallery-page {
  padding: 2rem 0 4rem;
}

.gallery-page__intro {
  max-width: 48rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.gallery-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  align-items: start;
}

.gallery-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.gallery-category-card__media {
  width: min(280px, 72vw);
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(20, 17, 11, 0.12);
  margin-bottom: 1rem;
}

.gallery-category-card__media img,
.gallery-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-category-card__text h2 { margin: 0 0 0.4rem; font-size: 1.35rem; }
.gallery-category-card__text p  { margin: 0; color: var(--mane-text-soft); line-height: 1.6; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.gallery-card { background: transparent; box-shadow: none; text-align: center; }

.gallery-card__media {
  width: min(280px, 72vw);
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(20, 17, 11, 0.12);
  margin: 0 auto 1rem;
}

.gallery-card__caption       { padding: 1rem 1.1rem 1.15rem; text-align: center; }
.gallery-card__caption strong { display: block; margin-bottom: 0.35rem; font-size: 1rem; }
.gallery-card__caption span   { display: block; color: var(--mane-text-soft); line-height: 1.55; }

.gallery-back-link {
  display: inline-flex;
  margin-bottom: 1rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--mane-green);
}


/* ------------------------------------------------------------
   8. TEAM-PROFILE
   ------------------------------------------------------------ */
.portfolio-single-page .portfolio-summary img.img-responsive {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  display: block;
}


/* ------------------------------------------------------------
   9. ACCORDION  –  Text bündig unter sich selbst umbrechen
   ------------------------------------------------------------ */
.accordion-title {
  display: flex !important;
  align-items: flex-start !important;
}

.accordion-title .toggle {
  flex-shrink: 0;
  margin-top: 2px;
}

.accordion-title > span {
  flex: 1;
  min-width: 0;
}


/* ------------------------------------------------------------
   10. COOKIE-CONSENT
   ------------------------------------------------------------ */
.consent-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(540px, calc(100vw - 2rem));
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  padding: 1.25rem 1.5rem;
  z-index: 9999;
  font-size: 0.9rem;
  line-height: 1.5;
}

.consent-banner[hidden] { display: none; }

.consent-banner strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.consent-banner p { margin: 0 0 1rem; color: #555; }

.consent-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.consent-banner__actions .button { white-space: nowrap; }

@media (max-width: 420px) {
  .consent-banner { padding: 1rem; }
  .consent-banner__actions { flex-direction: column; }
  .consent-banner__actions .button { width: 100%; text-align: center; }
}
