/* Boxen für Datenschutz */
.clear{
    clear:both;
}
.box {
    border-radius: 1em;
    -webkit-border-radius: 1em;
    -moz-border-radius: 1em;
    float: left;
    width: 23%;
    margin-right: 2%;
    margin-bottom: 10px;
    padding: 25px;
    background: #e3e3e3;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
}
.boxheader {
    font-size: 18px;
    font-weight: bold;
}
.box:last-child {
    margin-right: 0;
}
.boximage {
    margin-right: 10px;
}

/* Smartphones (portrait and landscape) ----------- */
@media only screen and (min-device-width : 320px) and (max-device-width : 480px){
    .box {
        width: 99%;
    }
    .boxheader {
        color: #007ec7;
    }
}

/* Smartphones (landscape) ----------- */
@media only screen and (min-device-width : 320px) and (max-device-width : 480px){
    .box {
        width: 99%;
    }
    .boxheader {
        color: #007ec7;
    }
}

/* Smartphones (portrait) ----------- */
@media only screen and (max-width : 320px) {
    .box {
        width: 99%;
    }
    .boxheader {
        color: #007ec7;
    }
}

/* iPads (portrait and landscape) ----------- */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {
    .box {
        width: 47%;
    }
    .boxheader {
        color: #007ec7;
    }
}

/* iPads (landscape) ----------- */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) {
    .box {
        width: 23%;
    }
    .boxheader {
        color: blue;
    }
}

/* iPads (portrait) ----------- */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) {
    .box {
        width: 47%;
    }
    .boxheader {
        color: #007ec7;
    }
}

/**********
iPad 3
**********/
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) and (-webkit-min-device-pixel-ratio : 2) {
    .box {
        width: 23%;
    }
    .boxheader {
        color: blue;
    }
}

@media only screen and (max-width : 712px) {
    .box {
        width: 98%;
    }
    .boxheader {
        color: #007ec7;
        font-size: 16px;
    }
    .box p {
        font-size: 14px;
    }
}

@media only screen and (min-width : 713px) and (max-width : 792px) {
    .box {
        width: 47%;
		min-height: 250px;
    }
    .boxheader {
        color: #007ec7;
        font-size: 15px;
    }
    .box p {
        font-size: 12px;
    }
}

@media only screen and (min-width : 793px) and (max-width : 1063px) {
    .box {
        width: 47%;
    }
    .boxheader {
        color: #007ec7;
        font-size: 16px;
    }
    .box p {
        font-size: 14px;
    }
}

@media only screen and (min-width : 1064px) and (max-width : 1223px) {
    .box {
        width: 47%;
    }
    .boxheader {
        color: #007ec7;
        font-size: 15px;
    }
    .box p {
        font-size: 12px;
    }
}

/* Desktops and laptops ----------- */
@media only screen and (min-width : 1224px) {
    .box {
        width: 47%;
    }
    .boxheader {
        color: #007ec7;
    }
}

/* Large screens ----------- */
@media only screen and (min-width : 1824px) {
    .box {
        width: 31%;
    }
    .boxheader {
        color: #007ec7;
    }
}

/**********
iPad 3
**********/
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) and (-webkit-min-device-pixel-ratio : 2) {
    .box {
        width: 23%;
    }
    .boxheader {
        color: #007ec7;
    }
}
/* Desktops and laptops ----------- */
@media only screen and (min-width : 1224px) {
    .box {
        width: 48%;
    }
    .boxheader {
        color: #007ec7;
		font-size: 16px;
	}
}

/* Large screens ----------- */
@media only screen and (min-width : 1824px) {
    .box {
        width: 48%;
		min-height: 250px;
    }
    .boxheader {
        color: #007ec7;
		font-size: 16px;
    }
	.box p {
        font-size: 13px;
    }
}

/* iPhone 4 ----------- */
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) and (orientation : landscape) and (-webkit-min-device-pixel-ratio : 2) {
    .boxheader {
        color: green;
    }
}

@media only screen and (min-device-width : 320px) and (max-device-width : 480px) and (orientation : portrait) and (-webkit-min-device-pixel-ratio : 2) {
    .boxheader {
        color: green;
    }
}

/* iPhone 5 ----------- */
@media only screen and (min-device-width: 320px) and (max-device-height: 568px) and (orientation : landscape) and (-webkit-device-pixel-ratio: 2){
    .boxheader {
        color: blue;
    }
}

@media only screen and (min-device-width: 320px) and (max-device-height: 568px) and (orientation : portrait) and (-webkit-device-pixel-ratio: 2){
    .boxheader {
        color: blue;
    }
}

/* iPhone 6, 7, 8 ----------- */
@media only screen and (min-device-width: 375px) and (max-device-height: 667px) and (orientation : landscape) and (-webkit-device-pixel-ratio: 2){
    .boxheader {
        color: blue;
    }
}

@media only screen and (min-device-width: 375px) and (max-device-height: 667px) and (orientation : portrait) and (-webkit-device-pixel-ratio: 2){
    .boxheader {
        color: blue;
    }
}

/* iPhone 6+, 7+, 8+ ----------- */
@media only screen and (min-device-width: 414px) and (max-device-height: 736px) and (orientation : landscape) and (-webkit-device-pixel-ratio: 2){
    .boxheader {
        color: blue;
    }
}

@media only screen and (min-device-width: 414px) and (max-device-height: 736px) and (orientation : portrait) and (-webkit-device-pixel-ratio: 2){
    .boxheader {
        color: blue;
    }
}

/* iPhone X ----------- */
@media only screen and (min-device-width: 375px) and (max-device-height: 812px) and (orientation : landscape) and (-webkit-device-pixel-ratio: 3){
    .boxheader {
        color: blue;
    }
}

@media only screen and (min-device-width: 375px) and (max-device-height: 812px) and (orientation : portrait) and (-webkit-device-pixel-ratio: 3){
    .boxheader {
        color: blue;
    }
}

/* iPhone XS Max, XR ----------- */
@media only screen and (min-device-width: 414px) and (max-device-height: 896px) and (orientation : landscape) and (-webkit-device-pixel-ratio: 3){
    .boxheader {
        color: blue;
    }
}

@media only screen and (min-device-width: 414px) and (max-device-height: 896px) and (orientation : portrait) and (-webkit-device-pixel-ratio: 3){
    .boxheader {
        color: blue;
    }
}

/* Samsung Galaxy S3 ----------- */
@media only screen and (min-device-width: 320px) and (max-device-height: 640px) and (orientation : landscape) and (-webkit-device-pixel-ratio: 2){
    .boxheader {
        color: blue;
    }
}

@media only screen and (min-device-width: 320px) and (max-device-height: 640px) and (orientation : portrait) and (-webkit-device-pixel-ratio: 2){
    .boxheader {
        color: blue;
    }
}

/* Samsung Galaxy S4 ----------- */
@media only screen and (min-device-width: 320px) and (max-device-height: 640px) and (orientation : landscape) and (-webkit-device-pixel-ratio: 3){
    .boxheader {
        color: green;
    }
}

@media only screen and (min-device-width: 320px) and (max-device-height: 640px) and (orientation : portrait) and (-webkit-device-pixel-ratio: 3){
    .boxheader {
        color: green;
    }
}

/* Samsung Galaxy S5 ----------- */
@media only screen and (min-device-width: 360px) and (max-device-height: 640px) and (orientation : landscape) and (-webkit-device-pixel-ratio: 3){
    .boxheader {
        color: blue;
    }
}

@media only screen and (min-device-width: 360px) and (max-device-height: 640px) and (orientation : portrait) and (-webkit-device-pixel-ratio: 3){
    .boxheader {
        color: #007ec7;
		font-size: 13px;
    }
	.box p {
        font-size: 11px;
    }
}
