/* ── Werkhof Veranstaltungskalender ── */

.wv-kalender {
    font-family: inherit;
    font-size: inherit;
    max-width: 100%;
}

/* Tabellen-Layout für saubere zwei Spalten */
.wv-eintrag {
    display: table;
    width: 100%;
    padding: 1.8em 0;
    border-bottom: 1px solid #ccc;
    table-layout: fixed;
}

.wv-eintrag:last-child {
    border-bottom: none;
}

.wv-links,
.wv-rechts {
    display: table-cell;
    vertical-align: top;
    font-size: inherit;
}

.wv-links {
    width: 35%;
    padding-right: 2em;
}

.wv-rechts {
    width: 65%;
}

.wv-titel {
    font-size: inherit;
    font-weight: 700;
    margin: 0 0 0.4em 0;
    line-height: 1.4;
}

.wv-titel a {
    color: inherit;
    text-decoration: none;
}

.wv-titel a:hover {
    color: #9b1b2a;
    text-decoration: underline;
}

.wv-meta {
    margin: 0.1em 0;
    font-size: inherit;
}

.wv-meta strong {
    font-weight: normal;
}

.wv-mehr {
    display: inline-block;
    margin-top: 0.6em;
    font-size: inherit;
    color: #9b1b2a;
    text-decoration: none;
    font-style: italic;
}

.wv-mehr:hover {
    text-decoration: underline;
    color: #7a1520;
}

.wv-teaser {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
}

.wv-keine-termine {
    font-style: italic;
}

/* ── iCal Erklär-Box ── */

.wv-ical-box {
    margin-top: 2em;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.wv-ical-toggle {
    width: 100%;
    background: #f7f7f7;
    border: none;
    padding: 0.9em 1.2em;
    text-align: left;
    font-size: inherit;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: inherit;
}

.wv-ical-toggle:hover {
    background: #efefef;
}

.wv-ical-arrow {
    font-size: 0.75em;
    transition: transform 0.2s;
}

.wv-ical-info {
    display: none;
    padding: 1.2em 1.4em;
    border-top: 1px solid #ddd;
    font-size: inherit;
}

.wv-ical-info.wv-ical-open {
    display: block;
}

.wv-ical-intro {
    margin: 0 0 1em 0;
    line-height: 1.6;
}

.wv-ical-url-box {
    display: flex;
    align-items: center;
    gap: 0.6em;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5em 0.8em;
    margin-bottom: 1.2em;
    flex-wrap: wrap;
}

.wv-ical-url-label {
    font-size: 0.85em;
    white-space: nowrap;
    opacity: 0.7;
}

.wv-ical-url {
    flex: 1;
    font-size: 0.82em;
    word-break: break-all;
    background: none;
    border: none;
    padding: 0;
}

.wv-ical-copy {
    background: #9b1b2a;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 0.3em 0.8em;
    font-size: 0.85em;
    cursor: pointer;
    white-space: nowrap;
}

.wv-ical-copy:hover {
    background: #7a1520;
}

.wv-ical-steps {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.wv-ical-device {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.wv-ical-device summary {
    padding: 0.7em 1em;
    cursor: pointer;
    font-weight: 600;
    font-size: inherit;
    background: #fafafa;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.4em;
}

.wv-ical-device summary::-webkit-details-marker { display: none; }

.wv-ical-device summary::after {
    content: '▶';
    margin-left: auto;
    font-size: 0.7em;
    opacity: 0.5;
    transition: transform 0.2s;
}

.wv-ical-device[open] summary::after {
    transform: rotate(90deg);
}

.wv-ical-device ol {
    margin: 0;
    padding: 0.8em 1em 0.8em 2em;
    font-size: inherit;
    line-height: 1.8;
    border-top: 1px solid #e0e0e0;
}

/* ── Responsive ── */

@media ( max-width: 640px ) {
    .wv-eintrag {
        display: block;
        padding: 1.2em 0;
    }
    .wv-links,
    .wv-rechts {
        display: block;
        width: 100%;
        padding-right: 0;
    }
    .wv-rechts {
        margin-top: 0.6em;
    }
    .wv-ical-url-box {
        flex-direction: column;
        align-items: flex-start;
    }
    .wv-ical-copy {
        width: 100%;
        text-align: center;
        padding: 0.5em;
    }
}

/* ── Detailseite (single-veranstaltung) ── */

.wv-single-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5em 0 3em;
}

.wv-back-btn {
    display: inline-block;
    background: #9b1b2a;
    color: #fff !important;
    text-decoration: none !important;
    padding: 0.5em 1.2em;
    border-radius: 3px;
    font-size: inherit;
    margin-bottom: 1.8em;
    transition: background 0.15s;
}

.wv-back-btn:hover {
    background: #7a1520;
    color: #fff !important;
}

.wv-single-titel {
    font-size: 1.6em;
    font-weight: 700;
    margin: 0 0 0.8em 0;
}

.wv-single-meta {
    background: rgba(128,128,128,0.12);
    border: 1px solid rgba(128,128,128,0.2);
    padding: 0.7em 1em;
    border-radius: 3px;
    margin-bottom: 1.5em;
    font-size: inherit;
}

.wv-single-meta-row {
    margin: 0.2em 0;
}

.wv-single-meta-label {
    display: inline-block;
    min-width: 70px;
}

.wv-single-content {
    font-size: inherit;
    line-height: inherit;
}

.wv-single-content p {
    margin: 0.6em 0;
}
