@font-face {
  font-family: "Inter";
  src: url("../fonts/inter/inter-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair/playfair-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
body {
  font-family:"Inter",sans-serif;
  line-height: 1.75;
  max-width: 900px;   /* oder jede andere Breite */
  margin: 0 auto;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
}
blockquote {
  font-family: "Playfair Display", serif;
  font-style: italic;
  line-height: 1.5;
  font-size: 24px;
}
header nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 2rem;
  list-style: none;
  padding-top: 100px;
  margin: 0;
}
header nav ul li:nth-last-child(-n+2) {
  display: none;
}
header nav ul li a {
  background-image: none;
  transition: color 0.3s ease;
  text-decoration: none;
  color: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  line-height: 1.3;
  padding: 4px 0;
}
header nav ul li a:hover {
  color: red;
}
footer nav ul {
  float: left; 
  list-style: none;
  justify-content: space-between; /* verteilt die Elemente */
  padding: 0;
  margin: 0;
}
footer nav li {
  padding:0px 0px 10px 20px;
} 
footer nav ul li { 
  display: inline-block;
  flex: 1;
  text-align: center;      /* Text in der Mitte */
}
footer nav ul li a {
  background-image: none; 
  transition: color 0.6s ease, background-color 0.3s ease;
  text-decoration: none; 
  color: inherit; 
  display: block;          /* macht den ganzen Bereich klickbar */
  padding: 10px 0;         /* schöner Abstand */
}
footer nav ul li a:hover { 
  color: red;
}
footer nav ul li.meine-klasse:nth-last-child(-n+3) {
  display: none;
}
header {
  height:130px;  
  border-bottom: 1px solid black;
  padding: 20px 0;
  background-image:url(../bilder/logo_sangha.jpg);
  background-position:top left;
  background-repeat:no-repeat;
  animation:fadein 10s;
  position: relative;
}
.logo-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 280px;   /* an die tatsächliche Logo-Breite anpassen, falls nötig */
  height: 130px;
  z-index: 1;
}
.menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  width: 44px;
  height: 44px;
  background: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 1px 6px rgba(0,0,0,0.15);
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: black;
  margin: 5px auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
body.nav-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.nav-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}
body.nav-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
body.nav-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 800;
}
footer {
  border-top: 1px solid black;
  padding: 1px 0;
}
.page-nav {
  width:290px;
  position:fixed;
  margin-left:654px;
  margin-top:80px;
  padding:10px 0px 0px 20px;
  list-style-type:none;
  line-height:21px;
  overflow:hidden;
  color:#808080;
}
.page-nav a {
  background-image: none !important;
  background-size: 0 !important;
}
.page-nav ul {
  list-style: none;
  padding-left: 0; /* optional: rückt die Liste nach links */
  margin: 0;       /* optional: entfernt Standardabstand */
}
.page-nav ul li a {
 line-height: 28px;
 text-decoration: none;
 color: inherit;
 display: block;          /* macht den ganzen Bereich klickbar */
}
.frame {
  max-width: 660px;
  width: 100%;
  box-sizing: border-box;
  padding: 0 20px;
}
.frame a,
main a {
  color: black;
  background-image: linear-gradient(yellow, yellow);
  background-size: 100% 3px; /* Startdicke */
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.25s ease;
  text-decoration: none;
}

.frame a:hover,
main a:hover {
  background-size: 100% 8px; /* Dicke beim Hover */
}

/* ===== Responsive Anpassungen für Tablet/Smartphone ===== */
@media (max-width: 700px) {
  header {
    padding-bottom: 10px;
  }
  .menu-toggle {
    display: block;
  }
  header nav ul {
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    margin: 0;
    padding: 30px;
    background: #fff;
    box-shadow: -2px 0 12px rgba(0,0,0,0.12);
    gap: 1rem;
    z-index: 900;
    overflow-y: auto;
  }
  body.nav-open header nav ul {
    display: flex;
  }
  header nav ul li:nth-last-child(-n+2) {
    display: block;
  }
  footer nav ul {
    float: none;
  }
  footer {
    display: none;
  }
  .page-nav {
    display: none;
  }
  .frame {
    padding: 0 15px;
  }
}