:root {
    --header-bg: rgba(26, 60, 40, 0.85);
    /* Dark green with opacity */
    --header-text: #ffffff;
    --bg-color: #f9f7f2;
    --card-bg: rgba(255, 255, 255, 0.25);
    /* Glassy white */
    --text-color: #333;
    --accent-color: #1a3c28;
    --line-color: #e0e0e0;
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: url('grafiken/bilder/bg1.png') no-repeat center center fixed;
    background-size: cover;
}

main {
    flex: 1 0 auto;
}

/* Glassmorphism Reset for Layout */
header {
    background-color: var(--header-bg);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 0.5rem 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

/* Scrolled states for elements inside the header */

/* Logo text styles */

.header-logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.logo-title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: -0.5px;
    color: white;
}

.logo-tagline {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.6rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    color: white;
}

.header-logo-sparkles {
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-icon-btn {
    background: transparent;
    border: none;
    padding: 0;
    /* Override global button padding to ensure circle */
    color: white;
    width: 36px;
    /* Reduced to match adjacent button */
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: none;
    /* Remove background blur frame */
    flex-shrink: 0;
}

.user-icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* SVG styles removed */
.user-icon-btn:focus {
    outline: none;
    /* Ensure no focus ring */
}

.user-icon-btn::before {
    content: '';
    position: absolute;
    top: 9px;
    /* Move up 1px */
    width: 8px;
    /* Slightly smaller to account for border */
    height: 8px;
    background-color: transparent;
    /* Transparent center */
    border: 2px solid white;
    /* Stroke */
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
}

.user-icon-btn::after {
    content: '';
    position: absolute;
    bottom: 8px;
    /* Move down 1px */
    width: 14px;
    height: 6px;
    /* Half height */
    background-color: transparent;
    border: 2px solid white;
    /* Stroke */
    border-bottom: none;
    /* Open at bottom */
    border-radius: 10px 10px 0 0;
    left: 50%;
    transform: translateX(-50%);
}

#user-status-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background-color: #4ade80;
    /* Green for logged in */
    border-radius: 50%;
    border: 2px solid var(--header-bg);
}

/* User Dropdown Menu */
.user-dropdown {
    position: relative;
}

.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    z-index: 1000;
}

.user-menu .dropdown-inner a {
    display: block;
    padding: 0.75rem 1rem;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.user-menu .dropdown-inner a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-menu.hidden {
    display: none;
}

#menu-admin {
    display: block !important;
    visibility: visible !important;
}


.header-logo-element img {
    height: 48px;
    /* Increased for Logo.png */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(25, 60, 40, 0.3));
    transition: transform 0.3s ease;
}

.header-logo-container:hover .header-logo-element img {
    transform: scale(1.1);
}

.header-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: flex-start;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    /* Added spacing */
}

/* Generalized Dropdown Styles */
.custom-dropdown {
    position: relative;
    /* Changed from absolute to allow flex flow in containers */
    z-index: 1000;
}

/* .lang-selector and .social-dropdown empty rulesets removed */

.dropdown-btn {
    background: transparent;
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    padding-top: 15px;
    /* Increased from 10px for better bridge */
    background: transparent;
    z-index: 1000;
}

/* Base bridge for all dropdowns */
.dropdown-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
}

.lang-selector .dropdown-content {
    left: 0;
}

.social-dropdown .dropdown-content {
    right: 0;
}

.dropdown-inner {
    background: rgba(26, 60, 40, 0.95);
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    width: 200px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.custom-dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

.dropdown-content a {
    color: white;
    padding: 0.8rem 1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-content img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-group {
    display: flex;
    gap: 2rem;
    /* Reduced gap */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
}

.nav-left {
    justify-content: flex-end;
}

.nav-right {
    justify-content: flex-start;
}

header.header-scrolled .nav-group {
    gap: 1.8rem;
    /* Reduced gap in scrolled state */
}

.header-logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    visibility: hidden;
    width: 3.5rem;
    /* Persistent gap between link groups */
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: scale(0.6) translateY(5px);
    pointer-events: none;
    white-space: nowrap;
    justify-content: center;
    cursor: pointer;
    user-select: none;
}

.header-logo-container:hover {
    filter: brightness(1.2);
    transition: all 0.3s ease;
}

header.header-scrolled .header-logo-container {
    opacity: 1;
    visibility: visible;
    width: 170px;
    margin: 0 1.2rem;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

header.header-scrolled .header-logo-container:hover {
    opacity: 0.8;
}

nav a {
    color: var(--header-text);
    text-decoration: none;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 1.1rem;
    /* Slightly smaller in header */
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.8;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
}

header.header-scrolled nav a {
    font-size: 0.95rem;
    /* Clean, compact look when scrolled */
}

nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--header-text);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

nav a:hover,
nav a.active {
    opacity: 1;
}

nav a:hover::after,
nav a.active::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 4rem;
}

.hero-card {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 0 0 20px 20px;
    box-shadow: var(--glass-shadow);
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: relative;
    margin-bottom: 2rem;
    max-width: 650px;
    width: 90%;
}

.hero-card h1 {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 400;
    font-size: 3.5rem;
    letter-spacing: -2px;
    color: #111;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 0.9;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.hero-tagline {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.6;
    margin: 0;
}

.beta-notice {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--header-text);
    opacity: 0.35;
    white-space: nowrap;
    letter-spacing: 0.5px;
    margin: 0;
}

.hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo-img {
    height: 90px;
    /* Reduced size for hero card */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.15));
    transition: transform 0.5s ease;
}

.content-container {
    width: 95%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.15);
    /* More transparent */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    padding-bottom: 5.5rem;
    /* Additional space for buttons */
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    position: relative;
}

.split-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.input-column {
    flex: 1;
    min-width: 300px;
}

.result-column {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    /* Allow button and result area to stack */
    justify-content: center;
    /* Center vertically */
    align-items: center;
    /* Center horizontally */
    position: sticky;
    top: 2rem;
    min-height: 400px;
    /* Give it some space if empty */
}

@media (max-width: 900px) {
    .split-layout {
        flex-direction: column;
    }

    .result-column {
        position: static;
        width: 100%;
    }
}

.step-section {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 2rem;
}

.step-section:last-child {
    border-bottom: none;
}

h2 {
    font-family: 'Josefin Sans', sans-serif;
    margin-bottom: 1.5rem;
    color: #1a3c28;
    /* Keep accent color */
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.step-header h2 {
    margin-bottom: 0;
}

.clear-all-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Josefin Sans', sans-serif;
    backdrop-filter: blur(5px);
    white-space: nowrap;
}

.clear-all-btn span {
    font-size: 1.1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-all-btn:hover {
    background: rgba(255, 95, 95, 0.15);
    border-color: rgba(255, 95, 95, 0.3);
    color: #cc4a4a;
    transform: translateY(-2px);
}

.clear-all-btn:active {
    transform: translateY(0);
}

/* Camera Styles */
.camera-container {
    width: 100%;
    max-width: 500px;
    height: 375px;
    background: rgba(0, 0, 0, 0.1);
    /* Darker glass for camera placeholder */
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    margin: 0 auto 1rem auto;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
}

/* Password Toggle Styles */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    width: 100%;
    padding-right: 45px !important;
}

.toggle-password {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: none !important;
    border: none !important;
    padding: 0;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 5;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.toggle-password:hover {
    color: var(--accent-color);
}

.toggle-password:active {
    transform: translateY(-50%) scale(0.9);
}

.toggle-password svg {
    width: 20px;
    height: 20px;
    display: block;
}

video,
img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#close-camera-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 11;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #1a3c28;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 22px;
    line-height: 1;
    padding: 0;
}

#close-camera-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

#close-camera-btn:active {
    transform: scale(0.92);
}

video.mirrored,
img.mirrored {
    transform: scaleX(-1);
}

#switch-camera-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #1a3c28;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

#switch-camera-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.08) rotate(15deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

#switch-camera-btn:active {
    transform: scale(0.92);
}

#switch-camera-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

#switch-camera-btn:hover svg {
    transform: rotate(-15deg);
}

/* Photo Mode Selector */
.photo-mode-selector {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.mode-option {
    position: relative;
    cursor: pointer;
}

.mode-option input {
    display: none;
}

.mode-label {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: block;
}

.mode-option input:checked+.mode-label {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* Silhouette Overlays */
/* Silhouette Overlays */
#silhouette-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 5;
    opacity: 0.6;
    /* Semi-transparent */
    transition: all 0.3s ease;
}

#silhouette-overlay.hidden {
    display: none;
    opacity: 0;
}

/* Face Silhouette (Image) */
.silhouette-face {
    width: 350px;
    height: 400px;
    background-image: url('grafiken/generated-face.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    mix-blend-mode: normal;
    /* Blend nicely over video */
}

/* Body Silhouette (Image) */
.silhouette-body {
    width: 350px;
    height: 90%;
    background-image: url('grafiken/generated-body.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    mix-blend-mode: screen;
}



/* Ensure camera container clips the content */
.camera-container {
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    /* Dark background for video area */
}

.controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    /* Softer radius */
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
}

button:active {
    transform: scale(0.98);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(100, 100, 100, 0.2);
}

#start-camera-btn {
    background-color: rgba(26, 60, 40, 0.9);
    color: white;
    box-shadow: 0 4px 15px rgba(26, 60, 40, 0.3);
}

#start-camera-btn:hover {
    background-color: rgb(26, 60, 40);
    box-shadow: 0 6px 20px rgba(26, 60, 40, 0.4);
}

#take-photo-btn {
    background-color: rgba(51, 51, 51, 0.9);
    color: white;
}

.secondary-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.secondary-btn:hover {
    background-color: var(--accent-color);
    color: white;
}

.primary-btn {
    background-image: linear-gradient(135deg, rgba(26, 60, 40, 0.95), rgba(40, 80, 55, 0.95));
    color: white;
    font-size: 1.25rem;
    padding: 1.2rem 3rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 10px 30px rgba(26, 60, 40, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 500;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(26, 60, 40, 0.5);
    background-image: linear-gradient(135deg, rgba(30, 70, 45, 1), rgba(45, 90, 60, 1));
}

.action-section {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

/* Inputs */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 300px;
}

input[type="number"],
input[type="url"] {
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #000;
    transition: all 0.3s;
}

input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.7);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Validation Styles */
.validation-error {
    border: 2px solid #ff4d4d !important;
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.2) !important;
    animation: shake 0.4s ease-in-out;
}

.error-message {
    color: #ff4d4d;
    font-size: 0.85rem;
    margin-top: 0.4rem;
    font-family: 'Josefin Sans', sans-serif;
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Result Area */
#result-area {
    margin-top: 0;
    text-align: center;
    background: transparent;
    padding: 0;
    border-radius: 0;
    width: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.loader {
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid var(--accent-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


#result-image {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: none;
    object-fit: cover;
    display: block;
}

.result-image-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.result-overlay-top {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 8px;
    border: none;
}

.result-overlay-top h2 {
    margin: 0;
    color: #1a3c28;
    font-size: 1.2rem;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 400;
}

.result-overlay-bottom {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    padding: 0 1rem;
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

.result-overlay-bottom button {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: #1a3c28 !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    font-weight: 400;
}

.result-overlay-bottom button:hover {
    background: rgba(255, 255, 255, 0.75) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

#result-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#result-content>p {
    margin: 0;
    padding: 0 1rem;
}



/* Drag & Drop Zone */
.garment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
    margin-top: 1.5rem;
}

.add-more-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    width: 100%;
}

.add-more-btn {
    background: rgba(26, 60, 40, 0.1);
    color: var(--accent-color);
    border: 2px dashed var(--accent-color);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.add-more-btn:hover {
    background: rgba(26, 60, 40, 0.2);
    transform: translateY(-2px);
}

.add-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(1);
}

.add-more-btn span {
    font-size: 1.4rem;
    line-height: 1;
}

.drop-zone {
    border: 2px dashed rgba(26, 60, 40, 0.4);
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.drop-zone p {
    color: var(--accent-color);
    font-weight: 600;
}

.remove-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e0e0e0;
    padding: 0;
    margin: 0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    line-height: normal;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
    z-index: 20;
    aspect-ratio: 1;
}

/* Ensure flex display is maintained when JS unhides it */
.remove-btn[style*="display: block"] {
    display: flex !important;
}

.remove-btn:hover {
    background: #ff5f5f;
    color: white;
    border-color: #ff5f5f;
    transform: scale(1.1);
}

.drop-zone:hover,
.drop-zone.drag-over {
    background: rgba(255, 255, 255, 0.4);
    border-color: var(--accent-color);
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.garment-preview {
    max-width: 100%;
    max-height: 200px;
    border-radius: 10px;
    margin-top: 1rem;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.garment-preview:hover {
    transform: scale(1.05);
}

/* Privacy Modal & Banner Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: rgba(255, 255, 255, 0.85);
    /* Less transparent for readability */
    padding: 2.5rem;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2rem;
    font-weight: bold;
    color: #555;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #000;
}

.privacy-text-container {
    margin-top: 1.5rem;
    line-height: 1.6;
    text-align: left;
}

.privacy-text-container h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.privacy-text-container ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* Privacy Banner */
.privacy-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-top: 1px solid var(--glass-border);
    padding: 1.5rem;
    z-index: 999;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: transform 0.5s ease;
}

.privacy-banner.hidden {
    transform: translateY(100%);
    pointer-events: none;
    /* Check click through */
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.banner-content p {
    flex: 1;
    margin: 0;
    font-size: 0.95rem;
}

.banner-content a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: underline;
}

.small-btn {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    width: auto;
    min-width: 120px;
}

/* Auth SSO Login & Divider */
.alt-login-grid {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
    width: 100%;
}

.sso-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #dadce0;
    background: #ffffff;
    color: #3c4043;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.sso-btn:hover {
    background: #f8f9fa;
    border-color: #d2d4d7;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.sso-btn:active {
    background: #f1f3f4;
    transform: translateY(0);
}

.sso-btn img,
.sso-btn svg {
    width: 18px;
    height: 18px;
}

.oauth-g {
    /* Google branding colors */
    background: #ffffff;
}

.auth-message {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-color);
    min-height: 1.2rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: #666;
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.auth-divider span {
    padding: 0 10px;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.1s ease-out;
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox-content:active {
    cursor: grabbing;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: 0.3s;
}

.close-lightbox:hover {
    color: #bbb;
    transform: scale(1.1);
}

/* Strong shadow for visibility on white background */
.close-lightbox {
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8), 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Zoom Slider Styles */
.zoom-controls {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2005;
    background: rgba(10, 10, 10, 0.85);
    /* Solid dark background for visibility */
    border-radius: 30px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 280px;
    width: 44px;
    /* Slightly wider for better touch/view */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

#zoom-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 220px;
    height: 8px;
    /* Slightly thicker track */
    background: rgba(255, 255, 255, 0.3);
    /* Higher contrast track */
    outline: none;
    border-radius: 10px;
    transform: rotate(-90deg);
    transform-origin: center;
    /* Explicitly centered rotation */
    cursor: pointer;
    margin: 0;
}

#zoom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: white;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--accent-color);
}

#zoom-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: white;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--accent-color);
}

@media (max-width: 768px) {
    .zoom-controls {
        right: 15px;
        height: 240px;
        width: 40px;
    }

    #zoom-slider {
        width: 180px;
    }
}

/* Save Garment Button */
.save-garment-btn {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e0e0e0;
    padding: 0;
    margin: 0;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
    z-index: 20;
}

.save-garment-btn[style*="display: block"] {
    display: flex !important;
}

.save-garment-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.1);
}

.result-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Closet Specific Styles */
.closet-content {
    max-width: 1000px;
    padding-top: 4rem;
}

.closet-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.magic-title {
    width: 40px;
    height: 40px;
}

.closet-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.closet-tab {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid var(--glass-border);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.closet-tab.active,
.closet-tab:hover {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 15px rgba(26, 60, 40, 0.3);
}

.closet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 2rem;
    min-height: 200px;
    padding-bottom: 2rem;
}

.closet-item {
    background: transparent;
    border-radius: 16px;
    padding: 0;
    border: none;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.closet-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.closet-item img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.item-category {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: white;
    font-weight: 600;
    padding: 0.8rem 1rem;
    letter-spacing: 0.5px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    margin: 0;
    border-radius: 0 0 16px 16px;
}

.delete-item-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 14px;
    color: #ff5f5f;
    opacity: 0;
    transition: opacity 0.2s;
}

.closet-item:hover .delete-item-btn {
    opacity: 1;
}

.empty-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    opacity: 0.6;
    font-style: italic;
}

/* AI Agent Styles */
.ai-agent-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.ai-magic-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a3c28, #3e6b4d);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(26, 60, 40, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0;
}

.ai-magic-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 30px rgba(26, 60, 40, 0.5);
}

.ai-bubble {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    padding: 1.2rem 1.8rem;
    border-radius: 20px 20px 0 20px;
    max-width: 300px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    animation: slideInUp 0.4s ease-out;
    position: relative;
    color: #111;
}

.ai-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 20px;
    border-width: 10px 10px 0 0;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.9) transparent transparent transparent;
}

.ai-bubble.hidden {
    display: none;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 600px) {
    .ai-agent-container {
        bottom: 20px;
        right: 20px;
    }

    .ai-bubble {
        max-width: 250px;
    }
}

/* ==============================================
   ERWEITERTE MOBILE OPTIMIERUNGEN
   ============================================== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .steps-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Mobile erweitert (unter 768px) */
@media (max-width: 768px) {

    /* Header */
    header {
        padding: 0.75rem 1rem;
    }

    .header-logo h1 {
        font-size: 1.5rem;
    }

    /* Hero */
    .hero {
        padding: 3rem 1rem;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Main */
    main {
        padding: 2rem 1rem;
    }

    /* Camera */
    #camera-box {
        height: 350px;
    }

    /* Drop Zones - 1 Spalte */
    .zones-grid {
        grid-template-columns: 1fr !important;
    }

    .drop-zone {
        height: 180px;
    }

    /* Garment Boxes - 2 Spalten */
    .garment-boxes {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Result */
    #result-content {
        flex-direction: column;
    }

    #result-image {
        max-height: 400px;
    }

    /* Modals */
    .modal-content {
        width: 95%;
        padding: 1.5rem;
        margin: 1rem;
    }

    /* Closet Grid */
    .closet-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Buttons Touch-Friendly */
    .btn-primary,
    .btn-secondary {
        min-height: 44px;
        font-size: 0.95rem;
    }

    /* Privacy Banner */
    .privacy-banner {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .banner-content {
        margin-bottom: 1rem;
    }
}

/* Kleine Handys (unter 480px) */
@media (max-width: 480px) {

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    /* Garment Boxes 1 Spalte */
    .garment-boxes {
        grid-template-columns: 1fr;
    }

    /* Closet 1 Spalte */
    .closet-grid {
        grid-template-columns: 1fr !important;
    }

    .closet-item {
        height: 200px;
    }

    /* Camera Controls vertikal */
    .camera-controls {
        flex-direction: column;
    }

    .camera-controls button {
        width: 100%;
    }

    /* Header Logo */
    .header-logo h1 {
        font-size: 1.25rem;
    }

    /* Form Inputs */
    #auth-modal input,
    textarea {
        font-size: 16px;
        /* Verhindert Auto-Zoom iOS */
    }
}

/* Touch-Geräte Optimierung */
@media (hover: none) and (pointer: coarse) {

    .btn-primary:hover,
    .btn-secondary:hover {
        transform: scale(1);
        /* Kein Hover auf Touch */
    }

    .btn-primary:active,
    .btn-secondary:active {
        transform: scale(0.98);
        /* Press-Effekt */
    }

    /* Touch Targets größer */
    .close-modal,
    .remove-btn,
    .delete-item-btn,
    .save-garment-btn {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Global Utility Classes */
.hidden {
    display: none !important;
}

.auth-btn {
    cursor: pointer;
    /* ensure it looks clickable */
}

/* Make camera area responsive on phones */
@media (max-width: 768px) {
    .camera-container {
        height: min(55vh, 420px);
    }

    /* reduce silhouette to fit */
    .silhouette-face {
        width: 200px;
        height: 260px;
    }

    .silhouette-body {
        width: 160px;
        height: 80%;
    }

    /* Make primary button easier to tap */
    .primary-btn {
        padding: 1rem 1.25rem;
        font-size: 1.05rem;
        max-width: none;
    }

    /* Larger dropdown / touch targets */
    .dropdown-btn {
        padding: 0.8rem 1rem;
    }
}

/* Ensure privacy banner doesn't cover action buttons */
@media (max-width: 480px) {
    .privacy-banner {
        padding-bottom: 2.2rem;
    }
}

/* Hide mobile hamburger on desktop */
.mobile-hamburger {
    display: none;
}

/* Reduce heavy background assets and decorative sparkles on small devices */
@media (max-width: 600px) {
    body {
        background-image: none;
        background-color: var(--bg-color);
    }

    .sparkles {
        display: none;
    }
}

/* Photo Countdown Overlay */
#photo-countdown {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Josefin Sans', sans-serif;
    font-size: 8rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.8), 0 0 10px rgba(25, 60, 40, 0.5);
    z-index: 100;
    pointer-events: none;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.2);
    animation: countdownPulse 1s infinite;
}

@keyframes countdownPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.5;
    }
}

#photo-countdown.hidden {
    display: none;
}

/* Contact Modal Styles */
.large-modal {
    max-width: 800px;
    width: 90%;
}

.contact-layout {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.contact-socials,
.contact-form-section {
    flex: 1;
    min-width: 300px;
}

.contact-socials h3,
.contact-form-section h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    padding: 1rem;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    transition: transform 0.2s, background 0.2s;
}

.social-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.5);
}

.social-item img {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
}

#contact-form textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #000;
    transition: all 0.3s;
    resize: vertical;
}

#contact-form textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.7);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Main Footer Styles */
.main-footer {
    background-color: #222222;
    color: #ffffff;
    padding: 3rem 1rem;
    margin-top: auto;
    padding: 3rem 1rem 2rem;
    font-family: 'Josefin Sans', sans-serif;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
}

.footer-brand {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.footer-authors {
    font-size: 0.9rem;
    opacity: 0.7;
    font-weight: 300;
}

.footer-section a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section a:hover {
    opacity: 1;
    color: #ffffff;
    transform: translateX(5px);
}

.footer-links {
    gap: 1rem;
}

.footer-socials {
    flex-direction: row;
    gap: 1.5rem;
    align-items: flex-start;
}

@media (max-width: 900px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section {
        align-items: center;
    }

    .footer-socials {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-section a:hover {
        transform: translateY(-3px);
    }
}

@media (max-width: 768px) {
    .contact-layout {
        flex-direction: column;
    }
}

/* --- Wizard Style --- */
.wizard-progress-bar {
    display: flex;
    background: rgba(113, 183, 142, 0.85);
    border-radius: 50px;
    padding: 0;
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
}

.wizard-pill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 33.33%;
    background: #2d5a3d;
    border-radius: 50px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 12px 0 15px -5px rgba(0, 0, 0, 0.4), -12px 0 15px -5px rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.wizard-step {
    flex: 1;
    text-align: center;
    padding: 16px 20px;
    border-radius: 50px;
    font-weight: 400;
    color: #1a3c28;
    position: relative;
    transition: color 0.4s ease;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Josefin Sans', sans-serif;
    background: transparent;
    z-index: 1;
}

.wizard-step:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
}

.wizard-step.active {
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.wizard-step.active:hover {
    background: #2d5a3d;
}

.step-section {
    display: none;
}

.step-section.active-step {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    width: 100%;
    animation: fadeIn 0.4s ease;
}

/* Universal Wizard Navigation */
.wizard-navigation {
    position: relative;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    z-index: 10;
}


.wizard-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    background: #1a3c28;
    /* Full color */
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 400;
    pointer-events: auto;
}

.next-btn {
    margin-left: auto;
    /* Always push to the right */
}

.wizard-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    /* Color stays full as requested */
}

.wizard-btn.back-btn {
    background: #e8ece9;
    /* Light solid color */
    color: #1a3c28;
    border: 1px solid rgba(26, 60, 40, 0.1);
}

.wizard-btn.back-btn:hover {
    transform: translateY(-2px);
}

.wizard-btn span {
    font-size: 1.2rem;
}

/* Old nav styles - keep for backwards compat but will be removed */
.wizard-nav {
    margin-top: 3rem;
    display: none !important;
    /* Hide old navigation */
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 60, 40, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-banner.hidden {
    display: none !important;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-consent-text {
    flex: 1;
    color: white;
}

.cookie-consent-text h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: 'Josefin Sans', sans-serif;
}

.cookie-consent-text p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1rem 0;
}

.cookie-checkbox-group {
    margin-top: 1rem;
}

.cookie-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
    cursor: pointer;
    user-select: none;
}

.cookie-checkbox {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #1a7f3c;
}

.cookie-link {
    color: #a8d5ba;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.cookie-link:hover {
    border-bottom-color: #a8d5ba;
    color: #fff;
}

.cookie-consent-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cookie-btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Montserrat', sans-serif;
    white-space: nowrap;
}

.cookie-btn.primary-btn {
    background: #1a7f3c;
    color: white;
    border: 1px solid #1a7f3c;
}

.cookie-btn.primary-btn:hover:not(:disabled) {
    background: #155a2f;
    border-color: #155a2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 127, 60, 0.3);
}

.cookie-btn.primary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.cookie-btn.secondary-btn {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 1rem;
    }

    .cookie-consent-content {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .cookie-consent-buttons {
        justify-content: stretch;
    }

    .cookie-btn {
        flex: 1;
        padding: 0.8rem 1rem;
    }

    .cookie-consent-text {
        text-align: left;
    }

    .cookie-consent-text h3 {
        font-size: 1rem;
    }

    .cookie-consent-text p {
        font-size: 0.85rem;
    }

    .cookie-checkbox-label {
        font-size: 0.8rem;
    }
}