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

:root {
    --primary-color: #dd2c5d;
    --yellow: #dd2c5d;
    --black: #000000;
    --white: #ffffff;
    --dark-gray: #2d2d2d;
    --text-color: #000000;
    --text-light: #333333;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
}

html {
    height: 100%;
    overflow-x: clip; /* clip instead of hidden so position:sticky works (e.g. cart on bestellen) */
    scroll-behavior: smooth;
}

body {
    font-family: 'Funnel Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: clip; /* clip instead of hidden so position:sticky works */
}

.main-content {
    flex: 1 0 auto;
    padding-top: 80px;
    padding-bottom: 3rem;
    background-color: var(--dark-gray);
    color: var(--white);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Funnel Display', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--white);
}

h1 {
    font-size: 2.5rem;
}

.main-content .container > h1:first-child {
    margin-top: 2rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
}

/* Links */
a {
    color: var(--black);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--yellow);
}

/* Flash Messages - Popup Notifications */
.flash-messages-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
    pointer-events: none;
}

.flash-message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-family: 'Funnel Sans', sans-serif;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    pointer-events: auto;
    min-width: 300px;
}

.flash-message.show {
    opacity: 1;
    transform: translateX(0);
}

.flash-message.hide {
    opacity: 0;
    transform: translateX(100%);
}

.flash-message-text {
    flex: 1;
    margin-right: 1rem;
}

.flash-close-btn {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.flash-close-btn:hover {
    opacity: 1;
}

/* Flash Message Types */
.flash-success {
    background-color: rgba(40, 167, 69, 0.95);
    color: var(--white);
    border-left: 4px solid #28a745;
}

.flash-error {
    background-color: rgba(220, 53, 69, 0.95);
    color: var(--white);
    border-left: 4px solid #dc3545;
}

.flash-info {
    background-color: rgba(0, 123, 255, 0.95);
    color: var(--white);
    border-left: 4px solid #007bff;
}

.flash-warning {
    background-color: rgba(255, 193, 7, 0.95);
    color: var(--black);
    border-left: 4px solid #ffc107;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .main-content {
        padding-bottom: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .flash-messages-container {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .flash-message {
        min-width: auto;
        width: 100%;
    }
}
