/* Bezahlseite Styles */

/* CSS Reset und Basis-Stile */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-primary: #e4e4e4;
    --text-secondary: #a0a0a0;
    --accent-color: #764ba2;
    --border-color: rgba(255, 255, 255, 0.1);
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: ibm-plex-mono, monospace;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Stolzl als Standard-Schriftart für alle Überschriften */
h1, h2, h3, h4, h5, h6, .logo {
    font-family: stolzl, sans-serif;
}

/* IBM Plex Mono für alle Text-Elemente */
p, li, a, span, div, .nav-links a {
    font-family: ibm-plex-mono, monospace;
}

.header {
    background: rgba(30, 30, 30, 0.7);
    color: var(--text-primary);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-decoration: none;
    transition: transform 0.3s ease;
    display: inline-block;
    position: relative;
}

.logo::before {
    content: 'jan luca buntrock.';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--text-primary) 0%, #667eea 20%, #764ba2 40%, #f093fb 60%, var(--text-primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transition: opacity 0.5s ease;
}

@keyframes gradientFlow {
    0% {
        background-position: -100% 0;
    }
    50% {
        background-position: 50% 0;
    }
    100% {
        background-position: 50% 0;
    }
}

.logo:hover {
    transform: translateY(-2px);
}

.logo:hover::before {
    opacity: 1;
    animation: gradientFlow 1.5s ease-out forwards;
}

.logo:not(:hover) {
    transform: translateY(0);
}

.logo:not(:hover)::before {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.main-content {
    flex: 1;
    padding: 2rem 0;
}

.heading {
    text-align: center;
    margin-bottom: 2rem;
}

.heading h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.pay-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.05em;
}

.highlight {
    color: transparent;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.heading p {
    color: var(--text-secondary);
}

.payment-container {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    margin: 0 auto 2rem;
    padding: 20px;
    max-width: 500px;
    width: 90%;
}

.pay-container {
    width: 100%;
    margin: 0 auto;
    padding: 1rem;
    text-align: center;
}

.pay-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pay-header p {
    font-size: 1.1rem;
    color: #f5f5f7;
    opacity: 0.8;
    max-width: 400px;
    margin: 0 auto;
    font-family: ibm-plex-mono, monospace;
}

.pay-form {
    text-align: left;
}

.amount-field {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.reason-container {
    margin-bottom: 1.5rem;
}

.reason-text {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
    color: #f5f5f7;
    margin-bottom: 1.5rem;
}

.amount-field input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.75rem;
    font-size: 1.25rem;
    color: #f5f5f7;
    font-family: ibm-plex-mono, monospace;
}

.amount-field input:focus {
    outline: none;
}

.amount-field .currency {
    font-size: 1.25rem;
    color: #f5f5f7;
    margin-left: 0.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    color: #f5f5f7;
    margin-bottom: 0.5rem;
    opacity: 0.7;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.payment-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #f5f5f7;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    font-size: 1rem;
    font-family: ibm-plex-mono, monospace;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    letter-spacing: 0.01em;
    font-weight: 500;
    text-align: center;
}

.payment-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Spezifische Stile für die Zahlungsmethoden */
.payment-button {
    background: rgba(102, 126, 234, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.payment-button:hover {
    background: rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.3);
}

.payment-button.paypal {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
}

.payment-button.paypal:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25) 0%, rgba(118, 75, 162, 0.25) 100%);
}

.payment-button.credit-card {
    background: linear-gradient(135deg, rgba(118, 75, 162, 0.15) 0%, rgba(102, 126, 234, 0.15) 100%);
}

.payment-button.credit-card:hover {
    background: linear-gradient(135deg, rgba(118, 75, 162, 0.25) 0%, rgba(102, 126, 234, 0.25) 100%);
}

.payment-button.apple-pay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.25) 0%, rgba(102, 126, 234, 0.15) 100%);
}

.payment-button.apple-pay:hover {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.35) 0%, rgba(102, 126, 234, 0.25) 100%);
}

.payment-button.revolut {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(240, 147, 251, 0.15) 100%);
}

.payment-button.revolut:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25) 0%, rgba(240, 147, 251, 0.25) 100%);
}

.payment-button i {
    font-size: 1.25rem;
}

.revolut-icon {
    width: 20px;
    height: 20px;
    margin-right: 4px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    font-family: ibm-plex-mono, monospace;
}

.back-link:hover {
    color: #764ba2;
    transform: translateX(-4px);
}

.message {
    padding: 1rem;
    margin-top: 1.5rem;
    border-radius: 12px;
    text-align: center;
    color: #f5f5f7;
    display: none;
}

.message.error {
    background: rgba(220, 53, 69, 0.3);
    border: 1px solid rgba(220, 53, 69, 0.5);
}

.message.success {
    background: rgba(40, 167, 69, 0.3);
    border: 1px solid rgba(40, 167, 69, 0.5);
}

.footer {
    padding: 2rem 5%;
    text-align: center;
    color: #a8a8a8;
    font-size: 0.9rem;
    background: #1d1d1f;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-family: ibm-plex-mono, monospace;
    margin-top: auto;
}

/* Zusätzliche allgemeine Stile */
a {
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #764ba2;
}

.footer a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer a:hover {
    color: #764ba2;
}

button {
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
}

/* Allgemeine Hilfsklassen */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle glow effects */
.main-content::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(118, 75, 162, 0.05) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

.payment-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
    pointer-events: none;
}

/* Dark mode enhancements */
::selection {
    background: var(--accent-color);
    color: #fff;
}

@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .payment-container {
        padding-top: 0;
        width: 90%;
    }
    
    .heading h1 {
        font-size: 1.8rem;
    }

    .pay-container {
        padding: 1.5rem;
    }
    
    .payment-methods {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .payment-button {
        max-width: 80%;
        width: 200px;
    }
    
    .amount-field {
        padding: 0.5rem 0.75rem;
    }
    
    .amount-field input {
        padding: 0.5rem;
        font-size: 1.1rem;
        min-width: 0; /* Verhindert Überläufe */
    }
    
    .amount-field .currency {
        font-size: 1.1rem;
        flex-shrink: 0; /* Verhindert, dass das €-Zeichen schrumpft */
    }
}

@media (max-width: 400px) {
    .payment-container {
        width: 95%;
        padding: 15px;
    }
    
    .pay-container {
        padding: 1rem;
    }
    
    .amount-field {
        padding: 0.4rem 0.6rem;
    }
    
    .amount-field input {
        padding: 0.4rem;
        font-size: 1rem;
    }
    
    .amount-field .currency {
        font-size: 1rem;
        margin-left: 0.3rem;
    }
    
    .payment-button {
        max-width: 90%;
        width: 180px;
    }
}
