body {
    margin: 0;
}

main,
footer,
header {
    font-family: Arial, Helvetica, sans-serif
}

@media (min-width: 110em) {
    main {
        width: 40%;
        margin: auto;
        margin-top: 8em;
        font-size: 1.1em;
    }

    header {
        font-size: 1.1em;
    }
}


@media (70em < width <=110em) {
    main {
        width: 55%;
        margin: auto;
        margin-top: 8em;
        font-size: 1.1em;
    }

    header {
        font-size: 1.1em;
    }
}

@media (min-width: 70em) {

    .BildKleinRechts,
    .BildKleinLinks {
        height: 8em;
    }

    .BildSehrKlein {
        height: 7em;
    }

    .BildNormalRechts,
    .BildNormalLinks {
        height: 10em;
    }

    .BildGrossRechts,
    .BildGrossLinks {
        height: 13.5em;
    }

    .BildSehrGrossRechts,
    .BildSehrGrossLinks {
        height: 24em;
    }

    h1 {
        font-size: 1.3em;
    }

    h2 {
        font-size: 1.2em;
    }

    #backToTop {
        bottom: 1em;
    }
}

@media (50em <=width <=70em) {
    main {
        width: 70%;
        margin: auto;
        margin-top: 8em;
    }

    .BildKleinRechts,
    .BildKleinLinks {
        height: 8em;
    }

    .BildSehrKlein {
        height: 7em;
    }

    .BildGrossRechts,
    .BildGrossLinks,
    .BildNormalRechts,
    .BildNormalLinks {
        height: 10em;
    }

    .BildSehrGrossRechts {
        height: 17em;
    }

    .BildSehrGrossLinks {
        height: 19em;
    }

    h1 {
        font-size: 1.3em;
    }

    h2 {
        font-size: 1.2em;
    }

    #backToTop {
        bottom: 1em;
    }
}

@media (width < 50em) {
    main {
        width: 90%;
        margin: auto;
        margin-top: 6em;
    }

    .BildKleinRechts,
    .BildKleinLinks {
        height: 5em;
    }

    .BildSehrKlein {
        height: 4em;
    }

    .BildNormalRechts,
    .BildNormalLinks {
        height: 8em;
    }

    .BildGrossRechts,
    .BildGrossLinks {
        height: 9em;
    }

    .BildSehrGrossRechts,
    .BildSehrGrossLinks {
        height: 13em;
    }

    h1 {
        font-size: 1.1em;
    }

    h2 {
        font-size: 1.0em;
    }

    #backToTop {
        bottom: 3em;
    }
}

.BildKleinRechts,
.BildNormalRechts,
.BildGrossRechts,
.BildSehrGrossRechts {
    margin-left: 0.6em;
    margin-bottom: 0.4em;
}

.BildKleinLinks,
.BildNormalLinks,
.BildGrossLinks,
.BildSehrGrossLinks {
    margin-right: 0.6em;
    margin-bottom: 0.4em;
}

.SeiteninhaltZentriert {
    text-align: center;
}

.SeiteninhaltBlock {
    text-align: justify;
}

h1 {
    text-align: center;
    font-family: Lucida Bright, serif;
    font-style: italic;
    font-weight: 700;
}

h2 {
    font-family: Lucida Bright, serif;
    color: var(--akzentfarbeFest);
    font-weight: bold;
    text-align: center;
}

h3 {
    position: relative;
    display: inline-block;
    font-weight: 400;
    font-size: 1.5em;
    padding: 0.1em 0.4em;
}

h3::after {
    content: "";
    position: absolute;
    width: 110%;
    max-width: calc(100% - 1.2em);
    height: 0.15em;
    background-color: var(--akzentfarbeFest);
    bottom: -0.1em;
    left: 0;
}

h4 {
    border-left: 3px solid var(--akzentfarbeFest);
    padding-left: 0.8em;
    margin-top: 0.8em;
    text-align: left;
    text-transform: uppercase;
}

.hinweis1 {
    margin-top: 0.8em;
    text-align: left;
    font-style: italic;
}

/* EINTRÄGE // Download-Einträge und Einträge bei Seite "Aktuelles" */

.entry-block {
    position: relative;
    margin: 3em 0 1em;
}

.entry-date-badge {
  position: absolute;
  background-color: var(--akzentfarbeFest);
  color: white;
  padding: 0.3em 0.8em;
  border-radius: 0.3em;
  font-size: 0.8em;
}

.entry-block h3, .download-block h3, .form h3 {
    font-size: 1.5em;
    text-align: left;
    padding: 0%;
    display: block;
    padding-top: 1em;
}

.entry-block h3::after, .download-block h3::after, .form h3::after {
  content: none;
}

.download-block {
    position: relative;
    margin: 3em 0 3em;
}

.download-source-badge {
  position: absolute;
  border: solid thin var(--akzentfarbeFest);
  padding: 0.3em 0.8em;
  border-radius: 0.3em;
  margin-top: -1.5em;
  font-size: 0.8em;
}

/* Aufzählungen // Linkaufzaehlung insb. bei Seite "Downloads" */

.Linkaufzaehlung a,
main a {
    transition: background-color 0.3s ease-in-out;
}

.Linkaufzaehlung a:hover,
main a:hover {
    background-color: var(--orangebackground);
}

.aufzaehlungFarbig li a {
    display: inline-block;
    text-align: left;
}

.LinkaufzaehlungListe,
.aufzaehlungFarbig li::marker {
    color: var(--akzentfarbeFest);
}

/* Dastellung Linkboxen (mit Hintergrund, Zoom beim Hover, auf Startseite */

.linkbox-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: center;
}

.linkboxlinkstyle {
  flex: 1 1 300px;
  text-decoration: none;
}

.linkbox {
  position: relative;
  height: 10em;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
  padding: 0.1em;
}

.linkbox::before {
  content: "";
  position: absolute;
  width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(0, 0, 0, 0.75) 100%);
  z-index: 1;
}

.linkbox-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  transition: transform 0.5s ease;
}

.linkbox:hover .linkbox-bg {
  transform: scale(1.04);
}

.linkbox-content {
  position: relative;
  z-index: 1;
  font-size: 1.2em;
  top: 37%;
}

/* Darstellung der Links (orangener Hintergrund, Vergrößerung beim Hover) */

.seitenlink {
    width: fit-content;
    background-color: var(--orangebackground);
    padding: 0.1em 1.5em;
    display: flex;
    justify-content: center;
    margin: auto;
    border-radius: 0.9em;
    transition: all 0.3s ease-in-out;
}

.seitenlink:hover {
    background-color: var(--akzentfarbeFest);
    transform: scale(1.03);
}

.seitenlink::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: var(--akzentfarbeFest);
    transition: width 0.3s ease-in-out;
    transform: translateX(-50%);
}

.seitenlink:hover::after {
    width: 80%;
}

/* Box mit grauem Hinergrund; ordnet sich automatisch untereinander an */

.containerboxen {
    margin: auto;
}

.containerboxen img {
    width: 100%;
    vertical-align: center;
    border-radius: 8px;
}

.flex {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 1.6em 0;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.flex div {
    flex: 1;
    min-width: 14em;
    width: auto;
    text-align: left;
}

/* Darstellung der Preis-Tabelle // Seite "Preise": */

th,
td {
    padding: 0.5em;
}

th {
    background-color: var(--akzentfarbeFest);
    text-align: center;
}

.preistabelle {
    margin: auto;
}

.tabelle-wrapper {
    overflow-x: auto;
    width: 100%;
}

/* Darstellung der Logos über Webcam-Bild // Seite "Startseite": */

.webcam-bild-logo {
    position: relative;
    display: inline-block;
    border: thin solid var(--akzentfarbeFest);
    border-radius: 6px;
    padding: 1.5%;
}

.webcam-bild-logo img.hintergrund {
    width: 100%;
}

.webcam-bild-logo img.logo1 {
    position: absolute;
    bottom: 5%;
    right: 2%;
    border-radius: 7px;
    border: thin solid var(--akzentfarbeFest);
}

.webcam-bild-logo img.logo2 {
    position: absolute;
    bottom: 28%;
    right: 2%;
    border-radius: 7px;
    border: thin solid var(--akzentfarbeFest);
}

.webcam-bild-logo img.logo3 {
    position: absolute;
    bottom: 51%;
    right: 2%;
    border-radius: 7px;
    border: thin solid var(--akzentfarbeFest);
    filter: brightness(0.82);
}

/* Darstellung der Zitate // Seite "Gästestimmen": */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1em;
}

.testimonial {
  border-radius: 0.8em;
  padding: 1em;
  position: relative;
}

.quote {
  font-style: italic;
  margin-bottom: 0.5em;
}

.author {
  font-size: 0.8em;
}

/* Felder Eingaben // Seite "Kontaktformular": */

.form-element {
    border-radius: 0.8em;
    padding: 1em;
    position: relative;
    margin-bottom: -1.5em;
}

.inputsenden:hover {
    cursor: pointer;
    background-color: var(--orangebackground);
    transform: translateY(-0.15em);
}

.inputsenden {
    border: medium solid var(--akzentfarbeFest);
    padding: 0.4em;
    font-weight: bold;
    font-size: 1em;
    transition: all 0.3s ease;
}

.inputtext {
    border-radius: 4px;
    padding: 0.3em;
    margin-bottom: 0.15em;
    margin-top: 0.15em;
}

.inputnumber, .inputtextfeld {
    border-radius: 4px;
    padding: 0.4em;
    width: 60%;
    margin-top: 0.2em;
}

/* POP-UP // Nicht standardmäßig eingebaut */

#popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 1.3em;
    z-index: 4;
    border-radius: 0.5em;
    border: thick solid var(--akzentfarbeFest);
    text-align: center;
    background-color: white;
}

#popup a {
    color: var(--gruenlightmode);
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 3;
}

details {
    border: 2px solid #777777;
    border-radius: 5px;
    margin-bottom: 0.6em;
    transition: all 0.3s ease;
    padding: 0.5em;
}

summary {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-weight: bold;
    box-sizing: border-box;
    cursor: pointer;
    position: relative;
}

summary::marker,
summary::-webkit-details-marker {
    display: none;

}

summary::before {
    content: "\2794";
    display: inline-block;
    font-size: 1.2em;
    color: var(--akzentfarbeFest);
    font-weight: normal;
    font-style: normal;
    transition: transform 0.5s ease;
    transform-origin: center;
}

/* Aufklappbare Elemente // FAQ */

summary::marker {
    font-size: 0;
}


details[open] summary::before {
    transform: rotate(90deg);
    color: var(--akzentfarbeFest);
}

details>div {
    overflow: hidden;
    max-height: 0;
    transition: 0.5s ease;
}

details[open]>div {
    max-height: 500px;
}

/* Nach-oben-Button*/

#backToTop {
    position: fixed;
    right: 1em;
    color: var(--akzentfarbeFest);
    padding: 0.1em;
    cursor: pointer;
    font-size: 1.8em;
    transition: all 0.3s ease;
    border: 0.07em solid var(--akzentfarbeFest);
    border-radius: 40%;
    display: none;
}

#backToTop:hover {
    transform: translateY(-0.15em);
}