/* ==========================================================================
   1. GRUNDEINSTELLUNGEN & VARIABLEN (Design-System)
   ========================================================================== */
:root {
  --green-950: #294b20;
  --green-900: #416a2a;
  --green-800: #527d34;
  --green-700: #6e8d3f;
  --green-600: #78994a;
  --green-200: #dce8d2;
  --green-100: #edf3e8;
  --cream: #fff;
  --ink: #1e2b20;
  --muted: #596454;
  --white: #fff;
  --shadow: 0 18px 50px rgba(41, 75, 32, .10);
  --radius: 18px;
  --max: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

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

a {
  color: var(--green-800);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--green-600);
}


/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2vw, 34px);
  padding: 12px max(26px, calc((100% - 1420px) / 2));
  background: #6e8d3f;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 3px 14px rgba(28, 55, 22, .08);
}

header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  width: 116px;
  height: 116px;
  flex: 0 0 116px;
  object-fit: contain;
  border-radius: 50%;
  background: transparent;
  padding: 2px;
}

.brand b {
  display: block;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: .01em;
}

.brand small {
  display: block;
  color: #f0f4e9;
  font-size: 12px;
  letter-spacing: .04em;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, .6);
  background: transparent;
  color: #fff;
  border-radius: 10px;
  padding: 9px 12px;
  font: inherit;
}

nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3.2vw, 52px);
}

nav a {
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  padding: 9px 0 7px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

nav a:hover,
nav a[aria-current="page"] {
  color: #fff;
  border-color: #fff;
}

.phone {
  white-space: nowrap;
  text-decoration: none;
  background: #6e8d3f;
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
}

.phone span {
  font-size: 20px;
  margin-right: 8px;
}

.phone:hover {
  background: #294b20;
  color: #fff;
}


/* ==========================================================================
   3. HAUPTBEREICH & STARTSEITE (HERO, BENEFITS, INTRO)
   ========================================================================== */
main {
  flex: 1;
  min-height: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 70px max(5%, calc((100% - 1380px) / 2));
  min-height: 580px;
  display: flex;
  align-items: center;
  background: #fff;
}

.hero-image {
  max-width: none;
  border-radius: 0;
  padding-top: 66px;
  padding-bottom: 70px;
  min-height: 580px;
  background-image: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .98) 26%, rgba(255, 255, 255, .88) 39%, rgba(255, 255, 255, .34) 57%, rgba(255, 255, 255, 0) 73%), url("images/praxis.jpg");
  background-size: cover;
  background-position: center 54%;
}

.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 700px;
  margin: 18px 0 24px;
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 450;
  line-height: 1.12;
  letter-spacing: -.045em;
  color: #527d34;
}

.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #416a2a;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: .15em;
  font-weight: 750;
}

.hero .eyebrow span {
  display: inline-block;
  width: 54px;
  height: 3px;
  background: #6e8d3f;
}

.hero-description {
  max-width: 530px;
  font-size: 22px;
  line-height: 1.55;
  color: #253229;
  margin: 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 25px;
  border: 0;
  border-radius: 999px;
  background: #6e8d3f;
  color: white !important;
  text-decoration: none;
  font-weight: 750;
  box-shadow: 0 8px 20px rgba(15, 70, 42, .12);
  transition: transform .2s, background .2s;
}

.button:hover {
  background: #416a2a;
  transform: translateY(-1px);
}

.hero-link {
  color: #416a2a;
  font-weight: 750;
  text-decoration: none;
}

.hero-link:hover {
  color: #294b20;
}

/* Vorteile-Leiste (Benefits) */
.benefits {
  max-width: 1480px;
  margin: 0 auto;
  padding: 36px 24px 46px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff;
}

.benefit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 22px;
  min-width: 0;
}

.benefit + .benefit {
  border-left: 1px solid #c9d7bd;
}

.benefit-icon {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: #e5eedf;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.benefit-icon svg {
  width: 64px;
  height: 64px;
  fill: none;
  stroke: #315d25;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit h2 {
  font-family: inherit;
  font-size: clamp(16px, 1.55vw, 22px);
  font-weight: 500;
  color: #27312a;
  margin: 0;
  line-height: 1.35;
}

/* Home Intro & Callout */
.home-intro {
  max-width: 850px;
  margin: 32px auto 72px;
  padding: 0 24px;
  text-align: center;
}

.eyebrow {
  color: #527d34;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.home-intro h2,
.callout h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(32px, 3.5vw, 46px);
  line-height: 1.2;
  color: #416a2a;
  margin: 10px 0 16px;
}

.home-intro > p:not(.eyebrow) {
  font-size: 18px;
  color: #596454;
}

.text-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 750;
  text-decoration: none;
}

.callout {
  max-width: 1160px;
  margin: 0 auto 76px;
  padding: 46px 28px;
  text-align: center;
  border-radius: var(--radius);
  background: #edf3e8;
  border: 1px solid #dce8d2;
}

.callout h2 {
  margin-top: 0;
}

.callout p {
  max-width: 650px;
  margin: 12px auto;
  color: #596454;
}


/* ==========================================================================
   4. SEITEN-LAYOUTS (Allgemein & Unterseiten)
   ========================================================================== */
.page-team main,
.page-leistungen main,
.page-kontakt main,
.page-impressum main,
.page-datenschutz main {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 42px 24px 76px;
}

.page-team main > h1,
.page-leistungen main > h1,
.page-kontakt main > h1,
.page-impressum main > h1,
.page-datenschutz main > h1 {
  font-family: Georgia, serif;
  color: var(--green-950);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.12;
  margin: 10px 0 28px;
}

.page-team main p,
.page-leistungen main p,
.page-kontakt main p,
.page-impressum main p,
.page-datenschutz main p {
  max-width: 850px;
}

.page-team main h2,
.page-leistungen main h2,
.page-kontakt main h2,
.page-impressum main h2,
.page-datenschutz main h2 {
  margin-top: 32px;
}

.page-team main img {
  border-radius: var(--radius);
  object-fit: cover;
}

.page-team main [class*=card],
.page-leistungen main [class*=card],
.page-kontakt main [class*=card] {
  background: #f4f7f1;
  border: 1px solid #e1eadb;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 8px 28px rgba(18, 60, 44, .05);
}

.page-impressum main,
.page-datenschutz main {
  max-width: 900px;
  background: transparent;
}

.page-impressum main h1:before,
.page-datenschutz main h1:before {
  content: "";
  display: block;
  width: 54px;
  height: 5px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--green-600);
}


/* ==========================================================================
   5. TEAMSEITE (Besonderes Layout für Mitarbeiter)
   ========================================================================== */
.team-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 52px 24px 76px;
}

.team-intro {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.team-intro .eyebrow {
  color: var(--green-700);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.team-intro h1 {
  margin: 8px 0 16px;
  color: var(--green-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 500;
  line-height: 1.08;
}

.team-intro > p:last-child {
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
}

.person {
  min-width: 0;
  overflow: hidden;
  padding: 28px 22px 24px;
  background: #fff;
  border: 1px solid #e1ebe3;
  border-radius: 22px;
  box-shadow: 0 8px 28px rgba(18, 60, 44, .055);
  text-align: center;
}

.person-photo {
  display: block;
  width: clamp(128px, 13vw, 168px);
  height: clamp(128px, 13vw, 168px);
  margin: 0 auto 22px;
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: 1/1;
  border: none;
}

.person-info h2 {
  margin: 0 0 9px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2vw, 27px);
  font-weight: 500;
  line-height: 1.2;
}

.person-info .role {
  margin: 0 0 14px;
  color: var(--green-800);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

.person-info p {
  margin: 8px auto;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.person-info ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.person-info li {
  padding: 5px 0;
  border-top: 1px solid #edf3ee;
}

.team-note {
  margin: 54px 0 0;
  padding: 34px 24px;
  text-align: center;
  background: #edf3e8;
  border: 1px solid #dce8d2;
  border-radius: 22px;
}

.team-note h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3vw, 38px);
}

.team-note p {
  margin: 0 auto 20px;
  color: var(--muted);
}


/* ==========================================================================
   6. FOOTER
   ========================================================================== */
footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
  padding: 46px max(24px, calc((100% - var(--max)) / 2)) 22px;
  background: #294b20;
  color: #e8f2eb;
}

footer b {
  color: white;
}

footer p {
  margin: 8px 0;
  color: #d1e2c8;
  font-size: 14px;
}

footer a {
  display: inline-block;
  color: #e8f2eb;
  text-decoration: none;
  margin-right: 14px;
}

footer a:hover {
  color: white;
  text-decoration: underline;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  color: #c7d9bd;
  font-size: 12px;
}


/* ==========================================================================
   7. RESPONSIVES DESIGN (Media Queries)
   ========================================================================== */

/* Bis 1050px */
@media (max-width: 1050px) {
  header {
    gap: 16px;
    padding: 12px 20px;
  }
  .brand-logo {
    width: 88px;
    height: 88px;
    flex-basis: 88px;
  }
  nav {
    gap: 18px;
  }
  nav a {
    font-size: 14px;
  }
  .phone {
    font-size: 14px;
    padding: 9px 12px;
  }
  .hero-image {
    min-height: 550px;
  }
  .hero h1 {
    font-size: clamp(42px, 5.5vw, 60px);
  }
}

/* Bis 900px (Tablet / Mobil-Umstellung) */
@media (max-width: 900px) {
  header {
    flex-wrap: wrap;
    gap: 12px;
  }
  header .menu-toggle {
    display: block;
    margin-left: auto;
  }
  header nav {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
  }
  header nav.open {
    display: flex;
  }
  header nav a {
    padding: 12px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, .22);
  }
  .phone {
    font-size: 13px;
  }
  .hero {
    margin: 0;
  }
  .hero-image {
    padding: 58px 6%;
    min-height: 540px;
    background-position: 58% center;
  }
  .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 30px 20px;
  }
  .benefit {
    padding: 24px 18px;
  }
  .benefit:nth-child(3) {
    border-left: 0;
  }
  .benefit:nth-child(n+3) {
    border-top: 1px solid #c9d7bd;
  }
  .callout {
    margin: 44px 18px 60px;
  }
  footer {
    padding: 38px 24px 20px;
    grid-template-columns: 1fr 1fr;
  }
  .copyright {
    grid-column: 1 / -1;
  }
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .team-main {
    padding-top: 38px;
  }
}

/* Bis 560px (Smartphone) */
@media (max-width: 560px) {
  body {
    font-size: 15px;
  }
  .brand-logo {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }
  .brand-copy b {
    font-size: 14px;
  }
  .brand-copy small {
    font-size: 10px;
  }
  .phone {
    order: 3;
    margin-left: auto;
  }
  .hero-image {
    min-height: 610px;
    padding: 52px 24px 64px;
    background-position: 62% center;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .91) 48%, rgba(255, 255, 255, .55) 78%, rgba(255, 255, 255, .22) 100%), url("images/praxis.jpg");
  }
  .hero h1 {
    font-size: clamp(38px, 10vw, 52px);
    letter-spacing: -.04em;
  }
  .hero .eyebrow {
    font-size: 11px;
    letter-spacing: .11em;
    gap: 10px;
  }
  .hero .eyebrow span {
    width: 30px;
  }
  .hero-description {
    font-size: 17px;
  }
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .benefits {
    padding: 20px 12px;
  }
  .benefit {
    padding: 22px 10px;
  }
  .benefit-icon {
    width: 82px;
    height: 82px;
    margin-bottom: 12px;
  }
  .benefit-icon svg {
    width: 48px;
    height: 48px;
  }
  .benefit h2 {
    font-size: 15px;
  }
  .home-intro {
    margin: 24px auto 50px;
    padding: 0 20px;
  }
  .home-intro > p:not(.eyebrow) {
    font-size: 16px;
  }
  .callout {
    margin: 34px 16px 50px;
    padding: 32px 20px;
  }
  .page-team main,
  .page-leistungen main,
  .page-kontakt main,
  .page-impressum main,
  .page-datenschutz main {
    padding: 34px 20px 54px;
  }
  footer {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 34px 22px 18px;
  }
  .copyright {
    grid-column: auto;
  }
  .team-main {
    padding: 30px 16px 48px;
  }
  .team-intro {
    margin-bottom: 28px;
  }
  .team-intro > p:last-child {
    font-size: 16px;
  }
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .person {
    padding: 20px 12px 18px;
    border-radius: 17px;
  }
  .person-photo {
    width: min(100%, 124px);
    height: auto;
    aspect-ratio: 1/1;
    margin-bottom: 15px;
    border-width: 0px;
  }
  .person-info h2 {
    font-size: 20px;
  }
  .person-info .role {
    font-size: 12px;
  }
  .person-info p {
    font-size: 13px;
  }
  .person-info ul {
    font-size: 12px;
  }
  .team-note {
    margin-top: 30px;
    padding: 26px 18px;
  }
}

/* Bis 350px (Sehr kleine Displays) */
@media (max-width: 350px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
  .person {
    padding: 24px 20px;
  }
  .person-photo {
    width: 140px;
  }
}
