/*
 * Styles of the Accessibility Club website
 *
 * A one-to-one port of the stylesheet of the legacy website (fileadmin/a11yclub/css/a11yclub-default.min.d1c7f6a9.css
 * and its critical part), in the same order, without vendor prefixes, the lightbox and the scripts. The website must
 * look identical, see docs/entscheidungen.md. Class names follow the legacy website; only helpers and the classes of
 * the content elements of the core have names that follow the class pattern of the guidelines:
 *
 * - hide, hide-content, hide-element: is-hidden, is-hidden-content, is-hidden-element; not u-, which microformats read
 *   as a property
 * - frame-space-after-medium: Content--space-after-medium
 * - frame-text-columns, frame-text-columns-2: Content--text-columns
 * - cta: CallToAction
 * - video-embed, video-embed-item: VideoEmbed, VideoEmbed__item
 *
 * Additions without a counterpart on the legacy website are marked as such.
 *
 * The legacy website used lengths with five decimals, such as 2.34375rem. The guidelines allow four, so such a length is
 * a tenth of its tenfold, such as calc(23.4375rem / 10), which is the same length: rounded, the sizes of the fonts would
 * differ from the legacy website.
 */

/* Fonts ------------------------------------------------------------------------------------------------------------ */

@font-face {
    font-family: 'Roboto Slab';
    src: url('../Fonts/robotoslab-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto Slab';
    src: url('../Fonts/robotoslab-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Elements --------------------------------------------------------------------------------------------------------- */

*,
::after,
::before {
    box-sizing: border-box;
}

body,
button,
input,
select,
textarea {
    font: 400 1.1875rem/1.75 'Roboto Slab', serif;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #111;
}

html {
    position: relative;
}

body {
    margin: 0;
}

figure {
    margin: 0;
}

audio,
img,
object,
video {
    max-width: 100%;
    height: auto;
}

iframe {
    max-width: 100%;
}

address {
    font-style: normal;
}

button {
    vertical-align: middle;
}

time {
    white-space: nowrap;
}

a {
    font-weight: 700;
}

a,
a:focus,
a:hover {
    color: #e06f00;
}

small {
    font-size: calc(6.9198rem / 10);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
}

/* Copyright, coverage and location --------------------------------------------------------------------------------- */

.Copyright {
    font-size: calc(9.0649rem / 10);
}

.Coverage {
    break-inside: avoid;
}

.Location__name {
    font-weight: 700;
}

.Location__photos {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.Location__wrapper {
    display: flex;
    break-inside: avoid;
}

.Location__icon {
    padding-right: calc(10.4167rem / 10);
}

.Location__map-link {
    display: block;
    margin: calc(10.4167rem / 10) 0;
}

.Location__photo-description {
    font-size: calc(9.0649rem / 10);
}

/* Organisations ---------------------------------------------------------------------------------------------------- */

.OrganizationList {
    list-style-type: none;
    margin: -1.5625rem;
    padding: 0;
}

.OrganizationList > li {
    margin: 1.5625rem;
}

@media (width >= 52.0625rem) {
    .OrganizationList {
        display: flex;
        flex-wrap: wrap;
    }

    .OrganizationList > li {
        width: calc(50% - 3.125rem);
    }
}

.OrganizationList__item {
    margin-bottom: calc(39.0625rem / 10);
}

.Organization .Organization__name {
    font-size: 1.1875rem;
    font-weight: 400;
    line-height: 1.75;
    margin: 0;
}

.Organization .Organization__country-wrap,
.Organization .Organization__geo,
.Organization .Organization__region-wrap {
    display: none;
}

.Organization__logo-wrap {
    padding: calc(23.4375rem / 10) 0;
    height: calc(6em + 4.6875rem);
    display: flex;
    justify-items: left;
    align-content: center;
}

.Organization__contact {
    display: flex;
    flex-wrap: wrap;
}

.Organization__contact dd,
.Organization__contact dt {
    margin: 0;
}

.Organization__contact dt {
    width: 6em;
}

.Organization__contact dd {
    width: calc(100% - 6em);
    flex-shrink: 1;
}

.Organization__contact a {
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Sponsors --------------------------------------------------------------------------------------------------------- */

.Event__sponsors-type {
    margin-top: calc(23.4375rem / 10);
}

.Event__sponsors-type ~ .Event__sponsors-type {
    margin-top: calc(39.0625rem / 10);
}

.Sponsor__label {
    font-weight: 700;
    font-size: calc(15.5563rem / 10);
}

/* Schedule --------------------------------------------------------------------------------------------------------- */

.Presentation__videos-list > li {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 0;
    height: 0;
    overflow: hidden;
}

.PresentationList td,
.PresentationList th {
    padding: 0.3em 0;
}

.PresentationList__caption {
    text-align: left;
}

.PresentationList__time {
    width: 7em;
}

.PresentationList__item,
.PresentationList__time {
    vertical-align: top;
}

/* Times are row headers in the look of the cells, on one line even on narrow screens, with figures of equal width */
.Presentation > .PresentationList__time,
.Presentation > .PresentationList__time > time {
    white-space: nowrap;
}

.Presentation > .PresentationList__time {
    font-weight: normal;
    font-variant-numeric: tabular-nums;
}

.Presentation__performer-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: inline;
}

.Presentation__performer {
    display: inline;
    position: relative;
}

.Presentation__performer + .Presentation__performer {
    padding-left: 0.5em;
}

.Presentation__performer + .Presentation__performer::before {
    position: absolute;
    left: 0;
    content: ', ';
}

/* As far from the links of an open preview as these are from the text above them */
.Presentation__info[open] + .Presentation__performers {
    margin-top: 1em;
    margin-bottom: 1.5625rem;
}

.Presentation__summary {
    cursor: default;
    outline-color: #e06f00;
}

summary.Presentation__summary {
    font-weight: bold;
}

.Presentation__documented {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-top: -0.2em !important;
    margin-left: calc(3.9063rem / 10);
    vertical-align: middle;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-indent: 300% !important;
    background-image: url('../Icons/Note.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

.Presentation__documentation {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.Presentation__documentation > li {
    display: inline-block;
}

.Presentation__documentation > li + li::before {
    content: ' | ';
}

.Presentation__subtitle {
    column-count: 1 !important;
}

.Presentation__notes-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.Presentation__note-content {
    background-color: #eee;
    padding: 1.5625rem;
}

.Presentation__note-content > :first-child {
    margin-top: 0;
}

.Presentation__note-content > :last-child {
    margin-bottom: 0;
}

.Presentation__coverage-list > li + li {
    margin-top: 1.5625rem;
}

@media (width >= 52.0625rem) {
    .Presentation__coverage-list {
        column-count: 2;
        column-gap: 3.125rem;
    }
}

.Presentation__videos-list {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.Presentation__videos-list > li + li {
    margin-top: 3.125rem;
}

.Presentation__notes-list > li + li {
    margin-top: 1.5625rem;
}

.Presentation__videos-list iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.Presentation > section {
    margin-top: 1.5625rem;
}

@media (width >= 52.0625rem) {
    .Presentation > section {
        margin-top: calc(39.0625rem / 10);
    }
}

/* People ----------------------------------------------------------------------------------------------------------- */

.Person__photo-wrap {
    text-align: left;
}

.Person__photo {
    border-radius: 50%;
    vertical-align: middle;
}

.Person__summary {
    font-weight: 700;
}

.Person__details {
    margin-top: 1.5625rem;
}

.Person__contact {
    display: flex;
    flex-wrap: wrap;
}

.Person__contact dd,
.Person__contact dt {
    margin: 0;
}

.Person__contact dt {
    width: 6em;
}

.Person__contact dd {
    width: calc(100% - 6em);
    flex-shrink: 1;
}

.Person__contact:empty {
    display: none;
}

.PersonList {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.PersonList > li + li {
    margin-top: calc(39.0625rem / 10);
}

@media (width >= 52.0625rem) {
    /* Addition: the list of all people has no heading before it */
    .LandmarkMain__wrap > * > .Heading + .PersonList,
    .LandmarkMain__wrap > * > .PersonList:first-child {
        display: flex;
        flex-wrap: wrap;
        margin: -1.5625rem;
    }

    .LandmarkMain__wrap > * > .Heading + .PersonList > li,
    .LandmarkMain__wrap > * > .PersonList:first-child > li {
        width: calc(50% - 3.125rem);
        margin: 1.5625rem;
    }
}

.Person {
    break-inside: avoid;
}

/* Subheader and gallery -------------------------------------------------------------------------------------------- */

.Subheader {
    margin-bottom: calc(7.8125rem / 10);
}

.Gallery {
    margin: calc(-3.9063rem / 10);
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.Gallery__item {
    padding: calc(3.9063rem / 10);
    vertical-align: top;
    flex-basis: 100%;
    max-width: 100%;
}

@media (width >= 52.0625rem) {
    .Gallery__item {
        flex-basis: 50%;
        max-width: 50%;
    }
}

@media (width >= 75.0625rem) {
    .Gallery__item {
        flex-basis: calc(333.3333% / 10);
        max-width: calc(333.3333% / 10);
    }
}

/* Events ----------------------------------------------------------------------------------------------------------- */

.Event__start {
    font-weight: 700;
    display: block;
}

.Event__end {
    font-size: calc(9.0649rem / 10);
    font-weight: 400;
    display: block;
    color: #fff;
}

.Event__ticket-cta {
    margin-top: 1.5625rem;
}

@media (width >= 52.0625rem) {
    .Event__ticket-cta {
        column-count: 1 !important;
        width: calc(50% - 1.5625rem);
    }
}

.CallToAction a,
.Event__ticket-cta a {
    padding: 1em 2em;
    background-color: #e06f00;
    color: #fff;
    text-decoration: none;
    display: block;
    text-align: center;
}

.CallToAction a:focus,
.CallToAction a:hover,
.Event__ticket-cta a:focus,
.Event__ticket-cta a:hover {
    color: #fff;
    background-color: #ff7f00;
}

.Event__coverage-list > li + li {
    margin-top: 1.5625rem;
}

.EventList {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.EventList > li + li {
    margin-top: 1.5625rem;
}

/*
 * Addition: from the width of two columns on, a list of events spans both columns and fills them row by row, so its
 * events alternate between left and right. The gap between the columns is the one of the two columns.
 */
@media (width >= 52.0625rem) {
    .EventList {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5625rem 2.375rem;
        align-items: start;
    }

    .EventList > li + li {
        margin-top: 0;
    }
}

.EventList__item {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.EventList__item:focus,
.EventList__item:hover {
    background-color: #ffddbc;
}

.EventList__item-icon {
    width: 25%;
}

.EventList__item-icon svg {
    vertical-align: middle;
}

.EventList__item-text {
    padding-left: 1em;
    width: 75%;
}

.EventList__item-title {
    text-decoration: underline;
}

.EventList__item:focus .EventList__item-title,
.EventList__item:hover .EventList__item-title {
    color: #111;
}

.EventList__item-date,
.EventList__item-location {
    color: #111;
    font-weight: 400;
}

/* Banner ----------------------------------------------------------------------------------------------------------- */

.LandmarkBanner {
    padding: 1.5625rem calc(10.4167rem / 10);
    text-align: center;
    color: #fff;
    background: radial-gradient(ellipse at center, #646464 0, #111 67%);
}

.LandmarkBanner__wrap {
    max-width: 44rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* Heading and subtitle stay in the order of the banner, as if the group of the two were not there */
.LandmarkBanner__heading {
    display: contents;
}

/* The logo comes first in the markup; on narrow screens, the name of the club shows above it as on the legacy website */
.LandmarkBanner__title.Heading {
    line-height: 1.1;
    order: -1;
}

@media (width >= 52.0625rem) {
    .LandmarkBanner__title.Heading {
        border-top: 9px solid #fff;
        padding: calc(1.6667em / 10) 0 0.25em;
        font-size: calc(45.8133rem / 10);
        margin-top: 0;
        margin-bottom: 0;
        order: 2;
    }

    /*
     * The lines below the name end 1rem before the subtitle, on every page. The legacy website set their width with a
     * script, rounded to a whole percent of the banner, and only on the pages of events; elsewhere they took 20 % of
     * the banner. Once the page loads, they grow from the edges to the subtitle.
     */
    .LandmarkBanner__subtitle.LandmarkBanner__subtitle {
        position: relative;
    }

    .LandmarkBanner__subtitle::after,
    .LandmarkBanner__subtitle::before {
        content: ' ';
        position: absolute;
        top: 0.5em;
        width: calc((42rem - 100%) / 2);
        width: round(nearest, (42rem - 100%) / 2, 0.44rem);
        height: 9px;
        background-color: #fff;
    }

    .LandmarkBanner__subtitle::before {
        left: calc((100% - 44rem) / 2);
    }

    .LandmarkBanner__subtitle::after {
        right: calc((100% - 44rem) / 2);
    }
}

@media (width >= 52.0625rem) and (prefers-reduced-motion: no-preference) {
    .LandmarkBanner__subtitle::after,
    .LandmarkBanner__subtitle::before {
        animation: landmark-banner-line 0.6s ease-out 0.3s backwards;
    }
}

@keyframes landmark-banner-line {
    from {
        width: 0;
    }
}

.LandmarkBanner__logo {
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.LandmarkBanner__logo,
.LandmarkBanner__logo:hover {
    color: #fff;
}

.LandmarkBanner__logo img {
    display: block;
}

@media (width >= 52.0625rem) {
    .LandmarkBanner__logo {
        margin-top: 3.125rem;
        margin-bottom: calc(23.4375rem / 10);
        order: 1;
    }
}

.LandmarkBanner__subtitle.LandmarkBanner__subtitle {
    font-weight: 700;
    font-size: calc(20.3788rem / 10);
    color: #ff7f00;
    margin: 1em auto;
    order: 3;
    line-height: 1.3;
}

@media (width >= 52.0625rem) {
    .LandmarkBanner__subtitle.LandmarkBanner__subtitle {
        max-width: calc(60% - 1em);
        margin-top: -0.5em;
    }
}

.LandmarkBanner__location {
    order: 3;
    text-decoration: none;
    color: #fff;
    font-weight: 400;
    font-size: calc(9.0649rem / 10);
    line-height: 1.75;
    margin: 1.5625rem auto;
    display: flex;
}

.LandmarkBanner__location address {
    text-align: left;
}

.LandmarkBanner__location:focus address,
.LandmarkBanner__location:hover address {
    color: #fff;
}

.LandmarkBanner__location .Location__marker {
    width: 3.5rem;
    padding-right: calc(10.4167rem / 10);
}

.LandmarkBanner__location .Location__marker svg {
    fill: currentcolor;
    width: 100%;
    height: auto;
}

/*
 * Addition: below a width of 375 pixels, the page fits its width, which the legacy website did not (WCAG 1.4.10). The
 * title of the banner shrinks until "Accessibility", its longest word, fits: the word is 6.18 em wide, the title
 * 2.0625rem narrower than the page. Long words, addresses and dates break.
 */
@media (width < 23.4375rem) {
    body {
        overflow-wrap: anywhere;
    }

    time {
        white-space: normal;
    }

    .LandmarkBanner__title.Heading--xx-large {
        font-size: calc((100vw - 2.0625rem) / 6.25);
    }
}

/* Main and footer -------------------------------------------------------------------------------------------------- */

.LandmarkFooter,
.LandmarkMain__cancel p,
.LandmarkMain__wrap {
    max-width: 56em;
    padding: calc(23.4375rem / 10) 1.5625rem;
    margin: 0 auto;
}

.LandmarkFooter {
    border-top: 9px solid #eee;
}

/* Notice of a cancelled event, after the rule above as on the legacy website */

.LandmarkMain__cancel {
    background-color: #ff7f00;
    color: #fff;
    text-align: center;
    padding: calc(23.4375rem / 10) 0;
}

.LandmarkMain__cancel p {
    padding: 0;
}

@media (width >= 52.0625rem) {
    /* Sections inside a plugin, such as on the profiles, keep the space of the sections of an event */
    .LandmarkMain__wrap > *,
    .LandmarkMain__wrap > .Content > section {
        margin-bottom: calc(39.0625rem / 10);
    }

    .LandmarkMain__wrap > * > .Heading + :not(.Container) {
        column-count: 2;
        column-gap: 3.125rem;
    }

    .LandmarkMain__wrap > * > .Heading + :not(.Container) :first-child {
        margin-top: 0;
    }
}

/* Addition: the meta navigation in the footer, in the size of the text */
.LandmarkFooter__navigation {
    margin-top: calc(23.4375rem / 10);
}

/* After content in the footer, the meta navigation has a rule across the footer, as the footer itself has */
.LandmarkFooter__navigation:not(:first-child) {
    border-top: 9px solid #eee;
    margin-right: -1.5625rem;
    margin-left: -1.5625rem;
    padding: calc(23.4375rem / 10) 1.5625rem 0;
}

.MetaNavigation {
    display: flex;
    flex-wrap: wrap;
    gap: 0 calc(10.4167rem / 10);
    margin: 0;
    padding: 0;
    list-style: none;
}

.LandmarkMain .Event__basics .Heading + p {
    column-count: 1;
}

.LandmarkMain .Event__basics .Heading + p .Event__end {
    color: #111;
}

/* Two columns ------------------------------------------------------------------------------------------------------ */

@media (width >= 52.0625rem) {
    .TwoColumns {
        display: flex;
        margin: 0 -1.1875rem;
    }

    .TwoColumns > * {
        width: 50%;
        margin: 0 1.1875rem;
    }
}

/* Helpers ---------------------------------------------------------------------------------------------------------- */

.is-hidden {
    display: none;
}

.is-hidden-content {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-indent: 300% !important;
}

.is-hidden-element {
    position: absolute !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
    height: 1px !important;
    width: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
}

[hidden] {
    display: none !important;
}

/* Content elements ------------------------------------------------------------------------------------------------- */

.Content--text-columns :first-child {
    margin-top: 0;
}

.Content--text-columns > .Container > .Content {
    break-inside: avoid;
}

@media (width >= 52.0625rem) {
    .Content--text-columns .Container {
        column-count: 2;
        column-gap: 3.125rem;
    }
}

.Content--space-after-medium {
    margin-bottom: calc(26.6962rem / 10);
}

.VideoEmbed {
    position: relative;
    height: 0;
    padding-top: 56.25%;
}

.VideoEmbed__item {
    border: none;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
}

/* Typography ------------------------------------------------------------------------------------------------------- */

.Heading {
    line-height: 1.3;
    margin: 0.5em 0;
    font-weight: 700;
}

.Heading--xx-large {
    font-size: 3.4972rem;
}

.Heading--x-large {
    font-size: calc(26.6962rem / 10);
}

.Heading--large {
    font-size: calc(20.3788rem / 10);
}

.Heading--medium {
    font-size: calc(15.5563rem / 10);
}

.Heading--small,
.Heading--x-small {
    font-size: 1.1875rem;
}

.Heading--hidden {
    position: absolute !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
    height: 1px !important;
    width: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
}

/* Headings after a subheader and in the notice of a cancelled event, after the typography */

.LandmarkMain__cancel .Heading {
    margin-top: 0;
}

.Subheader + .Heading {
    margin-top: 0;
}

/* The headings of the kinds of sponsors are for assistive technology only, after the typography */

.Event__sponsors-type > .Heading {
    position: absolute !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
    height: 1px !important;
    width: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
}
