/* Team Healing Harmony - Main Stylesheet v2.0 */

/* CSS Variables for consistent theming */
:root {
    --primary-color: #341d54ff;
    --secondary-color: #26b12c;
    --accent-color: #2aa3c1;
    --highlight-color: #ffffff;
    --text-color: #222222;
    --text-light: #a0a0a0;
    --background-color: #ffffff;
    --background-light: #f3f4f5;
    --background-accent: #edf1f7;
    --background-color-card: #f5d2e6ff; /* #fcfcfc */
    --border-color: #ddd;
    --success-color: #00894b;
    --error-color: rgb(206, 9, 9);
    --warning-color: #debfde;
    --navbar-bg-color:  #f5d2e6ff;
    --navbar-text-color:  #341d54ff;

    /* New Color Variables */
    --color-white: #fff;
    --color-black-rgba-10: rgba(0, 0, 0, 0.1);
    --color-black-rgba-15: rgba(0, 0, 0, 0.15);
    --color-black-rgba-20: rgba(0, 0, 0, 0.2);
    --color-black-rgba-40: rgba(0, 0, 0, 0.4);
    --color-black-rgba-50: rgba(0, 0, 0, 0.5);
    --primary-hover-color: #3a4a63;
    --secondary-hover-color: #1e8a23;
    --btn-warning-bg-color: #f0ad4e;
    --btn-warning-hover-bg-color: #ec971f;
    --alert-success-bg: #d4edda;
    --alert-success-text: #155724;
    --alert-error-bg: #f8d7da;
    --alert-error-text: #721c24;
    --alert-warning-bg: #fff3cd;
    --alert-warning-text: #856404;
    --alert-warning-border: #ffc107;
    --alert-info-bg: #d1ecf1;
    --alert-info-text: #0c5460;
    --form-focus-shadow: rgba(42, 163, 193, 0.2);
    --form-focus-shadow-primary: rgba(52, 29, 84, 0.2);
    --status-pending-bg: #fff3e0;
    --status-pending-text: #f57c00;
    --status-email-verified-bg: #dbeafe;
    --status-email-verified-text: #1e40af;
    --status-approved-bg: #d1fae5;
    --status-approved-text: #065f46;
    --status-blocked-bg: #fee2e2;
    --status-blocked-text: #991b1b;
    --status-new-bg: #e0e7ff;
    --status-new-text: #3730a3;
    --status-archived-bg: #f3f4f6;
    --status-archived-text: #374151;
    --status-paid-bg: #9ffdcc;  
    --status-paid-text: #065F46;  
    --status-processing-bg: #DBEAFE;  
    --status-processing-text: #1E40AF;  
    --status-shipped-bg: #d7ba88;  
    --status-shipped-text: #5a410f;  
    --status-completed-bg: #c6c6c6;  
    --status-completed-text: #3c3c3c;  
    --status-cancelled-bg: #FEE2E2;  
    --status-cancelled-text: #991B1B;  
    --status-refunded-bg: #dff9f3;  
    --status-refunded-text: #0F766E;
    --alert-success-border-new: #a7f3d0;
    --alert-error-border-new: #fecaca;
    --alert-warning-border-new: #fde68a;
    --alert-info-border-new: #bfdbfe;
    --hero-text-light: #f0f0f0;
    --hero-btn-bg: #cd82b9;
    --hero-btn-hover-bg: #b873a4;
    --section-team-intro-bg: #f5d2e6;
    --team-member-card-bg: #e4bbd9;
    --section-member-bg-odd: #E4BBDB;
    --section-member-bg-even: #ffffff;
    --section-einsteigerkits-bg: #ffffff;
    --section-services-bg: #e4bbd9;
    --section-services-card-bg: #f5d2e6;
    --section-social-media-bg: #f5d2e6;
    --footer-bg: #cd82b9;
    --footer-link-color: rgba(255, 255, 255, 0.8);
    --footer-link-hover-color: #ffffff;
    --footer-border-color: rgba(255, 255, 255, 0.2);
    --privacy-btn-border-color: rgba(255, 255, 255, 0.3);
    --privacy-btn-hover-bg: rgba(255, 255, 255, 0.1);
    --facebook-hover-bg: #1877f2;
    --facebook-hover-shadow: rgba(24, 119, 242, 0.3);
    --instagram-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    --instagram-hover-shadow: rgba(225, 48, 108, 0.3);
    --whatsapp-bg: #25D366;
    --whatsapp-hover-bg: #128C7E;
    --whatsapp-hover-shadow: rgba(37, 211, 102, 0.3);
    --slider-bg: #ccc;

    /* Typography */
    --font-family-primary: 'Open Sans', 'Roboto', Arial, Helvetica, sans-serif;
    --font-family-heading: 'Playfair Display', Georgia, serif;
    --font-family-script: 'Alex Brush', cursive;
    --font-family-sacramento: "Sacramento", cursive;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Border radius */
    --border-radius: 10px;
    --border-radius-lg: 10px;
    --border-radius-img: 10px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px var(--color-black-rgba-10);
    --shadow-md: 0 4px 8px var(--color-black-rgba-15);
    --shadow-lg: 0 8px 16px var(--color-black-rgba-20);
    
    /* Bootstrap overrides */
    --bs-primary: #4a5a73;
    --bs-secondary: #98FF98;
    --bs-success: #00894b;
    --bs-info: #2aa3c1;
    --bs-warning: #debfde;
    --bs-danger: #ce0909;
}


/* Logged-in user color theme */
body.logged-in {
    /* Override main theme colors from pink to beige/brown for logged-in users */
    --primary-color: #514221;
    --navbar-bg-color: #DDCCB1; /* Original: #f5d2e6ff */
    --background-color-card: #DDCCB1; /* Original: #f5d2e6ff */
    --section-team-intro-bg: #DDCCB1; /* Original: #f5d2e6 */
    --team-member-card-bg: #C9B99E; /* Original: #e4bbd9 */
    --section-member-bg-odd: #C9B99E; /* Original: #E4BBDB */
    --section-services-bg: #C9B99E; /* Original: #e4bbd9 */
    --section-services-card-bg: #DDCCB1; /* Original: #f5d2e6 */
    --section-social-media-bg: #DDCCB1; /* Original: #f5d2e6 */
    --footer-bg: #C6A680; /* Original: #cd82b9 */
    --hero-btn-bg: #C6A680; /* Original: #cd82b9 */
    --hero-btn-hover-bg: #B5956A; /* Original: #b873a4 */
}

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

body {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-color);
    background-color: var(--background-color);
}

.spacer {
    display: block;
    height: calc(var(--spacing-xxl) * 2);
    border: 0px solid var(--border-color);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

/* Bootstrap Navbar Customization */
.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background-color: var(--highlight-color);
}

.navbar-bg-color {
    background-color: var(--navbar-bg-color);
}

/* Custom Button Styles */
.btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    padding: var(--spacing-sm) var(--spacing-lg);
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--color-white);
}

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

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-warning {
    background-color: var(--btn-warning-bg-color);
    color: var(--color-white);
}

.btn-warning:hover {
    background-color: var(--btn-warning-hover-bg-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Alert Styles */
.alert {
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-md);
    border: none;
    font-weight: 500;
}

.alert-success {
    background-color: var(--alert-success-bg);
    color: var(--alert-success-text);
    border-left: 4px solid var(--success-color);
}

.alert-error,
.alert-danger {
    background-color: var(--alert-error-bg);
    color: var(--alert-error-text);
    border-left: 4px solid var(--error-color);
}

.alert-warning {
    background-color: var(--alert-warning-bg);
    color: var(--alert-warning-text);
    border-left: 4px solid var(--alert-warning-border);
}

.alert-info {
    background-color: var(--alert-info-bg);
    color: var(--alert-info-text);
    border-left: 4px solid var(--accent-color);
}

/* Authentication Styles */
.auth-container {
    max-width: 500px;
    margin: 0 auto;
    padding: var(--spacing-lg);
}

.auth-card {
    background: var(--background-color-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-xl);
    text-align: center;
}

.auth-card h2 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.auth-card p {
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}

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

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--text-color);
}

/* Input Group Styles */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group input {
    width: 100%;
    padding: var(--spacing-sm);
    padding-right: 45px; /* Space for toggle button */
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    transition: border-color 0.3s ease;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    transition: border-color 0.3s ease;
}

/* Password Toggle Button */
.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
    z-index: 10;
}

.password-toggle:hover {
    color: var(--accent-color);
}

.password-toggle i {
    font-size: 16px;
}

/* Input Icon Styles */
.input-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px var(--form-focus-shadow);
}

.form-group small {
    display: block;
    margin-top: var(--spacing-xs);
    color: var(--text-light);
    font-size: 0.875rem;
}

.checkbox-label {
    display: flex;
    align-items: center; /* Changed from flex-start to center for better vertical alignment */
    gap: var(--spacing-sm);
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    /* Custom checkbox size for better visibility and alignment. */
    width: 1.15em;
    height: 1.15em;
    margin: 0;
    flex-shrink: 0; /* Prevents the checkbox from shrinking in a flex container. */
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 3px;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: var(--color-white);
    font-size: 12px;
    font-weight: bold;
}

.btn-full {
    width: 100%;
}

.auth-links {
    margin-top: var(--spacing-lg);
    text-align: center;
}

.auth-links a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Navigation Dropdown */
.nav-item.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: ' ▼';
    font-size: 0.8em;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--navbar-bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    min-width: 150px;
    z-index: 1000;
    display: none;
    list-style: none;
    padding: var(--spacing-xs) 0;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: var(--spacing-xs) var(--spacing-md);
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: var(--background-light);
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

.btn-register {
    background-color: var(--secondary-color);
    color: var(--color-white);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-register:hover {
    background-color: var(--secondary-hover-color);
    color: var(--color-white);
}

/* Profile Styles */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-lg);
}

.profile-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.profile-header h2 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.profile-header p {
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}

.profile-header__avatar--clickable {
    position: relative;
    cursor: pointer;
    display: inline-block; /* To wrap tightly around the avatar */
}

.profile-avatar__edit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-header__avatar--clickable:hover .profile-avatar__edit-overlay {
    opacity: 1;
}

/* Avatar block */
.profile-header__avatar {
    margin-top: var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--background-color);
    box-shadow: 0 6px 16px var(--color-black-rgba-20);
    background: linear-gradient(135deg, var(--background-accent), var(--section-team-intro-bg));
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-avatar__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.profile-avatar__upload {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.profile-avatar__file {
    display: none;
}

.profile-avatar__label {
    cursor: pointer;
}

.profile-avatar__hint {
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Avatar Modal Styles */
.avatar-modal-content {
    text-align: center;
    max-width: 450px; /* Smaller modal for avatar */
}

.avatar-modal-content h3 {
    margin-bottom: var(--spacing-sm);
}

.avatar-modal-content p {
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}

.profile-avatar__upload-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.avatar-preview-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto var(--spacing-md);
    border-radius: 50%;
    border: 3px solid var(--border-color);
    padding: 5px;
    background-color: var(--background-light);
}

.profile-avatar__image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-avatar__upload-form .profile-avatar__label {
    width: 100%;
    margin-top: var(--spacing-sm);
}

.profile-avatar__upload-form .profile-avatar__file {
    display: none; /* Hide the actual file input */
}

.profile-avatar__upload-form .btn-primary {
    background-color: var(--hero-btn-bg);
}

.profile-avatar__upload-form .btn-primary:hover {
    background-color: var(--hero-btn-hover-bg);
}

.profile-content {
    display: grid;
    gap: var(--spacing-xl);
    grid-template-columns: 1fr; /* This makes single-column the default (mobile-first) */
}

.profile-section {
    background: var(--team-member-card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-lg);
}

.profile-section h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--background-light);
    padding-bottom: var(--spacing-sm);
}

.profile-section h4 {
    color: var(--primary-color);
    margin: var(--spacing-lg) 0 var(--spacing-md) 0;
}

.status-info {
    display: grid;
    gap: var(--spacing-sm);
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm);
    background: var(--background-light);
    border-radius: var(--border-radius);
    flex-wrap: wrap; /* Allow items to wrap on small screens */
    gap: var(--spacing-xs); /* Add gap for when it wraps */
}

.status-item .label {
    font-weight: 600;
    color: var(--text-color);
}

.profile-form {
    display: grid;
    gap: var(--spacing-md);
}

/* Harmonize profile form with contact form style */
.profile-form .btn-primary {
    background-color: var(--hero-btn-bg);
    color: var(--color-white);
}

.profile-form .btn-primary:hover {
    background-color: var(--hero-btn-hover-bg);
    color: var(--color-white);
}

.profile-form input:focus,
.profile-form select:focus,
.profile-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--form-focus-shadow-primary);
}

.discount-badge {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    background-color: #e63946; /* Bright red for attention */
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.3rem 0.6rem;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    user-select: none;
    -webkit-user-select: none; /* Safari */
    pointer-events: none;
    z-index: 10;
    white-space: nowrap;
    line-height: 1;
    min-width: 40px;
    text-align: center;
}

.product-order-image-placeholder {
    filter: grayscale(60%);
    opacity: 0.7;
    background-color: #f0e6f2; /* soft pastel background matching theme */
    border-radius: var(--border-radius-img);
    padding: 1rem;
    max-height: 150px;
    object-fit: contain;
}

/* Responsive Table for Orders */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;  /* Safari */
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.table {
    width: 100%;
    margin-bottom: 0;
    color: var(--text-color);
    border-collapse: collapse;
    min-width: 500px; /* Forces horizontal scroll on small screens */
}

.table th,
.table td {
    padding: var(--spacing-sm);
    vertical-align: middle;
    border-top: 1px solid var(--border-color);
    text-align: left;
    white-space: nowrap;
}

.table tr:first-child th,
.table tr:first-child td {
    border-top: none;
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
    border-top: none;
}

.table tbody tr:nth-of-type(odd) {
    background-color: var(--background-light);
}

/* Member Info Page / Blog Posts */
.blog-post-card {
    max-width: 75%;
    margin-left: auto;
    margin-right: auto;
    padding: var(--spacing-lg);
    overflow-wrap: break-word;
    transition: all 0.3s ease;
}

.blog-posts-section .card {
    transition: all 0.3s ease;
}

.blog-posts-section .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Alternating background colors for blog cards, using the logged-in theme colors */
.blog-posts-list .blog-post-card:nth-child(odd) {
    background-color: var(--team-member-card-bg); /* #C9B99E */
}

.blog-posts-list .blog-post-card:nth-child(even) {
    background-color: var(--background-color-card); /* #DDCCB1 */
}

.blog-post-card h3 {
    font-family: var(--font-family-heading);
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.blog-post-card p {
    color: var(--text-color);
    margin-bottom: var(--spacing-lg); /* Increased margin to give space for buttons */
}

.blog-post-actions {
    display: flex;
    flex-wrap: wrap; /* Allows buttons to stack on smaller screens */
    gap: var(--spacing-md);
    align-items: center;
}

/* "Mehr Erfahren" button style - matches "Nachricht senden" */
.blog-post-card .read-more {
    background-color: var(--hero-btn-bg);
    color: var(--color-white);
}

.blog-post-card .read-more:hover {
    background-color: var(--hero-btn-hover-bg);
}

/* "Beitrag bearbeiten" button style */
.blog-post-card .btn-admin-edit {
    background-color: var(--primary-color);
    color: var(--color-white);
}

.blog-post-card .btn-admin-edit:hover {
    background-color: var(--primary-hover-color);
}

.post-date {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 400;
    margin-top: -1.0rem; /* Reduces space between title and date */
    margin-bottom: var(--spacing-md); /* Maintains space before excerpt */
    font-style: italic;
}

/* Post Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: var(--color-black-rgba-50);
    padding-top: 60px;
}

.modal-content {
    background-color: var(--section-team-intro-bg); /* Uses logged-in theme color */
    margin: 5% auto;
    padding: var(--spacing-xl);
    border: 1px solid var(--border-color);
    width: 80%;
    max-width: 800px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: fadeIn 0.5s;
}

.close-button {
    color: var(--primary-color);
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 50px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: var(--text-color);
    text-decoration: none;
    cursor: pointer;
}

/* Styling for content dynamically loaded into the modal */
#postContent h1, #postContent h2, #postContent h3 {
    font-family: var(--font-family-script);
    font-size: 3rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

#postContent p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
}

#postContent img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-img);
    margin: var(--spacing-md) auto;
    display: block;
    box-shadow: var(--shadow-md);
}

.form-note {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: var(--spacing-md);
}

/* Member Info Styles */
.member-welcome {
    text-align: center;
    background: var(--background-accent);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--spacing-xl);
}

.member-welcome h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.member-resources {
    list-style: none;
    padding: 0;
}

.member-resources li {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--background-light);
}

.member-resources li:last-child {
    border-bottom: none;
}

.price {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-md); /* Added margin for spacing */
}

.price-vat {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 400;
}

.original-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 1rem;
    margin-left: var(--spacing-sm);
}

.discounted-price {
    color: #e63946; /* Bright red */
    font-weight: 700;
    font-size: 1.25rem;
}

.member-contact {
    text-align: center;
    background: var(--background-light);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
}

.contact-options {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-top: var(--spacing-lg);
}

/* Status and Badge Styles */
.status {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background-color: var(--status-pending-bg);
    color: var(--status-pending-text);
}

.status-email_verified {
    background-color: var(--status-email-verified-bg);
    color: var(--status-email-verified-text);
}

.status-approved {
    background-color: var(--status-approved-bg);
    color: var(--status-approved-text);
}

.status-blocked {
    background-color: var(--status-blocked-bg);
    color: var(--status-blocked-text);
}

.status-new {
    background-color: var(--status-new-bg);
    color: var(--status-new-text);
}

.status-processing {
    background-color: var(--status-processing-bg);
    color: var(--status-processing-text);
}

.status-completed {
    background-color: var(--status-completed-bg);
    color: var(--status-completed-text);
}

.status-cancelled {
    background-color: var(--status-cancelled-bg);
    color: var(--status-cancelled-text);
}

.status-refunded {
    background-color: var(--status-refunded-bg);
    color: var(--status-refunded-text);
}

.status-paid {
    background-color: var(--status-paid-bg);
    color: var(--status-paid-text);
}

.status-shipped {
    background-color: var(--status-shipped-bg);
    color: var(--status-shipped-text);
}

.status-archived {
    background-color: var(--status-archived-bg);
    color: var(--status-archived-text);
}

.badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-contact {
    background-color: var(--status-email-verified-bg);
    color: var(--status-email-verified-text);
}

.badge-order {
    background-color: var(--status-approved-bg);
    color: var(--status-approved-text);
}

.badge-member {
    background-color: var(--status-new-bg);
    color: var(--status-new-text);
}

.badge-admin {
    background-color: var(--status-blocked-bg);
    color: var(--status-blocked-text);
}

/* Special Offer Banner - Eye-catching & Responsive */
.special-offer-banner {
    position: relative;
    /* background: linear-gradient(135deg, #cd82b9 0%, #b873a4 50%, #a6638b 100%); */
    background-color: var(--section-team-intro-bg);
    color: #fff;
    padding: 3rem 1.5rem;
    margin: 2rem 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(205, 130, 185, 0.3);
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 10px 30px rgba(205, 130, 185, 0.3); }
    50% { box-shadow: 0 15px 40px rgba(205, 130, 185, 0.5); }
}

.special-offer-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.1) 10px,
        rgba(255, 255, 255, 0.1) 20px
    );
    /* animation: shimmer 8s linear infinite; */
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%); }
    100% { transform: translateX(100%) translateY(100%); }
}

.special-offer-banner .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.special-offer-banner img {
    width: 300px;
    /* height: 200px; REMOVE this fixed height */
    max-width: 100%;
    height: auto; /* MAINTAIN aspect ratio */
    object-fit: contain; /* CONTAIN instead of cover to show full image */
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    margin: 0 auto; /* Center the image */
    display: block; /* Ensure proper centering */
}

.special-offer-banner:hover img {
    transform: scale(1.05);
}

.offer-content {
    flex: 1;
}

.offer-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.offer-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.offer-validity {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .special-offer-banner {
        padding: 2rem 1rem;
        margin: 1rem;
    }
    
    .special-offer-banner .container {
        flex-direction: column;
        text-align: center;
    }
    
    .special-offer-banner img {
        width: 100%;
        max-width: 280px;
        height: 180px;
    }
    
    .offer-content h2 {
        font-size: 2rem;
    }
    
    .offer-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .special-offer-banner {
        padding: 1.5rem 1rem;
    }
    
    .offer-content h2 {
        font-size: 1.8rem;
    }
    
    .offer-content p {
        font-size: 1rem;
    }
}

/* Alert Styles */
.alert {
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-lg);
    border: 1px solid transparent;
}

.alert-success {
    background-color: var(--status-approved-bg);
    border-color: var(--alert-success-border-new);
    color: var(--status-approved-text);
}

.alert-error {
    background-color: var(--status-blocked-bg);
    border-color: var(--alert-error-border-new);
    color: var(--status-blocked-text);
}

.alert-warning {
    background-color: var(--status-pending-bg);
    border-color: var(--alert-warning-border-new);
    color: var(--status-pending-text);
}

.alert-info {
    background-color: var(--status-email-verified-bg);
    border-color: var(--alert-info-border-new);
    color: var(--status-email-verified-text);
}

/* Responsive Design for Auth Forms */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .auth-container {
        padding: var(--spacing-md);
    }
    
    .auth-card {
        padding: var(--spacing-lg);
    }
    
    .contact-options {
        flex-direction: column;
        align-items: center;
    }
    
    .dropdown-menu {
        position: static;
        display: block;
        box-shadow: none;
        border: none;
        background: transparent;
    }
    
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
    }

    .modal-content {
        margin: 20% auto;
        width: 95%;
    }
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--spacing-sm);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xxl) 0;
}

.section-alt {
    background-color: var(--background-color);
}

/* Header */
.main-header {
    background-color: var(--background-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: var(--spacing-sm) 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo .logo {
    height: 50px;
    width: auto;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--background-accent);
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    /* background: linear-gradient(135deg, var(--background-accent) 0%, var(--background-light) 100%); */ /* Original background, replaced by image */
    /* background-image: url('../images/hero-background.png'); IMPORTANT: Replace 'hero-background.jpg' with your actual image file name and path */
    background-size: cover; /* Ensures the image covers the entire section */
    background-position: center center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    background-color: var(--background-light); /* Fallback color if the image doesn't load */
    padding: var(--spacing-xxl) 0;
    text-align: center;
    position: relative; /* Establishes a stacking context for the overlay and content */
}

/* Page-specific Hero Backgrounds */
.hero-uber-uns {
    background-image: url('../images/prompt_3.png');
}

.hero-kontakt {
    background-image: url('../images/prompt_4.jpg');
}

.hero-warum {
    background-image: url('../images/bg_warum_oele.jpg');
}

.hero-order {
    background-image: url('../images/bg_order.jpg');
}

.hero-home {
    background-image: url('../images/hero-background.png');
}

.hero-member-info {
    background-image: url('../images/bg_hero-member-info.jpg');
}

.hero-feedback {
    background-image: url('../images/bg_feedback.png');
}

.hero-imprint {
    background-image: url('../images/bg_imprint.png');
}

/* Adds a semi-transparent overlay to the hero section for better text readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-black-rgba-40); /* Dark overlay with 40% opacity. Adjust as needed. */
    z-index: 1; /* Places the overlay above the background image but below the content */
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative; /* Required for z-index to take effect */
    z-index: 2; /* Ensures content is on top of the overlay */
}

.hero h1 {
    /* color: var(--primary-color); */ /* Original color */
    color: var(--color-white); /* Changed for better contrast against background image/overlay */
    margin-bottom: var(--spacing-md);
    font-family: var(--font-family-script); /* Apply Alex Brush font, with cursive as a fallback */
    /* You might need to adjust font-size and line-height for script fonts */
    font-size: 5.5rem; /* Example: Adjust as needed for Alex Brush */
    line-height: 1.2; /* Example: Adjust as needed */
    font-weight: 400; /* Ensure it uses the regular weight defined in @font-face */
}

.hero p {
    font-size: 1.2rem;
    /* color: var(--text-light); */ /* Original color */
    color: var(--hero-text-light); /* Changed to a light grey/off-white for better contrast */
    margin-bottom: var(--spacing-lg);
}

/* Style for all buttons within the hero section */
.hero .btn {
    background-color: var(--hero-btn-bg); /* New background color for hero buttons */
    color: var(--color-white); /* Ensure text color is white */
    /* If these buttons use a specific variable for their original color, 
       you might not need to re-declare 'color: white' if it's inherited,
       but it's safer to be explicit here. */
}

/* Hover state for all buttons within the hero section */
.hero .btn:hover {
    background-color: var(--hero-btn-hover-bg); /* Darker shade of #cd82b9 for hover, adjust as needed */
    color: var(--color-white); /* Ensure text color remains white on hover */
    /* The transform and box-shadow from the general .btn:hover will still apply unless overridden here */
}

/* Specifically target .btn-secondary within hero if its default hover is different and needs overriding */
/* This rule ensures that .btn-secondary in hero also gets the new hover color */
.hero .btn-secondary:hover {
    background-color: var(--hero-btn-hover-bg); /* Consistent hover color */
    color: var(--color-white);
}

/* Team Intro Section */
.team-intro-section {
    background-color: var(--section-team-intro-bg); /* Black background as requested */
    color: var(--color-white); /* Set default text color to white for readability */
}

.team-intro-section .container {
    text-align: left; /* Align content to the left */
}

.team-intro-section h1, .einsteigerkits-section h1, .section-title-script, .special-offer-banner h1 {
    font-family: var(--font-family-script); /* Same font as hero section h1 */
    font-size: 4.5rem; /* Base font size, adjusted in responsive.css */
    line-height: 1.2;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.team-intro-section p {
    font-size: 1.2rem; /* Consistent paragraph font size */
    color: var(--text-color); /* Light text color for contrast */
    margin-bottom: var(--spacing-sm);
    max-width: 800px; /* Improves readability on wider screens */
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    background-color: var(--secondary-color);
    color: var(--color-white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    background-color: var(--success-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--color-white);
}

.btn-secondary {
    background-color: var(--accent-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--color-white);
}

/* Match contact form primary button color */
.btn-hero {
    background-color: var(--hero-btn-bg);
    color: var(--color-white);
}

.btn-hero:hover {
    background-color: var(--hero-btn-hover-bg);
    color: var(--color-white);
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.card {
    background-color: var(--background-color-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Team Section */
.team-grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); */ /* This will be overridden by responsive.css for specific breakpoints */
    /* The explicit column counts in responsive.css will take precedence. 
       auto-fit provides a fallback for screen sizes not explicitly covered or if responsive.css rules are removed. */
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.team-member {
    background-color: var(--team-member-card-bg); /* Updated background color for the card */
    border-radius: var(--border-radius-lg); 
    box-shadow: var(--shadow-md); /* Softer shadow, similar to the reference site */
    transition: all 0.3s ease;
    display: flex; 
    flex-direction: column; 
    align-items: center; /* Center image and the .team-member-info block */
    padding: var(--spacing-lg); /* Add padding around the card content */
    text-align: center; /* Center all text content by default */
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg); /* Slightly more pronounced shadow on hover */
}

.team-member img {
    width: 180px; /* Fixed width for the circular image */
    height: 180px; /* Fixed height for the circular image */
    border-radius: 50%; /* Makes the image circular */
    object-fit: cover; /* Ensures the image fills the circle without distortion */
    display: block; 
    margin-bottom: var(--spacing-lg); /* Space below the image */
    /* The image will be centered due to align-items: center on .team-member */
}

.team-member-info {
    /* Padding is now on .team-member */
    flex-grow: 1; 
    display: flex; 
    flex-direction: column;
    align-items: center; /* Ensures content within this div is also centered */
    width: 100%; /* Allows text to wrap correctly within the card's padding */
}

/* Styles for Name (h2) within the team member card */
.team-member-info h2 {
    font-family: var(--font-family-sacramento); /* Use Sacramento font, with cursive as fallback */
    font-size: 3.25rem; /* Adjusted font size for Sacramento, tune as needed */
    color: var(--primary-color); /* Dark purple, matching reference */
    text-align: center; 
    margin-top: 0; 
    margin-bottom: var(--spacing-sm); /* Slightly increased margin for better spacing with a script font */
    font-weight: 400; /* Sacramento font usually looks best with normal weight */
    line-height: 1.2; /* Adjust line-height for script font if necessary */
}

/* Styles for Role (h3.role) within the team member card */
.team-member-info .role {
    font-family: var(--font-family-primary); /* e.g., Open Sans, for a sans-serif look */
    font-size: 1rem; 
    color: var(--text-color); /* Dark text color for role */
    font-weight: 600; /* Semi-bold role */
    margin-bottom: var(--spacing-md); 
    text-align: center; 
    line-height: 1.4; /* Improved line height for multi-line roles */
}

/* Styles for Description (p) within the team member card */
.team-member-info p {
    font-family: var(--font-family-primary); /* Ensure sans-serif font */
    font-size: 0.95rem; 
    color: var(--text-light); /* Lighter grey for description text */
    line-height: 1.6; 
    margin-bottom: 0; 
    flex-grow: 1; 
    text-align: center; 
}

/* Über Uns Page - Member Sections */
.team-member-section {
    padding: var(--spacing-xxl) 0;
    overflow: hidden;
}

/* Alternating background colors for each member section */
.team-member-section:nth-child(odd) {
    background-color: var(--section-member-bg-odd);
}

.team-member-section:nth-child(even) {
    background-color: var(--section-member-bg-even);
}

.team-member-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

/* Alternating layout: image on the left for even-numbered members */
.team-member-section:nth-child(even) .team-member-content {
    flex-direction: row-reverse;
}

.team-member-details,
.team-member-image {
    flex: 1;
    min-width: 0; /* Prevents flex items from overflowing their container */
}

.team-member-image img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    display: block;
    margin: 0 auto;
}

/* Member Name styling, as per team-intro-section h1 */
.member-name {
    font-family: var(--font-family-script);
    font-size: 4.5rem;
    line-height: 1.2;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

/* Member Role styling, as per product-title h3 */
.member-role {
    font-family: var(--font-family-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

/* Member Info text styling */
.member-info {
    font-family: var(--font-family-primary);
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: var(--line-height-base);
}

/* Pagination controls */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.pagination .pagination {
    margin-bottom: 0;
}

/* Product Section */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.product-card {
    background-color: var(--background-color-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-image-auto {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.product-content {
    padding: var(--spacing-lg);
}

.product-title {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

/* Custom style for product images on the order page (bestellung.php) */
.product-order-image {
    max-height: 150px; /* You can adjust this value to make images smaller or larger */
    width: auto; /* Let the width adjust to maintain aspect ratio */
    max-width: 100%; /* Ensure image doesn't overflow card on wide but short images */
    height: auto; /* Explicitly maintain aspect ratio */
    border-radius: var(--border-radius-img); /* Use theme's image border radius */
    margin-bottom: var(--spacing-sm); /* Add some space below the image */
    display: inline-block; /* Helps with centering and margins */
}

/* Styles for the Einsteigerkits Section */
.einsteigerkits-section {
    background-color: var(--section-einsteigerkits-bg); /* New background color for the entire section #f5d2e6 */
}

.einsteigerkits-section .product-card {
    background-color: var(--team-member-card-bg); /* New background color for product cards in this section */
    /* If you want to override hover effects specifically for these cards, add them here */
}

.einsteigerkits-section .product-card .btn, .team-member-section .btn {
    background-color: var(--hero-btn-bg);
    color: var(--color-white);
}

/* Optional: If you want a different hover color for these specific buttons */
.einsteigerkits-section .product-card .btn:hover,  .team-member-section .btn:hover {
    background-color: var(--hero-btn-hover-bg); /* Darker shade of #cd82b9 for hover, adjust as needed */
    /* You can also keep the default .btn:hover behavior if preferred */
}

/* Styles for the Services Section */
.services-section {
    background-color: var(--section-services-bg); /* New background color for the entire services section */
}

.services-section .card {
    background-color: var(--section-services-card-bg); /* New background color for cards in the services section */
    transition: all 0.3s ease;
}

.services-section .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.services-section .card .btn { /* Targets all .btn elements within .card in .services-section */
    background-color: var(--hero-btn-bg); /* New background color for buttons in these cards */
    color: var(--color-white) !important; /* Ensure text color remains white, !important to override potential specificity issues with .btn-secondary text color if any */
}

/* Optional: If you want a different hover color for these specific buttons in the services section */
.services-section .card .btn:hover {
    background-color: var(--hero-btn-hover-bg); /* Darker shade of #cd82b9 for hover, adjust as needed */
    color: var(--color-white) !important; /* Ensure text color remains white on hover */
    /* You can also keep the default .btn:hover behavior if preferred, but this ensures consistency */
}

/* "Warum ätherische Öle" Page Card Titles */
.warum-cards-section .card h4 {
    font-family: var(--font-family-script); /* Use the same script font as the hero h1 */
    font-weight: 400; /* Script fonts often look better at a normal weight */
    font-size: 1.8rem; /* Increased font size for script font readability */
    line-height: 1.4;
    margin-bottom: var(--spacing-sm);
}

/* Social Media Section on Kontakt page */
.social-media-section {
    background-color: var(--section-social-media-bg); /* Match Team Intro section background */
}

.social-media-section p {
    color: var(--text-color); /* Ensure text is readable on the new background */
}

.social-media-section .btn {
    background-color: var(--hero-btn-bg); /* Match 'Nachricht senden' button */
    color: var(--color-white);
}

.social-media-section .btn:hover {
    background-color: var(--hero-btn-hover-bg); /* Darker shade for hover */
    color: var(--color-white);
}

/* Forms */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--background-color);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

/* Custom styles for the contact page form */
.contact-page-form {
    background-color: var(--team-member-card-bg); /* Match product card background from homepage */
}

.contact-page-form .btn {
    background-color: var(--hero-btn-bg); /* Match button color from homepage cards */
    color: var(--color-white);
}

.contact-page-form .btn:hover {
    background-color: var(--hero-btn-hover-bg); /* Match button hover color from homepage cards */
    color: var(--color-white);
}

/* Harmonized input field styles for contact form */
.contact-page-form .form-input:focus,
.contact-page-form .form-textarea:focus {
    border-color: var(--primary-color); /* Use the main theme color for focus */
    box-shadow: 0 0 0 2px var(--form-focus-shadow-primary); /* Shadow using a transparent version of the primary color */
}

/* Custom styles for the login page form */
.login-card {
    background-color: var(--team-member-card-bg); /* Match contact form background */
}

.login-card .btn-primary {
    background-color: var(--hero-btn-bg); /* Match contact form button */
    color: var(--color-white);
}

.login-card .btn-primary:hover {
    background-color: var(--hero-btn-hover-bg); /* Match contact form button hover */
    color: var(--color-white);
}

/* Harmonized input field styles for login form */
.login-card .form-group input:focus {
    border-color: var(--primary-color); /* Use the main theme color for focus */
    box-shadow: 0 0 0 2px var(--form-focus-shadow-primary); /* Shadow using a transparent version of the primary color */
}

/* Custom styles for the register page form */
.register-card {
    background-color: var(--team-member-card-bg); /* Match contact/login form background */
}

.register-card .btn-primary {
    background-color: var(--hero-btn-bg); /* Match contact/login form button */
    color: var(--color-white);
}

.register-card .btn-primary:hover {
    background-color: var(--hero-btn-hover-bg); /* Match contact/login form button hover */
    color: var(--color-white);
}

/* Harmonized input field styles for register form */
.register-card .form-group input:focus {
    border-color: var(--primary-color); /* Use the main theme color for focus */
    box-shadow: 0 0 0 2px var(--form-focus-shadow-primary); /* Shadow using a transparent version of the primary color */
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--text-color);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--spacing-sm);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-family);
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    color: var(--error-color);
    font-size: 0.9rem;
    margin-top: var(--spacing-xs);
}

.form-success {
    color: var(--success-color);
    font-size: 0.9rem;
    margin-top: var(--spacing-xs);
}

.required {
    color: var(--error-color);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* Footer */
.main-footer {
    background-color: var(--footer-bg);
    color: var(--color-white);
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h4 {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: var(--footer-link-color);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--footer-link-hover-color);
}

.footer-bottom {
    border-top: 1px solid var(--footer-border-color);
    padding-top: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.privacy-settings-btn {
    background: none;
    border: 1px solid var(--privacy-btn-border-color);
    color: var(--color-white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.privacy-settings-btn:hover {
    background-color: var(--privacy-btn-hover-bg);
}

/* Footer Social Media Links */
.footer-social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xs);
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--color-white);
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social-link:hover {
    color: var(--color-white);
    text-decoration: none;
    transform: translateY(-2px);
}

.footer-social-link.facebook {
    background-color: var(--accent-color);
}

.footer-social-link.facebook:hover {
    background-color: var(--facebook-hover-bg);
    box-shadow: 0 4px 12px var(--facebook-hover-shadow);
}

.footer-social-link.instagram {
    background: var(--instagram-gradient);
}

.footer-social-link.instagram:hover {
    background: var(--instagram-gradient);
    box-shadow: 0 4px 12px var(--instagram-hover-shadow);
}

.footer-social-link.whatsapp {
    background-color: var(--whatsapp-bg);
}

.footer-social-link.whatsapp:hover {
    background-color: var(--whatsapp-hover-bg);
    box-shadow: 0 4px 12px var(--whatsapp-hover-shadow);
}

/* Privacy Modal - Responsive */
.privacy-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-black-rgba-50);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-md);
    overflow-y: auto;
}

.privacy-content {
    background-color: var(--team-member-card-bg); /* Changed to match login mask background */
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 100%;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    margin: auto;
}

.g-recaptcha {
    margin: var(--spacing-md) 0;
    display: flex;
    justify-content: center;
}

.privacy-section {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.privacy-section:last-of-type {
    border-bottom: none;
}

.privacy-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.privacy-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--slider-bg);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: var(--color-white);
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--hero-btn-bg); /* Changed to match login button color */
}

input:checked + .slider:before {
    transform: translateX(26px);
    margin-top: var(--spacing-lg);
}

.privacy-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: flex-end;
    margin-top: var(--spacing-lg);
}

.btn-accept {
    background-color: var(--hero-btn-bg); /* Changed to match login button color */
    color: var(--color-white);
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-accept:hover {
    background-color: var(--hero-btn-hover-bg); /* Changed to match login button hover color */
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-dismiss {
    background-color: var(--text-light);
    color: var(--color-white);
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-dismiss:hover {
    background-color: var(--text-color);
}

/* Reduce spacing for product meta information */
.product-meta {
    margin-bottom: var(--spacing-xs) !important; /* 0.5rem instead of 1rem */
    line-height: 0.5; /* Tighter line height */
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

.text-right {
    text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* App Download Links */
.app-download-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-md); /* Adds space between the badges */
    margin-top: var(--spacing-md); /* Adds space above the badges */
    flex-wrap: wrap; /* Allows badges to stack on smaller screens */
}

.app-store-badge {
    max-height: 50px; /* Controls the height of the badges */
    width: auto; /* Maintains aspect ratio */
    height: auto; /* Overrides any inline height attributes */
    border-radius: var(--border-radius); /* Consistent border radius */
    transition: transform 0.3s ease;
}

.app-store-badge:hover {
    transform: scale(1.05); /* Slight zoom effect on hover */
}

/* Feedback Card and Star Rating Styles */
.rating-stars {
    display: inline-block;
    direction: rtl;
}

.rating-stars input[type="radio"] {
    display: none;
}

.rating-stars label {
    color: #ddd;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.rating-stars input[type="radio"]:checked ~ label,
.rating-stars label:hover,
.rating-stars label:hover ~ label {
    color: #f8d64e;
}

.card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease-in-out;
}

.card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.card-title {
    font-weight: 600;
}

.card-subtitle {
    font-weight: 500;
}

.rating .fa-star {
    color: #f8d64e;
}

.rating .fa-star-o {
    color: #ddd;
}

/* Blog Post Tags Styling */
.post-tags {
    margin-bottom: 50px;
    display: flex;
    flex-wrap: wrap; /* Allows tags to wrap to the next line on small screens */
    gap: 8px; /* Creates space between individual tags */
}

.tag {
    background-color: #f1f1f1; /* Light grey background */
    border: 1px solid #ddd;   /* Subtle grey border */
    border-radius: 15px;      /* Makes the frame pill-shaped */
    padding: 4px 12px;        /* Adds internal spacing */
    font-size: 0.85rem;       /* Makes the tag text slightly smaller */
    color: #555;              /* Dark grey text color */
}