/* ============================================
   Psychotherapie Schleich – Stylesheet
   Clean, minimal design matching original site
   ============================================ */

/* --- Self-hosted Poppins (GDPR-compliant) --- */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/poppins-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-700.woff2') format('woff2');
}

/* --- Custom Properties --- */
:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f7f7f7;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-text-heading: #222222;
  --color-border: #e0e0e0;
  --color-footer-bg: #333333;
  --color-footer-text: #cccccc;
  --color-link: #333333;
  --color-link-hover: #000000;

  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --max-width: 1140px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-text-heading);
  line-height: 1.3;
  font-weight: 600;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; }

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-link-hover); }

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

/* --- Skip Link (Accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.5rem;
  background: var(--color-text-heading);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.section--alt {
  background-color: var(--color-bg-alt);
}

/* --- Breadcrumbs --- */
.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 2rem 0;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.breadcrumb__list li::after {
  content: '›';
  margin-left: 0.4rem;
}

.breadcrumb__list li:last-child::after {
  content: '';
}

.breadcrumb__list a {
  color: var(--color-text-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.breadcrumb__list a:hover {
  color: var(--color-text-heading);
}

.breadcrumb__list li:last-child {
  color: var(--color-text);
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 2rem;
}

.nav__logo {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--color-text-heading);
}

.nav__logo-prefix {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--color-text);
}

.nav__logo-name {
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-text-heading);
}

.nav__logo-img {
  height: 22px;
  width: auto;
}

.nav__links {
  display: flex;
  list-style: none;
  gap: 0;
  align-items: center;
}

.nav__links > li {
  position: relative;
}

.nav__links > li > a {
  display: block;
  padding: 0.75rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text);
  transition: color var(--transition);
}

.nav__links > li > a:hover {
  color: var(--color-text-heading);
}

/* Dropdown */
.nav__dropdown-toggle {
  cursor: pointer;
}

.nav__dropdown-toggle::after {
  content: ' \25BE';
  font-size: 0.55rem;
  vertical-align: 1px;
  margin-left: 2px;
}

.nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-bg);
  border: none;
  min-width: 220px;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  list-style: none;
  padding: 0.75rem 0;
  margin: 0;
}

.nav__links > li:hover .nav__dropdown {
  display: block;
}

.nav__dropdown a {
  display: block;
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--color-text);
  transition: color var(--transition);
}

.nav__dropdown a:hover {
  color: var(--color-text-heading);
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: var(--transition);
}

/* --- Hero / Banner --- */
.hero {
  width: 100%;
  overflow: hidden;
}

.hero__img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 500px;
  object-fit: cover;
}

/* --- Page Title --- */
.page-title {
  text-align: center;
  padding: 4rem 2rem;
}

.page-title h1 {
  font-size: 2.2rem;
  font-weight: 300;
}

.page-title--split {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-title__prefix {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--color-text-heading);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.page-title--split h1 {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
}

/* --- Therapy Cards (3 columns) --- */
.therapy-cards {
  padding: 0 0 4rem;
}

.therapy-cards__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.therapy-card {
  text-align: left;
}

.therapy-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

.therapy-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.therapy-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.therapy-card__link {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-light);
  transition: color var(--transition);
}

.therapy-card__link:hover {
  color: var(--color-text-heading);
}

/* --- About Section (Profile) --- */
.about {
  padding: 5rem 0;
  background: var(--color-bg-alt);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.about__image img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
}

.about__text h2 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.about__text p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.8;
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  border: 1.5px solid var(--color-text);
  color: var(--color-text);
  background: transparent;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  margin-top: 1rem;
}

.btn:hover {
  background: var(--color-text-heading);
  color: var(--color-bg);
  border-color: var(--color-text-heading);
}

/* --- Content Sections (alternating image/text) --- */
.content-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
}

.content-row--reverse {
  direction: rtl;
}

.content-row--reverse > * {
  direction: ltr;
}

.content-row__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 350px;
}

.content-row__text {
  padding: 3rem 4rem;
}

.content-row__text h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.content-row__text p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* --- Subpage Content (long-form text) --- */
.subpage-content {
  max-width: 850px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}

.subpage-content p {
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.subpage-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.subpage-content ul {
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

.subpage-content ul li {
  margin-bottom: 0.5rem;
  line-height: 1.75;
  color: var(--color-text);
}

.subpage-content__img {
  width: 100%;
  margin: 2rem 0;
}

/* --- Gallery --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.gallery__img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

/* --- Kosten --- */
.kosten__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.kosten-card {
  background: var(--color-bg);
  padding: 2.5rem 2rem;
  border: 1px solid var(--color-border);
  text-align: center;
}

.kosten-card h3 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.kosten-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* --- Team --- */
.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.team-card {
  text-align: center;
}

.team-card__avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
}

.team-card__avatar--placeholder {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--color-text-light);
  border: 1px solid var(--color-border);
}

.team-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.team-card__role {
  color: var(--color-text-light);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.team-card__bio {
  color: var(--color-text-light);
  font-size: 0.9rem;
  line-height: 1.7;
  text-align: left;
  max-width: 320px;
  margin: 0 auto;
}

.team-card__vita-link {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.5rem 1.25rem;
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-size: 0.85rem;
  text-decoration: none;
  border: 1px solid var(--color-border);
}

.team-card__vita-link:hover {
  background: var(--color-border);
}

/* --- Contact --- */
.contact__grid {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 2rem;
}

.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact__item-icon {
  width: 20px;
  font-size: 1.1rem;
  flex-shrink: 0;
  padding-top: 2px;
}

.contact__icon-svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-text);
}

.contact__item-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-heading);
  margin-bottom: 0.15rem;
}

.contact__item-text span,
.contact__item-text a {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.contact__map {
  max-width: 600px;
  margin: 2rem auto 0;
  padding: 0 2rem;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.contact__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Sprechzeiten --- */
.contact__hours {
  max-width: 600px;
  margin: 2.5rem auto 0;
  padding: 0 2rem;
}

.contact__hours h2 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.contact__hours p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* --- FAQ --- */
.faq {
  max-width: 850px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

.faq h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0;
}

.faq__item:first-of-type {
  border-top: 1px solid var(--color-border);
}

.faq__question {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-heading);
  margin-bottom: 0.5rem;
}

.faq__answer {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* --- Footer --- */
.footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 3rem 0 2rem;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer__logo img {
  height: 14px;
  width: auto;
  opacity: 0.9;
}

.footer__nav {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.footer__nav a {
  color: var(--color-footer-text);
  font-size: 0.85rem;
  font-weight: 400;
  transition: color var(--transition);
}

.footer__nav a:hover {
  color: #ffffff;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__info {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

.footer__legal {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer__legal a {
  color: var(--color-footer-text);
  font-size: 0.8rem;
  font-weight: 500;
  transition: color var(--transition);
}

.footer__legal a:hover {
  color: #ffffff;
}

/* --- Legal Pages --- */
.legal {
  padding: 4rem 2rem;
  min-height: 60vh;
}

.legal__content {
  max-width: 750px;
  margin: 0 auto;
}

.legal__content h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.legal__content h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal__content p {
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

/* --- Praxis Description --- */
.praxis-description {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem 3rem;
  text-align: center;
}

.praxis-description p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto 1rem;
}

/* --- Responsive --- */
@media (max-width: 968px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }

  .therapy-cards__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 500px;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .about__text p {
    text-align: center;
  }

  .content-row {
    grid-template-columns: 1fr;
  }

  .content-row--reverse {
    direction: ltr;
  }

  .content-row__text {
    padding: 2.5rem 2rem;
  }

  .kosten__grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }

  .team__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  }

  .nav__links.open {
    display: flex;
  }

  .nav__links > li > a {
    padding: 0.6rem 2rem;
  }

  .nav__dropdown {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
  }

  .nav__links > li:hover .nav__dropdown,
  .nav__dropdown {
    display: block;
  }

  .nav__toggle {
    display: block;
  }

  .nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav__toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero__img {
    max-height: 300px;
  }

  .page-title {
    padding: 2.5rem 1.5rem;
  }

  .footer__top {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer__nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .breadcrumb {
    padding: 0.75rem 1.5rem 0;
  }
}
