/* ========================================
   Praxis für Psychotherapie — Anna Könning
   www.könning.com
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
  --bg: #fdf8f0;
  --bg-subtle: #f5ebda;
  --text: #3c2415;
  --text-light: #7a6050;
  --accent: #8b2500;
  --accent-hover: #6b1500;
  --border: #e0d0ba;
  --header-bg: #fdf8f0;
  --card-bg: #fffcf5;
  --card-shadow: 0 2px 20px rgba(139,37,0,0.06);

  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;
  --max-width: 960px;
  --nav-height: 80px;
  --section-spacing: 5rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

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

h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.4rem; margin-bottom: 1rem; }

p {
  margin-bottom: 1rem;
}

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

.section {
  padding: var(--section-spacing) 0;
}

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

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

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

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header__logo img {
  height: 42px;
  width: auto;
}

.header__logo-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-size: 0.95rem;
  color: var(--text-light);
  letter-spacing: 0.03em;
  text-transform: none;
  position: relative;
  padding: 0.25rem 0;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

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

/* --- Hero Section --- */
.hero {
  text-align: center;
  padding: 3rem 0 0;
}

.hero h1 {
  margin-bottom: 0.5rem;
  font-size: 2.6rem;
  letter-spacing: 0.02em;
}

.hero__subtitle {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  font-style: italic;
}

/* --- Slideshow --- */
.slideshow {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  aspect-ratio: 4/3;
  background-color: var(--bg-subtle);
}

.slideshow__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slideshow__slide.active {
  opacity: 1;
}

.slideshow__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slideshow__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem 0;
}

.slideshow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.3s ease;
  padding: 0;
}

.slideshow__dot.active {
  background-color: var(--accent);
}

.slideshow__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.7);
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.slideshow:hover .slideshow__arrow {
  opacity: 1;
}

.slideshow__arrow--prev { left: 1rem; }
.slideshow__arrow--next { right: 1rem; }

.slideshow__note {
  text-align: right;
  font-size: 0.65rem;
  color: var(--border);
  margin-top: 0.25rem;
}

/* --- Quote Section --- */
.quote {
  text-align: center;
  padding: 3.5rem 1.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.quote blockquote {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.quote cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-light);
}

/* --- Content Sections --- */
.content-section {
  padding: var(--section-spacing) 0;
}

.content-section h2 {
  text-align: center;
}

.content-section p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

.content-section p a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- About / Profile --- */
.profile {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.profile__image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 2px;
}

.profile__name {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}

.profile__title {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.profile__bio h3 {
  margin-top: 2rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.profile__bio h3:first-child {
  margin-top: 0;
}

.profile__bio ul {
  list-style: none;
  padding: 0;
}

.profile__bio li {
  padding: 0.4rem 0;
  color: var(--text-light);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.profile__bio li:last-child {
  border-bottom: none;
}

.profile__bio li strong {
  color: var(--text);
  font-weight: 500;
}

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

.therapy-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: box-shadow 0.3s ease;
}

.therapy-card:hover {
  box-shadow: var(--card-shadow);
}

.therapy-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.therapy-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* --- Therapy Detail Sections --- */
.therapy-detail {
  max-width: 700px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}

.therapy-detail h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.therapy-detail p,
.therapy-detail ul {
  color: var(--text-light);
  font-size: 0.95rem;
}

.therapy-detail ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.therapy-detail li {
  margin-bottom: 0.4rem;
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.contact-info h3 {
  font-family: var(--font-heading);
  margin-bottom: 1rem;
}

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

.contact-info a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-details {
  margin-bottom: 2rem;
}

.contact-details dt {
  font-weight: 500;
  color: var(--text);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 1.25rem;
}

.contact-details dd {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* --- Jobs --- */
.job-listing {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.job-listing h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

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

/* --- Badge --- */
.badge {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-light);
  border: 1px solid var(--border);
  padding: 0.3rem 0.8rem;
  margin: 0.3rem;
  letter-spacing: 0.03em;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-light);
}

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

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

/* --- Legal / Impressum --- */
.legal {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.legal h2 {
  text-align: left;
  margin-top: 2.5rem;
}

.legal h3 {
  margin-top: 1.5rem;
}

.legal p, .legal li {
  color: var(--text-light);
  font-size: 0.9rem;
}

.legal ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

/* --- Page Header (inner pages) --- */
.page-header {
  text-align: center;
  padding: 3rem 0 2rem;
}

.page-header h1 {
  font-size: 2.2rem;
}

.page-header p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0.75rem auto 0;
  font-size: 1rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  :root {
    --section-spacing: 3rem;
    --nav-height: 64px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--header-bg);
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
    transition: right 0.3s ease;
    box-shadow: -4px 0 24px rgba(0,0,0,0.1);
    z-index: 105;
  }

  .nav.open {
    right: 0;
  }

  .nav a {
    font-size: 1.1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 1.1rem;
  }

  .profile {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .profile__image {
    max-width: 280px;
    margin: 0 auto;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__inner {
    flex-direction: column;
    gap: 0.5rem;
  }

  .slideshow {
    aspect-ratio: 3/2;
  }

  .quote blockquote {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .header__logo-text {
    display: none;
  }

  h1 { font-size: 1.7rem; }
}
