:root {
  --dark-green: #567A00;
  --light-green:  #CEDAB3;
  --very-light-green: #F6F9E8;
}
html, body { overscroll-behavior: none; }
@media (max-width: 600px) /* oddly specific but fits here :D */
{
  main {
        width : 98% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
      }
}
@media (max-width: 1200px) /* used to be 910px, but slightly overshooting it might be better. */
{
    .logo {
        display: none;
        position: absolute;
        top: 20px; 
        right: 20px; 
    }
    #fullpage-quote{
        padding-top: 20vw !important;
        padding-bottom: 20vw !important;
    }


    #menu-toggle {
        display: block !important;

        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 1000;
    }
    #navbar {
        display: none !important;
    } 
  #main-page-grid{
    grid-template-columns:  1fr !important;
    }
}

@media(max-width: 1000px){

  #split-header {
    width: 90% !important;        
    margin-left: 10% !important;  
    margin-right: 0 !important;   
    grid-template-columns: 4fr 1fr !important;
  }
}

@media  (max-width: 500px){

.footer-left-group {
justify-content: center;
}
.footer-admin{
  text-align: center !important;
  align-self: center !important;
  justify-self: center !important;
}
.footer-columns{
  grid-template-columns: 1fr !important;
  justify-content: center;
}


}


@media (max-width: 1500px) {

}

.rounded_white{

    padding: 40px;
    border-radius: 40px;
    justify-content: center;
    background:white;
}




.home-text{

  min-height: 400px;
  width: 80%;
  margin-left: auto;
  margin-right:auto;
  background-color: #F7F4EF;
  border-radius: 50px 50px 50px 50px;
  text-align: left;
  margin-top: 30px;
  overflow: auto;
}


#home-main
{
   background: rgba(0, 0, 0, 0.0);
}


#fullpage-quote{
  padding-top: 3vw;
  padding-bottom: 5vw;
  font-size: clamp(20px, 3.5vw, 64px); 
  color:white;
  background :    radial-gradient(
  ellipse at center,
  rgba(0, 0, 0, 0.4) 0%,   /* Mitte: dunkler */
  rgba(0, 0, 0, 0) 60%     /* außen: transparent */
  );
  
}

.fitting-text{
line-height: 1.8;
/*
  font-size: clamp(14px, 1.5vw, 32px); 
  margin-top: 20px;
  margin-bottom: 20px;
  color: #313137;
  */
}


#article-title-display{
  font-size: clamp(20px, 2vw, 50px);
  margin-top: 20px;
  margin-bottom: 20px;
  text-align: left;
}

#navbar{
  display:flex;
}

#backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}

#backdrop.open {
  opacity: 1;
  pointer-events: all;
}


#sidebar{
  position: fixed;
  width: 60%;
  background: #F6F9E8;
  height: 100%;
  right: 0;
  z-index: 9999; 
   transform: translateX(100%);
  transition: transform 0.3s ease;
  border-left: 1px solid #ccc;
}
#sidebar.open{
  transform: translateX(0);
}
/* Toggle button for the sidebar, seperate in case resizing while open */
#side-bar-toggle{
 display: block;
 float:right;
 padding: 2px;
 margin-top: 10px;
 margin-right: 10px;
 background: #F6F9E8;
 border: none;
}
#side-bar-toggle:hover{

    transform: scale(1.1);
    cursor: pointer;

}


.sidebar-item
{
  /*padding-top: 20px;handle using the a so better clickabiliy*/
  width: 100%;
  /*height: 30px; handle using the a so better clickabiliy*/
  background: #F6F9E8;
  border-bottom: 1px solid #ccc;
  

}

.sidebar-item.active{
  background: var(--light-green);
  font-weight: bold;
  color: #5A8200;
  border-bottom: 1px solid #ccc;
}
 .sidebar-item:hover{
  background: #d6dcca;
  font-weight: bold;
  border-bottom: 1px solid #ccc;
  cursor:pointer;
  }

/*for some reason menu-toggle and  side-bar-toggle -> i guess positioning*/
#menu-toggle { 
    display: none;
    background-color: #F6F9E8;
    border: none;
    padding: 10px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

#menu-toggle:hover{
    transform: scale(1.1);
}

#split-header {
display: grid;
grid-template-columns:1fr 1fr;
align-items: end;
width: 80%;
margin-right: auto; 
margin-left: auto;
}

.unstyleda{
    color: #5A8200;

    text-decoration: none;
    font-weight: bold;
}
.sidebar-a{
    color: #5A8200;

    text-decoration: none;
    font-weight: bold;
    display:block;
    padding-top:20px;
    padding-bottom:20px;
}

.logo {

    position: absolute;
    top: 20px; 
    right: 20px; 
}

/*backgroud alternative*/
.bg-wrap {
  position: fixed;
  height: 100svh;
  inset: 0;          /* top:0; right:0; bottom:0; left:0 */
  z-index: -1;
  overflow: hidden;  /* falls das Bild minimal überragt */
}

.bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;       /* füllt komplett, wie background-size: cover */
  object-position: center; /* oder center top, je nach Fokus */
}



body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #F6F9E8;
    text-align: center;    
    /*background-image: url("/static/backgrounds/Bullenkuhlen_1920x1280.webp");

    background-image: image-set(
      url("/static/backgrounds/Bullenkuhlen_1920x1280.webp") 1x,
      url("/static/backgrounds/Bullenkuhlen_3200x2133.webp") 2x
    );
*/
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
    opacity: 0; /* Initially hide everything */
    transition: opacity 1s ease-in-out; /* Fade-in effect */
}

/* for Lighthouse */
body.loaded {
    opacity: 1;
  }

h1{
   font-size: 2rem;  /* entspricht 32px Standard */
   line-height: 1.2
}

header {
    background-color: var(--very-light-green);
    color: #7e5821;
    padding: 15px 0;
}

header h1 {
    margin: 0;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: var(--dark-green);

    border-color: #333;
    text-decoration: none;
    font-weight: bold;
}
nav ul li a.active {
    border-bottom: 3px solid var(--dark-green); 
    font-weight: bold;
    background-color:  var(--light-green);
    padding: 5px 10px;
    border-radius: 3px;
}



nav ul li a:hover { 
    border-bottom: 3px solid var(--dark-green); 
    font-weight: bold;
    border-radius: 3px;
}


#main-page-grid{
  display: grid; 
  grid-template-columns:  1fr 1fr ;
  margin-top: 30px;
}


main {
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    width : 80%;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 100px;
}

#article-selection{

    background: rgba(255, 255, 255, 0.9);
    border-radius: 40px;
    margin-bottom: 30px;
    margin-left: auto; 
    margin-right: auto;
    max-width: fit-content;
}

#selection-grid{
    display: flex;
    justify-content: space-evenly; /* oder space-between, center, etc. */
    align-items: center;
    gap: 1rem; /* funktioniert auch mit flex seit CSS Gap support */
    padding: 1rem;
    flex-wrap: wrap; /* für bessere Mobilansicht */
}
.article-selection-button{
  height:36px;
  align-items: center;
  color: var(--dark-green);
  border: 2px solid var(--dark-green);
  border-radius: 8px;
  font-weight: bold;
  font-size: 14px;
  /*max-width:fit-content ;*/
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow: 2px 2px 5px rgba(90, 130, 0, 0.2);
  position: relative;
  overflow: hidden;
  line-height: 20px;
  border-radius: 9999999px;
}


.article-selection-button:hover{
    background-color: #d6dcca;
    transform: scale(1.1);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
}

.article-selection-button.active {

  background-color:var(--light-green); /* #f6fbe9;*/
}

.article_grid {
    padding: 40px;
    border-radius: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 20px;
    background: rgba(255, 255, 255, 0.9);
    justify-content: center;
}
.article_card {
    text-decoration: none;
    color: inherit;
}

.dropdown-content{

  position: absolute;
  right:33px;  bottom: 33px;
  background: #F6F9E8;
  border: 1px solid #ccc;
  border-radius: 6px;
  display: none;
  z-index: 10;
}

.dropdown-content.show {
  display: block;
}

.dropdown-content a,
.dropdown-content button {
  display: block;           /* wichtig: untereinander */
  padding: 10px 14px;       /* Klickfläche */
  text-decoration: none;    /* Kein Unterstrich */
  color: #333;              /* Lesbar */
}

.dropdown-content button{
  all: unset;
  display: block;
  width: 100%;
  padding: 10px 14px;
  text-align: left;
  color: #333;
  font: inherit;
   box-sizing: border-box;
}

.dropdown-content a:hover,
.dropdown-content button:hover {
  background-color: var(--light-green); /* einfache Hover-Farbe */
  
}

.article-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.create_article_button{
  border: 2px solid #5A8100;
  background: var(--light-green);
  border-radius: 3px;
}
.create_article_button:hover{
    border: 2px solid #5A8100;
    border-radius: 3px;
    transform: scale(1.01);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
}

#article-main{
    border-radius: 40px;
    margin-top: 50px;
    margin-bottom: 100px;
    background: rgba(255, 255, 255, 0.0) !important;
}

#single-article-container{

    border-radius: 40px;
    margin-top: 50px;
    margin-bottom: 100px;
    background: rgba(255, 255, 255, 1);
}


article {
    height: 85%;
    background: #ffffff; /* Light background */
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    cursor: pointer;
    position: relative;
}

article:hover {
    transform: scale(1.01);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
}

article img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

#image-space{

  overflow: auto;
  border-style: solid ;
  border-width: 2px;
  background-color: #F6F9E8;
  border-radius: 15px;
  border-color:#777;
  margin-left: calc(50px + 2vw);;
  margin-right: calc(50px + 2vw);;
  display: flex;
  width: auto;
}

.image-card{
  margin: 10px;
  padding: 10px;
  border: #333;
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
}


/**image overlay */
.overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5000;
}

.overlay img {
  max-width: 70vw;
  max-height: 70vh;
  border-radius: 8px;
  box-shadow: 0 0 20px #000;
}
.close-button {
  position: absolute;
  top: 10vh;
  right: 20vw;
  background: none;
  border: none;
  font-size: 24px;
  color: #000000;
  cursor: pointer;
  z-index: 9999;
  background-color: white;
  border-radius: 60%;
  width: 40px; 
  height: 40px;

}

/*
.main_image_container:hover .big_im_overlay{
display: block !important; 
}
*/
.main_image_container img:hover + .big_im_overlay {
  display:block !important;
}


.magnify{
  display:none;
  width: 200px;
  height: 200px;
  position: absolute;

  background: none;
  border: none;
  font-size: 24px;
  color: #ffffff;
  cursor: pointer;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.4);

}


.image-card:hover .magnify {
  display: block; /* Show magnify button on hover */
}

.image-card.add:hover{
  cursor: pointer;
  background-color: #9fa88a;
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
}

.two_to_one_grid{
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two-column layout for desktop */
    gap: 20px;
    padding: 20px;
    align-items: center;
    background: white;
    padding: 40px;
    border-radius: 40px;
    place-items: center;
}



.base_container {
    gap: 20px;
    padding: 20px;
    align-items: center;
    background: white;
    padding: 40px;
    border-radius: 40px;
}

.author_container {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Two-column layout for desktop */
    grid-template-areas: "text image"; /* Order for larger screens */
    gap: 20px;
    padding: 20px;
    align-items: center;
    background: white;
    padding: 40px;
    border-radius: 40px;
}

/* Assign grid areas */
.author_text {
    grid-area: text;
    text-align: left;
}

.author_image {
    /*grid-area: image;
    text-align: right;*/
    height: auto;
}

.author_image img {
    max-width: 100%;
    height: auto;
    border-radius: 10%;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

/* Responsive: Switch to single column with image on top */
/* 768px */
@media (max-width: 900px) {
    .author_container {
        grid-template-columns: 1fr; /* One column layout */
        grid-template-areas: 
            "image"
            "text"; /* Image first, then text */
        text-align: center;
    }

    .author_image {
        text-align: center;
    }
    .two_to_one_grid{
        grid-template-columns: 1fr; /* Two-column layout for desktop */
        align-items: center;
    }
}



/* Editable stuff*/
.editable-container {
  position: relative;
  /*padding: 1rem;*/
  /*border: 1px solid #ddd;*/
  border-radius: 0.1rem;
}

.edit-button {
  position: absolute;
  bottom: -25px;
  right:0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
}

.edit-button .edit-icon {
  width: 30px;    /* size of the gear */
  height: 30px;
  transition: filter 0.2s ease;
}

.edit-button:hover .edit-icon {
  filter: none; /* brighten on hover */
}

.edit-button.abs-top{
  top:10px !important;
  right: 10px;
  bottom: auto;
}

/* Footer */
.footer-wave {
  margin-top: -70px;
  line-height: 0;
  user-select: none;
  pointer-events: none;
}

.footer-wave-img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: -70px;
}


.footer-content h4 {
  margin-bottom: 0.5rem;
}

.footer-content ul {
  list-style: none;
  padding: 10px;
  margin: 0;
}

.footer-content ul li a {
  text-decoration: none;
  color: inherit;

}
.footer-content ul li  {

    margin-top: 10px;
}
.footer-content ul li a:hover {
  text-decoration: none;
  text-decoration:underline;
  color: var(--dark-green)


}

.footer-title { 

  font-weight: bold;
  font-size: 0.9rem;
  margin-bottom: .5rem;
}




.footer-content .footer-col {
  min-width: 120px;
  min-height: 100px;
}

.footer-columns {
  display: grid;
  justify-content: space-between;
  grid-template-columns: 1fr 1fr ;
}

.footer-left-group {
  display: flex;
  gap: 3rem;
}

.footer-col {
  min-width: 120px;
}

.footer-admin {
  text-align: right;
  align-self: end;

  justify-self: end;
}

.footer-content {
  background-color: var(--very-light-green);
  padding: 2rem;
  font-size: 0.9rem;
  color: #333;
}


.footer-bottom {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: #696969;
}



/* main page stuff */
#article-preview{
  height: 400px;
  width: 80%;
  margin-left: auto;
  background-color: #F7F4EF;
  border-radius: 50px 50px 50px 50px;
  text-align: left;
  margin-right: auto;
  margin-top: 30px;

}
.fixed-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 10;
    background-color: #FEAA004D;
    border-radius: 12px;
    padding:  15px 30px 15px 30px;
    color: black;
    text-decoration: none;
}
.fixed-btn:hover {
    background-color: #f3a304b8;
    padding:  15px 35px 15px 35px;
    transition: 0.3s;
}


.bread-crumb{
  text-decoration: none;
  color: black;
}

.bread-crumb:hover{

 text-decoration: underline; 
  color: #5A8100;
}

#in-pdf-weiter{
text-align: left;
padding-left: 2vw;
display: block;
}
#in-pdf-weiter:hover{
  color: #5A8100;
}

/* admin dashboard */
#first_stat_box{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly; 
  border-radius: 20px;
  padding: 20px;
  margin: 20px;
}

.stat_box{
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 20px;
  margin-bottom: 10px;
  border-radius: 20px;
  background-color: #F6F9E8;
}
.table_wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* smoother auf iOS */
}

#article-table{
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
table, th, td {
  border: 1px solid;
}


/*impressum*/
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 15px;
  margin: 2rem auto;
  padding: 1.5rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-control {
  flex: 1;
  width: 100%;
  padding: 0.8rem 0.5rem;
  font-size: 15px;
  border: none;
  border-bottom: 2px solid #ddd;
  background: transparent;
  color: #333;
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-bottom: 2px solid #5A8100; 
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  background: var(--light-green); 
  color: #5A8100;
  border: none;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.3s ease;
  border-bottom: 2px solid white; 
}

.btn-submit:hover {
  outline: none;
  border-bottom: 2px solid var(--dark-green); 
}



/* Debugging */
/*

* {
  outline: 1px solid limegreen;
}
*/


/* End of Debugging */
