:root {
  color-scheme: light;
  --blau: #232779;
  --beere: #8c174f;
  --papier: #fcf2e4;
  --creme: #fff3b9;
  --button-beige: #fcf4e9;
  --marker: "limon-regular-marker", Georgia, serif;
  --schrift: "limon-script", "Snell Roundhand", cursive;
  --aquarell-beere: url("assets/media/img/button_beere.png");
  font: 400 100%/1.4 var(--marker);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--blau);
  position: relative;
  isolation: isolate;
  background: var(--papier);
}

body::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: min(100%, max(100vw, 46rem));
  background: url("assets/media/img/hintergrund.webp") center bottom / max(100%, 46rem) auto no-repeat;
  mask-image: linear-gradient(transparent, black 12%);
}

.seite {
  width: min(100%, 60rem);
  padding: clamp(1.3rem, 5vw, 4.4rem) clamp(0.9rem, 5vw, 3rem) 0;
  margin-inline: auto;
  text-align: center;
}

.schriftzug {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.066em;
  margin: 0 0 clamp(0.5rem, 2vw, 1.2rem);
  font: 700 clamp(3.4rem, 12vw, 8rem)/1.02 var(--schrift);
  white-space: nowrap;
}

.schriftzug img {
  width: 0.94em;
  height: 0.94em;
  object-fit: contain;
}

.nur-screenreader {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.suche {
  position: relative;
  width: min(100%, 35rem);
  margin-inline: auto;
}

.suche input, .vorschlagsfeld {
  display: block;
  width: 100%;
  padding: 0.08em clamp(0.9rem, 4vw, 1.6rem);
  border: 2px solid #8c174f99;
  border-radius: 0.4rem;
  background: #fffcf680;
  color: var(--beere);
  font: inherit;
  text-align: center;
}

.suche input {
  min-height: clamp(3rem, 9vw, 4.5rem);
  font-size: clamp(1.58rem, 5.5vw, 3.25rem);
}

.suche input::placeholder { opacity: 0; }

.suchlauf {
  position: absolute;
  inset: 2px clamp(0.9rem, 4vw, 1.6rem);
  display: none;
  place-items: center;
  overflow: hidden;
  padding-inline: 0.4rem;
  color: var(--beere);
  font-size: clamp(0.88rem, 4.1vw, 1.55rem);
  line-height: 1.15;
  pointer-events: none;
}

.suche input:placeholder-shown:not(:focus) + .suchlauf { display: grid; }

@media (prefers-reduced-motion: no-preference) {
  .suchlauf {
    mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  }

  .suchlauf span {
    position: absolute;
    top: 50%;
    width: max-content;
    font-size: clamp(1.85rem, 6.8vw, 3rem);
    white-space: nowrap;
    animation: suchhinweis-laufen 10s linear infinite;
  }
}

@keyframes suchhinweis-laufen {
  from { left: 100%; transform: translate(0, -50%); }
  to { left: 0; transform: translate(-100%, -50%); }
}

.vorschlagsfeld::placeholder {
  color: currentColor;
  opacity: 1;
}

.suchzeile {
  margin: 0.5rem 0 clamp(1.2rem, 3vw, 2rem);
  font-size: clamp(0.78rem, 2.5vw, 1.5rem);
  text-transform: uppercase;
}

.dreizeiler {
  margin: 0;
  font: 700 clamp(1.95rem, 6.2vw, 4.25rem)/1.04 var(--schrift);
}

.dreizeiler span { display: block; }

.ortsbereiche {
  margin: clamp(1rem, 3vw, 2rem) auto 0;
  width: min(100%, 47rem);
}

.rollenflaeche {
  --standard-zeilenhoehe: clamp(2.125rem, 5.75vw, 3.5rem);
  --zeilenhoehe: var(--standard-zeilenhoehe);
  --rollenraum: calc((var(--standard-zeilenhoehe) * 2.3 - var(--zeilenhoehe)) / 2);
  border-radius: 0.6rem;
}

@media (max-width: 640px) {
  .startseite { padding-top: clamp(2.7rem, 10vw, 4.4rem); }
  .startseite .schriftzug { margin-bottom: 0.18rem; }
  .startseite .rollenflaeche { --zeilenhoehe: clamp(1.9rem, 5.55vw, 2.25rem); }
}

.ortsrolle {
  position: relative;
  border-radius: inherit;
  color: var(--creme);
}

.rollenflaeche:has(.ortsrolle:focus-visible) {
  outline: 2px solid var(--beere);
  outline-offset: 4px;
}

.ortsrolle[data-aktiv] {
  height: calc(var(--zeilenhoehe) + 2 * var(--rollenraum));
  overflow: hidden auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  touch-action: pan-y pinch-zoom;
  mask-image: linear-gradient(
    to bottom,
    transparent 0%, #0002 5%, #0009 12%, #000 24%,
    #000 76%, #0009 88%, #0002 95%, transparent 100%
  );
}

.ortsliste { margin: 0; padding: 0.45rem 0; list-style: none; }
.ortsrolle[data-aktiv] .ortsliste { padding-block: var(--rollenraum); }

.ortsliste li {
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.ortsliste a {
  display: grid;
  place-items: center;
  min-height: var(--zeilenhoehe, 3rem);
  padding: 0 0.75rem;
  color: inherit;
  font-size: clamp(1.45rem, 5.2vw, 3.2rem);
  line-height: 1.06;
  overflow-wrap: anywhere;
  text-decoration: none;
  text-transform: uppercase;
}

.ortsrolle[data-aktiv] a { height: var(--zeilenhoehe); }

.meldung { margin: 0.35rem 0 0; color: var(--beere); }
.meldung:empty { margin: 0; }

.ortsvorschlag {
  width: min(100%, 44rem);
  margin: clamp(1.7rem, 5vw, 3.4rem) auto 0;
  color: var(--beere);
}

.ortsvorschlag h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1rem, 4.6vw, 2rem);
  font-weight: 400;
  line-height: 1.18;
  text-transform: uppercase;
}

.ortsvorschlag p { font-size: clamp(1rem, 2.5vw, 1.35rem); }

.rollenflaeche {
  position: relative;
  isolation: isolate;
}

.rollenflaeche::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--aquarell-beere) center / 100% 100% no-repeat;
}

.rollenflaeche:has(.ortsrolle:not([hidden]))::before {
  inset-block: calc(var(--zeilenhoehe) * -0.33);
}

.rollenflaeche:has(.ortsrolle[hidden])::before { display: none; }

.vorschlagsfeld {
  width: min(100%, clamp(15rem, 62vw, 26rem));
  min-height: clamp(3rem, 12vw, 4.4rem);
  margin-inline: auto;
  font-size: clamp(1.22rem, 5vw, 2rem);
}

#vorschlag-mail { margin-top: 0.75rem; }

#vorschlag-email {
  width: min(100%, clamp(13rem, 54vw, 22.6rem));
  min-height: clamp(2.6rem, 8vw, 3.6rem);
  font-size: clamp(1rem, 4.15vw, 1.7rem);
}

.vorschlagsfeld::placeholder { text-transform: uppercase; }

.projekt-button {
  display: inline-grid;
  place-items: center;
  min-height: 2.75rem;
  max-width: 100%;
  padding: 0.25em 0.85em;
  border: 2px solid transparent;
  border-radius: 0.4rem;
  background: var(--beere);
  color: var(--button-beige);
  font: inherit;
  font-size: clamp(0.85rem, 3.3vw, 1.2rem);
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.projekt-button:focus-visible { outline-color: var(--beere); }

.projekt-button:not(:disabled):hover {
  border-color: var(--beere);
  background: var(--button-beige);
  color: var(--beere);
}

.vorschlag-weiter {
  min-width: clamp(5.75rem, 20vw, 8rem);
  margin-top: 0.5rem;
}

.vorschlag-weiter:disabled { cursor: wait; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.ortsname {
  margin: 0.22em 0 0.55em;
  color: var(--beere);
  font-size: clamp(1.85rem, 6vw, 3.7rem);
  line-height: 1.1;
  font-weight: 400;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.produkt { width: 100%; min-width: 0; text-align: start; }
.hinweis { margin: 0 auto 1rem; max-width: 38rem; padding: 0.7rem; text-align: center; }
.produkt p { overflow-wrap: anywhere; }
.zurueck { margin-top: clamp(1.1rem, 4vw, 2.4rem); padding-inline: 1.6em; }

.projekt-hinweis {
  margin-top: auto;
  padding: clamp(10.7rem, 25vw, 28rem) 1rem clamp(0.4rem, 1.5vw, 1.2rem);
  color: var(--beere);
  font-size: clamp(0.68rem, 1.65vw, 1rem);
  text-align: center;
  text-transform: uppercase;
}

.projekt-impressum { white-space: nowrap; }

.projekt-impressum a {
  color: inherit;
  text-decoration: none;
}

.projekt-impressum a:focus-visible { color: var(--blau); }

@media (min-width: 641px) and (hover: hover) {
  .projekt-impressum a:hover { color: var(--blau); }
}

#ecwid-sandersleben .ec-breadcrumbs,
#ecwid-sandersleben [data-herz-shop-link] {
  display: none !important;
}


.warenkorb-navigation {
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(1.1rem, 4vw, 2.4rem);
}

.ortsseiten-navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: clamp(1.1rem, 4vw, 2.4rem);
}

.warenkorb-navigation .projekt-button,
.ortsseiten-navigation [data-warenkorb] {
  display: inline-flex;
  gap: 0.3em;
}

.produktgalerie {
  width: min(100%, 32rem);
  min-width: 0;
  margin-inline: auto;
}

.galerie-bilder {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.produktgalerie[data-bereit] .galerie-bilder { scrollbar-width: none; }
.produktgalerie[data-bereit] .galerie-bilder::-webkit-scrollbar { display: none; }

.galerie-bilder > img {
  flex: 0 0 100%;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  scroll-snap-align: start;
}

.galerie-auswahl:not([hidden]) {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.galerie-auswahl button {
  display: grid;
  place-items: center;
  width: min(16%, 4rem);
  padding: 0;
  border: 2px solid transparent;
  background: transparent;
  color: var(--beere);
  cursor: pointer;
}

.galerie-auswahl button[aria-current="true"] { border-color: currentColor; }
.galerie-auswahl button:focus-visible { outline: 2px solid currentColor; }
.galerie-auswahl img { display: block; width: 100%; height: auto; }

.produktbereich {
  display: grid;
  gap: clamp(1.1rem, 3vw, 2.5rem);
  align-items: start;
}

.produktbereich[data-ecwid-seite]:not([data-ecwid-seite="PRODUCT"]) .produktgalerie,
#ecwid-sandersleben .product-details__gallery,
#ecwid-sandersleben [data-herz-heimatort] {
  display: none !important;
}

#ecwid-sandersleben .product-details {
  display: block !important;
  margin-inline: 0 !important;
}

#ecwid-sandersleben .product-details > *,
#ecwid-sandersleben .product-details__sidebar {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
  padding-inline: 0 !important;
}

#ecwid-sandersleben .ec-store {
  font-family: var(--ecwid-schrift);
  font-size: 1rem;
  line-height: 1.5;
}

#ecwid-sandersleben .ec-store :is(
  p, .ec-text, .ec-text-muted, .form-control__label, .form-control__text,
  .form-control__button, .form-control__input, .ec-cart-item__title
) {
  font-size: 1rem;
}

#ecwid-sandersleben .ec-store .ec-header-h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.55rem);
  line-height: 1.25;
}

#ecwid-sandersleben {
  --ecwid-schrift: "pt-sans-narrow", "PT Sans Narrow", "Helvetica Neue", Arial, sans-serif;
}

#ecwid-sandersleben .ec-store :is(
  .ec-cart, .ec-cart-item, .ec-cart-item__options, .ec-cart-item__title,
  .ec-text, .ec-text-muted, .ec-header-h1, .ec-header-h2, .ec-header-h3,
  .form-control__button, .form-control__input, .form-control__label, .form-control__text,
  h1, h2, h3, p, label, input, select, textarea, button
) {
  font-family: var(--ecwid-schrift);
}

#ecwid-sandersleben .ec-store :is(
  .ec-header-h1, .ec-header-h2, .ec-header-h3, .ec-cart-item__title, .form-control__button
) {
  font-weight: 700;
}

#ecwid-sandersleben .ec-store .details-product-price__value {
  font-size: 1.45rem;
}

@media (min-width: 641px) {
  .produktbereich:not([data-ecwid-seite]),
  .produktbereich[data-ecwid-seite="PRODUCT"] {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  #ecwid-sandersleben .product-details {
    width: min(100%, 28rem);
    margin-inline: auto !important;
    text-align: center;
  }

  #ecwid-sandersleben .product-details :is(
    .product-details__sidebar, .product-details-module, .details-product-purchase,
    .details-product-price, .product-details__product-description
  ) {
    text-align: center;
  }

  #ecwid-sandersleben .product-details__product-description :is(ul, ol) {
    padding-inline-start: 0;
    list-style-position: inside;
    text-align: center;
  }

  #ecwid-sandersleben .product-details__product-description li > p:only-child {
    display: inline;
    margin: 0;
  }

  #ecwid-sandersleben .product-details :is(
    .details-product-purchase__qty, .details-product-purchase__controls,
    .details-product-price
  ) {
    justify-content: center;
  }

  .galerie-auswahl:not([hidden]) { gap: 0; margin-top: 0.15rem; }
  .galerie-auswahl button { width: 2rem; height: 2rem; border: 0; }
  .galerie-auswahl img { display: none; }
  .galerie-auswahl button::before {
    content: "";
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.5;
  }
  .galerie-auswahl button[aria-current="true"]::before {
    outline: 1px solid currentColor;
    outline-offset: 2px;
  }
}
