/*
Plugin Name: Lobbyregister
*/

/* Allgemeine Container */
.lobby-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 992px) {
    .lobby-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .lobby-grid {
        grid-template-columns: 1fr;
    }
}

/* Card Design: Dunkelgrün, abgerundet, Hover-Effekt */
.lobby-card {
    border-radius: 15px;
    overflow: hidden;
    background: #1c302a; /* Wald */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    color: #f5f1e9; /* Sand als Textfarbe auf dunklem Grund */
}

.lobby-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.lobby-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 2px solid #e6fd53; /* Limette Trenner */
}

.lobby-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Textfarben: Limette */
.lobby-card-title {
    margin: 10px 0;
    font-size: 1.4rem;
    line-height: 1.2;
}

.lobby-card-title a {
    color: #e6fd53; /* Limette */
    text-decoration: none;
}

.lobby-card-title a:hover {
    text-decoration: underline;
}

.lobby-card-date {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #78a08c; /* Salbei */
    margin-bottom: 5px;
}

.lobby-card-org {
    font-weight: 600;
    color: #78a08c; /* Salbei */
    margin-bottom: 10px;
}

.lobby-card-excerpt {
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #f5f1e9; /* Sand */
}

.lobby-more-link {
    align-self: flex-start;
    background: #e6fd53; /* Limette */
    color: #1c302a; /* Wald */
    padding: 10px 20px;
    text-decoration: none !important;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: opacity 0.3s;
    margin-top: auto;
}

.lobby-more-link:hover {
    opacity: 0.8;
}

/* Filter & Suche */
.lobby-filters {
    margin-bottom: 40px;
    padding: 10px 0;
}

.lobby-filters form {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.lobby-search-box, .lobby-filter-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.lobby-filters label {
    font-weight: bold;
    color: #1c302a; /* Wald */
}

.lobby-filters input[type="text"], 
.lobby-filters select {
    padding: 12px;
    border: 2px solid #78a08c; /* Salbei */
    border-radius: 10px;
    outline: none;
    transition: border-color 0.3s;
}

.lobby-filters input[type="text"]:focus, 
.lobby-filters select:focus {
    border-color: #1c302a; /* Wald */
}

.lobby-filters button {
    background: #1c302a; /* Wald */
    color: #e6fd53; /* Limette */
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: opacity 0.3s;
}

.lobby-filters button:hover {
    opacity: 0.8;
}
/* Detailseite: Clean & Integriert */
.lobby-single-entry {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.lobby-detail-meta {
    background: #f5f1e9; /* Sandton nur noch als dezenter Info-Kasten */
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 5px solid #1c302a; /* Akzent in Waldgrün */
}

.lobby-detail-meta p {
    margin: 5px 0;
    color: #1c302a;
}

.lobby-single-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    margin-bottom: 30px;
}

.lobby-single-description {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Entfernt den globalen Sand-Hintergrund aus der alten Version */
.lobby-single-wrapper {
    background-color: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: auto !important;
}

.lobby-single {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.lobby-single-image img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 30px;
}

.lobby-single-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    text-align: left;
}

/* Versteckt den Standard-Theme-Titel und Beitrags-Meta nur bei Lobbyeinträgen */
.single-lobbyeintrag .entry-title,
.single-lobbyeintrag .post-meta,
.single-lobbyeintrag .entry-meta {
    display: none !important;
}

/* Container für die gesamte Spezialseite */
.lobby-custom-page-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Den Standard-Titel des Themes komplett unterdrücken, falls Weg 3 nicht reicht */
.single-lobbyeintrag header.entry-header,
.single-lobbyeintrag .post-metadata {
    display: none !important;
}

.lobby-single-image {
    flex: 1;
    min-width: 300px;
}

.lobby-detail-meta {
    flex: 1;
    min-width: 300px;
    background: #f5f1e9;
    padding: 25px;
    border-radius: 15px;
    border-left: 6px solid #e6fd53; /* Deine Limette als Akzent */
}


/* Redesign Detailseite */
.lobby-detail-wrapper {
    max-width: 1000px;
    margin: 40px auto;
    font-family: sans-serif;
    color: #1c302a;
}

.lobby-detail-header {
    display: flex;
    gap: 30px;
    align-items: stretch;
    margin-bottom: 40px;
}

.lobby-header-image {
    flex: 0 0 40%; /* Bild nimmt 40% ein */
}

.lobby-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    display: block;
}

.lobby-header-info {
    flex: 1;
    background: #f5f1e9; /* Dezenter Sandton */
    padding: 30px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 8px solid #e6fd53; /* Limette-Akzent */
}

.lobby-header-info h2 {
    margin: 0 0 20px 0;
    font-size: 2rem;
    color: #1c302a;
}

.lobby-info-grid {
    display: grid;
    gap: 15px;
}

.info-item {
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(28, 48, 42, 0.1);
    padding-bottom: 5px;
}

.lobby-detail-description {
    padding: 20px 0;
    line-height: 1.8;
    font-size: 1.1rem;
}

.lobby-detail-description h3 {
    border-bottom: 2px solid #1c302a;
    display: inline-block;
    margin-bottom: 20px;
}

/* Verstecke Theme-Elemente (WICHTIG gegen das "Da oben") */
.single-lobbyeintrag .entry-title,
.single-lobbyeintrag .post-meta,
.single-lobbyeintrag .et_post_meta_wrapper {
    display: none !important;
}

/* Responsive für Handy */
@media (max-width: 768px) {
    .lobby-detail-header {
        flex-direction: column;
    }
    .lobby-header-image {
        flex: none;
        width: 100%;
    }
}