h1,
h2,
h3,
h4,
h5,
h6,
p,
strong,
span,
b,
small {
    hyphens: auto;
}

body {
    position: relative;
    max-width: 80rem;
    margin: auto;
    

}


/* ==========================================================================
   Hintergrundbild im Header
   ========================================================================== */
header {
    position: relative;

    .bg-image {
        position: relative;
        z-index: 10;
        background-image: url(../images/pixel/Rahabi-back-2-bearb_alt.jpg);
        background-size: cover;
        background-position: center;
        aspect-ratio: 1920 / 1080;
        width: 100%;
        max-height: 600px;
    }

    nav {
        position: absolute;   /* WICHTIG */
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;

        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;

        .logo {
            position: absolute;
            top: 0;
            max-width: 20rem;
            background-color: #fff;
            padding-bottom:2rem;
            border-radius: 0 0 1rem 1rem;
            
        @media (width <=60rem){
            max-width: 15rem;
            padding-bottom:1.5rem;
            
        }
            @media(width <=40rem) {
                max-width:9rem;
                padding-bottom:1rem;
                
            }
        }
    }
}


/* ==========================================================================
   1. Grundstyling für Links & Liste
   ========================================================================== */
.cta-button {
    /* Grundstile für den Button-Container */
    transition: background-color 300ms ease;

    & a {
        display: inline-block; /* Macht den gesamten Button-Bereich klickbar */
        color: var(--cl-neutral-100);
        text-decoration: none;
        font-family: var(--font-basic);
        transition: color 300ms ease;
    }

    /* Hover und Aktiv-Zustand */
    &:hover,
    &.current {
        background-color: var(--cl-accent-900);

        }
    }


ul.flex {
    list-style-type: none;
    padding: 0;
    margin: 0;
}



/* ==========================================================================
   2. MOBILE FIRST: Burger-Menü & Popover
   ========================================================================== */

/* Burger-Button */
.burger-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: var(--cl-primary-900);
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    padding: 1rem;
  
}

.burger-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--cl-neutral-100);
}

/* Popover standardmäßig unsichtbar */
ul[popover] {
    display: none;
}

/* Geöffnetes Popover */
ul[popover]:popover-open {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    inset: unset;
    top: 1rem;
    right: 1rem;
    padding: 4rem 2rem ;
    border: 0.25rem solid var(--cl-neutral-900);
    border-radius: 8px;
    background-color: var(--cl-neutral-transp-100);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    .cta-button{
        img{
            width:1.5rem;
            hight:auto;
        }    
    }
}
/* Abdunklung / Backdrop */
ul[popover]::backdrop {
    background-color: hsla(0, 0%, 0%, 0.3);
    backdrop-filter: blur(2px);
}

/* Schließen-Kreuz im Popover */
.close-popover-btn {
  position: absolute;
    top: 1rem;
    right: 1rem;
  z-index: 100;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--cl-accent-900);
  display: none; /* Standard: unsichtbar */

  /* DER BUTTON SELBST WIRD ZUM FLEX-CONTAINER */
  align-items: right;     
  justify-content: right; 


  img {
    display: block;
    width: calc(44 / 16 * 1rem);   /* Feste Breite für das Icon */
    height: auto;  /* Feste Höhe für das Icon */
  }
}

/* Nur im geöffneten Popover sichtbar */
ul[popover]:popover-open .close-popover-btn {
  /* Aktiviert die Flexbox-Eigenschaften von oben, sobald das Popover offen ist */
  display: flex; 
    margin-left: auto;
}



/* ==========================================================================
   3. DESKTOP: Ab 768px normales Menü
   ========================================================================== */
@media (min-width: 768px) {
    /* Burger ausblenden */
    .burger-menu-btn {
        display: none;
    }

    /* Popover deaktivieren → bleibt sichtbar als normales Menü */
    ul[popover] {
        
        popover: manual;
        display:none;
        flex-direction: row;
        gap: 20px;

        background-color: var(--cl-accent-900);
        padding: 0;
        border: none;
        box-shadow: none;
        position: sticky;
    }

    /* Abdunklung deaktivieren */
    ul[popover]::backdrop {
        display: none;
    }

    /* Schließen-Kreuz auf Desktop komplett ausblenden */
    .close-popover-btn {
        display: none;
    }
}





.aside-inhalt {
    display: grid;
    width: 100%;
    margin: 1rem 0;
    @media (width > 40rem) {
        margin: 0;
    }
    }
        
   .ansprache-wahl{
        display:grid;
        grid-template-columns: 1fr;
        
        

}

.aside {
    display: grid;
    grid-template-columns: 1fr;
    
    @media (width > 40rem) {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 1rem;
        
      
    }
}
footer {
    & ul {
        display: flex;
        justify-content: end;
        @media (width < 40rem) {
            display: flex;
            flex-direction: column;
            justify-content: right;
        }
    }
}


details {
    .summ-termine {
        display: grid;
        width: 100%;
        grid-template-columns: 0.5fr 1fr;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;

        img {
            max-width: 100%;
        }
    }
}

.hero {
    grid-template-columns: 0.5fr auto;
    align-items: center;

    @media (width <40rem) {
        grid-template-columns: 1fr;
    }
}






.bez-hero {
    p {
        background-color: var(--cl-neutral-900);
        color: var(--cl-neutral-100);
    }
}
footer {
  background-color: var(--cl-accent-900);
  color: var(--cl-neutral-100);
  padding: 2rem;

  .footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;

    @media (width < 40rem) {
      grid-template-columns: 1fr;
    }
  }

  .footer-section {
    h5 {
      margin-bottom: 1rem;
      font-weight: 600;
      color: var(--cl-neutral-100)
    }

    ul {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-direction: column;
      gap: 0.75rem;

      @media (width > 40rem) {
        flex-direction: row;
      }

      a {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: 0.5rem;
        text-decoration: none;
        color:var(--cl-accent-100);
        
       
          transition: background-color 0.3s ease;}

        

        img {
          width: 1.5rem;
          height: auto;
        }
      }
    }
  }



        


         

#impressum {
    margin: auto;
    margin-bottom: 1rem;
    
    margin-top: 1rem;
    max-width: 40rem;
    border: solid;
    border-color:var(--cl-accent-900);
    border-radius: 1rem;
    h2 {
        background-color: var(--cl-primary-900);
        color: var(--cl-neutral-100);
        padding:0.5rem 1rem
    }
    h2,
    h3,
    p {
        margin: 1rem 0;
    }
}

.termine {
    padding:1rem;
    border:1px solid;
    border-radius: 1rem;
    margin-bottom: 1rem;
    
    p {
        margin: 0;
    }
}

#datenschutz {
margin:auto;
    max-width:60cr;
    h4{
      color:var(--cl-accent-900);  
    }    
    
}

summary {
    margin-bottom: 0.25rem;
    &.cta-button {
        border: 1px solid;
        border-color: var(--cl-neutral-100);
    }
    &:hover {
        color: var(--cl-neutral-900);
        background-color: var(--cl-accent-900);
    }
}










