@font-face {
  font-family: "Fredoka";
  src: url("/fonts/Fredoka.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #3A3330;
  --bg: #D0D3D8;
  --blue: #88CEEF;
  --yellow: #FEFBAF;
  --pink: #FBE6E8;
  --knit: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2724%27%20height%3D%2716%27%20viewBox%3D%270%200%2024%2016%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27%233A3330%27%20stroke-width%3D%271.35%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%20stroke-opacity%3D%270.26%27%3E%3Cpath%20d%3D%27M0%204%20C0%200%206%200%206%204%20C6%200%2012%200%2012%204%20C12%200%2018%200%2018%204%20C18%200%2024%200%2024%204%27%2F%3E%3Cpath%20d%3D%27M0%204%20V8%20M6%204%20V8%20M12%204%20V8%20M18%204%20V8%27%2F%3E%3Cpath%20d%3D%27M3%2012%20C3%208%209%208%209%2012%20C9%208%2015%208%2015%2012%20C15%208%2021%208%2021%2012%20C21%208%2027%208%2027%2012%27%2F%3E%3Cpath%20d%3D%27M3%2012%20V16%20M9%2012%20V16%20M15%2012%20V16%20M21%2012%20V16%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  --knit-page: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2724%27%20height%3D%2716%27%20viewBox%3D%270%200%2024%2016%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27%233A3330%27%20stroke-width%3D%271.35%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%20stroke-opacity%3D%270.16%27%3E%3Cpath%20d%3D%27M0%204%20C0%200%206%200%206%204%20C6%200%2012%200%2012%204%20C12%200%2018%200%2018%204%20C18%200%2024%200%2024%204%27%2F%3E%3Cpath%20d%3D%27M0%204%20V8%20M6%204%20V8%20M12%204%20V8%20M18%204%20V8%27%2F%3E%3Cpath%20d%3D%27M3%2012%20C3%208%209%208%209%2012%20C9%208%2015%208%2015%2012%20C15%208%2021%208%2021%2012%20C21%208%2027%208%2027%2012%27%2F%3E%3Cpath%20d%3D%27M3%2012%20V16%20M9%2012%20V16%20M15%2012%20V16%20M21%2012%20V16%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--ink);
  background-color: var(--bg);
  background-image: var(--knit-page);
  background-repeat: repeat;
  font-family: "Fredoka", "Trebuchet MS", sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
}

.site-header,
main,
.site-footer {
  width: min(44rem, calc(100% - 2rem));
}

main {
  flex: 1 0 auto;
  padding: 0.6rem 0 1.4rem;
}

h1 {
  margin: 0 0 0.85rem;
  color: var(--ink);
  font-size: clamp(2rem, 4.6vw, 2.7rem);
  font-weight: 700;
  line-height: 1.15;
}

h2 {
  margin: 1.25rem 0 0.35rem;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
}

p {
  margin: 0 0 0.85rem;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  padding: 0.45rem 0.85rem;
  background-color: var(--yellow);
  color: var(--ink);
  border-radius: 999px;
  z-index: 20;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.skip:focus,
.skip:focus-visible {
  position: fixed;
  clip: auto;
  clip-path: none;
  height: auto;
  width: auto;
  overflow: visible;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.1rem;
  padding: 1.15rem 0 0.35rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  background-color: var(--yellow);
  border: 3px solid rgba(58, 51, 48, 0.18);
  border-radius: 999px;
  padding: 0.28rem 0.85rem 0.28rem 0.95rem;
}

.wordmark-malias {
  color: var(--ink);
}

.logo-mark {
  width: 1.85rem;
  height: 1.85rem;
  flex: 0 0 auto;
}

.wordmark-name {
  color: #88CEEF;
  background: none;
  padding: 0;
}

.site-nav ul,
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a,
.site-footer a {
  display: inline-block;
  padding: 0.42rem 0.9rem;
  color: var(--ink);
  background-color: var(--yellow);
  border: 3px solid rgba(58, 51, 48, 0.12);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a {
  border: 3px dashed rgba(58, 51, 48, 0.18);
  transition: background-color 0.15s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background-color: var(--blue);
}

.site-nav a[aria-current="page"]:hover,
.site-nav a[aria-current="page"]:focus-visible {
  background-color: #6eb8e4;
}

.site-nav a[aria-current="page"],
.site-footer a[aria-current="page"] {
  background-color: var(--blue);
  box-shadow: inset 0 0 0 3px var(--ink);
}

.site-nav a[aria-current="page"] {
  box-shadow: none;
}

.panel {
  border: 3px dashed rgba(58, 51, 48, 0.18);
  border-radius: 2rem;
  padding: 1.45rem 1.35rem;
  margin: 0 0 0.9rem;
  color: var(--ink);
}

.panel-blue {
  background-color: var(--blue);
}

.panel-yellow {
  background-color: var(--yellow);
}

.panel-pink {
  background-color: var(--pink);
  min-height: 7.5rem;
}

.panel-pink p {
  margin: 0;
}

.hero {
  display: flex;
  align-items: center;
  gap: 1.2rem 1.6rem;
}

.hero-copy {
  flex: 1 1 16rem;
  min-width: 0;
}

.hero-copy p:last-child {
  margin-bottom: 0;
}

.portrait {
  flex: 0 1 16rem;
  width: min(16rem, 100%);
  height: auto;
  border: 4px solid var(--ink);
  border-radius: 1.6rem;
  object-fit: contain;
  background-color: var(--yellow);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0.15rem 0 0.9rem;
  padding: 0;
}

.chips li {
  padding: 0.4rem 0.9rem;
  color: var(--ink);
  background-color: var(--yellow);
  border: 3px solid rgba(58, 51, 48, 0.1);
  border-radius: 999px;
  font-weight: 700;
}

.empty-table {
  min-height: 16rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.empty-table p {
  margin: 0;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal a {
  color: var(--ink);
  font-weight: 700;
}

.banner {
  margin: 0 0 1rem;
  padding: 1.15rem 1.3rem;
  color: var(--ink);
  background-color: var(--pink);
  border: 3px solid rgba(58, 51, 48, 0.1);
  border-radius: 2rem;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
}

.facts {
  margin: 0;
  padding: 1.25rem 1.25rem 1.25rem 2.4rem;
  color: var(--ink);
  background-color: var(--blue);
  border: 3px solid rgba(58, 51, 48, 0.1);
  border-radius: 2rem;
}

.facts li + li {
  margin-top: 0.7rem;
}

.facts a {
  color: var(--ink);
  font-weight: 700;
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.link-list li + li {
  margin-top: 0.7rem;
}

.link-list a {
  color: var(--ink);
  font-weight: 700;
}

.note {
  margin: 0.2rem 0 0;
}

#korb-status {
  margin: 0;
}

#korb-liste {
  display: grid;
  gap: 0.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

#korb-liste[hidden],
#korb-status[hidden] {
  display: none;
}

#korb-liste li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.9rem;
  padding: 0.85rem 1rem;
  color: var(--ink);
  background-color: var(--yellow);
  border-radius: 1.4rem;
}

.korb-name {
  flex: 1 1 8rem;
  min-width: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.korb-preis {
  font-weight: 700;
}

button {
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background-color: var(--yellow);
  border: 3px solid rgba(58, 51, 48, 0.18);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
}

#korb-liste button {
  background-color: var(--blue);
}

.site-footer {
  padding: 0.4rem 0 2.2rem;
}

@media (max-width: 700px) {
  .hero {
    flex-direction: column;
    align-items: stretch;
  }

  .portrait {
    align-self: center;
  }
}

::selection {
  background: #FEFBAF;
  color: #3A3330;
}

.panel a {
  color: var(--ink);
}

.affiliate-note {
  margin: 0 0 0.9rem;
  color: var(--ink);
}


/* Kasse und Filter. */
.filters {
  display: grid;
  gap: 0.8rem;
  margin: 0.9rem 0 0.2rem;
}

.filters fieldset,
.kasse fieldset {
  margin: 0 0 0.9rem;
  padding: 0.75rem 0.9rem 0.95rem;
  border: 3px dashed rgba(58, 51, 48, 0.18);
  border-radius: 1.4rem;
}

.filters legend,
.kasse legend {
  padding: 0 0.35rem;
  font-weight: 700;
}

.filters button[aria-pressed="true"] {
  background-color: var(--blue);
}

.wahl {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.35rem 0 0.2rem;
}

.wahl label {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  padding: 0.42rem 0.9rem;
  background-color: var(--pink);
  border: 3px dashed rgba(58, 51, 48, 0.18);
  border-radius: 999px;
  font-weight: 700;
}

.feld {
  display: block;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.feld input,
.feld textarea {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.55rem 0.8rem;
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  background-color: var(--yellow);
  border: 3px dashed rgba(58, 51, 48, 0.18);
  border-radius: 1rem;
}

.kasse-aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.2rem 0 0.8rem;
}

#kasse-hinweis {
  margin: 0.2rem 0 0;
  font-weight: 700;
}

#kasse[hidden],
#form-bar[hidden],
#form-stripe[hidden],
#kasse-hinweis:empty {
  display: none;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.legal ul {
  margin: 0.3rem 0 0.85rem;
  padding-left: 1.2rem;
}

.legal li + li {
  margin-top: 0.35rem;
}

h3 {
  margin: 1rem 0 0.35rem;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

/* Karten, Highlight, Produktseite. Rahmen hell und gestrichelt, ohne Wollrot. */
.karten {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
  gap: 0.8rem;
  list-style: none;
  margin: 0.4rem 0 1rem;
  padding: 0;
}

.karte a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  height: 100%;
  padding: 0.7rem;
  color: var(--ink);
  background-color: var(--pink);
  border: 3px solid rgba(58, 51, 48, 0.1);
  border-radius: 1.4rem;
  font-weight: 700;
  text-decoration: none;
}

.karte img,
.produkt-bild {
  display: block;
  width: 100%;
  height: auto;
  border: 3px solid rgba(58, 51, 48, 0.1);
  border-radius: 1rem;
  background-color: #FEFBAF;
}

.produkt-bild {
  width: min(16rem, 100%);
  margin: 0 0 0.9rem;
}

.karte-name,
.karte-preis {
  font-weight: 700;
}

.karte-bestand {
  font-weight: 500;
}

.karte[hidden],
.highlight[hidden] {
  display: none;
}

.highlight {
  margin: 0.4rem 0 1.1rem;
  padding: 0.85rem 0.85rem 0.15rem;
  border: 4px dashed var(--blue);
  border-radius: 1.6rem;
}

.highlight h2 {
  margin-top: 0;
}

button.mitnehmen {
  background-color: var(--blue);
  margin: 0.85rem 0 0.6rem;
}

#mitnehmen-status:empty {
  display: none;
}

#tisch-status[hidden] {
  display: none;
}

/* ===== Umfrage-Popup "Welches Kuscheltier vermisst du?" (js/wunsch-popup.js) ===== */
.wunsch-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  height: fit-content;
  max-height: calc(100% - 2rem);
  overflow: auto;
  max-width: 30rem;
  width: calc(100% - 2rem);
  color: var(--ink);
}
.wunsch-dialog::backdrop {
  background: rgba(58, 51, 48, 0.45);
}
.wunsch-dialog.panel-pink p {
  margin: 0 0 0.7rem;
}
.wunsch-dialog h2 {
  margin: 0 2.2rem 0.6rem 0;
}
.wunsch-schliessen {
  position: absolute;
  top: 0.7rem;
  right: 0.9rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.wunsch-falle {
  position: absolute;
  left: -9999px;
}
/* ===== Ende Umfrage-Popup ===== */

.bestand-hinweis {
  font-weight: 500;
}

/* Absprung Jelly Pop Anleitung (Entwurf 26.10.) */
.anleitung-absprung { margin-top: 1.2rem; }
a.button {
  display: inline-block;
  font-weight: 700;
  color: var(--ink);
  background-color: var(--blue);
  border: 3px solid rgba(58, 51, 48, 0.18);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  text-decoration: none;
}

/* Ausgeblendete Kassen-Teile wirklich ausblenden (label/fieldset haben eigenes display) */
#wahl-bar[hidden],
#lieferung-block[hidden],
#widerruf-digital-block[hidden] {
  display: none !important;
}
.nur-physisch[hidden],
.nur-digital[hidden] {
  display: none !important;
}
