body, html {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
}

* {
	text-decoration: none;
	color: #000;
	border: 0 none #fff;
	box-sizing: border-box;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 12px;
	line-height: 1.5
}
* td, * th {
	text-align: left;
	line-height: 1
}

header {
    background-color: #fff;
    color: #333;
    padding: 10px 0;
}


#merchant_category {
  position: absolute;
  top: 2px;
  left: 8px;
  color: #999;
}

#merchant_category_a {
  color: #999;
}

footer {
	width: 100%;
	float: left;
	height: 50px
}

nav ul, footer ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    float: right;
    margin-top: 10px;
}

nav ul li, footer ul li {
    margin: 0 10px;
}

nav ul li a, footer ul li a {
    color: #333;
    text-decoration: none;
}

main {
    padding: 10px;
    max-width: 100%;
    margin: 10px auto;
	min-height: 100vh;
}

footer {
    background-color: #f0f0f0;
    color: #333;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    bottom: 0;
}

footer div {
	margin: 8px;
}
	
header img {
    margin: 0;
    height: 12vw;
}

header form {
	width: min-content;
	margin: -100px auto 30px auto;
}

header form > input {
  width: 300px;
  padding: 12px;
  border-radius: 8px 0 0 8px;
  box-shadow: 5px 3px 24px -21px #000 inset !important;
}

header form > button {
  padding: 12px;
  border-radius: 0 8px 8px 0;
  box-shadow: 0px 0px 2px 0px #bebebe inset;
}

.greentext {
	color: green
}
.redtext {
	color: #a11
}
.bluetext {
	color: #33b
}
.whitetext {
	color: #ccc
}
.darktext {
	color: #333
}
.silvertext {
	color: #eee
}

b {
	font-weight: bold;
	line-height: 1.2
}
h1 {
	font-weight: normal;
	font-size: 18px;
	margin: 0 0 20px 0;
	padding: 0px
}
h2 {
	font-weight: normal;
	font-size: 16px;
	margin: 0 0 20px 0;
	padding: 0px;
	line-height: 1.2
}
h3, h4 {
	font-weight: bold;
	margin: 0 0 20px 0;
	padding: 0px
}
h5, h6 {
	padding-top: 20px;
	margin-top: 20px;
	margin-bottom: 10px
}
h6 {
	clear: both;
}
.clearer {
	clear: left;
}
input, select {
	border: 0px solid #fff;
}
input[type*="text"], select {
	box-shadow: 0px 0px 2px 0px #ddd inset;
}
.right {
	float: right !important;
}
.left {
	float: left !important;
}
#headernav {
	height: 1.5rem;
	padding-left: 0;
}

#products {
            margin: auto;
}
	
#products > a {
            border: 1px solid #eee;
            margin: 10px;
            padding: 4px;
            width: min-content;
			float: left;
			color: #000;
			text-decoration: none;
			height: 360px;
			overflow: hidden;
			float: left;
			border-radius: 4px;

}
		
#products > a img {
			float: left;
            width: 200px;
            height: auto;
}

#products.details > div img {
			float: left;
			width: auto;
			height: auto;
			padding: 20px;
			max-width: 50vw;
}
#products.details > div {
            width: 97vw;
			height: inherit;
}

.btn {
    color: #FFFFFF; /* Weiß */
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 6px;
    cursor: pointer;
    border: none;
}

.green {
    background-color: #008000; /* Grün */
}

.yellow {
    background-color: #e6b800; /* Gelb */
}

.blue {
    background-color: #0066ff; /* blau */
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#loader {
  border: 16px solid #f3f3f3;
  border-radius: 50%;
  border-top: 16px solid #e0e0e0;
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
  margin: auto;
}


/* Media queries for mobile optimization */

@media screen and (max-width: 480px) { /* smartphones, portrait iPhone, portrait 480x320 phones (Android) */
    header img {
        height: 50px; /* reduce logo size */
    }
    header form {
        margin: -30px auto 10px auto; /* adjust form position */
    }
    header form input, header form button {
        padding: 8px; /* reduce input and button padding */
    }
    nav ul, footer ul {
        float: none; /* remove float */
        margin: 0 auto; /* center menu items */
    }
    nav ul li, footer ul li {
        margin: 5px; /* reduce menu item margin */
    }
    main {
        padding: 5px; /* reduce main padding */
        margin: 5px auto; /* reduce main margin */
    }
    #products a {
        width: 150px; /* reduce product width */
    }
    #products a img {
        width: 150px; /* reduce product image width */
    }
}

@media screen and (min-width: 481px) and (max-width: 768px) { /* portrait tablets, portrait iPad, landscape 800x480 phones (Android) */
    header img {
        height: 75px; /* reduce logo size */
    }
    header form {
        margin: -45px auto 20px auto; /* adjust form position */
    }
    header form input, header form button {
        padding: 10px; /* reduce input and button padding */
    }
    nav ul, footer ul {
        flex-wrap: wrap; /* wrap menu items if necessary */
    }
    nav ul li, footer ul li {
        margin: 10px; /* reduce menu item margin */
    }
    main {
        padding: 8px; /* reduce main padding */
        margin: 8px auto; /* reduce main margin */
    }
    #products a {
        width: 180px; /* reduce product width */
    }
    #products a img {
        width: 180px; /* reduce product image width */
    }
}

footer::before {
    content: "Transparenz: Alle Verlinkungen, die Sie auf unseren Produktseiten finden, sind Affiliate-Links.";
    display: block;
    float: left;
	margin: 10px;
}

#hamburger-menu {
    color: #333;
}

#menu ul ul {
    display: none;
}

#menu li > ul::before {
    content: '▶';
    cursor: pointer;
}

#menu ul {
    list-style-type: none;
}

#menu li::before {
    content: "➤";
    padding-right: 5px;
}

#menu {
	position: absolute;
    top: 0;
    left: -300px;
	width: 300px;
/*    height: 100%; */
    background: #f4f4f4;
    transition: left 0.3s ease;
    overflow: auto;
    padding: 0px;
    box-sizing: border-box;
	box-shadow: 0px 0px 16px -10px #000;
	border-right: 1px solid #ddd; 
}

#menu.show {
    left: 0;
}

#tagcloud {
	padding: 20px;
}

#tagcloud a {
    text-decoration: none;
    color: #333;
	font-size: 12px;
	background-color: #eee;
	padding: 3px;
	margin: 1px;
	float: left;
}

#startpage a.featured {
	width: 30%;
	display: inherit;
	float: left;
	margin: 1%;
}

#startpage a.featured img {
	max-width: 30vw;
	max-height: 15vw;
}
