/* Fass-Anfrage-Fenster - 1:1 wie auf der bisherigen Seite (odin-fass-inquiry.php, odin-cart-popup.php) */

.odin-fass-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 100%;
  max-width: clamp(440px, 38vw, 540px);
  height: auto;
  background: rgba(12, 9, 7, 0.98);
  background-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.1) 60%, rgba(0, 0, 0, 0.45) 100%), url('bilder/bg_odin_web_16.jpg');
  background-size: auto, 400px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 2px solid #5e3e1c;
  border-radius: 16px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.9);
  z-index: 999998;
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  max-height: calc(100vh - 40px);
  overflow: hidden;
  font-family: 'ITC Odin Con', serif;
  color: #fdd981;
}
.odin-fass-panel.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  border-color: #c5a059;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.9), 0 0 20px rgba(197, 160, 89, 0.2);
}
.odin-fass-vignette {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}
.odin-fass-panel > .odin-cart-header-row, .odin-fass-panel > .odin-fass-content-wrapper { position: relative; z-index: 1; }

/* Kopf des Fensters */
:where(#odin-fass-modal) .odin-cart-header-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 22px 14px;
  border-bottom: 1px solid rgba(197, 160, 89, 0.15);
}
:where(#odin-fass-modal) .odin-cart-panel-title{
  display: block;
  font-family: 'ITC Odin Con', serif;
  font-size: clamp(1.7rem, 2.6vw, 2.1rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.1;
  padding: 8px 6px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffe3a0 0%, #fff4d0 50%, #ffe8a0 100%);
  background-size: 180% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #f4c064;
  filter: drop-shadow(0 0 6px rgba(244, 192, 100, 0.4));
}
:where(#odin-fass-modal) .odin-cart-close-btn{
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: 0;
  margin: 0 0 0 15px;
  padding: 6px;
  font-size: 26px;
  line-height: 26px;
  color: #ffe3a0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.3s ease, transform 0.3s ease;
}
:where(#odin-fass-modal) .odin-cart-close-btn:hover, :where(#odin-fass-modal) .odin-cart-close-btn:focus-visible{ filter: drop-shadow(0 0 8px rgba(244, 192, 100, 0.6)); outline: none; }

.odin-fass-content-wrapper {
  overflow-y: auto;
  overflow-x: hidden;
  max-height: calc(100vh - 120px);
  scrollbar-width: thin;
  scrollbar-color: #5e3e1c transparent;
  padding-right: 2px;
}
.odin-fass-content-wrapper::-webkit-scrollbar { width: 6px; }
.odin-fass-content-wrapper::-webkit-scrollbar-thumb { background: #5e3e1c; border-radius: 3px; }
.odin-fass-content-wrapper::-webkit-scrollbar-track { background: transparent; }
#odin-fass-body { padding: clamp(2px, 0.4vw, 6px) clamp(14px, 1.6vw, 18px); }

/* Eine Zeile je Sorte */
.odin-fass-item {
  display: grid;
  grid-template-columns: clamp(64px, 6.5vw, 84px) 1fr auto;
  gap: clamp(10px, 1.2vw, 15px);
  align-items: center;
  padding: clamp(6px, 0.8vw, 10px) 0;
  border-bottom: 1px solid rgba(197, 160, 89, 0.15);
}
.odin-fass-item-img {
  position: relative;
  width: clamp(64px, 6.5vw, 84px);
  height: clamp(64px, 6.5vw, 84px);
  flex-shrink: 0;
  border-radius: clamp(6px, 0.8vw, 10px);
  overflow: visible;
  border: 1px solid rgba(197, 160, 89, 0.2);
  background: #000;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
}
.odin-fass-item-img img { width: 100%; height: 100%; object-fit: cover; border-radius: clamp(6px, 0.8vw, 10px); display: block; }
:where(#odin-fass-modal) .odin-popup-badge{
  position: absolute;
  top: -6px;
  left: -6px;
  min-width: 32px;
  height: 32px;
  padding: 0 0 2px;
  border-radius: 50%;
  background: #fff;
  color: #bf8139;
  font-family: 'ITC Odin Con', serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
}
.odin-fass-item-details { display: flex; flex-direction: column; gap: 1px; text-align: left; align-self: center; min-width: 0; }
:where(#odin-fass-modal) .odin-item-name{
  display: block;
  font-family: 'ITC Odin Con', serif;
  font-size: clamp(1.4rem, 2.1vw, 1.75rem);
  font-weight: 400;
  letter-spacing: 1.5px;
  line-height: 1.2;
  text-transform: uppercase;
  background: linear-gradient(120deg, #f5db9a 0%, #fffbf1 40%, #fff0c4 70%, #eed8a2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #ffda99;
  filter: drop-shadow(0 0 10px rgba(244, 192, 100, 0.45));
}
:where(#odin-fass-modal) .odin-small-variant{ display: block; font-size: 14.95px; letter-spacing: 0.03em; line-height: 26px; color: #d6be9f; }
.odin-fass-item-action { display: flex; flex-direction: column; align-items: center; align-self: center; flex-shrink: 0; gap: 12px; padding-left: 8px; }
:where(#odin-fass-modal) .odin-item-qty-row{ display: flex; gap: 5px; justify-content: center; align-items: center; }

/* Plus/Minus */
:where(#odin-fass-modal) .odin-mini-qty-btn{
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  width: 36px;
  height: 36px;
  min-width: 32px;
  min-height: 32px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  filter: drop-shadow(0 0 5px rgba(255, 230, 160, 0.4));
  transition: filter 0.3s ease, transform 0.15s ease;
}
:where(#odin-fass-modal) .odin-mini-qty-btn:hover, :where(#odin-fass-modal) .odin-mini-qty-btn:focus-visible{ filter: drop-shadow(0 0 8px rgba(255, 230, 160, 0.8)); outline: none; }
:where(#odin-fass-modal) .odin-mini-qty-btn:active{ transform: scale(0.92); }
:where(#odin-fass-modal) .odin-mini-qty-btn::before, :where(#odin-fass-modal) .odin-mini-qty-btn.odin-qty-plus::after{
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 2px;
  background: linear-gradient(90deg, #f3d895, #ffe3a0, #fff0c4, #ffe3a0, #f3d895);
}
:where(#odin-fass-modal) .odin-mini-qty-btn::before{ width: 18px; height: 2px; transform: translate(-50%, -50%); }
:where(#odin-fass-modal) .odin-mini-qty-btn.odin-qty-plus::after{ width: 2px; height: 18px; transform: translate(-50%, -50%); background: linear-gradient(180deg, #f3d895, #ffe3a0, #fff0c4, #ffe3a0, #f3d895); }

/* Zahl im Knoten-Ring */
:where(#odin-fass-modal) .odin-mini-circle-wrap{ position: relative; display: flex; justify-content: center; align-items: center; filter: drop-shadow(0 0 4px rgba(255, 215, 130, 0.12)); }
.odin-fass-circle-wrap { width: clamp(52px, 5vw, 62px); height: clamp(52px, 5vw, 62px); }
:where(#odin-fass-modal) .odin-fass-circle-wrap .odin-knot-ring{
  width: 100%;
  height: 140%;
  max-width: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
:where(#odin-fass-modal) .odin-mini-qty-display{
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'ITC Odin Con', serif;
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1;
  padding-top: 2px;
  background: linear-gradient(120deg, #f5db9a 0%, #fffbf1 40%, #fff0c4 70%, #eed8a2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: brightness(1.06) saturate(1.05) drop-shadow(0 0 5px rgba(255, 230, 160, 0.4));
}

/* Entleeren */
:where(#odin-fass-modal) .odin-item-remove-link{
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  display: flex;
  gap: 3px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-family: 'ITC Odin Con', serif;
  color: #e35555;
  line-height: 1;
  transition: filter 0.3s ease;
}
:where(#odin-fass-modal) .odin-item-remove-link:hover, :where(#odin-fass-modal) .odin-item-remove-link:focus-visible{ filter: drop-shadow(0 0 6px rgba(227, 85, 85, 0.6)); outline: none; }
:where(#odin-fass-modal) .odin-entleeren-x{ display: block; font-size: 1.15rem; line-height: 1; margin-top: -2px; }
:where(#odin-fass-modal) .odin-entleeren-text{ display: block; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1; }

/* Formular */
.odin-fass-form-section { padding-top: 8px; margin-top: 0; }
#odin-fass-form { margin: 0; }
.odin-fass-reihe { margin-bottom: 4px; }
.odin-fass-falle { position: absolute; left: -9999px; top: -9999px; opacity: 0; pointer-events: none; }
.odin-fass-fc { position: relative; overflow: visible; border-radius: 8px; }
.odin-fass-fc::after {
  content: '';
  display: block;
  position: absolute;
  inset: 0;
  border-radius: 8px;
  padding: 1px;
  background: linear-gradient(120deg, rgba(197, 160, 89, 0.4), rgba(212, 176, 106, 0.3), rgba(197, 160, 89, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 10;
  transition: padding 0.3s ease, background 0.3s ease;
}
.odin-fass-fc.is-focus::after, .odin-fass-fc.is-filled::after {
  padding: 2px;
  background: linear-gradient(120deg, #c5a059, #d4b06a, #f3d895, #ffe3a0, #f3d895, #d4b06a, #c5a059);
}
.odin-fass-fc.is-error::after { padding: 2px; background: linear-gradient(120deg, #c44a3f, #e06050, #ff7a6a, #e06050, #c44a3f); }
.odin-fass-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: rgba(12, 9, 7, 0.8);
  border: none;
  border-radius: 8px;
  padding: 14px;
  min-height: 50px;
  outline: none;
  box-shadow: none;
  color: #ffe3a0;
  -webkit-text-fill-color: #ffe3a0;
  caret-color: #ffe3a0;
  font-family: 'ITC Odin Con', serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.3;
  transition: box-shadow 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  position: relative;
  z-index: 1;
}
textarea.odin-fass-input { resize: vertical; min-height: 44px; max-height: 100px; }
.odin-fass-fc.is-focus .odin-fass-input { box-shadow: 0 0 18px rgba(197, 160, 89, 0.35), 0 0 6px rgba(197, 160, 89, 0.2); outline: 2px solid #c5a059; }
.odin-fass-fc.is-filled:not(.is-focus):not(.is-error) .odin-fass-input { box-shadow: 0 0 6px rgba(197, 160, 89, 0.1); }
.odin-fass-input::placeholder { color: #9a8468; -webkit-text-fill-color: #9a8468; font-family: 'ITC Odin Con', serif; font-size: 17px; opacity: 1; }
.odin-fass-input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #0c0907 inset; -webkit-text-fill-color: #ffe3a0; }
.odin-fass-field-error { font-family: 'ITC Odin Con', serif; font-size: 0.72rem; color: #e35555; margin-top: 2px; line-height: 1.3; }
.odin-fass-field-error:empty { display: none; }
.odin-fass-row-half, .odin-fass-row-plz { display: flex; gap: 8px; }
.odin-fass-col-half { flex: 1; min-width: 0; }
.odin-fass-col-third { flex: 0 0 35%; min-width: 0; }
.odin-fass-col-twothird { flex: 1; min-width: 0; }

.odin-fass-status { min-height: 16px; font-family: 'ITC Odin Con', serif; font-size: 0.82rem; line-height: 1.3; text-align: center; margin: 3px 0; transition: color 0.3s ease; }
.odin-fass-error { color: #e35555; }
.odin-fass-success { color: #5bc55b; }

/* Goldener Knopf (wie „Meine Trünke“) */
:where(#odin-fass-modal) .odin-cart-btn{
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 55px;
  padding: 0 20px 2px;
  border-radius: 999px;
  font-family: 'ITC Odin Con', serif;
  font-size: 17.55px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  background: linear-gradient(120deg, #f3d895 0%, #ffe3a0 40%, #fff0c4 70%, #ffe3a0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #bf8139;
  box-shadow: 0 0 4px rgba(230, 168, 91, 0.15);
  transition: filter 0.3s ease, box-shadow 0.3s ease;
}
:where(#odin-fass-modal) .odin-cart-btn::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  padding: 2px;
  background: linear-gradient(120deg, #c5a059, #d4b06a, #f3d895, #ffe3a0, #f3d895, #d4b06a, #c5a059);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
:where(#odin-fass-modal) .odin-cart-btn:hover, :where(#odin-fass-modal) .odin-cart-btn:focus-visible{ filter: drop-shadow(0 0 12px rgba(244, 192, 100, 0.6)) drop-shadow(0 0 25px rgba(244, 192, 100, 0.3)); outline: none; }
.odin-fass-submit-btn { width: 100%; max-width: 100%; margin-top: 2px; margin-bottom: 4px; }
.odin-fass-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.odin-fass-empty { text-align: center; padding: 40px 0; }
.odin-fass-empty p { margin: 0; font-family: 'ITC Odin Con', serif; font-size: 1.5rem; color: #d6be9f; text-transform: uppercase; letter-spacing: 0.03em; }

@media screen and (min-width: 1200px) and (min-height: 900px) {
  .odin-fass-content-wrapper { max-height: calc(100vh - 100px); }
}
@media screen and (max-width: 768px) {
  .odin-fass-panel { bottom: 100px; right: 2.5%; width: 95%; max-width: 380px; max-height: calc(100vh - 110px); padding-bottom: 12px; }
  .odin-fass-content-wrapper { max-height: calc(100vh - 260px); padding-right: 4px; }
  .odin-fass-item { grid-template-columns: 48px 1fr auto; padding: 4px 0; gap: 10px; }
  .odin-fass-item-img { width: 48px; height: 48px; }
  .odin-fass-item-action { gap: 6px; padding-left: 4px; }
  .odin-fass-circle-wrap { width: 62px; height: 62px; }
  :where(#odin-fass-modal) .odin-fass-circle-wrap .odin-mini-qty-display{ font-size: 1.5rem; }
  #odin-fass-modal .odin-mini-qty-btn { width: 22px; height: 22px; min-width: 20px; min-height: 20px; }
  #odin-fass-modal .odin-mini-qty-btn::before { width: 12px; height: 2px; }
  #odin-fass-modal .odin-mini-qty-btn.odin-qty-plus::after { width: 2px; height: 12px; }
  #odin-fass-modal .odin-entleeren-text { font-size: 0.75rem; }
  #odin-fass-modal .odin-entleeren-x { font-size: 0.9rem; }
  #odin-fass-modal .odin-fass-submit-btn { height: 50px; min-height: 50px; font-size: 1.05rem; }
  .odin-fass-input { padding: 10px 12px; }
  :where(#odin-fass-modal) .odin-cart-header-row{ padding: 22px 18px 12px; }
}
@media screen and (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
  .odin-fass-panel { max-width: 460px; max-height: calc(100vh - 110px); }
  .odin-fass-content-wrapper { max-height: calc(100vh - 200px); }
  .odin-fass-item-img { width: 68px; height: 68px; }
  .odin-fass-item { grid-template-columns: 68px 1fr auto; padding: 6px 0; }
}
@media screen and (min-width: 769px) and (max-height: 860px) and (orientation: landscape) {
  .odin-fass-panel { max-width: 420px; max-height: calc(100vh - 105px); }
  .odin-fass-content-wrapper { max-height: calc(100vh - 250px); }
}
@media screen and (max-width: 768px) and (max-height: 500px) {
  .odin-fass-panel { bottom: 95px; max-height: calc(100vh - 105px); }
  .odin-fass-content-wrapper { max-height: calc(100vh - 240px); }
}
