/* Base & Design Tokens */
:root {
    --primary: #c2956e;
    --primary-hover: #b08157;
    --bg-dark: #12100e;
    --bg-card: rgba(26, 23, 20, 0.75);
    --border-color: rgba(194, 149, 110, 0.2);
    --text-light: #f5f2eb;
    --text-muted: #cbbfa8;
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background image with overlay */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image: url('../images/cafe_bg.jpg');
    background-size: cover;
    background-position: center;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, rgba(18, 16, 14, 0.9) 0%, rgba(18, 16, 14, 0.6) 100%);
    backdrop-filter: blur(10px);
}

/* Layout */
header {
    padding: 2rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--primary);
}

.logo-dot {
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    border-radius: 50%;
    display: inline-block;
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
}

/* Glassmorphism Card */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    width: 100%;
    max-width: 550px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(4px);
    transition: var(--transition);
}

.card:hover {
    border-color: rgba(194, 149, 110, 0.4);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
}

.card-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-align: center;
    color: var(--text-light);
}

.card-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    text-transform: uppercase;
}

input[type="text"],
input[type="email"],
select {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(194, 149, 110, 0.15);
}

/* Custom Number Input for Amount selection */
.amount-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.amount-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.amount-btn.active,
.amount-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-dark);
}

.custom-amount-wrapper {
    position: relative;
}

.custom-amount-wrapper span {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* Buttons */
.btn-primary {
    width: 100%;
    background-color: var(--primary);
    color: var(--bg-dark);
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(194, 149, 110, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(194, 149, 110, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
}

footer a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    text-decoration: underline;
}

/* Printable Voucher Card Styling */
.voucher-container {
    background: #fff;
    color: #1a1714;
    max-width: 600px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    overflow: hidden;
    margin: 2rem auto;
    font-family: var(--font-sans);
}

.voucher-header {
    background: #1a1714;
    color: #fff;
    padding: 2rem;
    text-align: center;
    border-bottom: 4px solid var(--primary);
}

.voucher-body {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at top right, #fcfaf7, #f3ede2);
}

.voucher-logo {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.voucher-logo-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    display: inline-block;
}

.voucher-title {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #666;
    margin-bottom: 0.5rem;
}

.voucher-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1a1714;
    margin-bottom: 1.5rem;
    border-top: 2px solid rgba(194, 149, 110, 0.3);
    border-bottom: 2px solid rgba(194, 149, 110, 0.3);
    padding: 0.5rem 2rem;
    display: inline-block;
}

.voucher-qr {
    width: 200px;
    height: 200px;
    margin-bottom: 1.5rem;
    background: #fff;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.voucher-qr svg, .voucher-qr img {
    width: 100%;
    height: 100%;
}

.voucher-code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    font-weight: bold;
    color: #444;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.voucher-info {
    font-size: 0.85rem;
    color: #777;
    margin-top: 1.5rem;
    border-top: 1px dashed #ddd;
    width: 100%;
    padding-top: 1rem;
}

.no-print-zone {
    margin-top: 2rem;
    text-align: center;
}

.btn-print {
    background-color: var(--primary);
    color: var(--bg-dark);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(194, 149, 110, 0.2);
    transition: var(--transition);
}

.btn-print:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* Print Styling Override */
@media print {
    body {
        background: #fff !important;
        color: #000 !important;
        min-height: auto;
    }
    
    .bg-container, .bg-overlay, header, footer, .no-print-zone, .btn-print {
        display: none !important;
    }
    
    main {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .voucher-container {
        box-shadow: none !important;
        border: 1px solid #1a1714 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Legal pages (Impressum, Datenschutz) */
.legal-page {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    width: 100%;
    max-width: 800px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(4px);
}

.legal-page h2 {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.legal-page h4 {
    margin: 1.5rem 0 0.5rem;
    color: var(--primary);
}

.legal-page p, .legal-page li {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.legal-page a {
    color: var(--primary);
}

.legal-page ul {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}
