/* ==========================================================================
   Design System & Styling for Praxis Christoph Metternich
   ========================================================================== */

/* --- Fonts Import --- */
@import url('fonts.css');

/* --- Root Variables --- */
:root {
  /* Color Palette */
  --color-primary: #a2185b;        /* Original Brand Pink/Berry */
  --color-primary-light: #c22b75;
  --color-primary-dark: #7d0e44;
  --color-secondary: #00b285;      /* Original Brand Teal */
  --color-secondary-light: #00cca4;
  --color-secondary-dark: #00906c;
  
  --color-dark: #2c3e50;           /* Text color */
  --color-text-muted: #5c6b73;     /* Muted body text */
  --color-body-bg: #faf9f6;        /* Warm Natural Off-white */
  --color-light-bg: #f4f1ea;       /* Warm Natural Sand */
  --color-white: #ffffff;
  --color-border: #e6e1d6;         /* Warm border color */
  
  /* Fonts */
  --font-headings: 'Lora', 'Georgia', serif;
  --font-body: 'Open Sans', 'Arial', sans-serif;

  /* Layout Constants */
  --container-width: 1140px;
  --header-height: 100px;
  --header-height-shrink: 80px;
  
  /* Shadows & Transitions */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.06);
  --shadow-lg: 0 15px 40px rgba(162, 24, 91, 0.1);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.6rem; /* 16px */
  line-height: 1.6;
  color: var(--color-dark);
  background-color: var(--color-body-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2rem;
  color: var(--color-dark);
}

p {
  margin-bottom: 1.6rem;
  font-weight: 400;
}

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

a:hover {
  color: var(--color-secondary-dark);
}

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

iframe {
  border: 0;
  width: 100%;
  display: block;
}

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

.section {
  padding: 8rem 0;
  position: relative;
}

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

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

.section-title {
  font-size: 3.2rem;
  text-align: center;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-secondary);
  margin: 1.5rem auto 0;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.8rem;
  color: var(--color-text-muted);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem;
}

/* --- Header & Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: var(--transition);
}

.site-header.shrink {
  height: var(--header-height-shrink);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-link img {
  height: 70px;
  width: auto;
  transition: var(--transition);
}

.site-header.shrink .logo-link img {
  height: 55px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 3rem;
}

.nav-item a {
  font-family: var(--font-headings);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 1rem 0;
  position: relative;
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition);
}

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

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

/* Hamburger menu button */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
}

.hamburger-line {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: var(--color-dark);
  transition: var(--transition);
  border-radius: 2px;
}

/* --- Hero Section --- */
.hero {
  height: 70vh;
  min-height: 450px;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2)), url('../images/hero_bg.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  padding-top: var(--header-height);
  position: relative;
}

.hero-content {
  max-width: 800px;
  padding: 0 2rem;
  animation: fadeIn 1.2s ease-out;
}

.hero-title {
  font-size: 4.8rem;
  font-weight: 700;
  color: var(--color-white);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  margin-bottom: 2rem;
}

.hero-subtitle {
  font-size: 2.2rem;
  font-weight: 300;
  color: #f1f2f6;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  margin-bottom: 0;
}

/* --- Ganzheitliche Therapie Section --- */
.ganzheitlich-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.intro-card {
  background-color: var(--color-light-bg);
  border-radius: 12px;
  padding: 4rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 4rem;
  border-left: 4px solid var(--color-primary);
}

.intro-text {
  font-size: 1.8rem;
  line-height: 1.8;
  color: var(--color-dark);
}

.kepler-quote {
  font-family: var(--font-headings);
  font-size: 2.2rem;
  font-style: italic;
  font-weight: 500;
  text-align: center;
  color: var(--color-primary);
  margin: 4rem 0;
  position: relative;
  padding: 0 4rem;
}

.kepler-quote::before, .kepler-quote::after {
  content: '"';
  font-size: 6rem;
  font-family: serif;
  position: absolute;
  top: -2rem;
  opacity: 0.2;
}

.kepler-quote::before { left: 1rem; }
.kepler-quote::after { right: 1rem; }

/* --- Three Pillars Section --- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 2rem;
}

.pillar-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.pillar-icon-box {
  padding: 3rem 2rem 2rem;
  text-align: center;
  background-color: var(--color-light-bg);
}

.pillar-icon {
  height: 80px;
  width: auto;
  margin: 0 auto;
}

.pillar-title {
  font-size: 2.2rem;
  color: var(--color-primary);
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.pillar-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-top: 1px solid var(--color-border);
}

/* --- Leistungen Accordion --- */
.accordion-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.accordion-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.accordion-header {
  padding: 2.2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: var(--color-white);
  user-select: none;
  transition: var(--transition);
}

.accordion-header:hover {
  background-color: rgba(162, 24, 91, 0.02);
}

.accordion-title-text {
  font-family: var(--font-headings);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.accordion-title-icon {
  width: 25px;
  height: 25px;
}

.accordion-arrow {
  font-size: 1.8rem;
  color: var(--color-primary);
  transition: var(--transition);
  font-weight: bold;
}

.accordion-item.active .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-item.active .accordion-header {
  border-bottom: 1px solid var(--color-border);
  background-color: rgba(162, 24, 91, 0.04);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, opacity 0.3s ease-out;
  opacity: 0;
}

.accordion-content-inner {
  padding: 3rem;
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.accordion-text {
  flex: 1;
}

.accordion-text h4 {
  font-size: 1.8rem;
  color: var(--color-dark);
  margin-bottom: 1.5rem;
}

.accordion-text ul {
  list-style: none;
  margin-bottom: 2rem;
}

.accordion-text ul li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1rem;
}

.accordion-text ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-secondary);
  font-weight: bold;
}

.accordion-thumb {
  width: 150px;
  height: 150px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

/* Vita Chronology Styles */
.vita-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.vita-row {
  display: flex;
  gap: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.vita-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.vita-year {
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--color-primary);
  width: 120px;
  flex-shrink: 0;
}

.vita-desc {
  flex: 1;
}

/* --- Specialities List Section --- */
.specialities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.spec-item {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 2rem;
  transition: var(--transition);
}

.spec-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 178, 133, 0.3);
}

.spec-check {
  width: 30px;
  height: 30px;
  background-color: rgba(0, 178, 133, 0.1);
  color: var(--color-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.spec-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.4;
}

/* --- Image Gallery Section --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 3 / 2;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(162, 24, 91, 0.4);
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
}

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

.gallery-item:hover::after {
  opacity: 1;
}

/* --- Pricing Section --- */
.preise-card {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--color-white);
  border-radius: 12px;
  padding: 4.5rem;
  box-shadow: var(--shadow-md);
  border-top: 5px solid var(--color-secondary);
}

.preise-text {
  font-size: 1.7rem;
  line-height: 1.8;
  color: var(--color-dark);
}

/* --- Middle Banner --- */
.middle-banner {
  height: 350px;
  background: url('../images/slider_line3.jpg') no-repeat center center/cover;
  box-shadow: inset 0 0 100px rgba(0,0,0,0.2);
}

/* --- Contact & Address Grid --- */
.contact-section-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-info-panel h3 {
  font-size: 2.4rem;
  color: var(--color-primary);
  margin-bottom: 2.5rem;
}

.address-block {
  margin-bottom: 4rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  font-size: 1.7rem;
  color: var(--color-dark);
}

.contact-link a {
  font-weight: 600;
}

.contact-link i {
  color: var(--color-primary);
  width: 20px;
  text-align: center;
}

.cert-image {
  margin-top: 4rem;
  max-width: 130px;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.cert-image:hover {
  transform: scale(1.05);
}

.contact-media-panel {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.inhaber-portrait {
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.inhaber-portrait img {
  width: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-container iframe {
  height: 350px;
}

/* --- Button Component --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 3rem;
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(162, 24, 91, 0.4);
}

/* --- Legal / Subpage Content Layout --- */
.subpage-container {
  padding-top: calc(var(--header-height) + 5rem);
  padding-bottom: 8rem;
  max-width: 800px;
  margin: 0 auto;
}

.subpage-title {
  font-size: 3.6rem;
  color: var(--color-primary);
  margin-bottom: 4rem;
  text-align: center;
}

.subpage-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 4.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.subpage-card h3, .subpage-card h4 {
  color: var(--color-primary);
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
}

.subpage-card h3:first-of-type {
  margin-top: 0;
}

.subpage-card p {
  font-size: 1.6rem;
  line-height: 1.7;
  color: var(--color-dark);
  margin-bottom: 2rem;
}

.subpage-card ul {
  list-style: disc;
  margin-left: 2.5rem;
  margin-bottom: 2rem;
}

.subpage-card ul li {
  margin-bottom: 0.8rem;
}

/* --- Footer --- */
.site-footer {
  background-color: #2c3e50;
  color: #bdc3c7;
  padding: 5rem 0 3rem;
  border-top: 4px solid var(--color-primary);
}

.footer-nav {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-nav a {
  color: #bdc3c7;
  font-family: var(--font-headings);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 1px;
}

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

.footer-copy {
  text-align: center;
  font-size: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2.5rem;
}

/* --- Cookie Notice Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  z-index: 9999;
  padding: 2.5rem 3rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateY(150%);
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-text {
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--color-dark);
  margin-bottom: 0;
}

.cookie-buttons {
  display: flex;
  gap: 1.5rem;
  flex-shrink: 0;
}

.btn-cookie {
  padding: 1rem 2rem;
  font-size: 1.3rem;
  border-radius: 30px;
  font-family: var(--font-headings);
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-accept {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.btn-accept:hover {
  background-color: var(--color-secondary-dark);
}

.btn-decline {
  background-color: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.btn-decline:hover {
  background-color: #f1f2f6;
  color: var(--color-dark);
}

/* --- Keyframe Animations --- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Direct Access Elements --- */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background-color: rgba(0, 178, 133, 0.15);
  border: 1px solid var(--color-secondary);
  color: var(--color-white);
  padding: 0.8rem 2.2rem;
  border-radius: 50px;
  font-family: var(--font-headings);
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2.5rem;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  animation: fadeIn 1s ease-out;
}

.hero-badge i {
  color: var(--color-secondary-light);
  font-size: 1.5rem;
}

.direct-access-box {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-secondary);
  border-radius: 8px;
  padding: 2rem 2.5rem;
  margin-top: 3rem;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.direct-access-icon {
  font-size: 2.8rem;
  color: var(--color-secondary);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.direct-access-text {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--color-dark);
}

.direct-access-text strong {
  color: var(--color-primary);
  font-size: 1.6rem;
}

/* --- Responsive Adjustments --- */
@media screen and (max-width: 1100px) {
  .nav-menu {
    gap: 1.5rem;
  }
}

@media screen and (max-width: 992px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-section-wrapper {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

@media screen and (max-width: 768px) {
  html {
    font-size: 56.25%; /* 1rem = 9px */
  }
  
  .section {
    padding: 6rem 0;
  }
  
  .direct-access-box {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
    padding: 2.5rem 2rem;
  }
  
  .direct-access-icon {
    margin-top: 0;
  }
  
  .hamburger {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--color-white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    border-top: 1px solid var(--color-border);
  }
  
  .nav-menu.active {
    transform: translateX(0);
  }
  
  /* Hamburger active styling */
  .hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .hero-title {
    font-size: 3.6rem;
  }
  
  .hero-subtitle {
    font-size: 1.8rem;
  }
  
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  
  .specialities-grid {
    grid-template-columns: 1fr;
  }
  
  .accordion-content-inner {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
  }
  
  .accordion-thumb {
    order: -1;
  }
  
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    padding: 2rem;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
  }
  
  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }
  
  .btn-cookie {
    flex: 1;
    max-width: 150px;
  }
}

@media screen and (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .preise-card {
    padding: 2.5rem;
  }
  
  .subpage-card {
    padding: 2.5rem;
  }
}

/* --- Google Maps Two-Click Placeholder --- */
.map-placeholder {
  background-color: var(--color-light-bg);
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.map-placeholder-content {
  max-width: 320px;
}

.map-placeholder-icon {
  font-size: 3.5rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.map-placeholder h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--color-dark);
}

.map-placeholder p {
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.map-placeholder p a {
  color: var(--color-primary);
  text-decoration: underline;
}

