:root {
  --bg: #f8f6ef;
  --card: rgba(255, 255, 255, 0.84);
  --line: rgba(32, 32, 32, 0.12);
  --text: #1f1d19;
  --muted: #615d55;
  --brand: #ad6c29;
  --danger: #b6403c;
  --shadow: 0 10px 30px rgba(20, 16, 10, 0.08);
  --radius: 18px;
}

@font-face {
  font-family: "Adlery Pro";
  src: url("/assets/fonts/adlery-pro.regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "OpenDyslexic";
  src: url("/assets/fonts/opendyslexic.regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "OpenDyslexic", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  text-align: center;
}

.page-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to bottom, rgba(248, 246, 239, 0.35), rgba(248, 246, 239, 0.58)),
    url("/assets/SJaX2bSZUbrehQS41Rih9_1lCdhpZW.png");
  background-position: center, center top;
  background-size: cover, 100% auto;
  background-repeat: no-repeat, repeat-y;
  z-index: -1;
}

.container {
  width: min(1080px, 92vw);
  margin: 0 auto;
  padding-bottom: 4rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  background: rgba(248, 246, 239, 0.72);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 1rem;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.nav a:hover {
  border-color: var(--brand);
}

.hero {
  padding: 4.5rem 0 2.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.insta-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.52rem 0.85rem;
  border: 1px solid rgba(173, 108, 41, 0.35);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.72);
}

.insta-cta svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

h1,
h2,
h3 {
  margin: 0 0 0.7rem;
  line-height: 1.2;
}

h1 {
  font-family: "Adlery Pro", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: #2f2920;
}

h2 {
  font-family: "Adlery Pro", Georgia, serif;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
}

h3 {
  font-family: "Adlery Pro", Georgia, serif;
}

.section {
  margin-top: 1.9rem;
}

.events-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  margin-top: 1.4rem;
  margin-bottom: 2.4rem;
}

.section-head p {
  margin: 0;
}

.calendar-head {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.6rem;
}

.calendar-month-label {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.calendar-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
}

.calendar-weekday {
  font-size: 0.85rem;
  color: var(--muted);
  padding-bottom: 0.25rem;
}

.calendar-day {
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  padding: 0.45rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  position: relative;
  overflow: hidden;
}

.calendar-day.empty {
  visibility: hidden;
}

.calendar-day .date-number {
  font-size: 0.95rem;
}

.calendar-day.has-event {
  border-color: rgba(173, 108, 41, 0.5);
  background: rgba(255, 250, 242, 0.95);
  cursor: pointer;
}

.calendar-day.has-event .date-number {
  font-weight: 700;
  color: #7e4914;
}

.event-dot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem;
}

.event-icon-marker {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 3px;
}

.event-icon-marker.cancelled {
  opacity: 0.45;
  filter: grayscale(1);
}

.day-ribbon {
  position: absolute;
  top: 0.1rem;
  right: -1.85rem;
  transform: rotate(28deg);
  background: #b6403c;
  color: #fff;
  font-size: 0.62rem;
  letter-spacing: 0.03em;
  font-weight: 700;
  padding: 0.15rem 2rem;
}

.events-hint {
  margin-top: 0.55rem;
}

.carousel-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.95);
}

.info-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.impressum-link-wrap {
  margin-top: 1rem;
}

.impressum-body {
  padding: 1rem;
}

.impressum-body p {
  margin: 0 0 0.8rem;
}

.day-events-list {
  padding: 1rem;
  display: grid;
  gap: 0.8rem;
}

.day-events-head {
  justify-content: flex-end;
}

.day-event-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.85rem;
}

.day-event-item.cancelled {
  border-color: rgba(182, 64, 60, 0.4);
}

.day-event-item h4 {
  margin: 0 0 0.45rem;
  font-family: "Adlery Pro", Georgia, serif;
  font-size: 1.2rem;
}

.day-event-item p {
  margin: 0.2rem 0;
  color: var(--muted);
}

.day-event-item .btn {
  margin-top: 0.6rem;
}

.cancelled-label {
  display: inline-block;
  margin-top: 0.45rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.contact-form,
.event-form {
  display: grid;
  gap: 0.8rem;
  max-width: 760px;
  margin: 0 auto;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
  text-align: center;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.62rem 0.7rem;
  font-family: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.93);
  text-align: center;
}

textarea {
  resize: vertical;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  background: var(--brand);
  color: #fff;
  font-family: inherit;
  cursor: pointer;
}

.btn:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn-danger {
  background: var(--danger);
}

.muted {
  color: var(--muted);
  margin: 0;
}

.hidden {
  display: none !important;
}

.dialog {
  width: min(760px, 92vw);
  max-height: 90vh;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
}

#map-frame {
  width: 100%;
  height: 62vh;
  border: 0;
}

.admin-login,
#admin-panel {
  padding: 1rem;
}

#admin-dialog {
  overflow-y: auto;
}

.inline-form {
  display: flex;
  gap: 0.5rem;
}

.inline-form input {
  flex: 1;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox input {
  width: auto;
}

.form-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
}

.admin-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 0.7rem;
}

.admin-event-list-wrap {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.admin-events-list {
  display: grid;
  gap: 0.6rem;
}

.admin-event-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.75rem;
}

.admin-event-item p {
  margin: 0.2rem 0;
  color: var(--muted);
}

.admin-event-actions {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.map-picker-body {
  padding: 1rem;
  display: grid;
  gap: 0.7rem;
}

#location-picker-map {
  width: 100%;
  height: min(52vh, 420px);
  border-radius: 12px;
  border: 1px solid var(--line);
}

.map-picker-btn {
  width: fit-content;
}

a {
  color: #82480f;
}

@media (max-width: 760px) {
  .topbar {
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .calendar-grid {
    grid-template-columns: repeat(7, minmax(32px, 1fr));
  }

  .calendar-day {
    min-height: 64px;
    padding: 0.35rem;
  }

  .event-icon-marker {
    width: 22px;
    height: 22px;
  }
}
