﻿/*
  Datei: styles.css – zentrales Stylesheet für das Transferrad-Buchungsportal
  Beschreibung:
    Dieses Stylesheet legt das grundlegende Layout und Design für alle Seiten
    des Projekts „TransferRad“ fest – inkl. moderner Checkboxen im Button-Stil,
    Farbkennzeichnung im Kalender und responsiver Galerieansicht.

  Letzte Änderung: 14.07.2025
  Autor: yo351sch
*/

/* =======================
   GRUNDLAYOUT & SCHRIFT
======================= */
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #ffffff;
}

/* =======================
   HEADERBEREICH
======================= */
header {
    text-align: center;
    padding: 20px;
}

/* =======================
   NAVIGATIONSBEREICH
======================= */
.topnav {
    display: flex;
    justify-content: center;
    background-color: #000000;
    gap: 10px;
}

    .topnav a {
        color: #f2f2f2;
        padding: 16px 18px;
        text-decoration: none;
        font-size: 22px;
    }

        .topnav a:hover {
            background-color: #ddd;
            color: black;
        }

        .topnav a.active {
            background-color: #2e2e2e;
            color: white;
        }

/* =======================
   BANNERBEREICH
======================= */
.banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* =======================
   VIDEO-BEREICH
======================= */
.video-container {
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

    .video-container video {
        max-width: 100%;
        height: auto;
        display: block;
    }

/* =======================
   ALLGEMEINER INHALTSBEREICH
======================= */
.content {
    max-width: 900px;
    margin: 5px auto; /* vorher: 40px auto */
    padding: 20px;
    font-size: 18px;
}

    .content h2:first-child {
        margin-top: 0;
    }
.szenario-table {
    width: 100%;
    text-align: center;
    border-spacing: 20px 10px;
    margin-top: 30px;
}

    .szenario-table th {
        font-size: 20px;
        padding-bottom: 10px;
    }

    .szenario-table img.szenario-img {
        width: 100%;
        max-width: 300px;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }

/* =======================
   TEAM-TABELLE (alt)
======================= */
.team-table {
    width: 90%;
    margin: 40px auto;
    border-collapse: collapse;
    max-width: 1000px;
}

    .team-table th,
    .team-table td {
        padding: 20px;
        vertical-align: top;
        text-align: center;
    }

    .team-table img {
        width: 150px;
        height: auto;
        border-radius: 10px;
        margin-bottom: 10px;
        display: block;
    }

    .team-table th {
        font-size: 20px;
        border-bottom: 2px solid #ccc;
    }

/* =======================
   FORMULARSTYLING
======================= */
form label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

form input,
form textarea,
form select[multiple] {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    box-sizing: border-box;
}

.submit-button {
    margin-top: 20px;
    padding: 12px 24px;
    background-color: #2e2e2e;
    color: white;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

    .submit-button:hover {
        background-color: #444;
    }

/* =======================
   BUTTON-STYLE CHECKBOXEN
======================= */
.button-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

    .button-checkboxes label {
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid #ccc;
        border-radius: 5px;
        padding: 10px;
        cursor: pointer;
        background-color: #f9f9f9;
        transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    }

        .button-checkboxes label span {
            display: block;
            border-radius: 5px;
            padding: 10px;
            width: 100%;
            box-sizing: border-box;
            transition: background-color 0.2s, color 0.2s;
        }

    .button-checkboxes input[type="checkbox"] {
        display: none;
    }

        .button-checkboxes input[type="checkbox"]:checked + span {
            background-color: #28a745;
            color: #fff;
            border-color: #28a745;
        }

    .button-checkboxes label:has(input[type="checkbox"]:checked) {
        background-color: #28a745;
        color: #fff;
        border-color: #28a745;
    }

/* =======================
   FLATPICKR-TAGESFARBEN
======================= */
.flatpickr-day.frei {
    background-color: #d4edda !important;
    color: #155724 !important;
}

.flatpickr-day.gesperrt {
    background-color: #f8d7da !important;
    color: #721c24 !important;
}

/* =======================
   GALERIE-DARSTELLUNG
======================= */
.galerie {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    padding: 20px;
    max-width: 1000px;
    margin: auto;
}

    .galerie img {
        width: 100%;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    }
/* =======================
   GRAUER INFOKASTEN (Info-Box)
======================= */
.info-box {
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    line-height: 1.6;
    box-sizing: border-box;
}
/* =======================
   GRAUER VIDEO-KASTEN (Video-Box)
======================= */
.video-box {
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 8px;
    margin: 30px auto;
    max-width: 900px;
}

    .video-box video {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 5px;
    }
