/* Login-Wrapper */
.wpfc-sermon-login {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    font-family: inherit;
    margin-bottom: 4px;
}

.wpfc-sermon-login p.login-submit {
    text-align: center;
}

/* Hinweis-Text */
.wpfc-sermon-login p {
    margin: 0.4em 0;
    font-size: 1rem;
    color: #333;
}

/* Formular */
.wpfc-sermon-login form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

/* Eingabefelder */
.wpfc-sermon-login input[type="text"],
.wpfc-sermon-login input[type="password"] {
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.wpfc-sermon-login input[type="text"]:focus,
.wpfc-sermon-login input[type="password"]:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.15);
    outline: none;
}

/* Login-Button */
.wpfc-sermon-login input[type="submit"] {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    background: #0073aa;
    color: #fff;
    font-size: 1rem;
    font-weight: 300;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.wpfc-sermon-login input[type="submit"]:hover {
    background: #006799;
}

.wpfc-sermon-login input[type="submit"]:active {
    transform: scale(0.98);
}

.wpfc-sermon-login input {
    margin-bottom: 2px;
}



/* Layout Grid */
.wpfc-sermon-viewer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Sermon Tile */
.wpfc-sermon-tile {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Sermon Tile */
.wpfc-sermon-skeleton {
    min-height: 300px;
}

.wpfc-sermon-tile:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.wpfc-sermon-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, .1);
    border-top: 1px solid rgba(0, 0, 0, .1);
    padding-bottom: 8px;
    padding-top: 8px;
    padding-left: 8px;
    min-height: 4em;
    display: flex;
    font-family: 'Source Sans Pro', Arial, serif;
    color: rgb(34, 34, 34);
}

.wpfc-sermon-title span {
    margin-top: auto;
    margin-right: auto;
    margin-bottom: auto;
}

.wpfc-sermon-meta {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.wpfc-sermon-meta > div {
    margin-bottom: 3px;
}

.wpfc-sermon-audio audio {
    width: 100%;
    margin-top: 10px;
}

.wpfc-sermon-bible {
    margin-top: 10px;
    font-style: italic;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.wpfc-sermon-bible i {
    color: #888;
    font-style: normal;
    min-width: 16px;
}

/* Filter-Form - nebeneinander */
.wpfc-sermon-filter-form {
    display: flex;
    flex-wrap: wrap; /* erlaubt Umbruch auf kleinen Bildschirmen */
    gap: 20px;
    margin-bottom: 20px;
}

.wpfc-sermon-filter-form select,
.wpfc-sermon-filter-form input[type="text"] {
    flex: 1 1 22%; /* wachsen, schrumpfen, Basis ~22% */
    min-width: 150px; /* Mindestbreite, damit es nicht zu klein wird */
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Suchfeld flexibel, wächst mit */
.wpfc-sermon-filter-form input[type="text"] {
    flex-grow: 1;
    min-width: 150px;
}

/* Spinner */
.wpfc-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 0.8s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pagination */
.wpfc-sermon-pagination {
    text-align: center;
    margin-top: 20px;
}

.wpfc-sermon-pagination .page-numbers {
    display: inline-block;
    padding: 6px 10px;
    margin: 0 3px;
    background: #eee;
    cursor: pointer;
    border-radius: 3px;
}

.wpfc-sermon-pagination .page-numbers:hover {
    background: #4da4cc;
    color: #fff;
}

.wpfc-sermon-pagination .page-numbers:active:hover {
    background: #0073aa;
    color: #fff;
}

.wpfc-sermon-pagination .page-numbers.current {
    background: #0073aa;
    color: #fff;
    font-weight: bold;
}

.wpfc-sermon-pagination .dots {
    display: inline-block;
    margin: 0 5px;
    color: #999;
}

.sermon-date,
.sermon-preacher {
    font-size: 14px;
    margin-left: 8px;
    color: #666;
    display: flex;
    align-items: center;
}

.sermon-date i,
.sermon-preacher i {
    margin-right: 6px;
    color: #888;
    min-width: 16px;
}

.sermon-preacher i {
    margin-left: 1px;
}

.wpfc-sermon-header {
    margin-bottom: 8px;
}

.wpfc-sermon-bible-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 11px;
    border-radius: 12px;
    background-color: rgb(233, 244, 248);
    color: #29abe2;
    font-weight: bold;
    font-style: normal;
    font-size: 12px;
    margin-top: 4px;
    width: fit-content;
    margin-left: 4px;
}

.wpfc-sermon-bible-badges a {
    color: #29abe2 !important;
    text-decoration: none;
}

.wpfc-sermon-bible-badges a:hover {
    color: #2194c7 !important;
    text-decoration: none;
}

.wpfc-sermon-bible-badge i {
    color: #29abe2;
    min-width: 16px;
}

.wpfc-sermon-service-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 11px;
    border-radius: 12px;
    background-color: rgb(233, 244, 248);
    color: #7e57c2;
    font-weight: bold;
    font-style: normal;
    font-size: 12px;
    margin-top: 4px;
    margin-left: 4px;
    width: fit-content;
    text-decoration: none;
}

.wpfc-sermon-service-badge i {
    min-width: 16px;
    margin-right: 6px;
}

/* Responsive: bei kleiner Breite unter 768px nehmen sie 100% */
@media screen and (max-width: 768px) {
    .wpfc-sermon-filter-form select,
    .wpfc-sermon-filter-form input[type="text"] {
        flex: 1 1 100%;
        min-width: auto;
    }
}

/* Container für Filter + Suchleiste */
.sermon-filters-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
  justify-content: flex-start;
}

/* Einzelne Filter-Elemente */
.sermon-filter,
.sermon-search {
  flex: 1 1 200px; /* Flexibler Basiswert, wächst und schrumpft */
  max-width: 300px;
  min-width: 180px;
}

/* Suchfeld */
.sermon-search input[type="search"],
.sermon-search input[type="text"] {
  width: 100%;
  padding: 8px 12px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: border-color 0.3s ease;
}

.sermon-search input[type="search"]:focus,
.sermon-search input[type="text"]:focus {
  border-color: #0073aa; /* WordPress-Blau */
  outline: none;
  box-shadow: 0 0 6px rgba(0, 115, 170, 0.4);
}

/* Select-Filter */
.sermon-filter select {
  width: 100%;
  padding: 8px 12px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  transition: border-color 0.3s ease;
}

.sermon-filter select:focus {
  border-color: #0073aa;
  outline: none;
  box-shadow: 0 0 6px rgba(0, 115, 170, 0.4);
}

/* Responsive Anpassungen */
@media (max-width: 600px) {
  .sermon-filters-wrapper {
    flex-direction: column;
  }

  .sermon-filter,
  .sermon-search {
    max-width: 100%;
    min-width: auto;
  }
}

.wpfc-sermon-skeleton {
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    background: #f8f8f8;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: pulse 1.5s infinite ease-in-out;
}

.wpfc-skeleton-line {
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
}

.wpfc-skeleton-title {
    width: 80%;
    height: 18px;
}

.wpfc-skeleton-meta {
    width: 60%;
}

.wpfc-skeleton-audio {
    width: 100%;
    height: 24px;
    background: #ddd;
    border-radius: 6px;
}

@keyframes pulse {
    0% {
        background-color: #f0f0f0;
    }
    50% {
        background-color: #e0e0e0;
    }
    100% {
        background-color: #f0f0f0;
    }
}
