/* Allgemeine Stile */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap');

html, body {
    margin: 0;
    font-family: 'Open Sans', Arial, sans-serif;
    background-color: #f3f4f6;
    color: #333;
    display: flex;
    flex-direction: column;
    /* min-height: 100vh; */
    height: 100%;
}

/* Blauer Streifen */
.blue-bar {
    background-color: #4782b8;
    height: 4px;
    width: 100%;
}

/* WeiÃŸer Streifen mit zentrierter Ãœberschrift */
.header {
    flex-direction: row-reverse;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
}

.header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* Grauer Streifen mit Untertitel */
.gray-bar {
    background-color: #3a454b;
    text-align: center;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.subtitle h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 400;
}

.biblepart {
    font-weight: bold;
    background-color: gray;
    color: white;
    padding: 10px;
    border-radius: 4px;
}

/* Inhaltsbereich */
.content-area {
    flex: 1;
    padding: 20px;
}

.content-box {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.content-box a {
    text-decoration: none;
    font-weight: bold;
    color: #4782b8;
}

/* Footer */
.footer {
    height: 40px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #3a454b;
}

/* Navigation - Hauptseite */
.navigation {
    display: flex;
    gap: 2px;
    justify-content: center;
    align-items: center; 
    width: 80%;
    margin: 0 auto;
    padding: 2px;
    box-sizing: border-box;
}

.navigation-button {
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.3s, cursor 0.3s;
}

.navigation-button.disabled {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}

.navigation form {
    margin: 0;
}

.navigation img {
    width: 52px;
    height: 44px;
    cursor: pointer;
}

/* General container styling */
.book-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px;
}

/* Styling for each row of books */
.book-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Styling for individual book items */
.book-item {
    flex: 0 0 auto;
    width: 144px;
    text-align: center;
}

/* Styling for the book buttons */
.book-button {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.book-button:hover {
    background-color: #e0e0e0;
    transform: scale(1.05);
}

.book-button:active {
    background-color: #d0d0d0;
    transform: scale(0.95);
}

.search-results-container {
    max-width: 100%;
    padding: 20px;
    margin: 0 auto;
    text-align: center;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination-nav {
    margin: 0 10px;
}

.results-list {
    list-style-type: none;
    padding: 0;
}

.results-list li {
    margin-bottom: 10px;
}

.verse1 {
    font-weight: normal;
}

.verse2 {
    font-style: normal;
}

@media (max-width: 768px) {
    .pagination {
        flex-direction: column;
    }
}

/* Dunkelmodus-Stile */
body.dark-mode {
    background-color: #1e1e1e;
    color: #f0f0f0;
}

body.dark-mode .blue-bar {
    background-color: #35608a;
}

body.dark-mode .header {
    background-color: #2e2e2e;
    color: #f0f0f0;
}

body.dark-mode .header h1 {
    color: #fff;
}

body.dark-mode .gray-bar {
    background-color: #444;
    color: #e0e0e0;
}

body.dark-mode .content-box {
    background-color: #2e2e2e;
    color: #f0f0f0;
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
}

body.dark-mode .content-box a {
    color: #ccc;
}

body.dark-mode .footer {
    background-color: #444;
}

body.dark-mode .book-button {
    background-color: #444;
    color: #f0f0f0;
    border-color: #555;
}

body.dark-mode .book-button:hover {
    background-color: #555;
}

body.dark-mode .book-button:active {
    background-color: #666;
}


/* Standard: Nur Light-Mode-Icons sichtbar */
.light-mode-icon {
    display: flex;
}

.dark-mode-icon {
    display: none;
}

/* Dark Mode: Umschalten */
body.dark-mode .light-mode-icon {
    display: none;
}

body.dark-mode .dark-mode-icon {
    display: flex;
}


/* Basis-Container für den Schalter */
.dark-mode-toggle {
/*    position: absolute; /* Fixiert den Schalter unabhängig vom restlichen Layout */
/*    top: 10px; /* Abstand vom oberen Rand */
/*    left: 10px; /* Abstand vom linken Rand */
    z-index: 1000; /* Stellt sicher, dass der Schalter über allen anderen Elementen liegt */

    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px;
}

/* Versteckter Checkbox-Input */
.dark-mode-toggle input[type="checkbox"] {
    display: none;
}

/* Label als Toggle-Schalter */
.switch {
    width: 50px;
    height: 25px;
    background-color: #4782b8;
    border-radius: 25px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Hinzufügen von Symbolen für die Modi */
.switch::before {
    content: "\2600"; /* Unicode für Sonne */
    font-size: 20px;
    color: white;
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
}

.switch::after {
    content: "\263D"; /* Unicode für weißer Halbmond */
    font-size: 20px;
    color: white;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
}

/* Rundes Element auf dem Schalter */
.switch span {
    content: "";
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 2.5px;
    left: 3px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Aktivierter Schalter */
input[type="checkbox"]:checked + .switch {
    background-color: #4782b8;
}

input[type="checkbox"]:checked + .switch span {
    transform: translateX(25px);
}


/* Button als Text */
.text-button {
    background: none;
    border: none;
    color: inherit;
    font-weight: bold;
    font-size: 0.6em;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.text-button:hover {
    text-decoration: underline;
}

/* Ausklappbarer Bereich mit flexibler Höhe */
#collapsible {
    overflow: hidden;       /* Verhindert, dass Inhalte herausragen */
    max-height: 0;          /* Anfangszustand: Versteckt */
    transition: max-height 0.5s ease; /* Sanfte Übergangsanimation */
}

#collapsible.expanded {
    max-height: 1000px;     /* Setzt eine große, aber sinnvolle Maximalhöhe */
}

