/* Demo layout – Praxis für Psychotherapie (psych-hahn.de) */
:root {
  --color-bg: #f5f4f2;
  --color-surface: #fff;
  --color-hero-bg: #ebeae8;
  --color-primary: #0d9488;
  --color-primary-dark: #0f766e;
  --color-accent: #0d9488;
  --color-accent-dark: #0f766e;
  --color-text: #1a1a1a;
  --color-text-muted: #555;
  --color-border: #e0ddd8;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --max-width: 1200px;
  --header-height: 72px;
  --hero-radius: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

.header-inner {
  width: 97%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.logo-name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.logo-tagline {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.nav {
  justify-self: start;
  display: flex;
  gap: 1.25rem;
}

.nav a {
  font-weight: 500;
  color: var(--color-accent);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-cta {
  background: var(--color-accent);
  color: #fff;
  justify-self: end;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-cta:hover {
  background: var(--color-accent-dark);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
}

/* Hero: Box 90 % Breite, abgerundete Ecken, Bild füllt Box, Text links darüber */
.hero {
  padding: 2rem 0 3rem;
  background: var(--color-bg);
}

.hero-inner {
  position: relative;
  width: 97%;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 75vh;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-image-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #99d6d2 0%, #5eead4 50%, #2dd4bf 100%);
}

.hero-text {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2rem 3rem clamp(1.5rem, 5vw, 4rem);
  max-width: 520px;
  z-index: 2;
}

.hero-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
  margin: 0 0 0.85rem;
}

.hero-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.18;
  margin: 0 0 1.15rem;
  color: var(--color-text);
}

.hero-title span {
  color: var(--color-accent);
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
  max-width: 26rem;
}

.btn-hero {
  align-self: flex-start;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--color-accent);
  color: #fff;
  border-radius: 8px;
}

.btn-hero:hover {
  background: var(--color-accent-dark);
}

@keyframes heroPlaceholder {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Section common */
.section-dot {
  display: block;
  color: var(--color-primary);
  font-size: 0.6rem;
  margin-bottom: 0.25rem;
}

.section-label {
  font-size: 0.85rem;
  text-transform: lowercase;
  color: var(--color-text-muted);
  margin: 0 0 0.5rem;
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  margin: 0 0 1.5rem;
}

/* About – zwei Bilder links (groß + überlappend), Text rechts */
.about {
  padding: 4rem 1.5rem;
  background: var(--color-surface);
}

.about-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-images {
  position: relative;
  max-width: 480px;
}

.about-img {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-img-main {
  width: 100%;
  aspect-ratio: 4/3;
}

.about-img-overlap {
  position: absolute;
  right: -1rem;
  bottom: -1.5rem;
  width: 55%;
  aspect-ratio: 4/3;
  border: 4px solid var(--color-surface);
}

.about-img-placeholder {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  opacity: 0.9;
}

.about-content {
  padding: 0 0.5rem;
}

.about-text {
  margin: 0 0 1.5rem;
  color: var(--color-text-muted);
}

.about-list {
  margin: 0 0 2rem;
  padding-left: 0;
  list-style: none;
}

.about-list li {
  margin-bottom: 0.6rem;
  padding-left: 1.75rem;
  position: relative;
  color: var(--color-text-muted);
}

.about-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1rem;
}

.about-card {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  max-width: 400px;
  padding: 1rem 0;
}

.about-card-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.85;
  flex-shrink: 0;
}

.about-card-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.about-card-content p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
}

@media (max-width: 900px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-images {
    max-width: 100%;
    order: 1;
  }

  .about-content {
    order: 2;
  }

  .about-img-overlap {
    right: 0.5rem;
    bottom: -1rem;
    width: 50%;
  }
}

/* Tabs – links Leistungsliste, rechts Content inkl. Bild */
.tabs-section {
  padding: 4rem 1.5rem;
  background: var(--color-bg);
}

.tabs-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.tabs-section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.tabs-section-header .section-dot {
  display: block;
  margin-bottom: 0.25rem;
}

.tabs-section-header .section-label {
  margin-bottom: 0.35rem;
}

.tabs-section-header .section-title {
  margin-bottom: 0;
}

.tabs-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  align-items: start;
}

.tabs-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--color-surface);
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 500;
  text-align: left;
  background: var(--color-surface);
  border: none;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.tab-btn:last-child {
  border-bottom: none;
}

.tab-btn:hover {
  background: rgba(13, 148, 136, 0.06);
  color: var(--color-primary);
}

.tab-btn:hover .tab-btn-icon {
  color: var(--color-primary);
}

.tab-btn.active {
  background: rgba(13, 148, 136, 0.1);
  color: var(--color-primary);
  border-left: 3px solid var(--color-primary);
  padding-left: calc(1rem - 3px);
}

.tab-btn.active .tab-btn-icon {
  color: var(--color-primary);
}

.tab-btn-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.tab-btn-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.tab-btn-text {
  flex: 1;
  line-height: 1.3;
}

.tabs-content {
  position: relative;
  min-height: 320px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.tab-pane-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
  background: var(--color-surface);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.tab-pane-image {
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.tab-pane-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tab-pane-image-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  opacity: 0.85;
}

.tab-pane-body h3 {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.tab-pane-body h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
}

.tab-pane-body p,
.tab-pane-body ul {
  margin: 0 0 0.75rem;
  color: var(--color-text-muted);
}

.tab-pane-body ul {
  padding-left: 1.25rem;
}

.tab-pane-body .btn {
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .tabs-layout {
    grid-template-columns: 1fr;
  }

  .tabs-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .tab-btn {
    flex: 1 1 auto;
    min-width: 140px;
  }

  .tab-pane-card {
    grid-template-columns: 1fr;
  }
}

/* Team – Überschrift mittig, Karten als ganze Boxen mit Schatten */
.team {
  padding: 4rem 1.5rem;
  background: var(--color-bg);
}

.team-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.team-section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.team-section-header .section-dot {
  display: block;
  margin-bottom: 0.25rem;
}

.team-section-header .section-label {
  margin-bottom: 0.35rem;
}

.team-section-header .section-title {
  margin-bottom: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 0;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--color-surface);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s;
}

.team-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.team-card-image {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  opacity: 0.9;
  margin: 0 auto 1.25rem;
  flex-shrink: 0;
  overflow: hidden;
}

.team-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.team-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
  flex: 1;
}

.btn-team {
  display: inline-flex;
  width: 100%;
  max-width: 180px;
  justify-content: center;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 8px;
  margin-top: auto;
}

.btn-team:hover {
  background: var(--color-primary-dark);
  color: #fff;
  text-decoration: none;
}

/* Contact */
.contact {
  padding: 4rem 1.5rem;
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.95);
}

.contact-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.contact-title {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  margin: 0 0 2rem;
  color: #fff;
}

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

.contact-info p,
.contact-hours dl {
  margin: 0 0 0.75rem;
  color: rgba(255, 255, 255, 0.9);
}

.contact-name {
  font-weight: 600;
  margin-bottom: 0.5rem !important;
  color: #fff;
}

.contact-email a {
  color: rgba(255, 255, 255, 0.95);
}

.contact-email a:hover {
  color: #fff;
  text-decoration: underline;
}

.contact-hours h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: #fff;
}

.contact-hours dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 2rem;
  margin: 0;
}

.contact-hours dt {
  margin: 0;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
}

.contact-hours dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

/* Footer */
.footer {
  padding: 1.5rem;
  border-top: none;
  background: var(--color-primary);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.footer-nav a:hover {
  color: #fff;
}

/* Impressum & Datenschutz */
.legal-main {
  padding: 3rem 1.5rem 4rem;
  background: var(--color-bg);
  min-height: 50vh;
}

.legal-inner {
  max-width: 700px;
  margin: 0 auto;
}

.legal-main h1 {
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--color-text);
}

.legal-intro {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0 0 2rem;
}

.legal-block {
  margin-bottom: 2rem;
}

.legal-block h2 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--color-text);
}

.legal-block p,
.legal-block ul {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin: 0 0 0.75rem;
}

.legal-block ul {
  padding-left: 1.25rem;
}

.legal-block a {
  color: var(--color-primary);
}

.legal-block a:hover {
  text-decoration: underline;
}

.legal-back {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.legal-back a {
  color: var(--color-primary);
  font-weight: 500;
}

.legal-back a:hover {
  text-decoration: underline;
}

/* Profil-Seite (zwei Boxen wie Referenz) */
.profil-main {
  padding: 3rem 1.5rem 4rem;
  background: var(--color-bg);
  min-height: 60vh;
}

.profil-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.profil-box {
  background: var(--color-hero-bg);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--color-border);
}

.profil-box-text {
  padding: 2rem 2rem 2.5rem;
}

.profil-name {
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--color-text);
}

.profil-role {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin: 0 0 1.75rem;
}

.profil-heading {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 1.25rem 0 0.5rem;
}

.profil-heading:first-of-type {
  margin-top: 0;
}

.profil-list {
  margin: 0 0 0.5rem;
  padding-left: 1.25rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.profil-list li {
  margin-bottom: 0.35rem;
}

.profil-box-image {
  padding: 0;
}

.profil-box-image img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

.profil-image-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(145deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  opacity: 0.85;
}

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

  .profil-box-text {
    order: 1;
  }

  .profil-box-image {
    order: 2;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    min-height: 60vh;
  }

  .hero-text {
    padding: 2rem 1.5rem;
    max-width: 100%;
  }

  .tab-pane-image {
    max-height: 220px;
  }

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

@media (max-width: 700px) {
  .header-inner {
    width: 100%;
    padding: 0 1rem;
    grid-template-columns: 1fr auto;
    justify-content: space-between;
  }

  .nav,
  .btn-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .header.nav-open .nav {
    display: flex;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem 1.5rem;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
  }

  .header.nav-open .btn-cta {
    display: inline-flex;
  }

  .about-inner {
    padding: 0;
  }

  .about-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .tabs-section {
    padding: 3rem 1rem;
  }

  .tabs-inner {
    padding: 0;
  }

  .tab-btn {
    min-width: 0;
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
  }

  .tab-btn-icon {
    width: 18px;
    height: 18px;
  }

  .team {
    padding: 3rem 1rem;
  }

  .team-card {
    padding: 1.25rem;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .contact {
    padding: 3rem 1rem;
  }

  .footer {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-inner {
    width: 100%;
    border-radius: 0;
  }

  .hero-text {
    padding: 2rem 1rem;
  }

  .about-text,
  .about-list {
    max-width: 100%;
  }

  .tabs-nav {
    gap: 0.25rem;
  }

  .tab-pane-card {
    padding: 1rem;
  }

  .tab-pane-body h3 {
    font-size: 1.25rem;
  }

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

  .team-card-image {
    max-width: 160px;
  }

  .btn-team {
    max-width: 100%;
  }

  .profil-main {
    padding: 2rem 1rem 3rem;
  }

  .profil-box-text {
    padding: 1.5rem 1.25rem;
  }

  .profil-name {
    font-size: 1.5rem;
  }
}
