/* Import von Google Fonts */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Lato:ital,wght@0,100..900;1,100..900&display=swap');

/* -----------Globale Styles------------*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Lato', sans-serif;
  background-color: #f9f9f9;
  color: #424242;
  font-size: 16px;
  line-height: 1.6;
}

html, body {
  height: 100%;
}

html {
  overflow-y: scroll;
}


.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
}

/*----------Überschriften---------- */
h1,
h2 {
  font-weight: 700;
  color: #4E3000;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h1, h2, h3, h4, h5, h6  {
    font-family: 'EB Garamond', serif;
}
/* --------------Header Leiste --------------*/
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 16rem;
  background-color: #F5E9DC;
  border-bottom: 1px solid #ece9e9;
  position: sticky;
  top: 0;
  /* z- Index ist wie die Order von Tags Attributen usw. 
  Ist benötigt um zu verhindern das z.B Bilder oder andere Elemente nicht über dem Header sind
  --> Header is immer ganz oben in der Ebene damit */
  z-index: 1000;
}

/*------------------------- Logo---------------------------------- */
header .logo img {
  height: 50px;
  vertical-align: center;
}

.nav-right {
  display: flex;
  gap: 3rem;
  align-items: center;
}

/* ----------------Navigations Hyperlinks --------------------*/
.nav-left a {
  background-color: #4E3000;
  color: white;
  font-family: 'Lato', sans-serif;
  padding: 0.3rem 1rem;
  border-radius: 15px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  width: 120px;
  text-align: center;
  display: inline-block;
}

.nav-left a:hover {
  background-color: #D97B38;
}

.nav-right img {
  height: 24px;
  width: 24px;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.nav-right img:hover {
  filter: sepia(1) saturate(500%) hue-rotate(-15deg) brightness(1.1); 
  transform: scale(1.1);
}
/*--------------------Buttons-------------------------*/
button {
  background-color: #4E3000;
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #D97B38;
}

button:disabled {
  background-color: rgb(78, 48, 0, 0.5);
  cursor: not-allowed;
  opacity: 0.6;
}
/*---------------------Input-------------------------*/
input:focus {
  outline: 1px solid #D97B38;
}

input, select, button {
  font-family: 'Lato', sans-serif;
}
/*--------------------Main-------------------------*/
main {
    padding: 2rem 16rem; /* Border left and right */
    margin-top: 2rem;
    margin-bottom: 2rem;
}
/*---------------------Footer------------------------*/
footer {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background-color: #F5E9DC;
  color:#4E3000;
  padding: 1.5rem 16rem;
  border-top: 1px solid #ccc;
  
}

/* Burger-Menü für kleine Bildschirme */
.burger-menu {
    display: none;
}

@media (max-width: 1200px) {
    .nav-left, .nav-right {
        display: none;
    }
    .burger-menu {
        display: flex;
        gap: 3rem;
        align-items: center;
    }

    .burger-menu img {
        height: 24px;
        width: 24px;
        cursor: pointer;
        transition: filter 0.2s ease;
    }

    .burger-menu img:hover {
        filter: sepia(1) saturate(500%) hue-rotate(-15deg) brightness(1.1); 
        transform: scale(1.1);
    }
    .dropdown-menu {
        display: none;
        position: absolute;
        right: 24px;
        top: 56px;
        background: #F5E9DC;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        z-index: 1000;
        min-width: 180px;
    }
    .burger-menu.active .dropdown-menu {
        display: block;
    }
    .dropdown-menu a {
        display: block;
        padding: 14px 24px;
        margin: 1rem;
        color: #fff;
        background-color: #4E3000;
        border-radius: 8px;
        text-decoration: none;
        font-size: 1rem;
        border-bottom: 1px solid #333;
        text-align: center;
    }
    .dropdown-menu a:hover {
        background: #D97B38;
        color: #fff;
    }
}