/* =========================
   Fonts
========================= */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
    background: #ffffff;
    font-weight: 400;
}
 
.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

/* =========================
   Grundlegende Schriftgrößen
========================= */
:root {
    --font-size-body: 1rem;        /* Basistext */
    --font-size-small: 1rem;   /* kleiner Text / Notizen */
    --font-size-h2: 2rem;          /* Überschrift 2 */
    --font-size-h3: 1.2rem;        /* Überschrift 3 */
    --font-size-btn: 1rem;         /* Buttons */
    --font-size-cookie: 1rem;    /* Cookie Banner */
}

/* Basistext */
body {
    font-size: var(--font-size-body);
}

/* Überschriften */
h1, .hero-content h2 {
    font-size: var(--font-size-h2);
}

h2 {
    font-size: var(--font-size-h2);
}

h3 {
    font-size: var(--font-size-h3);
}

/* Buttons */
.btn {
    font-size: var(--font-size-btn);
}

/* Cookie Banner */
.cookie-banner {
    font-size: var(--font-size-cookie);
}

/* =========================
   Cookie-Banner
========================= */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #faf9dff6;
    color: #000000;
    padding: 40px;
    text-align: center;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-banner p {
    margin: 0;
    padding-right: 10px;
}

.cookie-buttons button {
    margin-left: 5px;
    padding: 10px 15px;
    border: none;
    background-color: #4CAF50;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;

}

.cookie-buttons button#decline-cookies {
    background-color: #f44336;
}


/* =========================
   Header & Navigation
========================= */
/* Hamburger Button */
/* Hamburger Button */
  .hamburger {
    display: none; /* nur Mobile */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 200;
    margin-left: auto;
    transform-origin: center;
    position: relative;
  }

  .hamburger span {
      position: absolute;
      display: block;
      left: 0;
      width: 100%;
      height: 4px;
      background: #000;
      border-radius: 2px;
      transition: all 0.3s ease;
      transform-origin: center; /* Drehpunkt = Mittelpunkt der Linie */
  }

  /* Startpositionen */
  .hamburger span:nth-child(1) { top: 0; }
  .hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
  .hamburger span:nth-child(3) { bottom: 0; }

  /* Aktiv: X */
  .hamburger.active span:nth-child(1) {
      top: 50%;
      transform: translateY(-50%) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
      opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
      top: 50%;
      transform: translateY(-50%) rotate(-45deg);
  }


.header {
    background: #FAF9DF;
    padding: 0.3rem 0;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1002;
    transition: all 0.3s ease; /* für sanftes Shrinken */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* optional */
    transition:
        padding 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Overlay */
#menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4); /* Abdunkelung */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

/* Aktiv */
#menu-overlay.active {
    opacity: 1;
    visibility: visible;
}
/* Header klein beim Scrollen */
.header.shrink {
    padding: 0.2rem 0;
}

.header.shrink .logo-img {
    height: 60px;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 5%;
    padding-right: 5%;
}

.logo {
    display: flex;
    align-items: center;
    color: #000;
    font-weight: 500;
}

.logo a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}


.logo-img {
    height: 80px;
    width: auto;
    margin-right: 10px;
    transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav {
    list-style: none;
    display: flex;
    z-index: 1002;
}

.nav li {
    margin-left: 20px;
}

.nav a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
}

.nav a:hover {
    text-decoration: underline;
}

/* =========================
   Hero Bereich
========================= */
.hero {
    background: url("/images/praxis.png") center / cover no-repeat;
    color: #fff;
    height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
}

.hero-content h2 {
    margin-bottom: 1rem;
    color: #000;
    text-shadow: 1px 1px 1px rgba(255,255,255,0.7);
}

.hero-content p {
    color: #000;
    text-shadow: 1px 1px 1px rgba(255,255,255,0.7);
}

/* =========================
   Button
========================= */
.btn {
    display: inline-block;
    margin-top: 20px;
    background: #faf9df;
    color: #000;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.btn:hover {
    background: #e0dfb0;
}

/* =========================
   Allgemeine Sektionen
========================= */
.section {
    padding: 4rem 0;
}

.section.light {
    background: #f5f7f8;
}

.section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

/* =========================
   Über mich / About
========================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.about-img img {
    width: 270px;
    height: 270px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.about-text h2 {
    font-weight: 500;
    margin-bottom: 1rem;
}

/* =========================
   Services
========================= */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.service-box {
    background: #fff;
    padding: 25px 20px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top:0; left:0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    max-width: 700px;
    width: 90%;
    padding: 30px;
    border-radius: 10px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #333;
    cursor: pointer;
}

.modal-content ul,
.service-box ul {
    list-style-type: disc;
    padding-left: 25px;
    margin: 10px 0 20px 0;
}

.modal-content li,
.service-box li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* =========================
   Preisliste – schlicht & ruhig
========================= */

.price-intro {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 2rem;
    color: #555;
}

.price-list {
    max-width: 600px;
    margin: 0 auto;
    border-top: 1px solid #ccc;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.price-row span:first-child {
    font-weight: 400;
}

.price-row span:last-child {
    font-weight: 500;
}

.price-note {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
}



/* =========================
   Praxis Galerie
========================= */
.practice-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.practice-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.practice-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 95vw;
    max-height: 95vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    cursor: pointer;
}

.lightbox .prev,
.lightbox .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    cursor: pointer;
    padding: 10px;
    user-select: none;
}

.lightbox .prev { left: 20px; }
.lightbox .next { right: 20px; }

.lightbox .prev:hover,
.lightbox .next:hover {
    color: #faf9df;
}

/* =========================
   Kontakt
========================= */
.contact-info {
    text-align: center;
    margin-bottom: 30px;
}

.contact-form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
}

.map iframe {
    width: 100%;
    height: 300px;
    border: 0;
    border-radius: 10px;
}

/* =========================
   Footer
========================= */
.footer {
    background: #FAF9DF;
    color: #000;
    text-align: center;
    padding: 0.3rem;
}

.footer a {
    color: #000;
    text-decoration: underline;
}

/* =========================
   Header Mobil
========================= */
@media (max-width: 768px) {
    .header-flex {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        z-index: 1002;
        
    }

    .logo {
        line-height: 1.2;      /* etwas enger */
        max-height: 4em;       /* 2 Zeilen * line-height */
        overflow: hidden;      /* Text über 2 Zeilen abschneiden */
        text-align: center;    /* zentrieren */
        white-space: normal;   /* Zeilenumbruch erlaubt */
        z-index: 1002;
    }

    .logo br {
        display: none;         /* manuelles <br> auf Mobil entfernen */
    }
    .logo-img {
        height: 50px;
        margin: 0;
        z-index: 1002;
    }

    /* Hamburger sichtbar */
    .hamburger {
        display: flex;
    }

    /* Nav initial versteckt */
     .nav {
        position: fixed;
        top: 0;          /* Header bleibt sichtbar */
        left: 0;
        right: 0;
        background: #FAF9DF;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1rem 0;

        max-height: 0;   /* Slide-Down Start */
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.3s ease;

        box-shadow: 0 6px 12px rgba(0,0,0,0.1);
        z-index: 1002;
    }

    .nav.active {
        max-height: 500px;
        opacity: 1;
    }

    .nav li {
        margin: 10px 0;
        text-align: center;
    }

    .nav a {

        padding: 6px 10px;
        display: inline-block;
    }
}


/* =========================
   Responsive Anpassungen
========================= */

/* -------------------------
   Tablet / große Smartphones
------------------------- */
@media (max-width: 1024px) {
    :root {
        --font-size-h2: 1.8rem;
        --font-size-h3: 1.4rem;
        --font-size-body: 0.95rem;
        --font-size-btn: 0.95rem;
        --font-size-cookie: 0.85rem;
    }

    .practice-gallery {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .practice-img {
        width: 100%;
        height: auto;
        border-radius: 10px;
    }
}

/* -------------------------
   Smartphones (mittel, z. B. 768px)
------------------------- */
@media (max-width: 768px) {
    :root {
        --font-size-h2: 1.8rem;
        --font-size-h3: 1.4rem;
        --font-size-body: 0.95rem;
        --font-size-btn: 0.95rem;
        --font-size-cookie: 0.85rem;
    }

    /* Hero */
    .hero {
        height: 91vh;
        padding: 0 1rem;
    }
    .hero-content h2 { font-size: 1.8rem; }
    .hero-content p { font-size: 1rem; }

    /* Grid-Anpassungen */
    .about-grid,
    .contact-grid,
    .services {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .practice-gallery {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* Practice Bilder */
    .practice-img {
        width: 100%;
        height: auto;
        border-radius: 10px;
    }

    /* Service-Boxen */
    .service-box {
        display: flex;
        flex-direction: column;
        justify-content: flex-start; /* vorher: space-between */
        min-height: 180px;
        padding: 20px;
        height: auto;
    }

    /* Map */
    .map iframe { height: 250px; }

    /* Cookie-Banner */
    .cookie-banner {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #faf9dff6;
        color: #333;
        padding: 15px;
        text-align: center;
        z-index: 9999;
        display: flex;
        flex-direction: column;
        align-items: center;
        box-sizing: border-box;
        font-size: 14px;
    }
    .cookie-banner p { margin: 0 0 10px 0; }
    .cookie-buttons {
        display: flex;
        justify-content: center;
        gap: 10px;
    }
    .cookie-buttons button {
        padding: 8px 15px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
        color: #fff;
    }
    #accept-cookies { background-color: #4CAF50; }
    #decline-cookies { background-color: #f44336; }

    /* Header & Navigation */
    .header {
        padding: 0.3rem 0;
        position: sticky;
        top: 0;
        z-index: 1002;
    }
    .header-flex { position: relative; z-index: 1002; }
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #FAF9DF;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1rem 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.3s ease;
        box-shadow: 0 6px 12px rgba(0,0,0,0.1);
        z-index: 1002;
    }
    .nav.active {
        max-height: 500px;
        opacity: 1;
    }
    .header.shrink {
        padding: 0.2rem 0;
    }
    .header.shrink .logo-img { height: 45px; }
}

/* -------------------------
   Kleine Smartphones (480px)
------------------------- */
@media (max-width: 480px) {
    :root {
        --font-size-h2: 1.4rem;
        --font-size-h3: 1.2rem;
        --font-size-body: 0.85rem;
        --font-size-btn: 0.85rem;
        --font-size-cookie: 0.75rem;
    }

    .btn { padding: 10px 20px; }

    .practice-gallery { grid-template-columns: 1fr; gap: 10px; }
    .practice-img { width: 100%; height: auto; }

    .about-img img { width: 200px; height: 200px; }

    .about-text p,
    .service-box { padding: 15px; }

    .map iframe { height: 200px; }

    .service-box { min-height: 160px; }
}
