/*
Theme Name: Die 56er
Theme URI: https://die56er.de/
Author: Die 56er
Description: Schlankes WordPress-Theme für die Herren-Fünfziger-Vereinigung 1956/2006 Gießen.
Version: 0.9.0 
Text Domain: die56er
*/
:root {
    --blue: #073f7d;
    --blue2: #00559b;
    --light: #eaf5fc;
    --yellow: #ffd91a;
    --ink: #08376c;
    --white: #fff;
    --line: #d9e5ef;
    --max: 1180px
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #163a5c;
    background: #fff;
    line-height: 1.5
}

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

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

.wrap {
    max-width: var(--max);
    margin: auto;
    padding: 0 24px
}

.site-header {
    background: linear-gradient(90deg, #f8fcff, #eaf6fd)
}

.brand {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 108px
}

.brand img {
    width: 94px;
    height: 94px;
    object-fit: contain
}

.brand h1 {
    margin: 0;
    color: var(--blue);
    font-family: Georgia, serif;
    font-size: 52px;
    line-height: .9
}

.brand p {
    margin: 7px 0 0;
    font-family: Georgia, serif;
    color: var(--ink);
    font-size: 19px
}

.slogan {
    margin-left: auto;
    font-family: cursive;
    font-size: 32px;
    font-style: italic;
    color: var(--blue);
    transform: rotate(-3deg);
    border-bottom: 5px solid var(--yellow);
    padding: 0 12px 4px
}

.nav {
    background: linear-gradient(90deg, #063a72, #00589f)
}

.nav ul {
    max-width: var(--max);
    margin: auto;
    padding: 0 24px;
    display: flex;
    list-style: none
}

.nav a {
    display: block;
    color: white;
    padding: 14px 17px;
    font-weight: 700
}

.nav .current-menu-item>a,
.nav a:hover {
    background: rgba(255, 255, 255, .08);
    box-shadow: inset 0 -5px var(--yellow)
}

.hero {
    min-height: 390px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center
}

.hero-wrap {
    width: 100%
}

.hero-card {
    width: min(425px, 92%);
    background: rgba(255, 255, 255, .93);
    padding: 27px 30px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .13)
}

.hero-card .eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--blue)
}

.hero-card h2 {
    font: 700 58px/1 Georgia, serif;
    color: var(--blue);
    margin: 8px 0
}

.hero-card h3 {
    font: 26px Georgia, serif;
    color: var(--blue);
    margin: 0 0 12px
}

.hero-card .script {
    font: italic 31px cursive;
    color: var(--blue);
    display: inline-block;
    border-bottom: 5px solid var(--yellow);
    margin-bottom: 14px
}

.hero-card p {
    font-size: 18px
}

.btn {
    display: inline-block;
    background: var(--yellow);
    color: #073f7d;
    font-weight: 800;
    padding: 11px 20px;
    border-radius: 6px
}

.section {
    padding: 32px 0
}

.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 15px
}

.section h2 {
    font: 700 28px Georgia, serif;
    color: var(--blue);
    margin: 0 0 16px
}

.event,
.post-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 11px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 40, 80, .05)
}

.event {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 16px;
    align-items: center
}

.date {
    background: #f0f6fb;
    border-radius: 7px;
    text-align: center;
    padding: 7px;
    color: var(--blue);
    font-weight: 800;
    line-height: 1.1
}

.date span,
.date small {
    display: block
}

.date strong {
    display: block;
    font-size: 30px
}

.event h3,
.post-card h3 {
    margin: 0 0 5px;
    color: var(--blue);
    font-family: Georgia, serif
}

.meta {
    font-size: 14px;
    color: #446b8e
}

.tile-section {
    background: #f7fbfe
}

.tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px
}

.tile {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: white
}

.tile>img {
    display: block;
    width: 100%;
    height: 135px;
    object-fit: cover
}

.tile .inside {
    padding: 18px
}

.tile h3 {
    font: 700 21px Georgia, serif;
    color: var(--blue);
    margin: 0 0 7px
}

.site-footer {
    background: linear-gradient(90deg, #063a72, #00589f);
    color: white;
    padding: 24px 0;
    margin-top: 0
}

.site-footer .wrap {
    display: flex;
    justify-content: space-between;
    gap: 20px
}

.site-footer a {
    color: white
}

.content {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 24px
}

.content h1 {
    font: 700 44px Georgia, serif;
    color: var(--blue)
}

@media(max-width:800px) {
    .brand {
        min-height: 86px
    }

    .brand img {
        width: 68px;
        height: 68px
    }

    .brand h1 {
        font-size: 37px
    }

    .brand p {
        font-size: 14px
    }

    .slogan {
        display: none
    }

    .nav ul {
        overflow: auto
    }

    .nav a {
        white-space: nowrap;
        padding: 13px 11px
    }

    .hero {
        min-height: 390px
    }

    .hero-card {
        padding: 24px
    }

    .hero-card h2 {
        font-size: 46px
    }

    .hero-card h3 {
        font-size: 21px
    }

    .hero-card .script {
        font-size: 27px
    }

    .grid2,
    .tiles {
        grid-template-columns: 1fr
    }

    .site-footer .wrap {
        display: block
    }

    .tiles {
        gap: 12px
    }
}

/* v0.4 */
.year-box {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 20px;
    margin: 22px 0;
    background: #f8fbfe
}

.year-box h2 {
    margin-top: 0
}

.program-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0
}

.program-table th,
.program-table td {
    padding: 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top
}

.program-table th {
    color: var(--blue)
}

.content h2,
.content h3 {
    color: var(--blue);
    font-family: Georgia, serif
}

.content .btn {
    margin: 8px 8px 8px 0
}

.note {
    background: #fff9d9;
    border-left: 5px solid var(--yellow);
    padding: 14px 18px;
    margin: 18px 0
}

.subnav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 24px
}

.subnav a {
    background: #eef6fb;
    padding: 8px 12px;
    border-radius: 5px;
    font-weight: 700
}

.event .event-link {
    font-weight: 700;
    margin-top: 6px;
    display: inline-block
}

@media(max-width:650px) {

    .program-table,
    .program-table tbody,
    .program-table tr,
    .program-table td {
        display: block
    }

    .program-table thead {
        display: none
    }

    .program-table tr {
        border-bottom: 2px solid var(--line);
        padding: 8px 0
    }

    .program-table td {
        border: 0;
        padding: 4px 0
    }
}

/* v0.5 Jahresprogramm */
.termine-page {
    max-width: 1120px
}

.year-program {
    margin: 36px 0 48px
}

.year-program h2 {
    font-size: 2rem;
    margin-bottom: 18px
}

.program-list {
    display: grid;
    gap: 12px
}

.program-item {
    display: grid;
    grid-template-columns: 115px 1fr;
    border: 1px solid #dce5ec;
    border-radius: 10px;
    background: #fff;
    overflow: hidden
}

.program-date {
    background: #f2f7fa;
    text-align: center;
    padding: 13px 8px;
    color: #064d83;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.program-date span {
    font-weight: 700;
    font-size: .8rem
}

.program-date strong {
    font-size: 2rem;
    line-height: 1
}

.program-date small {
    font-weight: 700;
    margin-top: 4px
}

.program-info {
    padding: 16px 20px
}

.program-info h3 {
    margin: 0 0 5px;
    font-size: 1.25rem;
    color: #064d83
}

.program-info p {
    margin: 0;
    color: #526774
}

.program-desc {
    margin-top: 10px
}

.program-desc p {
    margin: .3em 0
}

@media(max-width:650px) {
    .program-item {
        grid-template-columns: 85px 1fr
    }

    .program-info {
        padding: 14px
    }

    .year-program h2 {
        font-size: 1.6rem
    }
}

.event-links {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: .8rem
}

.event-links a {
    display: inline-block;
    padding: .5rem .7rem;
    border: 1px solid #b8cbe2;
    border-radius: 7px;
    background: #f5f9fd;
    text-decoration: none;
    font-weight: 700
}

.event-links a:hover {
    background: #e7f1fb
}

.program-desc {
    margin-top: .45rem
}

.program-date small {
    display: block;
    margin-top: .2rem
}

.event-links .pending-link {
    display: inline-block;
    padding: .5rem .7rem;
    border: 1px dashed #b8cbe2;
    border-radius: 7px;
    background: #fafcfe;
    color: #667b8f;
    font-weight: 700
}

.event-links .pending-link small {
    font-weight: 400
}

/* v0.8 vollständige Termindetails */
.program-details {
    margin: .55rem 0 0;
    padding: .65rem .8rem;
    background: #f7fbfd;
    border-left: 3px solid #f2c500;
    font-size: .95rem
}

.program-details p {
    margin: .25rem 0
}

.event-links {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .55rem
}

.event-links a,
.pending-link {
    display: inline-block;
    padding: .38rem .58rem;
    border-radius: 5px;
    background: #eef6fa
}

.pending-link {
    color: #667
}

.program-table td {
    vertical-align: top
}

.program-table .program-title {
    min-width: 42%
}

.legacy-links {
    margin-top: .65rem;
    display: flex;
    gap: .6rem;
    flex-wrap: wrap
}

.legacy-links a,
.event-links a {
    font-weight: 700
}

.planned-heading {
    margin-top: 2rem
}

.planned-list .program-date strong {
    font-size: 1rem
}

.tiles .tile:nth-child(4)>img {
    transform: scale(1.0);
}

/* Handy-Menü: Alle Menüpunkte sichtbar */
@media (max-width: 650px) {
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        overflow: visible;
        padding: 0 4px;
    }

    .nav a {
        white-space: normal;
        text-align: center;
        padding: 10px 7px;
        font-size: 13px;
    }
}

/* Handy-Menü: 4 Menüpunkte pro Zeile */
@media (max-width: 650px) {
    .nav ul {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0;
    }

    .nav a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 50px;
        padding: 8px 3px;
        font-size: 12px;
        line-height: 1.3;
        text-align: center;
    }
}

/* Startseite: Aktuelles mit Rollbalken */
.aktuelles-scroll {
    max-height: 550px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 12px;
}