/*
Theme Name:     Hydrojet
Author:         Bernd Mühlbauer
Description:    Theme für Hydrojet
Version:        1.0
License:        GNU General Public License v2 or later
License URI:    https://www.gnu.org/licenses/gpl-2.0.html
*/

* {
    padding: 0;
    margin: 0;
}

@font-face {
  font-family: "Bile";
  src: url('fonts/bile.woff2') format('woff2'), url('fonts/bile.woff') format('woff');
}

html {
    height: 100%;
}

body {
    height: 100%;
    background-color: #7b7c6a;
    color: #f1e9d9;
    font-family: "Krub", "Century Gothic";
    display: flex;
    flex-direction: column;
}

h1 {
    font-size: 5em;
    font-family: "Bile", "Times New Roman";
    color: #f1e9d9 !important;
    font-weight: initial;
    margin-bottom: 25px;
}

h2 {
    font-size: 3em;
    font-family: "Bile", "Times New Roman";
    color: #f1e9d9 !important;
    font-weight: initial;
    margin-bottom: 15px;
}

h3 {
    color: #f1e9d9 !important;
    font-weight: initial;
}

p {
    margin: 15px 0;
    font-size: 1.25em;
}

header {
    position: fixed;
    z-index: 1000;
    text-align: center;
    width: 100%;
    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    background-color: #4e5042;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .hydrojet-logo img {
    max-width: 150px;
}

header .hydrojet-logo {
    flex-grow: 1;
    flex-basis: 20%;
    text-align: center;
}

header nav a, header nav a:link, header nav a:visited {
    color: #f1e9d9;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease;
}

header nav {
    display: flex;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px;
}

header nav > div {
    flex-grow: 1;
    flex-basis: 40%;
}

header nav a:hover {
    transform: scale(1.05);
    color: #cbba9e;
}

header nav ul {
    display: flex;
    justify-content: space-evenly;
    list-style: none;
    flex-grow: 1;
}

header nav ul li.current-menu-item {
    border-bottom: 1.5px solid #f1e9d9;
}

nav .main_menu_mobile {
    display: none;
}

nav .main_menu_mobile ul {
    display: none;
}

@media (max-width: 768px) {
    nav ul.main_menu_left, nav ul.main_menu_right {
        display: none;
    }

    nav .main_menu_mobile {
        display: block;
        position: absolute;
    }

    header nav {
        padding: 10px 20px;
    }

    header .hydrojet-logo img {
        max-width: 100px;
    }

    p {
        font-size: 1em;
    }
}

.main_menu_mobile_button_container {
    height: 100%;
    width: 30px;
    cursor: pointer;
    margin-left: 15px;
}

.main_menu_mobile_button,
.main_menu_mobile_button::before,
.main_menu_mobile_button::after {
    display: block;
    background-color: #f1e9d9;
    position: absolute;
    height: 3px;
    width: 30px;
    transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 2px;
}

.main_menu_mobile_content {
    position: absolute;
    background-color: #4e5042;
    margin-top: 38px;
    margin-left: -20px;
    display: none;
    width: 300px;
}

.main_menu_mobile.visible .main_menu_mobile_content {
    display: block;
}

nav .main_menu_mobile_content ul {
    display: block;
}

nav .main_menu_mobile_content ul li {
    padding: 8px 25px;
}

nav .main_menu_mobile_content ul li:not(:last-child) {
    border-bottom: 1px solid #f1e9d9;
}

.main_menu_mobile_button::before {
    content: '';
    margin-top: -7px;
}

.main_menu_mobile_button::after {
    content: '';
    margin-top: 7px;
}

footer {
    background-color: #7b7c6a;
    font-size: 0.8em;
}

.footer-inner {
    max-width: 1140px;
    height: 200px;
    padding: 0 20px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.footer-inner img {
    max-width: 150px;
}

.footer-inner > div {
    flex-basis: 25%;
    flex-grow: 1;
}

footer i {
    font-size: 2em;
    text-decoration: none;
    margin: 0 8px;
}

footer p {
    font-size: 1em;
}

a.wp-block-button__link,
a.wp-block-button__link:link,
a.wp-block-button__link:visited,
button {
    color: #7b7c6a;
    background-color: #f1e9d9;
    border-radius: 0;
    padding: 7px 20px;
    border: 0;
    text-decoration: none;
}

a.wp-block-button__link:hover,
button:hover {
    color: #cbba9e;
}

.wp-block-group.group-inverted a.wp-block-button__link,
.wp-block-group.group-inverted a.wp-block-button__link:link,
.wp-block-group.group-inverted a.wp-block-button__link:visited,
.wp-block-group.group-inverted button {
    background-color: #7b7c6a;
    color: #f1e9d9;
}

.wp-block-group.group-inverted a.wp-block-button__link:hover,
.wp-block-group.group-inverted button:hover {
    color: #cbba9e;
}

.group-inverted a:link,
.group-inverted a:visited {
    color: #7b7c6a;
}

.group-inverted a:hover {
    color: #4e5042;
}

.wp-block-group.group-inverted h1,
.wp-block-group.group-inverted h2,
.wp-block-group.group-inverted h3,
.wp-block-group.group-inverted h4 {
    color: #7b7c6a !important;
}

input[type=submit], button {
    color: #7b7c6a;
    background-color: #f1e9d9;
    border-radius: 0;
    padding: 7px 20px;
    border: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.group-inverted input[type=submit] {
    background-color: #7b7c6a;
    color: #f1e9d9;
}

input[type=submit]:hover, button:hover {
    transform: scale(1.05);
}

.wp-block-group > div > p:first-child {
    margin-bottom: 40px;
}

.wp-block-cover__inner-container {
    max-width: 1140px;
}

.wp-block-cover p,
.wp-block-cover label {
    color: #f1e9d9;
}

article > .wp-block-group {
    padding-top: 30px;
    padding-bottom: 80px;
    padding-left: 20px;
    padding-right: 20px;
}

.wp-block-group.group-inverted {
    background-color: #f1e9d9;
    color: #7b7c6a;
}

.wp-block-group.group-secondary {
    background-color: #b4b29d;
}

.wp-block-group__inner-container {
    max-width: 1140px;
    margin: 0 auto;
}

.wp-block-column {
    padding-left: 50px;
    padding-right: 50px;
}

main a:link, main a:visited {
    text-decoration: underline;
    color: #f1e9d9;
}

main a:hover {
    color: #cbba9e;
}

main ul {
    list-style-position: inside;
}

footer a:link, footer a:visited {
    text-decoration: none;
    color: #f1e9d9;
}

footer a:hover {
    color: #cbba9e;
}

footer ul {
    list-style-type: none;
    padding: 0;
}

@media (max-width: 768px) {
    h1 {
        font-size: 3em;
    }

    h2 {
        font-size: 2em;
    }

    .wp-block-column {
        padding-left: 20px;
        padding-right: 20px;
    }

    .footer-inner {
        height: 100%;
        flex-wrap: wrap;
        text-align: center;
    }

    .footer-inner img {
        max-width: 100px;
    }

    .footer-inner > div {
        flex-basis: 100%;
        flex-grow: 1;
        margin-bottom: 13px;
    }
}

main {
    flex-grow: 1;
}

.hdj-content {
    max-width: 1140px;
    margin: 100px auto 0 auto;
    padding: 0 20px;
}

input[type=text], input[type=password], input[type=email], input[type=date], input[type=tel] {
    padding-bottom: 6px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #f1e9d9;
    color: #f1e9d9;
    outline: 0;
    width: 100%;
    box-sizing: border-box;
    cursor: text;
    -webkit-appearance: none;
    -webkit-border-radius: 0;
}

textarea {
    padding: 12px;
    background: transparent;
    border: 1px solid #f1e9d9;
    color: #f1e9d9;
    outline: 0;
    width: 100%;
    box-sizing: border-box;
    cursor: text;
    -webkit-appearance: none;
    -webkit-border-radius: 0;
    resize: none;
}

.group-inverted input[type=text],
.group-inverted input[type=password],
.group-inverted input[type=email],
.group-inverted input[type=date],
.group-inverted input[type=tel],
.group-inverted textarea {
    border-bottom: 1px solid #7b7c6a;
    color: #7b7c6a;
}

input:-webkit-autofill {
    -webkit-background-clip: text;
    -webkit-text-fill-color: #f1e9d9 !important;
}

.group-inverted input:-webkit-autofill {
    -webkit-text-fill-color: #7b7c6a !important;
}

select {
    background: transparent;
    border: 0;
    border-bottom: 1px solid #f1e9d9;
    outline: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 5px 0;
    color: #f1e9d9;
}

.group-inverted select {
    border-bottom: 1px solid #7b7c6a;
    color: #7b7c6a;
}

select option {
    color: black;
}

select option:disabled {
    color: lightgray;
}

label {
    font-weight: bold;
}

.group-inverted label {
    font-weight: normal;
}

.form-container input[type=submit] {
    margin: 20px auto;
    width: 100%;
    max-width: 300px;
}

.form-container.form-container-small {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.form-container.form-container-small input[type=submit] {
    margin-left: auto;
    margin-right: auto;
}

.form-container:has(.form-column) {
    display: flex;
    flex-wrap: wrap;
}

.form-container .form-column {
    flex-basis: 50%;
    flex-grow: 1;
    padding: 0 50px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
   .form-container .form-column {
        flex-basis: 100%;
        padding: 0 20px;
    } 
}

.form-container .form-group {
    margin-top: 10px;
    margin-bottom: 15px;
}

.form-container .input-error {
    color: #b13535;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.form-container .input-success {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.form-container .form-group .checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    user-select: none;
}

.form-container .form-group .checkbox-group label {
    font-weight: normal;
}

table {
    border-collapse: collapse;
    margin: 20px 0;
    width: 100%;
}

table td, table th {
    border: 1px #f1e9d9 solid;
    padding: 5px;
    text-align: center;
}

details {
    margin-bottom: 20px;
}

details summary {
    border-bottom: 1px solid #f1e9d9;
}

details > summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 5px;
}

details summary::-webkit-details-marker {
    display: none
}

details summary::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.2em;
    content: "\f054";
}
details[open] summary:after {
    content: "\f078";
}

.modal {
    background-color: #00000077;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: none;
}

.modalContent {
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    background-color: #f1e9d9;
    width: 50%;
    margin: 0 auto;
    border-radius: 4px;
    padding: 20px;
    margin-top: 30px;
    text-align: center;
}

.modalContent h2,
.modalContent p {
    color: #7b7c6a !important;
}

@media (max-width: 768px) {
    .modalContent {
        width: 80%;
        margin-top: 15px;
    } 

    .hdj-image img {
        width: 50px !important;
        min-width: 50px !important;
    }
}

@media (min-width: 769px) {
    .hdj-image img {
        width: 90px !important;
        min-width: 90px !important;
    }
}

.backButton {
    display: block;
    text-decoration: none !important;
    font-size: 0.8em;
    margin-bottom: 15px;
}

.backButton i {
    margin-right: 5px;
}

.tooltip {
    position: relative;
    cursor: help;
    border-bottom: 1px dotted #888;
}

.tooltip::after {
    content: attr(data-tooltip);
    white-space: pre-line;
    position: absolute;
    left: 50%;
    bottom: 125%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    opacity: 0;
    pointer-events: none;
    font-size: 0.9em;
    z-index: 100;
    transition: opacity 0.2s ease;
    max-width: 280px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    font-family: "Krub", "Century Gothic";
    text-align: left;
    font-weight: normal;
}

.tooltip:hover::after {
    opacity: 1;
}

table.noborder td,
table.noborder th {
    border: 0;
}