/* =========================
   Fonts
   ========================= */
@font-face {
  font-family: "Akkurat Pro";
  src: url("./fonts/AkkRg_Pro_1.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Akkurat Pro";
  src: url("./fonts/AkkBd_Pro_1.otf") format("opentype");
  font-weight: 700;
  font-style: bold;
  font-display: swap;
}
@font-face {
  font-family: "Baskerville";
  src: url("./fonts/Baskerville-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Akkurat Black";
  src: url("./fonts/AkkuratLLWeb-Black.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* =========================
       Design Tokens
       ========================= */
:root {
  --c-ink: #282828;
  --c-ink-weak: #333333;
  --c-ink-muted: #666;
  --c-white: #fff;

  --radius: 12px;
  --radius-pill: 53px;

  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 10px;
  --space-4: 12px;
  --space-5: 14px;
  --space-6: 16px;
  --space-7: 20px;
  --space-8: 24px;
  --space-9: 32px;

  --ff-base: "Akkurat Pro", system-ui, -apple-system, Segoe UI, Roboto,
    "Helvetica Neue", Arial, sans-serif;

  /* libs */
  --gridstack-animation-duration: 5.8s;
}

/* =========================
       Bootstrap Accordion (Overrides)
       ========================= */
.accordion {
  --bs-accordion-bg: transparent;
  --bs-accordion-border-color: transparent;
  --bs-accordion-active-bg: transparent;
  --bs-accordion-active-border-color: transparent;
  --bs-accordion-inner-border-radius: 0;
}
.accordion-item {
  padding: 0 !important;
}

.accordion-button {
  border-top: 2px solid var(--c-ink);
  border-radius: 0 !important;
  color: var(--c-ink) !important;
  font-weight: 900 !important;
  font-size: 22px !important;
  padding-left: 0 !important;
  padding-top: 5px !important;
  box-shadow: none !important;
}
.accordion-button:hover,
.accordion-button[aria-expanded="true"] {
  border-top-width: 4px !important;
}
.accordion-button:focus {
  box-shadow: none !important;
  outline: none !important;
}
.accordion-button:not(.collapsed) {
  box-shadow: none !important;
}

.accordion-collapse,
.accordion-body {
  padding: 0 !important;
}

/* =========================
       Base
       ========================= */
html {
  display: flex;
  justify-content: center;
}
body {
  margin: 0;
  font-family: var(--ff-base);
  display: flex;
  justify-content: center;
  align-items: start;
  height: calc(var(--vh, 1vh) * 100);
  width: clamp(1200px, 80vw, 1800px);
  padding: var(--space-7);
  position: relative;
  z-index: 0;
}

/* Background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  height: 100vh;
  background: url("./image/home-bg.png") no-repeat bottom/cover;
  filter: saturate(0) brightness(0.4);
  transition: filter 1.5s ease;
  z-index: -2;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  height: 100vh;
  pointer-events: none;
  background: url("./image/noise-lines.png") repeat;
  mix-blend-mode: multiply;
  opacity: 1;
  transition: opacity 0.5s ease;
  z-index: -1;
}
body.gallery-active::after {
  opacity: 0;
}
body.gallery-active::before {
  filter: saturate(1) brightness(1);
}

/* =========================
       Typography
       ========================= */
h2 {
  font-family: "Akkurat Black", sans-serif;
  font-weight: 900;
  font-size: 22px;
  margin: 0;
}
h4 {
  margin: 0;
}
h6 {
  font-family: "Akkurat Black";
  font-weight: 900;
  font-size: 16px;
  color: var(--c-ink);
  line-height: 1.05;
  letter-spacing: -0.3px;
  margin: 0;
}
hr {
  margin: var(--space-1) 0;
  opacity: 1;
}

/* =========================
       Gallery / Carousel
       ========================= */
#galleryCarouselWrapper {
  transition: opacity 1s ease;
}
#galleryCarouselWrapper.d-none {
  opacity: 0;
  pointer-events: none;
}
#galleryCarouselWrapper.show {
  opacity: 1;
  pointer-events: auto;
  z-index: -1;
}

.carousel-indicators {
  position: absolute;
  bottom: 0;
  justify-content: center;
  gap: 0;
}
.carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--c-white);
  opacity: 0.5;
  border: none;
  transition: width 0.3s ease, opacity 0.3s ease, border-radius 0.3s ease;
}
.carousel-indicators .active {
  width: 40px;
  height: 8px;
  border-radius: 50px;
  background-color: var(--c-white);
  opacity: 1;
}

/* =========================
       GridStack
       ========================= */
.grid-stack {
  width: 70vw;
  height: calc(100dvh - 60px);
}
.grid-stack-item {
  /* nur performante Eigenschaften animieren */
  transition: all 0.3s ease !important;
}

.grid-stack-item-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: start;
  border-radius: var(--radius);
  padding: var(--space-3);
  font-size: 16px;
  box-sizing: border-box;
  color: #000;
  transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
  position: relative;
  animation: fadeIn 0.3s ease;
  overflow: hidden !important;
  will-change: transform, opacity;
}

/* Sections */
.section-top,
.section-mid,
.section-bottom {
  width: 100%;
}
.section-mid {
  max-height: 100%;
  margin: var(--space-3) 0;
  display: flex;
  flex-direction: column;
}
.section-bottom {
  margin-top: auto;
  padding-bottom: 0 !important;
  display: grid;
}
.section-bottom svg {
  justify-self: flex-end;
}
.section-bottom p {
  margin: 0;
}

.grid-stack-item-content p {
  font-weight: 400;
  font-size: 12px;
  line-height: 140%;
  margin: 0;
}

/* Palette */
.green {
  background: #cfd9b9;
}
.blue {
  background: #c6dde5;
}
.beige {
  background: #f5ddc4;
}
.red {
  background: #f15a29;
  color: #fff;
  font-size: 24px;
}

/* Buttons */
.mehr-btn,
.event-btn {
  background-color: transparent;
  border-radius: var(--radius-pill);
  color: var(--c-ink);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
}
.mehr-btn {
  border: 2px solid var(--c-ink);
  width: 120px;
  height: 24px;
  font-size: 10px;
}
.mehr-btn:hover {
  border-color: var(--c-ink);
}
.mehr-btn:hover i {
  transform: translateX(50%);
  transition: transform 0.3s ease;
}

.event-btn {
  border: 2px solid var(--c-ink);
  width: fit-content;
  height: 28px;
  font-size: 12px;
}
.event-btn:hover {
  background-color: var(--c-ink);
  color: #fff;
}
.event-btn-primary {
  background-color: var(--c-ink);
  color: #fff;
  border: none;
}
.event-btn-primary:hover {
  background-color: transparent;
  color: var(--c-ink);
  border: 2px solid var(--c-ink);
}

/* Event Detail */
#eventLabel {
  font-size: 12px;
  font-weight: 400;
  line-height: 100%;
  text-transform: uppercase;
  font-family: var(--ff-base);
}
#eventTitle {
  font-family: var(--ff-base);
  font-size: 50px;
  font-weight: 900;
  line-height: 110%;
  letter-spacing: -0.02em;
  color: var(--c-ink);
}
#eventDescription {
  font-family: var(--ff-base);
  font-size: 15px;
  font-weight: 400;
  line-height: 150%;
  color: var(--c-ink-weak);
}

/* Register */
#htmlRegister hr {
  border-top: 5px solid var(--c-ink);
}
#registerAccordion {
  padding: 2rem 0;
}
#registerAccordion .accordion-button {
  padding: 8px 0 !important;
  border-top: 1px solid var(--c-ink) !important;
}
#registerAccordion .accordion-button:hover {
  background-color: #70bc57 !important;
}
#registerAccordion .accordion-button::after {
  display: none;
}
#registerAccordion .accordion-header {
  width: 100%;
}
#registerAccordion .btn-close {
  width: 0.5rem;
  height: 0.5rem;
  opacity: 0.6;
}
#registerAccordion .btn-close:hover {
  opacity: 1;
}
#registerForm,
#htmlRequest-desktop {
  max-width: 80%;
}

/* Request */
#htmlRequest-desktop hr,
#htmlRequest-mobile hr {
  border-top: 5px solid var(--c-ink);
}
#htmlRequest-desktop h2,
#htmlRequest-mobile h2 {
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 20px;
}
#htmlRequest-desktop form {
  width: 90%;
}

/* Inputs */
.form-control,
.form-select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--c-ink) !important;
  border-radius: 0;
  box-shadow: none;
  font-family: var(--ff-base);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: -0.01px;
  color: var(--c-ink);
}

.form-control::placeholder,
.form-select::placeholder,
input[type="date"]::placeholder,
input[type="time"]::placeholder {
  color: #00000040;
  opacity: 1;
}

.form-control:focus,
.form-select:focus,
input[type="date"]:focus,
input[type="time"]:focus {
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border-bottom: 1px solid var(--c-ink) !important;
}

/* Modal / full */
.fullscreen-fixed {
  position: fixed !important;
  top: 20px;
  right: 20px;
  width: 75vw !important;
  height: 95vh !important;
  z-index: 9999;
  background: transparent;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
  animation: zoomIn 0.8s ease;
}
.fade-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

/* Nav */
#tbackToggle {
  display: none;
}
nav {
  position: fixed;
  bottom: 34px;
  left: 35px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  width: auto;
  right: 32px;
}
.nav-links {
  display: flex;
  gap: 15px;
  background: rgba(175, 175, 175, 0.1);
  border-radius: 8px;
  backdrop-filter: blur(6px);
  padding: 12px;
}
.navlink {
  font-family: "Akkurat Pro";
  font-weight: 400;
  font-size: 10px;
  line-height: 120%;
  letter-spacing: 1.05px;
  color: #ffffff60;
}
.navlink:hover {
  color: #ffffff;
  transition: color 0.3s ease;
  cursor: pointer;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-item {
  background: rgba(175, 175, 175, 0.3);
  border-radius: 41px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 99999;
  width: 142px;
  height: 30px;
  opacity: 1;
}
/* .nav-item:hover {
  background: rgba(255, 255, 255, 0.7);
  color: #000;
}
.nav-item:hover .text {
  color: #000;
} */
.nav-item .icon {
  display: flex;
  align-items: center;
  justify-content: center;

  margin-right: 8px;
  transition: transform 0.3s ease;
}
.nav-item .text {
  font-family: "Akkurat Pro", sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #fff;
  letter-spacing: 1.05px;
  text-transform: uppercase;
}

.nav-item-img {
  width: 14px;
  height: 14px;
}

.gallery-nav {
  display: none;
  flex-direction: column;
  gap: 8px;
}
.gallery-menu {
  display: flex;
  flex-direction: column;
  background: rgba(175, 175, 175, 0.3);
  border-radius: 16px;
  padding: 6px 14px;
  backdrop-filter: blur(30px);
}
.gallery-menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff8f;
  cursor: pointer;
  padding: 4px 0;
}
.gallery-menu-item:hover {
  color: #ffffff;
  transition: color 0.3s ease;
}
.gallery-menu-item:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.gallery-menu-item .text {
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.01em;
}
.gallery-toggle.active .icon {
  transform: rotate(45deg);
}

/* Slide overlays */
.slide-left,
.slide-right,
.slide-up,
.slide-down {
  position: absolute;
  transition: all var(--gridstack-animation-duration) ease;
  opacity: 0;
  z-index: 9999;
  pointer-events: none;
}
.slide-left {
  left: -120vw;
}
.slide-right {
  left: 120vw;
}
.slide-up {
  top: -120vh;
}
.slide-down {
  top: 120vh;
}

/* Hero */
.vertical-text {
  display: none;
  position: fixed;
  top: 20px;
  left: 40px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #fff;
  opacity: 0.8;
  line-height: 1.2;
  padding: 20px;
  z-index: 999;
}
.hero-text {
  position: fixed;
  top: 40px;
  left: 25px;
  color: #fff;
  text-align: left;
}
.hero-text h2 {
  font-size: 50px;
  font-weight: 400;
}
.hero-text p {
  font-size: 16px;
  font-weight: 400;
  opacity: 0.8;
}

.sidebar {
  display: flex;
  flex-direction: column;
  width: 0;
}

#svgCorner {
  position: fixed;
  top: 32px;
  right: 32px;
  width: 75px;
  height: 65px;
  z-index: -1;
}
.rotate-group {
  animation: rotate 8s linear infinite;
  transform-origin: center;
}

/* =========================
       FullCalendar
       ========================= */
#calendar {
  width: 90%;
  margin: 40px auto;
  padding: 20px;
  background: #f8f5f0;
  font-family: sans-serif;
  overflow: visible;
}
#calendar tr[role="row"] {
  display: inline-flex !important;
  width: 100%;
}
#calendar td[role="gridcell"] {
  width: calc(100% / 7) !important;
  height: auto !important;
}
#calendar .fc {
  all: unset;
}

.blocked-day {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}
.fc .fc-col-header {
  display: none !important;
}
.fc-daygrid-day {
  margin: 4px !important;
  background-color: transparent !important;
}
.fc .fc-daygrid-day-top {
  flex-direction: row !important;
}
.fc .fc-daygrid-day-number {
  font-weight: 900;
  color: #000;
  font-size: 30px;
  text-decoration: none;
}
.fc .fc-highlight {
  background-color: #000 !important;
}
.fc .fc-daygrid-day.fc-day-selected .fc-daygrid-day-number {
  color: #fff !important;
}
.fc-theme-standard td {
  border: none !important;
}
.fc-day:not(.fc-day-disabled) {
  border-top: 1px solid #000 !important;
}
.fc-day {
  margin: 0 10px !important;
}

/* =========================
       Custom Year List
       ========================= */
#calendar-list {
  background: #fff;
}

#custom-year-list {
  font-family: sans-serif;
  max-width: 90%;
  max-height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
}
#custom-year-list::-webkit-scrollbar {
  display: none;
}

#custom-year-list .accordion-item {
  border-top: 1px solid var(--c-ink);
}
#custom-year-list .accordion-item:nth-child(4n + 1):hover {
  background-color: #70bc57;
}
#custom-year-list .accordion-item:nth-child(4n + 2):hover {
  background-color: #d3eaff;
}
#custom-year-list .accordion-item:nth-child(4n + 3):hover {
  background-color: #67b8ff;
}
#custom-year-list .accordion-item:nth-child(4n + 4):hover {
  background-color: #ffd57a;
}
#custom-year-list .accordion-button {
  border: none !important;
  padding: 12px 8px !important;
}
#custom-year-list .accordion-button::after {
  display: none !important;
}
#custom-year-list .accordion-body {
  padding: 1rem 1rem 1rem 4rem !important;
  max-width: 500px;
}

.custom-year-list-date {
  font-weight: 400;
  font-size: 14px;
  line-height: 100%;
  letter-spacing: -0.02em;
  color: var(--c-ink-weak);
}
.custom-year-list-title {
  font-weight: 700;
  font-size: 18px;
  line-height: 100%;
  letter-spacing: -0.02em;
  color: var(--c-ink);
}
.custom-year-list-location {
  font-weight: 400;
  font-size: 10px;
  line-height: 100%;
  letter-spacing: 0.05em;
  color: var(--c-ink-weak);
  text-align: end;
  text-transform: uppercase;
}

#calendar-filter-bar {
  display: flex;
  justify-content: end;
  gap: 50px;
  align-items: center;
  font-family: sans-serif;
  font-size: 0.9em;
  margin-bottom: -50px;
  text-transform: uppercase;
  max-width: 90%;
  border-top: 5px solid var(--c-ink);
  padding: 0;
  z-index: 10;
}
.selector-group {
  display: flex;
  gap: 0.6em;
}
.selector-item {
  cursor: pointer;
  color: #888;
  font-weight: normal;
}
.selector-item.active {
  font-weight: bold;
  color: #000;
  border-bottom: 2px solid #000;
}

#custom-year-list h2 {
  font-size: 2em;
  margin-top: 2em;
}
#custom-year-list h2:first-child {
  margin-top: 0;
}

/* Event rows (dedupliziert) */
.event-row {
  display: flex;
  justify-content: space-between;
  padding: 0.3em 0 !important;
  border-bottom: 1px solid #ccc;
}
.event-row .date {
  font-weight: bold;
  width: 80px;
}
.event-row .title {
  flex-grow: 1;
  padding-left: 1em;
}
.event-row .location {
  color: var(--c-ink-muted);
  font-size: 0.9em;
  text-align: right;
  white-space: nowrap;
}

/* =========================
       Checkout
       ========================= */
.payment-wrapper {
  display: flex;
  gap: 10px;
  justify-content: start;
}
label.btn {
  width: 54px;
  height: 34px;
  background: #fff;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-check + .btn:hover,
.btn:not(:checked) ~ .btn:hover,
.btn-check:checked ~ .btn {
  background: #fff;
}

/* =========================
       Animations
       ========================= */
@keyframes rotate {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Respect OS motion preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
