:root {
    --my-white: #fbfbfb;
    --my-main: null; /* will be filled dynamically */
    --my-dark-grey: #333;
    --my-normal-grey: #777;
    --my-light-grey: #ccc;
    --my-green: #43a84f;
    --my-red: #c92c2c;
}

html {
    background: linear-gradient(to right, var(--my-main), var(--my-dark-grey) 30%, var(--my-dark-grey) 70%, var(--my-main) 100%);

    /* leave space for margin on top and on bottom (each 1 rem) */
    height: calc(100% - 2rem);
}

/* Fixing the bg appearing when scrolling on small devices */
@media (max-width: 64.5rem) {
    html {
        background: var(--my-white);
    }
}
@media (min-width: 64.5rem) {
    html {
        /* fixes scrollbar jumping. See https://codepen.io/elstgav/pen/myEJNv. Do this only for bigger devices, as for smaller the margin troubles other things! */
        margin-left: calc(100vw - 100%); 
    }
}

#header {
    height: 6.5rem;
}

body {
    background: inherit;
    
    /* use full vertical content on small content pages */
    min-height: 100%; 
    height: 100%;
}

#inner-body {
    width: 100%;
    border: 1px solid #888;
    overflow: hidden;

    /* Because of html tags height, we have space for 1 rem top and 1 rem bottom */

    /* use full vertical content on small content pages */
    min-height: 100%; 
    /* important for footer! */
    position: relative; 

    font-size: 0.94rem;
    line-height: 1.5;
    font-family: verdana, sans-serif;

    background-color: var(--my-white);
}

/* Only provide rounded corners and background when having enough space:
    62.5rem (1000px) + 1 rem on each side */
@media (min-width: 64.5rem) {
    #inner-body {
        border-radius: 1rem;
        width: 62.5rem;
        margin: 1rem 0;
    }
}

.logo {
    position: absolute; 
    right: 2rem; 
    top: .5rem; 
    z-index: 200; 
    pointer-events: none;

    width: 85%;
}
@media (min-width: 400px) {
    .logo {
        width: 80%;
    }
}
@media (min-width: 520px) {
    .logo {
        width: 300px;
    }
}
@media (min-width: 650px) {
    .logo {
        width: 400px;
    }
}
@media (min-width: 820px) {
    .logo {
        width: 565px;
    }
}
.meta-info {
    margin: 15px 0 0 20px;
}
.unit-info {
    margin-top: 12px;
}
.flags {
    margin-top: 5px;
}
@media (max-width: 519px) {
    .meta-info {
        margin-top: 7rem;
    }
    .unit-info {
        float: right;
        margin-top: -20px;
        margin-right: 20px;
    }
    #header {
        height: 4.5rem;
    }
}
[flag-lang] {
    cursor: pointer;
}
.chosen-flag {
    border: 3px solid var(--my-main);
}


.navbar {
    background: linear-gradient(to right, var(--my-light-grey), var(--my-light-grey) 40%, var(--my-white) 56%);
    padding: .5rem 5px;
}
@media (max-width: 991px) {
    .navbar {
        background-color: var(--my-light-grey) !important;
        background: linear-gradient(to right, var(--my-light-grey), var(--my-light-grey) 15%, var(--my-white) 30%);
    }
}
@media (max-width: 699px) {
    .navbar {
        background-color: var(--my-light-grey) !important;
        background: linear-gradient(to right, var(--my-light-grey), var(--my-light-grey) 15%, var(--my-white) 40%);
    }
}
@media (max-width: 580px) {
    .navbar {
        background-color: var(--my-light-grey) !important;
        background: linear-gradient(to right, var(--my-light-grey), var(--my-light-grey) 15%, var(--my-white) 50%);
    }
}
@media (max-width: 450px) {
    .navbar {
        background-color: var(--my-light-grey) !important;
        background: linear-gradient(to right, var(--my-light-grey), var(--my-light-grey) 15%, var(--my-white) 80%);
    }
}

.nav-link {
    color: var(--my-normal-grey) !important;
}
.nav-link.active {
    /* text-shadow: -1px 0px #000, 0px 1px #000, 1px 0px #000, 0px -1px #000; */ /* Sah mit hellblau besser aus, aber mit green und red nicht mehr! */
    color: var(--my-main) !important;
}
#my-navbar {
    font-size: 1.2rem; 
    font-weight: 700;
}
.nav-link:hover {
    color: #000 !important;
    text-decoration: underline;
}
.nav-link.active:hover {
    color: var(--my-main) !important;
    text-decoration: none;
}
.nav-item {
    margin-left: 1.5rem;
    width: fit-content;
    padding: 0 !important;
    line-height: 40px;
}
.nav-item i {
    transform: rotate(-45deg);
    border: solid var(--my-dark-grey);
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 3px;
    position: relative;
    top: -2px;
    left: -8px;
}
.navbar-toggler {
    padding: 0 !important;
}
#navigation-button {
    color: var(--my-dark-grey); 
    font-size: 24px; 
    display: block; 
    min-height: 40px; 
    padding-top: 8px;
    font-weight: bold;
    margin-left: .7rem;
}

.linked {
    color: var(--my-main); 
    text-decoration: underline !important;
    font-weight:bold;
}
.linked:hover {
    color: var(--my-main); 
    cursor: pointer;
}
make-bold {
    font-weight: bold;
/*    display: */
}

.tab-pane {
    margin-top: 2rem;   
}

.spacer-xs {
    margin-top: 0.5rem; 
    display: block;
}
.spacer-sm {
    margin-top: 1rem; 
    display: block;
}
.spacer-md {
    margin-top: 1.5rem; 
    display: block;
}
.spacer-lg {
    margin-top: 3rem; 
    display: block;
}

[hr-right] { 
    margin: 10px 0;
    height: 1px;
    background: linear-gradient(to left, var(--my-normal-grey), var(--my-white) 70%);
    margin: 0.75rem 0; 
}
[hr-left] { 
    margin: 10px 0;
    height: 1px;
    background: linear-gradient(to right, var(--my-normal-grey), var(--my-white) 70%);
    margin: 0.75rem 0; 
}
[hr-mid] { 
    margin: 10px 0;
    height: 1px;
    background: linear-gradient(to right, var(--my-white) 5%, var(--my-normal-grey), var(--my-white) 95%);
    margin: 0.75rem 0; 
}

.tab-content {
    margin-bottom: 5rem; /* for the footer */
}
footer {
    width: 100%;
    background-color: var(--my-light-grey);
    position: absolute;
    bottom: -1rem;
}
footer span {
    font-weight: 800;
}
.footer-first {
    text-align: left;
}
.footer-second {
    text-align: right;
    white-space: nowrap;
}
.footer-second span {
    padding-right: 20px;
}
@media (max-width: 770px) {
    .footer-second span {
        padding-right: 10px;
    }
}
@media (max-width: 600px) {
    .footer-first {
        text-align: center;
    }
    .footer-second {
        text-align: center;
    }
    .tab-content {
        margin-bottom: 6.5rem; /* for the footer */
    }
}

.pricing-examples {
    margin-top: 1rem;
    list-style-type: none;
    padding-left: 0;
}
.pricing-examples li {
    margin-top: .5rem;
}

strong {
    text-align: center;
    font-size: 1.2rem;
}

div {
    text-align: justify;
}

ul {
    margin-bottom: 0;
}
li {
    margin-bottom: .1rem;
}

.gb-table {
    text-align: left;
    width: 100%;
    margin: 0.75rem 0;
    table-layout: auto; 
}
.gb-table tr:nth-child(odd) {
   background: rgba(0, 0, 0, .05);
}
.gb-table td:nth-child(odd) {
    padding-left: .5rem;
}
.gb-table td:nth-child(even) {
    padding-right: .5rem;
}

.modal-backdrop.show {
    opacity: 0.7;
}

.row {
    margin: 0 0 1rem 0;
}

img {
    border-radius: .25rem;
}
.modal img {
    border-radius: 0;
}

.thumbnails-grid {
    display: grid; 
    grid-gap: .5rem;
    margin: 0 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 460px) { /* same as JS! */
    .thumbnails-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-gap: .66rem;
    }
}
@media (min-width: 768px) {
    .thumbnails-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-gap: .75rem;
    }
}

[data-toggle~="collapse"] {
    cursor: pointer;
}

.equip-tables {
    padding: 0 15px;
    display: grid; 
    grid-gap: 0;
    margin: 0 1rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    width: 80%;
    margin: 0 auto;
}
@media (min-width: 700px) {
    .equip-tables {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-gap: 3rem;
        width: 100%;
    }
}
@media (min-width: 930px) {
    .equip-tables {
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* normally repeat 3 when peripherie is available!! */
        grid-gap: 1.75rem;
        width: 100%;
    }
}
.equip-tables td:nth-child(2) {
    font-weight: bold;
}


/*  --- Calculation --- */
.prices-overview ul {
    padding-left: 25px;
}
.discounts-popover-table {
    padding-left: 25px;
}

#calc-form input {
    margin-bottom: .5rem;
    display: block;
    width: 180px;
}
@media (min-width: 690px) {
    #calc-form input {
        width: 260px;
    }
}
.form-control[readonly] {
    background-color: #fff;
}

#calc-form {
    justify-self: center;
    margin: 0 calc(50% - 90px); /* half of size of input */
}
@media (min-width: 690px) {
    #calc-form {
        justify-self: start;
        margin: 0 calc(50% - 130px); /* half of size of input */
    }
}

#calc-form .minimum {
    font-size: 12px;
    font-style: italic;
    display: block;
}

#price-calc {
    margin: 0 auto;
}

.price-calc-grid {
    display: grid; 
    grid-gap: 1.5rem;
    
    grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 690px) {
    .price-calc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


#calc-result {
    justify-self: center;
    display: none; 
    padding-left: 0;
}

#calc-result td:nth-child(1) {
    padding-right: 10px;
}
#calc-result td:nth-child(2) {
    font-weight: bold;
}
#calc-total-price {
    text-decoration: underline;
    text-decoration-style: double;
}

.imprint ul {
    list-style-type: none;
    padding-left: 1rem;
    font-weight: bold;
    text-align: left;
}
.data-privacy h4 {
    margin-top: 20px;
}

.modal-image-close-div button {
    background-color: var(--my-main); 
    opacity: 1;
    position: absolute; 
    top: 0;
    right: 0;
    outline: none;
}
.modal-image-close-div button:hover { 
    opacity: 1;
}

.modal-image-close-div button {
    padding: 6px 8px 10px 10px;
}
@media (max-width: 500px) {
    .modal-image-close-div button {
        padding: 3px 4px 7px 6px;
        font-size: 18px;
    }
}
.modal-dialog-centered {
    margin: 0.5rem auto;
    background-color: transparent; 
    border: 0; 
}

.image-explanation-text {
    color: var(--my-dark-grey);
    background-color: var(--my-main);
    border-radius: 0 0 6px 6px;
    padding: 1px 5px;
    width: 90vw;
    max-width: max-content;
}
@media (max-width: 400px) {
    .image-explanation-text {
        width: 80vw;
    }
}

.image-border {
    border: 2px var(--my-main) solid;
    border-radius: .25rem;
}
@media (min-width: 900px) {
    .image-border {
        border-width: 4px;
    }
}

.maximized-image {
    max-width: calc(100vw - 1.5rem);
    max-height: calc(100vh - 3rem);
    width: auto; 
    min-height: 0;
}

.email {
    display: inline-block; 
    width: 100%;
}

.prepage {
    margin: 10% auto;
    min-width: 300px;
    width: 70%;
    text-align: center;
    background-color: var(--my-light-grey);
    padding: 70px;
    border-radius: 20px;
}
.prepage h3 {
    text-align: center;
}

.notification-content h2 {
    text-align: initial;
    margin-right: 2rem;
}
.notification-content {
    padding: 1rem;
    margin: 2rem auto;
    background-color: var(--my-white);
    max-width: calc(100vw - 2rem); 
}
@media (min-width: 800px) {
    .notification-content {
        padding: 2rem;
        margin: 4rem auto;
        max-width: 700px;
    }
}

a:hover, a:visited, a:link, a:active {
    text-decoration: none;
}
b {
    color: black;
}
h3 {
    margin: 0 0 2rem 1rem;
    text-align: left;
}
h4 {
    font-size: inherit;
    font-size: 14pt;
    font-weight: bold;
}
h5 {
    font-size: 0.9rem;
    font-weight: bold;
    font-style: italic;
}

.gb-date-picker {
    padding-left: 0.75rem;
}

.calc-strikethrough {
    text-decoration: line-through;
}

#change-unit-content {
    margin-left: auto;
    margin-right: auto;
}
#change-unit-modal select {
    margin-top: 10px;
    width: 70%;
    display: inline-block;
}
.unit-list-element {
    outline-width: 1px;
    outline-style: solid;
    cursor: pointer;
}
.unit-list-element.selected {
    outline-width: 4px; 
}
.list-image {
    flex: .3;
}
.list-text {
    flex: .7;
    margin: 10px 10px 0px 11px;
}

.units-icon-row {
    margin: -28px 6px 4px 0;
    float: right;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.unit-icon svg {
    vertical-align:top;
    width: 16px; 
    margin-left: 15px;
}
.unit-icon img {
    vertical-align:top;
    width: 16px; 
    margin-left: 15px;
}
@media (max-width: 700px) {
    .units-icon-row {
        margin-top: 0;
    }
}
@media (max-width: 380px) {
    .unit-icon {
        width: 50%;
        right: -19%;
        position: relative;
    }
}


/* Bootstrap custimizations */
.btn-primary,
.btn-primary:hover,
.btn-primary:disabled,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:visited,
.btn-primary:focus {
    background-color: var(--my-main);
    border-color: var(--my-main);
    /* Deactivate Bootstraps annyoing glow effects */
    box-shadow: none !important;
    outline: 0px !important;
}

.footer-icons {
    vertical-align: top; 
    margin-top: 3px;
    margin-left: 5px;
}