:root {
    --page-padding: 64px;
    --menu-left: 95px;
    --menu-top: 20px;
    --menu-dropdown-offset: 40px;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    overflow-x: hidden;
}

body {
    font-family: "Open Sans", sans-serif;
    padding-left: var(--page-padding);
    padding-right: var(--page-padding);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

@font-face {
    font-family: 'Open Sans';
    src: url('fonts/OpenSans-Italic.ttf') format('ttf');
    font-weight: 300;
    font-style: normal;
}

p {
    color: #5252529e;
}

.impressum-content,
.impressum-content h1,
.impressum-content p,
.impressum-content strong,
.impressum-content a {
    color: #000 !important;
}

.impressum-content a.email-link {
    color: #0000ee !important;
}

.impressum-content a.phone-link {
    color: #0b57d0 !important;
}

.wave {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: -1;
    height: 260px;
    width: 100%;
    max-width: 100%;
    transform: none;
    object-fit: cover;
    object-position: bottom;
}

.navbar {
    position: absolute;
    top: 50px;
    left: 16px;
    padding: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

a {
    margin-right: 16px;
    color: black;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

body.stromausfall-page main {
    padding-top: 50px;
}

body.gefahr-page main {
    padding-top: 60px;
}

@media (max-width: 900px) {
    body.gefahr-page main {
        padding-top: 90px;
    }

    body.stromausfall-page main {
        padding-top: 100px;
    }

    .index-page main {
        padding-top: 90px;
    }
}

.main-image {
    padding-top: 5%;
    width: 80%;
    height: 90%;
}

.contactButton {
    color: white;
    background-color: #feb62f;
    padding: 8px 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-top: 16px;
    margin-bottom: 32px;
}

.contactButton:hover {
    text-decoration: none;
    background-color: #fbc051;
}

.AnrufenButton {
    display: inline-block;
    background-color: #feb62f;
    color: white;
    padding: 14px 20px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
}

.button-icon {
    height: 16px;
    margin-right: 4px;
}

.wave-bottom {
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: -1;
    pointer-events: none;
}

.footer {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0099ff;
    height: 50px;
    color: black;
    z-index: 1;
    flex-shrink: 0;
    width: fit-content;
    padding: 0 20px;
    margin: 20px auto 0 auto;
    border-radius: 8px;
}

.main {
    padding: 40px 40px 40px 50px;
    flex-direction: column;
    width: fit-content;
    min-width: 140px;
    z-index: 1000;
    flex: 1 0 auto;
    padding-bottom: 30px !important;
}

.main-text {
    display: block;
    margin-top: 100px;
    font-size: 18px;
    line-height: 1.6;
    color: #5252529e;
}

.input-card {
    width: 100%;
    padding: 10px;
    border: none;
    border-bottom: 2px solid #ccc;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease-in-out;
    background-color: rgb(248, 248, 248);
}

.input-card:focus {
    border-color: #007bff;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 32px;
    border: 2px solid gray;
    border-radius: 16px;
}

.button-card {
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #0099ff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, transform 0.1s ease-in-out;
}

.button-card:hover {
    background-color: #0056b3;
}

.button-card:active {
    transform: scale(0.98);
}

input[type="text"] {
    flex: 1;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1em;
}

input[type="submit"] {
    padding: 9px 16px;
    border-radius: 6px;
    border: none;
    background: #feb62f;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    font-size: 1em;
}

@media (min-width: 850px) {
    h1 {
        margin-top: 200px;
    }

    .wave {
        height: 340px;
    }

    .desktop-left-right {
        display: flex;
        z-index: 10;
    }

    .main-image {
        width: 50%;
        margin-top: 10px;
    }
}

@media (min-width: 1200px) {
    body {
        padding-left: 180px;
        padding-right: 180px;
    }

    .wave-bottom {
        bottom: 0;
    }

    .desktop-left-right {
        display: flex;
        z-index: 10;
    }

    .wave {
        height: 320px;
        object-position: bottom;
    }

    .main-image {
        width: 30%;
        margin-top: 150px;
    }

    a {
        margin-right: 16px;
    }
}

.index-page main {
    padding-top: 60px;
    padding-bottom: 50px !important;
}

main {
    position: relative;
    z-index: 5;
    flex: 1 0 auto;
    padding-bottom: 30px !important;
}

.wave,
.wave-bottom {
    pointer-events: none;
}