
@font-face {
  font-family: "Pacifico";
  src: url("fonts/Pacifico-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

/* =========================
   ZAHLUNG – BASIS
   ========================= */

.zahlung-panel {
  min-height: 100vh;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
}

body {
  font-family: "Lato", sans-serif;
}

.zahlung-inner {
  display: flex;
  flex-direction: column;
  width: min(900px, 90vw);
  text-align: center;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 24px;
  gap: clamp(8px, 1.8vh, 20px);
}

.zahlung-title {
  font-family: 'Pacifico', cursive;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  color: #ffffff;
  margin-bottom: clamp(16px, 4vh, 30px);

  text-shadow: 
  0 0  1px rgba(0, 0, 0, 0.99), 
  0 0 10px rgba(209, 182, 98, 0.99), 
  0 0 15px rgba(209, 182, 98, 0.88), 
  0 0 20px rgba(209, 182, 98, 0.77) !important;
}

.zahlung-intro {
  font-size: 1.4rem;
  color: rgba(255,255,255,0.95);
  letter-spacing: 0.02em;
}

.zahlung-methoden {
  list-style: none;
  padding: 0;
  margin: 0 auto 2rem;

  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  width: min(720px, 90vw);
}

.zahlung-methoden li {
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(5px) saturate(130%);
  -webkit-backdrop-filter: blur(5px) saturate(130%);
  border: 2px solid rgba(209, 182, 98, .85);
  border-radius: 88px;
  font-family: 'Lato';
  font-size: 1.0rem;
  font-weight: 600;
  color: rgb(255, 255, 255);
  text-shadow: 
  0 0 10px rgba(100, 73, 0, 0.3), 
  0 0 5px rgba(54, 40, 0, 0.2), 
  0 0 5px rgba(54, 40, 0, 0.2) !important;
}

.zahlung-hinweis {
  font-size: 1rem;
  font-family: 'Lato';
  color: rgba(255,255,255,1.0);
  margin-bottom: clamp(16px, 4vh, 60px);
  text-shadow: 
  0 0 10px rgba(100, 73, 0, 0.3), 
  0 0 5px rgba(54, 40, 0, 0.2), 
  0 0 5px rgba(54, 40, 0, 0.2) !important;
}

/* =========================
   ZAHLUNG – PORTEMONNAIE
   ========================= */

.zahlung-wallet {
  display: flex;
  justify-content: center;
  align-items: center;

  margin: 2.5rem 0 2rem;
}

.zahlung-wallet img {
  width: min(720px, 90vw);
  height: auto;
  z-index: 1;
  display: block;
}

@media (min-width: 1251px) {
  .zahlung-inner {
    transform: translateX(calc(var(--header-w, 250px) / 2)) translateY(-50px);
    margin-bottom: clamp(16px, 6vh, 60px);
  }
}


.ec-card {
  width: 240px;
  height: 160px;
  border-radius: 14px;

background:
  radial-gradient(120% 140% at 10% 10%, rgba(255,255,255,.3), transparent 40%),
  linear-gradient(135deg,
    rgba(255, 0, 0, 0.3),
    rgba(255, 196, 0, 0.3) 35%,
    rgba(162, 0, 255, 0.3) 65%,
    rgba(0, 4, 255, 0.3)
  );


  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  box-shadow:
    0 20px 40px rgba(0,0,0,.25),
    inset 0 0 0 1px rgba(255,255,255,.35);

  color: white;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  padding: 22px;
  box-sizing: border-box;

  position: absolute;

  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(45px);
  transition: transform 0.45s ease;

  pointer-events: none;
}

.ec-card::after {
  content: ") ) )";
  position: absolute;
  top: 22px;
  right: 22px;

  font-size: 20px;
  letter-spacing: -2px;
  opacity: .8;
}

.ec-number {
  font-size: 13px;
  letter-spacing: 3px;
  margin-bottom: -10px;
  margin-top: -15px;
}

.ec-valid {
  font-size: 8px;
  text-transform: uppercase;
  margin-left: -100px;
  opacity: .8;
}

.ec-date {
  font-size: 10px;
  margin-left: 2px;
}


.ec-chip {
  width: 36px;
  height: 28px;
  border-radius: 6px;
  background:
    linear-gradient(135deg,
      #f6e27a,
      #d6a83b
    );

  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,.15),
    0 4px 8px rgba(0,0,0,.25);

    margin-top: 26px;
}

.ec-lines {
  height: 3px;
  margin: 18px 16px;
  background: rgba(255,255,255,0.35);
  border-radius: 4px;
  margin-top: 10px;
}

.ec-label {
  position: absolute;
  bottom: 14px;
  right: 16px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.85);
}

.ec-name {
  margin-top: 1px;
  font-size: 12px;
  font-weight: 500;
  margin-left: -60px;
}

.ec-iban {
  margin-top: -2px;
  font-size: 9px;
  opacity: .85;
  margin-left: -21px;
}




/* Bühne */
.zahlung-wallet {
  position: relative;
}

/* EC-Karte */
.ec-card {
  position: absolute;
  bottom: 80px;           /* sitzt im Portemonnaie */
  left: 24%;
  transform: translateX(-50%) translateY(40px);
  transition: transform 0.45s ease;
  pointer-events: none;
  z-index: 2;
}



/* Startzustand */
.ec-card {
  transform: translateX(-50%) translateY(45px);
  transition: transform .45s ease;
}

/* NUR: EC-Pill hovert */
.zahlung-panel:has(.zahlung-methoden li[data-pay="ec"]:hover) .ec-card {
  transform: translateX(-50%) translateY(-90px) rotate(-5deg);
}
.zahlung-panel:has(.zahlung-methoden li[data-pay="ec"]:hover) .cc-card {
  transform: translateX(-50%) translateY(45px);
}

.ec-bank {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 600;
  font-size: 18px;
  opacity: .9;
}


.zahlung-wallet {
  position: relative;
}

/* Fach-Overlay */
.zahlung-wallet::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;

  background-image: url("../bilder/portemonnaiefach.webp");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;

  pointer-events: none;
}
.ec-card {
  overflow: hidden;   /* 🔑 verhindert Überstehen */
}
.ec-iban {
  display: block;
  max-width: 100%;

  white-space: normal;          /* ❗ nicht nowrap */
  overflow-wrap: break-word;    /* moderner Standard */
  word-break: break-word;       /* Fallback */
}


/* KREDITKARTE */ 

.cc-card {
  left: 77%;
  background:
    radial-gradient(120% 140% at 10% 10%, rgba(255,255,255,.25), transparent 40%),
    linear-gradient(135deg,
      rgba(255, 255, 255, 0.5),
      rgba(0, 0, 0, 0.3) 35%,
      rgba(124, 124, 124, 0.3) 65%,
      rgba(0, 0, 0, 0.5)
    );
}

.cc-card .ec-label {
  letter-spacing: 0em;
  font-weight: 600;
}
.cc-card::after {
  content: "VISA";
  position: absolute;
  bottom: 16px;
  left: 195px;
  font-size: 14px;
  font-weight: 600;
  opacity: .9;
}

.cc-card .ec-iban {
  margin-left: -15px;
}

.zahlung-panel:has(.zahlung-methoden li[data-pay="credit"]:hover) .cc-card {
  transform: translateX(-50%) translateY(-90px) rotate(5deg);
}

/* GELDSCHEIN */ 

.cash-bill {
  position: absolute;
  bottom: 52%;          /* exakt im Fach */
  left: 33%;             /* links, EC-Fach */
  transform: translateX(-50%) translateY(50px);
  transition: transform .45s ease;

  width: 400px;          /* Schein etwas größer */
  pointer-events: none;
  z-index: 1;            /* UNTER Karten */
}

.cash-bill img {
  width: 100%;
  display: block;
  border-radius: 6px;
  filter: brightness(.95) contrast(1.05);
}

.zahlung-panel:has(.zahlung-methoden li[data-pay="cash"]:hover) 
.cash-bill {
  transform: translateX(-50%) translateY(-50px) rotate(3.9deg);
}

.cash-bill img {
  box-shadow: 0 12px 24px rgba(0,0,0,.25);
}
.cash-bill img {
  opacity: 0.88;
  filter:
    brightness(1.02)
    contrast(1.05);
}
.cash-bill img {
  box-shadow:
    0 10px 24px rgba(0,0,0,.22);
}


/* GUTSCHEIN */ 

.voucher-card {
  position: absolute;
  bottom:145px;              /* exakt Fachhöhe */
  left: 80%;                 /* rechtes Fach */
  transform: translateX(-50%) translateY(70px);
  transition: transform .45s ease;

  width: 200px;
  pointer-events: none;
  z-index: 1;                /* unter Karten */
}

.voucher-card img {
  width: 100%;
  display: block;
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(0,0,0,.25);
}

.zahlung-panel:has(.zahlung-methoden li[data-pay="voucher"]:hover)
.voucher-card {
  transform: translateX(-50%) translateY(-30px) rotate(10deg);
}
.voucher-card img {
  opacity: 0.82;
  filter:
    brightness(1.03)
    contrast(1.05)
    saturate(0.95);
}
.voucher-card img {
  box-shadow: 0 12px 26px rgba(0,0,0,.25);
}


/* APPLE UND GOOGLE PAY */ 

.pay-tile {
  position: absolute;
  bottom: 185px;                 /* KOMMT VON UNTEN */
  width: 100px;
  height: 100px;
  border-radius: 16px;

  background: rgba(255,255,255,0.3);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);

  box-shadow:
    0 20px 40px rgba(0,0,0,.25),
    inset 0 0 0 1px rgba(255,255,255,.35);

  display: grid;
  place-items: center;

  transform: translateY(40px);
  transition: transform .45s ease;

  pointer-events: none;
  z-index: 0;                   /* GANZ UNTEN */
}

.pay-tile img {
  max-width: 90%;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
}


.pay-tile--apple {
  left: 27%;
}

.pay-tile--google {
  left: 50%;
}

/* Apple Pay */
.zahlung-panel:has(.zahlung-methoden li[data-pay="apple"]:hover)
.pay-tile--apple {
  transform: translateY(-110px) rotate(-8deg);
}

/* Google Pay */
.zahlung-panel:has(.zahlung-methoden li[data-pay="google"]:hover)
.pay-tile--google {
  transform: translateY(-110px) rotate(7deg);
}

/* ---------- RESPONSIVE DESIGN ------------- */ 


.zahlung-inner > * {
  margin: 0;
}

.zahlung-title {
  position: static !important;
}
.zahlung-title {
  margin: 0;
}

.zahlung-title { order: 0; }
.zahlung-intro { order: 1; }
.zahlung-wallet { order: 2; }
.zahlung-methoden { order: 3; }
.zahlung-hinweis { order: 4; }

.zahlung-title {
  position: static !important;
  margin: 0;
}

.zahlung-title { position: static !important; }

.zahlung-inner {
  display: flex;
  flex-direction: column;
  align-items: center;


  /* Luft zum Header / Footer – schrumpft mit */
  padding-block: clamp(16px, 6vh, 96px);

  /* WICHTIG: erlaubt echtes Zusammenschieben */
  min-height: 0;
}

@media (min-width: 1251px) and (max-height: 630px) {
  .zahlung-wallet {
    transform: scale(0.9);
    transform-origin: center top;
  }
}

@media (min-width: 1251px) and (max-height: 560px) {
  .zahlung-wallet {
    transform: scale(0.8);
  }
}

.zahlung-panel {
  /* volle sichtbare Höhe */
  min-height: 100svh;

  /* Platz für Header + Footer lassen */
  padding-block: clamp(24px, 4vh, 64px);

  display: flex;
  justify-content: center;
}

.zahlung-inner {
  display: flex;
  flex-direction: column;
  align-items: center;

  /* DAS ist der Schlüssel */
  height: calc(100svh - 220px); 
  /* 220px ≈ Header + Footer + Sicherheitsluft */

  justify-content: space-between;

  /* KEIN riesiger gap mehr */
  gap: 10px;
}

@media (min-width: 1251px) and (max-height: 660px) {
    .zahlung-inner {
        transform: translateX(calc(var(--header-w, 250px) / 2)) 
                   translateY(-80px);
    }
  }

@media (min-width: 1251px) and (max-height: 630px) {
    .zahlung-inner {
        transform: translateX(calc(var(--header-w, 250px) / 2)) 
                   translateY(-80px);
        gap: 5px;
    }

    .zahlung-methoden {
        margin-top: -30px;
    }

    .zahlung-intro {
        margin-bottom: 10px;
  }
}

@media (min-width: 1251px) and (max-height: 590px) {
    .zahlung-inner {
        transform: translateX(calc(var(--header-w, 250px) / 2)) 
                   translateY(-90px);
    }

    .zahlung-title {
      font-size: 3vw;
    }
  }

  @media (min-width: 1251px) and (max-height: 560px) {
    .zahlung-inner {
        transform: translateX(calc(var(--header-w, 250px) / 2)) 
                   translateY(-90px);
    }

    .zahlung-title {
      font-size: 3vw;
    }

        .zahlung-methoden {
        margin-top: -50px;
    }

    .zahlung-intro {
        margin-bottom: 10px;
        font-size: 1.2rem;
  }
  }


  @media (min-width: 1251px) and (max-height: 540px) {
  .zahlung-title {
      font-size: 2.5vw;
    }
  
  .zahlung-wallet {
    transform: scale(0.7);
  }

  .zahlung-methoden {
        margin-top: -80px;
    }

  }


/* =========================
   MOBILE: Wallet komplett skalieren (HARD, STABIL)
   ========================= */
@media (max-width: 800px) {
  .zahlung-wallet {
    zoom: 0.99;
  }
}

@media (max-width: 730px) {
  .zahlung-wallet {
    zoom: 0.9;
  }
  .zahlung-wallet img[src*="portemonnaie"] {
  width: 720px;
}

}

@media (max-width: 710px) {
  .zahlung-wallet {
    zoom: 0.85;
  }

  .zahlung-wallet img[src*="portemonnaie"] {
  width: 700px;
}

}
@media (max-width: 610px) {
  .zahlung-wallet {
    zoom: 0.80;
  }

  .zahlung-wallet img[src*="portemonnaie"] {
  width: 680px;
}
}
@media (max-width: 550px) {
  .zahlung-wallet {
    zoom: 0.73;
  }

  .zahlung-wallet img[src*="portemonnaie"] {
  width: 670px;
}
}

@media (max-width: 610px) {
  .zahlung-wallet {
    zoom: 0.65;
  }

  .zahlung-wallet img[src*="portemonnaie"] {
  width: 750px;
}
}

@media (max-width: 500px) {
  .zahlung-wallet {
    zoom: 0.65;
  }

  .zahlung-wallet img[src*="portemonnaie"] {
  width: 680px;
}
}

@media (max-width: 450px) {
  .zahlung-wallet {
    zoom: 0.55;
  }

  .zahlung-wallet img[src*="portemonnaie"] {
  width: 700px;
}
}

@media (max-width: 390px) {
  .zahlung-wallet {
    zoom: 0.5;
  }

  .zahlung-wallet img[src*="portemonnaie"] {
  width: 680px;
}
}

@media (max-width: 340px) {
  .zahlung-wallet {
    zoom: 0.45;
  }

  .zahlung-wallet img[src*="portemonnaie"] {
  width: 680px;
}
}

@media (max-width: 310px) {
  .zahlung-wallet {
    zoom: 0.4;
  }

  .zahlung-wallet img[src*="portemonnaie"] {
  width: 680px;
}
}

@media (max-width: 1250px) {
  main {
    padding-top: 50px;
  }
}

@media (max-width: 1250px) {
  .zahlung-title {
    font-size: clamp(1.6rem, 5vw, 2.6rem);
    line-height: clamp(1.15, 1.2, 1.3);
    margin-bottom: clamp(8px, 2vh, 20px);
  }
}

@media (max-width: 1250px) {
  .zahlung-intro {
    font-size: clamp(1rem, 4vw, 1.1rem);
    line-height: clamp(1.25, 1.35, 1.5);
    margin-bottom: clamp(10px, 2.5vh, 28px);
    max-width: 42ch; /* optional, falls du Zeilenlänge begrenzen willst */
    text-align: center;
  }


}

@media (max-width: 1250px) {
.zahlung-panel {
  overflow-y: visible;
  padding-block: clamp(100px, 4vh, 64px);
}

.zahlung-inner {
  height: auto;
}
}

/* -------------------------------------- */ 

@media (max-width: 1250px) {
  .zahlung-methoden li {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .zahlung-methoden li.is-pulsing {
    transform: scale(1.04);
    box-shadow:
      0 0 0 1px rgba(209,182,98,0.55),
      0 0 12px rgba(209,182,98,0.45);
  }
}


@media (max-width: 1250px) {

.zahlung-methoden {
    gap: 5px;
    scale: 0.8;
    width: min(720px, 110vw);
}

  /* EC Preview → NUR EC-Karte */
  .zahlung-panel.preview-ec .ec-card:not(.cc-card) {
    transform: translateX(-50%) translateY(-90px) rotate(-5deg);
  }

  /* Credit Preview → NUR Kreditkarte */
  .zahlung-panel.preview-credit .cc-card {
    transform: translateX(-50%) translateY(-90px) rotate(5deg);
  }

  /* Barzahlung → Geldschein */
  .zahlung-panel.preview-cash .cash-bill {
    transform: translateX(-50%) translateY(-50px) rotate(3.9deg);
  }

  /* Gutschein */
  .zahlung-panel.preview-voucher .voucher-card {
    transform: translateX(-50%) translateY(-30px) rotate(10deg);
  }

  /* Apple Pay */
  .zahlung-panel.preview-apple .pay-tile--apple {
     transform: translateY(-110px) rotate(-8deg);
  }

  /* Google Pay */
  .zahlung-panel.preview-google .pay-tile--google {
    transform: translateY(-110px) rotate(7deg);
  }


.pay-tile,
.ec-card,
.cc-card,
.cash-bill,
.voucher-card {
  transition:
    transform 0.45s ease,
    opacity 0.3s ease;
}

.zahlung-panel[class*="preview-"] 
.pay-tile,
.zahlung-panel[class*="preview-"] 
.ec-card,
.zahlung-panel[class*="preview-"] 
.cc-card,
.zahlung-panel[class*="preview-"] 
.cash-bill,
.zahlung-panel[class*="preview-"] 
.voucher-card {
  transition-delay: 0s;
}

.zahlung-panel:not([class*="preview-"]) 
.pay-tile,
.zahlung-panel:not([class*="preview-"]) 
.ec-card,
.zahlung-panel:not([class*="preview-"]) 
.cc-card,
.zahlung-panel:not([class*="preview-"]) 
.cash-bill,
.zahlung-panel:not([class*="preview-"]) 
.voucher-card {
  transition-delay: 250ms; /* ← DAS ist das „oben stehen bleiben“ */
}

}


