/*
 * Site-specific styles for standard Nibbly pages.
 * Keeps legal pages and error pages visually aligned with the 125 Jahre site.
 */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Roboto:wght@300;400;500;700;900&display=swap");

:root {
    --font-body: "Roboto", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
    --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
    --color-primary: #c1121f;
    --color-primary-dark: #8f0d16;
    --color-primary-light: #e12b38;
    --color-secondary: #c9962f;
    --color-background-dark: #f3efe7;
    --color-background-darker: #e7dcc9;
    --color-background-section: #f8f4ec;
    --color-border: rgba(20, 25, 35, 0.12);
    --gradient-brand: linear-gradient(135deg, #c1121f 0%, #8f0d16 100%);
    --header-height: 74px;
}

body.page-subpage {
    background: #f8f4ec;
    color: #171717;
    font-family: var(--font-body);
}

body.page-submit-event {
    color-scheme: light;
}

[data-theme="dark"] body.page-subpage,
[data-theme="dark"] body.page-submit-event {
    background: #f8f4ec;
    color: #171717;
}

body.page-events-index {
    background: #fff;
    color-scheme: light;
}

body.page-downloads {
    color-scheme: light;
}

.site-header {
    height: auto;
    min-height: var(--header-height);
    display: grid;
    align-items: center;
    background: rgba(247, 243, 235, 0.94);
    border-bottom: 1px solid rgba(17, 24, 32, 0.12);
    box-shadow: 0 12px 34px rgba(17, 24, 32, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.site-header.header-scrolled {
    background: rgba(248, 244, 236, 0.98);
    box-shadow: 0 18px 40px rgba(30, 20, 10, 0.08);
}

.header-inner {
    width: 100%;
    max-width: none;
    padding: 0.85rem clamp(1.25rem, 4vw, 4.5rem);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
}

.site-logo {
    max-width: none;
    color: #171717;
    gap: 0.72rem;
    font-family: var(--font-body);
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.05;
    text-transform: uppercase;
}

.site-logo:hover {
    color: #171717;
}

.site-logo-img {
    width: clamp(4.3rem, 7vw, 6.8rem);
    height: auto;
    max-width: none;
    filter: none;
}

.site-logo-text {
    max-width: 8.4rem;
    margin-left: 0;
    font-size: 0.68rem;
    line-height: 1.05;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.nav-main {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: clamp(1rem, 2.5vw, 2rem);
    justify-self: stretch;
}

.nav-list {
    justify-content: center;
    gap: clamp(0.35rem, 1vw, 1rem);
}

.nav-list a,
.lang-link {
    border-radius: 0;
    padding: 0.25rem 0;
    color: #171717;
    font-size: 0.86rem;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    background: transparent;
}

.nav-list a:hover,
.nav-list a.active,
.lang-link:hover,
.lang-link.active {
    color: #c9962f;
    background: transparent;
}

.nav-lang {
    display: flex;
    gap: 0.72rem;
    align-items: center;
    font-size: 1.03rem;
    font-weight: 400;
    letter-spacing: 0.14em;
}

.lang-separator {
    color: rgba(23, 23, 23, 0.35);
}

.theme-toggle,
.mobile-theme-toggle {
    display: none;
}

.hamburger {
    color: #171717;
}

.main-content {
    min-height: calc(100vh - var(--header-height));
    padding-top: calc(var(--header-height) + clamp(3rem, 7vw, 6rem));
    padding-bottom: clamp(4rem, 8vw, 7rem);
    background:
        radial-gradient(circle at 12% 12%, rgba(201, 150, 47, 0.11), transparent 28rem),
        linear-gradient(180deg, #f8f4ec 0%, #fffaf2 100%);
}

[data-theme="dark"] body.page-subpage .site-header {
    background: rgba(247, 243, 235, 0.94);
    border-bottom-color: rgba(17, 24, 32, 0.12);
    box-shadow: 0 12px 34px rgba(17, 24, 32, 0.08);
}

[data-theme="dark"] body.page-subpage .site-logo,
[data-theme="dark"] body.page-subpage .site-header .nav-list a {
    color: #171717;
}

[data-theme="dark"] body.page-subpage .site-header .nav-list a:hover,
[data-theme="dark"] body.page-subpage .site-header .nav-list a.active {
    color: #171717;
    background: rgba(201, 150, 47, 0.12);
}

[data-theme="dark"] body.page-subpage .site-header .lang-link {
    color: rgba(23, 23, 23, 0.58);
}

[data-theme="dark"] body.page-subpage .site-header .lang-link.active {
    color: #171717;
}

[data-theme="dark"] body.page-subpage .main-content,
[data-theme="dark"] body.page-submit-event .main-content.event-submit-page {
    background:
        radial-gradient(circle at 12% 12%, rgba(201, 150, 47, 0.11), transparent 28rem),
        linear-gradient(180deg, #f8f4ec 0%, #fffaf2 100%);
    color: #171717;
}

[data-theme="dark"] body.page-subpage .content-inner h1,
[data-theme="dark"] body.page-subpage .content-inner h2,
[data-theme="dark"] body.page-subpage .content-inner h3,
[data-theme="dark"] body.page-subpage .content-inner h4,
[data-theme="dark"] body.page-subpage .content-inner h5,
[data-theme="dark"] body.page-subpage .content-inner h6,
[data-theme="dark"] body.page-subpage .content-inner p,
[data-theme="dark"] body.page-subpage .content-inner li,
[data-theme="dark"] body.page-subpage .content-inner label,
[data-theme="dark"] body.page-subpage .content-inner legend {
    color: #171717;
}

.content-inner {
    max-width: min(940px, calc(100vw - 2rem));
    padding: clamp(1.4rem, 4vw, 4rem) clamp(1.3rem, 4vw, 4.4rem);
    background: transparent;
    border: 0;
}

.content-inner .breadcrumbs {
    margin-bottom: clamp(1.2rem, 3vw, 2rem);
}

.block-heading h1,
.content-inner h1 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(2.4rem, 7vw, 5.75rem);
    line-height: 0.95;
    color: #171717;
    letter-spacing: 0;
    margin-bottom: clamp(0.95rem, 2vw, 1.35rem);
}

.block-heading {
    position: relative;
    margin-bottom: clamp(3rem, 6vw, 5rem);
    padding-bottom: clamp(1.2rem, 2vw, 1.7rem);
}

.block-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: min(18rem, 48vw);
    height: 2px;
    background: linear-gradient(90deg, #c9962f, rgba(201, 150, 47, 0));
}

.block-heading__subtitle {
    max-width: 38rem;
    color: rgba(23, 23, 23, 0.72);
}

.content-inner h2 {
    margin-top: clamp(2.2rem, 4vw, 3.4rem);
    color: #171717;
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    font-weight: 750;
    padding-top: clamp(1rem, 2vw, 1.5rem);
    border-top: 1px solid rgba(201, 150, 47, 0.35);
}

.content-inner h3 {
    color: #c1121f;
    font-weight: 750;
}

.content-inner p,
.content-inner li {
    font-size: 1.02rem;
    line-height: 1.75;
    color: rgba(23, 23, 23, 0.76);
}

.content-inner a:not(.btn) {
    color: #c1121f;
    font-weight: 650;
}

.btn,
.btn-gradient,
.content-inner .btn-gradient {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.85rem 1.2rem;
    border: 1px solid #c1121f;
    border-radius: 0;
    background: #c1121f;
    color: #fff;
    box-shadow: none;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
}

.btn-gradient::after {
    display: none;
}

.btn:hover,
.btn-gradient:hover,
.content-inner .btn-gradient:hover {
    background: #171717;
    border-color: #171717;
    color: #fff;
    transform: none;
    box-shadow: none;
}

.eyebrow {
    margin: 0 0 0.85rem;
    color: #13263a;
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.events-index .content-inner--wide {
    max-width: min(1512px, calc(100vw - 8rem));
    padding-top: 0;
    padding-right: 0;
    padding-left: 0;
}

.events-index {
    padding-top: calc(var(--header-height) + clamp(0.75rem, 2vw, 1.5rem));
    background: #fff;
    font-family: "Roboto", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

.events-index .year-section {
    max-width: min(1512px, calc(100vw - 8rem));
    margin: 0 auto;
    padding: clamp(3.2rem, 5.5vw, 5.8rem) 0 clamp(5rem, 8vw, 7rem);
    background: transparent;
}

.year-section__top {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

.section-heading {
    max-width: 820px;
}

.section-heading h1,
.section-heading h2 {
    margin: 0;
    padding: 0;
    border: 0;
    font-family: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
    font-size: clamp(3.2rem, 3.8vw, 4.3rem);
    font-weight: 500;
    letter-spacing: 0;
    line-height: 0.95;
    color: #171717;
}

.section-heading p:not(.eyebrow) {
    max-width: 46rem;
    margin: 1.6rem 0 0;
    color: rgba(23, 23, 23, 0.74);
    font-size: clamp(1rem, 1.25vw, 1.2rem);
    line-height: 1.55;
}

.austria-map {
    position: relative;
    align-self: center;
    padding: 0;
    background: transparent;
}

.austria-map__base {
    width: 100%;
    height: auto;
}

.austria-map__pins {
    position: absolute;
    inset: 0;
    overflow: visible;
}

.map-pin {
    position: absolute;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.62rem;
    color: #8a6522;
    font-size: clamp(0.7rem, 0.9vw, 0.92rem);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transform: translate(-50%, calc(-1 * (2.64rem * 1.207)));
    z-index: 1;
}

.map-pin:focus {
    outline: none;
}

.map-pin i {
    position: relative;
    width: 2.64rem;
    height: 2.64rem;
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 0;
    background: #c1121f;
    box-shadow: 0 4px 14px rgba(17, 24, 32, 0.18);
    transform: rotate(-45deg);
}

.map-pin i::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 999px;
    background: #fff;
    transform: translate(-50%, -50%);
}

.map-pin b {
    position: absolute;
    left: 50%;
    top: calc(100% + 0.42rem);
    padding: 0.32rem 0.48rem;
    border-radius: 2px;
    background: rgba(248, 244, 236, 0.94);
    box-shadow: 0 6px 16px rgba(17, 24, 32, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -0.15rem);
    transition: opacity 0.16s ease, transform 0.16s ease;
    font: inherit;
}

.map-pin:hover,
.map-pin:focus {
    z-index: 10;
}

.map-pin:hover b,
.map-pin:focus b {
    opacity: 1;
    transform: translate(-50%, 0);
}

.events-index__actions {
    display: grid;
    grid-template-columns: repeat(3, auto) 1fr auto auto auto;
    gap: 0.8rem 1rem;
    align-items: center;
    margin: 0 0 clamp(2rem, 4vw, 3rem);
}

.events-index__actions.calendar-tools {
    margin-top: clamp(3rem, 5vw, 4.5rem);
}

.events-index .calendar-tools {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.8rem 1rem;
    align-items: center;
    margin: clamp(3rem, 5vw, 4.5rem) 0 1.8rem;
}

.filter-chip {
    min-width: 7.4rem;
    min-height: 2.8rem;
    padding: 0.6rem 1.1rem;
    border: 1px solid rgba(17, 24, 32, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    color: #171717;
    font: 800 0.9rem var(--font-body);
    cursor: pointer;
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.filter-chip.is-active,
.filter-chip:hover {
    border-color: #c9962f;
    background: linear-gradient(135deg, #d4aa57, #ae7d27);
    color: #fff;
}

.text-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: auto;
    padding-right: 3rem;
    color: #8a6522 !important;
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid rgba(138, 101, 34, 0.65);
}

.text-link::after {
    content: "\2192";
    position: absolute;
    right: 0;
    bottom: 0.15rem;
    width: 2rem;
    text-align: right;
}

.text-link--strong {
    color: #171717 !important;
    border-bottom-color: rgba(17, 24, 32, 0.58);
}

.events-index .calendar-tools .text-link--strong {
    margin-left: auto;
}

.events-index__actions .text-link--strong {
    margin-left: 0;
}

.calendar-tools__divider {
    width: 1px;
    align-self: stretch;
    min-height: 2rem;
    background: rgba(17, 24, 32, 0.16);
}

.calendar-list {
    display: grid;
    gap: 0.58rem;
    transition: height 0.42s ease;
}

.calendar-list .calendar-item[hidden] {
    display: none;
}

.calendar-status {
    display: flex;
    gap: 1.15rem;
    justify-content: flex-end;
    align-items: center;
    margin: 0.95rem 0 1.2rem;
    color: #171717;
    font: 300 0.76rem var(--font-body);
    letter-spacing: 0.14em;
    line-height: 1.35;
    text-transform: uppercase;
}

.calendar-status a {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding-right: 2.45rem;
    color: #8a6522;
    font: inherit;
    letter-spacing: inherit;
    text-decoration: none;
}

.calendar-status a::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 1.7rem;
    height: 1px;
    background: currentColor;
    transform: translateY(-50%);
}

.calendar-status a::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 0.48rem;
    height: 1px;
    background: currentColor;
    transform: translateY(-50%) rotate(45deg);
    transform-origin: right center;
}

.calendar-list.is-fading-out .calendar-item {
    opacity: 0;
    transform: translateY(-0.45rem);
}

.calendar-list.is-fading-in .calendar-item {
    animation: calendarItemFadeIn 0.34s ease both;
}

.calendar-list.is-fading-in .calendar-item:nth-child(2) { animation-delay: 0.025s; }
.calendar-list.is-fading-in .calendar-item:nth-child(3) { animation-delay: 0.05s; }
.calendar-list.is-fading-in .calendar-item:nth-child(4) { animation-delay: 0.075s; }
.calendar-list.is-fading-in .calendar-item:nth-child(5) { animation-delay: 0.1s; }
.calendar-list.is-fading-in .calendar-item:nth-child(6) { animation-delay: 0.125s; }
.calendar-list.is-fading-in .calendar-item:nth-child(7) { animation-delay: 0.15s; }
.calendar-list.is-fading-in .calendar-item:nth-child(8) { animation-delay: 0.175s; }
.calendar-list.is-fading-in .calendar-item:nth-child(9) { animation-delay: 0.2s; }
.calendar-list.is-fading-in .calendar-item:nth-child(10) { animation-delay: 0.225s; }

@keyframes calendarItemFadeIn {
    from {
        opacity: 0;
        transform: translateY(0.55rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calendar-item {
    display: grid;
    grid-template-columns: 130px minmax(145px, .58fr) 116px minmax(245px, 1.08fr) minmax(310px, 1.25fr) minmax(160px, .48fr);
    gap: 1.15rem;
    align-items: center;
    min-height: 6.45rem;
    padding: .68rem .68rem .68rem 1.35rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(17, 24, 32, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(65, 46, 26, 0.04);
}

.calendar-item__date {
    color: #8f6826;
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1.15;
    padding-right: 1.35rem;
    border-right: 1px solid rgba(17, 24, 32, 0.14);
}

.calendar-item__date span {
    display: block;
    margin-top: 0.35rem;
    color: rgba(23, 23, 23, 0.68);
    font-size: 0.98rem;
    font-weight: 400;
}

.calendar-item__location {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    color: #34404a;
}

.calendar-item__location i {
    flex: 0 0 auto;
    position: relative;
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0.1rem;
    background: #fff;
    border: 1px solid #c9962f;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
}

.calendar-item__location i::before,
.calendar-item__location i::after {
    content: "";
    position: absolute;
    border-radius: inherit;
}

.calendar-item__location i::before {
    inset: 2px;
    background: #c1121f;
}

.calendar-item__location i::after {
    left: 50%;
    top: 50%;
    width: 0.2rem;
    height: 0.2rem;
    border-radius: 50%;
    background: #fff;
    transform: translate(-50%, -50%);
}

.calendar-item__location small {
    display: block;
}

.calendar-item__category {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    font-weight: 850;
    color: #8a6522;
    padding-right: 0.9rem;
    border-right: 1px solid rgba(17, 24, 32, 0.14);
    text-align: center;
}

.calendar-item__category img {
    width: 2.35rem;
    height: 2.35rem;
    object-fit: contain;
}

.calendar-item--wettbewerb .calendar-item__category span {
    color: #062d55;
}

.calendar-item--jubilaeum .calendar-item__category span {
    color: #c1121f;
}

.calendar-item__title {
    margin: 0;
    padding: 0;
    border: 0;
    font-family: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
    font-size: clamp(1.35rem, 1.8vw, 2rem);
    font-weight: 700;
    line-height: 0.98;
    color: #171717;
}

.content-inner .calendar-item__title {
    margin: 0;
    padding: 0;
    border: 0;
    font-family: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
    font-size: clamp(1.35rem, 1.8vw, 2rem);
    font-weight: 400 !important;
    font-synthesis-weight: none;
    line-height: 0.98;
    color: #171717;
}

.calendar-item__desc {
    display: grid;
    gap: 0.72rem;
    color: #34404a;
}

.calendar-item__desc p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.45;
}

.calendar-item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.calendar-item__link {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.2rem;
    padding: 0.62rem 0.95rem;
    background: rgba(255, 255, 255, 0.62);
    color: #8a6522 !important;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid #c9962f;
}

.calendar-item__link--report {
    background: #8a6522;
    border-color: #8a6522;
    color: #fff !important;
}

.content-inner a.calendar-item__link {
    color: #8a6522 !important;
    font-weight: 500;
    text-decoration: none;
}

.content-inner a.calendar-item__link--report {
    color: #fff !important;
}

.calendar-item__link::after {
    content: "\2197";
}

.calendar-item__thumb {
    width: 100%;
    height: 5.45rem;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(17, 24, 32, 0.12);
}

.month-rail {
    --rail-dot-size: 1.25rem;
    --rail-dot-center: 0.55rem;
    --rail-edge-offset: 50%;
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    color: #062d55;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-align: center;
    text-transform: uppercase;
}

.month-rail::before {
    content: "";
    position: absolute;
    left: var(--rail-edge-offset);
    right: var(--rail-edge-offset);
    top: var(--rail-dot-center);
    height: 2px;
    background: rgba(185, 138, 58, 0.72);
}

.month-rail button {
    position: relative;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
}

.month-rail button:hover,
.month-rail button.is-active {
    color: #c1121f;
}

.month-rail button::before {
    content: "";
    position: absolute;
    left: 50%;
    top: calc((var(--rail-dot-center) - 2rem) - (var(--rail-dot-size) / 2));
    width: var(--rail-dot-size);
    height: var(--rail-dot-size);
    border: 2px solid #c9962f;
    border-radius: 999px;
    background: #f8f4ec;
    transform: translateX(-50%);
}

.month-rail button:hover::before,
.month-rail button.is-active::before {
    border-color: #c1121f;
    background: #c1121f;
}

.month-rail button.is-active::before {
    box-shadow: inset 0 0 0 4px #f8f4ec;
}

.contact-form-anchor {
    scroll-margin-top: calc(var(--header-height) + 2rem);
}

.contact-form-section {
    margin-top: clamp(2rem, 5vw, 4rem);
}

.event-submit-form {
    margin-top: clamp(2rem, 5vw, 4rem);
    padding-top: clamp(1.2rem, 3vw, 2rem);
    border-top: 2px solid rgba(201, 150, 47, 0.35);
}

.event-submit-page {
    padding-top: calc(var(--header-height) + clamp(1.4rem, 3vw, 2.6rem));
}

.event-submit-page .content-inner {
    max-width: min(1480px, calc(100vw - 2rem));
    padding-top: clamp(1rem, 2.4vw, 2.2rem);
}

.event-submit-page .block-heading {
    max-width: 760px;
    margin-bottom: clamp(1.6rem, 3vw, 2.5rem);
}

@media (min-width: 1320px) {
    .event-submit-page .content-inner {
        display: grid;
        grid-template-columns: minmax(300px, 0.55fr) minmax(780px, 1fr);
        gap: clamp(2rem, 4vw, 4.5rem);
        align-items: start;
    }

    .event-submit-page .block-heading {
        position: sticky;
        top: calc(var(--header-height) + 1.5rem);
        margin-bottom: 0;
    }
}

.event-submit-page .block-heading h1 {
    font-size: clamp(3rem, 5vw, 5rem);
}

.event-submit-page .block-heading::after {
    width: min(14rem, 34vw);
}

.event-submit-page .event-submit-form {
    width: 100%;
    max-width: none;
    margin-top: 0;
    padding: clamp(1.2rem, 3vw, 2.2rem);
    border: 1px solid rgba(201, 150, 47, 0.48);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: 0 18px 48px rgba(65, 46, 26, 0.06);
}

.contact-form-section h2,
.event-submit-form legend {
    margin: 0 0 clamp(2rem, 3vw, 2.6rem);
    font-family: var(--font-body);
    color: #171717;
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    font-weight: 850;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.event-submit-form fieldset {
    margin: 0;
    padding: clamp(1.2rem, 3vw, 2rem) 0;
    border: 0;
    border-top: 1px solid rgba(201, 150, 47, 0.28);
}

.event-submit-form fieldset:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.event-submit-form fieldset + fieldset {
    margin-top: clamp(0.8rem, 2vw, 1.4rem);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-row--quarters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.form-row--date-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-group {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.form-group label {
    color: rgba(23, 23, 23, 0.72);
    font-size: 0.82rem;
    font-weight: 750;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    min-height: 46px;
    padding: 0.72rem 0.85rem;
    border: 1px solid rgba(17, 24, 32, 0.18);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.72);
    color: #171717;
    font: inherit;
}

.form-group select {
    padding-right: 2.6rem;
}

.form-group input[type="file"] {
    min-height: 46px;
    padding: 0.5rem 0.72rem;
    background: rgba(255, 255, 255, 0.88);
    cursor: pointer;
}

.form-group input[type="file"]::file-selector-button,
.form-group input[type="file"]::-webkit-file-upload-button {
    min-height: 32px;
    margin-right: 0.78rem;
    padding: 0.45rem 0.82rem;
    border: 1px solid #b9852a;
    border-radius: 0;
    background: linear-gradient(135deg, #d7ad58 0%, #b9852a 100%);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.form-group textarea {
    min-height: 9rem;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: 2px solid rgba(201, 150, 47, 0.36);
    border-color: #c9962f;
    background: #fff;
}

.form-actions {
    margin-top: 1.2rem;
}

.form-feedback {
    min-height: 1.5rem;
    margin-top: 1rem;
    font-weight: 700;
}

.form-feedback.success {
    color: #1f7a3a;
}

.form-feedback.error {
    color: #c1121f;
}

.error-page {
    min-height: 56vh;
    padding: clamp(2rem, 5vw, 5rem) 1rem;
}

.error-page__code {
    font-family: Georgia, "Times New Roman", serif;
    color: #c1121f;
    font-size: clamp(6rem, 22vw, 16rem);
    font-weight: 900;
    letter-spacing: 0;
}

.error-page__title {
    font-family: Georgia, "Times New Roman", serif;
    color: #171717;
    font-size: clamp(2rem, 4vw, 3.4rem);
    letter-spacing: 0;
}

.error-page__message {
    color: rgba(23, 23, 23, 0.7);
}

.footer {
    background: #111922;
    color: rgba(255, 255, 255, 0.78);
    border-top: 0;
}

.footer-accent {
    display: none;
}

.footer-inner {
    max-width: none;
    padding: clamp(2.2rem, 5vw, 4.5rem) clamp(1.25rem, 5vw, 6rem);
    grid-template-columns: minmax(220px, 0.85fr) minmax(240px, 1fr) minmax(260px, 1fr);
    gap: 2.4rem;
    align-items: center;
}

.footer-col--brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    max-width: none;
}

.footer-logo,
.footer-logo .site-logo-img {
    width: 6.9rem;
    height: auto;
}

.footer-brand-name {
    max-width: 17rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    line-height: 1.45;
    text-transform: uppercase;
}

.footer-col-heading {
    display: none;
}

.footer-tagline,
.footer-services,
.footer-claim,
.footer-contact-item,
.footer-copyright,
.footer-credit {
    color: rgba(255, 255, 255, 0.58);
}

.footer a,
.footer-contact-item a,
.meta-links a,
.footer-credit a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
}

.footer a:hover,
.footer-contact-item a:hover,
.meta-links a:hover,
.footer-credit a:hover {
    color: #fff;
}

.footer-col--nav {
    justify-self: center;
}

.footer-col--about {
    justify-self: end;
}

.footer .meta-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.4rem;
    font-size: 0.78rem;
    font-weight: 300;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.footer .meta-links a {
    width: auto;
    padding: 0;
    font-size: inherit;
    line-height: inherit;
}

.site-footer__meta address {
    display: grid;
    gap: 0.22rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.76rem;
    font-style: normal;
    font-weight: 300;
    letter-spacing: 0.035em;
    line-height: 1.45;
    text-align: right;
}

.site-footer__meta address strong {
    color: #fff;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-bottom {
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 clamp(1.25rem, 5vw, 6rem);
    padding: 1.25rem 0 1.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.72rem;
    font-weight: 300;
    letter-spacing: 0.045em;
    line-height: 1.5;
}

.downloads-page {
    padding-top: calc(var(--header-height) + clamp(1.4rem, 4vw, 3.2rem));
    padding-bottom: clamp(4.5rem, 7vw, 7rem);
    background:
        url("../assets/images/paper-texture.webp") left top / 360px auto repeat,
        #f8f4ec;
}

.downloads-page .content-inner--wide {
    max-width: min(1320px, calc(100vw - 8rem));
    padding-inline: 0;
}

.downloads-list {
    display: grid;
    gap: clamp(1.25rem, 3vw, 2.5rem);
}

.downloads-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: center;
    padding: clamp(2rem, 5vw, 4rem);
    border: 1px solid rgba(201, 150, 47, 0.48);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: 0 18px 48px rgba(65, 46, 26, 0.06);
}

.downloads-feature h2 {
    margin: 0 0 1rem;
    padding: 0;
    border: 0;
    font-family: var(--font-body);
    font-size: clamp(1.45rem, 2.1vw, 2rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.12;
}

.downloads-feature p:not(.eyebrow) {
    max-width: 39rem;
    color: rgba(23, 23, 23, 0.74);
}

.downloads-feature__button {
    width: fit-content;
    margin-top: 1.2rem;
    text-decoration: none !important;
    border-bottom: 0 !important;
}

.downloads-feature__asset {
    display: grid;
    place-items: center;
    min-height: clamp(15rem, 27vw, 26rem);
    overflow: hidden;
    border: 1px solid rgba(17, 24, 32, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.38);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.downloads-feature__asset:hover {
    transform: translateY(-3px);
    border-color: rgba(201, 150, 47, 0.52);
}

.downloads-feature__asset img {
    width: min(78%, 20rem);
    height: auto;
}

.downloads-feature__preview {
    display: grid;
    place-items: center;
    width: min(78%, 20rem);
    min-height: min(20rem, 58vw);
}

.downloads-feature__preview--image img {
    width: 100%;
    max-height: 20rem;
    object-fit: contain;
}

.downloads-feature__preview--file {
    position: relative;
    align-self: stretch;
    justify-self: stretch;
    width: 100%;
    min-height: 100%;
    border-radius: inherit;
    background: url("../assets/images/download-document-gold.webp") center / cover no-repeat;
}

.downloads-feature__file-label {
    position: absolute;
    top: calc(30% + 44px);
    left: 50%;
    z-index: 1;
    margin: 0;
    padding: 0.42rem 0.9rem;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(138, 101, 34, 0.42);
    border-radius: 3px;
    background: rgba(255, 250, 240, 0.78);
    color: #6f4f18;
    font-size: clamp(1.48rem, 2.2vw, 1.8rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
}

.downloads-feature__download-icon {
    position: absolute;
    bottom: calc(11% + 40px);
    left: 50%;
    display: grid;
    place-items: center;
    width: 3.4rem;
    height: 3.4rem;
    transform: translateX(-50%);
    border: 1px solid rgba(138, 101, 34, 0.38);
    border-radius: 50%;
    background: rgba(255, 250, 240, 0.82);
    color: #8b651f;
    box-shadow: 0 8px 18px rgba(65, 46, 26, 0.14);
}

.downloads-feature__download-icon svg {
    width: 1.75rem;
    height: 1.75rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.media-placeholder__asset {
    position: relative;
    min-height: clamp(14rem, 25vw, 24rem);
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(12, 44, 73, 0.82), rgba(12, 44, 73, 0.18)),
        url("../assets/images/stunning-photorealistic-balloon-image.webp") center / cover no-repeat;
}

.media-placeholder__asset span {
    color: #fff;
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    font-weight: 500;
    line-height: 0.95;
    text-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.downloads-page__back {
    margin-top: clamp(2rem, 4vw, 3.5rem);
}

@media (max-width: 860px) {
    .site-logo-text {
        max-width: 12rem;
        font-size: 1rem;
    }

    .content-inner {
        background: transparent;
        border: 0;
        padding-inline: 1rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .form-row,
    .form-row--quarters,
    .form-row--date-grid,
    .calendar-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.25rem;
    }

    .calendar-item__date,
    .calendar-item__category {
        padding-right: 0;
        border-right: 0;
    }

    .calendar-item__thumb {
        height: 9.2rem;
    }

    .calendar-tools__divider {
        display: none;
    }

    .events-index .content-inner--wide {
        max-width: calc(100vw - 2rem);
        padding-inline: 1rem;
    }

    .events-index .year-section {
        max-width: calc(100vw - 2rem);
        padding-inline: 1rem;
    }

    .year-section__top {
        grid-template-columns: 1fr;
    }

    .austria-map {
        width: min(100%, 34rem);
        margin-inline: auto;
    }

    .map-pin {
        font-size: 0.68rem;
    }

    .map-pin i {
        width: 1.85rem;
        height: 1.85rem;
        border-width: 2px;
    }

    .map-pin i::after {
        width: 0.42rem;
        height: 0.42rem;
    }

    .month-rail {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.6rem 0.5rem;
    }

    .events-index__actions {
        display: flex;
        flex-wrap: wrap;
    }

    .events-index__actions .text-link--strong {
        margin-left: 0;
    }

    .downloads-page .content-inner--wide {
        max-width: calc(100vw - 2rem);
        padding-inline: 1rem;
    }

    .downloads-feature {
        grid-template-columns: 1fr;
        padding: 1.25rem;
    }
}
