/* ================================================================================================================

    Tabs layout

    Author: Tim David Saxen, netzmal GmbH

    <!-- Container für Tabs + Select -->
    <div id="uniqueId" class="tabs2-container">
        <!-- Tabs für größere Bildschirme -->
        <div id="tabs2" class="tabs2-tabs">
            <div class="tabs2-tab active" data-target="tab1">
                <span>Tab 1</span>
            </div>
            <div class="tabs2-tab" data-target="tab2">
                <span>Tab 2</span>
            </div>
        </div>
    </div>

    <!-- Inhalte -->
    <div id="tab1" class="tabs2-site">Inhalt für Tab 1</div>
    <div id="tab2" class="tabs2-site" style="display:none;">Inhalt für Tab 2</div>
    <script>
        $(document).ready(function() {
            initTabs2('#uniqueId');
        });
    </script>

   =============================================================================================================== */

/* Container etwas zentrieren und Padding geben (optional) */
.tabs2-container {
    margin: 0 0;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
}

/* Tabs in einer Zeile anordnen */
.tabs2-tabs {
    display: block;
    white-space: nowrap;
    overflow-x: hidden;
    width:100%;
}

/* Tabs als SELECT-Box */
.tabs2-selectContainer select {
    margin-bottom: 1rem;
    width: 100%;
    font-size: 1rem;
    padding: 0.3rem;
}
.tabs2-selectContainer {
    display: none;
}

/* Einzelner Tab */
.tabs2-tab {
    display: inline-block;
    padding: 0.5rem 1rem;
    cursor: pointer;
    margin-right: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;

    border-top: 1px solid #ccc;
    border-right: 1px solid #ccc;
    border-left: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;

    background-color: #f0f0f0;
    color: #000000;
}

/* Hover-Effekt */
.tabs2-tab:hover {
    background-color: #1c94c4;
    color: #ffffff;
}

/* Aktiver Tab */
.tabs2-tab.active {
    border-top: 1px solid #ccc;
    border-right: 1px solid #ccc;
    border-left: 1px solid #ccc;
    border-bottom: 1px solid #ffffff;
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;

    background-color: #fff;
    color: #000000;
}

/* Tab-Seiten */
.tabs2-site {
    border: 1px solid #ccc;
    margin-top: -1px;
    padding: 1rem;
    min-height: 100px;
    background-color: #ffffff;
}
