/* =====================================================
   Joomla Migration CSS
   Quix → TinyMCE
   Version 1.2
   ===================================================== */


/* =====================================================
   Farbdefinitionen
   ===================================================== */

:root {

    /* Vöhlin-Rottöne */
    --color-primary: #9f1d20;
    --color-primary-dark: #7a1518;
    --color-primary-light: #fbeaea;
    --color-accent: #c62828;

    /* Neutrale Farben */
    --color-background: #f8f8f8;
    --color-border: #e5e5e5;
    --color-text-muted: #666666;
    --color-table-header: #fbeaea;

    /* Schatten */
    --shadow-card: 0 4px 12px rgba(0,0,0,0.08);
}


/* =====================================================
   Allgemeine Abstände
   ===================================================== */

.info-box,
.deadline-box,
.faq-section,
.gallery-grid,
.person-grid,
.video-block {
    margin: 2rem 0;
}
/* =====================================================
   Allgemein für Bilder
   ===================================================== */
img {
    border-radius: 10px;
}
figure {
    display: inline-block;
    max-width: 100%;
    width: fit-content;
}

figcaption {
    max-width: 100%;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    text-wra*: pretty;
    overflow-wrap: anywh*re;
}

/* Featured Label entfernen*/
span.featured-article-badge,
.badge.featured-article-badge {
    display: none !important;
}

/* =====================================================
   Überschriften
   ===================================================== */

h2,
h3 {
    color: var(--color-primary);
}


/* =====================================================
   Links
   ===================================================== */

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}


/* =====================================================
   Personenkarten
   ===================================================== */

.person-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 500px));
    gap: 2rem;
}

.person-card {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-top: 5px solid var(--color-primary);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
}

.person-card img {
    width: 250px; 
    object-fit: cover;
    display: block;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.person-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.person-role {
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}


/* =====================================================
   FAQ / ehemalige Akkordeons
   ===================================================== */

.faq-section {
    margin: 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid #dddddd;
}

.faq-section summary {
    cursor: pointer;
    margin: 0;
    padding: 0.5rem 0;

    /* H4-ähnliche Darstellung */
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;

    color: var(--color-primary);
}

.faq-section summary:hover {
    text-decoration: underline;
}

.faq-section + .faq-section {
    margin-top: 0;
}

.faq-content {
    margin-top: 0.5rem;
    padding-bottom: 0.5rem;
}


/* =====================================================
   Hinweisboxen
   ===================================================== */

.info-box {
    background: var(--color-primary-light);
    border-left: 5px solid var(--color-primary);
    border-radius: 6px;
    padding: 1rem 1.25rem;
}

.info-box h3 {
    margin-top: 0;
}


/* =====================================================
   Termine & Fristen
   ===================================================== */

.deadline-box {
    background: #fff3f3;
    border-left: 5px solid var(--color-accent);
    border-radius: 6px;
    padding: 1rem 1.25rem;
}

.deadline-box h3 {
    margin-top: 0;
}
/* =====================================================
   Buttons
   ===================================================== */

/* Standard-Button */
.btn-voehlin {
    display: inline-block;
    background: var(--color-primary);
    color: #fff !important;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 600;
}

.btn-voehlin:hover {
    opacity: 0.9;
    color: #fff !important;
}


/* =====================================================
   Bildergalerien
   ===================================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    margin: 0;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.gallery-item figcaption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}


/* =====================================================
   Einzelbilder
   ===================================================== */

figure {
    margin: 1.5rem 0;
}

figure img {
    max-width: 100%;
    height: auto;
}

figcaption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}


/* =====================================================
   Videos
   ===================================================== */

.video-block video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}


/* =====================================================
   Datentabellen
   ===================================================== */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

thead {
    background: var(--color-table-header);
}

th,
td {
    border: 1px solid #dcdcdc;
    padding: 0.75rem;
    text-align: left;
}

th {
    color: var(--color-primary-dark);
    font-weight: 600;
}


/* =====================================================
   Listen
   ===================================================== */

ul,
ol {
    padding-left: 1.5rem;
}


/* =====================================================
   Responsive Darstellung
   ===================================================== */

@media (max-width: 768px) {

    .person-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

}

/* =====================================================
   Kontaktkarten Bottom
   ===================================================== */

.vg-footer-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.vg-contact-card {
    background: #fff;
    color: #333;
    border-radius: 12px;
    padding: 25px;
    min-width: 280px;
    max-width: 350px;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    flex: 1;
}

.vg-contact-card:hover {
    transform: translateY(-3px);
    transition: all .2s ease;
}

.vg-contact-card h3 {
    color: #c00000;
    margin-top: 0;
    margin-bottom: 20px;
}

.vg-contact-card p {
    color: #333;
    margin: 12px 0;
    line-height: 1.6;
}

.vg-contact-card strong {
    color: #333;
}

.vg-contact-card i {
    width: 24px;
    color: #c00000;
}

.vg-contact-card a,
.vg-contact-card a:visited {
    color: #333 !important;
    text-decoration: none;
}

.vg-contact-card a:not(.vg-button):hover,
.vg-contact-card a:not(.vg-button):focus {
    color: #c00000 !important;
    text-decoration: underline;
}

.vg-button {
    display: inline-block;
    background: #f3f4f6;
    color: #a32020 !important;
    border: 1px solid #a32020;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 600;
    transition: all .2s ease;
}

.vg-button:hover,
.vg-button:focus {
    background: #a32020;
    color: #fff !important;
    text-decoration: none !important;
}

.vg-address {
    display: inline-block;
    vertical-align: top;
}

/* =====================================================
   Weiteres
   ===================================================== */
/*kein Punkt vor dem Text-Wrapper*/
.mod-articles-items > li::marker {
    display: none !important;
    content: "" !important;
}
