html {
    scroll-behavior: smooth;
  }

  :root {
    --font-heading: 'felt-tip-woman';
    --font-body: 'adobe-jenson-pro-caption', serif;
    --font-nav: 'felt-tip-woman';
    --color-heading: #f7b84c;
    --color-text: #000;
    --font-size: 16px;
  
    --size-h1: 4.5rem;
    --size-h2: 3.5rem;
    --size-h3: 2.5rem;
    --size-body: 1.1rem;
  }

  body {
    font-family: var(--font-body);
    font-size: var(--size-body);
    color: var(--color-text);
    margin: 0;
  }
  
  h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    font-weight: normal;
    line-height: 1.2;
    margin-top: 2rem;
    margin-bottom: 1rem;
  }
  
  h1 { font-size: var(--size-h1); }
  h2 { font-size: var(--size-h2); }
  h3 { font-size: var(--size-h3); }


  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    border-bottom: 2px solid #f8c15e;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  .header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  /* Logo */
  .logo a {
    display: block;
    text-decoration: none;
  }
  
  .logo img {
    height: 60px;
    width: auto;
    display: block;
  }
  
  /* Desktop Navigation */
  .desktop-nav {
    display: none; /* Standardmäßig versteckt, wird bei größeren Bildschirmen angezeigt */
  }
  
  .desktop-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
    align-items: center;
  }
  
  .desktop-nav li {
    margin: 0;
  }
  
  .desktop-nav a {
    font-family: var(--font-nav);
    font-size: 1.5rem;
    color: #000;
    text-decoration: none;
    padding: 0.5rem;
    display: inline-block;
    transition: color 0.3s ease;
  }
  
  .desktop-nav a:hover {
    color: #f7b84c;
  }
  
  /* Burger Menu Button */
  .burger-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: all 0.3s ease;
  }
  
  .burger-line {
    width: 25px;
    height: 3px;
    background-color: #000;
    margin: 2px 0;
    transition: all 0.3s ease;
    transform-origin: center;
  }
  
  /* Burger Animation when active */
  .burger-toggle.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .burger-toggle.active .burger-line:nth-child(2) {
    opacity: 0;
  }
  
  .burger-toggle.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  /* Mobile Navigation */
  .mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-bottom: 2px solid #f8c15e;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .mobile-nav.active {
    max-height: 300px; /* Ausreichend Platz für alle Menüpunkte */
  }
  
  .mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .mobile-nav li {
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .mobile-nav li:last-child {
    border-bottom: none;
  }
  
  .mobile-nav a {
    font-family: var(--font-nav);
    font-size: 1.3rem;
    color: #000;
    text-decoration: none;
    padding: 1rem 2rem;
    display: block;
    transition: all 0.3s ease;
  }
  
  .mobile-nav a:hover {
    color: #f7b84c;
    background-color: #f9f9f9;
  }
  
  /* Body scroll lock when mobile menu is open */
  body.menu-open {
    overflow: hidden;
  }

  .intro-section {
    width: 100%;
    height: 80vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
  }

.intro-gallery-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0; /* Starte mit unsichtbaren Bildern */
  transition: opacity 1s ease-in-out; /* Füge einen sanften Überblendeffekt hinzu */
  z-index: 1.5; /* Das ist die Korrektur */
}

.intro-gallery-image.active {
  opacity: 1; /* Das aktive Bild ist sichtbar */
}

.intro-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
  }
  
.intro-content {
    position: relative;
    padding-top: 200px;
    z-index: 2;
    padding-left: 5vw;      /* Abstand vom linken Rand */
    max-width: 800px;        /* Optional: Begrenzung der Textbreite */
    text-align: left;
  }
  
  .intro-content h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin: 0;
  }

  /*
 * 1. Animation definieren (Fade-in von links)
 */
@keyframes introFadeIn {
  from {
    opacity: 0;
    transform: translatey(20px);
  }
  to {
    opacity: 1;
    transform: translatey(0);
  }
}

/*
 * 2. Die Animation auf die H1-Überschrift anwenden
 */
.intro-content h1 {
  /* Setze den Startzustand unsichtbar */
  opacity: 0;
  /* Wende die Animation an: Dauer 1.5s, sanftes Ein- und Ausklingen, bleibt am Ende sichtbar */
  animation: introFadeIn 1s ease-out 0.1s forwards;
}

  .intro-text-section {
    padding: 4rem 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
  }
  
  .intro-text-inner h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .intro-text-inner p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
  }

  .image-row-section {
    padding: 0rem 1rem;
    text-align: center;
  }
  
  .image-row {
    display: flex;
    justify-content: center;
    gap: 0rem;           /* weniger Abstand zwischen Bildern */
    flex-wrap: wrap;
    align-items: flex-start;
    max-width: 800px;      /* kompaktere max. Breite */
    margin: 0 auto;
  }
  
  .image-row img {
    height: auto;
    width: auto;
    max-height: 180px;     /* kleinere Bilder */
    max-width: 100%;
    display: block;
  }


  .behandlungsablauf-section {
    scroll-margin-top: 40px;
    padding: 4rem 2rem;
    text-align: center;
  }
  
  .behandlungsablauf-section .container {
    max-width: 1000px;
    margin: 0 auto;
  }
  
  .behandlungsablauf-section .intro {
    max-width: 600px;
    margin: 1rem auto 3rem;
  }
  
  .ablauf-grid {
    margin-top: 5rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    text-align: left;
    align-items: start;
  }
  
  .ablauf-bild {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
  }
  
  .ablauf-bild img {
    max-height: 750px;     /* Hier steuerst du die Bildgröße */
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 8px;
  }
  
  .ablauf-schritte {
    display: flex;
    flex-direction: column;
    gap: 3rem;
  }
  
  .schritt h3 {
    margin: 0 0 0.25rem;
  }
  
  .schritt p {
    margin: 0;
    line-height: 1.5;
  }

  /* 1. Animation definieren (Fade-in von unten)*/
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translatey(40px);
    }
    to {
      opacity: 1;
      transform: translatey(0);
    }
  }

  /*
  * 2. Startzustand der Elemente: unsichtbar und versetzt
  */
  .ablauf-bild img,
  .schritt {
    opacity: 0;
    transform: translateY(20px);
  }

  /*
  * 3. Klasse, die die Animation auslöst
  */
  .ablauf-bild.animate img,
  .schritt.animate {
    animation: fadeIn 1.0s ease-out forwards;
  }


  .ueber-mich-section {
    scroll-margin-top: 80px;
    padding: 4rem 2rem;
    padding-top: 1rem;
    text-align: left;
  }
  
  .ueber-mich-section .container {
    max-width: 1000px;
    margin: 0 auto;
  }
  
  .ueber-mich-section h2 {
    margin-bottom: 1rem;
  }
  
  .ueber-mich-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    text-align: left;
    align-items: start;
  }
  
  .ueber-mich-bild img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }
  
  .ueber-mich-text {
    font-size: 1.05rem;
    line-height: 1.6;
  }


  .osteopathie-section {
    scroll-margin-top: 80px;
    padding: 1rem 2rem;
    text-align: left;
  }
  
  .osteopathie-section .container {
    max-width: 1000px;
    margin: 0 auto;
  }
  
  .osteopathie-section h2 {
    margin-bottom: 1rem;
  }
  
  .osteopathie-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    text-align: left;
    align-items: start;
  }
  
  .osteopathie-text {
    font-size: 1.05rem;
    line-height: 1.6;
  }
  
  .osteopathie-bild img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }

  .osteopathie-subgrid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
  text-align: left;
  margin-bottom: 3rem;
}
  
  .osteopathie-subbild {
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: right; /* rechtsbündig */
  }
  
  .osteopathie-subbild img {
    max-width: 100%;
    max-height: 200px;  /* oder z. B. 150px */
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
  }

  .osteopathie-subtext {
    max-width: 80%;
  }


  .kontakt-section {
    scroll-margin-top: 130px;
    padding: 4rem 2rem;
    padding-top: 0rem;
    text-align: center;
  }

  .kontakt-adresse {
    font-size: 1.5rem; /* Oder jede andere gewünschte Größe */
}
  
  .kontakt-section .container {
    max-width: 1000px;
    margin: 0 auto;
  }
  
  .kontakt-section h2 {
    margin-bottom: 2rem;
  }
  
  .kontakt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-align: left;
    align-items: start;
  }
  
  .kontakt-map {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  }


  .block-bildtext {
    padding: 0rem 2rem;
  }
  
  .bildtext-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start;
  }
  
  .bild img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }
  
  .text h3 {
    margin-top: 0;
  }

  a[href^="mailto:"] {
    color: #e97a5d;
    text-decoration: none;
  }
  
  a[href^="mailto:"]:hover {
    color: #333;
    text-decoration: underline;
  }



  .legal-page {
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
  }
  
  .legal-section {
    margin-bottom: 4rem;
  }
  
  .legal-section h2 {
    font-size: var(--size-h3);
    margin-bottom: 1rem;
  }
  
  .legal-text p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }





  .site-footer {
    background: #f5f5f5;
    padding: 2rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: #e97a5d;
    margin-top: 4rem;
  }
  
  .footer-inner {
    max-width: 1000px;
    margin: 0 auto;
  }
  
  .site-footer a {
    color: #e97a5d;
    text-decoration: underline;
  }
  
  .site-footer a:hover {
    color: #333;
  }

  /* COMPLETE MEDIA QUERIES - Ersetzen Sie Ihren gesamten @media Bereich durch diesen Code */

@media screen and (max-width: 768px) {
  h1 { font-size: 3.2rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 2rem; }

  .ablauf-bild,
  .osteopathie-bild {
    display: none;
  }
  .header-container {
    padding: 1rem;
  }
  
  .logo img {
    height: 50px;
  }
  
  .mobile-nav a {
    font-size: 1.2rem;
    padding: 0.8rem 1rem;
  }

  /* Existing Grid Layouts */
  .ablauf-grid,
  .ueber-mich-grid,
  .osteopathie-grid,
  .osteopathie-subgrid,
  .kontakt-grid,
  .bildtext-grid {
    grid-template-columns: 1fr !important;
  }

  /* Existing Image Alignments */
  .ablauf-bild,
  .osteopathie-subbild {
    justify-content: center !important;
  }

  .osteopathie-subtext {
    max-width: 100%;
  }

  /* Existing Contact Styles */
  .kontakt-map {
    aspect-ratio: unset;
    height: 300px;
  }

  .image-row {
    justify-content: center;
  }

  .kontakt-adresse {
    font-size: 1.2rem;
  }

  /* Existing Intro Styles */
  .intro-content {
    padding-top: 120px; /* Angepasst für neuen Header */
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .intro-section {
    padding-top: 70px; /* Platz für fixierten Header */
  }
}

@media screen and (min-width: 769px) {

  .desktop-nav {
    display: block;
  }
  
  .burger-toggle {
    display: none;
  }
  
  .mobile-nav {
    display: none;
  }

  /* Intro Section Desktop */
  .intro-section {
    padding-top: 80px; /* Platz für fixierten Header */
  }
}

/* Zusätzliche Media Query für sehr kleine Bildschirme */
@media screen and (max-width: 480px) {
  .header-container {
    padding: 0.8rem;
  }
  
  .logo img {
    height: 45px;
  }
  
  .mobile-nav a {
    font-size: 1.1rem;
    padding: 0.7rem 1rem;
  }
  
  .intro-content {
    padding-top: 100px;
  }
}