@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

/* Global styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  height: 100%;
  font-family: Arial, sans-serif;
}

.parent-container {
  background-color: rgba(255, 235, 205, 0.4); /* Braun */
  min-height: 100vh;
}

.main-container {
  padding-bottom: 40px;
}

/* Desktop, große Bildschirme */
@media only screen and (min-width: 1025px) {
  /* Header-Stile */
  header {
    background-color: rgba(98, 118, 80);
    color: rgba(255, 215, 0);
    padding: 10px;
    text-align: center;
    font-family: "Great Vibes", cursive;
    height: 150px;
  }

  header h1 {
    letter-spacing: 14px;
    line-height: 100px;
    font-size: 26pt;
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 20px;
  }

  /* Die Login-Überschrift mittig positionieren */
  #ueberschrift {
    margin-bottom: 30px; /* Abstand nach unten hinzufügen */
  }

  #ueberschrift h2 {
    text-align: center;
    font-size: 20pt;
  }

  /* Container styles */
  .container {
    padding: 20px;
    max-width: 1200px; /* Max width can be adjusted as needed */
    flex-basis: 250px; /* Hier setzen Sie die bevorzugte Breite der Navigationsleiste */
    flex-shrink: 0; /* Verhindert Schrumpfen */
    background-color: rgba(98, 118, 80); /* Farbe nur zur Verdeutlichung */
    font-family: "Great Vibes", cursive;
    font-size: 20pt;
  }

  .container ul {
    list-style: none;
  }

  .container li {
    margin-bottom: 30px;
  }

  .container a {
    text-decoration: none;
    color: rgba(255, 215, 0);
    transition: color 0.3s ease;
    letter-spacing: 4px;
  }

  .container a:hover {
    color: #fff;
  }

  /* Footer-Stile */

  #line-nav {
    height: 2px;
    width: 100%;
    background-color: rgba(255, 215, 0, 0.8);
    margin-bottom: 30px;
    margin-top: 30px;
    border-radius: 2px;
  }

  .footer a {
    text-decoration: none;
    color: rgba(255, 215, 0);
    letter-spacing: 8px;
  }

  .logout {
    margin-bottom: 20px;
    text-align: center;
  }

  .logout a {
    font-size: 16pt;
    margin-bottom: 20px;
  }

  .datenschutz a,
  .impressum a {
    font-size: 10pt;
    margin-bottom: 20px;
  }

  /* Main content area styles */
  .main-container {
    padding: 20px;
    flex-grow: 1; /* Nimmt verbleibenden Platz ein */
    padding: 20px; /* Abstand innen */
    display: flex;
  }

  /* Allgemeines Styling, unabhängig von der Farbe der Boxen */
  .container,
  .main-container {
    box-sizing: border-box; /* Verhindern, dass Padding und Border die Gesamtbreite beeinflussen */
  }

  /* Container für die rote und braune Box */
  .parent-container {
    display: flex; /* Aktiviert Flexbox */
    flex-wrap: wrap; /* Erlaubt Umbruch auf kleinere Bildschirme */
    min-height: 100vh;
  }

  .main-container {
    padding-bottom: 40px;
  }

  input[type="checkbox"].nav-checkbox {
    display: none;
  }
}

/* Anpassungen für Mobilgeräte, kleine Bildschirme */
@media only screen and (max-width: 600px) {
  .parent-container {
    display: flex; /* Aktiviert Flexbox */
    flex-wrap: wrap; /* Erlaubt Umbruch auf kleinere Bildschirme */
    min-height: 100vh;
  }

  .main-container {
    padding-bottom: 40px;
  }

  #ueberschrift {
    margin-bottom: 30px; /* Abstand nach unten hinzufügen */
  }
  /*NAVABR*/

  #menuToggle {
    display: block;
    position: relative;
    top: 55px;
    left: 30px;
    z-index: 1;
    -webkit-user-select: none;
    user-select: none;
    padding: 20px;
    font-family: "Great Vibes", cursive;
    font-size: 20pt;
    width: 80%;
  }

  #menuToggle a {
    text-decoration: none;
    color: rgba(255, 215, 0);
    letter-spacing: 5px;
    transition: color 0.3s ease;
  }

  #menuToggle a:hover {
    color: tomato;
  }

  #menuToggle input {
    display: block;
    width: 40px;
    height: 32px;
    position: absolute;
    top: -40px;
    left: -10px;
    cursor: pointer;
    opacity: 0; /* hide this */
    z-index: 2; /* and place it over the hamburger */
    -webkit-touch-callout: none;
  }

  /*
 * Just a quick hamburger
 */
  #menuToggle span {
    display: block;
    width: 33px;
    height: 3px;
    margin-bottom: 5px;
    position: relative;
    background: rgba(0, 0, 0);
    border-radius: 3px;
    z-index: 1;
    transform-origin: 4px 0px;
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    top: -50px;
    left: -20px;
  }

  #menuToggle span:first-child {
    transform-origin: 0% 0%;
  }

  #menuToggle span:nth-last-child(2) {
    transform-origin: 0% 100%;
  }

  /* 
 * Transform all the slices of hamburger
 * into a crossmark.
 */
  #menuToggle input:checked ~ span {
    opacity: 1;
    transform: rotate(45deg) translate(-2px, -1px);
    background: #232323;
  }

  /*
 * But let's hide the middle one.
 */
  #menuToggle input:checked ~ span:nth-last-child(3) {
    opacity: 0;
    transform: rotate(0deg) scale(0.2, 0.2);
  }

  /*
 * Ohyeah and the last one should go the other direction
 */
  #menuToggle input:checked ~ span:nth-last-child(2) {
    transform: rotate(-45deg) translate(0, -1px);
  }

  /*
 * Make this absolute positioned
 * at the top left of the screen
 */
  #menu {
    position: absolute;
    width: 300px;
    margin: -100px 0 0 -50px;
    padding: 50px;
    padding-top: 80px;
    list-style-type: none;
    -webkit-font-smoothing: antialiased;
    /* to stop flickering of text in safari */
    transform-origin: 0% 0%;
    transform: translate(-100%, 0);
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    top: 50px;
    background-color: rgba(98, 118, 80);
  }

  #menu li {
    padding: 10px 0;
    font-size: 22px;
  }

  /*
 * And let's slide it in from the left
 */
  #menuToggle input:checked ~ ul {
    transform: none;
  }

  /* Header-Stile */
  header {
    background-color: rgba(98, 118, 80);
    color: rgba(255, 215, 0);
    padding: 10px;
    text-align: center;
    font-family: "Great Vibes", cursive;
    height: 100px;
  }

  header h1 {
    letter-spacing: 14px;
    line-height: 100px;
    font-size: 16pt;
  }

  #line-nav {
    height: 2px;
    width: 100%;
    background-color: rgba(255, 215, 0, 0.8);
    margin-bottom: 30px;
    margin-top: 30px;
    border-radius: 2px;
  }

  .footer a {
    text-decoration: none;
    color: rgba(255, 215, 0);
    letter-spacing: 8px;
  }

  .logout {
    margin-bottom: 20px;
    text-align: center;
  }

  .logout a {
    font-size: 16pt;
    margin-bottom: 20px;
  }

  .datenschutz a,
  .impressum a {
    font-size: 10pt;
    margin-bottom: 20px;
  }
}

/* Anpassungen für Tablets, mittelgroße Bildschirme */
@media only screen and (min-width: 601px) and (max-width: 1024px) {
  .parent-container {
    display: flex; /* Aktiviert Flexbox */
    flex-wrap: wrap; /* Erlaubt Umbruch auf kleinere Bildschirme */
    min-height: 100vh;
  }

  .main-container {
    padding-bottom: 40px;
  }

  #ueberschrift {
    margin-bottom: 30px; /* Abstand nach unten hinzufügen */
  }
  /*NAVABR*/
  #menuToggle {
    display: block;
    position: relative;
    top: 55px;
    left: 30px;
    z-index: 1;
    -webkit-user-select: none;
    user-select: none;
    padding: 20px;
    font-family: "Great Vibes", cursive;
    font-size: 20pt;
    padding-right: 0;
    width: 600px;
  }

  #menuToggle a {
    text-decoration: none;
    color: rgba(255, 215, 0);

    transition: color 0.3s ease;
  }

  #menuToggle a:hover {
    color: tomato;
  }

  #menuToggle input {
    display: block;
    width: 40px;
    height: 32px;
    position: absolute;
    top: -40px;
    left: -10px;
    cursor: pointer;
    opacity: 0; /* hide this */
    z-index: 2; /* and place it over the hamburger */
    -webkit-touch-callout: none;
  }

  /*
 * Just a quick hamburger
 */
  #menuToggle span {
    display: block;
    width: 33px;
    height: 3px;
    margin-bottom: 5px;
    position: relative;
    background: rgba(0, 0, 0);
    border-radius: 3px;
    z-index: 1;
    transform-origin: 4px 0px;
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    top: -50px;
    left: -20px;
  }

  #menuToggle span:first-child {
    transform-origin: 0% 0%;
  }

  #menuToggle span:nth-last-child(2) {
    transform-origin: 0% 100%;
  }

  /* 
 * Transform all the slices of hamburger
 * into a crossmark.
 */
  #menuToggle input:checked ~ span {
    opacity: 1;
    transform: rotate(45deg) translate(-2px, -1px);
    background: #232323;
  }

  /*
 * But let's hide the middle one.
 */
  #menuToggle input:checked ~ span:nth-last-child(3) {
    opacity: 0;
    transform: rotate(0deg) scale(0.2, 0.2);
  }

  /*
 * Ohyeah and the last one should go the other direction
 */
  #menuToggle input:checked ~ span:nth-last-child(2) {
    transform: rotate(-45deg) translate(0, -1px);
  }

  /*
 * Make this absolute positioned
 * at the top left of the screen
 */
  #menu {
    position: absolute;
    width: 300px;
    margin: -100px 0 0 -50px;
    padding: 50px;
    padding-top: 80px;
    list-style-type: none;
    -webkit-font-smoothing: antialiased;
    /* to stop flickering of text in safari */
    transform-origin: 0% 0%;
    transform: translate(-100%, 0);
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    top: 50px;
    background-color: rgba(98, 118, 80);
    letter-spacing: 4px;
  }

  #menu li {
    padding: 10px 0;
    font-size: 22px;
  }

  /*
 * And let's slide it in from the left
 */
  #menuToggle input:checked ~ ul {
    transform: none;
  }

  /* Header-Stile */
  header {
    background-color: rgba(98, 118, 80);
    color: rgba(255, 215, 0);
    padding: 10px;
    text-align: center;
    font-family: "Great Vibes", cursive;
    height: 100px;
  }

  header h1 {
    letter-spacing: 14px;
    line-height: 100px;
    font-size: 16pt;
  }

  #line-nav {
    height: 2px;
    width: 100%;
    background-color: rgba(255, 215, 0, 0.8);
    margin-bottom: 30px;
    margin-top: 30px;
    border-radius: 2px;
  }

  .footer a {
    text-decoration: none;
    color: rgba(255, 215, 0);
    letter-spacing: 8px;
  }

  .logout {
    margin-bottom: 20px;
    text-align: center;
  }

  .logout a {
    font-size: 16pt;
    margin-bottom: 20px;
  }

  .datenschutz a,
  .impressum a {
    font-size: 10pt;
    margin-bottom: 20px;
  }
}

/* Anpassungen für Tablets, mittelgroße Bildschirme */
@media only screen and (min-width: 1024px) and (max-width: 1489px) {
  header {
    background-color: rgba(98, 118, 80);
    color: rgba(255, 215, 0);
    padding: 10px;
    text-align: center;
    font-family: "Great Vibes", cursive;
    height: 150px;
  }

  header h1 {
    letter-spacing: 14px;
    line-height: 100px;
    font-size: 26pt;
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 20px;
  }

  /* Die Login-Überschrift mittig positionieren */
  #ueberschrift {
    margin-bottom: 30px; /* Abstand nach unten hinzufügen */
  }

  #ueberschrift h2 {
    text-align: center;
    font-size: 20pt;
  }

  /* Container styles */
  .container {
    padding: 20px;
    margin: 0 0;
    max-width: 1200px; /* Max width can be adjusted as needed */
    flex-basis: 250px; /* Hier setzen Sie die bevorzugte Breite der Navigationsleiste */
    flex-shrink: 0; /* Verhindert Schrumpfen */
    background-color: rgba(98, 118, 80); /* Farbe nur zur Verdeutlichung */
    font-family: "Great Vibes", cursive;
    font-size: 20pt;
  }

  .container ul {
    list-style: none;
  }

  .container li {
    margin-bottom: 30px;
  }

  .container a {
    text-decoration: none;
    color: rgba(255, 215, 0);
    transition: color 0.3s ease;
    letter-spacing: 4px;
  }

  .container a:hover {
    color: #fff;
  }

  /* Footer-Stile */

  #line-nav {
    height: 2px;
    width: 100%;
    background-color: rgba(255, 215, 0, 0.8);
    margin-bottom: 30px;
    margin-top: 30px;
    border-radius: 2px;
  }

  .footer a {
    text-decoration: none;
    color: rgba(255, 215, 0);
    letter-spacing: 8px;
  }

  .logout {
    margin-bottom: 20px;
    text-align: center;
  }

  .logout a {
    font-size: 16pt;
    margin-bottom: 20px;
  }

  .datenschutz a,
  .impressum a {
    font-size: 10pt;
    margin-bottom: 20px;
  }

  /* Main content area styles */
  .main-container {
    padding: 20px;
    flex-grow: 1; /* Nimmt verbleibenden Platz ein */
    padding: 20px; /* Abstand innen */
    display: flex;
  }

  /* Allgemeines Styling, unabhängig von der Farbe der Boxen */
  .container,
  .main-container {
    box-sizing: border-box; /* Verhindern, dass Padding und Border die Gesamtbreite beeinflussen */
  }

  /* Container für die rote und braune Box */
  .parent-container {
    display: flex; /* Aktiviert Flexbox */
    flex-wrap: wrap; /* Erlaubt Umbruch auf kleinere Bildschirme */
    min-height: 100vh;
  }

  .main-container {
    padding-bottom: 40px;
  }

  input[type="checkbox"] {
    display: none;
  }

  /* Adjust the layout of the images such that they have more space and align well */
  .bild {
    margin: 1em; /* Increase margin around images for better spacing */
    flex-basis: calc(
      50% - 2em
    ); /* Change flex basis to allow two images per row with proper margin */
    max-width: calc(
      50% - 2em
    ); /* Ensure the max-width reflects the same space as flex-basis */
  }
}
