/*
Theme Name: Code Blog Child
Theme URI: https://example.com/
Description: Child Theme für Code Blog
Author: Dein Name
Author URI: https://example.com/
Template: code-blog
Version: 1.0
*/

/* Eigene CSS-Anpassungen */
:root {
    --primary-color: #0a8f3d;    /* Vereinsgrün */
    --secondary-color: #064d21;
    --accent-color: #f5c400;
}
a,
a:visited {
    color: var(--primary-color);
}

button,
input[type="submit"],
.read-more {
    background-color: var(--primary-color);
}

.site-header {
    background-color: var(--sv-green);
}

.site-title a,
.site-description {
    color: #ffffff;
}

.site-title a:hover {
    color: var(--sv-accent);
}
.main-navigation a {
    color: #ffffff;
    font-weight: 600;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--sv-accent);
}
/* -------------------------------------------*/
/* Unnötiges Code-Blog-CSS entschärfen*/
/* -------------------------------------------*/
/* -------------------------------------------*/
/* -------------------------------------------*/
/* Blog-Meta ausblenden */
.entry-meta,
.comments-area,
.tags-links {
    display: none;
}

/* Übertriebene Rahmen entfernen */
.entry-content,
.post-thumbnail {
    box-shadow: none;
    border: none;
}

/* =========================
   Basis Layout
========================= */

body {
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #222;
}

/* Content-Breite etwas ruhiger */
.container,
.wrap {
    max-width: 1200px;
}


/* ------------------------------------
aus dem Parent-CSS zuäczlich eingefügt
---------------------------------------*/
/* Wrapper */
.standbelegung-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Tabelle */
.standbelegung-tabelle {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

/* Tabellenkopf */
.standbelegung-tabelle thead th {
    background: #009600;
    color: #ffffff;
    padding: 12px;
    text-align: left;
    font-size: 15px;
}

/* Tabellenzeilen */
.standbelegung-tabelle tbody td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

/* Datum hervorheben */
.stand-datum {
    font-weight: bold;
    color: #2a7ae2;
    white-space: nowrap;
}

/* Zeit */
.stand-zeit {
    color: #555;
    white-space: nowrap;
}

/* Termin-Link */
.stand-termin a {
    color: #2a7ae2;
    text-decoration: none;
    font-weight: 500;
}

.stand-termin a:hover {
    text-decoration: underline;
}

/* ???? Mobile Optimierung */
@media (max-width: 768px) {

    .standbelegung-tabelle thead {
        display: none;
    }

    .standbelegung-tabelle,
    .standbelegung-tabelle tbody,
    .standbelegung-tabelle tr,
    .standbelegung-tabelle td {
        display: block;
        width: 100%;
    }

    .standbelegung-tabelle tr {
        margin-bottom: 15px;
        background: #f7f7f7;
        padding: 12px;
        border-left: 5px solid #2a7ae2;
    }

    .standbelegung-tabelle td {
        border: none;
        padding: 6px 0;
    }

    .stand-datum {
        font-size: 16px;
    }
}
/* Termin-Ersteller */
.stand-ersteller {
    margin-top: 4px;
    font-size: 13px;
    color: #777;
}
.standbelegung-tabelle tbody tr:nth-child(odd) {
    background-color: #f5f7fa;
}

.standbelegung-tabelle tbody tr:nth-child(even) {
    background-color: #ffffff;
}
/* Veranstaltungsseite */
/* */
/* */
//* =========================================================
   EVENTS MANAGER – FEINSCHLIFF VERANSTALTUNGSSEITE
   ========================================================= */

/* ---------------------------------------------------------
   Titel + Thumbnail (Thumbnail links)
--------------------------------------------------------- */
.em-event {
    display: block;
}

.em-event-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.4rem;
}

/* Thumbnail links neben Titel */
.em-event-title img,
.em-event-thumbnail img {
    width: 55px;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

/* ---------------------------------------------------------
   Datum | Uhrzeit | Ort nebeneinander
--------------------------------------------------------- */
.em-event-when,
.em-event-where {
    display: inline;
}

.em-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.em-event-meta span,
.em-event-meta div {
    white-space: nowrap;
}

/* ---------------------------------------------------------
   Kategorien – nebeneinander, max. 2 Zeilen
--------------------------------------------------------- */
.em-event-categories {
    margin-bottom: 0.75rem;
}

.em-event-categories ul {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.4rem 0.8rem;
    margin: 0;
    padding: 0;
    list-style: none;
    max-height: calc(2 * 1.6em); /* max. zwei Zeilen */
    overflow: hidden;
}

.em-event-categories ul li {
    display: inline-flex !important;
    align-items: center;
    white-space: nowrap;
}

.em-event-categories ul li a {
    font-size: 0.85rem;
    white-space: nowrap;
    text-decoration: none;
    padding: 0.2em 0.5em;
    background: #f5f5f5;
    border-radius: 3px;
}

/* Trenner zwischen Kategorien */
.em-event-categories ul li:not(:last-child)::after {
    content: "•";
    margin-left: 0.6rem;
    color: #777;
}
/* ---------------------------------------------------------
   Abstand + Trennlinie zwischen Terminen
--------------------------------------------------------- */
.em-event {
    padding-bottom: 2.5rem;
    margin-bottom: 3.5rem;
    border-bottom: 1px solid #dcdcdc;
}

.em-event:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* ---------------------------------------------------------
   Mobile Anpassungen
--------------------------------------------------------- */
@media (max-width: 600px) {

    .em-event-title {
        align-items: flex-start;
    }

    .em-event-title img,
    .em-event-thumbnail img {
        width: 45px;
    }

    .em-event-meta {
        gap: 0.6rem 1rem;
    }
}
/* ----------------------------------------------
Ende des Blocks aus dem Theme
-------------------------------------------------*/

/* ----------------------------------------------
Neue Eingangsseite "Aktuelles"
-------------------------------------------------*/

:root{
  --svb-green:#02AC4F;
  --svb-green-dark:#0C511F;
  --svb-deep:#024B1A;
  --svb-gold:#DDAA04;
  --svb-bg:#FCFCFC;
  --svb-text:#1F2A1F;
  --svb-muted:#6B756B;
  --svb-line:#E7EDE7;
}

.svb-home-news{margin:18px 0;}
.svb-news-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:12px;}
.svb-news-head h2{margin:0;font-size:1.35rem;letter-spacing:.2px;}
.svb-all{color:var(--svb-green-dark);text-decoration:none;font-weight:600;}
.svb-all:hover{color:var(--svb-green);}

.svb-card{background:var(--svb-bg);border:1px solid var(--svb-line);border-radius:14px;overflow:hidden;margin-bottom:14px;}
.svb-card:hover{border-color:#d7e2d7}

.svb-card__media{display:block;position:relative;aspect-ratio:16/7;overflow:hidden;}
.svb-card__media img{width:100%;height:100%;object-fit:cover;display:block;transform:scale(1.02);}
.svb-card__body{padding:12px 14px 14px 14px;}

.svb-badge{display:inline-block;padding:6px 10px;border-radius:999px;font-size:.75rem;font-weight:700;letter-spacing:.5px;text-transform:uppercase;}
.svb-badge--event{background:var(--svb-gold);color:#1a1a1a;}
.svb-badge--sport{background:var(--svb-deep);color:white;}

.svb-meta{margin-top:8px;color:var(--svb-muted);font-size:.9rem;}
.svb-title{margin:6px 0 6px 0;font-size:1.12rem;line-height:1.25;}
.svb-title a{color:var(--svb-text);text-decoration:none;}
.svb-title a:hover{color:var(--svb-green-dark);}

.svb-excerpt{margin:0 0 10px 0;color:#2d3a2d;line-height:1.45;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}

.svb-cta{display:inline-block;background:var(--svb-green);color:white;text-decoration:none;font-weight:800;
  padding:10px 12px;border-radius:10px;}
.svb-cta:hover{background:var(--svb-green-dark);}

.svb-card--row{display:flex;gap:12px;align-items:stretch;}
.svb-thumb{flex:0 0 120px;position:relative;overflow:hidden;}
.svb-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.svb-card--row .svb-card__body{padding:12px 14px 12px 0;}
.svb-cta--text{background:transparent;color:var(--svb-green-dark);padding:0;border-radius:0;}
.svb-cta--text:hover{color:var(--svb-green);}

@media (max-width:680px){
  .svb-card--row{flex-direction:column;}
  .svb-thumb{flex-basis:auto;max-height:180px;}
  .svb-card--row .svb-card__body{padding:12px 14px 14px 14px;}
}

/* ----------------------------------------------
ENDE Neue Eingangsseite "Aktuelles"
-------------------------------------------------*/
