
#keyboard.simple-keyboard {
    position: absolute; /* innerhalb der Canvas bleiben */
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    z-index: 2000; /* Muss über Modal liegen */
    background: #fff;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.12);
    padding-bottom: 10px;
    width: 100%; /* volle Canvas-Breite statt viewport */
    max-width: 1080px;
    margin: 0 auto;
}

.hg-space-wide {
  flex: 6 1 400px !important;
  min-width: 260px;
}
.hg-domain-short {
  flex: 1.3 1 80px !important;
  min-width: 65px;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Amiri', sans-serif;
}

/* Design size and dynamic scale variable */
:root {
    --design-w: 1080;
    --design-h: 1920;
    --scale: 1;
}

/* Viewport für 1080x1920 Hochformat */
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: #f9f9f9;
}

/* Stage füllt den Viewport */
.stage {
    width: 100vw;
    height: 100vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #f0f0f0;
}

/* Behälter, der die 1080x1920-Canvas mittig skaliert */
.stage-inner {
    width: 100%;
    height: 100%;
    position: relative;
    display: grid;
    place-items: center;
    --canvas-scale: 1;
    overflow: hidden;
}

/* Entwickler-Responsive-Modus: Für normale Browser-Fenster */
/* Baseline responsive: keine speziellen Schranken nötig, da Canvas skaliert */

/* Optional: Vorschau-Skalierung nur wenn Klasse aktiv ist. */
.dev-preview-scale {
  --scale: min(100vw / 1080, 100vh / 1920);
}
/* In der Vorschau NUR die Leinwand .fixed-body skalieren,
   html/body bleiben weiterhin 1080x1920, damit vw/vh stabil bleiben. */
.dev-preview-scale .fixed-body {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) scale(min(100vw / 1080, 100vh / 1920));
  transform-origin: top left;
  z-index: 0;
}

/* Entwickler-Rahmen für große Browserfenster */
body.dev-preview .fixed-body {
  width: 90vw !important;
  max-width: 1400px !important;
  margin: 2vw auto !important;
  box-shadow: 0 0 32px rgba(0,0,0,0.08);
  border-radius: 24px;
  background: #fff !important;
}
body.dev-preview {
  background: #eee !important;
}


.fixed-body {
    width: 1080px;
    height: 1920px;
    margin: 0;
    padding: 0;
    background: url('background.png') no-repeat center center !important;
    background-size: 1080px 1920px !important;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(var(--canvas-scale));
    transform-origin: center center;
}

.fixed-container {
    width: 100%;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    padding-top: 625px;
}

.confirmation-btn {
    margin-top: 20px;
    padding: 12px 40px;
    font-size: 1.1rem;
    background: #1a472a;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-block;
}

.keyboard-hidden {
    display: none !important;
}


.receipt-btn {
    margin: 15px 10px;
    padding: 14px 0;
    font-size: 1.1rem;
    background: #1a472a;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    max-width: 130px;
    display: inline-block;
}

#send-receipt-btn.receipt-btn {
    margin-top: 10px;
    max-width: 100%;
}

.email-container {
    margin-top: 10px;
}

.email-fields {
    margin-bottom: 10px;
}

.input-field {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

/* Body bleibt neutral, Bühne zentriert den Inhalt */
body { overflow: auto; }


.terminal {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 100%;
    /* Kein viewport-gebundener Max-Height innerhalb der skalierten Canvas */
    max-height: none;
    padding: 20px 0 0 0;
    text-align: center;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    margin: 40px auto 0 auto;
}

.terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 15px;
    background: linear-gradient(90deg, #d4af37, #f7e7ce, #d4af37);
}

header {
    margin-bottom: 0vh;
    position: relative;
    flex-shrink: 0;
}

.logo-container {
    margin-bottom: 20px;
    text-align: center;
}

.logo {
    max-width: 60%;
    height: auto;
    margin: 0 auto 1vh;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.headline-logo {
    display: block;
    margin: 0px auto 0 auto;
}

.headline-stripe {
    width: 750px;
    height: 3px;
    background: #d4af37;
    border-radius: 3px;
    margin: 10px auto -10px auto;
    display: block;
    z-index: 10;
}

ayet {
    font-size: 1.6rem;
    color: #2c3e50;
    margin: 1vh 0;
    position: relative;
}

h1 {
    font-family: "Source Serif 4", sans-serif;
    font-size: 22px;
    color: #262626;
    margin: 10px 0 5px 0;
    font-weight: 600;
    position: relative;
    display: inline-block;
    line-height: 1.3;
}

h1de {
    font-family: "Source Serif 4", sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    font-style: italic;
    opacity: 0.85;
    color: #393939;
    position: relative;
    line-height: 1.3;
}

/*
    h1de::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 750px;
    height: 3px;
    background: #d4af37; /* Gold 
    border-radius: 3px;
}
*/

h2 {
    font-family: "League Spartan", sans-serif;
    font-size: 2.5rem;
    color: #262626;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

h2de {
    font-family: "League Spartan", sans-serif;
    font-size: 1.05em;
    color: #393939;
    font-style: italic;
    opacity: 0.85;
}

p {
    color: #555;
    margin: 10px 0 0;
    line-height: 1.5;
    font-size: 18px;
    padding: 0 20px;
}

h4{
    font-family: "League Spartan", sans-serif;
    color: #262626;
    font-size: 24px;
    padding: 0 20px;
    font-weight: 600;
    font-style: normal;
    margin-top: 20px;
}

h4de {
    font-family: "League Spartan", sans-serif;
    color: #393939;
    font-size: 1.05rem;
    font-style: italic;
    opacity: 0.85;
}

.ayet-ismi {
    font-family: "League Spartan", sans-serif;
    font-size: 0.85rem;
    color: #393939;
    font-weight: 600;
    position: relative;
    display: inline-block;
    margin-top: 1vh;
    opacity: 0.85;
}

.donation-amount {
    margin: 2vh 0 1vh 0;
    flex-grow: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.amount-display {
    font-family: "League Spartan", sans-serif;
    font-weight: 700;
    font-size: 72px;
    margin: 10px 0 0 0;
    color: #2f2f2f;
    position: relative;
    display: inline-block;
    padding: 0 50px;
    line-height: 1.2;
}

.euro-amounts {
    font-family: "League Spartan", sans-serif;
    font-weight: 600;
}

.noto-sans-euro {
    font-family: "Noto Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
}

.noto-sans-euro-small {
    font-family: "Noto Sans", sans-serif;
    font-weight: 600;
}

.quick-amounts {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quick-amount-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
}

.quick-amounts {
    margin: 0.5vh auto 2vh auto;
    max-width: 900px;
}


.amount-btn {
    /*    font-size: 1.75rem;
    font-weight: 600;
    color: #1a472a;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.07);
    padding: 0.6em 0.6em 0.4em 0.6em;*/
    margin: 0.5vw;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
    width: 16vw;
    min-width: 90px;
    max-width: 130px;
    min-height: 70px;
    max-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    user-select: none;
    touch-action: manipulation;
    border: none !important;
    border-width: 0 !important;
    background: none !important;
    background-color: transparent !important;
    background-clip: padding-box;
}

.quickbtn-img {
    display: block;
    max-width: 100%;
    transform: rotate(-15deg);
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: -18px 22px 32px 0px rgba(26, 71, 42, 0.18);
    border-radius: 2px;
}

.amount-btn:active .quickbtn-img,
.amount-btn:hover .quickbtn-img {
    transform: scale(1.08);
    box-shadow: none;
}


.amount-btn:active .quickbtn-img,
.amount-btn:hover .quickbtn-img {
    transform: scale(1.08);
    box-shadow: none;
}





.amount-btn .euro-text {
    font-family: "League Spartan", sans-serif;
    font-size: 2.2rem;
}

.amount-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 1vw;
    margin: 0 auto 2vw auto;
    width: 100%;
    max-width: 100vw;
    overflow-x: auto;
    padding-bottom: 1vw;
}

/*.amount-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 4px;
    right: 4px;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #f7e7ce, #d4af37);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 14px;
}*/

.amount-btn:hover {
    transform: translateY(-3px);
    border-color: #d4af37;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.amount-btn:hover::before {
    opacity: 1;
}

.amount-btn .euro {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1a472a;
    transition: color 0.3s ease;
    margin-bottom: 2px;
    margin-right: 0;
}

.amount-btn .spenden {
    font-size: 0.95rem;
    color: #7f8c8d;
    margin: 0;
    transition: color 0.3s ease;
}

.amount-btn:hover .euro {
    color: #d4af37; /* Gold beim Hovern */
}

.amount-btn:hover .spenden {
    color: #1a472a; /* Dunkles Grün beim Hovern */
}

.numpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin: 18px auto 18px auto;
    width: 560px;
    max-width: 560px;
    justify-content: center;
    align-items: center;
    padding: 0 6px;
}

.numpad-btn {
    background: #f8f9fa;
    border: none;
    border-radius: 8px;
    padding: 15px 0;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

.numpad-btn:hover {
    background: #e6e6e6;
}

.numpad-btn.backspace {
    font-size: 1.2rem;
}

.donate-btn {
    background: linear-gradient(145deg, #1a472a, #2c3e50);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 16px 0;
    font-size: 24px;
    font-weight: 600;
    cursor: pointer;
    width: 55%;
    height: 90px;
    aspect-ratio: 2/3;
    margin: 10px auto 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(26, 71, 42, 0.3);
    letter-spacing: 0.5px;
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
}

.donate-btn-amount {
    font-size: 2.6rem;
    font-weight: 700;
    color: white;
    margin-left: 0;
    margin-right: 150px; /* Platz für Textblock lassen */
    display: flex;
    align-items: center;
    height: 100%;
    z-index: 1;
    flex: 1 1 auto;
    justify-content: flex-end;
    text-align: right;
    direction: ltr;
    min-width: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.donate-btn-amount {
    font-size: 2.6rem;
    font-weight: 700;
    color: white;
    margin-left: 0;
    margin-right: 30px;
    display: flex;
    align-items: center;
    height: 100%;
    z-index: 1;
}

.donate-btn-labels {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    height: auto;
    z-index: 2;
}

.donate-btn-text {
    font-size: 1.35rem;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
    margin-left: 0;
    line-height: 1.1;
}

.donate-btn-text-de {
    font-size: 1.15rem;
    font-weight: 500;
    color: #f7e7ce;
    margin-top: 0;
    margin-left: 0;
    opacity: 0.93;
    line-height: 1.1;
}

.donate-btn-amount {
    font-size: 2.6rem;
    font-weight: 700;
    color: white;
    margin-left: 0;
    margin-right: 300px;
    display: flex;
    align-items: center;
    height: 100%;
}

.donate-btn-labels {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
}

.donate-btn-text {
    font-size: 1.35rem;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
    margin-left: 0;
    margin-right: 120px;
    line-height: 1.1;
}

.donate-btn-text-de {
    font-size: 1.05rem;
    font-style: italic;
    font-weight: 500;
    color: #b0b0b0;
    margin-top: 0;
    margin-left: 0;
    margin-right: 140px;
    opacity: 0.9;
    line-height: 1.1;
}

.donate-btn::before {
    content: '';
    font-family: 'Poppins', serif;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    opacity: 0.8;
}

.donate-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.donate-btn:hover {
    background: linear-gradient(145deg, #2c3e50, #1a472a);
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(26, 71, 42, 0.4);
}

.donate-btn:hover::after {
    left: 100%;
}

.donate-btn:active {
    transform: translateY(-1px);
}

.donate-btn .amount {
    font-weight: normal;
    opacity: 0.9;
    margin-right: 8px;
}

.donate-btn .euro {
    margin-right: 2px;
}

.subtext.tr {
    font-size: 0.93em;
    color: #555;
    margin-top: 2px;
    font-style: italic;
    opacity: 0.85;
    line-height: 1.2;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

.modal h2 {
    color: #2c3e50;
    font-size: 1.5rem;
}

.payment-instructions {
    margin: 20px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    text-align: center;
}

.payment-status {
    margin: 20px 0;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}

/* Kartenformular */
#sumup-card {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* SumUp Card Form Felder */
.sumup-card-field {
    margin-bottom: 15px;
}

.sumup-card-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.sumup-card-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
}

/* Zahlungshinweis */
.payment-note {
    text-align: center;
    color: #6c757d;
    font-size: 0.85em;
    margin: 15px 0;
}

.payment-status.processing {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.payment-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.payment-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.cancel-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 20px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cancel-btn:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Animation for processing */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.processing {
    animation: pulse 1.5s infinite ease-in-out;
}

#sumup-card {
    margin: 20px 0;
    min-height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#cancel-payment {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    margin-top: 15px;
}

#cancel-payment:hover {
    background: #c82333;
}

.hidden {
    display: none !important;
}
