/* theme.css */
:root {
    /* Vibrant Teal für besseren Kontrast */
    --primary-earth: #0d9488;
    --primary-dark: #0f766e;
    
    /* Helle Entspannte Farben */
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
    
    /* Weiche, aber sehr dunkle Textfarben für maximalen Kontrast */
    --text-main: #0f172a; 
    --text-muted: #475569;
    
    --border-light: rgba(0,0,0,0.05);
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    scroll-behavior: smooth;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Layout Wrapper for sticky footer */
.page-content {
    flex: 1;
}

/* TICKET / ERROR MESSAGES */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}
.alert-error { background: rgba(225, 29, 72, 0.1); color: #e11d48; border: 1px solid rgba(225,29,72,0.3); }
.alert-success { background: rgba(46, 204, 113, 0.1); color: #00b894; border: 1px solid rgba(0,184,148,0.3); }

/* HEADER */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}
.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-main);
    text-decoration: none;
}
.logo span { color: var(--primary-earth); }
.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--primary-earth); }
.nav-links .btn {
    color: white;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}
.btn-primary {
    background: var(--primary-earth);
    color: white;
    box-shadow: 0 10px 20px rgba(13, 148, 136, 0.3);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(13, 148, 136, 0.4);
    color: white !important;
}
.btn-outline {
    background: transparent;
    color: var(--text-main) !important;
    border: 2px solid var(--primary-earth);
}
.btn-outline:hover {
    background: var(--primary-earth);
    color: white !important;
}

/* HERO SECTION */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('images/bg_nature.png');
    background-size: cover;
    background-position: center;
    /* Reduzierter Kontrast und leichter Blur für "Chill" Stimmung */
    filter: brightness(1.1) contrast(0.9);
    z-index: 0;
}
/* Weisses Overlay, um den Text besser lesbar zu machen gegenüber Natur */
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.8), rgba(249, 250, 251, 1));
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero.hero-split {
    justify-content: center;
    gap: 80px;
    padding: 0 5%;
}
.hero.hero-split .hero-content {
    text-align: left;
    max-width: 500px;
    padding: 0;
}
.hero.hero-split .hero-buttons {
    justify-content: flex-start !important;
}

.hero-auth {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 450px;
}
.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
    color: var(--text-main);
}
.hero h1 span {
    color: var(--primary-earth);
}
.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* FEATURES SECTION */
.features {
    padding: 100px 50px;
    background: var(--bg-light);
    max-width: 1200px;
    margin: 0 auto;
}
.features-header {
    text-align: center;
    margin-bottom: 80px;
}
.features-header h2 { font-size: 2.5rem; margin-bottom: 10px; color: var(--text-main); }
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}
.feature-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    padding: 40px;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: rgba(13, 148, 136, 0.2);
}
.feature-card h3 { color: var(--text-main); font-size: 1.5rem; }
.feature-card p { color: var(--text-muted); line-height: 1.6; flex-grow: 1; }
.feature-card .btn { margin-top: auto !important; }

/* AUTH SECTION */
.auth-section {
    padding: 100px 20px;
    background: var(--bg-light);
    display: flex;
    justify-content: center;
}
.auth-container {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    padding: 50px;
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}
.auth-container h2 { text-align: center; margin-bottom: 30px; font-size: 2rem; color: var(--text-main); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--text-muted); font-size: 0.9rem; }
.form-group input, .form-group select {
    width: 100%;
    height: 46px;
    padding: 12px 15px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: var(--text-main);
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
}
.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231f2937%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
    padding-right: 40px;
}
.form-group input:focus, .form-group select:focus { border-color: var(--primary-earth); background: white; }
.auth-switch { text-align: center; margin-top: 20px; color: var(--text-muted); font-size: 0.9rem; }
.auth-switch a { color: var(--primary-earth); text-decoration: none; font-weight: 600; }

/* AUTH TABS (Segmented Control) */
.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    background: #f1f5f9; /* Soft inset background */
    border-radius: 12px;
    padding: 6px;
    position: relative;
}

.auth-tab {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.auth-tab:hover {
    color: var(--text-main);
}

.auth-tab.active {
    background: var(--bg-white);
    color: var(--primary-earth);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* STATUS CALLOUT (Logged In) */
.status-box {
    text-align: center;
    padding: 40px;
    background: #f8fafc;
    border-radius: 12px;
    margin-top: 20px;
    border: 1px solid var(--border-light);
}
.status-box p { color: var(--text-muted); }

/* FOOTER */
footer {
    background: var(--bg-white);
    padding: 50px;
    text-align: center;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}
.footer-links { margin-bottom: 20px; }
.footer-links a { color: var(--text-muted); text-decoration: none; margin: 0 15px; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--primary-earth); }

/* Dashboard Specific Container */
.dashboard-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 50px 20px;
    background-image: url('images/bg_nature.png');
    background-size: cover;
    background-position: center;
    position: relative;
}
.dashboard-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
}
.dashboard-card {
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,0.9);
    border: 1px solid white;
    padding: 60px 50px;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
}
.dashboard-card h1 { font-size: 2.5rem; margin-bottom: 20px; margin-top: 0; color: var(--text-main); }
.dashboard-card p { font-size: 1.1rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 40px; }
.icon-box { font-size: 4rem; margin-bottom: 20px; }
.status-badge {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.status-pending { background: rgba(13, 148, 136, 0.1); color: var(--primary-earth); border: 1px solid rgba(13, 148, 136, 0.3); }
.status-approved { background: rgba(46, 204, 113, 0.15); color: #00b894; border: 1px solid rgba(0,184,148,0.4); }

/* Map Tool Specific Container */
.map-tool-container {
    padding: 120px 20px 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.map-wrapper {
    position: relative;
    background: var(--bg-white);
    padding: 15px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

#lond-map {
    height: 600px;
    width: 100%;
    border-radius: 12px;
    cursor: crosshair;
    z-index: 10;
}

.map-controls-overlay {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 25px;
    border-radius: 50px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: flex;
    gap: 15px;
    align-items: center;
}

.map-controls-overlay .btn {
    padding: 8px 20px;
    font-size: 0.95rem;
}
.map-controls-overlay .btn-outline {
    border-color: var(--primary-earth) !important;
    color: var(--primary-earth) !important;
}
.map-controls-overlay .btn-outline.active {
    background: var(--primary-earth) !important;
    color: white !important;
}

.results-panel {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    min-height: 200px;
}
.results-panel h2 {
    color: var(--text-main);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.plz-card {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    border: 1px solid var(--border-light);
    color: var(--text-main);
    transition: transform 0.2s ease;
}
.plz-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.plz-card span {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 5px;
}

.loading {
    text-align: center;
    color: var(--primary-earth);
    font-weight: 600;
    display: none;
    margin-top: 20px;
}

/* Map custom styles for lasso */
.leaflet-grab { cursor: move; }
.drawing-mode .leaflet-interactive { cursor: crosshair !important; }

/* ==========================================================================
   SKILLS & MATRIX
   ========================================================================== */

.skills-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.skills-topbar {
    width: 100%;
}

.matrix-row {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 2px dashed rgba(14, 165, 233, 0.2);
    min-height: 80px;
}

.matrix-row:last-child {
    border-bottom: none;
}

.matrix-label {
    width: 200px;
    flex-shrink: 0;
}

.matrix-label h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-main);
}

.matrix-dropzone, .pool-zone {
    flex-grow: 1;
    min-height: 60px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
    align-content: flex-start;
    padding: 10px;
    border-radius: 12px;
    transition: background-color 0.2s, min-height 0.2s;
}

.matrix-dropzone.dragover {
    background-color: rgba(14, 165, 233, 0.1);
    border: 2px dashed var(--primary-earth);
}

.pool-zone {
    background: rgba(13, 148, 136, 0.05); 
    border: 1px dashed rgba(13, 148, 136, 0.2);
}

.skill-pill {
    background-color: white;
    color: var(--text-main);
    border: 2px solid rgba(14, 165, 233, 0.4);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: grab;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    user-select: none;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative; 
}

.skill-pill:hover {
    border-color: #0ea5e9;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

.skill-pill:active {
    cursor: grabbing;
    transform: scale(0.95);
}

.skill-pill.dragging {
    opacity: 0.5;
}

.skill-pill .skill-name {
    display: flex;
    align-items: center;
    gap: 4px;
}

.skill-pill .skill-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Hidden State Styling */
.skill-pill.hidden-skill {
    background-color: rgba(226, 232, 240, 0.6); 
    border-color: #cbd5e1;
    color: #94a3b8;
    box-shadow: none;
}
.skill-pill.hidden-skill .skill-meta {
    color: #94a3b8;
}

/* Eye Toggle Icon Styling */
.skill-toggle-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 2;
}

.skill-pill:hover .skill-toggle-btn {
    opacity: 1;
    pointer-events: auto;
}

.skill-toggle-btn:hover {
    transform: scale(1.1);
    border-color: #0ea5e9;
}

.skill-pill.hidden-skill .skill-toggle-btn {
    opacity: 1; 
    pointer-events: auto;
}

.skill-pill.hidden-skill .skill-toggle-btn::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 2px;
    background: #94a3b8;
    transform: rotate(45deg);
    border-radius: 2px;
}

/* Delete Button Styling */
.skill-delete-btn {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 24px;
    height: 24px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    font-weight: bold;
    color: #e11d48;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 2;
}

.skill-pill:hover .skill-delete-btn {
    opacity: 1;
    pointer-events: auto;
}

.skill-delete-btn:hover {
    transform: scale(1.1);
    background: #e11d48;
    color: white;
    border-color: #e11d48;
}
