/* Import */
@import url(fonts.css);
@import url(hover-oe2.css);
@import url(lightcase.css);
@import url(tiny-slider.css);

:root {
	--siwigold: #a08a7f;
    --siwiviolett: #726fda;
    --siwiblue: #1d5aad;
}

.text-primary {
    color: var(--siwiviolett) !important;
}

.nav-link {
    color: var(--siwiviolett)
}

.form-check-input:checked {
	background-color: var(--siwiviolett) !important;
	border-color: var(--siwiviolett) !important;
}

.btn-primary {
	--bs-btn-color: #fff;
	--bs-btn-bg: var(--siwiviolett) !important;
	--bs-btn-border-color: transparent;
	--bs-btn-hover-color: #fff;
	--bs-btn-hover-bg: #5C59DB;
	--bs-btn-hover-border-color: transparent;
	--bs-btn-focus-shadow-rgb: 49, 132, 253;
	--bs-btn-active-color: #fff;
	--bs-btn-active-bg: #0a58ca;
	--bs-btn-active-border-color: #0a53be;
	--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
	--bs-btn-disabled-color: #fff;
	--bs-btn-disabled-bg: #0d6efd;
	--bs-btn-disabled-border-color: #0d6efd;
}

body {
	font-family: 'Encode';
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
}

h1 {
    font-size: 2rem; 
    font-weight: 800; 
    line-height: 1.2; 
    color: #000; 
    text-transform: uppercase;
}

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

a {
    text-decoration: none;
}

header {
}

header .blackbox .claim {
	color: var(--siwigold);
	text-transform: uppercase;
	font-weight: 900;
	font-size: 175%;
	line-height: 100%;
    transition: font-size 0.3s ease-in-out;
}

header .superordinate {
	height: 47px;
	background-color: #fff;
}

header .superordinate div {
	height: 100%;
}

header .superordinate .siwilink a {
	display: block;
	height: 100%;
}

header .superordinate .siwilink img {
	height: 80%;
}

header .superordinate .kb-link a {
	color: #000 !important;
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
}

.controls-group > div {
    display: flex;
    align-items: center;
    gap: 12px;
}


header .roofline {
	height: 20px;
	position: sticky;
}

header .blackbox {
	background-color: #000;
}

header .blackbox,
header .blackbox div,
header .blackbox input,
header .blackbox label {
	color: #fff;
}


header .blackbox .navibox {
	padding-top: 30px;
	margin-bottom: 50px;
}

.navibox > div {
    padding-bottom: 5px;
    font-weight: 700;
}

.navibox .naviboxitem {
    min-width: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
}  


.searchbox input {
	background-color: #000;
	width: 100%;
	border: none;
	box-shadow: none;
	outline: none;
}

#kontrastbutton {
    width: 30px;
    height: 30px;
    background: url('../images/contrast.svg') no-repeat center center/contain;
    cursor: pointer;
}

#schriftkleiner {
    font-size: 70%;
    font-weight: 700;
    border-right: 1px solid #fff;
    padding-right: 8px;
    margin-right: 3px;
    color: #fff;
    cursor: pointer;
}

#schriftgroesser {
    font-size: 120%;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
}


/* Date Navigation Styles */
.btn-circle-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.btn-circle-nav:hover {
    opacity: 0.7;
}

.btn-circle-nav svg {
    display: block;
}

/* Filter Badge Styles */
.filter-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.9rem;
    color: #fff;
    white-space: nowrap;
}

.filter-remove {
    margin-left: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 1.3rem;
    line-height: 1;
    font-weight: 300;
    transition: opacity 0.2s ease;
}

.filter-remove:hover {
    opacity: 0.7;
    color: #fff;
}

.filter-clear-all {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    text-decoration: underline;
    white-space: nowrap;
    cursor: pointer;
}

.filter-clear-all:hover {
    color: #fff;
}


/* Mobile versions of font size and contrast controls */
#schriftkleiner-mobile {
    font-size: 70%;
    font-weight: 700;
    border-right: 1px solid #fff;
    padding-right: 8px;
    margin-right: 3px;
    color: #fff;
    cursor: pointer;
}

#schriftgroesser-mobile {
    font-size: 120%;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
}

#kontrastbutton-mobile {
    width: 30px;
    height: 30px;
    background: url('../images/contrast.svg') no-repeat center center/contain;
    cursor: pointer;
}


.menuicon {
    display: block;
    width: 36px;
    height: 20px;
    position: relative;
    cursor: pointer;
}

.menuicon > div {
    width: 90%;
    height: 2px;
    background-color: #fff;
    position: absolute;
}

.menuicon > div:nth-of-type(1) {
    top: 0;
    opacity: 1;
    transition: all 0.3s ease-in-out;
}

.menuicon > div:nth-of-type(2) {
    top: calc(50% - 1px);
    transform: scaleX(1);
    transform-origin: center;
    transition: all 0.3s ease-in-out;
}

.menuicon > div:nth-of-type(3) {
    bottom: 0;
    opacity: 1;
    transition: all 0.3s ease-in-out;
}

.menuicon > div:nth-of-type(4) {
    top: calc(50% - 1px);
    transform: rotate(0);
    transform-origin: center;
    transition: all 0.3s ease-in-out;
}

.menuicon > div:nth-of-type(5) {
    top: calc(50% - 1px);
    transform: rotate(0);
    transform-origin: center;
    transition: all 0.3s ease-in-out;
}

.menuicon-active > div:nth-of-type(3),
.menuicon-active > div:nth-of-type(1) {
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.menuicon-active > div:nth-of-type(2) {
    transform: scaleX(0);
    transition: all 0.3s ease-in-out;
}

.menuicon-active > div:nth-of-type(4) {
    transform: rotate(-45deg);
    top: calc(50% - 1px);
    transition: all 0.3s ease-in-out;
    height: 2.5px;
}

.menuicon-active > div:nth-of-type(5) {
    transform: rotate(45deg);
    top: calc(50% - 1px);
    transition: all 0.3s ease-in-out;
    height: 2.5px;
}

.borderbottom {
    border-bottom: 1px solid #fff;
}


.mask-kultur-aktuell {
  width: 100%;
  padding-bottom: 35%;
  background-size: 100%;
  -webkit-mask-image: url('../../bilder/kultur-aktuell-mask.svg');
  mask-image: url('../../bilder/kultur-aktuell-mask.svg');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center top;
  mask-position: center top;
  -webkit-mask-size: contain;
  mask-size: contain;

  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mask-kultur-aktuell::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Hover effect for clickable logo */
a:hover .mask-kultur-aktuell {
  opacity: 0.85;
  transform: scale(1.02);
}

.headline-block h1,
.exhibcontainer h2,
.eventcontainer h2 {
	font-weight: 900;
	text-transform: uppercase;
	font-size: 250%;
	line-height: 90%;
	letter-spacing: -1px;
	transform: font-size 0.5s;
	background-image: radial-gradient(#f9b000 0, #f9b000 20%, #726fda 25%, #726fda 60%, #1d5aad 70%, #1d5aad 100%);
	text-fill-color: transparent;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	-webkit-background-clip: text;
	position: relative;
	padding-bottom: 10px;
	background-size: 50% 150%;
}

.date-navigation-container {
    background-color: #000; 
    position: sticky; 
    top: 0px;
    z-index: 100000;
}

.date-navigation-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    background: #000;
    margin-left: -15px;
    margin-right: -15px;
    padding-left: 15px;
    padding-right: 15px;
}

.date-navigation-bar .currentdate {
    color: #fff;
    font-size: 1.5rem;
}

#filter-orte-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 200px;
    z-index: 100001;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    margin-top: 8px;"
}

#filter-sparten-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 200px;
    z-index: 100002;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    margin-top: 8px;"
}

.mobileMenuIconbox {
    color: #fff;
}

.mobileMenuIconbox svg {
    margin-right: 15px;
    width: 26px;
    cursor: pointer;
}

.headline-block h1 {
    font-size: 350%
}

.exhibcontainer h2::before,
.eventcontainer h2::before {
	content: "";
	display: block;
	width: 100%;
	height: 2px;
	position: absolute;
	left: 0px;
	bottom: 5px;
	background-color: #000;
}

.exhibcontainer h2::after,
.eventcontainer h2::after {
	content: "";
	display: block;
	width: 100px;
	height: 5px;
	position: absolute;
	left: 0px;
	bottom: 0px;
	background-color: #000;
}

.eventcatblock-big {
	padding-right: 8.333%;
}

.eventbox {
    position: relative;
}

.eventboxtrigger {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    display: block;
}

.eventbox .eventroofline{
	font-weight: 700;
    margin-bottom: 0.5em;
}

.eventbox .eventroofline span {
	/* white-space: nowrap; */
}

.eventbox h3 {
	font-weight: 900;
	text-transform: uppercase;
	font-size: 150%;
}

.readmore {
	padding: 2px 15px;
	border-radius: 20px;
	border: 2px solid #000;
	display: inline-block;
	font-weight: 600;
	margin-top: 0.75em;
    position: relative;
    left: -2px;
}

.pillbutton {
    border: 2px solid #000;
    padding: 0.375rem 1.25rem 0.375rem 0.75rem !important;
    border-radius: 30px;
}

.iconbox {
	margin-top: 20px;
	margin-bottom: 0px;
	display: flex;
	align-items: flex-start;
    position: relative;
    z-index: +1;
}

.iconbox a {
	margin-right: 10px;
    color: #000;
}

.ctacontainer {
    background-color: #000;
    color: #fff;
    font-size: 125%;
    font-weight: 300;
}

.exhibcontainer {
    padding-bottom: 50px;
}

.exhibbox {
    border-bottom: 2px solid #000;
    padding-top: 30px;
    padding-bottom: 30px;
    position: relative;
}

.exhibdate {
    font-weight: 700;
}

.exhibtitle h3 {
    font-weight: 900;
    text-transform: uppercase;
}

.exhibimgbox {
    width: 100%;
    padding-bottom: 75%;
    position: relative;
}

.exhibimgbox > img {
    object-fit: contain;
    width: 100%;
    height: 100%;
    position: absolute;
}

.exhiblocation span {
    font-weight: 700;
}

.exhibcontainer > div:last-of-type {
    border-bottom: none;
}

/* Footer -------------------------------------------*/

.nachoben {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background-color: var(--siwiviolett);
    color: #fff;
    position: fixed;
    right: 15px;
    bottom: 15px;
    display: none;
}

.nachoben > div {
    height: 100%;
    width: 100%;
}

.nachoben svg {
    width: 35px;
    cursor: pointer;
    margin-bottom: 3px;
}

footer {
    background-color: #000;
    padding-top: 100px;
    padding-bottom: 200px;
}

footer div,
footer p,
footer li,
footer a {
    color: #fff;
}

.borderleft {
    border-left: 1px solid #fff;
    padding-left: 30px;
    padding-bottom: 15px;
}

/* Ensure claim styling matches category headings for consistency */
header .blackbox .claim {
    /* Keep existing claim styles and ensure it matches category headings */
    letter-spacing: -1px;
}

/* Filter hidden elements - completely removed from layout */
.filter-hidden {
    display: none !important;
}

/* Make event grid responsive to filtering */
.eventcontainer .grid {
    display: flex;
    flex-wrap: wrap;
}

.eventcontainer .grid > .event-catblock,
.eventcontainer .grid > .eventcatblock {
    flex: 0 0 auto;
}

/* Dark theme support for hero section */
[data-theme="dark"] .mask-kultur-aktuell {
    opacity: 0.9;
}

[data-theme="dark"] header .blackbox .claim {
    color: var(--siwigold);
}

/* Event Status Styling (Cancelled/Postponed) */
.event-cancelled, .event-postponed, .event-closed {
    opacity: 0.4;
}

.event-status-badge {
    margin-bottom: 10px;
}

.event-status-badge .badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
}

.event-status-badge-detail {
    margin-bottom: 15px;
}

.event-status-badge-detail .badge {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
}

/* VREIHE (Series/Status Info) Styling */
.event-vreihe {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #d9534f;
    font-weight: 600;
    padding: 0.5rem 0;
}

.event-vreihe-detail {
    font-size: 1.1rem;
    line-height: 1.5;
    color: #d9534f;
    font-weight: 600;
    padding: 0.5rem 0;
    border-left: 4px solid #d9534f;
    padding-left: 1rem;
}


.grauer-block {
    background-color: #f5f5f5;
    padding: 20px;
    margin-bottom: 20px;
}

.form-acc-trigger {
    font-size: 1.8rem;
    font-weight: 800;
}

@media (max-width: 767px) {
    .grauer-block {
        padding: 12px 10px;
        margin-bottom: 10px;
    }
    .grauer-block .container {
        padding-left: 0;
        padding-right: 0;
    }
    .grauer-block .p-4 {
        padding: 0 !important;
    }
    .form-acc-trigger {
        font-size: 1.1rem;
    }
    /* Time picker: stack selects on small screens */
    .time-picker-row {
        flex-wrap: wrap;
        gap: 6px !important;
    }
    .time-picker-row .form-select {
        width: auto;
        min-width: 70px;
        flex: 0 0 auto;
    }
    .time-picker-row input[type="text"] {
        width: 72px !important;
        min-width: 0;
    }
}


/* Mobile: Make Kultur!Büro.online text smaller to fit */
@media (max-width: 991px) {
    
    header .blackbox .claim {
        font-size: 1.8em;
        transition: font-size 0.3s ease-in-out;
    }

    .date-navigation-bar .currentdate {
        font-size: 1.15rem;
    }

    #active-filters .filter-badge {
        font-size: 0.8rem;
        padding: 4px 9px;
    }

    #active-filters .filter-clear-all {
        font-size: 0.75rem;
    }

    .mobilenavElement
    {
        display: none;
    }

    .borderleft {
        border-left: none;
        padding-left: 0px;
        padding-bottom: 15px;
    }

    #mobilesearchbox form {
        margin-top: 11px;
    }

    #mobilecontrols > div {
        margin-top: 11px;
    }

    #filter-orte-dropdown {
        position: relative;
        display: block !important;
    }

    #filter-sparten-dropdown {
        position: relative;
        display: block !important;
    }

    .ctacontainer {
        font-size: 120%;
    }
}

@media (max-width: 768px) {
    header .blackbox .claim {
        font-size: 1.6em;
        transition: font-size 0.3s ease-in-out;
    }

    #active-filters {
        justify-content: center;
    }
}

@media (max-width: 576px) {

    h1 {
        font-size: 175%;
    }

    h2,
    .eventcontainer h2,
    .exhibcontainer h2 {
        font-size: 175%;
    }

    h3 {
        font-size: 135%;
    }

    h4 {
        font-size: 125%;
    }

    h5 {
        font-size: 115%;
    }

    h6 {
        font-size: 110%;
    }

    .mask-kultur-aktuell {
        width: 75%;
        padding-bottom: 28%;
    }


    header .superordinate .kb-link a {
        font-size: 0.75rem;
    }

    header .blackbox .claim {
        font-size: 1.3em;
        transition: font-size 0.3s ease-in-out;
    }
}

@media (max-width: 400px) {
    header .superordinate .kb-link a {
        font-size: 0.65rem;
    }
}

@media (max-width: 350px) {

    header .blackbox .claim {
        font-size: 1.0em;
        transition: font-size 0.3s ease-in-out;
    }
}

/* ============================================
   Event Detail Page
   ============================================ */

/* Event detail section - light mode */
.event-detail-section {
    background-color: #fff;
}

/* Event detail text colors - light mode */
.event-detail-date {
    color: #000;
}

.event-detail-description {
    color: #333;
}

.event-detail-credit {
    color: #666;
}

.event-detail-text {
    color: #000;
}

/* Dark Mode - Event Detail Page */
[data-theme="dark"] .event-detail-section {
    background-color: #1a1a1a;
}

/* Category heading h2 underlines */
[data-theme="dark"] .exhibcontainer h2::before,
[data-theme="dark"] .eventcontainer h2::before {
    background-color: #555;
}

[data-theme="dark"] .exhibcontainer h2::after,
[data-theme="dark"] .eventcontainer h2::after {
    background-color: #777;
}

/* Event title h1 */
[data-theme="dark"] .exhibcontainer h1 {
    color: #f0f0f0;
}

/* Event detail text colors - dark mode */
[data-theme="dark"] .event-detail-date {
    color: #e0e0e0;
}

[data-theme="dark"] .event-detail-description {
    color: #ccc;
}

[data-theme="dark"] .event-detail-credit {
    color: #999;
}

[data-theme="dark"] .event-detail-text {
    color: #e0e0e0;
}

/* Icon box links */
[data-theme="dark"] .exhibcontainer .iconbox a {
    color: #e0e0e0 !important;
}

/* All links and spans with inline color in event detail */
[data-theme="dark"] .event-detail-section a[style*="color: #000"],
[data-theme="dark"] .event-detail-section span[style*="color: #000"] {
    color: #e0e0e0 !important;
}

/* SVG icons in event detail */
[data-theme="dark"] .event-detail-section svg {
    stroke: #e0e0e0;
}

[data-theme="dark"] .event-detail-section svg[fill="currentColor"] {
    fill: #e0e0e0;
}

/* Back button */
[data-theme="dark"] .exhibcontainer .btn-link {
    color: #e0e0e0 !important;
}

/* No image placeholder */
[data-theme="dark"] .exhibcontainer .bg-light {
    background-color: #2a2a2a !important;
}

[data-theme="dark"] .exhibcontainer .bg-light .text-muted {
    color: #888 !important;
}

/* Event status badges (Abgesagt, Verschoben, etc.) - Dark mode */
[data-theme="dark"] .event-vreihe-detail {
    color: #ff6b6b;
    border-left-color: #ff6b6b;
}

[data-theme="dark"] .event-vreihe-detail.text-dark {
    color: #e0e0e0 !important;
}

[data-theme="dark"] a.event-vreihe-detail.text-dark {
    color: #e0e0e0 !important;
}

[data-theme="dark"] a.event-vreihe-detail.text-dark:hover {
    color: #fff !important;
}

[data-theme="dark"] .event-vreihe {
    color: #ff6b6b;
}