/* Re:Hello Global Styles - site.css */

/* CSS Variables */
:root {
    /* Primary Colors - Logo Colors */
    --primary-coral: #fa6d5b;
    --primary-blue: #3b8fd2;
    --accent-purple: #7b68ee;
    --accent-pink: #ff8fab;
    
    /* Neutral Colors */
    --dark-text: #1a1a2e;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    
    /* Gradient Backgrounds */
    --gradient-primary: linear-gradient(135deg, #fa6d5b 0%, #ff8fab 50%, #3b8fd2 100%);
    --gradient-hero: linear-gradient(135deg, rgba(250,109,91,0.05) 0%, rgba(59,143,210,0.05) 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(248,250,252,0.8));
    
    /* Shadows - Multi-layer for depth */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.15), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 20px rgba(250, 109, 91, 0.3), 0 0 40px rgba(250, 109, 91, 0.2);
    
    /* Spacing System */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
    overscroll-behavior-x: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--dark-text);
    background: var(--light-bg);
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
    overscroll-behavior-x: none;
}

/* Utility Classes */
.bullet-item {
    position: relative;
    padding-left: 1.2em;
    margin-bottom: 0.5em;
    color: var(--muted);
}

.bullet-item::before {
    content: "•";
    position: absolute;
    left: 0;
}

.bullet-list {
    list-style: none;
    padding: 0;
    color: var(--muted);
}

.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 5%;
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all var(--transition-base);
}

header:hover {
    box-shadow: var(--shadow-lg);
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary-blue);
    transition: transform var(--transition-base);
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo-container img {
    transition: transform var(--transition-base);
}

.logo-container:hover img {
    transform: rotate(-5deg);
}

/* Hamburger Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: var(--spacing-xs);
    z-index: 101;
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 2.5px solid var(--primary-coral);
    border-radius: var(--radius-full);
    box-shadow: 0 3px 12px rgba(250, 109, 91, 0.25), 0 0 0 0 rgba(250, 109, 91, 0.5);
    transition: all var(--transition-base);
    animation: subtle-pulse 3s ease-in-out infinite;
}

@keyframes subtle-pulse {
    0%, 100% {
        box-shadow: 0 3px 12px rgba(250, 109, 91, 0.25), 0 0 0 0 rgba(250, 109, 91, 0.5);
    }
    50% {
        box-shadow: 0 3px 12px rgba(250, 109, 91, 0.35), 0 0 0 4px rgba(250, 109, 91, 0.15);
    }
}

/* Close Button inside mobile nav (hidden outside mobile media query) */
.nav-close {
    display: none;
}

.menu-toggle:hover {
    background: var(--primary-coral);
    border-color: var(--primary-coral);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(250, 109, 91, 0.4);
}

.menu-toggle:active {
    transform: scale(0.95);
    transition: all 0.1s ease;
}

.menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--primary-coral);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.menu-toggle:hover span {
    background: white;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@keyframes burger-attention {
    0%   { transform: scale(1)    rotate(0deg); }
    10%  { transform: scale(1.15) rotate(-10deg); }
    20%  { transform: scale(1.15) rotate(10deg); }
    30%  { transform: scale(1.15) rotate(-8deg); }
    40%  { transform: scale(1.1)  rotate(6deg); }
    50%  { transform: scale(1.05) rotate(0deg); }
    100% { transform: scale(1)    rotate(0deg); }
}

.menu-toggle.animate-attention {
    animation: burger-attention 1s ease-in-out;
}

/* Navigation */
nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    white-space: nowrap;
    overflow: hidden;
}

.nav-content-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.nav-account-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding-left: var(--spacing-sm);
    margin-left: var(--spacing-sm);
    position: relative;
}

    .nav-account-links::before {
        content: '•';
        color: var(--dark-text);
        font-size: 1.2rem;
        position: absolute;
        left: -8px;
        top: 50%;
        transform: translateY(-50%);
    }

nav a {
    text-decoration: none;
    color: var(--dark-text);
    margin-left: var(--spacing-xs);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-xs);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: clamp(0.85rem, 1.1vw, 1rem);
}

.nav-content-links a {
    margin-left: 0;
    margin-right: var(--spacing-xs);
}

/* Shop Link - ReHello Rot */
#shopUrl {
    color: var(--primary-coral) !important;
    font-weight: 600;
}

.nav-account-links a {
    margin-left: 0;
    margin-right: var(--spacing-xs);
    font-weight: 600;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

nav a:hover {
    color: var(--primary-coral);
    background: rgba(250, 109, 91, 0.25);
    transform: translateY(-2px);
}

nav a:active {
    color: var(--primary-coral);
    background: rgba(250, 109, 91, 0.3);
    transform: translateY(0);
    transition: all 0.1s ease;
}

nav a:hover::after {
    width: 80%;
}

/* CTA Button */
.cta-button {
    background: linear-gradient(135deg, #fa6d5b 0%, #3b8fd2 100%);
    color: white;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 10px 30px rgba(250, 109, 91, 0.45), 0 4px 10px rgba(59, 143, 210, 0.3);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left var(--transition-slow);
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(250, 109, 91, 0.55), 0 6px 15px rgba(59, 143, 210, 0.4);
    background: linear-gradient(135deg, #ff7e6c 0%, #4a9fe3 100%);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 8px 20px rgba(250, 109, 91, 0.5), 0 3px 8px rgba(59, 143, 210, 0.35);
    background: linear-gradient(135deg, #ff7e6c 0%, #4a9fe3 100%);
}

.cta-button-large {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.1rem;
    font-weight: 800;
    box-shadow: 0 12px 35px rgba(250, 109, 91, 0.5), 0 5px 12px rgba(59, 143, 210, 0.35);
    animation: ctaPulse 2.4s ease-in-out infinite;
}

.cta-button-large:hover {
    animation: none;
}

@keyframes ctaPulse {
    0%   { box-shadow: 0 12px 35px rgba(250, 109, 91, 0.5), 0 5px 12px rgba(59, 143, 210, 0.35), 0 0 0 0 rgba(250, 109, 91, 0.55); transform: scale(1); }
    50%  { box-shadow: 0 12px 35px rgba(250, 109, 91, 0.5), 0 5px 12px rgba(59, 143, 210, 0.35), 0 0 0 12px rgba(250, 109, 91, 0); transform: scale(1.03); }
    100% { box-shadow: 0 12px 35px rgba(250, 109, 91, 0.5), 0 5px 12px rgba(59, 143, 210, 0.35), 0 0 0 0 rgba(250, 109, 91, 0); transform: scale(1); }
}

/* ASP.NET WebForms form-Tag muss die Flex-Kette weiterführen */
#form1 {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100vh;
}

/* Footer */
footer {
    padding: 10px 5% 8px;
    background: #222;
    color: #888;
    text-align: center;
    font-size: 0.9rem;
    margin-top: auto;
    position: relative;
}

/* Footer Share Button */
.footer-share {
    margin-bottom: 20px;
    margin-top: 4px;
    padding: 0 16px;
    text-align: center;
}

.share-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-coral), var(--primary-blue));
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.share-button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.share-button svg {
    transition: transform var(--transition-base);
}

.share-button:hover svg {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .share-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

footer a,
footer a:visited,
footer a:active,
footer a:focus {
    color: #ffffff;
    font-weight: bold;
    text-decoration: underline;
}

footer a:hover {
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
}

/* Toast/Popup Styles */
.toast-container {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    transition: top 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    min-width: 300px;
    max-width: 90%;
}

.toast-container.show {
    top: 20px;
}

.popup-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.popup-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 6px 15px;
    margin-left: 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

.popup-button:hover {
    background-color: #0056b3;
}

/* Sliding Toast */
.toast-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ffffff;
    border-left: 5px solid #2ecc71;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 15px 20px;
    display: none;
    z-index: 9999;
    min-width: 280px;
    animation: slideIn 0.5s ease-out forwards;
}

.toast-content {
    display: flex;
    align-items: center;
}

.toast-icon {
    background: #2ecc71;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    font-weight: bold;
}

.toast-message strong {
    display: block;
    color: #333;
}

.toast-message p {
    margin: 0;
    color: #777;
    font-size: 0.9em;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #2ecc71;
    width: 100%;
}

@keyframes progress {
    from { width: 100%; }
    to { width: 0%; }
}

@keyframes slideIn {
    from { transform: translateX(120%); }
    to { transform: translateX(0); }
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateY(-20px); }
}

/* Mobile Navigation */
@media (max-width: 1100px) {
    header {
        padding: 10px 5%;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 30px;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.3s ease, visibility 0.3s ease;
        overflow-y: auto;
        z-index: 102;
        gap: 0;
    }

    .nav-content-links,
    .nav-account-links {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
        padding: 0;
        border: none;
        margin: 0;
    }

    .nav-account-links {
        margin-top: var(--spacing-lg);
        padding-top: var(--spacing-lg);
        border-top: 2px solid rgba(250, 109, 91, 0.3);
    }

.nav-account-links::before {
        display: none;
    }

    nav.active {
        transform: translateX(0);
        visibility: visible;
    }

    nav a {
        margin: 0;
        padding: 15px 0;
        width: 100%;
        border-bottom: 1px solid #eee;
        font-size: clamp(1.1rem, 3vw, 1.3rem);
    }

    nav a:first-of-type {
        border-top: 1px solid #eee;
    }

    .cta-button {
        margin-top: 15px;
        display: inline-block;
        text-align: center;
    }

    header .cta-button,
    .hero-text .cta-button {
        display: inline-block;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 99;
        transition: opacity 0.3s ease;
    }

    .nav-overlay.active {
        display: block;
    }

    .nav-close {
        position: absolute;
        top: 8px;
        right: 10px;
        background: none;
        border: none;
        font-size: 2.4rem;
        line-height: 1;
        cursor: pointer;
        color: #555;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-appearance: none;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        z-index: 103;
    }

    .nav-close:hover,
    .nav-close:active {
        color: #fa6d5b;
    }
}
