:root {
  --color-1: #432;
  --background-color-1: #f7f7ea;
  --background-color-2: #fbfbf0;
  --accent-color-1: #9db752;
  --border-color: #999999;
}

* {
  margin: 0;
  padding: 0;
}
html {
  font-size: 20pt;
  font-family: Arial, "Helvetica", sans-serif;
  scroll-behavior: smooth;
}
/*  */
/* ~ general styling all pages ~ */
/*  */

nav {
  display: grid;
  grid-template-columns: 1;
  grid-template-rows: 1fr 3fr 1fr;
  width: 100%;
  height: 110px;
  position: relative;
  top: 0%;
  border-bottom: solid 5px #9db752;
  background-color: var(--background-color-1);
  color: var(--color-1);
  z-index: 1;
}
nav > div > a:hover {
  text-decoration: underline;
  transition: 0.3s ease;
  color: #9db752;
}
.container-nav {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  margin: 0.5% 25% 0.1% 25%;
}

footer {
  display: inline-flex;
  justify-content: flex-end;
  align-items: last baseline;
  width: 100%;
  height: 400px;
  background-image: url(/pictures/banner\ footer.jpg);
  color: #9db752;
}

body {
  background-color: var(--background-color-1);
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  background-color: var(--accent-color-1);
  color: var(--color-1);
  padding: 10px;
  border: solid 1.5px var(--border-color);
  border-radius: 0.5rem 2rem 0.5rem 2rem;
  font-size: 0.6em;
  box-shadow: 0px 1px 7px black;
  font-weight: bold;
}
button:hover {
  background-color: #432;
  color: #9db752;
  cursor: pointer;
  transition: 0.5s ease;
}
h2 {
  text-decoration: underline;
  margin: 0.5em 0 1em 0;
}
input,
textarea {
  margin: 5px 5px 5px 0px;
  padding: 0.4em;
  border-radius: 5px;
  border: solid 0.1px var(--border-color);
  background-color: #f7f7ea00;
}

/*  */
/* Home site / Startseite */
/*  */

header {
  width: 100%;
  height: 86.8vh;
  background-image: url(/pictures/Banner\ head.jpg);
  border-bottom: solid 8px #9db752;
  color: var(--background-color-1);
  -webkit-text-stroke: rgb(14, 14, 14) 1.5px;
}
header > h1 {
  font-size: 3rem;
  padding: 2.5rem;
  text-shadow: 0.01em 0.05em black;
  filter: drop-shadow(0.05em 0.05em 20pt black);
}
header > p {
  font-size: 1.1rem;
  padding: 2.5rem;
  -webkit-text-stroke-width: 0.5px;
  text-shadow: 1px 1px black;
  filter: drop-shadow(1px 1px 10px black);
}
.arrow {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-top: 2em;
}
header > div > a > img {
  height: 45px;
  background-color: #f7f7ea6b;
  border-radius: 50%;
  border: solid 5px #f7f7ea31;
  text-align: center;
}
header > div > a > img:hover {
  background-color: #999999;
  transition: 0.3s;
}
/* sections / HOME */
.general,
.news {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--color-1);
}
section > p {
  padding: 1.5em 0 1.5em 0;
  margin: 0 1.5em 0 1.5em;
}
.containerGeneral {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: space-around;
}
.generalItems {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 1.5em;
}
.generalItems > img {
  height: 64px;
  width: 64px;
  padding: 10px;
  border-bottom: solid 5px #9db752;
}
.generalItems > p {
  padding: 1rem;
  color: #9db752;
  font-weight: bold;
}
/* section news */

/*  */
/* About Site / Über uns Seite */
/*  */
.aboutUs {
  color: var(--color-1);
}
.aboutUs > h3 {
  margin-left: 20px;
}

.aboutCards {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: flex-start, stretch;
  margin: 2em 0 2em 0;
  color: var(--color-1);
}
.card {
  height: auto;
  width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--background-color-2);
  border: solid 0.5px var(--border-color);
  border-radius: 20px;
  box-shadow: 0px 0px 20px #999999;
  margin-bottom: 1em;
}
section > div > div > span {
  position: relative;
  top: 0;
  width: 100%;
  height: 40px;
  text-align: center;
  background-color: #9db752;
  border-radius: 18px 18px 0 0;
  border-bottom: solid 0.5px var(--border-color);
  z-index: 0;
}
section > div > div > h4 {
  position: absolute;
  margin-top: 5px;
}
section > div > div > p {
  font-size: 0.85em;
  margin: 0.5em 1.2em 1.5em 1.2em;
}
section > div > div > a {
  margin: 1em;
}

/*  */
/* Login site / Login Seite */
/*  */

.login {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--color-1);
  margin: 3em;
}
.loginForm {
  display: flex;
  flex-direction: column;
}
.login > h1 {
  text-decoration: underline;
}
fieldset {
  border-style: none;
  display: flex;
  flex-direction: column;
  font-size: 0.7em;
  padding: 1em;
}

.togglePw {
  display: flex;
  flex-direction: row;
  justify-content: start;
  font-size: 0.7em;
}
.togglePw > p {
  margin-left: 5px;
}
section > form > button {
  margin: 0 2.5em 0 2.5em;
}

/* footer / Fußzeile */

footer > div > div > a > img {
  height: 32px;
  width: 32px;
  border: solid 1px black;
  border-radius: 50%;
  padding: 0.1em;
  margin-right: 0.5em;
  margin-left: 0.5em;
  background-color: #9eb75249;
}
footer > div > div > a > img:hover {
  background-color: #999999;
  box-shadow: 0px 0px 10px #999999;
}
footer > img {
  margin-right: 43%;
}
footer > div > div > a:hover {
  color: var(--border-color);
  transition: 0.3s ease;
  text-decoration: underline;
}
/*  */
/* dates site / Termine Seite */
/*  */

.dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr 1fr;
  column-gap: 15%;
  row-gap: 5%;
  margin: 5% 10% 5% 10%;
}
.dateCards {
  display: flex;
  flex-direction: column;
  background-color: var(--background-color-2);
  border: solid 0.5px var(--border-color);
  border-radius: 20px;
  color: var(--color-1);
  box-shadow: 0 0 20px var(--border-color);
}
.dateHead {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  padding: 0 0 0 35px;
  background-color: #9db752;
  border-radius: 18px 18px 0 0;
  border-bottom: solid 0.5px var(--border-color);
  color: var(--color-1);
}
.dateText {
  position: relative;
  top: 12px;
}
#datesInformation {
  display: flex;
  flex-direction: column;
  padding: 0.5em;
}
#datesInformation > ul {
  list-style-type: none;
}
#datesInformation > ul > li {
  margin-top: 0.3em;
  margin-bottom: 0.3em;
  font-size: 0.9em;
}

/*  */
/* contact / Kontakt Seite */
/*  */

.contactArea {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  color: var(--color-1);
  margin-top: 5%;
}
.contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 50px;
}
.contactItems {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
}
.contactItems > p {
  font-size: 0.8em;
}
.maps {
  width: 400px;
  height: 300px;
  border: solid 1px var(--border-color);
  border: solid 1px var(--border-color);
  border-radius: 20px;
  box-shadow: 0 0 10px var(--border-color);
  margin-bottom: 20px;
}

/*  */
/* Members site / Mitglieder//Ansprechpartner Seite */
/*  */

.member {
   display: flex;
   flex-direction: row;
   flex-wrap: wrap;
   justify-content: space-around;
   margin: 0 15% 0 15%;
}
.mItem {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  width: 250px;
  height: 250px;
  background-color: #fbfbf0;
  border: solid 0.5px #9999997b;
  border-radius: 20px;
  box-shadow: 0 0 2px #9999997b;
  margin: 1em 2em 1em 2em;

}
.mPicture {
  height: 150px;
  width: 150px;
}
.mName {
  color: #9db752;
}
.mLine {
  background-color: #9999997b;
  height: 1px;
  width: 100%;
}

/*  */
/* News / Aktuelles Seite */
/*  */

/* CSS für die Card und den Modal */
.newsCard {
  /* Stil für die Card */
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
justify-content: stretch;
  height: auto;
  width: 350px;
  background-color: var(--background-color-2);
  border: solid 0.5px #9999997b;
  border-radius: 20px;
  box-shadow: 0 0 5px #999999;
  margin: 20px 10% 20px 10%;
}
.newsCard>span {
  height: 1px;
  width: 100%;
  background-color: #9999997b;

}
.newsCard>img {
  width: 100%;
  height: auto;
}
.newsCard>h3 {
  color: #9db752;
}
.openModal {
  margin: 1em 33% 1em 33%;
}

.content {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 8; /* Anzahl der angezeigten Zeilen */
  -webkit-box-orient: vertical;
  font-size: 0.8em;
  margin-left: 1em;
  margin-right: 1em;
  
}
.modal {
  display: none; /* Versteckt den Modal standardmäßig */
  position: fixed; /* Bleibt an der gleichen Stelle auf dem Bildschirm */
  z-index: 1; /* Liegt über anderen Elementen */
  left: 0;
  top: 0;
  width: 100%; /* Volle Breite */
  height: 100%; /* Volle Höhe */
  overflow: auto; /* Ermöglicht Scrollen, falls nötig */
  background-color: rgb(0,0,0); /* Hintergrundfarbe */
  background-color: rgba(0,0,0,0.4); /* Schwarz mit Opazität */
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto; /* 15% vom oberen Rand und zentriert */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Kann angepasst werden */
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
