:root {
    --color-background: #ebebeb;
    --color-lightblue: #90C4F5;
    --color-darkblue: #122436;
    --color-white: #fff;
    --color-brown: #754D0B;
    --color-orange: #D9A95C;
    --color-blue: #0A4175;
    --color-cardbg: radial-gradient(circle 280px at 0% 0%, #e2e2e2, #f0efef);
    /*--color-cardbg: radial-gradient(circle 280px at 0% 0%, #444444, #2c2c2c);*/
}

@font-face {
    font-family: "Roboto";
    src: url('fonts/Roboto-Light.ttf');
    font-weight: light;
}

@font-face {
    font-family: "Roboto";
    src: url('fonts/Roboto-Medium.ttf');
    font-weight: medium;
}

@font-face {
    font-family: "Roboto";
    src: url('fonts/Roboto-Italic.ttf');
    font-style: italic;
}

@font-face {
    font-family: "Roboto";
    src: url('fonts/Roboto-Bold.ttf');
    font-weight: bold;
}

@font-face {
    font-family: "Roboto";
    src: url('fonts/Roboto-ExtraBold.ttf');
    font-weight: bold;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;   
}

body {
    background-color: var(--color-background);
    font-family: "Roboto";
}

h1 {
    display: flex;
    justify-content: center;
    text-align: center;
    color: var(--color-blue);
    font-size: 1em;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 100;
    hyphens: auto;
}

@media (max-width: 475px) {
    h1 {
        flex-direction: column;
    }
}

h2 {
    font-size: 2em;
    color: var(--color-blue);
    margin-bottom: 50px;
}

.wrapper {
    width: 100vw;
    max-width: 1500px;
    height: 100vh;
    margin: 0 auto;
}

.head {
    background: #0e233d;
    background: linear-gradient(90deg,rgba(14, 35, 61, 1) 0%, rgba(10, 65, 117, 1) 100%);
    position: absolute;
    z-index: 100;
    top: 0;
    left: 0;
    width: 100vw;
    height: 125px;
}

.logo {
    margin: 25px auto 25px;
    width: 100%;
    max-width: 175px;
}

.logo a img {
    width: 100%;
}

@media (max-width: 475px) {
    .outer {
        width: 65%;
        aspect-ratio : 1 / 1;
    }

    .logo {
        margin: 25px auto;
        width: 70%;
        max-width: 175px;
    }
}

nav {
    background-color: var(--color-background); /* Dunkler Hintergrund */
    overflow: hidden; /* Verhindert, dass Inhalte aus der Navigationsleiste herausragen */
    margin-top: 125px;
}

nav ul {
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    list-style-type: none; /* Keine Aufzählungszeichen */
    margin: 5px;
    padding: 0; /* Kein Innenabstand */
    display: flex; /* Flexbox für horizontale Anordnung */
    justify-content: center; /* Zentriert die Elemente horizontal */
}

nav ul li {
    margin: 10px 0;
}

nav ul li a {
    text-decoration: none;
    list-style: none;
    background-color: var(--color-blue);
    color: var(--color-white);
    border-radius: 5px;
    padding: 4px 8px;
    margin: 15px 5px; 
    width: 100%;   
}

nav ul li a:hover {
    background-color: transparent;
    border: solid 2px var(--color-blue);
    color: var(--color-blue);
    padding: 2px 6px;
    cursor: pointer;
    text-decoration: none;
}

.mobile {
    display: none;
    text-align: center;
    margin: 20px auto;
}

#menubutton  {
    display: none;
}

@media (max-width: 475px) {

    #menubutton {
        display: none;
    }

    /* Menü standardmäßig ausblenden */
    .nav {
        display: none;
    }

    /* Menü anzeigen, wenn Checkbox gecheckt ist */
    #menubutton:checked ~ .nav {
        display: block;
    }

    .mobile {
        display: block;
        width: 100%;
        text-align: center;
    }

    .mobile img {
        display: inline-block;
        height: 35px;
        width: 35px;
        margin-top: 100px;
    }

    nav {
        margin-top: 0;
    }

    nav ul li {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 0;
        width: 90%;
        max-width: 300px;
    }

    nav ul li a {
        text-align: center;
        padding: 10px;        
    }

    nav ul li a:hover {
        background-color: var(--color-blue);
        border: solid 2px var(--color-blue);
        color: var(--color-white);
        padding: 8px;
        cursor: pointer;
        text-decoration: none;
    }

    .references {
        display: none;
    }

}

.references {
    margin: 20px;
    text-align: center;
    color: var(--color-brown);
}

.references a {
    margin: 0 10px;
    text-align: center;
    color: var(--color-brown);
    text-decoration: none;
}

.references a:visited {
    margin: 20px;
    text-align: center;
    color: var(--color-brown);
}

.frameset {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 50px auto;
    width: 90%;
}

.cards {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    -webkit-column-count: 4;
    -moz-column-count: 4;
    column-count: 4;
    margin: 0 auto;
    width: 100%;
}

.cards div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    justify-content: space-between;
}

.cards div img {
    width: 100%;
    max-width: 350px;
}

.outer {
    width: 300px;
    height: 300px;
    border-radius: 10px;
    padding: 1px;
    position: relative;
    margin: 10px;
}

.card {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-direction: column;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.3)
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.card:hover:after, .card:hover:before {
  content: '';
  position: absolute;
  height: 100%;
  width: 100%;
  background-image: conic-gradient(from var(--angle), var(--color-background), #D9A95C);
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  z-index: -1;
  padding: 3px;
  border-radius: 20px;
  animation: 3s spin linear infinite;
}

.card:hover:before{
  filter: blur(0.25rem);
  opacity: 0.5;
}

@keyframes spin{
  from{
    --angle: 0deg;
  }
  to{
    --angle: 360deg;
  }
}

.productTitle {
    position: absolute;
    display: inline-block;
    top: 10px;
    color: var(--color-brown);
    width: 90%;
    font-weight: medium;
    font-size: 1em;
}

.aimage {
  padding: 40px;
  display: flex;
  justify-content: center;   /* horizontal */
  align-items: center;       /* vertikal */
  height: 240px;             /* feste Höhe als "Rahmen" */
}

.aimage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.price {
    position: absolute;
    bottom: 60px;
    color: var(--color-orange);
    z-index: 5;
    font-weight: bold;
    font-size: 2.5em;
    padding: 5px 8px;
}

/* Wenn KEIN Preis vorhanden ist */
.card.no-price .price { display: none; }

/* Bild darf mehr Platz nutzen, wenn kein Preis vorhanden ist */
.card.no-price .aimage img {
  max-height: 200px;     /* ggf. 190–220px testen, was am besten aussieht */
}

/* Weniger Unterluft, weil unten kein Preis sitzt */
.card.no-price .aimage {
  padding-bottom: 30px;   /* statt 40px */
}

/* Mit Preis etwas mehr Puffer, damit nichts überlappt */
.card.has-price .aimage {
  padding-bottom: 70px;   /* schafft Platz für .price (bottom:60px) + .adlogo (bottom:15px) */
}

.badge {
    position: absolute;
    bottom: 50px;
    color: var(--color-brown);
    text-transform: uppercase;
    z-index: 5;
    font-weight: light;
    font-size: 0.6em;
}

.adlogo {
    position: absolute;
    bottom: 15px;
    color: var(--color-brown);
    border: solid 2px var(--color-brown);
    border-radius: 10px;
    padding: 5px 8px;
    width: 70%;
    color: var(--color-brown);
    text-decoration: none;
    font-size: 1em;
}

.adlogo a {
    color: var(--color-brown);
    text-decoration: none;
    font-size: 1em;
}

.disclaimer {
    color: var(--color-darkgray);
    text-align: center;
    margin: 100px 0;
    font-size: 1.2em;
    margin: 150px 25px;
    font-size: 1em;
}

.disclaimer p {
    margin: 20px 0;
}

.disclaimer p a {
    color: var(--color-blue)
}

.disclaimerblock {
    text-align: justify;
}

.cookie {
  position: fixed;
  z-index: 9999;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
  background-color: var(--color-orange);
  color: var(--color-white);
  text-align: center;
}

.cookie.hidden {
  display: none;
}

#cookie > * {
  margin: 0.5em;
}

#cookie a {
    color: var(--color-white);
}

.btn {
    display: inline-block;
    margin: 20px;
    padding: 10px 50px;
    border: solid 2px #754D0B;
    border-radius: 5px;
    background-color: var(--color-brown);
    color: var(--color-white);
    font-size: 1.0em;
    font-weight: bold;
}

.btn {
    display: inline-block;
    margin: 20px;
    padding: 10px 50px;
    border: solid 2px #754D0B;
    border-radius: 5px;
    background-color: var(--color-brown);
    color: var(--color-white);
    font-size: 1.0em;
    font-weight: bold;
}

.btn:hover {
    background-color: transparent;
    color: var(--color-brown);
}

.rahmen {
    display: inline-block;
    padding: 10px 50px;
    margin: 20px;
}
  
#accept:checked ~ #cookie {
    display: none;
    pointer-events: none;
}

.abschluss {
    text-align: center;
    color: var(--color-brown);
    font-size: 0.75em;
    margin: 30px 25px 0;
}

.footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 30px auto;
    padding-bottom: 30px;
}

.footer div {
    color: var(--color-brown);
}

.footer div a {
    color: var(--color-brown)
}

.allinkl {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 25px;
}
