/* ---------------------------------------------------------------------------------------- */
/* --------------------------------fonts------------------------------------- */
/* ---------------------------------------------------------------------------------------- */

@font-face {
  font-family: 'Noto Sans';
  font-weight: 200;
  src: url('fonts/noto-sans/NotoSans-Thin.ttf') format('truetype');
}

@font-face {
  font-family: 'Noto Sans';
  font-weight: 400;
  src: url('fonts/noto-sans/NotoSans-Light.ttf') format('truetype');
}


@font-face {
  font-family: 'Noto Sans';
  font-weight: 700;
  src: url('fonts/noto-sans/NotoSans-SemiBold.ttf') format('truetype');
}


/* ---------------------------------------------------------------------------------------- */
/* --------------------------------bottom bar------------------------------------- */
/* ---------------------------------------------------------------------------------------- */

.bottom-bar {
  width: 100%;
  background-color: #0A2832;
  padding: 3rem 2rem;
  min-height: 50rem;

  display: flex;
  justify-content: center;  /* links mittig */
  align-items: center;      /* vertikal zentriert */
  position: relative;       /* für absolute Position des rechten Texts */
  flex-shrink: 0;   /* verhindert, dass sie kleiner gedrückt wird */
}

.bottom-text {
  color: #e7e7e7;
  font-size: 15px;
  display: flex;              
  align-items: center;        
  gap: 0.5rem;                
  text-decoration: none;      
  margin: 0.5rem 0;           
}

.bottom-text img {
  width: 20px;
  height: 20px;
}

.bottom-kontakt {
  display: flex;
  flex-direction: column;  /* Links untereinander */
  align-items: start;     /* horizontal zentriert */
  position: absolute;
  top: 5rem;
  left: 35rem;
}

.bottom-copyright {
  color: #e7e7e7;
  font-size: 13px;
  position: absolute;
  top: 30rem;
  align-items: center;
  text-align: center;
}

.bottom-copyright-text{
  color: #e7e7e7;
  font-size: 13px;
  align-items: center;
  text-align: center;
  text-decoration: none;      
}

.bottom-notfall {
  color: #e7e7e7;
  font-size: 12px;
  position: absolute;
  align-items: center;
  text-align: center;
  top: 39rem;
  max-width: 55rem;
}

.bottom-links {
  position: absolute;
  top: 5rem;
  left: 7rem;             /* ganz rechts außen */
}

.bottom-links-text{
  color: #e7e7e7;
  font-size: 14px;
  display: flex;              
  align-items: center;        
  gap: 0.5rem;                
  text-decoration: none;      
  margin: 0.8rem 0; 
}

.link {
  color: rgb(1, 44, 96);
  text-decoration: underline;
}


/* ---------------------------------------------------------------------------------------- */
/* --------------------------------hamburger menu------------------------------------- */
/* ---------------------------------------------------------------------------------------- */


*,
*::after,
*::before {
  box-sizing: border-box;
}

:root {
  --bar-width: 40px;
  --bar-height: 4px;
  --hamburger-gap: 6px;
  --foreground: #d8d8d8;
  --background: #d8d8d8;
  --hamburger-margin-top: 20rem;
  --animation-timing: 350ms ease-in-out;
  --hamburger-height: calc(var(--bar-height) * 3 + var(--hamburger-gap) * 2);
}

body.main {
--hamburger-margin-top: 18rem;
}

.hamburger-menu {
  --x-width: calc(var(--hamburger-height) * 1.41421356237);

  display: flex;
  flex-direction: column;
  gap: var(--hamburger-gap);
  width: max-content;
  position: absolute;
  top: var(--hamburger-margin-top);
  left: 3rem;
  z-index: 2;
  cursor: pointer;
}

.main .hamburger-menu {
  left: auto;
  right: 3rem;
}

.main .hamburger-menu,
.uebermich .hamburger-menu,
.zitate .hamburger-menu {
  animation: fade-down 2.5s;
}

.hamburger-menu:has(input:checked) {
  --foreground: #d8d8d8;
  --background: #d8d8d8;
}

.hamburger-menu:has(input:focus-visible)::before,
.hamburger-menu:has(input:focus-visible)::after,
.hamburger-menu input:focus-visible {
  border: 1px solid var(--background);
  box-shadow: 0 0 0 1px var(--foreground);
}

.hamburger-menu::before,
.hamburger-menu::after,
.hamburger-menu input {
  content: "";
  width: var(--bar-width);
  height: var(--bar-height);
  background-color: var(--foreground);
  border-radius: 9999px;
  transform-origin: left center;
  transition: opacity var(--animation-timing), width var(--animation-timing),
    rotate var(--animation-timing), translate var(--animation-timing),
    background-color var(--animation-timing);
}

.hamburger-menu input {
  appearance: none;
  padding: 0;
  margin: 0;
  outline: none;
  pointer-events: none;
}

.hamburger-menu:has(input:checked)::before {
  rotate: 45deg;
  width: var(--x-width);
  translate: 0 calc(var(--bar-height) / -2);
}

.hamburger-menu:has(input:checked)::after {
  rotate: -45deg;
  width: var(--x-width);
  translate: 0 calc(var(--bar-height) / 2);
}

.hamburger-menu input:checked {
  opacity: 0;
  width: 0;
}

.sidebar {
  position: absolute;
  top: 25rem;
  left: 2rem;
  width: 25rem;
  z-index: 3;
  padding-top: calc(var(--hamburger-height) + var(--hamburger-margin-top) - 24rem);
  background-color: #d1d1d158;

  opacity: 0;           /* unsichtbar */
  visibility: hidden;   /* verhindert Klicks auf unsichtbare Sidebar */
  transition: opacity 0.4s ease-in-out;
}

.main .sidebar {
  top: 23rem;
  left: auto;
  right: 2rem;
}

.uebermich .sidebar {
  background-color: #d1d1d1;
}

.hamburger-menu:has(input:checked) + .sidebar {
  opacity: 1;           /* sichtbar */
  visibility: visible;
}

.menuitems {
  display: block;
  width: 100%;
  box-sizing: border-box;       /* wichtig, damit padding in width enthalten ist */
  padding: 1.8rem 1.5rem;         /* vertical / horizontal (korrekte Einheit!) */
  color: #0A2832;
  font-size: 1.8rem;
  text-decoration: none;
  font-weight: 400;
  text-align: start;
  border-bottom: 1px solid #ccc; /* Trennlinie */
  margin: 0;                    /* kein margin, sonst Lücke außerhalb der Box */
  transition: background-color .15s ease, color .15s ease;
}

.menuitems:last-child {
  border-bottom: none;
}

/* Hover-Effekt */
.menuitems:hover {
  background-color: #f0f0f0; /* heller Hintergrund */
  color: #005577;            /* andere Textfarbe */
}

/* ---------------------------------------------------------------------------------------- */
/* --------------------------------Media Query------------------------------------- */
/* ---------------------------------------------------------------------------------------- */



@media (max-width: 600px) {
  .bottom-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: auto;  
    padding: 5rem 2rem 4rem 2rem;
    position: relative; /* wichtig, absolute Elemente werden deaktiviert */
  }

  .bottom-kontakt {
    position: static;
    align-items: start;     /* auch links in die Mitte */
  }

  .bottom-links {
    display: none;
  }


  .bottom-copyright {
    position: static;      /* nicht mehr absolute */
    margin-top: 6rem;
    font-size: 12px;
  }

  .bottom-copyright-text {
    font-size: 12px;
  }

  .bottom-notfall {
    position: static;
    margin-top: 5rem;
    max-width: 25rem;
    font-size: 12px;
  }
  
  .bottom-text {
    font-size: 14px;
    justify-content: start; /* Text + Icon in der Mitte */
  }

  :root {
  --bar-width: 30px;
  --bar-height: 2px; 
  --hamburger-margin-top: 10rem;
  }

  body.main {
  --hamburger-margin-top: 10rem;
  }

  .sidebar {
  top: 16rem;
  width: 90vw;
  border-radius: 5px;
  background-color: #d1d1d1;
  }

  .main .sidebar {
    top: 16rem;
  }

  .menuitems{
    font-size: 1.6rem;
  }
}

@media (min-width: 601px) and (max-width: 1024px) {
  .bottom-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: auto;  
    padding: 5rem 2rem 4rem 2rem;
    position: relative; /* wichtig, absolute Elemente werden deaktiviert */
  }

  .bottom-kontakt {
    position: static;
    align-items: start;     /* auch links in die Mitte */
  }

  .bottom-links {
    display: none;
  }


  .bottom-copyright {
    position: static;      /* nicht mehr absolute */
    margin-top: 6rem;
    font-size: 12px;
  }

  .bottom-copyright-text {
    font-size: 12px;
  }

  .bottom-notfall {
    position: static;
    margin-top: 5rem;
    max-width: 42rem;
    font-size: 12px;
  }
  
  .bottom-text {
    justify-content: start; /* Text + Icon in der Mitte */
  }

  :root {
  --bar-width: 30px;
  --bar-height: 2px; 
  }

  .sidebar {
    background-color: #d1d1d1;
  }

  .menuitems {
    font-size: 1.6rem;
  }

}