/* Grundlegende Zurücksetzung für eine App-ähnliche Erfahrung */
body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    background-color: #000;
    /* Schwarzer Hintergrund wie gewünscht */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
    overflow-x: hidden;
    overflow-y: auto;
    /* Erlaubt vertikales Scrollen */
    font-family: sans-serif;
    padding: 50px 20px 40px;
    /* Mehr Platz oben für den fixierten Header */
    box-sizing: border-box;
}

/* Container für die Uhr, der die maximale Größe begrenzt */
.clock-container {
    position: relative;
    width: 90vw;
    height: 90vw;
    max-width: 600px;
    max-height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Alle Ebenen (Zifferblatt und Zeiger) überlagern sich */
.clock-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Erhält die Proportionen */
    pointer-events: none;
    /* Verhindert das Ziehen der Bilder */
    user-select: none;
}

/* Die Zeiger werden im Zentrum gedreht. 
   Voraussetzung: Die freigestellten Bilder sind so zentriert, 
   dass die Drehachse genau in der Mitte des Bildes liegt. */
.hand {
    transform-origin: center center;
    /* Optional: Ein leichter Übergang für glattere Sekunden-freie Updates */
    transition: transform 0.05s linear;
}

/* Styling für universelle Action Buttons */
.action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.action-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Audio Tile (Interaktive Kachel) */
.audio-tile-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
}

.audio-tile-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.audio-tile-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.audio-tile-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.audio-tile-btn:hover .audio-tile-icon {
    transform: scale(1.1);
}

.audio-tile-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.audio-title {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.audio-duration {
    font-size: 0.85rem;
    color: #bbb;
}

.audio-tile-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    margin-left: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.audio-tile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Aktions-Kacheln Dashboard */
.action-dashboard {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 90vw;
    max-width: 400px;
    margin-top: 10px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.action-kachel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

/* Neues CSS für Überschrift, Adresse, Maps Link */
.page-title {
    color: #ffffff;
    font-size: 1.8rem;
    text-align: center;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Inter', system-ui, sans-serif;
}

.address-text {
    color: #cccccc;
    font-size: 1rem;
    text-align: center;
    margin: 0;
    max-width: 90%;
    line-height: 1.5;
}

.maps-hint {
    color: #888888;
    font-size: 0.8rem;
    margin-top: 10px;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Styling für das Kirchenbild */
.church-img {
    width: 80vw;
    /* Immer 80% der Bildschirmbreite wie gewünscht */
    height: auto;
    border-radius: 24px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
}

/* Styling für den Fakten Text Container */
.facts-container {
    width: 80vw;
    color: #cccccc;
    font-size: 1rem;
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    box-sizing: border-box;
    margin-bottom: 40px;
    text-align: left;
}

/* Statischer Header */
.app-header {
    width: 100%;
    height: 70px;
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
}

.brand-logo {
    height: 40px;
    width: auto;
}

.brand-name {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    font-family: 'Inter', system-ui, sans-serif;
    letter-spacing: 1px;
}

.church-selector {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.9rem;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
    min-width: 130px;
    max-width: 15vw;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.church-selector option {
    background-color: #222;
    color: #fff;
}

.hamburger-menu {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 22px;
    width: 30px;
    padding: 0;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
}

/* Overlay Navigation */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 900;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-menu.is-open {
    display: flex;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.menu-link {
    color: #fff;
    font-size: 2rem;
    text-decoration: none;
    font-family: inherit;
    display: block;
    margin: 20px 0;
}

/* Styling für die Kacheln der "Unsere Turmuhren" Liste */
.church-tile {
    display: block;
    text-decoration: none;
    color: #ffffff;
    /* Weisse Schrift für den schwarzen Hintergrund */
    background: rgba(255, 255, 255, 0.05);
    /* Leichter Hintergrund für Kachel-Effekt */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    /* Abgerundete Ecken */
    padding: 15px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    width: 250px;
    box-sizing: border-box;
}

.church-tile:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.church-tile:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.church-tile-img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: cover;
}

.church-tile-title {
    font-weight: bold;
    font-size: 1.1rem;
    font-family: 'Inter', system-ui, sans-serif;
    margin: 0;
}

/* -------------------------------------
   Startseite (index.html) Spezifisch 
-------------------------------------- */

.video-container {
    position: relative;
    width: 90vw;
    max-width: 400px;
    margin-top: 20px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    background: #000;
}

.turmzeit-video {
    width: 100%;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-button {
    font-size: 2.5rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
    padding-left: 6px; /* Optischer Ausgleich für Play-Icon */
    box-sizing: border-box;
}

.video-overlay:hover .play-button {
    transform: scale(1.1);
}

.video-caption {
    color: #aaa;
    font-size: 0.9rem;
    text-align: center;
    margin-top: -15px; /* Nähr an das Video rücken, da der Container margin hat */
    margin-bottom: 20px;
}

.justus-title {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-family: 'Inter', system-ui, sans-serif;
}

.justus-container {
    text-align: center;
    margin-top: 10px;
}

.justus-portrait {
    width: 90vw;
    max-width: 400px;
    height: auto;
    border-radius: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.church-list-section {
    text-align: center;
    margin-top: 50px;
}

.church-list-section h2 {
    color: #ffffff;
    font-family: inherit;
    margin-bottom: 10px;
}

.church-list-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
    margin-bottom: 50px;
}