@font-face {
    font-family: Fraunces;
    src: url(../../fonts/fraunces/Fraunces-VariableFont_SOFT,WONK,opsz,wght.ttf) format("truetype");
}

@font-face {
    font-family: Monserrat;
    src: url(../../fonts/monserrat/Montserrat-VariableFont_wght.ttf) format("truetype");
}

@font-face {
    font-family: Roboto;
    src: url(../../fonts/roboto/Roboto-Regular.ttf) format("truetype");
}

@font-face {
    font-family: Roboto-Black;
    src: url(../../fonts/roboto/Roboto-Black.ttf) format("truetype");
}

@font-face {
    font-family: Roboto-Medium;
    src: url(../../fonts/roboto/Roboto-Medium.ttf) format("truetype");
}

* {
box-sizing: border-box;
}

:root {
--braun: #3c1b0a;
--gruen: #77a274;
--creme: #faf1e5;
--hell: #ffffff;
--dunkel: #000000;
--men-height: 6vh;
--cell-size: calc(55vh / 4); /* Jede Zelle nimmt ein Fünfzehntel der Viewport-Breite minus 50px (für die Scrollbar) und dem Abstand zwischen den Zellen */
--size:0.9rem;
--h2:2.5rem;
--h3:1.4rem;
--size2:1rem;
--size3:1.5rem;
}

* {
    box-sizing: border-box;
}

html, body, header {
    background-color: var(--gruen);
    font-family: Monserrat;
    font-weight: 300;
    font-size: var(--size);
    hyphens: auto;
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    /* Optional: Weitere Eigenschaften zur Textformatierung */
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin: 0 auto;
    position: relative;
    width: 100%;
    padding: 0px;
}

input, textarea, select {
    background-color: var(--creme);
    margin-bottom: 10px;
    padding: 5px;
    border-radius: 5px;
}

input[type="submit"] {
    background-color: var(--gruen);
    color: var(--hell);
    font-weight: bold;
}

.center-content {
    position: relative;
    top: 20vh;
    width: 70%;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 10px;
    background-color: var(--creme);
    padding: 20px;
    text-align: center;
}

.center-content input {
    width:100%;
}

.center-content h2 {
    margin-top: 10px;
    color: var(--dunkel);
    margin-bottom: 40px;
}

.error {
    margin:0 auto;
    width:fit-content;
    padding:10px;
    color:red;
}

.iframe-content {
    width: 100%;
    height: calc(100vh - 100px);
    position: fixed;
    bottom: 0;
    left: 0;
    border: none;
    padding:20px;
}

/* CSS bleibt gleich wie im vorherigen Beispiel, jedoch ohne Flexbox-Zentrierung */
.overlay-header {
    cursor: move; /* Cursor-Stil für Dragging */
    background-color: #f2f2f2; /* Hintergrundfarbe für die Kopfzeile */
    padding: 20px; /* Padding für die Kopfzeile */
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}


.overlay {
    pointer-events: none;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    /* Hintergrund entfernt für Transparenz */
}

.overlay-content {
    pointer-events: auto; 
    position: absolute;
    top: 10%;
    left: 10%;
    width: 40%; 
    max-width: 100%;
    min-width: 100px; /* Stellt sicher, dass das Overlay nicht breiter als der Bildschirm ist */
    height: 80%;
    min-height: 100px;
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);

}

.refresh-btn{
    cursor: pointer;
    font-size: 23px;
    position: absolute;
    top: 15px;
    right: 45px;
}

.close-btn {
    cursor: pointer;
    font-size: 40px;
    position: absolute;
    top: 5px;
    right: 5px;
}

.abschnitt {
    background: linear-gradient(45deg, #ffffff, #ffffff, rgba(200, 200, 220, 0.1));
    border-radius: 5px 5px 5px 15px;
    border: 1px solid #dedede;
    box-sizing: border-box;
    padding: 20px;
    background-color: #fff;
    position: relative;
    width: 100%;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    margin-bottom: 10px;
    box-shadow: 6px 18px 18px -16px rgba(0,0,0,0.3);
}


.vbox a {
    color:var(--dunkel);
}

.vbox a:hover { 
    color:var(--gruen); 
}

a {
    color:var(--hell);
}

a:hover { 
    color:var(--dunkel); 
}

.btn {
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    display: block;
    padding: 15px;
    width: 100%;
    border: 1px solid var(--hell);
    color: var(--hell);
    font-size: 1.1rem;
    cursor:pointer;
}

.btn:hover {
    background-color: var(--hell);
    color: var(--gruen);
    border: 1px solid var(--gruen);
}

.abschnitt .btn {
    background-color: var(--gruen);
    color: var(--hell);
}

.calendar-wrapper {
    position: relative;
    display: inline-block;
  }

  .calendar-icon {
    position: absolute;
    right: 10px;
    top: 5px;
    cursor: pointer;
  }

  .calendar-icon img {
    width: 20px;
    height: 20px;
  }

  .fwdth input, .fwdth textarea, .fwdth select {
    width:100%;
  }

  .fwdth input[type="time"] {
    width:100px;
  }

  .error1 {
    position:relative;
    margin: 0px 0px 20px 0px;
    left: 50%;
    transform: translate(-50%, 0%);
    background-color: #f8d7da;
    color: #721c24;
    padding: 20px;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.error {
    position: fixed;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #f8d7da;
    color: #721c24;
    padding: 20px;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 9999;
    width:calc(100% - 40px);
    max-width:500px;
}
.error .close, .error1 .close, .erfolg .close{
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-weight: bold;
    z-index:99999;
}

.abtabelle {
    align-items: stretch!important;
}

.abtabelle .akzeptieren {
    height:100%;
    width: 50%;
    background-image: url(/icns/icon-ja-leer.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 50%;
    cursor: pointer;
}

.bearbeiten {
    height:40px;
    width: 40px;
    background-image: url(/icns/icon-bearbeiten.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 50%;
    cursor: pointer;
}

/*.abtabelle .loeschen*/
.loeschen {
    height:40px;
    width: 40px;
    background-image: url(/icns/icon-loeschen.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 40%;
    cursor: pointer;
}

.kopieren {
    height:40px;
    width: 40px;
    background-image: url(/icns/copy_black.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 50%;
    cursor: pointer;
}

.abtabelle.red {
    background-color: #ec7f88;
}

.abtabelle.ora {
    background-color: #f0c993;
}

.abtabelle div {
    padding:5px;
    word-wrap: break-word; /* Für ältere Browser */
    overflow-wrap: break-word; /* Für moderne Browser */
}

.abtabelle a {
    text-decoration: none;
    color:#444;
}

.abtabelle .bl {
    background-color: lightblue;
    min-width: 45px;
    max-width: 45px;
}


.abtabelle .beschriftung {
    border: 1px solid #d8ffbe;
    background-color:#d8ffbe!important;
    font-weight:bold;
}

.abtabelle .bd {
    margin-top: -1px!important;
    margin-right: -1px!important;
    border: 1px solid #444!important;
    min-height: 20px;
}

.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black; /* Optional: Fügt eine unterstrichene Linie hinzu, um anzuzeigen, dass dies ein Tooltip ist */
  }
  
  /* Tooltip-Text */
  .tooltip .tooltiptext {
    visibility: hidden;
    
    background-color: red;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 10px;
  
    /* Positionierung */
    position: absolute;
    z-index: 1000;
    bottom: 100%;
    left: 50%;
    margin-left: -60px; /* Halbiert die Breite, um den Tooltip zu zentrieren */
  
    /* Übergänge für das Ein- und Ausblenden */
    opacity: 0;
    transition: opacity 0.3s;
  }
  
  /* Tooltip-Text */
  .tooltip .tooltiptext1 {
      visibility: hidden;
      
      background-color: red;
      color: #fff;
      text-align: left;
      border-radius: 6px;
      padding: 5px 10px;
    
      /* Positionierung */
      position: absolute;
      z-index: 1000;
      top: 100%;
      left: 95%;
      margin-left: -60px; /* Halbiert die Breite, um den Tooltip zu zentrieren */
    
      /* Übergänge für das Ein- und Ausblenden */
      opacity: 0;
      transition: opacity 0.3s;
    }
  
    .tooltip .tooltiptext1 a{
      color: #fff!important;
      text-decoration:underline!important;
    }
  
  /* Zeigt den Tooltip-Text beim Hover */
  .tooltip:hover .tooltiptext, .tooltip:hover .tooltiptext1 {
    visibility: visible;
    opacity: 0.9;
  }
  .quadrat {
      width: 20px;
      height: 20px; 
      margin: 1px; 
  }
  
  .rot {
      background-color: red !important; 
  }
  
  .gruen {
      background-color: green !important; 
  }
  
  .orange {
      background-color: orange !important; 
  }
  .lightgreen{
      background-color:#DDEDDD !important;
      color:black !important;
  }
  .schwarz{
      background-color:#000 !important;
      color:white !important;
  }
  
  .yellow-background {
      background-color:#fee900 !important;
      color:#000 !important;        
  }
  .veranstaltungen-tabelle {
    width: 100%;
    border-collapse: collapse; /* sorgt dafür, dass sich die Ränder nicht überlappen */
}

.veranstaltungen-tabelle th, .veranstaltungen-tabelle td {
    border: 1px solid #000; /* schwarzer Rahmen um jede Zelle */
    padding: 8px;
}

.veranstaltungen-tabelle th {
    color: var(--hell);
    background-color: var(--gruen);
    text-align: left;
}

.veranstaltungen-tabelle a {
    color: var(--gruen);
}


h2 {
    font-family: Fraunces;
    color:var(--hell);
    font-size:var(--h2);
    text-align: center;
    transition-property: opacity, transform;
    font-family: "Fraunces", Tofu;
    font-weight: 400;
    font-stretch: normal;
    font-optical-sizing: auto;
    line-height: initial;
    margin-bottom:15px;
}

h3 {
    font-size: var(--h3);
}

.abstand {
    margin-top:50px;
}

hr {
    width:100%;
    border: 1px solid;
    margin-bottom:35px;
}

.inhalt {
    padding:50px;
}
.main-container {
    box-shadow: 30px 18px 18px -16px rgba(0,0,0,0.3);
}

.flex {
    width:100%;
    display:flex;
    align-items: flex-start;
}

.flex1 {
    display: flex;
    flex-wrap: wrap; /* Spalten nebeneinander */
    width: 100%;
}

.stretch {
    align-items: stretch; /* Dehnt die Kinder-Elemente in der Höhe */
}

.gap {
    gap:80px;
}

.b25 {
    position: relative;
    flex-basis:25%;
    overflow:hidden;
}

.b25 img {
    width: 100%;
    display: block;
}

.b50 img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* Passt das Bild an, damit es die gesamte Höhe und Breite einnimmt */
    display: block;
}

.b50 {
    width: 50%;
    position: relative;
    display: flex;  /* Macht b50 zu einem Flex-Container */
    flex-direction: column;  /* Ermöglicht vertikales Strecken */
    color:var(--hell);
}

.ov_hidden {
    overflow: hidden;
}

.padd5 {
    padding:5%;
}

.center {
    text-align: center;
}

.b75 {
    width:75%;
}

.raute {
    width: 25px!important;
    height: 25px!important;
    position: absolute;
    left: 50%;
    top: 50%; 
}

.raute1 {
    width: 25px!important;
    height: 25px!important;
    margin:0 auto;
}

.logo_container {
    padding:75px;
}

.logo_container img {
    margin: 0 auto;
    max-width: 250px;
    width: 100%;
}

.logo_container div {
    position:relative;
    margin-top:100px;
    color: var(--hell);
    line-height: 1.5em;
}

.toppic {
    position: relative;
}

.toppic img {
    display: block;
    width:100%;
    height:100%;
    object-fit: cover
}

.vbox {
    position:absolute;
    right:0;
    bottom:20px;
    display:flex;
    width: calc(33.333%);
    background-color: var(--hell);
    align-items: flex-end;
    line-height:1.5em;
}

.vpadd {
    padding:10px;
}

.vbox img {
    height: 70%;
}

.c_gruen {
    color:var(--gruen);
}

.box_headl {
    position:absolute;
    left:10px;
    top:10px;
    background-color: var(--gruen);
    padding:3px 12px;
    color: var(--hell);
    font-weight: bold;
    border-radius: 20px;
    font-size:0.7rem;
}

.gelassenheit {
    margin-top: 50px;
    text-align: center;
    border-radius: 20px;
    font-size: 1.2rem;
    z-index: 100;
    position: relative;
    bottom: 20%;
    right: -10%;
    width: 150%;
    padding: 10px 30px;
    background-color: var(--hell);
    color: var(--gruen);
}

.eck {
    top: 50%;
    left: -30px;
    position: absolute;
    transform: rotate(90deg);
    width: 40px;
}

.bg1 {
    position:absolute;
    width:100%;
    height:100%;
    z-index:10;
    left:0;
    top:0;
    color:var(--gruen);
    background-size: cover;
    background-image: url('../../bilder/kuchenst.png');
    background-position: 0px 0px;
    background-repeat: no-repeat;
}

.footer {
    background-color: var(--braun);
    color:var(--hell);
    align-items: flex-end;
    padding: 50px 100px;
    font-size: 1.2rem;
}

.footer .b25 img {
    width:auto;
    height:200px;
    object-fit: contain;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.menue {
    display: block !important;
    height: 50%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));
    padding: 30px;
    text-align: center;
    width: 100%;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--hell);
    transform: translateX(-50%);
    position: absolute;
    left: 50%;
    text-wrap: nowrap;
}

.menue a {
    text-decoration: none;
    font-weight: 500;
    cursor:pointer;
}

.dist {
    margin-left:30px;
    margin-right:30px;
}

.nowrap {
    text-wrap: nowrap;
}

.dick {
    font-weight:600;
}

.pc-not {
    display: none !important;
}

.pfeil-hoch {
    position: fixed;
    right: 0px;
    top: 120%; /* Initiale Position außerhalb des Sichtbereichs */
    border-radius: 100%;
    justify-content: center;
    align-items: center;
    display: flex;
    height: 50px;
    width: 50px;
    border: 1px solid var(--gruen);
    z-index: 9999;
    background-color: var(--creme);
    text-decoration: none;
    color: var(--gruen);
    font-size: 21px;
    opacity: 0; /* Versteckt den Pfeil initial */
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% {
        transform: translateX(-50%) scale(1); /* Ursprüngliche Position */
    }
    50% {
        transform: translateX(-50%) scale(1.1); /* Geänderte Skalierung */
    }
    100% {
        transform: translateX(-50%) scale(1); /* Rückkehr zur ursprünglichen Position */
    }
}

.pfeil-hoch.visible {
    top: 90%!important; /* Neue Position, wenn sichtbar */
    opacity: 1; /* Pfeil wird sichtbar */
}

.pfeil-hoch:hover {
    background-color: var(--gruen);
    border-color: var(--hell);
    color: var(--hell);
    font-size: 30px; /* Vergrößere die Schrift */
    transition: font-size 0.3s ease; /* Weiche Animation für Schriftgröße */
}

@media (min-width: 998px) and (max-width: 1315px) {

        .topdiv {
            flex-direction: column;
        }

        .toppic {
            width:100%;
            order: -1;
        }

        .vbox {
            display: none;
        }

        .logo_container div {
            text-align: center;
            margin-top: 50px;
        }
}

/* Mobilansicht */
@media (max-width: 999px) {
    .inhalt {
        padding: 0px;
    }

    .hamburger {
        font-size: 2rem;
        color: var(--hell);
        padding: 20px;
        right: 0px;
        width: 100vw;
        position: fixed;
        display: block;
        text-align: right;
        z-index:1001;
    }

    .menue {
        font-size: 6vw;
        background-color: var(--gruen);
        height: 100vh;
        z-index: 999;
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0px;
        left: 0;
        width: 100%;
        display: none;
        padding: 20% 0;
        opacity: 0; /* Unsichtbar zu Beginn */
        transform: translateY(-10px); /* Verschoben für den Slide-Effekt */
        transition: opacity 0.3s ease, transform 0.3s ease; /* Weiche Ein-/Ausblendung */
        pointer-events: none;
    }
    
    .menue.show {
        display: flex; /* Sichtbar, wenn die Klasse 'show' hinzugefügt wird */
        opacity: 1; /* Vollständig sichtbar */
        transform: translateY(0); /* Zurück auf die Ausgangsposition */
        pointer-events: auto;
    }    


    .menue a {
        color: white; /* Linkfarbe im Menü */
        padding: 20px;
        text-align: center;
        text-decoration: none;
        display: block;
    }

    .menue a:hover {
        background-color: #575757; /* Hover-Effekt */
    }

    .menue img {
        object-fit: contain;
        width: 60%;
        margin: 0 auto;
    }

    .logo_container div {
        text-align: center;
        margin-top: 50px;
    }

    .dist {
        display:none;
    }

    .flex{
        flex-direction: column;
    }

    .b50, .b75 {
        width:100%;
        text-align: center;
    }

    .b25 {
        flex-basis: 50%;
    }

    .mobile-not {
        display:none;
    }

    .vbox {
        width: 100%;
        position: relative;
        bottom:0px;
    }

    .vpadd img {
        max-width: 20vw;
    }

    .toppic, .veranst {
        order: -1;
    }

    .gelassenheit {
        position: relative;
        left: 0;
        width: 100%;
    }

    .eck {
        left: calc(50% - 20px);
        top: -20px;
        transform: rotate(180deg);
    }

    .pc-not {
        display: block !important;
    }
}