/* ============================================
   KATI KITCHEN ASSISTANT - STYLES v5.0
   Alle Styles für Registrierung, Login & Dashboard
   ============================================ */

/* Reset & Base */
.kati-auth-wrapper,
.kati-header,
.kati-tab-nav,
.kati-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #472804;
    line-height: 1.6;
}

/* ============================================
   AUTH PAGES (Registrierung & Login)
   ============================================ */

.kati-auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #FDFBF7;
}

.kati-auth-box {
    background: white;
    border-radius: 20px;
    padding: 50px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(71, 40, 4, 0.1);
}

.kati-auth-logo {
    text-align: center;
    margin-bottom: 40px;
}

.kati-auth-logo img {
    max-width: 220px;
    height: auto;
}

.kati-auth-title {
    font-size: 28px;
    font-weight: 300;
    color: #472804;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.kati-auth-subtitle {
    font-size: 16px;
    color: #8B7355;
    text-align: center;
    margin-bottom: 30px;
}

/* Form Elements */
.kati-form-group {
    margin-bottom: 25px;
}

.kati-form-label {
    display: block;
    font-weight: 500;
    color: #472804;
    margin-bottom: 10px;
    font-size: 15px;
}

.kati-form-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #D7CFC2;
    border-radius: 12px;
    font-size: 15px;
    color: #472804;
    background: white;
    transition: all 0.3s ease;
    font-family: inherit;
}

.kati-form-input:focus {
    outline: none;
    border-color: #C9A571;
    box-shadow: 0 0 0 3px rgba(201, 165, 113, 0.1);
}

.kati-form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.kati-form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #C9A571;
}

.kati-form-checkbox label {
    cursor: pointer;
    font-size: 14px;
    color: #472804;
}

/* Buttons */
.kati-btn-primary {
    background: linear-gradient(135deg, #C9A571 0%, #B8935A 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(201, 165, 113, 0.2);
    font-family: inherit;
}

.kati-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 165, 113, 0.3);
}

/* Links */
.kati-auth-link {
    text-align: center;
    margin-top: 20px;
    color: #8B7355;
    font-size: 14px;
}

.kati-auth-link a {
    color: #C9A571;
    text-decoration: none;
    font-weight: 500;
}

.kati-auth-link a:hover {
    text-decoration: underline;
}

.kati-password-forgotten {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 10px;
}

.kati-password-forgotten a {
    color: #8B7355;
    text-decoration: none;
    font-size: 14px;
}

.kati-password-forgotten a:hover {
    color: #C9A571;
    text-decoration: underline;
}

/* Error Messages */
.kati-error {
    background: #FFE5E5;
    border: 1px solid #FF9999;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    color: #990000;
    font-size: 14px;
}

/* ============================================
   DASHBOARD - HEADER
   ============================================ */

.kati-header {
    background: #FFFFFF;
    border-bottom: 1px solid #D7CFC2;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(71, 40, 4, 0.05);
}

.kati-logo-area {
    display: flex;
    align-items: center;
    gap: 20px;
}

.kati-logo-img {
    height: 60px;
    width: auto;
}

.kati-logo-text {
    font-size: 24px;
    color: #472804;
    font-weight: 300;
    letter-spacing: 2px;
}

.kati-user-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.kati-user-name {
    color: #8B7355;
    font-size: 14px;
}

.kati-user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    border: 2px solid #C9A571;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.kati-user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(201, 165, 113, 0.3);
}

.kati-user-avatar svg {
    width: 32px;
    height: 32px;
}

/* ============================================
   TAB NAVIGATION
   ============================================ */

.kati-tab-nav {
    display: flex;
    gap: 5px;
    border-bottom: 1px solid #E8E4DE;
    background: white;
    padding: 0 40px;
}

.kati-tab-button {
    padding: 15px 30px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #8B7355;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
}

.kati-tab-button:hover {
    color: #472804;
    background: #FDFBF7;
}

.kati-tab-button.active {
    color: #472804;
    border-bottom-color: #C9A571;
}

.kati-tab-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* ============================================
   CONTAINER & CONTENT
   ============================================ */

.kati-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
    background: #FDFBF7;
    min-height: calc(100vh - 200px);
}

.kati-page-title {
    font-size: 32px;
    font-weight: 400;
    color: #472804;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.kati-page-subtitle {
    font-size: 16px;
    color: #8B7355;
    margin-bottom: 40px;
}

.kati-section-title {
    font-size: 22px;
    font-weight: 500;
    color: #472804;
    margin-bottom: 20px;
}

/* ============================================
   INFO BOX
   ============================================ */

.kati-info-box {
    background: #FFF8F0;
    border-left: 4px solid #C9A571;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.kati-info-box h4 {
    color: #472804;
    margin-bottom: 12px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kati-info-box ul {
    list-style: none;
    padding-left: 0;
}

.kati-info-box li {
    color: #8B7355;
    margin-bottom: 6px;
    padding-left: 20px;
    position: relative;
}

.kati-info-box li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #C9A571;
    font-weight: bold;
}

/* ============================================
   PROFILE GRID & CARDS
   ============================================ */

.kati-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.kati-profile-card {
    background: white;
    border: 1px solid #E8E4DE;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.kati-profile-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(71, 40, 4, 0.1);
    border-color: #C9A571;
}

.kati-profile-avatar-drawn {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    display: block;
}

.kati-profile-name {
    font-size: 20px;
    font-weight: 600;
    color: #472804;
    margin-bottom: 8px;
}

.kati-profile-age {
    color: #8B7355;
    margin-bottom: 15px;
    font-size: 14px;
}

.kati-profile-badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #C9A571 0%, #B8935A 100%);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.kati-profile-type {
    color: #8B7355;
    font-size: 13px;
    font-style: italic;
    margin-bottom: 20px;
}

.kati-profile-lock {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 24px;
    height: 24px;
    color: #8B7355;
}

.kati-profile-lock svg {
    width: 24px;
    height: 24px;
}

.kati-profile-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.kati-btn-profile {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.kati-btn-open {
    background: linear-gradient(135deg, #C9A571 0%, #B8935A 100%);
    color: white;
}

.kati-btn-open:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(201, 165, 113, 0.4);
}

.kati-btn-delete {
    background: #FFF5F5;
    color: #C9A571;
    border: 1px solid #E8E4DE;
}

.kati-btn-delete:hover {
    background: #FFE5E5;
    color: #B8935A;
    border-color: #C9A571;
}

/* ============================================
   ADD PROFILE DROPDOWN
   ============================================ */

.kati-add-profile-container {
    position: relative;
    display: inline-block;
    margin-top: 10px;
}

.kati-btn-add {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #C9A571 0%, #B8935A 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(201, 165, 113, 0.2);
    font-family: inherit;
}

.kati-btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 165, 113, 0.3);
}

.kati-profile-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 10px;
    background: white;
    border: 1px solid #E8E4DE;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(71, 40, 4, 0.15);
    min-width: 320px;
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.kati-profile-dropdown.show {
    display: block;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kati-dropdown-item {
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #F5F5F5;
    display: flex;
    align-items: center;
    gap: 15px;
}

.kati-dropdown-item:last-child {
    border-bottom: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .kati-header {
        padding: 15px 20px;
    }
    
    .kati-tab-nav {
        overflow-x: auto;
        padding: 0 20px;
    }
    
    .kati-container {
        padding: 30px 20px;
    }
    
    .kati-profile-grid {
        grid-template-columns: 1fr;
    }
    
    .kati-auth-box {
        padding: 30px;
    }
    
    .kati-auth-wrapper {
        padding: 20px;
    }
}
/* ========================================
   PROFIL-TYP-AUSWAHL
======================================== */

.kati-profile-type-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
}

.kati-profile-type-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #FFFFFF;
    border: 2px solid #E5DDD5;
    border-radius: 10px;
    text-decoration: none;
    color: #4A4A4A;
    transition: all 0.3s ease;
}

.kati-profile-type-card:hover {
    border-color: #B8977C;
    background: #FAF8F6;
    transform: translateX(5px);
}

.kati-profile-type-icon {
    width: 50px;
    height: 50px;
    background: #F5EFE7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kati-profile-type-icon svg {
    width: 28px;
    height: 28px;
    fill: #8B7355;
}

.kati-profile-type-content {
    flex: 1;
}

.kati-profile-type-content h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #2C2C2C;
    font-weight: 600;
}

.kati-profile-type-content p {
    margin: 0;
    font-size: 14px;
    color: #8B7355;
}

.kati-profile-type-arrow {
    font-size: 24px;
    color: #B8977C;
    font-weight: bold;
}
/* ========================================
   DROPDOWN ITEMS ALS LINKS
======================================== */

.kati-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    text-decoration: none !important;
    color: #4A4A4A !important;
    transition: background 0.2s ease;
    cursor: pointer;
    border-radius: 8px;
}

.kati-dropdown-item:hover {
    background: #F5EFE7;
    color: #472804 !important;
}

.kati-dropdown-item:visited {
    color: #4A4A4A !important;
}

.kati-dropdown-item svg {
    width: 20px;
    height: 20px;
    fill: #8B7355;
}

.kati-dropdown-item-text {
    flex: 1;
}

.kati-dropdown-item-title {
    font-weight: 600;
    color: #472804 !important;
    margin-bottom: 2px;
}

.kati-dropdown-item-desc {
    font-size: 13px;
    color: #8B7355 !important;
}