/*! Modern CSS - simplified SSI layout for Weidschuerli */

:root {
  --page-width: 1200px;
  --panel-border: #d5dbe3;
  --text: #1d2733;
  --link: #173a63;
  --link-hover: #0b223f;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  background: linear-gradient(180deg, #f8f2e6 0%, #f2e8d7 100%);
}

a {
  color: var(--link);
}

a:hover {
  color: var(--link-hover);
}

.container {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.gridContainer {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.85fr);
  grid-template-areas:
    "header header"
    "menu menu"
    "content sidebar"
    "content sidebar2"
    "footer footer";
  gap: 0;
}

.header {
  grid-area: header;
}

.menu {
  grid-area: menu;
}

.content {
  grid-area: content;
}

.sidebar {
  grid-area: sidebar;
}

.sidebar2 {
  grid-area: sidebar2;
}

.footer {
  grid-area: footer;
}

.header {
  border-bottom: 1px solid rgba(68, 53, 32, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 246, 229, 0.25), rgba(44, 28, 13, 0.22)),
    url(/images/background/header-menu.png) center center / cover no-repeat;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5rem;
}

.toplogo a {
  display: inline-block;
  color: #2f1d0f;
  text-shadow: 0 1px 0 rgba(255, 248, 234, 0.45);
  text-decoration: none;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.bannernav {
  text-align: right;
  font-size: 0.875rem;
  text-shadow: 0 1px 0 rgba(255, 248, 234, 0.45);
}

.bannernav a {
  color: #2f1d0f;
  text-decoration: none;
}

.bannernav a:hover {
  text-decoration: underline;
}

.menu {
  border-bottom: 1px solid rgba(68, 53, 32, 0.34);
  background:
    linear-gradient(180deg, rgba(63, 41, 18, 0.32), rgba(63, 41, 18, 0.48)),
    url(/images/background/menu.png) center center / cover no-repeat;
}

.menu .container {
  padding: 0 1rem;
}

.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.menu li {
  margin: 0;
}

.menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: #fff8ef;
  text-decoration: none;
  font-weight: 700;
  text-shadow: 0 1px 1px rgba(24, 14, 5, 0.45);
}

.menu a:hover,
.menu a.active {
  background: rgba(255, 248, 235, 0.18);
}

.content .container,
.sidebar .container,
.sidebar2 .container,
.footer .container {
  position: relative;
  overflow: hidden;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.content .container {
  border-left: 1px solid var(--panel-border);
  border-right: 1px solid var(--panel-border);
  background:
    linear-gradient(180deg, rgba(255, 251, 241, 0.76), rgba(247, 240, 222, 0.88)),
    url(/images/background/content.png) center center / cover no-repeat;
}

.content article {
  max-width: 60rem;
}

.carousel {
  position: relative;
  width: 100%;
  max-width: 765px;
  display: flex;
  flex-direction: column;
  margin: 1.5rem auto 0;
}

.carousel-inner {
  position: relative;
  height: 40vh;
  width: 100%;
  overflow: hidden;
  border: 4px solid #ffffff;
  border-radius: 5px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slides {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-item {
  display: none;
  margin: 0;
  position: absolute;
  inset: 0;
  text-align: center;
}

.carousel-item.active {
  display: block;
}

.carousel-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.carousel-controls {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  padding: 0 0.75rem;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.carousel-controls.visible {
  opacity: 1;
}

.carousel-arrow {
  pointer-events: auto;
  border: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(38, 24, 10, 0.52);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.carousel-arrow:hover {
  background: rgba(38, 24, 10, 0.72);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 0 0;
}

.carousel-dot {
  width: 0.8rem;
  height: 0.8rem;
  border: 0;
  border-radius: 999px;
  background: rgba(38, 24, 10, 0.28);
  cursor: pointer;
}

.carousel-dot.active {
  background: rgba(38, 24, 10, 0.85);
}

.sidebar .container,
.sidebar2 .container {
  border-top: 1px solid var(--panel-border);
  border-left: 1px solid var(--panel-border);
  border-right: 1px solid var(--panel-border);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  min-height: 100%;
}

.sidebar .container::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 248, 237, 0.70), rgba(255, 243, 223, 0.84)),
    url(/images/background/sidebar1.png) center center / cover no-repeat;
}

.sidebar2 .container::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 248, 237, 0.70), rgba(255, 243, 223, 0.84)),
    url(/images/background/sidebar2.png) center center / cover no-repeat;
}

.sidebar .container > *,
.sidebar2 .container > * {
  position: relative;
  z-index: 1;
}

.sidebar2 .container {
  border-top: 0;
}

.footer .container {
  border-top: 1px solid var(--panel-border);
  border-left: 1px solid var(--panel-border);
  border-right: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
  background:
    linear-gradient(180deg, rgba(10, 8, 6, 0.30), rgba(10, 8, 6, 0.58)),
    url(/images/background/footer.png) center center / cover no-repeat;
  color: #f5e8d0;
  font-size: 0.95rem;
}

.copyright {
  padding: 0.25rem 0;
}

@media (max-width: 768px) {
  .gridContainer {
    display: block;
  }

  .header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .menu a {
    padding: 0.7rem 0.85rem;
  }

  .carousel-slides {
    min-height: 16rem;
  }

  .carousel {
    max-width: 100%;
  }

  .carousel-inner {
    height: 30vh;
  }
}
