/* ==========================================================================
   LEIB & SEELE – Physiotherapie Silvia Kemper
   Globales Stylesheet – gilt für alle Seiten (index, jobs, impressum, ...)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Schriften
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Camellia Signature';
  src: url('../assets/fonts/CamelliaSignature.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Nunito Regular (400) */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400;
  src: url('../assets/fonts/nunito-v32-latin-regular.woff2') format('woff2');
}

/* Nunito Semi-Bold (600) */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600;
  src: url('../assets/fonts/nunito-v32-latin-600.woff2') format('woff2');
}

/* Nunito Bold (700) */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700;
  src: url('../assets/fonts/nunito-v32-latin-700.woff2') format('woff2');
}

/* Nunito Extra-Bold (800) */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 800;
  src: url('../assets/fonts/nunito-v32-latin-800.woff2') format('woff2');
}

/* --------------------------------------------------------------------------
   2. Design-Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Farben */
  --c-cream:        #F4F1E8;
  --c-white:        #FFFFFF;
  --c-blush:        #F7F2EE;
  --c-blush-strong: #E8D3D6;
  --c-dot:          #C89BA4;
  --c-sage-light:   #EDF0E1;
  --c-sage-mid:     #DCE4C4;
  --c-green:        #9DB068;
  --c-green-dark:   #6B7D45;
  --c-green-deep:   #5F6E3B;
  --c-green-pale:   #C4D19E;
  --c-ink:          #3D3B36;
  --c-body:         #6E6A60;
  --c-muted:        #8A8577;
  --c-footer-text:  #C9C6BC;

  /* Typografie */
  --f-sans:   'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-script: 'Camellia Signature', cursive;

  --fs-h1:     clamp(38px, 5.6vw, 62px);
  --fs-script: clamp(42px, 5vw, 60px);
  --fs-h2:     clamp(26px, 3.2vw, 34px);
  --fs-lead:   clamp(17px, 2vw, 19px);
  --fs-body:   17px;
  --fs-small:  14px;

  /* Abstände */
  --gutter:      clamp(20px, 4vw, 56px);
  --section-top: clamp(36px, 4vw, 60px);
  --section-bot: clamp(64px, 7vw, 104px);
  --maxw:        1180px;
  --maxw-wide:   1320px;

  /* Radien & Schatten */
  --r-sm:  12px;
  --r-md:  20px;
  --r-lg:  28px;
  --r-pill: 999px;
  --sh-soft:   0 18px 34px -24px rgba(61, 59, 54, 0.16);
  --sh-card:   0 24px 48px -26px rgba(61, 59, 54, 0.14);
  --sh-image:  0 40px 70px -30px rgba(61, 59, 54, 0.20);
  --sh-dark:   0 30px 60px -24px rgba(0, 0, 0, 0.35);
  --sh-button: 0 14px 30px -10px rgba(122, 140, 78, 0.55);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  color: var(--c-ink);
  background: var(--c-cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--c-green-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--c-green-deep); }

/* --------------------------------------------------------------------------
   4. Typografie
   -------------------------------------------------------------------------- */
.h1 {
  font-size: var(--fs-h1);
  line-height: 1.32;
  font-weight: 600;
  letter-spacing: .01em;
  text-wrap: pretty;
}

/* Script-Überschriften (Camellia Signature).
   Die große line-height verhindert Kollisionen der Ober-/Unterlängen,
   das negative margin-top holt den Luftraum wieder heraus. */
.h-script {
  font-family: var(--f-script);
  font-size: var(--fs-script);
  font-weight: 400;
  line-height: 2.6;
  color: var(--c-green-dark);
  margin: -4px 0 28px;
}
.h-script--center { text-align: center; }

/* Script-Akzent innerhalb eines Satzes */
.script-accent {
  font-family: var(--f-script);
  font-weight: 400;
  font-size: .7em;
  color: var(--c-green-dark);
  padding: 0 .22em 0 .06em;
}

.h2 {
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: .01em;
  text-wrap: pretty;
}

.h3 { font-size: 21px; font-weight: 600; letter-spacing: .01em; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.8;
  font-weight: 400;
  color: var(--c-body);
  text-wrap: pretty;
}

.text { line-height: 1.8; font-weight: 400; color: var(--c-body); }

.note {
  color: var(--c-muted);
  font-size: var(--fs-small);
  line-height: 1.6;
}

.prose h2 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.prose p  { line-height: 1.7; margin-bottom: 24px; }

/* --------------------------------------------------------------------------
   5. Layout
   -------------------------------------------------------------------------- */
.section {
  padding: var(--section-top) var(--gutter) var(--section-bot);
  position: relative;
  overflow: hidden;
}
.section--white { background: var(--c-white); }
.section--cream { background: var(--c-cream); }
.section--flush { padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(48px, 6vw, 72px); }

.container { max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 1; }
.container--narrow { max-width: 760px; margin: 0 auto; }
.container--text  { max-width: 720px; margin: 0 auto; }

.split { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 56px); }
.split__col { flex: 1 1 380px; min-width: 300px; }

/* Organische Akzentformen */
.blob {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 62% 38% 40% 60% / 55% 45% 55% 45%;
}
.blob--hero {
  top: -50px; left: -70px;
  width: 280px; height: 250px;
  background: var(--c-blush-strong);
  opacity: .4;
  filter: blur(10px);
  animation: floatBlob 12s ease-in-out infinite;
}
.blob--services {
  top: -90px; right: -60px;
  width: 260px; height: 170px;
  background: var(--c-sage-light);
  opacity: .6;
  border-radius: 45% 55% 60% 40% / 50% 45% 55% 50%;
}
.blob--praxis {
  bottom: -60px; left: -60px;
  width: 200px; height: 200px;
  background: var(--c-sage-mid);
  opacity: .4;
  border-radius: 50% 50% 40% 60% / 55% 45% 55% 45%;
}
.blob--jobs {
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  background: var(--c-green-deep);
  opacity: .22;
  border-radius: 55% 45% 60% 40% / 50% 55% 45% 50%;
}

@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%      { transform: translate(10px, -14px) rotate(6deg); }
}

/* --------------------------------------------------------------------------
   6. Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 241, 232, .94);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px var(--gutter);
}

.site-header__logo { display: flex; align-items: center; flex-shrink: 0; }
.site-header__logo img {
  height: clamp(64px, 9vw, 110px);
  width: auto;
  object-fit: contain;
}

.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); flex-wrap: wrap; }
.nav a {
  color: var(--c-ink);
  font-weight: 600;
  font-size: 15px;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.nav a:hover, .nav a[aria-current="page"] {
  border-color: var(--c-green);
  color: var(--c-green-deep);
}

.site-header__actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--c-ink);
  padding: 6px 8px;
  cursor: pointer;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: var(--c-white);
  border-bottom: 1px solid rgba(61, 59, 54, .08);
  padding: 12px var(--gutter);
  position: sticky;
  top: 0;
  z-index: 99;
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a { color: var(--c-ink); font-weight: 600; padding: 12px 0; }

/* --------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 30px;
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-family: inherit;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.btn--primary { background: var(--c-green); color: var(--c-white); box-shadow: var(--sh-button); }
.btn--primary:hover { background: var(--c-green-dark); color: var(--c-white); transform: translateY(-2px); }

.btn--ghost {
  background: var(--c-white);
  color: var(--c-ink);
  border: 1px solid rgba(61, 59, 54, .12);
}
.btn--ghost:hover { border-color: var(--c-green); color: var(--c-ink); transform: translateY(-2px); }

.btn--light { background: var(--c-white); color: var(--c-green-dark); font-size: 14px; padding: 12px 22px; }
.btn--light:hover { transform: translateY(-2px); }

.btn--block { width: 100%; padding: 15px; }

.btn-call {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--c-green);
  color: var(--c-white);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  box-shadow: 0 6px 16px -6px rgba(122, 140, 78, .5);
  transition: background .2s ease, transform .2s ease;
}
.btn-call:hover { background: var(--c-green-dark); color: var(--c-white); transform: translateY(-1px); }
.btn-call__label { display: inline; }

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) var(--gutter) clamp(96px, 10vw, 140px);
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 40px);
}
.hero__text { flex: 1 1 440px; min-width: 300px; padding-top: clamp(0px, 2vw, 28px); }
.hero__text .h1 { margin-bottom: 22px; }
.hero__text .lead { max-width: 480px; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__media { flex: 1 1 460px; min-width: 300px; margin-top: clamp(0px, 3vw, 32px); }
.hero__media img {
  width: 100%;
  height: clamp(340px, 42vw, 500px);
  object-fit: cover;
  border-radius: 180px 40px 40px 40px;
  box-shadow: var(--sh-image);
}

/* --------------------------------------------------------------------------
   9. Leistungen
   -------------------------------------------------------------------------- */
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px 32px;
  margin-bottom: 28px;
}
.service {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-body);
  font-weight: 400;
  padding: 16px 20px;
  background: var(--c-blush);
  border-radius: var(--r-pill);
}
.service:nth-child(2n) { background: var(--c-sage-light); }
.service::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-dot);
  flex-shrink: 0;
}

/* -------------------------------------------------------------------------
   10. Praxis-Galerie
   ------------------------------------------------------------------------- */
.section__head { text-align: center; max-width: 600px; margin: 0 auto 40px; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.gallery img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-soft);
  transition: transform .3s ease;
}
.gallery img:hover { transform: scale(1.02); }

/* -------------------------------------------------------------------------
   11. Jobs-Teaser
   ------------------------------------------------------------------------- */
.jobs-card {
    position: relative;
    overflow: hidden;
    background: var(--c-ink);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-dark);
    padding: clamp(36px, 5vw, 56px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    text-align: left; /* Füge das hier hinzu */
}

.jobs-card__body { 
    flex: 1 1 340px; 
    color: var(--c-cream); 
    position: relative; 
    z-index: 1; 
    text-align: left !important; /* Erzwingt die Linksbündigkeit auch am PC */
}

/* Verkleinert den Abstand unter der Überschrift im Jobs-Teaser */
.jobs-card__body .h2 { 
    margin-bottom: 6px !important; 
}

.jobs-card__body p { 
    color: var(--c-footer-text); 
    font-size: 16px; 
    line-height: 1.5; 
    max-width: 460px; 
    margin: 0; /* Entfernt zusätzliche Standard-Abstände des Absatzes */
}
.jobs-card .btn { position: relative; z-index: 1; flex-shrink: 0; }

.tag {
  display: inline-block;
  background: rgba(157, 176, 104, .25);
  color: var(--c-green-pale);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 16px;
}
.tag--light {
  background: rgba(157, 176, 104, .16);
  color: var(--c-green-deep);
}

/* -------------------------------------------------------------------------
   12. Kontakt
   ------------------------------------------------------------------------- */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  margin-bottom: 28px;
}
.contact-details strong { font-weight: 700; }
.contact-details a { font-weight: 700; }

.contact-hours {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: #5A574F;
  font-size: 15px;
}
.contact-hours svg { flex-shrink: 0; }

.map-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-soft);
  background: repeating-linear-gradient(135deg, #EDEADF, #EDEADF 14px, #E4E0D2 14px, #E4E0D2 28px);
}
.map-placeholder span {
  background: rgba(255, 255, 255, .9);
  border-radius: 10px;
  padding: 10px 18px;
  font-family: monospace;
  font-size: 13px;
  color: #5A574F;
  text-align: center;
}

/* -------------------------------------------------------------------------
   13. Formular
   ------------------------------------------------------------------------- */
.card {
  background: var(--c-white);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 36px);
  box-shadow: var(--sh-card);
}
.card--flat { box-shadow: none; background: var(--c-white); }
.card__title { margin-bottom: 18px; }

.form { display: flex; flex-direction: column; gap: 14px; }
.form input[type="text"],
.form input[type="email"],
.form textarea {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(61, 59, 54, .15);
  font-size: 15px;
  font-family: inherit;
  color: var(--c-ink);
  background: var(--c-white);
}
.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--c-green);
}
.form textarea { resize: vertical; }

.form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #5A574F;
  line-height: 1.5;
}
.form__consent input { margin-top: 3px; }
.form__consent a { text-decoration: underline; }

.form__hint { color: var(--c-muted); font-size: 13px; text-align: center; }

.form-success {
  background: rgba(157, 176, 104, .18);
  color: var(--c-green-deep);
  border-radius: var(--r-sm);
  padding: 20px;
  font-weight: 600;
  line-height: 1.6;
}

/* -------------------------------------------------------------------------
   14. Jobs-Seite
   ------------------------------------------------------------------------- */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 48px;
}
.benefit {
  background: var(--c-white);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--sh-soft);
}
.benefit__title { font-weight: 700; margin-bottom: 6px; }
.benefit p { color: var(--c-muted); font-size: 14px; line-height: 1.5; }

.cta-band {
  background: var(--c-ink);
  color: var(--c-cream);
  border-radius: var(--r-md);
  padding: clamp(28px, 4vw, 40px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cta-band__title { font-weight: 700; font-size: 20px; margin-bottom: 6px; }
.cta-band p { color: var(--c-footer-text); font-size: 15px; }

/* -------------------------------------------------------------------------
   15. Footer
   ------------------------------------------------------------------------- */
.site-footer {
  background: var(--c-ink);
  color: var(--c-footer-text);
  padding: 32px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--fs-small);
}
.site-footer a { color: var(--c-footer-text); }
.site-footer a:hover { color: var(--c-white); }
.site-footer__links { display: flex; gap: 18px; }

/* Kompakter Header für Unterseiten */
.subpage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--gutter);
  border-bottom: 1px solid rgba(61, 59, 54, .08);
}
.subpage-header img { height: clamp(56px, 7vw, 78px); width: auto; object-fit: contain; }
.subpage-header a.back { font-weight: 700; font-size: 14px; color: var(--c-ink); }
.subpage-header a.back:hover { color: var(--c-green-deep); }

/* -------------------------------------------------------------------------
   16. Sticky Call-Button (nur mobil)
   ------------------------------------------------------------------------- */
.sticky-call {
  display: none;
  position: fixed;
  bottom: 18px;
  left: 16px;
  right: 16px;
  z-index: 200;
  background: var(--c-green);
  color: var(--c-white);
  font-weight: 700;
  font-size: 16px;
  padding: 16px;
  border-radius: 14px;
  text-align: center;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 12px 30px -8px rgba(61, 59, 54, .4);
}
.sticky-call:hover { color: var(--c-white); }

/* -------------------------------------------------------------------------
   17. Scroll-Reveal
   ------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .blob--hero { animation: none; }
  html { scroll-behavior: auto; }
}

/* -------------------------------------------------------------------------
   18. Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .nav { display: none; }
  .nav-toggle { display: inline-block; }
  .btn-call__label { display: none; }
  .sticky-call { display: flex; }
  .site-footer { flex-direction: column; }
  body { padding-bottom: 84px; }
  .hero { padding-bottom: clamp(56px, 10vw, 96px); }
  .hero__media img { border-radius: 120px 32px 32px 32px; }
}

@media (max-width: 520px) {
  .service-list { grid-template-columns: 1fr; }
  .jobs-card, .cta-band { flex-direction: column; align-items: flex-start; }
}

/* -------------------------------------------------------------------------
   19. Druck
   ------------------------------------------------------------------------- */
@media print {
  .site-header, .nav-mobile, .sticky-call, .blob { display: none !important; }
  body { background: #fff; padding-bottom: 0; }
  .reveal { opacity: 1; transform: none; }
}
