/* Additional styles for Bewirtungsbeleg Generator - MudBlazor focused */
/* ================================================
   Einfach Bewirtungsbeleg - Custom Styles
   Modern landing page styling with gradients & waves
   ================================================ */

/* ================================================
   CSS Variables / Design Tokens
   ================================================ */
:root {
    --gradient-primary: linear-gradient(135deg, #1976D2 0%, #1565C0 50%, #0D47A1 100%);
    --gradient-secondary: linear-gradient(135deg, #26A69A 0%, #00897B 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-cta: linear-gradient(135deg, #1976D2 0%, #7C4DFF 100%);
    --gradient-text: linear-gradient(135deg, #1976D2 0%, #7C4DFF 50%, #26A69A 100%);
    --wave-color-light: rgba(25, 118, 210, 0.08);
    --wave-color-medium: rgba(25, 118, 210, 0.12);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-strong: 0 12px 40px rgba(0, 0, 0, 0.15);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --wave-height: 80px;
    --section-padding-wave: 100px;
    --bg-light: #FAFAFA;
}

/* ================================================
   Global & Typography
   ================================================ */
html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-light);
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ================================================
   Top Navigation Bar
   ================================================ */
.top-navbar {
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.5rem 1rem;
}

.brand-icon {
    color: #1976D2;
}

.brand-text {
    color: inherit !important;
    text-decoration: none !important;
}

.brand-title {
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    text-transform: none !important;
    letter-spacing: 0;
}

.nav-cta {
    border-radius: 24px !important;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* ================================================
   Wave Base Styles (shared across all wave sections)
   ================================================ */
.wave-section {
    position: relative;
    overflow: hidden;
}

[class$="-wave-top"],
[class$="-wave-bottom"] {
    position: absolute;
    left: 0;
    width: 100%;
    height: var(--wave-height);
    background-size: cover;
    background-repeat: no-repeat;
}

[class$="-wave-top"] {
    top: 0;
    background-position: top center;
}

[class$="-wave-bottom"] {
    bottom: 0;
    background-position: bottom center;
}

/* Wave SVG definitions */
.hero-wave-bottom,
.features-wave-bottom,
.cta-wave-bottom {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%23FAFAFA' d='M0,64L48,69.3C96,75,192,85,288,80C384,75,480,53,576,48C672,43,768,53,864,64C960,75,1056,85,1152,80C1248,75,1344,53,1392,42.7L1440,32L1440,120L1392,120C1344,120,1248,120,1152,120C1056,120,960,120,864,120C768,120,672,120,576,120C480,120,384,120,288,120C192,120,96,120,48,120L0,120Z'%3E%3C/path%3E%3C/svg%3E");
}

.features-wave-top,
.cta-wave-top {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%23FAFAFA' d='M0,96L48,90.7C96,85,192,75,288,69.3C384,64,480,64,576,69.3C672,75,768,85,864,85.3C960,85,1056,75,1152,64C1248,53,1344,43,1392,37.3L1440,32L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z'%3E%3C/path%3E%3C/svg%3E");
}

.footer-wave {
    position: absolute;
    top: calc(-1 * var(--wave-height) + 1px);
    left: 0;
    width: 100%;
    height: var(--wave-height);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%231a237e' d='M0,64L48,69.3C96,75,192,85,288,80C384,75,480,53,576,48C672,43,768,53,864,64C960,75,1056,85,1152,80C1248,75,1344,53,1392,42.7L1440,32L1440,120L1392,120C1344,120,1248,120,1152,120C1056,120,960,120,864,120C768,120,672,120,576,120C480,120,384,120,288,120C192,120,96,120,48,120L0,120Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom center;
    background-size: cover;
}

/* ================================================
   Hero Section
   ================================================ */
.hero-section {
    position: relative;
    background: linear-gradient(180deg, #f8f9ff 0%, #e8f4fc 50%, #f0f7ff 100%);
    padding: 120px 0 180px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(25, 118, 210, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(124, 77, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(38, 166, 154, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
}

.hero-subtitle {
    color: #546E7A;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* ================================================
   Button Styles (shared)
   ================================================ */
.hero-cta-button,
.cta-button {
    border-radius: 28px !important;
    padding: 12px 32px !important;
    font-weight: 600;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-smooth);
}

.hero-cta-button:hover,
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
}

.hero-secondary-button {
    border-radius: 28px !important;
    padding: 12px 32px !important;
    font-weight: 500;
}

.cta-button {
    background: white !important;
    color: #667eea !important;
    padding: 12px 40px !important;
}

/* ================================================
   Section Headers - Icon and Title inline
   ================================================ */
.section-header-inline {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

.section-header-inline.justify-center {
    justify-content: center;
}

.section-header-inline .section-icon {
    margin-bottom: 0;
}

.section-header-inline .section-title {
    margin-bottom: 0;
}

.section-icon {
    display: inline-block;
}

.section-title {
    font-weight: 700;
}

/* ================================================
   Problem Section
   ================================================ */
.problem-section {
    background: var(--bg-light);
}

.problem-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.problem-item {
    padding: 1.5rem;
}

/* ================================================
   Features Section
   ================================================ */
.features-section {
    position: relative;
    background: linear-gradient(180deg, #1976D2 0%, #1565C0 100%);
    color: white;
    padding-top: var(--section-padding-wave);
    padding-bottom: var(--section-padding-wave);
}

.features-section .section-title{
    color: white !important;
}

.features-section .mud-typography {
    color: white;
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    transition: var(--transition-smooth);
    border: none;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}

.feature-card .mud-typography {
    color: #333 !important;
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.1) 0%, rgba(124, 77, 255, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* ================================================
   How It Works Section
   ================================================ */
.how-it-works-section {
    background: var(--bg-light);
}

.step-number {
    font-weight: 700;
    opacity: 0.8;
}

.timeline-card {
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.timeline-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-medium);
}

/* ================================================
   CTA Section
   ================================================ */
.cta-section {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding-top: var(--section-padding-wave);
    padding-bottom: var(--section-padding-wave);
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-icon {
    color: white;
    opacity: 0.9;
}

.cta-title {
    color: white;
    font-weight: 700;
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* ================================================
   Legal Section
   ================================================ */
.legal-section {
    background: var(--bg-light);
}

.legal-card {
    background: white;
    border-radius: 16px;
    border-left: 4px solid #1976D2;
    box-shadow: var(--shadow-soft);
}

/* ================================================
   Footer
   ================================================ */
.site-footer {
    position: relative;
    background: linear-gradient(180deg, #1a237e 0%, #0d1642 100%);
    color: white;
    margin-top: auto;
}

.footer-content {
    position: relative;
    z-index: 2;
}

.footer-brand-icon {
    color: #90CAF9;
}

.footer-brand {
    color: white;
    font-weight: 600;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
}

.footer-company {
    color: rgba(255, 255, 255, 0.6);
}

.footer-heading {
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    font-size: 0.875rem;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
}

.footer-link:hover {
    color: white !important;
    padding-left: 4px;
}

.footer-divider {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.footer-bottom {
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
}

.footer-chip {
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
}

.footer-badges {
    flex-wrap: wrap;
}

/* ================================================
   About Page
   ================================================ */
.about-hero-section {
    background: linear-gradient(180deg, #f8f9ff 0%, var(--bg-light) 100%);
}

.about-card {
    border-radius: 16px;
    transition: var(--transition-smooth);
}

.about-card:hover {
    box-shadow: var(--shadow-medium);
}

.about-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.1) 0%, rgba(124, 77, 255, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
    border: 1px solid rgba(25, 118, 210, 0.1);
}

.company-icon {
    background: var(--gradient-primary);
}

.company-icon .mud-icon-root {
    color: white !important;
}

.company-title {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.requirement-card {
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.requirement-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

/* ================================================
   Generator Page
   ================================================ */
.generator-card {
    border-radius: 16px;
}

.main-content {
    min-height: calc(100vh - 200px);
    padding-top: 64px;
}

/* ================================================
   Signature Pad
   ================================================ */
.signature-pad-container {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 15px;
    background-color: #f8f9fa;
    text-align: center;
}

#signature-pad {
    border: 2px solid #000;
    border-radius: 4px;
    background-color: #ffffff;
    cursor: crosshair;
    display: block;
    margin: 0 auto;
    touch-action: none;
    max-width: 100%;
}

/* ================================================
   Form Elements
   ================================================ */
.form-card {
    background: var(--mud-palette-surface);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

/* Receipt preview */
.receipt-preview {
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

/* ================================================
   Mobile Responsive
   ================================================ */
@media (max-width: 960px) {
    .hero-section {
        padding: 100px 0 80px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .mud-button-root {
        width: 100%;
        max-width: 280px;
    }
    
    .features-section,
    .cta-section {
        padding-top: 80px;
        padding-bottom: 80px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-badges {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .main-content {
        padding-top: 56px;
    }
}

/* ================================================
   Animations
   ================================================ */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.generating {
    opacity: 0.7;
    pointer-events: none;
}

/* Smooth hover transitions for cards */
.mud-card {
    transition: var(--transition-smooth);
}

/* ================================================
   Utility Classes
   ================================================ */
.h-100 {
    height: 100%;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.py-10 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}