/* ===== GRUNDLAYOUT ===== */
body {
  margin: 0;
  padding-bottom: 80px;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #333;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ===== HEADER ===== */
header {
  text-align: center;
  padding: 20px 0;
  position: relative;
}

header img {
  display: block;
  margin: 0 auto 10px;
  max-width: 100%;
  height: auto;
  width: 50px;
  height: 50px;
}

header h1 {
  margin: 10px 0;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

header h1 i {
  color: #7b787a;
}

.header-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  margin: 10px 0;
}

.header-logo-container img {
  margin: 0;
}

.header-logo-container h1 {
  margin: 0;
}

.header-logo-container h1 i {
  color: #7b787a;
}

.header-logo-container .url-highlight {
  color: #ba8ac6;
}

header > div {
  margin: 5px 0;
}

hr {
  border: none;
  height: 1px;
  background-color: #ccc;
  margin: 15px auto;
  max-width: 100%;
}

/* ===== NAVIGATION ===== */
nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
  gap: 5px;
  margin: 0;
}

nav a {
  cursor: pointer;
  text-decoration: none;
  color: rgb(255, 255, 255);
  background-color: #ba8ac6;
  padding: 0.6em 1em;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  font-size: clamp(0.8rem, 2vw, 1rem);
  white-space: nowrap;
}

nav a:hover {
  color: white;
  background-color: #8c6aa4;
}

nav a.active {
  color: white;
  background-color: #6a4a8c;
  font-weight: bold;
}

.mobile-nav a.active {
  color: white;
  background-color: #6a4a8c;
  font-weight: bold;
}

/* ===== MOBILE NAVIGATION (Hamburger Menu) ===== */
.nav-container {
  display: none;
  text-align: center;
  padding: 10px 0;
  margin: 0;
}

.menu-toggle {
  display: none;
  background-color: #ba8ac6;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  margin: 8px auto;
  min-height: 40px;
  width: 80%;
}

.menu-toggle:hover {
  background-color: #8c6aa4;
}

.mobile-nav {
  display: none;
  text-align: center;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px auto;
  padding: 6px 10px;
  background-color: #ba8ac6;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.85rem;
  min-height: 36px;
  width: 80%;
}

.mobile-nav a:hover {
  background-color: #8c6aa4;
}

/* ===== MAIN CONTENT ===== */
main {
  padding: 10px 0;
}

section {
  display: block;
  padding: 20px 20px;
  margin-bottom: 18px;
  max-width: 100%;
  overflow-x: hidden;
}

section h2 {
  color: #ba8ac6;
  margin-top: 0;
  font-size: clamp(1.3rem, 3vw, 2rem);
}

section h3 {
  color: #8c6aa4;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  margin-top: 20px;
}

p {
  margin: 10px 0;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
}

/* Bilder responsive machen */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 15px auto;
}

/* Listen */
ul {
  padding-left: 20px;
  margin: 10px 0;
}

ul li {
  margin: 8px 0;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
}

/* Publikationen und Kurse */
.publication, .course, .semester {
  max-width: 100% !important;
  padding-bottom: 15px !important;
  margin: 0 auto 10px;
}

/* Überschreiben aller Inline-Styles für Publikationen */
section div[style*="max-width: 750px"] {
  max-width: 100% !important;
  padding-bottom: 15px !important;
  margin: 0 auto 10px;
}

.course {
  padding-left: 10px;
}

.semester {
  font-weight: bold;
  padding-bottom: 10px !important;
  margin: 15px auto 5px;
}

.course-last {
  padding-bottom: 25px !important;
}

.nav-spacer {
  padding-bottom: 15px;
}

.header-title {
  font-size: 1.25rem;
  text-align: center;
  padding-bottom: 12px;
}

.header-subtitle {
  text-align: center;
  padding-bottom: 8px;
}

/* Links */
a {
  text-decoration: none;
  color: #0055aa;
}

a:hover {
  color: #003388;
  text-decoration: underline;
}

/* Kosten-Button */
.costs-button {
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
  color: white;
  background-color: #ba8ac6;
  padding: 0.8em 1.5em;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: bold;
  border: none;
}

.costs-button:hover {
  background-color: #8c6aa4;
  color: white;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: #e6a9c1;
  color: rgb(0, 0, 0);
  text-align: center;
  padding: 12px 32px;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  z-index: 1000;
  box-sizing: border-box;
}

/* ===== FOOTER ===== */
footer {
  padding: 20px 0;
  text-align: center;
  font-size: 0.9em;
}

.impressum-container,
.lehre-container {
  max-width: 900px;
  margin: 0 auto;
}

/* Hervorhebende Überschrift für Therapieangebote */
h3.therapieangebote-ueberschrift {
  color: #ba8ac6;
  font-size: clamp(1.4rem, 4vw, 1.8rem) !important;
  text-align: center;
  border-bottom: 2px solid #ba8ac6;
  padding-bottom: 8px;
  margin: 25px 0 15px !important;
}

/* Materialien-Fragen (Details/Summary) */
details.material-question {
  margin: 10px 0;
}

details.material-question summary {
  cursor: pointer;
  padding: 10px 15px;
  background-color: #f0f0f0;
  border-radius: 5px;
  font-weight: bold;
  color: #333;
  list-style: none;
}

details.material-question summary::-webkit-details-marker {
  display: none;
}

details.material-question summary:hover {
  background-color: #e0e0e0;
}

details.material-question[open] summary {
  background-color: #d0d0d0;
}

.material-answer {
  padding: 10px 20px;
  background-color: #f9f9f9;
  border-left: 3px solid #ba8ac6;
  margin-top: 5px;
  border-radius: 0 5px 5px 0;
}

.material-answer a {
  color: #ba8ac6;
  text-decoration: none;
}

.material-answer a:hover {
  text-decoration: underline;
}
=======
.accordion {
  max-width: 900px;
  margin: 0 auto 20px;
}

.accordion-button {
  width: 100%;
  padding: 12px 20px;
  text-align: left;
  background-color: #ba8ac6;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.accordion-button:hover {
  background-color: #8c6aa4;
}

.accordion-button::after {
  content: '+ ';
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.accordion-button.active::after {
  content: '- ';
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: #f9f9f9;
  border-left: 4px solid #ba8ac6;
  border-right: 4px solid #ba8ac6;
  border-bottom: 4px solid #ba8ac6;
  border-radius: 0 0 5px 5px;
}

.accordion-content.inner {
  padding: 0 20px 20px;
}

.accordion-content.active {
  max-height: 1000px;
  transition: max-height 0.5s ease;
}
============
.accordion {
  max-width: 900px;
  margin: 0 auto 20px;
}

.accordion-button {
  width: 100%;
  padding: 12px 20px;
  text-align: left;
  background-color: #ba8ac6;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.accordion-button:hover {
  background-color: #8c6aa4;
}

.accordion-button::after {
  content: '+ ';
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.accordion-button.active::after {
  content: '- ';
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: #f9f9f9;
  border-left: 4px solid #ba8ac6;
  border-right: 4px solid #ba8ac6;
  border-bottom: 4px solid #ba8ac6;
  border-radius: 0 0 5px 5px;
}

.accordion-content.inner {
  padding: 0 20px 20px;
}

.accordion-content.active {
  max-height: 1000px;
  transition: max-height 0.5s ease;
}

/* ===== IMPRESSUM & LEHRE =====
.impressum-container,
.lehre-container {
  max-width: 900px;
  margin: 0 auto;
}===== */
.impressum-container,
.lehre-container {
  max-width: 900px;
  margin: 0 auto;
}

.impressum-section,
.lehre-section {
  background-color: #f9f9f9;
  border-left: 4px solid #ba8ac6;
  padding: 15px 20px;
  margin-bottom: 20px;
  border-radius: 0 5px 5px 0;
}

.impressum-section h3,
.lehre-section h3 {
  color: #ba8ac6;
  margin-top: 0;
  font-size: 1.1rem;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 8px;
}

.impressum-section p,
.lehre-section p {
  margin: 10px 0;
  line-height: 1.7;
}

.impressum-section ul,
.lehre-section ul {
  margin: 10px 0;
  padding-left: 20px;
}

.impressum-section li,
.lehre-section li {
  margin: 8px 0;
}

.impressum-section small,
.lehre-section small {
  color: #666;
  font-size: 0.9rem;
  display: block;
  margin-top: 8px;
}

/* ===== CONTACT FORM ===== */
.contact-form {
  max-width: 600px;
  margin: 15px auto;
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 5px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #555;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1em;
  box-sizing: border-box;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-button {
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
  color: white;
  background-color: #ba8ac6;
  padding: 0.8em 1.5em;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  font-size: 1em;
  font-weight: bold;
  border: none;
}

.contact-button:hover {
  background-color: #8c6aa4;
}

/* ===== PROCESS FLOW (Ablauf-Schaubild) ===== */
/* Mobile-First: Standardmäßig vertikal */
.process-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 20px 0;
  font-size: 0.95em;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  text-align: center;
  margin-bottom: 20px;
}

.step-number {
  background-color: #ba8ac6;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-style: italic;
  flex-shrink: 0;
  font-size: 0.9em;
}

.step-content {
  line-height: 1.4;
}

.process-arrow {
  display: none;
}

/* ===== MEDIA QUERIES ===== */

/* Tablets und kleine Desktops */
@media (max-width: 992px) {
  body {
    padding: 0 15px;
  }
  
  nav a {
    margin: 4px;
    padding: 0.5em 0.8em;
    font-size: 0.9rem;
  }
  
  img {
    max-width: 100%;
  }
  
  .cookie-banner {
    font-size: 0.85rem;
    padding: 8px;
  }
}

/* Mobile Geräte (Smartphones) */
@media (max-width: 768px) {
  body {
    padding: 0 10px;
  }
  
  /* Logo kleiner */
  header img {
    width: 40px;
    height: 40px;
  }
  
  /* Standard-Navigation ausblenden */
  nav {
    display: none;
  }
  
  /* Mobile Navigation einblenden */
  .nav-container {
    display: block;
  }
  
  .menu-toggle {
    display: block;
    width: 80%;
    font-size: 0.85rem;
    padding: 6px 12px;
    min-height: 36px;
  }
  
  .mobile-nav {
    display: none;
  }
  
  .mobile-nav.active {
    display: block;
  }
  
  header h1 {
    font-size: 1.3rem;
  }
  
  header > div {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
  }
  
  nav a {
    font-size: 0.85rem;
    padding: 0.4em 0.6em;
    margin: 3px;
  }
  
  /* Bilder auf volle Breite */
  img {
    width: 100%;
    height: auto;
    margin: 10px 0;
  }
  
  /* Paragraphen und Listen */
  p {
    margin: 8px 0;
    text-align: justify;
  }
  
  ul {
    padding-left: 15px;
  }
  
  ul li {
    margin: 6px 0;
    font-size: 0.9rem;
  }
  
  section {
    padding: 10px;
  }
  
  .cookie-banner {
    font-size: 0.8rem;
    padding: 10px 5px;
  }
  
  /* großer Abstand bei mobilen Geräten */
  hr {
    margin: 10px auto;
  }
}

/* Sehr kleine Geräte */
@media (max-width: 480px) {
  /* Logo noch kleiner */
  header img {
    width: 35px;
    height: 35px;
  }
  
  header h1 {
    font-size: 1.1rem;
  }
  
  section h2 {
    font-size: 1.3rem;
  }
  
  section h3 {
    font-size: 1.1rem;
  }
  
  .menu-toggle {
    width: 90%;
    padding: 6px 8px;
    font-size: 0.8rem;
    min-height: 34px;
  }
  
  .mobile-nav a {
    padding: 4px 8px;
    font-size: 0.8rem;
    min-height: 32px;
  }
  
  p {
    font-size: 0.9rem;
    text-align: left;
  }
  
  .impressum-section,
  .lehre-section {
    padding: 12px 15px;
    margin-bottom: 15px;
  }
  
  .impressum-section h3,
  .lehre-section h3 {
    font-size: 1rem;
  }

  /* Process Flow auf mobilen Geräten vertikal */
  .process-flow {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .process-step {
    min-width: auto;
    width: 100%;
    text-align: center;
  }

  .process-arrow {
    transform: rotate(90deg);
    margin: 5px 0;
  }
}

/* Process Flow für Desktop */
@media (min-width: 769px) {
  .process-flow {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }

  .process-step {
    min-width: 200px;
    width: auto;
    text-align: left;
    margin-bottom: 0;
  }

  .process-arrow {
    display: none;
  }
}

/* Für Touch-Geräte: größere Touch-Zielbereiche */
@media (hover: none) and (pointer: coarse) {
  .mobile-nav a, .menu-toggle {
    min-height: 40px;
    min-width: 40px;
  }
  
  .cookie-banner {
    padding: 12px !important;
  }
}
