/*
Theme Name: FAP-Physio
Author: Jan Burzinski
Author URI: https://burzinski.de
Description: Benutzerdefiniertes Theme für die FAP-Physio-Website von Jan Burzinski
Version: 1.1
*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
}

/* ***************** NAVBAR ************************* */
body {
    margin: 0;
}

header {
    background-color: #008000;
    position: relative;
    height: 80px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    padding-left: 4em;
}

nav {
    display: grid;
    grid-template-columns: auto 2fr;
    align-items: center;
    height: 100%;
    z-index: 1000;
}

.logo {
    position: absolute;
    top: -3px;
    left: 20%;
    z-index: 1;
    padding: 0;
}

.logo img {
    max-height: 100px;
}

ul {
    grid-column: 2;
    text-align: center;
    margin: 0;
    padding: 0;
    list-style: none;
    position: relative;
}

li {
    display: inline-block;
    margin-left: 10px;
    position: relative;
}

a {
    text-decoration: none;
    color: white;
    transition: background-color 0.3s;
    position: relative;
    display: block;
}

.menu-toggle {
    display: none;
}

/* **************** NAVBAR DROPDOWN ********************* */
.dropdown-content {
    font-size: 0.9em;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    min-width: 160px;
    max-width: 200px;
    z-index: 1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

/* ****************** MOBILE MENU ******************* */
@media (max-width: 768px) {
    nav {
        display: block;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
        color: white;
        font-size: 24px;
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 1001;
    }

    ul {
        display: none;
        width: 100%;
        background-color: white;
        text-align: left;
        position: absolute;
        top: 80px;
        left: 0;
        padding: 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        z-index: 1000;
        overflow-y: auto;
        max-height: calc(100vh - 80px);
    }

    ul.show {
        display: block;
        max-height: calc(100vh - 80px);
        opacity: 1;
    }

    li {
        display: block;
        margin: 0;
        border-top: 1px solid #ddd;
    }

    li a {
        color: black;
        padding: 16px;
    }

    .dropdown-content {
        display: none;
        width: 100%;
        background-color: white;
        text-align: left;
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        background-color: white;
    }

    .dropdown-content.show {
        display: block;
    }

    .dropdown-content a {
        color: black;
        padding: 10px 16px;
    }

    .dropdown:hover .dropdown-content {
        opacity: 1;
        visibility: visible;
        transition-delay: 0s;
    }

    li.active>a {
        font-weight: bold;
        color: #12db00;
    }
}

/** ************** CAROUSEL *************** **/
.carousel-container {
    width: 100%;
    height: 57vh;
    position: relative;
    overflow: hidden;
}

.carousel-slide {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-item {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-block;
    padding: 5px 10px;
    background-color: green;
    color: white;
    opacity: 0;
    transition: opacity 1s ease;
    white-space: nowrap;
    font-size: 1.7em;
}

.carousel-item:hover .carousel-caption {
    opacity: 1;
}

.carousel-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.carousel-navigation button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 18px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.carousel-navigation button i {
    font-size: 20px;
}

.carousel-navigation button:hover {
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#prevBtn {
    left: 20px;
}

#nextBtn {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.carousel-dots .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: white;
    margin: 0 5px;
    cursor: pointer;
}

.carousel-dots .dot.active {
    background-color: #000;
}

@media (max-width: 767px) {
    .carousel-container {
        height: 50vh;
    }

    .carousel-caption {
        font-size: 1em;
        padding: 8px;
        max-width: 60%;
        white-space: normal;
        overflow: hidden;
    }
}

/* ***************** ROW OF PICTURES ************************* */
.image-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.row {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.image-container {
    position: relative;
    margin: 0 10px;
}

.image-container img {
    width: 400px;
    height: auto;
    object-fit: cover;
}

.image-caption {
    font-size: 1.5em;
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: rgba(0, 105, 0, 0.8);
    color: white;
    text-align: center;
    padding: 13px 0;
    box-sizing: border-box;
}

.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 128, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 4px;
}

.hover-overlay i {
    color: white;
    font-size: 24px;
}

.image-container:hover .hover-overlay {
    opacity: 1;
}

/* ***** ROW OF PICTURES MOBILE VIEW ****** */
@media screen and (max-width: 768px) {
    .image-grid .row {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .image-container {
        width: calc(50% - 10px);
        margin-bottom: 20px;
        position: relative;
        flex: 0 0 auto;
    }

    .image-container img {
        width: 100%;
        height: auto;
        display: block;
    }

    .image-caption {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        color: white;
        text-align: center;
        padding: 5px;
        box-sizing: border-box;
    }

    .hover-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .image-container:hover .hover-overlay {
        opacity: 1;
    }

    .hover-overlay i {
        color: white;
        font-size: 2em;
    }
}

/* ***************** WELCOME SECTION ************************* */

.green-section {
    background-color: #008000;
    padding: 50px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.green-section-content {
    max-width: 900px;
    width: 100%;
    text-align: left;
}

/* ***************** LEGAL SECTION ************************* */
.legal-section {
    background-color: #000;
    padding: 50px 20px;
    color: white;
}

.legal-section-content {
    max-width: 900px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
}

@media screen and (max-width: 768px) {
    .legal-section-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .left-buttons,
    .right-buttons {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .legal-button {
        margin: 5px;
    }

    .center-text {
        text-align: center;
    }
}

/* ***************** COPYRIGHT SECTION ************************* */
.copyright-section {
    background-color: #222222;
    padding: 5px 0;
    color: rgb(0, 116, 0);
    text-align: center;
}

.copyright-section-content {
    max-width: 900px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
}

/* ***************** BUTTONS ************************* */
.legal-button {
    border: 2px solid white;
    background-color: black;
    color: gray;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 50px;
    transition: background-color 0.3s, color 0.3s;
}

.legal-button:hover {
    background-color: rgb(83, 83, 83);
    color: black;
}

.left-buttons {
    display: flex;
    align-items: center;
    margin-right: auto;
}

.left-buttons .legal-button {
    margin-right: 5px;
}

/* ***************** CONTAINER ************************* */
.center-text {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    color: white;
}

.align-right {
    margin-left: auto;
}

/* ***************** BANNER ************************* */
.banner-container {
    position: relative;
    margin: 0;
    width: 100%;
    overflow: hidden;
}

.banner-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.banner-caption {
    font-size: 1.5em;
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: rgba(0, 105, 0, 0.8);
    color: white;
    text-align: center;
    padding: 13px 0;
    box-sizing: border-box;
}

.miau-content {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.miau-content-text {
    text-align: left;
    max-width: 800px;
}

@media (max-width: 768px) {
    .banner-container img {
        width: 200%;
        height: auto;
    }

    .banner-caption {
        font-size: 1.2em;
        padding: 10px 0;
    }
}

/* ***************** APPLICATION ************************* */
.apply-content {
    display: flex;
    justify-content: space-between;
    margin: 0 20%;
}

.apply-text {
    flex: 70%;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-box {
    flex: 30%;
    border: 1px solid #333;
    padding: 20px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .apply-content {
        flex-direction: column;
        margin: 0 10px;
    }

    .apply-text {
        flex: none;
        padding-right: 0;
        margin-bottom: 20px;
    }

    .info-box {
        flex: none;
    }
}

/* ***************** SCHLINGENTRAINING ************************* */
.st-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.st-container img {
    max-width: 450px;
    margin-right: 20px;
}

.st-container .st-text {
    font-size: 1em;
    max-width: 500px;
}

@media (max-width: 768px) {
    .st-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .st-container img {
        margin-right: 0;
        margin-bottom: 20px;
        max-width: 100%;
    }
}

/** ***************** CONTACT FORM ************************* */
.contact-content {
    display: flex;
    justify-content: space-between;
    margin: 0 10%;
    padding-top: 20px;
    padding-bottom: 30px;
}

.contact-form {
    flex: 60%;
    padding-right: 20px;
    background-color: #f4f4f4;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.contact-info {
    flex: 40%;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.submit-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #45a049;
}

.button-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .contact-content {
        flex-direction: column;
        margin: 0 5%;
    }

    .contact-form,
    .contact-info {
        flex: 100%;
        padding-right: 0;
    }

    .legal-section-content {
        flex-direction: column;
        align-items: center;
    }

    .left-buttons,
    .right-buttons {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .legal-button {
        margin: 5px;
    }

    .center-text {
        text-align: center;
    }
}

/* ***************** SCHEDULE HERZSPORT ************************* */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.schedule-table th,
.schedule-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

.schedule-table th {
    background-color: #f2f2f2;
    text-align: center;
}

.schedule-cell {
    background-color: #f45b5b;
    color: white;
}

.schedule-cell p {
    color: black;
    margin: 5px 0;
}

.schedule-cell .time {
    color: white;
    font-weight: bold;
}

.schedule-cell-title {
    color: black;
    font-weight: bold;
}

@media (max-width: 768px) {
    .schedule-table {
        width: 100%;
        border-collapse: collapse;
    }

    .schedule-table thead {
        display: none;
    }

    .schedule-table,
    .schedule-table tbody,
    .schedule-table tr,
    .schedule-table td {
        display: block;
        width: 100%;
    }

    .schedule-table tr {
        margin-bottom: 15px;
    }

    .schedule-table td {
        text-align: left;
        padding: 10px;
        position: relative;
        border-bottom: 1px solid #ddd;
    }

    .schedule-table td::before {
        content: attr(data-label);
        position: absolute;
        top: 0;
        left: 10px;
        font-weight: bold;
        white-space: nowrap;
    }

    .schedule-table td:empty {
        display: none;
    }

    .schedule-cell {
        margin-top: 20px;
    }
}

/* ***************** SCHEDULE REHASPORT ************************* */
.rehasport-schedule {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    table-layout: fixed;
}

.rehasport-schedule th,
.rehasport-schedule td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    vertical-align: top;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.rehasport-schedule th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.rehasport-schedule td:not(:empty):hover {
    background-color: #5bbcfd;
}

.rehasport-cell {
    background-color: #0099ff;
    color: white;
}

.rehasport-cell p {
    margin: 0;
    padding: 2px 0;
}

.rehasport-cell .rehasport-time {
    font-weight: bold;
}

.rehasport-closed-course {
    font-size: 0.8em;
    color: #333;
}

@media screen and (max-width: 600px) {

    .rehasport-schedule,
    .rehasport-schedule tbody,
    .rehasport-schedule tr,
    .rehasport-schedule td {
        display: block;
        width: 100%;
    }

    .rehasport-schedule thead {
        display: none;
    }

    .rehasport-schedule tr {
        margin-bottom: 15px;
        border-bottom: 2px solid #ddd;
    }

    .rehasport-schedule td {
        text-align: left;
        padding: 10px;
        position: relative;
        border: none;
        border-bottom: 1px solid #ddd;
        padding-left: 50%;
        /* Adjust padding to make space for the label */
    }

    .rehasport-schedule td:before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        top: 10px;
        font-weight: bold;
        white-space: nowrap;
        width: 45%;
        /* Ensure the label has enough space */
        text-align: left;
    }

    .rehasport-schedule td:empty {
        display: none;
    }
}

/* ***************** SCHEDULE MUSKELGYMNASTIK ************************* */
.physio-schedule {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    table-layout: fixed;
}

.physio-schedule th,
.physio-schedule td {
    border: 1px solid #ddd;
    padding: 5px;
    text-align: center;
    vertical-align: top;
    height: 60px;
    font-size: 0.9em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.physio-schedule th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.physio-schedule td:not(:empty):hover {
    background-color: #6cac6e;
}

.time-column {
    width: 60px;
    background-color: #f2f2f2;
    font-weight: bold;
}

.physio-cell {
    background-color: #4CAF50;
    color: white;
}

.physio-cell-title {
    color: black;
    font-weight: bold;
}

.physio-cell p {
    margin: 0;
    padding: 2px 0;
}

.physio-cell .physio-time {
    font-weight: bold;
    font-size: 0.85em;
}

@media screen and (max-width: 600px) {

    .physio-schedule,
    .physio-schedule tbody,
    .physio-schedule tr,
    .physio-schedule td {
        display: block;
        width: 100%;
    }

    .physio-schedule thead {
        display: none;
    }

    .physio-schedule tr {
        margin-bottom: 15px;
        border-bottom: 2px solid #ddd;
    }

    .physio-schedule td {
        text-align: right;
        /* Align text to the right */
        padding: 10px;
        position: relative;
        border: none;
        border-bottom: 1px solid #ddd;
        padding-left: 45%;
        box-sizing: border-box;
    }

    .physio-schedule td:before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        top: 10px;
        font-weight: bold;
        white-space: nowrap;
        width: 40%;
        text-align: left;
        /* Ensure label is on the left */
    }

    .physio-schedule .time-column {
        display: none;
    }

    .physio-schedule td:empty {
        display: none;
    }

    .physio-cell p {
        margin: 0;
        padding: 5px 0;
    }

    .physio-time {
        display: block;
        margin-top: 5px;
        font-size: 0.85em;
        font-weight: bold;
    }
}

/* ***************** SCHEDULE MAT ************************* */
.mat-schedule {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    table-layout: fixed;
}

.mat-schedule th,
.mat-schedule td {
    border: 1px solid #ddd;
    padding: 5px;
    text-align: center;
    vertical-align: top;
    height: 60px;
    font-size: 0.9em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.mat-schedule th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.mat-schedule td:not(:empty):hover {
    background-color: #ffeb99;
}

.mat-cell {
    background-color: #ffdd00;
    color: hi;
}

.mat-cell-title {
    font-weight: bold;
}

.mat-cell p {
    margin: 0;
    padding: 2px 0;
}

.mat-cell .mat-time {
    font-weight: bold;
    font-size: 0.85em;
    color: gray;
}

@media screen and (max-width: 900px) {

    .mat-schedule th,
    .mat-schedule td {
        font-size: 0.8em;
    }

    .mat-cell .mat-time {
        font-size: 0.75em;
    }
}

@media screen and (max-width: 600px) {

    .mat-schedule,
    .mat-schedule tbody,
    .mat-schedule tr,
    .mat-schedule td {
        display: block;
        width: 100%;
    }

    .mat-schedule thead {
        display: none;
    }

    .mat-schedule td {
        text-align: center;
        position: relative;
        padding-left: 50%;
        font-size: 0.9em;
    }

    .mat-schedule td:before {
        content: attr(data-day);
        position: absolute;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
        text-align: left;
    }

    .mat-schedule td:empty {
        display: none;
    }

    .mat-cell .mat-time {
        font-size: 0.85em;
    }
}

.toast {
    position: fixed;
    left: -300px;
    bottom: 20px;
    width: 300px;
    padding: 15px 20px;
    background-color: #333;
    color: white;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: left 0.5s ease;
    z-index: 9999;
}

.toast.show {
    left: 20px;
}

.toast-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toast.success {
    background-color: #4CAF50;
}

.toast.error {
    background-color: #F44336;
}

.toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
}