@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&display=swap');

:root {
    --pico-font-family: "Montserrat", sans-serif;
    --pico-font-size: 95%;

    /* Dunkelblau */
    --ivpt-blue-50:  #f0f9fb;
    --ivpt-blue-100: #d9eef4;
    --ivpt-blue-200: #b7ddea;
    --ivpt-blue-300: #85c4db;
    --ivpt-blue-400: #4ca2c4;
    --ivpt-blue-500: #3185a9;
    --ivpt-blue-600: #2b6d8f;
    --ivpt-blue-700: #295975;
    --ivpt-blue-800: #2b4f66;
    --ivpt-blue-900: #264053;

    /* Türkis */
    --ivpt-teal-50:  #eef8f9;
    --ivpt-teal-100: #d0ecee;
    --ivpt-teal-200: #a2d8dc;
    --ivpt-teal-300: #7EC4CA;
    --ivpt-teal-400: #5BADB5;
    --ivpt-teal-500: #3d949d;
    --ivpt-teal-600: #2f7880;

    /* Orange */
    --ivpt-orange-50:  #fef5ea;
    --ivpt-orange-100: #fde3bf;
    --ivpt-orange-200: #f9c07a;
    --ivpt-orange-300: #F09840;
    --ivpt-orange-400: #E8851A;
    --ivpt-orange-500: #c46e10;
}

[data-theme="light"],
:root:not([data-theme="dark"]) {
    --pico-color: var(--ivpt-blue-800);
    --pico-primary: var(--ivpt-blue-500);
    --pico-primary-hover: var(--ivpt-blue-400);
    --pico-primary-focus: var(--ivpt-blue-400);
}

@media only screen and (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --pico-color: var(--ivpt-blue-50);
        --pico-primary: var(--ivpt-teal-300);
        --pico-primary-hover: var(--ivpt-teal-200);
        --pico-primary-focus: var(--ivpt-teal-200);
    }
}

[data-theme="dark"] {
    --pico-color: var(--ivpt-blue-50);
    --pico-primary: var(--ivpt-teal-300);
    --pico-primary-hover: var(--ivpt-teal-200);
    --pico-primary-focus: var(--ivpt-teal-200);
}

article {
    padding: 5%;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--pico-primary);
}

footer {

}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.nav-logo {
    display: inline-flex;
    min-width: 0;
}

.nav-logo img {
    display: block;
    height: 200px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--ivpt-blue-500);
    line-height: 1;
}

@media (max-width: 768px) {
    .nav-logo img {
        height: 120px;
    }

    .burger {
        display: flex;
        align-items: center;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--pico-background-color);
        border-bottom: 1px solid var(--ivpt-blue-100);
        padding: 0.5rem 1.5rem 1rem;
        z-index: 100;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li a {
        display: block;
        padding: 0.6rem 0;
        border-bottom: 1px solid var(--ivpt-blue-50);
    }

    header {
        position: relative;
    }
}

@media (max-width: 480px) {
    .nav-logo img {
        height: 80px;
    }
}

.mission-statement {
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--ivpt-blue-500);
    border-left: 3px solid var(--ivpt-teal-400);
    padding-left: 1.25rem;
    margin-bottom: 2.5rem;
}

.category-cards {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.category-card {
    flex: 1 1 200px;
    padding: 1.5rem;
    border: 1px solid var(--pico-primary);
    border-radius: var(--pico-border-radius);
    text-decoration: none;
    color: inherit;
    transition: filter 0.2s;
    display: flex;
    flex-direction: column;
}


.category-card:nth-child(1) {
    background-color: var(--ivpt-teal-50);
}

.category-card:nth-child(2) {
    background-color: var(--ivpt-orange-50);
}

.category-card:nth-child(3) {
    background-color: var(--ivpt-blue-50);
}

.category-card h3 {
    margin-bottom: 0.5rem;
}

.zoom-figure {
    margin: 2rem auto;
    max-width: 400px;
    text-align: center;
}

.zoom-figure-wide {
    max-width: 640px;
}

.zoom-figure img {
    width: 100%;
    height: auto;
    border-radius: var(--pico-border-radius);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.zoom-figure figcaption {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--pico-muted-color);
}

/* Klickbares Bild mit Vergrößerung */
.zoom-figure-trigger {
    display: block;
    position: relative;
    width: 100%;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    cursor: zoom-in;
    line-height: 0;
}

.zoom-figure-trigger img {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.zoom-figure-trigger:hover img,
.zoom-figure-trigger:focus-visible img {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.zoom-figure-icon {
    position: absolute;
    right: 0.6rem;
    bottom: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.55);
    color: #fff;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.zoom-figure-icon svg {
    width: 1.1rem;
    height: 1.1rem;
}

.zoom-figure-trigger:hover .zoom-figure-icon,
.zoom-figure-trigger:focus-visible .zoom-figure-icon {
    opacity: 1;
}

/* Popover mit dem großen Bild */
.zoom-figure-dialog {
    padding: 1.5rem;
    border: none;
    background-color: rgba(0, 0, 0, 0.8);
    cursor: zoom-out;
}

.zoom-figure-dialog img {
    display: block;
    max-width: min(92vw, 900px);
    max-height: 88vh;
    width: auto;
    height: auto;
    margin: auto;
    border-radius: var(--pico-border-radius);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    cursor: default;
}

.zoom-figure-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
}

.zoom-figure-close:hover,
.zoom-figure-close:focus-visible {
    background-color: rgba(0, 0, 0, 0.8);
}

.zoom-figure-close svg {
    width: 1.3rem;
    height: 1.3rem;
}

.ablauf-card:nth-child(1) { background-color: var(--ivpt-teal-50); }
.ablauf-card:nth-child(2) { background-color: var(--ivpt-orange-50); }
.ablauf-card:nth-child(3) { background-color: var(--ivpt-blue-50); }

.ablauf-card:nth-child(1) h3 { color: var(--ivpt-teal-600); }
.ablauf-card:nth-child(1) p  { color: var(--ivpt-teal-600); opacity: 0.85; }
.ablauf-card:nth-child(2) h3 { color: var(--ivpt-orange-500); }
.ablauf-card:nth-child(2) p  { color: var(--ivpt-orange-500); opacity: 0.85; }
.ablauf-card:nth-child(3) h3 { color: var(--ivpt-blue-500); }
.ablauf-card:nth-child(3) p  { color: var(--ivpt-blue-500); opacity: 0.85; }

.category-card:nth-child(1) h3 { color: var(--ivpt-teal-600); }
.category-card:nth-child(1) p  { color: var(--ivpt-teal-600); opacity: 0.85; }

.category-card:nth-child(2) h3 { color: var(--ivpt-orange-500); }
.category-card:nth-child(2) p  { color: var(--ivpt-orange-500); opacity: 0.85; }

.category-card:nth-child(3) h3 { color: var(--ivpt-blue-500); }
.category-card:nth-child(3) p  { color: var(--ivpt-blue-500); opacity: 0.85; }

.event-info {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 0.75rem;
    padding: 0.3rem 0.6rem;
    font-size: 0.78rem;
    color: var(--ivpt-blue-500);
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: var(--pico-border-radius);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.event-info:hover {
    opacity: 1;
    text-decoration: none;
}

.event-icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    margin-top: 2px;
}

.event-info span {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.event-meta {
    font-size: 0.72rem;
    opacity: 0.7;
}

@media (max-width: 600px) {
    .category-cards {
        flex-direction: column;
    }
}

/* Mobile (Portrait) */
.responsive-logo {
    width: 80%;
    max-width: 80%;
    margin: 5rem auto;
    color: var(--pico-primary)
}

/* Landscape */
@media (min-width: 600px) and (orientation: landscape) {
    .responsive-logo {
        width: 50%;
        max-width: 50%;
        margin: 5rem auto;
        color: var(--pico-primary)
    }
}

/* ---------- IFA-Gruppen ---------- */

.ifa-legend {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem;
    display: grid;
    gap: 0.6rem;
}

.ifa-legend li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.ifa-legend-text {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
    font-size: 0.88rem;
}

.ifa-legend-hint {
    font-size: 0.8rem;
    opacity: 0.7;
}

.ifa-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    cursor: help;
}

.ifa-badge-a {
    background-color: var(--ivpt-teal-100);
    color: var(--ivpt-teal-600);
}

.ifa-badge-b {
    background-color: var(--ivpt-orange-100);
    color: var(--ivpt-orange-500);
}

.ifa-badge-c {
    background-color: var(--ivpt-blue-100);
    color: var(--ivpt-blue-600);
}

.ifa-note {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    background-color: rgba(0, 0, 0, 0.05);
    opacity: 0.8;
}

/* Regionen-Dropdowns */

.ifa-regions {
    display: grid;
    gap: 0.75rem;
    margin: 2rem 0;
}

.ifa-region {
    margin: 0;
    padding: 0;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: var(--pico-border-radius);
    overflow: hidden;
    background-color: var(--pico-card-background-color);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ifa-region[open] {
    border-color: var(--ivpt-teal-300);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.ifa-region > summary {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    padding: 0.9rem 1rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    transition: background-color 0.2s;
}

.ifa-region > summary::after,
.ifa-region > summary::-webkit-details-marker,
.ifa-region > summary::marker {
    display: none;
    content: none;
}

.ifa-region > summary:hover {
    background-color: var(--ivpt-teal-50);
}

.ifa-region > summary:focus-visible {
    outline: 2px solid var(--ivpt-teal-400);
    outline-offset: -2px;
}

.ifa-region-icon {
    display: inline-flex;
    color: var(--ivpt-teal-500);
}

.ifa-region-icon svg {
    width: 18px;
    height: 18px;
}

.ifa-region-name {
    flex: 1;
    min-width: 0;
}

.ifa-region-count {
    font-size: 0.75rem;
    font-weight: 400;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background-color: rgba(0, 0, 0, 0.05);
    opacity: 0.75;
    white-space: nowrap;
}

.ifa-region-chevron {
    display: inline-flex;
    color: var(--ivpt-teal-500);
    transition: transform 0.2s;
}

.ifa-region-chevron svg {
    width: 18px;
    height: 18px;
}

.ifa-region[open] .ifa-region-chevron {
    transform: rotate(180deg);
}

/* Gruppenkarten */

.ifa-group-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.75rem;
    padding: 0 1rem 1rem;
}

.ifa-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0;
    padding: 0.9rem 1rem;
    border-radius: var(--pico-border-radius);
    background-color: var(--ivpt-blue-50);
    box-shadow: none;
}

.ifa-group-name {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.3;
    color: var(--ivpt-blue-700);
}

.ifa-group-org,
.ifa-group-address {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.35;
    opacity: 0.75;
}

.ifa-icon,
.jt-icon {
    display: inline-flex;
    flex-shrink: 0;
    margin-top: 1px;
}

.ifa-icon svg,
.jt-icon svg {
    width: 14px;
    height: 14px;
}

.ifa-contact,
.jt-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin: 0.2rem 0 0;
    padding: 0;
}

.ifa-contact li,
.jt-contact li,
.ifa-legend li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ifa-contact a,
.jt-contact a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    max-width: 100%;
    padding: 0.28rem 0.6rem;
    border-radius: var(--pico-border-radius);
    background-color: var(--pico-card-background-color);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    word-break: break-word;
    transition: background-color 0.2s, color 0.2s;
}

.ifa-contact-phone a,
.jt-contact-phone a {
    color: var(--ivpt-teal-600);
}

.ifa-contact-phone a:hover,
.jt-contact-phone a:hover {
    background-color: var(--ivpt-teal-100);
    color: var(--ivpt-teal-600);
}

.ifa-contact-mail a,
.jt-contact-mail a {
    color: var(--ivpt-orange-500);
}

.ifa-contact-mail a:hover,
.jt-contact-mail a:hover {
    background-color: var(--ivpt-orange-100);
    color: var(--ivpt-orange-500);
}

.ifa-contact-web a,
.jt-contact-web a {
    color: var(--ivpt-blue-600);
}

.ifa-contact-web a:hover,
.jt-contact-web a:hover {
    background-color: var(--ivpt-blue-100);
    color: var(--ivpt-blue-600);
}

.ifa-formats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin: 0.3rem 0 0;
    padding-top: 0.15rem;
}

.ifa-hint {
    font-size: 0.85rem;
    opacity: 0.8;
}

@media only screen and (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .ifa-group {
        background-color: rgba(255, 255, 255, 0.04);
    }

    :root:not([data-theme="light"]) .ifa-group-name {
        color: var(--ivpt-teal-200);
    }

    :root:not([data-theme="light"]) .ifa-region > summary:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }

    :root:not([data-theme="light"]) .ifa-contact a,
    :root:not([data-theme="light"]) .jt-contact a {
        background-color: rgba(255, 255, 255, 0.07);
    }

    :root:not([data-theme="light"]) .ifa-contact-phone a,
    :root:not([data-theme="light"]) .jt-contact-phone a { color: var(--ivpt-teal-200); }
    :root:not([data-theme="light"]) .ifa-contact-mail a,
    :root:not([data-theme="light"]) .jt-contact-mail a { color: var(--ivpt-orange-200); }
    :root:not([data-theme="light"]) .ifa-contact-web a,
    :root:not([data-theme="light"]) .jt-contact-web a { color: var(--ivpt-blue-200); }

    :root:not([data-theme="light"]) .ifa-badge-a { background-color: rgba(126, 196, 202, 0.2); color: var(--ivpt-teal-200); }
    :root:not([data-theme="light"]) .ifa-badge-b { background-color: rgba(240, 152, 64, 0.2); color: var(--ivpt-orange-200); }
    :root:not([data-theme="light"]) .ifa-badge-c { background-color: rgba(133, 196, 219, 0.2); color: var(--ivpt-blue-200); }

    :root:not([data-theme="light"]) .ifa-note,
    :root:not([data-theme="light"]) .ifa-region-count {
        background-color: rgba(255, 255, 255, 0.08);
    }
}

[data-theme="dark"] .ifa-group {
    background-color: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .ifa-group-name {
    color: var(--ivpt-teal-200);
}

[data-theme="dark"] .ifa-region > summary:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .ifa-contact a,
[data-theme="dark"] .jt-contact a {
    background-color: rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .ifa-contact-phone a,
[data-theme="dark"] .jt-contact-phone a { color: var(--ivpt-teal-200); }
[data-theme="dark"] .ifa-contact-mail a,
[data-theme="dark"] .jt-contact-mail a { color: var(--ivpt-orange-200); }
[data-theme="dark"] .ifa-contact-web a,
[data-theme="dark"] .jt-contact-web a { color: var(--ivpt-blue-200); }

[data-theme="dark"] .ifa-badge-a { background-color: rgba(126, 196, 202, 0.2); color: var(--ivpt-teal-200); }
[data-theme="dark"] .ifa-badge-b { background-color: rgba(240, 152, 64, 0.2); color: var(--ivpt-orange-200); }
[data-theme="dark"] .ifa-badge-c { background-color: rgba(133, 196, 219, 0.2); color: var(--ivpt-blue-200); }

[data-theme="dark"] .ifa-note,
[data-theme="dark"] .ifa-region-count {
    background-color: rgba(255, 255, 255, 0.08);
}

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

/* ---------- Jahrestagung ---------- */

.jt-lead {
    font-size: 1.05rem;
}

/* Eckdaten */

.jt-facts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.jt-fact {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.9rem 1rem;
    border-radius: var(--pico-border-radius);
    background-color: var(--ivpt-teal-50);
}

.jt-fact-alert {
    grid-column: 1 / -1;
    background-color: var(--ivpt-orange-50);
}

.jt-fact-icon {
    display: inline-flex;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--ivpt-teal-500);
}

.jt-fact-alert .jt-fact-icon {
    color: var(--ivpt-orange-400);
}

.jt-fact-icon svg {
    width: 20px;
    height: 20px;
}

.jt-fact-body {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.jt-fact-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.6;
}

.jt-fact-meta {
    font-size: 0.78rem;
    line-height: 1.35;
    opacity: 0.75;
}

/* Sprungmarken */

.jt-jump {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.5rem;
    margin: 1.5rem 0 2.5rem;
}

.jt-jump a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s;
}

.jt-jump a:hover {
    border-color: var(--ivpt-teal-300);
    background-color: var(--ivpt-teal-50);
}

.jt-jump-icon {
    display: inline-flex;
}

.jt-jump-icon svg {
    width: 15px;
    height: 15px;
}

/* Tagesblöcke */

.jt-day {
    margin: 0 0 2rem;
}

.jt-day-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.5rem 0 0.75rem;
    border-bottom: 2px solid var(--ivpt-teal-200);
    margin-bottom: 1rem;
}

.jt-day-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ivpt-teal-600);
}

.jt-day-date {
    font-size: 0.95rem;
    opacity: 0.75;
}

.jt-day-note {
    margin-left: auto;
    font-size: 0.78rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background-color: rgba(0, 0, 0, 0.05);
    opacity: 0.75;
}

/* Zeitraster */

.jt-schedule {
    list-style: none;
    display: grid;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
}

.jt-slot {
    display: grid;
    grid-template-columns: 6.5rem 1fr;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0.85rem 1rem;
    border-radius: var(--pico-border-radius);
    background-color: var(--ivpt-blue-50);
}

.jt-slot-wide {
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.jt-slot-wide .jt-time {
    flex-direction: row;
    gap: 0.3rem;
}

.jt-slot-wide .jt-time-from::after {
    content: " –";
}

.jt-time {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ivpt-blue-600);
    white-space: nowrap;
}

.jt-time-to {
    font-weight: 400;
    opacity: 0.7;
}

.jt-slot-body {
    min-width: 0;
}

.jt-tag {
    display: inline-block;
    margin-bottom: 0.35rem;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ivpt-orange-500);
    background-color: var(--ivpt-orange-100);
}

.jt-title {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    line-height: 1.35;
    color: var(--ivpt-blue-700);
}

.jt-speaker,
.jt-role,
.jt-place,
.jt-hotel-address {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.jt-speaker {
    font-weight: 500;
}

.jt-role {
    display: block;
    padding-left: 1.2rem;
    font-size: 0.78rem;
    opacity: 0.7;
}

.jt-place {
    margin-top: 0.15rem;
    opacity: 0.85;
}

/* Aufklappbare Abstracts */

.jt-more {
    margin: 0.5rem 0 0;
    padding: 0;
    border: 0;
}

.jt-more > summary {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0;
    padding: 0.15rem 0;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ivpt-teal-600);
    cursor: pointer;
    list-style: none;
}

.jt-more > summary::after,
.jt-more > summary::-webkit-details-marker,
.jt-more > summary::marker {
    display: none;
    content: none;
}

.jt-more > summary:hover .jt-more-label {
    text-decoration: underline;
}

.jt-more-chevron {
    display: inline-flex;
    transition: transform 0.2s;
}

.jt-more-chevron svg {
    width: 15px;
    height: 15px;
}

.jt-more[open] .jt-more-chevron {
    transform: rotate(180deg);
}

.jt-more p {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    line-height: 1.55;
    opacity: 0.85;
}

/* Kulturprogramm */

.jt-culture {
    list-style: none;
    display: grid;
    gap: 0.4rem;
    margin: 0.5rem 0 0;
    padding: 0;
}

.jt-culture li {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.jt-culture-meta {
    opacity: 0.65;
    font-size: 0.78rem;
}

/* Workshops */

.jt-workshops {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.6rem;
    margin-top: 0.75rem;
}

.jt-ws {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0;
    padding: 0.8rem 0.9rem;
    border-radius: var(--pico-border-radius);
    background-color: var(--pico-card-background-color);
    box-shadow: none;
}

.jt-ws-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 2rem;
    height: 1.6rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ivpt-teal-600);
    background-color: var(--ivpt-teal-100);
}

.jt-ws-body {
    min-width: 0;
}

.jt-ws-title {
    margin: 0 0 0.3rem;
    font-size: 0.92rem;
    line-height: 1.35;
    color: var(--ivpt-blue-700);
}

/* Gebühren */

.jt-fees {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    margin: 1rem 0 2rem;
}

.jt-fee {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: var(--pico-border-radius);
}

.jt-fee-label {
    display: flex;
    flex-direction: column;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.3;
}

.jt-fee-meta {
    font-weight: 400;
    font-size: 0.75rem;
    opacity: 0.7;
}

.jt-fee-price {
    flex-shrink: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ivpt-teal-600);
}

.jt-extras {
    list-style: none;
    display: grid;
    gap: 0.4rem;
    margin: 1rem 0 2rem;
    padding: 0;
}

.jt-extras li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    list-style: none;
    margin: 0;
    padding: 0.7rem 0.9rem;
    border-radius: var(--pico-border-radius);
    background-color: var(--ivpt-blue-50);
    font-size: 0.88rem;
}

.jt-extra-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    line-height: 1.35;
}

.jt-extra-meta {
    font-size: 0.76rem;
    opacity: 0.7;
}

.jt-extra-price {
    flex-shrink: 0;
    font-weight: 700;
    white-space: nowrap;
    color: var(--ivpt-teal-600);
}

/* Buttons & Hinweise */

.jt-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.5rem 0;
}

.jt-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.1rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: var(--pico-border-radius);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s, opacity 0.2s;
}

.jt-btn:hover {
    border-color: var(--ivpt-teal-300);
    background-color: var(--ivpt-teal-50);
}

.jt-btn-primary {
    border-color: var(--ivpt-teal-500);
    background-color: var(--ivpt-teal-500);
    color: #fff;
}

.jt-btn-primary:hover {
    border-color: var(--ivpt-teal-400);
    background-color: var(--ivpt-teal-400);
    color: #fff;
}

.jt-btn-icon {
    display: inline-flex;
}

.jt-btn-icon svg {
    width: 16px;
    height: 16px;
}

.jt-notes {
    list-style: none;
    display: grid;
    gap: 0.5rem;
    margin: 1.5rem 0 2rem;
    padding: 0;
}

.jt-notes li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
    line-height: 1.45;
    opacity: 0.85;
}

.jt-notes .jt-icon {
    color: var(--ivpt-teal-500);
    margin-top: 3px;
}

/* Hotels */

.jt-hotels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.jt-hotel {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0;
    padding: 0.9rem 1rem;
    border-radius: var(--pico-border-radius);
    background-color: var(--ivpt-blue-50);
    box-shadow: none;
}

.jt-hotel-name {
    margin: 0;
    font-size: 1rem;
    color: var(--ivpt-blue-700);
}

.jt-hotel-address {
    font-size: 0.8rem;
    opacity: 0.75;
}

@media (max-width: 600px) {
    .jt-facts,
    .jt-fees {
        grid-template-columns: 1fr;
    }

    .jt-slot {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .jt-time {
        flex-direction: row;
        gap: 0.3rem;
    }

    .jt-time-from::after {
        content: " –";
    }

    .jt-day-note {
        margin-left: 0;
    }
}

@media only screen and (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .jt-fact { background-color: rgba(126, 196, 202, 0.12); }
    :root:not([data-theme="light"]) .jt-fact-alert { background-color: rgba(240, 152, 64, 0.12); }
    :root:not([data-theme="light"]) .jt-slot,
    :root:not([data-theme="light"]) .jt-extras li,
    :root:not([data-theme="light"]) .jt-hotel { background-color: rgba(255, 255, 255, 0.04); }
    :root:not([data-theme="light"]) .jt-ws { background-color: rgba(255, 255, 255, 0.07); }
    :root:not([data-theme="light"]) .jt-title,
    :root:not([data-theme="light"]) .jt-ws-title,
    :root:not([data-theme="light"]) .jt-hotel-name { color: var(--ivpt-teal-200); }
    :root:not([data-theme="light"]) .jt-time { color: var(--ivpt-blue-200); }
    :root:not([data-theme="light"]) .jt-day-name,
    :root:not([data-theme="light"]) .jt-fee-price,
    :root:not([data-theme="light"]) .jt-extra-price,
    :root:not([data-theme="light"]) .jt-more > summary { color: var(--ivpt-teal-200); }
    :root:not([data-theme="light"]) .jt-day-head { border-bottom-color: var(--ivpt-teal-600); }
    :root:not([data-theme="light"]) .jt-day-note { background-color: rgba(255, 255, 255, 0.08); }
    :root:not([data-theme="light"]) .jt-tag { color: var(--ivpt-orange-200); background-color: rgba(240, 152, 64, 0.2); }
    :root:not([data-theme="light"]) .jt-ws-num { color: var(--ivpt-teal-200); background-color: rgba(126, 196, 202, 0.2); }
    :root:not([data-theme="light"]) .jt-jump a:hover,
    :root:not([data-theme="light"]) .jt-btn:hover { background-color: rgba(255, 255, 255, 0.07); }
}

[data-theme="dark"] .jt-fact { background-color: rgba(126, 196, 202, 0.12); }
[data-theme="dark"] .jt-fact-alert { background-color: rgba(240, 152, 64, 0.12); }
[data-theme="dark"] .jt-slot,
[data-theme="dark"] .jt-extras li,
[data-theme="dark"] .jt-hotel { background-color: rgba(255, 255, 255, 0.04); }
[data-theme="dark"] .jt-ws { background-color: rgba(255, 255, 255, 0.07); }
[data-theme="dark"] .jt-title,
[data-theme="dark"] .jt-ws-title,
[data-theme="dark"] .jt-hotel-name { color: var(--ivpt-teal-200); }
[data-theme="dark"] .jt-time { color: var(--ivpt-blue-200); }
[data-theme="dark"] .jt-day-name,
[data-theme="dark"] .jt-fee-price,
[data-theme="dark"] .jt-extra-price,
[data-theme="dark"] .jt-more > summary { color: var(--ivpt-teal-200); }
[data-theme="dark"] .jt-day-head { border-bottom-color: var(--ivpt-teal-600); }
[data-theme="dark"] .jt-day-note { background-color: rgba(255, 255, 255, 0.08); }
[data-theme="dark"] .jt-tag { color: var(--ivpt-orange-200); background-color: rgba(240, 152, 64, 0.2); }
[data-theme="dark"] .jt-ws-num { color: var(--ivpt-teal-200); background-color: rgba(126, 196, 202, 0.2); }
[data-theme="dark"] .jt-jump a:hover,
[data-theme="dark"] .jt-btn:hover { background-color: rgba(255, 255, 255, 0.07); }

/* Archiv früherer Jahrestagungen */

.jt-archive {
    display: grid;
    gap: 0.6rem;
    margin: 1.5rem 0;
}

.jt-archive-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: var(--pico-border-radius);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, background-color 0.2s;
}

.jt-archive-item:hover {
    border-color: var(--ivpt-teal-300);
    background-color: var(--ivpt-teal-50);
    text-decoration: none;
}

.jt-archive-year {
    flex-shrink: 0;
    padding: 0.25rem 0.6rem;
    border-radius: var(--pico-border-radius);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ivpt-teal-600);
    background-color: var(--ivpt-teal-100);
}

.jt-archive-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    line-height: 1.35;
    font-size: 0.92rem;
}

.jt-archive-meta {
    font-size: 0.78rem;
    opacity: 0.7;
}

.jt-archive-action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ivpt-teal-600);
}

@media (max-width: 600px) {
    .jt-archive-item {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .jt-archive-body {
        flex-basis: 100%;
        order: 3;
    }
}

@media only screen and (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .jt-archive-item:hover { background-color: rgba(255, 255, 255, 0.07); }
    :root:not([data-theme="light"]) .jt-archive-year { color: var(--ivpt-teal-200); background-color: rgba(126, 196, 202, 0.2); }
    :root:not([data-theme="light"]) .jt-archive-action { color: var(--ivpt-teal-200); }
}

[data-theme="dark"] .jt-archive-item:hover { background-color: rgba(255, 255, 255, 0.07); }
[data-theme="dark"] .jt-archive-year { color: var(--ivpt-teal-200); background-color: rgba(126, 196, 202, 0.2); }
[data-theme="dark"] .jt-archive-action { color: var(--ivpt-teal-200); }
