/* Lebensglück Alltagsbegleitung – Website
   Farben:  Dunkelgrün #2f6b4a | Petrol #21756b | Hellgrün #6bb07b
   Schrift: Montserrat (Fließtext/Überschriften), Comfortaa (Hauptmenü) */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/montserrat-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/montserrat-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Comfortaa';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/comfortaa-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Comfortaa';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/comfortaa-700.woff2') format('woff2');
}

:root {
  --color-dark-green: #2f6b4a;
  --color-teal: #21756b;
  --color-light-green: #6bb07b;
  --color-text: #292929;
  --color-white: #ffffff;
  --font-body: 'Montserrat', Arial, sans-serif;
  --font-nav: 'Comfortaa', Arial, sans-serif;
  --max-width: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-bottom: 60px;
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--color-text);
  line-height: 30px;
  background: #fff;
  overflow-wrap: break-word;
}

/* body sets a fixed 30px line-height for the 18px body copy; headings use
   larger font sizes, so they need their own relative line-height or wrapped
   lines overlap (fixed px line-height doesn't scale with font-size). */
h1, h2, h3, h4, h5, h6 { line-height: 1.25; }

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

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

a { color: inherit; }

/* Accessibility: visible keyboard focus + skip link */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-teal);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-dark-green);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus {
  left: 10px;
  top: 10px;
}

/* Header */

/* Floating contact bar: fixed at the bottom of the viewport, hovering above
   the page content while scrolling */
.floating-contact-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 10px 30px;
  background: var(--color-dark-green);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, .2);
}
.floating-contact-bar .utility-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
}
.floating-contact-bar .utility-link svg { width: 16px; height: 16px; flex: none; }
.floating-contact-bar .utility-link:hover { text-decoration: underline; }

/* Mobile: replace the full-width bar with stacked round buttons, bottom-right */
.floating-fab-stack {
  display: none;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 30px 10px 10px;
  gap: 20px;
  position: relative;
}
.header-row nav.main-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.btn-primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  background: var(--color-teal);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  white-space: nowrap;
  transition: background .2s;
}
.btn-primary-cta:hover { background: var(--color-dark-green); }

header.site-header .logo img {
  width: 150px;
  height: auto;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  display: inline-block;
  padding: 15px;
  font-family: var(--font-nav);
  font-size: 16px;
  line-height: 18px;
  color: var(--color-teal);
  text-decoration: none;
  border-top: 2px solid var(--color-teal);
  border-bottom: 2px solid var(--color-teal);
  transition: background .2s, color .2s;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  background: var(--color-teal);
  color: #fff;
  border-color: transparent;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 1px solid var(--color-teal);
  border-radius: 0;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-teal);
  display: block;
}

/* Hero */
.hero {
  position: relative;
  background-color: #000;
  padding: 120px 20px;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../images/hero-overlay.jpg') center/cover no-repeat;
  opacity: .5;
}
.hero .container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  padding: 0;
}
.hero h1 {
  color: #fff;
  font-size: 66px;
  font-weight: 700;
  line-height: 1.364;
  margin: 20px 0;
}
.hero-location {
  display: inline-block;
  color: var(--color-light-green);
  font-family: var(--font-nav);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  min-height: 70px;
  margin: 20px 8px;
  padding: 0 20px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 25px;
  color: #fff;
  text-decoration: none;
  border: 5px solid var(--color-light-green);
  background: transparent;
  transition: background .2s;
}
.btn:hover { background: var(--color-light-green); }
.btn:active { background: var(--color-dark-green); }

.btn-small {
  min-width: 0;
  min-height: 0;
  border-width: 2px;
  font-size: 18px;
  line-height: 24px;
  padding: 10px 20px;
  color: #fcfcfc;
}

/* Button variant for use on white backgrounds */
.btn-light { color: #000; }
.btn-light:hover { color: #fff; }

/* Phone-call button: only shown on mobile, like the original */
.btn-call { display: none; }
@media (max-width: 767px) {
  .btn-call { display: inline-flex; }
}

/* Two-column feature row (Mission / Leistungen) */
.feature-row {
  display: flex;
  flex-wrap: wrap;
  min-height: 500px;
}
.feature-box {
  position: relative;
  flex: 1 1 calc(50% - 20px);
  min-width: 280px;
  min-height: 260px;
  margin: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #000;
  padding: 60px;
}
.feature-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.feature-box.mission::before { background-image: url('../images/mission-bg.jpg'); opacity: .5; }
.feature-box.leistungen::before { background-image: url('../images/leistungen-bg.jpg'); background-position: center top -70px; opacity: .7; }
.feature-box .content { position: relative; z-index: 1; }
.feature-box h2 {
  color: #fff;
  font-size: 40px;
  margin: 0 0 20px;
}

/* Warum Lebensglück */
.warum {
  display: flex;
  flex-wrap: wrap;
  min-height: 500px;
}
.warum-image {
  flex: 1 1 calc(50% - 20px);
  min-width: 280px;
  min-height: 320px;
  margin: 0 10px 10px 10px;
  background: url('../images/warum-bg.jpg') center/cover no-repeat;
}
.warum-text {
  flex: 1 1 calc(50% - 20px);
  min-width: 280px;
  margin: 0 10px 10px 10px;
  padding: 60px 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.warum-text h2 {
  color: var(--color-dark-green);
  font-size: 40px;
  text-align: left;
  margin: 0 0 20px;
}
.warum-text p {
  text-align: left;
  margin: 0 0 15px;
}

/* Services bullet list */
.services-section {
  padding: 50px 20px;
  text-align: center;
}
.services-section h2 {
  color: var(--color-dark-green);
  font-size: 40px;
  margin: 0 0 30px;
}
.services-list {
  list-style: none;
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 30px;
}
.services-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 18px;
}
.services-list svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--color-light-green);
}

/* Pflegekasse / Entlastungsbetrag */
.pflegekasse-box {
  max-width: 900px;
  margin: 0 auto 50px;
  padding: 40px;
  background: #eef6f0;
  border-left: 6px solid var(--color-light-green);
  text-align: left;
}
.pflegekasse-box h2 {
  color: var(--color-dark-green);
  font-size: 32px;
  margin: 0 0 15px;
}
.pflegekasse-box p { margin: 0 0 15px; }
.pflegekasse-box .btn-small {
  color: var(--color-dark-green);
  border-color: var(--color-dark-green);
}
.pflegekasse-box .btn-small:hover { color: #fff; }

/* Team */
.team-section {
  padding: 50px 20px;
  text-align: center;
}
.team-section h3 {
  color: var(--color-dark-green);
  font-size: 32px;
  margin: 0 0 30px;
}
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
}
.team-card { width: 220px; }
.team-photo-placeholder {
  width: 180px;
  height: 180px;
  margin: 0 auto 15px;
  border-radius: 50%;
  background: #eef6f0;
  border: 2px dashed var(--color-light-green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-teal);
  font-size: 14px;
}
.team-name { font-weight: 700; margin: 0; }
.team-role { margin: 0; color: var(--color-teal); font-size: 15px; }
.team-statement {
  max-width: 700px;
  margin: 0 auto;
  padding: 0;
  font-style: italic;
  color: var(--color-text);
}
.team-statement p { margin: 0 0 10px; }
.team-statement cite { font-style: normal; color: var(--color-teal); }

/* Testimonials */
.testimonial-section {
  padding: 50px 20px;
  text-align: center;
  background: #f2f2f2;
}
.testimonial-section h3 {
  color: var(--color-dark-green);
  font-size: 32px;
  margin: 0 0 30px;
}
.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.testimonial-card {
  flex: 1 1 280px;
  max-width: 340px;
  background: #fff;
  border: 1px dashed #bbb;
  padding: 25px;
  text-align: left;
}
.testimonial-quote {
  font-style: italic;
  margin: 0 0 15px;
}
.testimonial-author {
  margin: 0;
  font-size: 14px;
  color: var(--color-teal);
  font-weight: 700;
}

/* Google-Maps / GMB link */
.gmb-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
}
.gmb-link svg { width: 16px; height: 16px; flex: none; }

/* Generic page sections */
main { min-height: 50vh; }

.page-header {
  text-align: center;
  padding: 50px 20px 20px;
}
.page-header h1 {
  color: var(--color-dark-green);
  font-size: 66px;
  margin: 0 0 20px;
}
.page-header hr {
  border: none;
  border-top: 1px solid #ddd;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

/* Title band with gray background (Über uns) */
.page-title-band {
  background: #f2f2f2;
  min-height: 500px;
  padding: 40px 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-title-band .inner {
  max-width: 1200px;
  margin: 0 auto;
}
.page-title-band h1 {
  color: var(--color-dark-green);
  font-size: 66px;
  margin: 0 0 25px;
}
.divider-line {
  width: 100px;
  height: 6px;
  background: #93b87c;
  margin: 0 auto 25px;
}
.page-title-band p {
  max-width: 800px;
  margin: 0 auto;
}

/* Full-width parallax background band between sections */
.parallax-band {
  width: auto;
  min-height: 400px;
  margin: 20px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
body.no-bg-fixed .parallax-band {
  background-attachment: scroll;
}

.content-section {
  padding: 30px 20px;
  text-align: center;
}
.content-section h3 {
  color: var(--color-dark-green);
  font-size: 32px;
  margin: 0 0 40px;
}
.content-section p { max-width: 720px; margin: 0 auto; }

.legal-section {
  padding: 10px 20px 30px;
  max-width: 1200px;
  margin: 0 auto;
}
.legal-section h3 {
  color: var(--color-dark-green);
  font-size: 32px;
  margin: 30px 0 10px;
  text-align: left;
}
.legal-section p { margin: 0 0 15px; text-align: left; }
.legal-section a { color: var(--color-teal); }

.cta-buttons { text-align: center; padding: 10px 20px 40px; }

/* Contact page */
.contact-stack {
  padding: 20px 20px 50px;
  max-width: 1200px;
  margin: 0 auto;
}
.contact-stack h3 {
  color: var(--color-dark-green);
  font-size: 32px;
}
.contact-stack a { color: var(--color-teal); text-decoration: none; }
.contact-stack a:hover { text-decoration: underline; }
.contact-image {
  width: 100%;
  min-height: 300px;
  margin: 10px 0;
  background-size: cover;
  background-position: center;
}
.contact-form-wrap { margin-top: 10px; }
.form-status {
  padding: 12px 16px;
  margin: 0 0 15px;
  border-radius: 4px;
  font-size: 15px;
}
.form-status--success {
  background: #e3f3e9;
  color: #1f5c38;
  border: 1px solid #93b87c;
}
.form-status--error {
  background: #fbeaea;
  color: #8a2323;
  border: 1px solid #d98c8c;
}

form.contact-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
form.contact-form .form-row label { font-weight: 700; }
form.contact-form .required { color: #c00; }
form.contact-form .form-row--submit { text-align: right; margin-bottom: 0; }
form.contact-form input[type="text"],
form.contact-form input[type="email"],
form.contact-form input[type="tel"],
form.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
}
form.contact-form .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  line-height: 1.4;
}
form.contact-form button[type="submit"] {
  margin-top: 15px;
  padding: 10px 25px;
  background: #fff;
  color: var(--color-text);
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  cursor: pointer;
}
form.contact-form button[type="submit"]:hover { background: #f2f2f2; }

/* Footer */
footer.site-footer {
  background: #cfe8dd;
  padding: 20px;
  text-align: center;
}
footer.site-footer ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
footer.site-footer a {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 12px;
  line-height: 14px;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  border: 2px solid #000;
  padding: 10px 20px;
  transition: background .2s, color .2s;
}
footer.site-footer a:hover,
footer.site-footer a.active {
  background: #000;
  color: #fff;
}

/* Responsive */
@media (max-width: 767px) {
  .floating-contact-bar { display: none; }
  .btn-primary-cta { display: none; }

  .floating-fab-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 500;
  }
  .floating-fab-stack a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-dark-green);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
  }
  .floating-fab-stack svg { width: 26px; height: 26px; }

  .header-row { display: flex; padding: 10px; position: relative; }

  /* justify-content:space-between still splits the gap across logo/toggle/nav
     even though nav is empty when closed, so pin the toggle with auto margin instead */
  .nav-toggle { display: flex; margin-left: auto; width: 48px; height: 44px; padding: 10px; gap: 5px; }
  .nav-toggle span { width: 26px; height: 3px; }
  .header-row nav.main-nav { position: static; transform: none; flex: 0 0 auto; }

  nav.main-nav ul {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    margin-top: 6px;
    right: 20px;
    left: 20px;
    background: #fff;
    padding: 0 20px;
    z-index: 10;
  }
  nav.main-nav.open ul { display: flex; }
  nav.main-nav a { width: 100%; text-align: center; }

  .hero { padding: 60px 20px; }
  .hero h1 { font-size: 33px; }

  .services-list { grid-template-columns: 1fr; }
  .pflegekasse-box { padding: 25px; }

  /* Only the phone-call button is shown on mobile; the "contact page" link is desktop-only */
  .btn-contact-link { display: none; }

  .feature-box h2,
  .warum-text h2 { font-size: 32px; }
  .feature-box h2 { margin: 0; }

  .feature-box,
  .warum-image,
  .warum-text {
    flex-basis: 100%;
    margin: 10px 0;
  }
  .feature-box { min-height: 0; }
  .warum-image { min-height: 220px; }
  .warum-text { padding: 20px; }
  .warum-text h2 { text-align: center; }

  .page-header h1,
  .page-title-band h1 { font-size: 33px; }
  .legal-section h3,
  .content-section h3,
  .contact-stack h3,
  .team-section h3,
  .testimonial-section h3 { font-size: 26px; }
  .services-section h2,
  .pflegekasse-box h2 { font-size: 28px; }
}
