/* ============================================================
   PRAXIS DR. THOMAS MEYER — Designsystem
   Farben, Typografie, Layout
   ============================================================ */

:root {
  /* Farben */
  --color-bg:         #f8f6f2;
  --color-white:      #ffffff;
  --color-text:       #2c2c2c;
  --color-text-light: #5a5a5a;
  --color-text-muted: #888888;
  --color-primary:    #3d6b5e;   /* ruhiges Waldgrün */
  --color-primary-dark: #2a4d44;
  --color-accent:     #8a7558;   /* warmes Sandbraun */
  --color-accent-light: #c4a882;
  --color-border:     #ddd8ce;
  --color-card-bg:    #ffffff;
  --color-header-bg:  #ffffff;
  --color-footer-bg:  #2a3a35;
  --color-footer-text:#c8d8d4;

  /* Typografie */
  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'Source Serif 4', Georgia, serif;
  --font-sans:     'Mulish', 'Helvetica Neue', sans-serif;

  /* Abstände */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;

  /* Sonstiges */
  --radius:    4px;
  --radius-lg: 8px;
  --shadow:    0 2px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --transition: 0.25s ease;
  --max-width:  1100px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

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

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

ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.15rem;
  color: var(--color-text-light);
  line-height: 1.85;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: 0.5rem;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

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

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

.section--dark {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

.section--dark h2,
.section--dark h3 {
  color: var(--color-white);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}

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

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
  background: var(--color-header-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
}

.header-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.header-brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.header-brand-sub {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
}

/* Nav */
.main-nav ul {
  display: flex;
  gap: 0.15rem;
  align-items: center;
}

.main-nav a {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-light);
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary);
  background: rgba(61, 107, 94, 0.08);
}

.nav-logo {
  height: 50px;
  width: auto;
  display: block;
  object-fit: contain;
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #2a4d44 0%, #3d6b5e 50%, #4a7d6e 100%);
  color: var(--color-white);
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  position: relative;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: 1rem;
  display: block;
}

.hero h1 {
  color: var(--color-white);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.hero-lead {
  color: rgba(255,255,255,0.82);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
  max-height: 500px;
}

.hero-image-frame {
  position: absolute;
  inset: -12px -12px auto auto;
  width: 60%;
  height: 60%;
  border: 2px solid rgba(196, 168, 130, 0.4);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(138, 117, 88, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn-outline-dark {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline-dark:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--color-card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card-body { padding: 1.75rem; }

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(61, 107, 94, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-primary);
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* ============================================================
   SERVICE LIST
   ============================================================ */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 1rem;
}
.service-list li:last-child { border-bottom: none; }

.service-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
  margin-bottom: 3rem;
}

.section-header.centered {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.divider {
  width: 50px;
  height: 3px;
  background: var(--color-accent);
  margin: 1rem 0;
  border-radius: 2px;
}

.divider.centered {
  margin: 1rem auto;
}

/* ============================================================
   PROFILE / ABOUT SECTION
   ============================================================ */
.profile-section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-lg);
  align-items: center;
}

.profile-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
}

.profile-quals {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.qual-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.qual-item::before {
  content: '✓';
  color: var(--color-primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-box {
  background: var(--color-primary-dark);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 3rem;
}

.contact-box h2 { color: var(--color-white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-light);
}

.contact-value {
  font-size: 1.05rem;
  color: var(--color-white);
}

.contact-value a {
  color: var(--color-white);
}
.contact-value a:hover { color: var(--color-accent-light); }

.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  margin-top: 0.35rem;
}

/* ============================================================
   BOOK / PUBLICATION CARDS
   ============================================================ */
.pub-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  padding: 2rem;
  align-items: start;
  transition: transform var(--transition), box-shadow var(--transition);
}
.pub-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.pub-cover {
  width: 120px;
  border-radius: var(--radius);
  box-shadow: 4px 4px 20px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.pub-meta {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.pub-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.pub-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

/* ============================================================
   AKUPUNKTUR GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 3/4;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

/* ============================================================
   VIDEO EMBED
   ============================================================ */
.video-wrap {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   AUDIO & VIDEO SECTION
   ============================================================ */
.audio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-bottom: 2rem;
}

.audio-card {
  background: var(--color-card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.audio-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.audio-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.audio-player {
  width: 100%;
  margin-bottom: 0.75rem;
}

/* Audio player styling */
audio {
  accent-color: var(--color-accent);
}

.audio-hint {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin: 0;
}

.video-card {
  background: var(--color-card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 0;
  overflow: hidden;
}

.video-embed {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  background: #000;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   DATENSCHUTZ
   ============================================================ */
.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.legal-content h3 {
  font-size: 1.1rem;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

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

.legal-content ul li { margin-bottom: 0.4rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: var(--space-md);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.25rem;
}

.footer-contact-item {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.3rem;
}
.footer-contact-item a {
  color: rgba(255,255,255,0.75);
}
.footer-contact-item a:hover { color: var(--color-accent-light); }

.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--color-accent-light); }

.footer-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.footer-badge {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

.footer-bottom {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  text-align: center;
}

/* ============================================================
   PAGE HERO (Unterseiten)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, #2a4d44 0%, #3d6b5e 100%);
  padding: 3.5rem 0;
  color: var(--color-white);
}

.page-hero h1 { color: var(--color-white); margin-bottom: 0.5rem; }

.page-hero .breadcrumb {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.75rem;
}
.page-hero .breadcrumb a {
  color: rgba(255,255,255,0.55);
}
.page-hero .breadcrumb a:hover { color: var(--color-accent-light); }

/* ============================================================
   CONTENT IMAGE LAYOUTS
   ============================================================ */
.img-float-right {
  float: right;
  margin: 0 0 1.5rem 2rem;
  max-width: 420px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.img-float-left {
  float: left;
  margin: 0 2rem 1.5rem 0;
  max-width: 420px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.clearfix::after {
  content: '';
  display: table;
  clear: both;
}

/* Highlight box */
.highlight-box {
  background: rgba(61, 107, 94, 0.07);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.info-box {
  background: rgba(138, 117, 88, 0.08);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .audio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --space-xl: 3.5rem;
    --space-lg: 2.5rem;
  }

  .nav-toggle { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
  }

  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: 0.75rem 1rem; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { display: none; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }

  .profile-section { grid-template-columns: 1fr; }
  .profile-img { max-width: 300px; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-box { padding: 2rem 1.5rem; }

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

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

  .pub-card { grid-template-columns: 1fr; }
  .pub-cover { width: 100px; }

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

  .img-float-right,
  .img-float-left {
    float: none;
    margin: 0 0 1.5rem 0;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; }
  .btn { justify-content: center; }
}
