html {
    width: 100%;
    font-size: min(14px, calc(8px + 0.5vw));
	overflow-y: scroll;
	padding-bottom: 25px;
}

body {
    font-family: system-ui, sans-serif;
    font-size: 1rem;
    --bgColor: #213044;
    --tooltipColor: #102033;
    --filterColor: #213044;
    --filterFontColor: #ffffff;
    --voucherColor: #ffffff;
    --voucherTitleColor: #886e3d;
    --voucherTitleFontColor: #ffffff;
    --shopColor: #ffffff;
    --shopTitleColor: #c1a262;
    --shopTitleFontColor: #ffffff;
    --fontColor: #ffffff;
    --linkColor: #ffffff;
    --linkColorVisited: #cccccc;
    --voucherFontColor: #000000;
    --shopFontColor: #000000;
    background-color: var(--bgColor);
}

* {
	box-sizing: border-box;
}

#top-logo {
  padding-top: 25px;
  padding-bottom: 25px;
  width: min(250px, 75%)
}

 #backToTopBtn {
  display: none; /* Hidden by default */
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background-color: var(--shopTitleColor);
  color: white;
  border-top: 1px solid #213044;
  border-left: none;
  border-right: none;
  border-bottom: none;
  padding: 4px 0px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  width: 100%;
  max-width: 600px;
 }

 #backToTopBtn:hover {
  background-color: var(--voucherTitleColor);
 }


.content-wrapper {
  margin-right: auto;
  margin-left: auto;
  max-width: 600px;
}

.general-center {
  font-family: inherit;
  font-size: 1rem;
  color: var(--fontColor);
  background-color: var(--bgColor);
  margin-top: 5px;
  margin-bottom: 5px;
  display: block;
  margin-right: auto;
  margin-left: auto;
  width: 100%;
  text-align: center;
}

.general {
  font-family: inherit;
  font-size: 1rem;
  color: var(--fontColor);
  background-color: var(--bgColor);
  margin-top: 5px;
  margin-bottom: 5px;
  display: block;
  margin-right: auto;
  margin-left: auto;
  width: 100%;
}

.general a:link {
	color: var(--linkColor);
	background-color: transparent;
	text-decoration: none;
	border-bottom: 1px dotted white;
}

.general a:visited {
	color: var(--linkColorVisited);
	background-color: transparent;
	text-decoration: none;
	border-bottom: 1px dotted white;
}

.filter {
  font-family: inherit;
  font-size: 1rem;
  color: var(--filterFontColor);
  background-color: var(--bgColor);
  /*margin-top: 25px;*/
  margin-bottom: 5px;
  text-indent: 0px;
  display: grid;
  align-items: center;
  grid-template-columns: 90fr 10fr;
  grid-column-gap: 10px;
  grid-row-gap: 3px;  margin-right: auto;
  margin-left: auto;
  width: 80%;
  height: 3rem;
  text-align: center;
}

#textFilter {
  text-indent: 2px;
  font-size: 1rem;
  width: 100%;
  height: calc(3rem - 4px);
  display: inline;
  text-align: left;
  padding: 1px 0.5rem;
  border: 3px solid var(--voucherTitleColor);
  border-radius: 15px; 
}

#textFilter:focus {
  outline: none; 
  border: 3px solid var(--shopTitleColor);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.3); 
}

#tagBar {
  height: 2rem;
  width: 80%;
}

#shareFilterInfo {
  height: 1rem;
  width: 80%;
  color: var(--shopTitleColor);
}

#shareButton {
  max-width: 100%;
  max-height: 2rem;
  margin-left: 1rem;
  display: inline;
  cursor: pointer; 
  vertical-align: middle;
}

.discountBanner {
	background-color: var(--shopTitleColor);
	font-family: inherit;
	font-weight: bold;
	font-size: 0.8rem;
	color: black;
	display: inline;
	margin-left: 0rem;
	margin-right: .5rem;
	padding: 1px 4px;
	border-radius: 8px 8px;
	cursor: pointer;
}

.shops {
  font-family: inherit;
  font-size: 1rem;
  color: black;
  background-color: var(--bgColor);
  margin-top: 5px;
  margin-bottom: 5px;
  display: block;
  margin-right: auto;
  margin-left: auto;
  width: 100%;
}

.shops-title {
  background-color: var(--shopTitleColor);
  color: var(--shopTitleFontColor);
  text-indent: 10px;
  padding-top: 10px;
  padding-bottom:10px;
  border-radius: 3px;
  font-weight: bold;
  font-size: 1.3rem;
  border: 1px solid var(--shopTitleColor);
  margin-top: 20px;
  width: 100%;
}

.shop-area {
  display: none;
}

.shop-area.visible {
  display: grid;
  grid-template-columns: 50fr 50fr;
  grid-column-gap: 10px;
  grid-row-gap: 3px;
  font-family: inherit;
  font-size: inherit;
  color: var(--shopFontColor);
  background-color: var(--shopColor);
  width: 100%;
  border-radius: 3px;
  border: 1px solid var(--shopTitleColor);
  margin-top: 20px;
  padding-bottom: 10px;
}

.shop-area-header {
  grid-column: 1 / 3;
  background-color: var(--shopTitleColor);
  color: var(--shopTitleFontColor);
  text-indent: 10px;
  padding-top: 3px;
  padding-bottom: 3px;
  font-size: 1.2rem;
  font-weight: bold;
  width: 100%;
}

.vouchers {
  font-family: inherit;
  font-size: 1rem;
  color: black;
  background-color: var(--bgColor);
  margin-top: 5px;
  margin-bottom: 5px;
  display: block;
  margin-right: auto;
  margin-left: auto;
  width: 100%;
}

.vouchers-title {
  background-color: var(--voucherTitleColor);
  color: var(--voucherTitleFontColor);
  text-indent: 10px;
  padding-top: 10px;
  padding-bottom:10px;
  border-radius: 3px;
  font-weight: bold;
  font-size: 1.3rem;
  border: 1px solid var(--voucherTitleColor);
  margin-top: 20px;
  width: 100%;
}

.voucher-area {
  display: none;
}

.voucher-area.visible {
  display: grid;
  grid-template-columns: 50fr 50fr;
  grid-column-gap: 10px;
  grid-row-gap: 3px;
  font-family: inherit;
  font-size: inherit;
  color: var(--voucherFontColor);
  background-color: var(--voucherColor);
  width: 100%;
  border-radius: 3px;
  border: 1px solid var(--voucherTitleColor);
  margin-top: 20px;
  padding-bottom: 10px;
}

.voucher-area-header {
  grid-column: 1 / 3;
  background-color: var(--voucherTitleColor);
  color: var(--voucherTitleFontColor);
  text-indent: 10px;
  padding-top: 3px;
  padding-bottom: 3px;
  font-size: 1.2rem;
  font-weight: bold;
  width: 100%;
}

.legal {
  font-family: inherit;
  font-size: 1rem;
  color: black;
  background-color: var(--bgColor);
  margin-top: 5px;
  margin-bottom: 5px;
  display: block;
  margin-right: auto;
  margin-left: auto;
  width: 100%;
}

.legal-title {
  background-color: var(--voucherTitleColor);
  color: var(--voucherTitleFontColor);
  text-indent: 10px;
  padding-top: 10px;
  padding-bottom:10px;
  border-radius: 3px;
  font-weight: bold;
  font-size: 1.3rem;
  border: 1px solid var(--voucherTitleColor);
  margin-top: 20px;
  width: 100%;
}

.legal-area {
  display: none;
}

.legal-area.visible {
  display: grid;
  grid-template-columns: 50fr 50fr;
  grid-column-gap: 10px;
  grid-row-gap: 3px;
  font-family: inherit;
  font-size: inherit;
  color: var(--voucherFontColor);
  background-color: var(--voucherColor);
  width: 100%;
  border-radius: 3px;
  border: 1px solid var(--voucherTitleColor);
  margin-top: 20px;
  padding-bottom: 10px;
}

.legal-area-header {
  grid-column: 1 / 3;
  background-color: var(--voucherTitleColor);
  color: var(--voucherTitleFontColor);
  text-indent: 10px;
  padding-top: 3px;
  padding-bottom: 3px;
  font-size: 1.2rem;
  font-weight: bold;
  width: 100%;
}

.type-area {
  grid-column: 1 / 3;
  font-weight: bold;
  padding-left: 10px;
  padding-top: 10px;
  font-size: inherit;
}

.item-name {
  grid-column: 1;
  padding-left: 20px;
  font-size: inherit;
}

.item-value {
  grid-column: 2;
  font-size: inherit;
}

.item-span {
  grid-column: 1 / 3;
  padding-left: 20px;
  font-size: inherit;
}

.tooltip-text {
  visibility: hidden;
  position: absolute;
  z-index: 2;
  width: 15rem;
  color: white;
  font-size: 0.9rem;
  background-color: var(--tooltipColor);
  border: 1.5px solid var(--voucherTitleColor);
  border-radius: 3px;
  padding: 0.5rem 0.75rem 0.5rem 0.75rem;
}

.tooltip-text::before {
  content: "";
  position: absolute;
  transform: rotate(45deg);
  background-color: var(--tooltipColor);
  padding: 0.3rem;
  z-index: 1;
}

.hover-text:hover .tooltip-text {
  visibility: visible;
}

#right {
  top: 2rem;
  left: 0rem;
}

#right::before {
  top: -0.3rem;
  left: 0.75rem;
}

.hover-text {
  position: relative;
  display: inline-block;
  margin: inherit;
  font-family: inherit;
  font-size: inherit;
  text-align: left;
  border-bottom: 1px dotted black;
}


.folded {
  display: none;
}

.toggle-button {
  grid-column: 1 / 3;
  display: inline-grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: transparent;
  border: none;
  color: var(--shopFontColor);
  font-size: 0.9rem;
  font-weight: normal;
  cursor: pointer;
  margin: 6px 0;
  padding: 6px 0;
  text-align: center;
  box-sizing: border-box;
}

.toggle-button .line {
  display: flex;
  align-items: center;
  padding-inline: 8px; /* space on both sides */
}

.toggle-button .line::before {
  content: "";
  height: 1px;
  background-color: #ccc;
  width: 100%;
  display: block;
}

.toggle-button span {
  grid-column: 2;
}

#impressumToggle {
  display: inline-block; /* Ensures it wraps only the content */
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s, color 0.3s;
  border: 1px solid var(--voucherTitleColor);
  margin: 5px; /* Removes auto centering and allows natural flow */
}

/* Inactivated state */
#impressumToggle.inactive {
  background-color: transparent;
  color: var(--voucherTitleColor);
}

/* Activated state */
#impressumToggle.active {
  background-color: var(--voucherTitleColor);
  color: var(--voucherTitleFontColor);
}